PageSourceSearch

https://www.allango.net/49.0f09f3fe6e2a11ddcc7b.js

js allango.net collected 2026-10-06 08:50:22 UTC 2,571,884 bytes, 2 lines download raw bytes

1/*! For license information please see 49.0f09f3fe6e2a11ddcc7b.js.LICENSE.txt */
2"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[49],{61695(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),i||(i=r.createElement("path",{fill:"#000",d:"M6.192 10.38a.552.552 0 0 1-1.017 0l-.512-1.172A4.52 4.52 0 0 0 2.364 6.88L.955 6.254c-.448-.198-.448-.85 0-1.05L2.32 4.6a4.52 4.52 0 0 0 2.332-2.406l.519-1.25a.552.552 0 0 1 1.025 0l.519 1.25a4.52 4.52 0 0 0 2.332 2.406l1.365.606c.448.199.448.85 0 1.05l-1.41.625a4.52 4.52 0 0 0-2.298 2.328zM2.65 5.73c1.333.591 2.417 1.564 3.035 2.903C6.3 7.294 7.385 6.322 8.719 5.73c-1.35-.6-2.437-1.62-3.035-2.982C5.086 4.11 3.998 5.13 2.649 5.73m8.669 7.506.144-.33a2.55 2.55 0 0 1 1.296-1.313l.443-.197a.31.31 0 0 0 0-.562l-.418-.186a2.55 2.55 0 0 1-1.315-1.357l-.148-.357a.296.296 0 0 0-.55 0l-.147.357a2.55 2.55 0 0 1-1.315 1.357l-.419.186a.31.31 0 0 0 0 .562l.444.197a2.55 2.55 0 0 1 1.296 1.313l.144.33c.105.241.44.241.545 0m-.6-2.125.33-.326.32.326-.32.316z"})))},808(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1"})))},33125(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M5 2h14a1 1 0 0 1 1 1v19.143a.5.5 0 0 1-.766.424L12 18.03l-7.234 4.536A.5.5 0 0 1 4 22.143V3a1 1 0 0 1 1-1m13 2H6v15.432l6-3.761 6 3.761z"})))},6967(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m12 10.586 4.95-4.95 1.414 1.414-4.95 4.95 4.95 4.95-1.414 1.414-4.95-4.95-4.95 4.95-1.414-1.414 4.95-4.95-4.95-4.95L7.05 5.636z"})))},67940(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-11.414L9.172 7.757 7.757 9.172 10.586 12l-2.829 2.828 1.415 1.415L12 13.414l2.828 2.829 1.415-1.415L13.414 12l2.829-2.828-1.415-1.415z"})))},30013(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M3 19h18v2H3zm10-5.828L19.071 7.1l1.414 1.414L12 17 3.515 8.515 4.929 7.1 11 13.17V2h2z"})))},74762(e,t,n){n.d(t,{A:()=>
2o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M12 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"})))},39154(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M13 12h3l-4 4-4-4h3V8h2zm2-8H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008z"})))},79823(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M10 6v2H5v11h11v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm11-3v8h-2V6.413l-7.793 7.794-1.414-1.414L17.585 5H13V3z"})))},70906(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M7.828 11H20v2H7.828l5.364 5.364-1.414 1.414L4 12l7.778-7.778 1.414 1.414z"})))}
2,44817(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"#111212",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{d:"m16.172 11-5.364-5.364 1.414-1.414L20 12l-7.778 7.778-1.414-1.414L16.172 13H4v-2z"})))},33692(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m10.828 12 4.95 4.95-1.414 1.414L8 12l6.364-6.364 1.414 1.414z"})))},65155(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m13.172 12-4.95-4.95 1.414-1.414L16 12l-6.364 6.364-1.414-1.414z"})))},99525(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m10 15.172 9.192-9.193 1.415 1.414L10 18l-6.364-6.364 1.414-1.414z"})))},67443(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M11 11V7h2v4h4v2h-4v4h-2v-4H7v-2zm1 11C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20"})))},1458(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20M11 7h2v2h-2zm0 4h2v6h-2z"})))},84050(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20m-1-5h2v2h-2zm2-1.645V14h-2v-1.5a1 1 0 0 1 1-1 1.5 1.5 0 1 0-1.471-1.794l-1.962-.393A3.5 3.5 0 1 1 13 13.355"})))},72967(e,t,n){n.d(t,{A:()=>o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0m-8.66 16h15.588L12 5.5zM11 16h2v2h-2zm0-7h2v5h-2z"})))},23682(e,t,n){n.d(t,{A:()=>
2o});var i,r=n(2057);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a.apply(null,arguments)}const o=e=>r.createElement("svg",a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=r.createElement("path",{fill:"#111212",d:"m18.031 16.617 4.283 4.282-1.415 1.415-4.282-4.283A8.96 8.96 0 0 1 11 20c-4.968 0-9-4.032-9-9s4.032-9 9-9 9 4.032 9 9a8.96 8.96 0 0 1-1.969 5.617m-2.006-.742A6.98 6.98 0 0 0 18 11c0-3.868-3.133-7-7-7s-7 3.132-7 7 3.132 7 7 7a6.98 6.98 0 0 0 4.875-1.975z"})))},4871(e,t,n){!function(){var e="undefined"!=typeof window?window:n.g,i={};for(var r in function(e,t,n){var i;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var o=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var i=0;i<n.length;++i){var r=n[i];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{for(var n=o,i=e.split("."),r=0;r<i.length-1;r++){var s=i[r];if(!(s in n))break e;n=n[s]}(s=t(r=n[i=i[i.length-1]]))!=r&&null!=s&&a(n,i,{configurable:!0,writable:!0,value:s})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}function d(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,a(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(r){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(r||"")+"_"+i++,r)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=o[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&a(i.prototype,e,{configurable:!0,writable:!0,value:function(){return l(r(this))}})}return e}));var u,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var h;e:{var m={};try{m.__proto__={a:!0},h=m.a;break e}catch(e){}h=!1}u=h?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var g=u;function f(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,g)g(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.Pg=t.prototype}function v(){this.o=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.u=this.i=null}function b(e){if(e.o)throw new TypeError("Generator is already running");e.o=!0}function y(e,t){e.i={fe:t,le:!0},e.g=e.m||e.j}function x(e,t,n){return e.g=n,{value:t}}function w(e){e.g=0}function k(e,t,n){e.m=t,null!=n&&(e.j=n)}function A(e){e.m=0,e.j=2}function T(e,t){e.g=t,e.m=0}function S(e){e.m=0;var t=e.i.fe;return e.i=null,t}function E(e){e.u=[e.i],e.m=0,e.j=0}function I(e,t){var n=e.u.splice(0)[0];(n=e.i=e.i||n)?n.le?e.g=e.m||e.j:null!=n.A&&e.j<n.A?(e.g=n.A,e.i=null):e.g=e.j:e.g=t}function C(e){this.g=new v,this.h=e}function _(e,t,n,i){try{var r=t.call(e.g.l,n);if(!(r instanceof Object))throw new TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.o=!1,r;var a=r.value}catch(t){return e.g.l=null,y(e.g,t),j(e)}
2return e.g.l=null,i.call(e.g,a),j(e)}function j(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.o=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,y(e.g,t)}if(e.g.o=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.le)throw t.fe;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function N(e){this.next=function(t){return b(e.g),e.g.l?t=_(e,e.g.l.next,t,e.g.s):(e.g.s(t),t=j(e)),t},this.throw=function(t){return b(e.g),e.g.l?t=_(e,e.g.l.throw,t,e.g.s):(y(e.g,t),t=j(e)),t},this.return=function(t){return function(e,t){b(e.g);var n=e.g.l;return n?_(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),j(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function L(e,t){var n=new N(new C(t));return g&&e.prototype&&g(n,e.prototype),n}function P(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(i,r){!function e(a){a.done?i(a.value):Promise.resolve(a.value).then(t,n).then(e,r)}(e.next())}))}(new N(new C(e)))}function D(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,r=0;r<i;r++){var a=e[r];if(t.call(n,a,r,e))return{ca:r,v:a}}return{ca:-1,v:void 0}}function R(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}function z(e,t){e instanceof String&&(e+="");var n=0,i=!1,r={next:function(){if(!i&&n<e.length){var r=n++;return{value:t(r,e[r]),done:!1}}return i=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r}v.prototype.s=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.A=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.o=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function i(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var r=o.setTimeout;n.prototype.i=function(e){r(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.G),reject:e(this.l)}},t.prototype.G=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.J(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.D(e):this.m(e)}},t.prototype.D=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.L(t,e):this.m(e)},t.prototype.l=function(e){this.s(2,e)},t.prototype.m=function(e){this.s(1,e)},t.prototype.s=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.H(),this.u()},t.prototype.H=function(){var e=this;r((function(){if(e.C()){var t=o.console;void 0!==t&&t.error(e.i)}}),1)},t.prototype.C=function(){if(this.o)return!1;var e=o.CustomEvent,t=o.Event,n=o.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=o.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.u=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.J=function(e){var t=this.j();e.zc(t.resolve,t.reject)},t.prototype.L=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){a(e)}}:t}var r,a,o=new t((function(e,t){r=e,a=t}));return this.zc(i(e,r),i(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.zc=function(e,t){function n(){switch(i.h){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.h)}}var i=this;null==this.g?a.h(n):this.g.push(n),this.o=!0},t.resolve=i,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=c(e),a=r.next();!a.done;a=r.next())i(a.value).zc(t,n)}))},t.all=function(e){var n=c(e),r=n.next();return r.done?i([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,i(r.value).zc(a(o.length-1),t),r=n.next()}while(!r.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function i(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function r(e){if(!M(e,s)){var t=new n;a(e,s,{value:t})}}function o(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&r(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}
2),n=Object.seal({}),i=new e([[t,2],[n,3]]);return 2==i.get(t)&&3==i.get(n)&&(i.delete(t),i.set(n,4),!i.has(t)&&4==i.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();o("freeze"),o("preventExtensions"),o("seal");var l=0;return t.prototype.set=function(e,t){if(!i(e))throw Error("Invalid WeakMap key");if(r(e),!M(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return i(e)&&M(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return i(e)&&M(e,s)&&M(e[s],this.g)},t.prototype.delete=function(e){return!!(i(e)&&M(e,s)&&M(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.Ra=e.next=e.head=e}function n(e,t){var n=e.g;return l((function(){if(n){for(;n.head!=e.g;)n=n.Ra;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var i=e.h[n];if(i&&M(e.h,n))for(var r=0;r<i.length;r++){var s=i[r];if(t!=t&&s.key!=s.key||t===s.key)return{id:n,list:i,index:r,ia:s}}return{id:n,list:i,index:-1,ia:void 0}}function r(e){if(this.h={},this.g=t(),this.size=0,e){e=c(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();return!r.done&&r.value[0]==t&&"s"==r.value[1]&&!((r=i.next()).done||4!=r.value[0].x||"t"!=r.value[1]||!i.next().done)}catch(e){return!1}}())return e;var a=new WeakMap;r.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.ia?n.ia.value=t:(n.ia={next:this.g,Ra:this.g.Ra,head:this.g,key:e,value:t},n.list.push(n.ia),this.g.Ra.next=n.ia,this.g.Ra=n.ia,this.size++),this},r.prototype.delete=function(e){return!(!(e=i(this,e)).ia||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.ia.Ra.next=e.ia.next,e.ia.next.Ra=e.ia.Ra,e.ia.head=null,this.size--,!0)},r.prototype.clear=function(){this.h={},this.g=this.g.Ra=t(),this.size=0},r.prototype.has=function(e){return!!i(this,e).ia},r.prototype.get=function(e){return(e=i(this,e).ia)&&e.value},r.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},r.prototype.keys=function(){return n(this,(function(e){return e.key}))},r.prototype.values=function(){return n(this,(function(e){return e.value}))},r.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},r.prototype[Symbol.iterator]=r.prototype.entries;var o=0;return r})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();return!r.done&&r.value[0]==t&&r.value[1]==t&&(!(r=i.next()).done&&r.value[0]!=t&&4==r.value[0].x&&r.value[1]==r.value[0]&&i.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(i){return e.call(t,i,i,n)}))},t)})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return O(this,e,t).ca}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length,r=t||0;for(0>r&&(r=Math.max(r+i,0));r<i;r++){var a=n[r];if(a===e||Object.is(a,e))return!0}return!1}}
2)),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==R(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return O(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){for(var n=R(this,e,"startsWith"),i=n.length,r=e.length,a=Math.max(0,Math.min(0|t,n.length)),o=0;o<r&&a<i;)if(n[a++]!=e[o++])return!1;return o>=r}})),s("Array.prototype.keys",(function(e){return e||function(){return z(this,(function(e){return e}))}}));var B="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)M(i,r)&&(e[r]=i[r])}return e};s("Object.assign",(function(e){return e||B})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],r="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof r){e=r.call(e);for(var a=0;!(r=e.next()).done;)i.push(t.call(n,r.value,a++))}else for(r=e.length,a=0;a<r;a++)i.push(t.call(n,e[a],a));return i}})),s("Array.prototype.values",(function(e){return e||function(){return z(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return z(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=R(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)M(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)M(e,t)&&n.push([t,e[t]]);return n}}));var U=this||self;function F(e,t){var n,i=e.split("."),r=U;i[0]in r||void 0===r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function V(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function q(e){return e.h/(1-Math.pow(e.g,e.i))}function H(){this.h=new V(2),this.j=new V(5),this.g=0,this.i=128e3,this.l=16e3}function G(){}function K(){}function $(){}function W(e){var t=D.apply(1,arguments);Y.has(e)||(Y.add(e),$.apply(G,d(t)))}function X(){}V.prototype.sample=function(e,t){var n=Math.pow(this.g,e);n=t*(1-n)+n*this.h,isNaN(n)||(this.h=n,this.i+=e)},H.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},H.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e,i=e/1e3;this.g+=t,this.h.sample(i,n),this.j.sample(i,n)}},H.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(q(this.h),q(this.j))};var Y=new Set;if(e.console&&e.console.log.bind){var J={},Z=(J[1]=console.error.bind(console),J[2]=console.warn.bind(console),J[3]=console.info.bind(console),J[4]=console.log.bind(console),J[5]=console.debug.bind(console),J[6]=console.debug.bind(console),J);$=Z[2],K=Z[1]}function Q(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function ee(e,t){var n=e.indexOf(t);-1<n&&e.splice(n,1)}function te(e,t,n){if(n||(n=Q),e.length!=t.length)return!1;t=t.slice();for(var i={},r=(e=c(e)).next();!r.done;i={Yc:i.Yc},r=e.next()){if(i.Yc=r.value,-1==(r=t.findIndex(function(e){return function(t){return n(e.Yc,t)}}(i))))return!1;t[r]=t[t.length-1],t.pop()}return 0==t.length}function ne(e,t,n){if(n||(n=Q),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function ie(e,t,n){this.startTime=e,this.direction=de,this.endTime=t,this.payload=n,this.region=new xe,this.position=null,this.positionAlign=ae,this.size=0,this.textAlign=oe,this.writingMode=ue,this.lineInterpretation=pe,this.line=null,this.lineHeight="",this.lineAlign=he,this.displayAlign=le,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=ve,this.fontStyle=be,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function re(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!ne(e.nestedCues,t.nestedCues,re))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[
2n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!ne(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}ie.prototype.clone=function(){var e,t=new ie(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},F("shaka.text.Cue",ie);var ae="auto";ie.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:ae};var oe="center",se={LEFT:"left",RIGHT:"right",CENTER:oe,START:"start",END:"end"};ie.textAlign=se;var le="after",ce={BEFORE:"before",CENTER:"center",AFTER:le};ie.displayAlign=ce;var de="ltr";ie.direction={HORIZONTAL_LEFT_TO_RIGHT:de,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var ue="horizontal-tb";ie.writingMode={HORIZONTAL_TOP_TO_BOTTOM:ue,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var pe=0;ie.lineInterpretation={LINE_NUMBER:pe,PERCENTAGE:1};var he="start",me={CENTER:"center",START:he,END:"end"};ie.lineAlign=me;var ge={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ie.defaultTextColor=ge;var fe={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ie.defaultTextBackgroundColor=fe;var ve=400;ie.fontWeight={NORMAL:ve,BOLD:700};var be="normal",ye={NORMAL:be,ITALIC:"italic",OBLIQUE:"oblique"};function xe(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=we,this.scroll=ke}ie.fontStyle=ye,ie.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},F("shaka.text.CueRegion",xe);var we=1;xe.units={PX:0,PERCENTAGE:we,LINES:2};var ke="";function Ae(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next())n.push(t(r.value));return n}xe.scrollMode={NONE:ke,UP:"up"};var Te=function e(t){var n;return L(e,(function(e){return 1==e.g&&(n=0),3!=e.g?n<t?x(e,n,3):e.A(0):(n++,e.A(2))}))},Se=function e(t){var n,i,r,a,o,s;return L(e,(function(e){return 1==e.g&&(n=-1,r=i=void 0,a=c(t),o=a.next()),5!=e.g?o.done?-1==n?e.A(0):x(e,{ca:n,If:i,item:r,next:void 0},0):(s=o.value,0<=n?x(e,{ca:n,item:r,If:i,next:s},5):e.A(5)):(n++,i=r,r=s,o=a.next(),e.A(2))}))};function Ee(){}function Ie(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Ce(e)==Ce(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;for(var n=je(e),i=je(t),r=c(Te(e.byteLength)),a=r.next();!a.done;a=r.next())if(n[a=a.value]!=i[a])return!1;return!0}function Ce(e){return e instanceof ArrayBuffer?e:e.buffer}function _e(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function je(e,t,n){return Le(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Ne(e,t,n){return Le(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Le(e,t,n,i){var r=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,r)),new i(Ce(e),t,Math.min(t+Math.max(n,0),r)-t)}function Pe(e,t){this.g=e,this.h=t}function De(e,t){var n=new Pe(4,0),i=Re,r=i.g,a=n.h-r.h;(0<(n.g-r.g||a)?i.i:i.h)(i.g,n,e,t)}function Me(e,t,n,i){$([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function Oe(e,t,n,i){K([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(""))}F("shaka.util.BufferUtils",Ee),Ee.toDataView=Ne,Ee.toUint8=je,Ee.toArrayBuffer=_e,Ee.equal=Ie,Pe.prototype.toString=function(){return"v"+this.g+"."+this.h};var Re=null;function ze(e,t){return e.concat(t)}function Be(){}function Ue(e){return null!=e}function Fe(e){var t=Object.create(e.prototype||Object.prototype);try{var n=e.call(t);n||(De("Factories requiring new","Factories should be plain functions"),n=t)}catch(t){De("Factories requiring new","Factories should be plain functions"),n=new e}return n}function Ve(){}F("shaka.dependencies",Ve),Ve.has=function(e){return He.has(e)},Ve.add=function(e,t){if(!qe[e])throw Error(e+" is not supported");He.set(e,(function(){return t}))};var qe={muxjs:"muxjs"};Ve.Allowed=qe;var He=new Map([["muxjs",function(){return e.muxjs}]]);function Ge(e,t,n){var i=D.apply(3,arguments);
2this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1}Ge.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},F("shaka.util.Error",Ge),Ge.Severity={RECOVERABLE:1,CRITICAL:2},Ge.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},Ge.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004};var Ke=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function $e(e){var t;e instanceof $e?(We(this,e.Fa),this.pb=e.pb,this.Ha=e.Ha,Xe(this,e.Kb),this.va=e.va,Ye(this,e.g.clone()),this.eb=e.eb):e&&(t=String(e).match(Ke))?(We(this,t[1]||"",!0),this.pb=Je(t[2]||""),this.Ha=Je(t[3]||"",!0),Xe(this,t[4]),this.va=Je(t[5]||"",!0),Ye(this,t[6]||"",!0),this.eb=Je(t[7]||"")):this.g=new at(null)}function We(e,t,n){e.Fa=n?Je(t,!0):t,e.Fa&&(e.Fa=e.Fa.replace(/:$/,""))}function Xe(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.Kb=t}else e.Kb=null}function Ye(e,t,n){t instanceof at?e.g=t:(n||(t=Ze(t,it)),e.g=new at(t))}function Je(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function Ze(e,t,n){return null!=e?(e=encodeURI(e).replace(t,Qe),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Qe(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(i=$e.prototype).Fa="",i.pb="",i.Ha="",i.Kb=null,i.va="",i.eb="",i.toString=function(){var e=[],t=this.Fa;if(t&&e.push(Ze(t,et,!0),":"),t=this.Ha){e.push("//");var n=this.pb;n&&e.push(Ze(n,et,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.Kb)&&e.push(":",String(t))}return(t=this.va)&&(this.Ha&&"/"!=t.charAt(0)&&e.push("/"),e.push(Ze(t,"/"==t.charAt(0)?nt:tt,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.eb)&&e.push("#",Ze(t,rt)),e.join("")},i.resolve=function(e){var t=this.clone();"data"===t.Fa&&(t=new $e);var n=!!e.Fa;n?We(t,e.Fa):n=!!e.pb,n?t.pb=e.pb:n=!!e.Ha,n?t.Ha=e.Ha:n=null!=e.Kb;var i=e.va;if(n)Xe(t,e.Kb);else if(n=!!e.va){if("/"!=i.charAt(0))if(this.Ha&&!this.va)i="/"+i;else{var r=t.va.lastIndexOf("/");-1!=r&&(i=t.va.substr(0,r+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}i=a.join("/")}}return n?t.va=i:n=""!==e.g.toString(),n?Ye(t,e.g.clone()):n=!!e.eb,n&&(t.eb=e.eb),t},i.clone=function(){return new $e(this)};var et=/[#\/\?@]/g,tt=/[#\?:]/g,nt=/[#\?]/g,it=/[#\?@]/g,rt=/#/g;function at(e){this.g=e||null}function ot(e){if(!e.na&&(e.na={},e.Bc=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var a=t[n].substring(0,i);r=t[n].substring(i+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),r=r||"",e.add(a,decodeURIComponent(r.replace(/\+/g," ")))}}function st(e,t){if(0==t.length)return e;var n=t.map((function(e){return new $e(e)}));return e.map((function(e){return new $e(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))}
2)).reduce(ze,[]).map((function(e){return e.toString()}))}function lt(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function ct(e,t){if(1==t.length)return t[0];var n=dt(e,t);if(null!=n)return n;throw new Ge(2,4,4025,t)}function dt(e,t){for(var n=c(ht[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=c(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return e==ut?"":null}(i=at.prototype).na=null,i.Bc=null,i.add=function(e,t){ot(this),this.g=null;var n=this.na.hasOwnProperty(e)&&this.na[e];return n||(this.na[e]=n=[]),n.push(t),this.Bc++,this},i.set=function(e,t){return ot(this),this.g=null,this.na.hasOwnProperty(e)?this.na[e]=[t]:this.add(e,t),this},i.toString=function(){if(this.g)return this.g;if(!this.na)return"";var e,t=[];for(e in this.na)for(var n=encodeURIComponent(e),i=this.na[e],r=0;r<i.length;r++){var a=n;""!==i[r]&&(a+="="+encodeURIComponent(i[r])),t.push(a)}return this.g=t.join("&")},i.clone=function(){var e=new at;if(e.g=this.g,this.na){var t,n={};for(t in this.na)n[t]=this.na[t].concat();e.na=n,e.Bc=this.Bc}return e};var ut="text",pt={Na:"video",bb:"audio",Y:ut,Tb:"image",fg:"application"},ht={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function mt(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function gt(e){this.h=e,this.g=void 0}function ft(){}function vt(e){return e?(239==(e=je(e))[0]&&187==e[1]&&191==e[2]&&(e=e.subarray(3)),(e=(new TextDecoder).decode(e)).includes("�")&&K('Decoded string contains an "unknown character" codepoint.  That probably means the UTF8 encoding was incorrect!'),e):""}function bt(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new Ge(2,2,2004);var i=Math.floor(e.byteLength/2);n=new Uint16Array(i),e=Ne(e);for(var r=(i=c(Te(i))).next();!r.done;r=i.next())n[r=r.value]=e.getUint16(2*r,t);return kt.value()(n)}function yt(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=je(e);if(239==n[0]&&187==n[1]&&191==n[2])return vt(n);if(254==n[0]&&255==n[1])return bt(n.subarray(2),!1);if(255==n[0]&&254==n[1])return bt(n.subarray(2),!0);if(0==n[0]&&0==n[2])return bt(e,!1);if(0==n[1]&&0==n[3])return bt(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return vt(e);throw new Ge(2,2,2003)}function xt(e){return _e((new TextEncoder).encode(e))}function wt(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),r=c(Se(e)),a=r.next();!a.done;a=r.next())a=a.value,i.setUint16(2*a.ca,a.item.charCodeAt(0),t);return n}mt.prototype.resolve=function(){},mt.prototype.reject=function(){},gt.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},F("shaka.util.StringUtils",ft),ft.resetFromCharCode=function(){kt.g=void 0},ft.toUTF16=wt,ft.toUTF8=xt,ft.fromBytesAutoDetect=yt,ft.fromUTF16=bt,ft.fromUTF8=vt;var kt=new gt((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={Va:65536};0<t.Va;(t={Va:t.Va}).Va/=2)if(e(t.Va))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.Va)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.Va));return n}}(t);return null}));function At(){}function Tt(e){return e=je(e),e=kt.value()(e),btoa(e)}function St(e,t){t=null==t||t;var n=Tt(e).replace(/\+/g,"-").replace(/\//g,"_");return t?n:n.replace(/[=]*$/,"")}function Et(t){var n=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));t=new Uint8Array(n.length);for(var i=(n=c(Se(n))).next();!i.done;i=n.next())t[(i=i.value).ca]=i.item.charCodeAt(0);return t}function It(t){for(var n=t.length/2,i=new Uint8Array(n),r=(n=c(Te(n))).next();!r.done;r=n.next())i[r=r.value]=e.parseInt(t.substr(2*r,2),16);return i}function Ct(e){var t=je(e);e="";for(var n=(t=c(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function _t(){for(var e=D.apply(0,arguments),t=0,n=c(e),i=n.next();!i.done;i=n.next())t+=i.value.byteLength;for(t=new Uint8Array(t),n=0,i=(e=c(e)).next();!i.done;i=e.next())i=i.value,t.set(je(i),n),n+=i.byteLength;return t}function jt(){var e=this;this.o=He.get("muxjs")(),this.g=new this.o.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.h=null,this.m=[],this.j=[],this.i=[],this.l=!1,this.g.on("data",(function(t){e.j=t.captions,e.i=t.metadata,e.m.push(_t(t.initSegment,t.data))})),this.g.on("done",(function(){var t={data:_t.apply(At,d(e.m)),captions:e.j,metadata:e.i};e.h.resolve(t),e.l=!1}))}function Nt(e,t){if(!He.get("muxjs")()||!Lt(e))return!1;
2if(t)return MediaSource.isTypeSupported(Pt(t,e));var n=Pt("audio",e),i=Pt("video",e);return MediaSource.isTypeSupported(n)||MediaSource.isTypeSupported(i)}function Lt(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function Pt(e,t){var n=t.replace(/mp2t/i,"mp4");"audio"==e&&(n=n.replace("video","audio"));var i=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(i){var r="avc1.",a=i[1],o=Number(i[2]);r=("66"==a?r+"4200":"77"==a?r+"4d00":r+"6400")+(o>>4).toString(16),r+=(15&o).toString(16),n=n.replace(i[0],r)}return n}function Dt(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function Mt(e,t,n){return e=Dt(e,t),He.get("muxjs")()&&Lt(e)?Pt(n,e):e}function Ot(e){var t=(e=e.split("."))[0];return e.pop(),t}function Rt(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function zt(e){this.j=null,this.i=e,this.l=this.u=0,this.m=1/0,this.h=this.g=null,this.s="",this.o=new Map}function Bt(e){return!(!qt[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function Ut(e,t,n){if(e.s=t,t=e.o.get(t))for(var i=c(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter((function(e){return e.endTime<=n})))&&e.i.append(r)}function Ft(e,t,n){t.startTime+=n,t.endTime+=n;for(var i=(t=c(t.nestedCues)).next();!i.done;i=t.next())Ft(e,i.value,n)}function Vt(e,t,n,i,r){for(var a=n+" "+i,o=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),Ft(e,l,r),l.startTime>=e.l&&l.startTime<e.m&&(o.get(s).get(a).push(l),s==e.s&&e.i.append([l]))}for(a=(r=c(o.keys())).next();!a.done;a=r.next())for(a=a.value,e.o.has(a)||e.o.set(a,new Map),s=(t=c(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,l=o.get(a).get(s),e.o.get(a).set(s,l);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}F("shaka.util.Uint8ArrayUtils",At),At.concat=_t,At.toHex=Ct,At.fromHex=It,At.fromBase64=Et,At.toBase64=St,At.toStandardBase64=Tt,At.equal=function(e,t){return De("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),Ie(e,t)},jt.prototype.destroy=function(){return this.g.dispose(),this.g=null,Promise.resolve()},(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),zt.prototype.destroy=function(){return this.i=this.j=null,this.o.clear(),Promise.resolve()},zt.prototype.remove=function(e,t){var n=this;return P((function(i){if(1==i.g)return x(i,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),w(i)}))},F("shaka.text.TextEngine",zt),zt.prototype.destroy=zt.prototype.destroy,zt.findParser=function(e){return qt[e]},zt.unregisterParser=function(e){delete qt[e]},zt.registerParser=function(e,t){qt[e]=t};var qt={};function Ht(){}function Gt(e,t){return e=Wt(e),t=Wt(t),e.split("-")[0]==t.split("-")[0]}function Kt(e,t){e=Wt(e),t=Wt(t);var n=e.split("-"),i=t.split("-");return n[0]==i[0]&&1==n.length&&2==i.length}function $t(e,t){e=Wt(e),t=Wt(t);var n=e.split("-"),i=t.split("-");return 2==n.length&&2==i.length&&n[0]==i[0]}function Wt(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=Qt.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function Xt(e,t){return e=Wt(e),(t=Wt(t))==e?4:Kt(t,e)?3:$t(t,e)?2:Kt(e,t)?1:0}function Yt(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),Qt.get(e)||e}function Jt(e){return e.language?Wt(e.language):e.audio&&e.audio.language?Wt(e.audio.language):e.video&&e.video.language?Wt(e.video.language):"und"}function Zt(e,t){for(var n=Wt(e),i=new Set,r=c(t),a=r.next();!a.done;a=r.next())i.add(Wt(a.value));for(a=(r=c(i)).next();!a.done;a=r.next())if((a=a.value)==n)return a;for(a=(r=c(i)).next();!a.done;a=r.next())if(Kt(a=a.value,n))return a;for(a=(r=c(i)).next();!a.done;a=r.next())if($t(a=a.value,n))return a;for(a=(i=c(i)).next();!a.done;a=i.next())if(Kt(n,a=a.value))return a;return null}F("shaka.util.LanguageUtils",Ht),Ht.findClosestLocale=Zt,Ht.getLocaleForVariant=Jt,Ht.getLocaleForText=function(e){return Wt(e.language||"und")},Ht.getBase=Yt,Ht.relatedness=Xt,Ht.areSiblings=function(e,t){var n=Yt(e),i=Yt(t);return e!=n&&t!=i&&n==i},Ht.normalize=Wt,Ht.isSiblingOf=$t,Ht.isParentOf=Kt,Ht.areLanguageCompatible=Gt,Ht.areLocaleCompatible=function(e,t){return(e=Wt(e))==(t=Wt(t))};var Qt=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["
2ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function en(){this.g={}}function tn(e,t){for(var n in e.g)t(n,e.g[n])}function nn(e){this.h=e,this.g=null}function rn(e){this.h=e,this.g=null}function an(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function on(e){return""!=un().canPlayType(e)}function sn(){return dn("Tizen")}function ln(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!sn()}function cn(){if(!ln())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function dn(e){return(navigator.userAgent||"").includes(e)}function un(){return hn||(pn||(pn=new rn((function(){hn=null}))),(hn=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(hn=document.createElement("video")),pn.R(1),hn)}(i=en.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},i.get=function(e){return(e=this.g[e])?e.slice():null},i.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},i.size=function(){return Object.keys(this.g).length},i.keys=function(){return Object.keys(this.g)},nn.prototype.R=function(t){var n=this;this.stop();var i=!0,r=null;return this.g=function(){e.clearTimeout(r),i=!1},r=e.setTimeout((function(){i&&n.h()}),1e3*t),this},nn.prototype.stop=function(){this.g&&(this.g(),this.g=null)},rn.prototype.Nb=function(){return this.stop(),this.h(),this},rn.prototype.R=function(e){var t=this;return this.stop(),this.g=new nn((function(){t.h()})).R(e),this},rn.prototype.Ca=function(e){var t=this;return this.stop(),this.g=new nn((function(){t.g.R(e),t.h()})).R(e),this},rn.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},F("shaka.util.Timer",rn),rn.prototype.stop=rn.prototype.stop,rn.prototype.tickEvery=rn.prototype.Ca,rn.prototype.tickAfter=rn.prototype.R,rn.prototype.tickNow=rn.prototype.Nb;var pn=null,hn=null;function mn(e,t,n,i,r){var a=e.variants;(t.length||n.length)&&(a=function(e,t,n){for(var i={},r=(t=c(t)).next();!r.done;i={jd:i.jd},r=t.next())if(i.jd=r.value,r=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.jd)}}(i)),r.length){e=r;break}for(i={},n=c(n),t=n.next();!t.done;i={Vc:i.Vc},t=n.next())if(i.Vc=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.Vc)}}(i)),t.length){e=t;break}return e}(a,t,n)),t=function(e){for(var t=new en,n=(e=c(e)).next();!n.done;n=e.next()){var i=fn(n=n.value);t.push(i,n)}return t}(a=Dn(a,i)),t=function(e){var t=0,n=new Map,i=e.size();return tn(e,(function(e,r){for(var a=c(r),o=a.next();!o.done;o=a.next()){var s=(o=o.value).video;
2if(s&&s.width&&s.height){s=s.width*s.height*(s.frameRate||1),n.has(s)||n.set(s,new en);var l=n.get(s);l.push(e,o),l.size()===i&&(t=Math.max(t,s))}}})),t?n.get(t):e}(t);var o=function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next())if((i=i.value)==Un||i==Fn){if(1==(e=gn(e,i)).size())return e.keys()[0]}else if(i==Vn)break;return function(e){var t="",n=1/0;return tn(e,(function(e,i){for(var r=0,a=0,o=c(i),s=o.next();!s.done;s=o.next())r+=s.value.bandwidth||0,++a;(r/=a)<n&&(t=e,n=r)})),t}(e)}(t,r);e.variants=e.variants.filter((function(e){return fn(e)==o}))}function gn(e,t){var n=0,i=new en;return tn(e,(function(e,r){for(var a=0,o=0,s=c(r),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(a+=l.decodingInfos[0][t]?1:0,o++);(a/=o)>n?(i.g={},i.push(e,r),n=a):a==n&&i.push(e,r)})),i}function fn(e){var t="";e.video&&(t=Ot(e.video.codecs));var n="";return e.audio&&(n=Ot(e.audio.codecs)),t+"-"+n}function vn(e,t,n){function i(e,t,n){return e>=t&&e<=n}var r=e.video;return!(r&&r.width&&r.height&&(!i(r.width,t.minWidth,Math.min(t.maxWidth,n.width))||!i(r.height,t.minHeight,Math.min(t.maxHeight,n.height))||!i(r.width*r.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!i(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!i(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function bn(e,t){return P((function(n){return 1==n.g?x(n,yn(t,0<t.offlineSessionIds.length),2):(Tn(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return Bt(Dt(e.mimeType,e.codecs))}))}(t),x(n,function(e){var t,n,i,r,a,o,s;return P((function(l){switch(l.g){case 1:t=[],n=c(e.imageStreams),i=n.next();case 2:if(i.done){l.A(4);break}if(r=i.value,a=r.mimeType,qn.has(a)){l.A(5);break}if(!(o=Hn.get(a))){qn.set(a,!1),l.A(5);break}return x(l,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(o),7);case 7:s=l.h,qn.set(a,s);case 5:qn.get(a)&&t.push(r),i=n.next(),l.A(2);break;case 4:e.imageStreams=t,w(l)}}))}(t),0))}))}function yn(e,t){return P((function(n){if(1==n.g)return x(n,xn(e.variants,t,!1),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=An(t.codecs);if(t.codecs.includes(",")){var i=t.codecs.split(",");if(n=ct("video",i),i=ct("audio",i),i=Mt(t.mimeType,i,"audio"),!MediaSource.isTypeSupported(i))return!1}if(n=Mt(t.mimeType,n,"video"),!MediaSource.isTypeSupported(n))return!1}return!((n=e.audio)&&(i=kn(n.codecs),n=Mt(n.mimeType,i,"audio"),!MediaSource.isTypeSupported(n)))&&(dn("Xbox One")&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&t.codecs.includes("avc1.")?(Rn(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||Rn(e),t))})),w(n)}))}function xn(e,t,n){var i,r,a,o,s,l,d,u,p,h;return P((function(m){if(e.some((function(e){return e.decodingInfos.length})))return m.return();for(i=navigator.mediaCapabilities,r=[],a=function(e,t){var n;return P((function(r){return 1==r.g?(k(r,2),x(r,i.decodingInfo(t),4)):2!=r.g?(n=r.h,e.decodingInfos.push(n),T(r,0)):(S(r),JSON.stringify(t),void w(r))}))},o=c(e),s=o.next();!s.done;s=o.next())for(l=s.value,d=wn(l,t,n),u=c(d),p=u.next();!p.done;p=u.next())h=p.value,r.push(a(l,h));return x(m,Promise.all(r),0)}))}function wn(e,t,n){var i=e.audio,r=e.video;if(n={type:n?"file":"media-source"},r){var a=r.codecs;if(r.codecs.includes(",")){var o=r.codecs.split(",");a=An(a=ct("video",o)),o=ct("audio",o),o=Mt(r.mimeType,o,"audio"),n.audio={contentType:o,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(a=An(a),a=Mt(r.mimeType,a,"video"),n.video={contentType:a,width:r.width||1,height:r.height||1,bitrate:r.bandwidth||e.bandwidth||1,framerate:r.frameRate||1},r.hdr)switch(r.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(i&&(a=kn(i.codecs),a=Mt(i.mimeType,a,"audio"),n.audio={contentType:a,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio}),!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],a=new Map;for(var s=(o=c(o)).next();!s.done;s=o.next()){var l=s.value;a.get(l.keySystem)||a.set(l.keySystem,[]),a.get(l.keySystem).push(l)}o=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var d=(l=c(a.keys())).next();!d.done;d=l.next()){var u=d.value;d=Object.assign({},n);var p=a.get(u);for(u={keySystem:u,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},s=(p=c(p)).next();!s.done;s=p.next()){if((s=s.value).initData&&s.initData.length){for(var h=new Set,m=c(s.initData),g=m.next();!g.done;g=m.next())h.add(g.value.initDataType);u.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required"),s.persistentStateRequired&&(u.persistentState="required"),s.sessionType&&(u.sessionTypes=[s.sessionType]),i&&(u.audio?u.audio.robustness=u.audio.robustness||s.audioRobustness:u.audio={robustness:s.audioR
2obustness}),r&&(u.video?u.video.robustness=u.video.robustness||s.videoRobustness:u.video={robustness:s.videoRobustness})}d.keySystemConfiguration=u,e.push(d)}return e}function kn(e){return sn()&&"ac-3"==e.toLowerCase()?"ec-3":e}function An(e){return"vp9"==e?"vp09.00.10.08":e}function Tn(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Sn(n,e.audio)||t&&e&&e.video&&!Sn(t,e.video))}))}function Sn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function En(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,r=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var l=[];n&&l.push(n.mimeType),t&&l.push(t.mimeType),l=l[0]||null;var d=[];t&&d.push(t.kind),n&&d.push(n.kind),d=d[0]||null;var u=new Set;if(t)for(var p=c(t.roles),h=p.next();!h.done;h=p.next())u.add(h.value);if(n)for(h=(p=c(n.roles)).next();!h.done;h=p.next())u.add(h.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:d,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:l,audioMimeType:i,videoMimeType:r,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(u),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.
2id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function In(e){return{id:e.id,active:!1,type:ut,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function Cn(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=e.segmentIndex.get(0));var r=e.tilesLayout;return i&&(r=i.tilesLayout||r),r&&null!=t&&(t/=Number(r.split("x")[0])),r&&null!=n&&(n/=Number(r.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:r||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function _n(e){return e.__shaka_id||(e.__shaka_id=Bn++),e.__shaka_id}function jn(e){var t=Ln(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Nn(e){var t=Ln(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Ln(e){return{id:_n(e),active:!1,type:"",bandwidth:0,language:Wt(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
2oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function Pn(e){return e.allowedByApplication&&e.allowedByKeySystem}function Dn(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),i=new Map,r=(n=c(n)).next();!r.done;r=n.next()){var a=(r=r.value).audio.channelsCount;i.has(a)||i.set(a,[]),i.get(a).push(r)}return 0==(n=Array.from(i.keys())).length?e:(r=n.filter((function(e){return e<=t}))).length?i.get(Math.max.apply(Math,d(r))):i.get(Math.min.apply(Math,d(n)))}function Mn(e,t,n,i){var r=e,a=e.filter((function(e){return e.primary}));a.length&&(r=a);var o=r.length?r[0].language:"";if(r=r.filter((function(e){return e.language==o})),t){var s=Zt(Wt(t),e.map((function(e){return e.language})));s&&(r=e.filter((function(e){return Wt(e.language)==s})))}if(r=r.filter((function(e){return e.forced==i})),n){if((e=On(r,n)).length)return e}else if(e=r.filter((function(e){return 0==e.roles.length})),e.length)return e;return e=r.map((function(e){return e.roles})).reduce(ze,[]),e.length?On(r,e[0]):r}function On(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function Rn(e){var t=[];return e.audio&&t.push(zn(e.audio)),e.video&&t.push(zn(e.video)),t.join(", ")}function zn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}var Bn=0,Un="smooth",Fn="powerEfficient",Vn="bandwidth",qn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),Hn=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Gn(){var e=this;this.l=null,this.j=!1,this.h=new H,navigator.connection&&navigator.connection.addEventListener("change",(function(){if(e.g.useNetworkInformation&&e.j){e.h=new H,e.g&&e.h.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t)}})),this.i=[],this.o=1,this.s=!1,this.g=this.m=null}function Kn(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function $n(e,t){return e&&(t=t.filter((function(t){return vn(t,e,{width:1/0,height:1/0})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}function Wn(e,t){this.h=e,this.g=new Set([e]);for(var n=c(t=t||[]),i=n.next();!i.done;i=n.next())this.add(i.value)}function Xn(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var i=t.audio;n=!((!(!n.channelsCount||!i.channelsCount||2<n.channelsCount||2<i.channelsCount)||n.channelsCount==i.channelsCount)&&Yn(n,i)&&Jn(n.roles,i.roles))}return!n&&(n=e.video&&t.video)&&(n=!(Yn(n=e.video,i=t.video)&&Jn(n.roles,i.roles))),!n}function Yn(e,t){if(e.mimeType!=t.mimeType)return!1;var n=e.codecs.split(",").map((function(e){return Ot(e)})),i=t.codecs.split(",").map((function(e){return Ot(e)}));if(n.length!=i.length)return!1;n.sort(),i.sort();for(var r=c(Te(n.length)),a=r.next();!a.done;a=r.next())if(n[a=a.value]!=i[a])return!1;return!0}function Jn(e,t){var n=new Set(e),i=new Set(t);if(n.delete("main"),i.delete("main"),n.size!=i.size)return!1;for(var r=(n=c(n)).next();!r.done;r=n.next())if(!i.has(r.value))return!1;return!0}function Zn(e){this.g=e,this.h=new Qn(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function Qn(e,t,n,i){this.i=e,this.j=t,this.g=n,this.h=void 0===i?"":i}function ei(){this.g=ii,this.h=(new Map).set(ii,2).set(ni,1)}function ti(e,t,n){e.h.set(ii,n).set(ni,t)}(i=Gn.prototype).stop=function(){this.l=null,this.j=!1,this.i=[],this.o=1,this.m=null},i.init=function(e){this.l=e},i.chooseVariant=function(){var e=$n(this.g.restrictions,this.i),t=this.h.getBandwidthEstimate(Kn(this));this.i.length&&!e.length&&(e=[(e=$n(null,this.i))[0]]);for(var n=e[0]||null,i=0;i<e.length;i++){for(var r=e[i],a=isNaN(this.o)?1:Math.abs(this.o),o=a*r.bandwidth/this.g.bandwidthDowngradeTarget,s={bandwidth:1/0},l=i+1;l<e.length;l++)if(r.bandwidth!=e[l].bandwidth){s=e[l];break}a=a*s.bandwidth/this.g.bandwidthUpgradeTarget,t>=o&&t<=a&&n.bandwidth!=r.bandwidth&&(n=r)}return this.m=Date.now(),n},i.enable=function(){this.j=!0},i.disable=function(){this.j=!1},i.segmentDownloaded=function(e,t){if(this.h.sample(e,t),null!=this.m&&this.j)e:{if(this.s){if
2(Date.now()-this.m<1e3*this.g.switchInterval)break e}else{var n=this.h;if(!(n.g>=n.i))break e;this.s=!0}n=this.chooseVariant(),this.h.getBandwidthEstimate(Kn(this)),n&&this.l(n)}},i.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(this.g.defaultBandwidthEstimate)},i.setVariants=function(e){this.i=e},i.playbackRateChanged=function(e){this.o=e},i.configure=function(e){this.g=e,this.h&&this.g&&this.h.configure(this.g.advanced)},F("shaka.abr.SimpleAbrManager",Gn),Gn.prototype.configure=Gn.prototype.configure,Gn.prototype.playbackRateChanged=Gn.prototype.playbackRateChanged,Gn.prototype.setVariants=Gn.prototype.setVariants,Gn.prototype.getBandwidthEstimate=Gn.prototype.getBandwidthEstimate,Gn.prototype.segmentDownloaded=Gn.prototype.segmentDownloaded,Gn.prototype.disable=Gn.prototype.disable,Gn.prototype.enable=Gn.prototype.enable,Gn.prototype.chooseVariant=Gn.prototype.chooseVariant,Gn.prototype.init=Gn.prototype.init,Gn.prototype.stop=Gn.prototype.stop,Wn.prototype.add=function(e){return!!Xn(this.h,e)&&(this.g.add(e),!0)},Wn.prototype.values=function(){return this.g.values()},Zn.prototype.create=function(e){var t=this,n=e.filter((function(e){return Xn(t.g,e)}));return n.length?new Wn(n[0],n):this.h.create(e)},Qn.prototype.create=function(e){var t=[];t=function(e,t){var n=Wt(t),i=Zt(n,e.map((function(e){return Jt(e)})));return i?e.filter((function(e){return i==Jt(e)})):[]}(e,this.i);var n=e.filter((function(e){return e.primary}));for(e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&((e=Dn(t,this.g)).length&&(t=e)),this.h&&(e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.h),e.length&&(t=e)),e=new Wn(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,Xn(e.h,n)&&e.add(n);return e};var ni=0,ii=1;function ri(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.o=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function ai(e){var t,n;return P((function(i){if(1==i.g){if(e.g>=e.l){if(!e.i)throw new Ge(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?i.return():(n=e.h*(1+(2*Math.random()-1)*e.o),x(i,new Promise((function(e){new rn(e).R(n/1e3)})),2))}e.h*=e.m,w(i)}))}function oi(e,t){this.promise=e,this.i=t,this.g=!1}function si(e){return new oi(Promise.reject(e),(function(){return Promise.resolve()}))}function li(){var e=Promise.reject(new Ge(2,7,7001));return e.catch((function(){})),new oi(e,(function(){return Promise.resolve()}))}function ci(e){return new oi(Promise.resolve(e),(function(){return Promise.resolve()}))}function di(e){return new oi(e,(function(){return e.catch((function(){}))}))}function ui(e){return new oi(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function pi(t,n){if(n)if(n instanceof Map)for(var i=c(n.keys()),r=i.next();!r.done;r=i.next())r=r.value,Object.defineProperty(this,r,{value:n.get(r),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function hi(e){var t,n=new pi(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}function mi(){this.ga=new en,this.Cc=this}function gi(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var r,a=i?[]:{};for(r in n)a[r]=e(n[r]);return i&&(a.length=n.length),a}}(e)}function fi(e){var t,n={};for(t in e)n[t]=e[t];return n}function vi(){this.g=[]}function bi(e,t){e.g.push(t.finally((function(){ee(e.g,t)})))}function yi(e,t,n){mi.call(this),this.i=!1,this.m=new vi,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.s=n||null,this.o=!1}function xi(e,t,n,i){n=n||Ei;var r=Ii[e];(!r||n>=r.priority)&&(Ii[e]={priority:n,Hf:t,Jf:void 0!==i&&i})}function wi(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,
2streamDataCallback:void 0===n?null:n}}function ki(e,t,n,i,r,a,o){e.o&&(n.uris[r]=n.uris[r].replace("http://","https://"));var s=new $e(n.uris[r]),l=s.Fa,c=!1;l||(We(s,l=(l=location.protocol).slice(0,-1)),n.uris[r]=s.toString()),l=l.toLowerCase();var d=(l=Ii[l])?l.Hf:null;if(!d)return si(new Ge(2,1,1e3,s));var u,p=l.Jf,h=null,m=null,g=!1,f=!1;return di(ai(i)).aa((function(){if(e.i)return li();u=Date.now();var i=d(n.uris[r],n,t,(function(n,i,r){h&&h.stop(),m&&m.R(s/1e3),e.l&&t==Si&&(e.l(n,i),c=!0,o.g=r)}),(function(i){e.j&&e.j(i,n,t),f=!0}));if(!p)return i;var a=n.retryParameters.connectionTimeout;a&&(h=new rn((function(){g=!0,i.abort()}))).R(a/1e3);var s=n.retryParameters.stallTimeout;return s&&(m=new rn((function(){g=!0,i.abort()}))),i})).aa((function(i){h&&h.stop(),m&&m.stop(),null==i.timeMs&&(i.timeMs=Date.now()-u);var r={response:i,wf:c};return!f&&e.j&&e.j(i.headers,n,t),r}),(function(s){if(h&&h.stop(),m&&m.stop(),e.s){var l=null,c=0;s instanceof Ge&&(l=s,1001==s.code&&(c=s.data[1])),e.s(n,l,c,g)}if(e.i)return li();if(g&&(s=new Ge(1,1,1003,n.uris[r],t)),s instanceof Ge){if(7001==s.code)throw s;if(1010==s.code)throw a;if(1==s.severity)return l=new pi("retry",l=(new Map).set("error",s)),e.dispatchEvent(l),r=(r+1)%n.uris.length,ki(e,t,n,i,r,s,o)}throw s}))}function Ai(){this.g=0}function Ti(e,t,n){oi.call(this,e,t),this.h=n}oi.prototype.abort=function(){return this.g=!0,this.i()},oi.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},oi.prototype.aa=function(e,t){function n(n){return function(s){if(r.g&&n)a.reject(o);else{var l=n?e:t;l?i=function(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(l,s,a):(n?a.resolve:a.reject)(s)}}}function i(){return a.reject(o),r.abort()}var r=this,a=new mt,o=new Ge(2,7,7001);return this.promise.then(n(!0),n(!1)),new oi(a,(function(){return i()}))},F("shaka.util.AbortableOperation",oi),oi.prototype.chain=oi.prototype.aa,oi.prototype.finally=oi.prototype.finally,oi.all=ui,oi.prototype.abort=oi.prototype.abort,oi.notAbortable=di,oi.completed=ci,oi.aborted=li,oi.failed=si,pi.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},pi.prototype.stopImmediatePropagation=function(){this.g=!0},pi.prototype.stopPropagation=function(){},F("shaka.util.FakeEvent",pi),mi.prototype.addEventListener=function(e,t){this.ga&&this.ga.push(e,t)},mi.prototype.removeEventListener=function(e,t){this.ga&&this.ga.remove(e,t)},mi.prototype.dispatchEvent=function(e){if(!this.ga)return!0;var t=this.ga.get(e.type)||[],n=this.ga.get("All");for(n&&(t=t.concat(n)),n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.Cc,e.currentTarget=this.Cc;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},mi.prototype.release=function(){this.ga=null},vi.prototype.destroy=function(){for(var e=[],t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},f(yi,mi),(i=yi.prototype).Od=function(e){this.o=e},i.Kf=function(e){this.g.add(e)},i.ag=function(e){this.g.delete(e)},i.Oe=function(){this.g.clear()},i.Lf=function(e){this.h.add(e)},i.bg=function(e){this.h.delete(e)},i.Pe=function(){this.h.clear()},i.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),mi.prototype.release.call(this),this.m.destroy()},i.request=function(e,t){var n=this,i=new Ai;if(this.i){var r=Promise.reject(new Ge(2,7,7001));return r.catch((function(){})),new Ti(r,(function(){return Promise.resolve()}),i)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?gi(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=gi(t.uris),r=function(e,t,n){for(var i=ci(void 0),r={},a=(e=c(e.g)).next();!a.done;r={dd:r.dd},a=e.next())r.dd=a.value,i=i.aa(function(e){return function(){return n.body&&(n.body=_e(n.body)),e.dd(t,n)}}(r));return i.aa(void 0,(function(e){if(e instanceof Ge&&7001==e.code)throw e;throw new Ge(2,1,1006,e)}))}(this,e,t);var a=r.aa((function(){return ki(n,e,t,new ri(t.retryParameters,!1),0,null,i)})),o=a.aa((function(t){return function(e,t,n){for(var i=ci(void 0),r={},a=(e=c(e.h)).next();!a.done;r={ed:r.ed},a=e.next())r.ed=a.value,i=i.aa(function(e){return function(){var i=n.response;return i.data&&(i.data=_e(i.data)),e.ed(t,i)}}(r));return i.aa((function(){return n}),(function(e){var t=2;if(e instanceof Ge){if(7001==e.code)throw e;t=e.severity}throw new Ge(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),l=0;r.promise.then((function(){l=Date.now()-s}),(function(){}));var d=0;a.promise.then((function(){d=Date.now()}),(function(){}));var u=o.aa((function(t){var i=Date.now()-d,r=t.response;return r.timeMs+=l,r.timeMs+=i,t.wf||!n.l||r.fromCache||e!=Si||n.l(r.timeMs,r.data.byteLength),r}),(function(e){throw e&&(e.severity=2),e}));return r=new Ti(u.promise,(function(){return u.abort()}),i),bi(this.m,r),r},F("shaka.net.NetworkingEngine",yi),yi.prototype.request=yi.prototype.request,yi.prototype.destroy=yi.prototype.destroy,yi.makeRequest=wi,yi.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},yi.prototype.clearAllResponseFilters=yi.prototype.Pe,yi.prototype.unregisterResponseFilter=yi.prototype.bg,yi.prototype.registerResponseFilter=yi.prototype.Lf,yi.prototype.clearAllRequestFilters=yi.prototype.Oe,yi.prototype.unregisterRequestFilter=yi.prototype.ag,yi.prototype.registerRequestFilter=yi.prototype.Kf,yi.unregisterScheme=function(e){delete Ii[e]},yi.registerScheme=xi,yi.prototype.setForceHTTPS=yi.prototype.Od,yi.NumBytesRemainingClass=Ai,f(Ti,oi),yi.PendingRequest=Ti;var Si=1;yi.RequestType={MANIFEST:0,SEGMENT:Si,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var Ei=3;yi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Ei};var Ii={};function Ci(e){this.g=!1,this.h=new mt,this.i=e}function _i(e,t){if(e.g){if(t instanceof Ge&&7003==t.code)throw t;throw new Ge(2,7,7003,t)}}function ji(){this.g=new en}function Ni(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Li;
2if(null==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}Li=t}return t||!1}(e)?t:t.capture||!1}(e,i),this.target.addEventListener(t,n,this.g)}Ci.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(i=ji.prototype).release=function(){this.nb(),this.g=null},i.B=function(e,t,n,i){this.g&&(e=new Ni(e,t,n,i),this.g.push(t,e))},i.ta=function(e,t,n,i){var r=this;this.B(e,t,(function i(a){r.Da(e,t,i),n(a)}),i)},i.Da=function(e,t,n){if(this.g)for(var i=this.g.get(t)||[],r=(i=c(i)).next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.Da(),this.g.remove(t,r))},i.nb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,d(t.g[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.Da();this.g.g={}}},F("shaka.util.EventManager",ji),ji.prototype.removeAll=ji.prototype.nb,ji.prototype.unlisten=ji.prototype.Da,ji.prototype.listenOnce=ji.prototype.ta,ji.prototype.listen=ji.prototype.B,ji.prototype.release=ji.prototype.release,Ni.prototype.Da=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Li=void 0;function Pi(){}function Di(e){return new $e(e=yt(e)).Ha}function Mi(e,t,n){function i(e){Ne(a).setUint32(o,e.byteLength,!0),o+=4,a.set(je(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new Ge(2,6,6015);var r;r="string"==typeof t?wt(t,!0):t,e=wt(e=yt(e),!0);var a=new Uint8Array(12+e.byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function Oi(e){for(var t=new Map,n=c(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function Ri(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function zi(e,t){if(!e&&!t)return!0;if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=c(e),i=n.next();!i.done;i=n.next()){var r=c(i.value);if(i=r.next().value,r=r.next().value,!t.has(i))return!1;if((i=t.get(i))!=r||null==i)return!1}return!0}function Bi(e,t){var n=this;t=void 0===t?1:t,this.D=e,this.H=new Set,this.j=this.s=null,this.pa=this.fa=!1,this.J=0,this.g=null,this.o=new ji,this.i=new Map,this.C=[],this.u=new mt,this.h=null,this.m=function(t){n.u.reject(t),e.onError(t)},this.qa=new Map,this.ga=new Map,this.X=new rn((function(){return function(e){var t=e.qa,n=e.ga;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),t=Array.from(n.values()),t.length&&t.every((function(e){return"expired"==e}))&&e.m(new Ge(2,6,6014)),e.D.Nc(Ri(n))}(n)})),this.N=!1,this.L=[],this.V=!1,this.ha=new rn((function(){!function(e){e.i.forEach((function(t,n){var i=t.Ed,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.D.onExpirationUpdated(n.sessionId,r),t.Ed=r)}))}(n)})).Ca(t),this.u.catch((function(){})),this.l=new Ci((function(){return function(e){return P((function(t){switch(t.g){case 1:return e.o.release(),e.o=null,e.u.reject(),e.ha.stop(),e.ha=null,e.X.stop(),e.X=null,x(t,Qi(e),2);case 2:if(!e.j){t.A(3);break}return k(t,4),x(t,e.j.setMediaKeys(null),6);case 6:T(t,5);break;case 4:S(t);case 5:e.j=null;case 3:e.g=null,e.H.clear(),e.s=null,e.C=[],e.h=null,e.m=function(){},e.D=null,e.$=!1,e.G=null,w(t)}}))}(n)})),this.$=!1,this.G=null}function Ui(e,t,n){return e.C=n,e.N=0<n.length,Fi(e,t)}function Fi(t,n){var i,r,a,o,s,l,d,u,p,h,m,g;return P((function(f){if(1==f.g){if(i=function(t){if(t=Oi(t.h.clearKeys),0==t.size)return null;var n=[],i=[];t.forEach((function(e,t){var r=It(t),a=It(e);r={kty:"oct",kid:St(r,!1),k:St(a,!1)},n.push(r),i.push(r.kid)})),t=JSON.stringify({keys:n});var r=JSON.stringify({kids:i});return r=[{initData:je(xt(r)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:r,keyIds:new Set(i)}}(t))for(r=c(n),a=r.next();!a.done;a=r.next())(o=a.value).video&&(o.video.drmInfos=[i]),o.audio&&(o.audio.drmInfos=[i]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(l=Oi(t.h.servers),function(e,t){var n=[];t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioR
2obustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}));for(var i=c(e),r=i.next();!r.done;r=i.next())(r=r.value).video&&(r.video.drmInfos=n),r.audio&&(r.audio.drmInfos=n)}(n,l)),d=c(n),a=d.next();!a.done;a=d.next())for(u=a.value,p=tr(u),h=c(p),m=h.next();!m.done;m=h.next())rr(m.value,Oi(t.h.servers),Oi(t.h.advanced||{}));return x(f,xn(n,t.N,t.$),2)}return s||Object.keys(t.h.servers).length?(g=Wi(t,void 0,n),f.return(s?g:g.catch((function(){})))):(t.fa=!0,f.return(Promise.resolve()))}))}function Vi(e){var t;return P((function(n){switch(n.g){case 1:if(e.j.mediaKeys)return n.return();if(!e.G){n.A(2);break}return x(n,e.G,3);case 3:return n.return();case 2:return k(n,4),e.G=e.j.setMediaKeys(e.s),x(n,e.G,6);case 6:T(n,5);break;case 4:t=S(n),e.m(new Ge(2,6,6003,t.message));case 5:_i(e.l),w(n)}}))}function qi(e){var t,n;return P((function(i){switch(i.g){case 1:if(!e.s||!e.g)return i.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){i.A(2);break}return t=wi([e.g.serverCertificateUri],e.h.retryParameters),k(i,3),x(i,e.D.lb.request(5,t).promise,5);case 5:n=i.h,e.g.serverCertificate=je(n.data),T(i,4);break;case 3:throw new Ge(2,6,6017,S(i));case 4:if(e.l.g)return i.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(k(i,6),x(i,e.s.setServerCertificate(e.g.serverCertificate),8)):i.return();case 8:T(i,0);break;case 6:throw new Ge(2,6,6004,S(i).message)}}))}function Hi(e){for(var t=(e.g?e.g.initData:[])||[],n=c(t),i=n.next();!i.done;i=n.next())Gi(e,(i=i.value).initDataType,i.initData);for(i=(n=c(e.C)).next();!i.done;i=n.next())Xi(e,i.value);return t.length||e.C.length||e.u.resolve(),e.u}function Gi(t,n,i){if(i.length){for(var r=t.i.values(),a=(r=c(r)).next();!a.done;a=r.next())if(Ie(i,a.value.initData)&&!dn("Tizen 2"))return;!function(t,n,i,r){try{var a=t.s.createSession(r)}catch(e){return void t.m(new Ge(2,6,6005,e.message))}if(t.o.B(a,"message",(function(e){t.j&&t.h.delayLicenseRequestUntilPlayed&&t.j.paused&&!t.V?t.L.push(e):Ji(t,e)})),t.o.B(a,"keystatuseschange",(function(e){return Zi(t,e)})),t.i.set(a,{initData:i,loaded:!1,Ed:1/0,La:null,type:r}),e.shakaMediaKeysPolyfill)try{i=t.h.initDataTransform(i,n,t.g)}catch(e){return n=e,e instanceof Ge||(n=new Ge(2,6,6016,e)),void t.m(n)}t.h.logLicenseExchange&&St(i),a.generateRequest(n,i).catch((function(e){if(!t.l.g){t.i.delete(a);var n=e.errorCode;if(n&&n.systemCode){var i=n.systemCode;0>i&&(i+=Math.pow(2,32)),i="0x"+i.toString(16)}t.m(new Ge(2,6,6006,e.message,e,i))}}))}(t,n,i,t.g.sessionType)}}function Ki(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}function $i(e){return e=Ae(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function Wi(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f;return P((function(v){switch(v.g){case 1:if(i=new Map,n.length){r=function(e,t,n){for(var i=c(t),r=i.next();!r.done;r=i.next()){var a=c(tr(r.value));for(r=a.next();!r.done;r=a.next())r=r.value,n.has(r.keySystem)||n.set(r.keySystem,[]),n.get(r.keySystem).push(r)}if(1==n.size&&n.has(""))throw new Ge(2,6,6e3);for(i={},e=c(e.h.preferredKeySystems),r=e.next();!r.done;i={bd:i.bd},r=e.next())for(i.bd=r.value,a=c(t),r=a.next();!r.done;r=a.next())if(r=r.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.bd}}(i)))return r.keySystemAccess;for(e=c([!0,!1]),r=e.next();!r.done;r=e.next())for(i=r.value,a=c(t),r=a.next();!r.done;r=a.next()){var o=c(r.value.decodingInfos);for(r=o.next();!r.done;r=o.next()){var s=r.value;if(s.supported&&s.keySystemAccess){var l=c(r=n.get(s.keySystemAccess.keySystem));for(r=l.next();!r.done;r=l.next())if(!!r.value.licenseServerUri==i)return s.keySystemAccess}}}return null}(e,n,i),v.A(2);break}return x(v,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v;return P((function(b){switch(b.g){case 1:if(1==t.size&&t.has(""))throw new Ge(2,6,6e3);for(i=c(t.values()),r=i.next();!r.done;r=i.next())0==(a=r.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=c(e.h.preferredKeySystems),s=o.next();
2case 2:if(s.done){b.A(4);break}if(l=s.value,!t.has(l)){b.A(3);break}return d=t.get(l),k(b,6),x(b,navigator.requestMediaKeySystemAccess(l,[d]),8);case 8:return n=b.h,b.return(n);case 6:S(b);case 7:_i(e.l);case 3:s=o.next(),b.A(2);break;case 4:u=c([!0,!1]),p=u.next();case 9:if(p.done){b.A(11);break}h=p.value,m=c(t.keys()),s=m.next();case 12:if(s.done){p=u.next(),b.A(9);break}if(g=s.value,f=t.get(g),v=f.drmInfos.some((function(e){return!!e.licenseServerUri})),v!=h){b.A(13);break}return k(b,15),x(b,navigator.requestMediaKeySystemAccess(g,[f]),17);case 17:return n=b.h,b.return(n);case 15:S(b);case 16:_i(e.l);case 13:s=m.next(),b.A(12);break;case 11:return b.return(n)}}))}(e,t),3);case 3:r=v.h;case 2:if(!(a=r))throw new Ge(2,6,6001);for(_i(e.l),k(v,4),e.H.clear(),o=a.getConfiguration(),s=o.audioCapabilities||[],l=o.videoCapabilities||[],d=c(s),u=d.next();!u.done;u=d.next())p=u.value,e.H.add(p.contentType.toLowerCase());for(h=c(l),u=h.next();!u.done;u=h.next())m=u.value,e.H.add(m.contentType.toLowerCase());if(n.length){var b=a.keySystem,y=i.get(a.keySystem),w=[],A=[],E=[],I=[],C=new Set;ir(y,w,E,A,I,C);var _=e.N?"persistent-license":"temporary";for(b={keySystem:b,licenseServerUri:w[0],distinctiveIdentifierRequired:y[0].distinctiveIdentifierRequired,persistentStateRequired:y[0].persistentStateRequired,sessionType:y[0].sessionType||_,audioRobustness:y[0].audioRobustness||"",videoRobustness:y[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:A[0],initData:I,keyIds:C},w=(y=c(y)).next();!w.done;w=y.next())(w=w.value).distinctiveIdentifierRequired&&(b.distinctiveIdentifierRequired=w.distinctiveIdentifierRequired),w.persistentStateRequired&&(b.persistentStateRequired=w.persistentStateRequired);y=b}else y=a.keySystem,b=t.get(a.keySystem),w=[],A=[],E=[],I=[],C=new Set,ir(b.drmInfos,w,E,A,I,C),y={keySystem:y,licenseServerUri:w[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,sessionType:b.sessionTypes[0]||"temporary",audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:A[0],initData:I,keyIds:C};if(e.g=y,!e.g.licenseServerUri)throw new Ge(2,6,6012,e.g.keySystem);return x(v,a.createMediaKeys(),6);case 6:return g=v.h,_i(e.l),e.s=g,e.fa=!0,x(v,qi(e),7);case 7:_i(e.l),T(v,0);break;case 4:if(f=S(v),_i(e.l,f),e.g=null,e.H.clear(),f instanceof Ge)throw f;throw new Ge(2,6,6002,f.message)}}))}function Xi(e,t){var n,i,r,a,o;return P((function(s){switch(s.g){case 1:try{n=e.s.createSession("persistent-license")}catch(t){return i=new Ge(2,6,6005,t.message),e.m(i),s.return(Promise.reject(i))}return e.o.B(n,"message",(function(t){e.j&&e.h.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.V?e.L.push(t):Ji(e,t)})),e.o.B(n,"keystatuseschange",(function(t){return Zi(e,t)})),r={initData:null,loaded:!1,Ed:1/0,La:null,type:"persistent-license"},e.i.set(n,r),k(s,2),x(s,n.load(t),4);case 4:return a=s.h,_i(e.l),a?(r.loaded=!0,nr(e)&&e.u.resolve(),s.return(n)):(e.i.delete(n),e.m(new Ge(2,6,6013)),s.return(Promise.resolve()));case 2:o=S(s),_i(e.l,o),e.i.delete(n),e.m(new Ge(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function Yi(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=Mi(e,n=Di(e),t)),e}function Ji(e,t){var n,i,r,a,o,s,l,d,u,p,h,m;P((function(g){switch(g.g){case 1:return n=t.target,e.h.logLicenseExchange&&St(t.message),i=e.i.get(n),r=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=wi([r],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,Ki(e.g.keySystem)&&function(e){var t=bt(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),i=n.next();!i.done;i=n.next())i=i.value,e.headers[i.getElementsByTagName("name")[0].textContent]=i.getElementsByTagName("value")[0].textContent;e.body=Et(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),k(g,2),x(g,e.D.lb.request(2,o).promise,4);case 4:l=g.h,T(g,3);break;case 2:return d=S(g),u=new Ge(2,6,6007,d),e.m(u),i&&i.La&&i.La.reject(u),g.return();case 3:return e.l.g?g.return():(e.J+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&St(l.data),k(g,5),x(g,n.update(l.data),7));case 7:T(g,6);break;case 5:return p=S(g),h=new Ge(2,6,6008,p.message),e.m(h),i&&i.La&&i.La.reject(h),g.return();case 6:m=new pi("drmsessionupdate"),e.D.onEvent(m),i&&(i.La&&i.La.resolve(),new rn((function(){i.loaded=!0,nr(e)&&e.u.resolve()})).R(or)),w(g)}}))}function Zi(e,t){var n=t.target,i=e.i.get(n),r=!1;
2n.keyStatuses.forEach((function(t,n){if("string"==typeof n){var a=n;n=t,t=a}if(Ki(e.g.keySystem)&&16==n.byteLength&&navigator.userAgent.match(/Edge?\//)){var o=(a=Ne(n)).getUint32(0,!0),s=a.getUint16(4,!0),l=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,l,!1)}"status-pending"!=t&&(i.loaded=!0),"expired"==t&&(r=!0),a=Ct(n),e.qa.set(a,t)}));var a=n.expiration-Date.now();(0>a||r&&1e3>a)&&i&&!i.La&&(e.i.delete(n),n.close().catch((function(){}))),nr(e)&&(e.u.resolve(),e.X.R(sr))}function Qi(e){var t;return P((function(n){return t=Array.from(e.i.entries()),e.i.clear(),x(n,Promise.all(t.map((function(t){var n=(t=c(t)).next().value,i=t.next().value;return P((function(t){return 1==t.g?(k(t,2),e.pa||e.C.includes(n.sessionId)||"persistent-license"!==i.type?x(t,function(e){var t;return P((function(n){return 1==n.g?(t=new Promise((function(e,t){new rn(t).R(ar)})),k(n,2),x(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?T(n,0):(S(n),void w(n))}))}(n),5):x(t,n.remove(),5)):2!=t.g?T(t,0):(S(t),void w(t))}))}))),0)}))}function er(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){r=r.value;for(var a={},o=c(t),s=o.next();!s.done;a={Ea:a.Ea},s=o.next())if(s=s.value,r.keySystem==s.keySystem){a.Ea=[],a.Ea=a.Ea.concat(r.initData||[]),a.Ea=a.Ea.concat(s.initData||[]),a.Ea=a.Ea.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Ea.findIndex((function(e){return e.keyId===t.keyId}))}}(a)),o=r.keyIds&&s.keyIds?new Set([].concat(d(r.keyIds),d(s.keyIds))):r.keyIds||s.keyIds,n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||s.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||s.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||s.persistentStateRequired,videoRobustness:r.videoRobustness||s.videoRobustness,audioRobustness:r.audioRobustness||s.audioRobustness,serverCertificate:r.serverCertificate||s.serverCertificate,serverCertificateUri:r.serverCertificateUri||s.serverCertificateUri,initData:a.Ea,keyIds:o});break}}return n}function tr(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function nr(e){return function(e,t){for(var n=c(e),i=n.next();!i.done;i=n.next())if(!t(i.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function ir(e,t,n,i,r,a){for(var o={},s=(e=c(e)).next();!s.done;o={oa:o.oa},s=e.next()){if(o.oa=s.value,t.includes(o.oa.licenseServerUri)||t.push(o.oa.licenseServerUri),i.includes(o.oa.serverCertificateUri)||i.push(o.oa.serverCertificateUri),o.oa.serverCertificate&&(n.some(function(e){return function(t){return Ie(t,e.oa.serverCertificate)}}(o))||n.push(o.oa.serverCertificate)),o.oa.initData){s={};for(var l=c(o.oa.initData),d=l.next();!d.done;s={sc:s.sc},d=l.next())s.sc=d.value,r.some(function(e){return function(t){var n=e.sc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&Ie(t.initData,n.initData)}}(s))||r.push(s.sc)}if(o.oa.keyIds)for(l=(s=c(o.oa.keyIds)).next();!l.done;l=s.next())a.add(l.value)}}function rr(t,n,i){!t.keySystem||"org.w3.clearkey"==t.keySystem&&t.licenseServerUri||(n.size&&(n=n.get(t.keySystem)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(i=i.get(t.keySystem))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==t.keySystem&&(t.keySystem="com.chromecast.playready"))}F("shaka.util.FairPlayUtils",Pi),Pi.initDataTransform=Mi,Pi.defaultGetContentId=Di,(i=Bi.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e){this.h=e},i.Xb=function(t){var n,i=this;return P((function(r){if(1==r.g)return i.s?(i.j=t,i.o.ta(i.j,"play",(function(){for(var e=c(i.L),t=e.next();!t.done;t=e.next())Ji(i,t.value);i.V=!0,i.L=[]})),"webkitCurrentPlaybackTargetIsWireless"in i.j&&i.o.B(i.j,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return Qi(i)})),(n=i.g.initData.find((function(e){return 0<e.initData.length})))||e.shakaMediaKeysPolyfill||i.C.length?x(r,Vi(i),2):r.A(2)):(i.o.ta(t,"encrypted",(function(){i.m(new Ge(2,6,6010))})),r.return());Hi(i),n||i.C.length||i.o.B(i.j,"encrypted",(function(e){return function(e,t){return P((function(n){if(1==n.g)return x(n,Vi(e),2);Gi(e,t.initDataType,je(t.initData)),w(n)}))}(i,e)})),w(r)}))},i.ac=function(){for(var e=1/0,t=this.i.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},i.Gc=function(){return Ri(this.ga)};var ar=1,or=5,sr=.5,lr=new gt((function(){return _e(new Uint8Array([0]))}));function cr(){}function dr(e,t,n,i){var r,a,o,s;return P((function(l){if(1==l.g)return i&&(r=hr[i.toLowerCase()])?l.return(r):(a=pr(e))&&(o=mr[a])?l.return(o):i?l.A(2):x(l,ur(e,t,n),3);if(2!=l.g&&(i=l.h)&&(s=hr[i]))return l.return(s);throw new Ge(2,4,4e3,e)}))}function ur(e,t,n){var i,r,a;return P((function(o){return 1==o.g?((i=wi([e],n)).method="HEAD",x(o,t.request(0,i).promise,2)):(r=o.h,a=r.headers["content-type"],o.return(a?a.toLowerCase().split(";").shift():""))}))}function pr(e){return 1==(e=new $e(e).va.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}F("shaka.media.ManifestParser",cr),cr.unregisterParserByMime=function(e){delete hr[e]},cr.registerParserByMime=function(e,t){hr[e]=t},cr.registerParserByExtension=function(e,t){mr[e]=t};var hr={},mr={};function gr(e,t){this.P=Ne(e),this.h=t==vr,this.g=0}function fr(){return new Ge(2,3,3e3)}(i=gr.prototype).ma=function(){return this.g<this.P.byteLength},i.ba=function(){return this.g},i.af=function(){return this.P.byteLength},i.Sa=function(){try{var e=this.P.getUint8(this.g);return this.g+=1,e}catch(e){throw fr()}},i.Gd=function(){try{var e=this.P.getUint16(this.g,this.h);return this.g+=2,e}catch(e){throw fr()}},i.M=function(){try{var e=this.P.getUint32(this.g,this.h);return this.g+=4,e}catch(e){throw fr()}},i.re=function(){try{var e=this.P.getInt32(this.g,this.h);return this.g+=4,e}catch(e){throw fr()}},i.Lb=function(){try{if(this.h)var e=this.P.getUint32(this.g,!0),t=this.P.getUint32(this.g+4,!0);else t=this.P.getUint32(this.g,!1),e=this.P.getUint32(this.g+4,!1)}catch(e){throw fr()}if(2097151<t)throw new Ge(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},i.$a=function(e){if(this.g+e>this.P.byteLength)throw fr();var t=je(this.P,this.g,e);return this.g+=e,t},i.skip=function(e){if(this.g+e>this.P.byteLength)throw fr();this.g+=e},i.Rf=function(e){if(this.g<e)throw fr();this.g-=e},i.seek=function(e){if(0>e||e>this.P.byteLength)throw fr();this.g=e},i.jc=function(){for(var e=this.g;this.ma()&&0!=this.P.getUint8(this.g);)this.g+=1;return e=je(this.P,e,this.g-e),this.g+=1,vt(e)},F("shaka.util.DataViewReader",gr),gr.prototype.readTerminatedString=gr.prototype.jc,gr.prototype.seek=gr.prototype.seek,gr.prototype.rewind=gr.prototype.Rf,gr.prototype.skip=gr.prototype.skip,gr.prototype.readBytes=gr.prototype.$a,gr.prototype.readUint64=gr.prototype.Lb,gr.prototype.readInt32=gr.prototype.re,gr.prototype.readUint32=gr.prototype.M,gr.prototype.readUint16=gr.prototype.Gd,gr.prototype.readUint8=gr.prototype.Sa,gr.prototype.getLength=gr.prototype.af,gr.prototype.getPosition=gr.prototype.ba,gr.prototype.hasMoreData=gr.prototype.ma;var vr=1;function br(){this.i=[],this.h=[],this.g=!1}function yr(e){for(var t=Tr(e);
2e.reader.ma()&&!e.parser.g;)e.parser.Pc(e.start+t,e.reader,e.partialOkay)}function xr(e){for(var t=Tr(e),n=e.reader.M(),i=(n=c(Te(n))).next();!i.done&&(e.parser.Pc(e.start+t,e.reader,e.partialOkay),!e.parser.g);i=n.next());}function wr(e){return function(t){e(t.reader.$a(t.reader.P.byteLength-t.reader.ba()))}}function kr(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function Ar(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Tr(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}gr.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:vr},(i=br.prototype).box=function(e,t){var n=kr(e);return this.i[n]=Sr,this.h[n]=t,this},i.S=function(e,t){var n=kr(e);return this.i[n]=Er,this.h[n]=t,this},i.stop=function(){this.g=!0},i.parse=function(e,t,n){for(e=new gr(e,0),this.g=!1;e.ma()&&!this.g;)this.Pc(0,e,t,n)},i.Pc=function(e,t,n,i){var r=t.ba();if(i&&r+8>t.P.byteLength)this.g=!0;else{var a=t.M(),o=t.M(),s=!1;switch(a){case 0:a=t.P.byteLength-r;break;case 1:if(i&&t.ba()+8>t.P.byteLength)return void(this.g=!0);a=t.Lb(),s=!0}var l=this.h[o];if(l){var c=null,d=null;if(this.i[o]==Er){if(i&&t.ba()+4>t.P.byteLength)return void(this.g=!0);c=(d=t.M())>>>24,d&=16777215}o=r+a,n&&o>t.P.byteLength&&(o=t.P.byteLength),i&&o>t.P.byteLength?this.g=!0:(i=o-t.ba(),l({parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new gr(t=0<i?t.$a(i):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:s}))}else t.skip(Math.min(r+a-t.ba(),t.P.byteLength-t.ba()))}},F("shaka.util.Mp4Parser",br),br.headerSize=Tr,br.typeToString=Ar,br.allData=wr,br.sampleDescription=xr,br.children=yr,br.prototype.parseNext=br.prototype.Pc,br.prototype.parse=br.prototype.parse,br.prototype.stop=br.prototype.stop,br.prototype.fullBox=br.prototype.S,br.prototype.box=br.prototype.box;var Sr=0,Er=1;function Ir(e,t,n,i,r){var a=_r.value(),o=e.subarray(n.start,n.start+n.size),s=Ne(o),l=new Uint8Array(n.size+a.byteLength);for(l.set(o,0),(o=Ne(l)).setUint32(4,r),l.set(a,n.size),r=s.getUint32(4),o.setUint32(n.size+16,r),Cr(l,0,l.byteLength),r=new 
2Uint8Array(e.byteLength+l.byteLength),n=dn("Xbox One")?n.start:n.start+n.size,a=e.subarray(n),r.set(e.subarray(0,n)),r.set(l,n),r.set(a,n+l.byteLength),i=(e=c(i)).next();!i.done;i=e.next())Cr(r,(i=i.value).start,i.size+l.byteLength);return l=Ne(r,t.start),t=Tr(t),e=l.getUint32(t),l.setUint32(t,e+1),r}function Cr(e,t,n){0!=(t=(e=Ne(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var _r=new gt((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function jr(e,t,n,i,r){if(i>=r)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){o=s;break}if(-1===a||-1===o)return null;for(var l=s=!1,c="white",d="black",u=Nr(i,r,s,l,c,d);a<=o;a++){for(var p=n[a],h=-1,m=-1,g=0;g<p.length;g++)if(null!=p[g]&&""!==p[g].g.trim()){h=g;break}for(g=p.length-1;0<=g;g--)if(null!=p[g]&&""!==p[g].g.trim()){m=g;break}if(-1===h||-1===m)p=Lr(i,r),e.nestedCues.push(p);else{for(;h<=m;h++)if(g=p[h]){var f=g.l,v=g.i,b=g.j,y=g.h;f==s&&v==l&&b==c&&y==d||(u.payload&&e.nestedCues.push(u),u=Nr(i,r,f,v,b,y),s=f,l=v,c=b,d=y),u.payload+=g.g}else u.payload+=" ";u.payload&&e.nestedCues.push(u),a!==o&&(u=Lr(i,r),e.nestedCues.push(u)),u=Nr(i,r,s,l,c,d)}}return e.nestedCues.length?{cue:e,stream:t}:null}function Nr(e,t,n,i,r,a){return e=new ie(e,t,""),n&&e.textDecoration.push("underline"),i&&(e.fontStyle="italic"),e.color=r,e.backgroundColor=a,e}function Lr(e,t){var n=new ie(e,t,"");return n.lineBreak=!0,n}function Pr(e,t,n,i,r){this.g=e,this.l=t,this.i=n,this.h=i,this.j=r}function Dr(e,t){this.i=[],this.g=1,this.h=0,this.u=e,this.s=t,this.j=this.m=!1,this.l="white",this.o="black",Or(this)}function Mr(e,t,n){return jr(new ie(t,n,""),"CC"+(e.u<<1|e.s+1),e.i,t,n)}function Or(e){Br(e,0,15),e.g=1}function Rr(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case Ur:i=Hr.has(n)?Hr.get(n):String.fromCharCode(n);break;case Fr:i=Gr.get(n);break;case Vr:e.i[e.g].pop(),i=Kr.get(n);break;case qr:e.i[e.g].pop(),i=$r.get(n)}i&&e.i[e.g].push(new Pr(i,e.m,e.j,e.o,e.l))}}function zr(e,t,n,i){if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map((function(e){return e}));else for(var r=0;r<i;r++)e.i[t+r]=e.i[n+r].map((function(e){return e}))}function Br(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var Ur=0,Fr=1,Vr=2,qr=3,Hr=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),Gr=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),Kr=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),$r=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function Wr(e,t){this.h=Zr,this.o=new Dr(e,t),this.i=new Dr(e,t),this.l=new Dr(e,t),this.g=this.i,this.j=0,this.m=null}function Xr(e,t,n){e.g=e.i;var i=e.g,r=null;return e.h!==ea&&e.h!==ta&&(r=Mr(i,e.j,n),(n=e.i).g=0<n.h?n.h:0,Br(n,0,15),(n=e.l).g=0<n.h?n.h:0,Br(n,0,15),i.g=15),e.h=ea,i.h=t,r}function Yr(e){e.h=Qr,e.g=e.l,e.g.h=0}function Jr(e){W("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.o,e.h=ta}var Zr=0,Qr=1,ea=3,ta=4,na="black green blue cyan red yellow magenta black".split(" "),ia="white green blue cyan red yellow magenta white_italics".split(" ");function ra(){this.l=!1,this.C=this.G=0,this.D=pa,this.i=[],this.g=this.h=this.j=0,this.u=this.o=!1,this.s="white",this.m="black",aa(this)}function aa(e){e.i=[];for(var t=0;15>t;t++)e.i.push(oa())}function oa(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function sa(e,t){la(e)&&(e.i[e.h][e.g]=new Pr(t,e.u,e.o,e.m,e.s),e.g++)}function la(e){var t=e.g<e.C&&0<=e.g;return e.h<e.G&&0<=e.h&&t}function ca(e,t,n){var i=new ie(e.j,t,"");return i.textAlign=e.D===da?"left":e.D===ua?"right":oe,(n=jr(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}ra.prototype.isVisible=function(){return this.l};var da=0,ua=1,pa=2;function ha(){this.i=[],this.h=null,this.g=0}function ma(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new ga(e.h)),e.h=null,e.g=0))}function ga(e){this.g=0,this.h=e}function fa(e){if(!e.ma())throw new Ge(2,2,3e3);return e.h[e.g++]}function va(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function ba(e,t,n,i){if(128<=n&&135>=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=fa(t).value,t=null;
2for(var r=(n=c(ya(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=ca(r,i,e.i)),aa(r);return t}if(137===n)for(t=fa(t).value,n=(t=c(ya(e,t))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=fa(t).value,t=null,r=(n=c(ya(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=ca(r,i,e.i)),r.l=!1;return t}if(139===n){for(n=fa(t).value,t=null,r=(n=c(ya(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=ca(r,i,e.i):r.j=i,r.l=!r.l;return t}if(140===n)return xa(e,t=fa(t).value,i);if(143===n)return i=xa(e,255,i),wa(e),i;if(144===n)t.skip(1),i=fa(t).value,e.g&&(e.g.o=0<(128&i),e.g.u=0<(64&i));else if(145===n)i=fa(t).value,n=fa(t).value,t.skip(1),e.g&&(t=ka((48&n)>>4,(12&n)>>2,3&n),e.g.s=ka((48&i)>>4,(12&i)>>2,3&i),e.g.m=t);else if(146===n)i=fa(t).value,t=fa(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=fa(t).value,t.skip(1),e.g&&(e.g.D=3&i);else if(152<=n&&159>=n){if(n=(15&n)-8,!(r=null!==e.h[n])){var a=new ra;a.j=i,e.h[n]=a}i=fa(t).value,fa(t),fa(t),a=fa(t).value;var o=fa(t).value;t=fa(t).value,r&&!(7&t)||((t=e.h[n]).h=0,t.g=0,t.u=!1,t.o=!1,t.s="white",t.m="black"),(t=e.h[n]).l=0<(32&i),t.G=1+(15&a),t.C=1+(63&o),e.g=e.h[n]}}}return null}ga.prototype.ma=function(){return this.g<this.h.length},ga.prototype.ba=function(){return this.g},ga.prototype.skip=function(e){if(this.g+e>this.h.length)throw new Ge(2,2,3e3);this.g+=e};var ya=function e(t,n){var i;return L(e,(function(e){return 1==e.g&&(i=0),5!=e.g?8>i?!(1&~n)&&t.h[i]?x(e,i,5):e.A(5):e.A(0):(n>>=1,i++,e.A(2))}))};function xa(e,t,n){for(var i=null,r=(t=c(ya(e,t))).next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(i=ca(a,n,e.i)),e.h[r]=null}return i}function wa(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function ka(e,t,n){var i={0:0,1:0,2:1,3:1};return Ta[(e=i[e])<<2|(t=i[t])<<1|(n=i[n])]}var Aa=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Ta="black blue green cyan red magenta yellow white".split(" ");function Sa(){this.h=[],this.g=[],this.i=new ha,this.l=0,this.s=new Map([["CC1",new Wr(0,0)],["CC2",new Wr(0,1)],["CC3",new Wr(1,0)],["CC4",new Wr(1,1)]]),this.o=this.m=0,this.j=new Map,Ea(this)}function Ea(e){e.m=0,e.o=0;for(var t=(e=c(e.s.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,Or(t.i),Or(t.l),Or(t.o)}function Ia(e,t){var n=t.type;if(16==(112&t.xa)){var i=t.xa>>3&1;0===n?e.m=i:e.o=i}if(n=e.s.get("CC"+(n<<1|(n?e.o:e.m)+1)),255===t.xa&&255===t.Oa||!t.xa&&!t.Oa||!_a(t.xa)||!_a(t.Oa))return 45<=++e.l&&Ea(e),null;if(e.l=0,t.xa&=127,t.Oa&=127,!t.xa&&!t.Oa)return null;if(i=null,16==(112&t.xa))e:{var r=t.xa;if(i=t.Oa,n.m===(r<<8|i))n.m=null;else if(n.m=r<<8|i,16==(240&r)&&64==(192&i)){r=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|i>>5&1];var a=(30&i)>>1,o="white",s=!1;if(7>a?o=ia[a]:7===a&&(s=!0),i=!(1&~i),n.h!==ta){if(a=n.g,n.h===ea&&r!==a.g){var l=1+r-a.h;zr(a,l,1+a.g-a.h,a.h),Br(a,0,l-1),Br(a,r+1,15-r)}a.g=r,n.g.m=i,n.g.j=s,n.g.l=o,n.g.o="black"}}else if(17==(247&r)&&32==(240&i))n.g.m=!1,n.g.j=!1,n.g.l="white",Rr(n.g,Ur,32),o=!1,"white_italics"===(r=ia[(14&i)>>1])&&(r="white",o=!0),n.g.m=!(1&~i),n.g.j=o,n.g.l=r;else if(16==(247&r)&&32==(240&i)||23==(247&r)&&45==(255&i))o="black",!(7&r)&&(o=na[(14&i)>>1]),n.g.o=o;else if(17==(247&r)&&48==(240&i))Rr(n.g,Fr,i);else if(18==(246&r)&&32==(224&i))Rr(n.g,1&r?qr:Vr,i);else if(20==(246&r)&&32==(240&i)){switch(i=t.pts,r=null,t.Oa){case 32:Yr(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=Xr(n,2,i);break;case 38:r=Xr(n,3,i);break;case 39:r=Xr(n,4,i);break;case 40:Rr(n.g,Ur,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=i;break;case 42:Or(n.o),Jr(n);break;case 43:Jr(n);break;case 44:r=n.i,o=null,n.h!==ta&&(o=Mr(r,n.j,i)),Br(r,0,15),r=o;break;case 45:r=n.g,n.h!==ea?r=null:(o=Mr(r,n.j,i),zr(r,(s=r.g-r.h+1)-1,s,r.h),Br(r,0,s-1),Br(r,r.g,15-r.g),n.j=i,r=o);break;case 46:Br(n.l,0,15);break;case 47:r=null,n.h!==ta&&(r=Mr(n.i,n.j,i)),o=n.l,n.l=n.i,n.i=o,Yr(n),n.j=i}i=r;break e}i=null}else r=t.Oa,Rr(n.g,Ur,t.xa),Rr(n.g,Ur,r);return i}function Ca(e,t){var n=[];try{for(;t.ma();){var i=fa(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&fa(t).value),0!=r){e.j.has(r)||e.j.set(r,new va(r));for(var o=e.j.get(r),s=t.ba();t.ba()-s<a;){var l=fa(r=t),c=l.value,d=l.pts;if(16===c)c=c<<16|fa(r).value;if(0<=c&&31>=c){var u=d;if(o.g){var p=o.g;switch(r=null,c){case 8:!la(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.C-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:if(p.isVisible()&&(r=ca(p,u,o.i)),p.h+1>=p.G){u=p;for(var h=0,m=1;15>m;m++,h++)u.i[h]=u.i[m];for(m=0;1>m;m++,h++)u.i[h]=oa()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(r=ca(p,u,o.i)),p.i[p.h]=oa(),p.g=0;break;case 12:p.isVisible()&&(r=ca(p,u,o.i)),aa(p),(u=p).h=0,u.g=0}var g=r}else g=null}else if(128<=c&&159>=c)g=ba(o,r,c,d);else{if(4096<=c&&4127>=c)8<=(u=255&c)&&15>=u?r.skip(1):16<=u&&23>=u?r.skip(2):24<=u&&31>=u&&r.skip(3);else if(4224<=c&&4255>=c)128<=(u=255&c)&&135>=u?r.skip(4):136<=u&&143>=u&&r.skip(5);else if(32<=c&&127>=c)r=c,o.g&&sa(o.g,127===r?"♪":String.fromCharCode(r));else if(160<=c&&255>=c)o.g&&sa(o.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(r=255&c,o.g)if(Aa.has(r)){var f=Aa.get(r);sa(o.g,f)}else sa(o.g,"_")}else 4256<=c&&4351>=c&&o.g&&sa(o.g,160!=(255&c)?"_":"[CC]");g=null}(r=g)&&n.push(r)}}}}catch(e){if(!(e instanceof Ge&&3e3===e.code))throw e;
2W("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function _a(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function ja(){}var Na=function e(t,n){var i,r,a,o;return L(e,(function(e){if(1==e.g){for(var t=n,s=0,l=0;l<t.length;)2==s&&3==t[l]?(s=0,(t=[].concat(d(t))).splice(l,1),t=new Uint8Array(t)):0==t[l]?s++:s=0,l++;i=t,r=0}if(4!=e.g){if(!(r<i.length))return e.A(0);for(a=0;255==i[r];)a+=255,r++;for(a+=i[r++],o=0;255==i[r];)o+=255,r++;return o+=i[r++],4!=a?e.A(4):x(e,i.subarray(r,r+o),4)}return r+=o,e.A(2)}))};function La(e,t){var n=null,i=null,r=e.M();return 1&t&&e.skip(8),2&t&&e.skip(4),8&t&&(n=e.M()),16&t&&(i=e.M()),{trackId:r,de:n,Re:i}}function Pa(e,t){return{Yd:1==t?e.Lb():e.M()}}function Da(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.M()}}function Ma(e,t,n){var i=e.M(),r=[];1&n&&e.skip(4),4&n&&e.skip(4);for(var a=c(Te(i)),o=a.next();!o.done;o=a.next())o={Kd:null,sampleSize:null,Rc:null},256&n&&(o.Kd=e.M()),512&n&&(o.sampleSize=e.M()),1024&n&&e.skip(4),2048&n&&(o.Rc=0==t?e.M():e.re()),r.push(o);return{Og:i,te:r}}function Oa(){this.j=new ja,this.i=new Map,this.h=this.g=0}function Ra(){this.h=new Oa,this.g=new Sa}function za(e,t){for(var n=e.h.parse(t),i=(n=c(n)).next();!i.done;i=n.next()){var r=i.value,a=je(r.Gf);if(0<a.length&&(i=e.g,r=r.pts,181===(a=new gr(a,0)).Sa()&&49===a.Gd()&&1195456820===a.M()&&3===a.Sa())){var o=a.Sa();if(64&o){o&=31,a.skip(1);for(var s=0;s<o;s++){var l=a.Sa(),u=(4&l)>>2,p=a.Sa(),h=a.Sa();u&&(0===(l&=3)||1===l?i.h.push({pts:r,type:l,xa:p,Oa:h,order:i.h.length}):(i.g.push({pts:r,type:l,value:p,order:i.g.length}),i.g.push({pts:r,type:2,value:h,order:i.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var i=c(e.h),r=i.next();!r.done;r=i.next())(r=Ia(e,r.value))&&n.push(r);for(r=(i=c(e.g)).next();!r.done;r=i.next())ma(e.i,r.value);for(r=(i=c(e.i.i)).next();!r.done;r=i.next())r=Ca(e,r.value),n.push.apply(n,d(r));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function Ba(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function Ua(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function Fa(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=c(Va(e)),r=i.next();!r.done;r=i.next()){var a=r.value;r=a.start,(a=a.end)>t&&(n+=a-Math.max(r,t))}return n}function Va(e){if(!e)return[];for(var t=[],n=c(Te(e.length)),i=n.next();!i.done;i=n.next())i=i.value,t.push({start:e.start(i),end:e.end(i)});return t}function qa(e,t,n,i){var r=this;this.j=e,this.l=n,this.h={},this.H={},this.g=null,this.J=i||function(){},this.i={},this.o=new ji,this.s={},this.u=t,this.D=new mt,this.m=function(e,t){var n=new MediaSource;return e.o.ta(n,"sourceopen",(function(){URL.revokeObjectURL(e.G),t.resolve()})),e.G=io(n),e.j.src=e.G,n}(this,this.D),this.C=new Ci((function(){return function(e){var t,n,i,r,a,o,s;return P((function(l){if(1==l.g){for(n in t=[],e.i)for(i=e.i[n],r=i[0],e.i[n]=i.slice(0,1),r&&t.push(r.p.catch(Be)),a=c(i.slice(1)),o=a.next();!o.done;o=a.next())o.value.p.reject(new Ge(2,7,7003,void 0));
2for(s in e.g&&t.push(e.g.destroy()),e.l&&t.push(e.l.destroy()),e.s)t.push(e.s[s].destroy());return x(l,Promise.all(t),2)}e.o&&(e.o.release(),e.o=null),e.j&&(e.j.removeAttribute("src"),e.j.load(),e.j=null),e.m=null,e.g=null,e.l=null,e.h={},e.s={},e.u=null,e.i={},w(l)}))}(r)})),this.G=""}function Ha(e,t,n){e.g||(e.g=new zt(e.l)),e=e.g,"application/cea-608"!=t&&"application/cea-708"!=t&&(e.j=Fe(qt[t]),e.j.setSequenceMode?e.j.setSequenceMode(n):$('Text parsers should have a "setSequenceMode" method!'))}function Ga(e){return!e.m||"ended"==e.m.readyState}function Ka(e,t){if(t==ut)var n=e.g.g;else n=!(n=Wa(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function $a(e,t){return t==ut?e.g.h:Ba(Wa(e,t))}function Wa(e,t){try{return e.h[t].buffered}catch(e){return null}}function Xa(e,t,n,i,r,a,o,s){var l,d,u,p,h,m,g,f,v;return P((function(b){return 1==b.g?(l=pt,null!=i&&s&&t!=l.Y&&o&&(d=i,Za(e,t,(function(){var n=d;0>n&&(n+=.001),e.h[t].timestampOffset=n,Ja(e,t)}))),t==l.Y?x(b,function(e,t,n,i){var r,a,o;return P((function(s){return 1==s.g?x(s,Promise.resolve(),2):e.j&&e.i?null==n||null==i?(e.j.parseInit(je(t)),s.return()):(r={periodStart:e.u,segmentStart:n,segmentEnd:i},a=e.j.parseMedia(je(t),r),o=a.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.i.append(o),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(i,e.m),void w(s)):s.return()}))}(e.g,n,i,r),0):e.s[t]?x(b,function(e,t){e.l=!0,e.h=new mt,e.m=[],e.j=[],e.i=[];var n=je(t);return e.g.push(n),e.g.flush(),e.l&&e.h.reject(new Ge(2,3,3018)),e.h}(e.s[t],n),10):a?(e.g||Ha(e,"text/vtt",s||!1),null==i&&null==r?e.u.init(n):(u=za(e.u,n)).length&&(p=e.h[l.Na].timestampOffset,Vt(e.g,u,i,r,p)),n=no(e,n,i,t),x(b,Za(e,t,(function(){e.h[t].appendBuffer(n)})),0)):(n=no(e,n,i,t),x(b,Za(e,t,(function(){e.h[t].appendBuffer(n)})),0))):(h=b.h,e.g||Ha(e,"text/vtt",s||!1),h.metadata&&(m=e.h[t].timestampOffset,e.J(h.metadata,m,r)),h.captions&&h.captions.length&&(g=e.h[l.Na].timestampOffset,f=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new ie(n.startTime,n.endTime,n.text)});return t}(h.captions),Vt(e.g,f,i,r,g)),v=h.data,v=no(e,v,i,t),x(b,Za(e,t,(function(){e.h[t].appendBuffer(v)})),0))}))}function Ya(e,t){return P((function(n){return t==pt.Y?e.g?x(n,e.g.remove(0,1/0),0):n.return():x(n,Za(e,t,(function(){var n=e.m.duration;0>=n?Ja(e,t):e.h[t].remove(0,n)})),0)}))}function Ja(e,t){var n=e.i[t][0];n&&(n.p.resolve(),eo(e,t))}function Za(e,t,n){return _i(e.C),n={start:n,p:new mt},e.i[t].push(n),1==e.i[t].length&&to(e,t),n.p}function Qa(e,t){var n,i,r,a,o;return P((function(s){switch(s.g){case 1:for(r in _i(e.C),n=[],i={},e.h)i.Rb=new mt,a={start:function(e){return function(){return e.Rb.resolve()}}(i),p:i.Rb},e.i[r].push(a),n.push(i.Rb),1==e.i[r].length&&a.start(),i={Rb:i.Rb};return k(s,2),x(s,Promise.all(n),4);case 4:T(s,3);break;case 2:throw S(s);case 3:try{t()}catch(e){throw new Ge(2,3,3015,e)}finally{for(o in e.h)eo(e,o)}w(s)}}))}function eo(e,t){e.i[t].shift(),to(e,t)}function to(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new Ge(2,3,3017,t)):n.p.reject(new Ge(2,3,3015,i)),eo(e,t)}}function no(e,t,n,i){var r=e.j.mediaKeys;return null==n&&r&&(sn()||dn("Xbox One"))&&"mp4"==e.H[i].split(";")[0].split("/")[1]&&(t=function(e){function t(){r=!0}function n(e){a.push(e),yr(e)}e=je(e);var i,r=!1,a=[],o=[];if((new br).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).S("stsd",(function(e){i=e,a.push(e),xr(e)})).S("encv",t).S("enca",t).S("avc1",(function(e){o.push({box:e,hc:1701733238})})).S("avc3",(function(e){o.push({box:e,hc:1701733238})})).S("ac-3",(function(e){o.push({box:e,hc:1701733217})})).S("ec-3",(function(e){o.push({box:e,hc:1701733217})})).S("mp4a",(function(e){o.push({box:e,hc:1701733217})})).parse(e),r)return e;if(0==o.length||!i)throw Ct(e),new Ge(2,3,3019);o.reverse();for(var s=c(o),l=s.next();!l.done;l=s.next())l=l.value,e=Ir(e,i,l.box,a,l.hc);return e}(t)),t}Oa.prototype.init=function(e){var t=this,n=[],i=[];if((new br).box("moov",yr).box("mvex",yr).S("trex",(function(e){var n=e.reader;n.skip(4),n.skip(4),e=n.M(),n=n.M(),t.g=e,t.h=n})).box("trak",yr).S("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.M(),n.push(e)})).box("mdia",yr).S("mdhd",(function(e){e=Da(e.reader,e.version),i.push(e.timescale)})).parse(e,!0),!n.length||!i.length||n.length!=i.length)throw new Ge(2,2,2010);
2n.forEach((function(e,n){t.i.set(e,i[n])}))},Oa.prototype.parse=function(e){var t=this,n=[],i=this.g,r=this.h,a=[],o=null,s=9e4;return(new br).box("moof",yr).box("traf",yr).S("trun",(function(e){a=Ma(e.reader,e.version,e.flags).te})).S("tfhd",(function(e){e=La(e.reader,e.flags),i=e.de||t.g,r=e.Re||t.h,e=e.trackId,t.i.has(e)&&(s=t.i.get(e))})).S("tfdt",(function(e){o=Pa(e.reader,e.version).Yd})).box("mdat",(function(e){if(null===o)throw new Ge(2,2,2010);e=e.reader;var l=o,d=s,u=i,p=r,h=a,m=0,g=p;for(h.length&&(g=h[0].sampleSize||p);e.ma();){var f=e.M();if(6==(31&e.Sa())){var v=0;h.length>m&&(v=h[m].Rc||0),v=(l+v)/d;for(var b=c(Na(t.j,e.$a(f-1))),y=b.next();!y.done;y=b.next())n.push({Gf:y.value,pts:v})}else try{e.skip(f-1)}catch(e){break}0==(g-=f+4)&&(l=h.length>m?l+(h[m].Kd||u):l+u,m++,g=h.length>m&&h[m].sampleSize||p)}})).parse(e,!1),n},Ra.prototype.init=function(e){this.h.init(e)},(i=qa.prototype).destroy=function(){return this.C.destroy()},i.init=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,l,d,u=this;return P((function(p){if(1==p.g)return i=pt,x(p,u.D,2);for(r={},a=c(e.keys()),o=a.next();!o.done;r={ra:r.ra},o=a.next())r.ra=o.value,s=e.get(r.ra),l=Dt(s.mimeType,s.codecs),r.ra==i.Y?Ha(u,l,n):(!t&&MediaSource.isTypeSupported(l)||!Nt(l,r.ra)||(u.s[r.ra]=new jt,l=Pt(r.ra,l)),d=u.m.addSourceBuffer(l),n&&(d.mode=ro),u.o.B(d,"error",function(e){return function(){u.i[e.ra][0].p.reject(new Ge(2,3,3014,u.j.error?u.j.error.code:0))}}(r)),u.o.B(d,"updateend",function(e){return function(){return Ja(u,e.ra)}}(r)),u.h[r.ra]=d,u.H[r.ra]=l,u.i[r.ra]=[]);w(p)}))},i.Za=function(){var e={total:Va(this.j.buffered),audio:Va(Wa(this,"audio")),video:Va(Wa(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},i.remove=function(e,t,n){var i=this;return P((function(r){return e==pt.Y?x(r,i.g.remove(t,n),0):x(r,Za(i,e,(function(){n<=t?Ja(i,e):i.h[e].remove(t,n)})),0)}))},i.flush=function(e){var t=this;return P((function(n){return e==pt.Y?n.return():x(n,Za(t,e,(function(){t.j.currentTime-=.001,Ja(t,e)})),0)}))},i.endOfStream=function(e){var t=this;return P((function(n){return x(n,Qa(t,(function(){Ga(t)||(e?t.m.endOfStream(e):t.m.endOfStream())})),0)}))},i.Ka=function(e){var t=this;return P((function(n){return x(n,Qa(t,(function(){t.m.duration=e})),0)}))},i.getDuration=function(){return this.m.duration};var io=e.URL.createObjectURL,ro="sequence",ao=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function oo(e,t,n,i){this.ya=e,this.Ba=t,this.la=n,this.xd=void 0===i?null:i}function so(e,t,n,i,r,a,o,s,l,c,d,u){c=void 0===c?[]:c,this.startTime=e,this.l=this.endTime=t,this.j=n,this.Ba=i,this.la=r,this.g=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=l,this.h=c,this.tilesLayout=void 0===d?"":d,this.i=void 0===u?null:u}function lo(e,t,n){this.j=e,this.Qc=t,this.m=this.l=1/0,this.g=1,this.h=this.i=null,this.o=0,this.s=!0,this.u=0,this.C=void 0===n||n,this.D=0}function co(e,t){this.j=e,this.m=po(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.o=t,this.i=function(){}}function uo(e){this.g=e}function po(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=c(Va(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function ho(e,t,n,i,r){var a=this;this.g=e,this.C=t,this.l=n,this.u=r,this.i=new ji,this.s=!1,this.D=e.readyState,this.j=!1,this.h=i,this.o=!1,this.i.B(e,"waiting",(function(){return mo(a)})),this.m=new rn((function(){mo(a)})).Ca(.25)}function mo(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.s)return}else e.s=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.D&&(e.j=!1,e.D=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,i=po(n),r=n.g.currentTime,a=Date.now()/1e3;t.g==r&&t.m==i||(t.l=a,t.g=r,t.m=i,t.h=!1),(i=(r=a-t.l)>=t.o&&i&&!t.h)&&(t.i(t.g,r),t.h=!0,t.g=n.g.currentTime),t=!i}if(t){r=e.l.smallGapLimit;var o=e.g.currentTime;if(n=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Va(e).findIndex((function(e,i,r){return e.start>t&&(0==i||r[i-1].end-t<=n)})))?e:null}(t=e.g.buffered,o,e.l.gapDetectionThreshold),!(null==n||0==n&&!e.o||(i=t.start(n),i>=e.C.Pa()))){var s=i-o;r=s<=r,a=!1,.001>s||(r||e.j||(e.j=!0,(o=new pi("largegap",o=(new Map).set("currentTime",o).set("gapSize",s))).c
2ancelable=!0,e.u(o),e.l.jumpLargeGaps&&!o.defaultPrevented&&(a=!0)),!r&&!a)||(0!=n&&t.end(n-1),e.g.currentTime=i)}}}}}function go(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=fo.value().get(t),n.ta(e,t,i))}oo.prototype.dc=function(){return this.Ba},oo.prototype.$b=function(){return this.la},F("shaka.media.InitSegmentReference",oo),oo.prototype.getEndByte=oo.prototype.$b,oo.prototype.getStartByte=oo.prototype.dc,(i=so.prototype).ya=function(){return this.j()},i.lf=function(){return this.startTime},i.Ze=function(){return this.endTime},i.dc=function(){return this.Ba},i.$b=function(){return this.la},i.tf=function(){return this.tilesLayout},i.rf=function(){return this.i},F("shaka.media.SegmentReference",so),so.prototype.getTileDuration=so.prototype.rf,so.prototype.getTilesLayout=so.prototype.tf,so.prototype.getEndByte=so.prototype.$b,so.prototype.getStartByte=so.prototype.dc,so.prototype.getEndTime=so.prototype.Ze,so.prototype.getStartTime=so.prototype.lf,so.prototype.getUris=so.prototype.ya,(i=lo.prototype).getDuration=function(){return this.l},i.ef=function(){return this.g},i.Ka=function(e){this.l=e},i.kf=function(){return this.j},i.ye=function(e){this.o=e},i.oc=function(e){this.s=e},i.Rd=function(e){this.m=e},i.Xf=function(e){this.Qc=e},i.Ye=function(){return this.Qc},i.Ib=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.Cd(e[0].startTime),this.g=e.reduce((function(e,t){return Math.max(e,t.endTime-t.startTime)}),this.g),this.h=Math.max(this.h,t),null!=this.j&&this.C&&(this.j=(Date.now()+this.o)/1e3-this.h-this.g)}},i.Cd=function(e){this.i=null==this.i?e:Math.min(this.i,e)},i.Bd=function(e){this.g=Math.max(this.g,e)},i.offset=function(e){null!=this.i&&(this.i+=e),null!=this.h&&(this.h+=e)},i.T=function(){return 1/0==this.l&&!this.s},i.kb=function(){return 1/0!=this.l&&!this.s},i.Qa=function(){return Math.max(this.u,this.fb()-this.m)},i.ze=function(e){this.u=e},i.fb=function(){return this.T()||this.kb()?Math.min(Math.max(0,(Date.now()+this.o)/1e3-this.g-this.j)+this.D,this.l):this.h||this.l},i.cc=function(e){var t=Math.max(this.i,this.u);return 1/0==this.m?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.fb()-this.m+e,this.Pa()))},i.Eb=function(){return this.cc(0)},i.Pa=function(){return Math.max(0,this.fb()-(this.T()||this.kb()?this.Qc:0))},i.Ce=function(){return!(null==this.j||null!=this.h&&this.C)},i.xe=function(e){this.D=e},F("shaka.media.PresentationTimeline",lo),lo.prototype.setAvailabilityTimeOffset=lo.prototype.xe,lo.prototype.usingPresentationStartTime=lo.prototype.Ce,lo.prototype.getSeekRangeEnd=lo.prototype.Pa,lo.prototype.getSeekRangeStart=lo.prototype.Eb,lo.prototype.getSafeSeekRangeStart=lo.prototype.cc,lo.prototype.getSegmentAvailabilityEnd=lo.prototype.fb,lo.prototype.setUserSeekStart=lo.prototype.ze,lo.prototype.getSegmentAvailabilityStart=lo.prototype.Qa,lo.prototype.isInProgress=lo.prototype.kb,lo.prototype.isLive=lo.prototype.T,lo.prototype.offset=lo.prototype.offset,lo.prototype.notifyMaxSegmentDuration=lo.prototype.Bd,lo.prototype.notifyMinSegmentStartTime=lo.prototype.Cd,lo.prototype.notifySegments=lo.prototype.Ib,lo.prototype.getDelay=lo.prototype.Ye,lo.prototype.setDelay=lo.prototype.Xf,lo.prototype.setSegmentAvailabilityDuration=lo.prototype.Rd,lo.prototype.setStatic=lo.prototype.oc,lo.prototype.setClockOffset=lo.prototype.ye,lo.prototype.getPresentationStartTime=lo.prototype.kf,lo.prototype.setDuration=lo.prototype.Ka,lo.prototype.getMaxSegmentDuration=lo.prototype.ef,lo.prototype.getDuration=lo.prototype.getDuration,co.prototype.release=function(){this.j=null,this.i=function(){}},ho.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.m&&(this.m.stop(),this.m=null),this.h&&(this.h.release(),this.h=null),this.g=this.C=this.u=null},ho.prototype.Fd=function(){this.o=!0,mo(this)};var fo=new gt((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function vo(e,t,n){var i=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new ji,this.i=new ko(e),go(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){xo(i,i.j)}))}function bo(e){return e.m?e.g.currentTime:e.j}function yo(e,t){0<e.g.readyState?Ao(e.i,t):go(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){xo(e,e.j)}))}function xo(e,t){.001>Math.abs(e.g.currentTime-t)?wo(e):(e.h.ta(e.g,"seeking",(function(){wo(e)})),Ao(e.i,0==e.g.currentTime?t:e.g.currentTime))}function wo(e){e.m=!0,e.h.B(e.g,"seeking",(function(){return e.l()}))}function ko(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new rn((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function Ao(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.Ca(.1)}function To(e){var t=this;this.g=e,this.j=!1,this.h=null,this.i=new ji,go(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==t.h||0==t.h?t.j=!0:(t.i.ta(t.g,"seeking",(function(){t.j=!0})),t.g.currentTime=Math.max(0,t.g.currentTime+t.h))}))}function So(e,t,n,i,r,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.G=t.minBufferTime||0,this.l=n,this.C=r,this.u=null,this.j=new ho(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,i=new co(new uo(e),t.stallThreshold);return function(e,t){e.i=t}
2(i,(function(){n?e.currentTime+=n:(e.pause(),e.play())})),i}(e,n),a),this.h=new vo(e,(function(){var e=o.j;e.s=!0,e.o=!1,e.j=!1;var t=bo(o.h);return e=Io(o,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!o.u||o.u<t-1)?(o.u=t,yo(o.h,e),e=void 0):(o.C(),e=void 0),e}),function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.Eb():e.g.Pa():0>t&&(t=e.g.Pa()+t),Eo(e,Co(e,t))}(this,i)),this.s=new rn((function(){if(0!=o.i.readyState&&!o.i.paused){var e=bo(o.h),t=o.g.Eb(),n=o.g.Pa();3>n-t&&(t=n-3),e<t&&(e=Io(o,e),o.i.currentTime=e)}})).Ca(.25)}function Eo(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function Io(e,t){var n=Math.max(e.G,e.l.rebufferingGoal),i=e.l.safeSeekOffset,r=e.g.Eb(),a=e.g.Pa(),o=e.g.getDuration();3>a-r&&(r=a-3);var s=e.g.cc(n),l=e.g.cc(i);return n=e.g.cc(n+i),t>=o?Eo(e,t):t>a?a:t<r?Ua(e.i.buffered,l)?l:n:t>=s||Ua(e.i.buffered,t)?t:n}function Co(e,t){var n=e.g.Eb();return t<n||t>(n=e.g.Pa())?n:t}function _o(e){this.K=e,this.g=null,this.h=0,this.i=!1}function jo(e,t,n){return new _o([new so(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function No(e,t,n){this.i=e,this.h=t,this.g=n}function Lo(){_o.call(this,[]),this.j=[]}function Po(e){var t=this;this.g=e,this.j=!1,this.i=this.g.Jc(),this.h=new rn((function(){t.g.pe(.25*t.i)}))}function Do(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.Jc()!=t&&e.g.Qd(t))}catch(e){}e.h.Ca(.25),0!=e.g.Jc()&&e.g.Qd(0)}function Mo(e){var t=this;this.h=e,this.g=new Set,this.i=new rn((function(){Oo(t,!1)})).Ca(.25)}function Oo(e,t){for(var n=c(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function Ro(e){mi.call(this),this.g=new Map,this.h=e}function zo(e){mi.call(this);var t=this;this.g=new Set,this.i=e,this.h=new rn((function(){for(var e=t.i(),n=c(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime<e.start&&(t.g.delete(i),i=new pi("regionremove",new Map([["region",i]])),t.dispatchEvent(i))})).Ca(2)}function Bo(e){mi.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{sb:null,rb:Vo,jb:function(e,n){return Uo(t,"enter",e,n)}},{sb:Fo,rb:Vo,jb:function(e,n){return Uo(t,"enter",e,n)}},{sb:qo,rb:Vo,jb:function(e,n){return Uo(t,"enter",e,n)}},{sb:Vo,rb:Fo,jb:function(e,n){return Uo(t,"exit",e,n)}},{sb:Vo,rb:qo,jb:function(e,n){return Uo(t,"exit",e,n)}},{sb:Fo,rb:qo,jb:function(e,n){return Uo(t,"skip",e,n)}},{sb:qo,rb:Fo,jb:function(e,n){return Uo(t,"skip",e,n)}}],this.h=new ji,this.h.B(this.i,"regionremove",(function(e){t.g.delete(e.region)}))}function Uo(e,t,n,i){t=new pi(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}vo.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},ko.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},To.prototype.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},To.prototype.o=function(e){this.h=this.j?this.h:e},To.prototype.m=function(){return(this.j?this.g.currentTime:this.h)||0},To.prototype.D=function(){},So.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.s&&(this.s.stop(),this.s=null),this.i=this.h=this.g=this.l=null,this.C=function(){}},So.prototype.o=function(e){yo(this.h,e)},So.prototype.m=function(){var e=bo(this.h);return 0<this.i.readyState&&!this.i.paused?Co(this,e):e},So.prototype.D=function(){this.j.Fd()},(i=_o.prototype).destroy=function(){return De("shaka.media.SegmentIndex","Please use release() instead of destroy()."),this.release(),Promise.resolve()},i.release=function(){this.i||(this.K=[],this.g&&this.g.stop(),this.g=null)},i.Af=function(){this.i=!0},i.find=function(e){for(var t=this.K.length-1,n=t;0<=n;--n){var i=this.K[n],r=n<t?this.K[n+1].startTime:i.endTime;if(e>=i.startTime&&e<r)return n+this.h}return this.K.length&&e<this.K[0].startTime?this.h:null},i.get=function(e){return 0==this.K.length||0>(e-=this.h)||e>=this.K.length?null:this.K[e]},i.offset=function(e){if(!this.i)for(var t=c(this.K),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},i.Gb=function(e){!this.i&&e.length&&(this.K=this.K.filter((function(t){return t.startTime<e[0].startTime})),this.K.push.apply(this.K,d(e)))},i.Hb=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.K.length||e.endTime>n.K[0].startTime)})),this.Gb(e),this.cb(t)},i.cb=function(e){if(!this.i){var t=this.K.length;this.K=this.K.filter((function(t){return t.endTime>e})),this.h+=t-this.K.length}},i.Ya=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.K.length&&this.K[this.K.length-1].startTime>=t;)this.K.pop();for(;this.K.length&&this.K[0].endTime<=e;)this.K.shift(),n||this.h++;0!=this.K.length&&(e=this.K[this.K.length-1],this.K[this.K.length-1]=new so(e.startTime,t,e.j,e.Ba,e.la,e.g,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.h,e.tilesLayout,e.i))}},i.Sc=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new rn((function(){var e=t();e?n.K.push.apply(n.K,d(e)):(n.g.stop(),n.g=null)})),this.g.Ca(e))},_o.prototype[Symbol.iterator]=function(){return this.Db(0)},_o.prototype.Db=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),i=-1;if(n&&0<n.h.length)for(var r=n.h.length-1;0<=r;--r){var a=n.h[r];if(e>=a.startTime&&e<a.endTime){t++,i=r-1;break}}return new No(this,t,i)},F("shaka.media.SegmentIndex",_o),_o.forSingleSegment=jo,_o.prototype.getIteratorForTime=_o.prototype.Db,_o.prototype.updateEvery=_o.prototype.Sc,_o.prototype.fit=_o.prototype.Ya,_o.prototype.evict=_o.prototype.cb,_o.prototype.mergeAndEvict=_o.prototype.Hb,_o.prototype.merge=_o.prototype.Gb,_o.prototype.offset=_o.prototype.offset,_o.prototype.get=_o.prototype.get,_o.prototype.find=_o.prototype.find,_o.prototype.markImmutable=_o.prototype.Af,_o.prototype.release=_o.prototype.release,_o.prototype.destroy=_o.prototype.destroy,No.prototype.seek=function(e){return De("shaka.media.SegmentIterator","Please use SegmentIndex.getIteratorForTime instead of seek()."),(e=this.i.Db(e))?(this.h=e.h,this.g=e.g):(this.h=Number.MAX_VALUE,this.g=0),this.next().value},No.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.h.length&&e.ya().length&&this.g>=e.h.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.h.length?e.h[this.g]:e},No.prototype.next=function(){var e=this.i.get(this.h);return e&&0<e.h.length?(this.g++,e.ya().length&&this.g==e.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},F("shaka.media.SegmentIterator",No),No.prototype.next=No.prototype.next,No.prototype.current=No.prototype.current,No.prototype.seek=No.prototype.seek,f(Lo,_o),(i=Lo.prototype).clone=function(){var e=new Lo;return e.j=this.j.slice(),e},i.release=function(){for(var e=c(this.j),t=e.next();!t.done;t=e.next())t.value.release();this.j=[]},i.find=function(e){for(var t=0,n=c(this.j),i=n.next();!i.done;i=n.next()){var r=(i=i.value).find(e);if(null!=r)return r+t;t+=i.h+i.K.length}return null},i.get=function(e){for(var t=0,n=c(this.j),i=n.next();!i.done;i=n.next()){var r=(i=i.value).get(e-t);if(r)return r;t+=i.h+i.K.length}return null},i.offset=function(){},i.Gb=function(){},i.cb=function(){},i.Hb=function(){},i.Ya=function(){},i.Sc=function(){},F("shaka.media.MetaSegmentIndex",Lo),Lo.prototype.updateEvery=Lo.prototype.Sc,Lo.prototype.fit=Lo.prototype.Ya,Lo.prototype.mergeAndEvict=Lo.prototype.Hb,Lo.prototype.evict=Lo.prototype.cb,Lo.prototype.merge=Lo.prototype.Gb,Lo.prototype.offset=Lo.prototype.offset,Lo.prototype.get=Lo.prototype.get,Lo.prototype.find=Lo.prototype.find,Lo.prototype.release=Lo.prototype.release,Po.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Po.prototype.set=function(e){this.i=e,Do(this)},Po.prototype.Fc=function(){return this.g.Fc()},Mo.prototype.release=function(){this.i.stop();for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},f(Ro,mi),Ro.prototype.release=function(){this.g.clear(),mi.prototype.release.call(this)},Ro.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var i=(n=n.value).ic,r=i.length-1;0<=r;r--){var a=i[r];if(a.position<=e){i=a.xd;break e}}i=null}if((r=i)&&(r=!((r=n.be)===i||r&&i&&r.bandwidth==i.bandwidth&&r.audioSamplingRate==i.audioSamplingRate&&r.codecs==i.co
2decs&&r.contentType==i.contentType&&r.frameRate==i.frameRate&&r.height==i.height&&r.mimeType==i.mimeType&&r.channelsCount==i.channelsCount&&r.pixelAspectRatio==i.pixelAspectRatio&&r.width==i.width)),r)e:{if(r=e,a=i.contentType,(a=this.h()[a])&&0<a.length){var o=a[a.length-1].end;if(r>=a[0].start&&r<o){r=!0;break e}}r=!1}r&&(n.be=i,JSON.stringify(i),n=new pi("qualitychange",new Map([["quality",i],["position",e]])),this.dispatchEvent(n))}},f(zo,mi),zo.prototype.release=function(){this.g.clear(),this.h.stop(),mi.prototype.release.call(this)},f(Bo,mi),Bo.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,mi.prototype.release.call(this)},Bo.prototype.j=function(e,t){for(var n=c(this.i.g),i=n.next();!i.done;i=n.next()){i=i.value;var r=this.g.get(i),a=e<i.startTime?Fo:e>i.endTime?qo:Vo;this.g.set(i,a);for(var o=c(this.l),s=o.next();!s.done;s=o.next())(s=s.value).sb==r&&s.rb==a&&s.jb(i,t)}};var Fo=1,Vo=2,qo=3;function Ho(e,t,n,i,r){return e=wi(e,i,r),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Go(e,t){var n=this;this.g=t,this.m=e,this.h=null,this.u=1,this.o=this.l=null,this.i=new Map,this.C=!1,this.D=null,this.s=!1,this.j=new Ci((function(){return function(e){var t,n,i,r;return P((function(a){if(1==a.g){for(t=[],n=c(e.i.values()),i=n.next();!i.done;i=n.next())rs(r=i.value),t.push(as(r));return x(a,Promise.all(t),2)}e.i.clear(),e.g=null,e.m=null,e.h=null,w(a)}))}(n)}))}function Ko(e,t){var n=e.i.get("video");if(n){var i=n.stream;if(i)if(t){var r=i.trickModeVideo;r&&!n.ob&&(Xo(e,r,!1,0,!1),n.ob=i)}else(i=n.ob)&&(n.ob=null,Xo(e,i,!0,0,!1))}}function $o(e,t,n,i,r){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,e.l=t,e.C&&(t.video&&Xo(e,t.video,n,i,r),t.audio&&Xo(e,t.audio,n,i,r))}function Wo(e,t){e.o=t,e.C&&Xo(e,t,!0,0,!1)}function Xo(e,t,n,i,r){var a=e.i.get(t.type);a||t.type!=ut?a&&(a.ob&&(t.trickModeVideo?(a.ob=t,t=t.trickModeVideo):a.ob=null),a.stream!=t||r)&&(t.type==ut&&Ha(e.g.O,Dt(t.mimeType,t.codecs),e.m.sequenceMode),a.stream.closeSegmentIndex&&a.stream.closeSegmentIndex(),a.stream=t,a.ea=null,n&&(a.Yb?a.Uc=!0:a.Ja?(a.qb=!0,a.Ac=i,a.Uc=!0):(rs(a),ns(e,a,!0,i).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,i;return P((function(r){if(1==r.g)return t.ua?(n=t.stream,i=t.ua,n.segmentIndex?r.A(2):x(r,n.createSegmentIndex(),2)):r.return();if(t.ua!=i||t.stream!=n)return r.return();var a=e.g.Ic(),o=$a(e.g.O,t.type),s=t.stream.segmentIndex.find(t.za?t.za.endTime:a),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.la?l.la-l.Ba:null,l&&!s&&(s=(l.endTime-l.startTime)*(t.stream.bandwidth||0)/8),s?((l=l.g)&&(s+=(l.la?l.la-l.Ba:null)||0),a=8*s/(l=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.m.minBufferTime||0,e.h.rebufferingGoal)||t.ua.h.g>s):a=!1,a&&t.ua.abort(),w(r)}))}(e,a).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,i,r,a;P((function(o){switch(o.g){case 1:return n=pt,k(o,2),x(o,Ya(e.g.O,n.Y),4);case 4:T(o,3);break;case 2:i=S(o),e.g&&e.g.onError(i);case 3:r=Dt(t.mimeType,t.codecs),Ha(e.g.O,r,e.m.sequenceMode),(e.g.O.l.isTextVisible()||e.h.alwaysStreamText)&&(a=Jo(t),e.i.set(n.Y,a),is(e,a,0)),w(o)}}))}(e,t)}function Yo(e,t){t.Yb||t.qb||(t.Ja?(t.qb=!0,t.Ac=0):null==Ka(e.g.O,t.type)?null==t.Ma&&is(e,t,0):(rs(t),ns(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function Jo(e){return{stream:e,type:e.type,ea:null,za:null,Kc:null,vd:null,ud:null,td:null,ob:null,endOfStream:!1,Ja:!1,Ma:null,qb:!1,Ac:0,Uc:!1,Yb:!1,lc:!0,Id:!1,ec:!1,ua:null}}function Zo(t,n){var i,r,a,o,s;return P((function(l){switch(l.g){case 1:if(_i(t.j),n.Ja||null==n.Ma||n.Yb)return l.return();if(n.Ma=null,!n.qb){l.A(2);break}return x(l,ns(t,n,n.Uc,n.Ac),3);case 3:return l.return();case 2:if(n.stream.segmentIndex){l.A(4);break}return i=n.stream,x(l,n.stream.createSegmentIndex(),5);case 5:if(i!=n.stream)return i.closeSegmentIndex&&i.closeSegmentIndex(),null==n.Ma&&is(t,n,0),l.return();case 4:k(l,6),r=function(t,n){if(es(n))return function(e,t){var n=$a(e,"video")||0;Ut(e.g,t,n)}(t.g.O,n.stream.originalId||""),null;n.type==ut&&function(e){e.g&&Ut(e.g,"",0)}(t.g.O);var i=t.g.Ic(),r=n.za?n.za.endTime:i,a=function(e,t,n){return t==ut?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Fa(e=Wa(e,t),n)}(t.g.O,n.type,i),o=Math.max(t.m.minBufferTime||0,t.h.rebufferingGoal,t.h.bufferingGoal)*t.u;if(1e-6>t.m.presentationTimeline.getDuration()-r)return n.endOfStream=!0,"video"==n.type&&(i=t.i.get(ut))&&es(i)&&(i.endOfStream=!0),null;if(n.endOfStream=!1,a>=o)return t.h.updateIntervalSeconds/2;if(a=$a(t.g.O,n.type),a=function(e,t,n,i){if(t.ea)return t.ea.current();if(t.za||i)return t.ea=t.stream.segmentIndex.Db(t.za?t.za.endTime:i),t.ea&&t.ea.next().value;e=e.h.inaccurateManifestTolerance,i=Math.max(n-e,0);var r=null;return e&&(t.ea=t.stream.segmentIndex.Db(i),r=t.ea&&t.ea.next().value),r||(t.ea=t.stream.segmentIndex.Db(n),r=t.ea&&t.ea.next().value),r}(t,n,i,a),!a)return t.h.updateIntervalSeconds;o=1/0;for(var s=Array.from(t.i.values()),l=(s=c(s)).next();!l.done;l=s.next())es(l=l.value)||l.ea&&!l.ea.current()||(o=Math.min(o,l.za?l.za.endTime:i));return r>=o+t.m.presentationTimeline.g?t.h.updateIntervalSeconds:(function(t,n,i,r){var a,o,s,l,c,d,u,p,h,m,g;return P((function(f){switch(f.g){case 1:return a=pt,o=n.stream,s=n.ea,n.Ja=!0,k(f,2),x(f,function(e,t,n){var i,r,a,o,s,l,c;return P((function(d){return i=[],r=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.vd&&r==t.ud&&a==t.td||(s=function(){var n;return P((function(i){if(1==i.g)return k(i,2),t.ud=r,t.td=a,t.vd=o,x(i,function(e,t,n,i,r,a){return P((function(o){return t==pt.Y?(a||(e.g.u=n),function(e,t,n){e.l=t,e.m=n}(e.g,i,r),o.return()):x(o,Promise.all([Za(e,t,(function(){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,Ja(e,t)})),a?Promise.resolve():Za(e,t,(function(){var i=n;0>i&&(i+=.001),e.h[t].timestampOffset=i,Ja(e,t)})),Za(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=r,e.h[t].appendWindowStart=i,Ja(e,t)}))]),0)}))}(e.g.O,t.type,o,r,a,e.m.sequenceMode),4);if(2!=i.g)return T(i,0);throw n=S(i),t.ud=null,t.td=null,t.vd=null,n}))},i.push(s())),!function(e,t){return e&&t?e.dc()==t.dc()&&e.$b()==t.$b()&&ne(e.ya(),t.ya()):e==t}(n.g,t.Kc)&&(t.Kc=n.g)&&(l=ts(e,t,n.g),c=function(){var n,i,r;return P((function(a){switch(a.g){case 1:return k(a,2),x(a,l,4);case 4:return n=a.h,_i(e.j),i=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,x(a,Xa(e.g.O,t.type,n,null,null,i),5);case 5:T(a,0);break;case 2:throw r=S(a),t.Kc=null,r}}))},e.g.Ef(n.startTime,n.g),i.push(c())),x(d,Promise.all(i),0)}))}(t,n,r),4);case 4:return _i(t.j),t.s?f.return():(l="video/mp4"==o.mimeType||"audio/mp4"==o.mimeType,c=e.ReadableStream,t.h.lowLatencyMode&&c&&l?(u=new Uint8Array(0),p=function(e){var a,s,l;return P((function(c){return _i(t.j),t.s?c.return():(u=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(u,e),a=!1,s=0,(new br).box("mdat",(function(e){s=e.size+e.start,a=!0})).parse(u,!1,!0),a?(l=u.subarray(0,s),u=u.subarray(s),x(c,Qo(t,
2n,i,o,r,l),0)):c.A(0))}))},x(f,ts(t,n,r,p),6)):x(f,ts(t,n,r),7));case 7:return d=f.h,_i(t.j),t.s?f.return():n.qb?(n.Ja=!1,is(t,n,0),f.return()):x(f,Qo(t,n,i,o,r,d),6);case 6:if(_i(t.j),t.s)return f.return();n.za=r,s.next(),n.Ja=!1,n.Id=!1,h=t.g.O.Za(),m=h[n.type],JSON.stringify(m),n.qb||t.g.Fd(),is(t,n,0),T(f,0);break;case 2:if(g=S(f),_i(t.j,g),t.s)return f.return();if(n.Ja=!1,7001==g.code)n.Ja=!1,n.Ma=null,is(t,n,0),f.A(0);else if(n.type==a.Y&&t.h.ignoreTextStreamFailures)t.i.delete(a.Y),f.A(0);else if(3017==g.code)(function(e,t,n){if(!Array.from(e.i.values()).some((function(e){return e!=t&&e.Id}))){var i=Math.round(100*e.u);if(20<i)e.u-=.2;else{if(!(4<i))return t.ec=!0,e.s=!0,void e.g.onError(n);e.u-=.04}t.Id=!0}is(e,t,4)})(t,n,g),f.A(0);else{if(1001!=g.code||!g.data||404!=g.data[1])return n.ec=!0,g.severity=2,x(f,os(t,g),0);n.Ja=!1,n.Ma=null,is(t,n,1),f.A(0)}}}))}(t,n,i,a).catch((function(){})),null)}(t,n),null!=r&&(is(t,n,r),n.ec=!1),T(l,7);break;case 6:return a=S(l),x(l,os(t,a),8);case 8:return l.return();case 7:if(o=Array.from(t.i.values()),!t.C||!o.every((function(e){return e.endOfStream}))){l.A(0);break}return x(l,t.g.O.endOfStream(),10);case 10:_i(t.j),0!=(s=t.g.O.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.Ka(s),w(l)}}))}function Qo(e,t,n,i,r,a){var o,s;return P((function(l){return 1==l.g?(o=i.closedCaptions&&0<i.closedCaptions.size,(null!=i.emsgSchemeIdUris&&0<i.emsgSchemeIdUris.length||e.h.dispatchAllEmsgBoxes)&&(new br).S("emsg",(function(t){var n=i.emsgSchemeIdUris;if(0===t.version)var a=t.reader.jc(),o=t.reader.jc(),s=t.reader.M(),l=t.reader.M(),c=t.reader.M(),d=t.reader.M(),u=r.startTime+l/s;else s=t.reader.M(),l=(u=t.reader.Lb()/s+r.timestampOffset)-r.startTime,c=t.reader.M(),d=t.reader.M(),a=t.reader.jc(),o=t.reader.jc();t=t.reader.$a(t.reader.P.byteLength-t.reader.ba()),(n&&n.includes(a)||e.h.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.Ff():(n=(new Map).set("detail",{startTime:u,endTime:u+c/s,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:l,eventDuration:c,id:d,messageData:t}),n=new pi(Kl,n),e.g.onEvent(n)))})).parse(a),x(l,function(e,t,n){var i,r,a;return P((function(o){if(1==o.g)return i=Math.max(e.h.bufferBehind,e.m.presentationTimeline.g),null==(r=Ka(e.g.O,t.type))||.01>=(a=n-r-i)?o.return():x(o,e.g.O.remove(t.type,r,r+a),2);_i(e.j),w(o)}))}(e,t,n),2)):3!=l.g?(_i(e.j),s=t.lc,t.lc=!1,x(l,Xa(e.g.O,t.type,a,r.startTime,r.endTime,o,s,e.m.sequenceMode),3)):(_i(e.j),void w(l))}))}function es(e){return e&&e.type==ut&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function ts(e,t,n,i){var r,a,o,s,l;return P((function(c){return 1==c.g?(r=Si,a=Ho(n.ya(),n.Ba,n.la,e.h.retryParameters,i),o=t.stream,e.g.modifySegmentRequest(a,{type:o.type,init:n instanceof oo,duration:n.endTime-n.startTime,mimeType:o.mimeType,codecs:o.codecs,bandwidth:o.bandwidth}),s=e.g.lb.request(r,a),t.ua=s,x(c,s.promise,2)):(l=c.h,t.ua=null,c.return(l.data))}))}function ns(e,t,n,i){var r,a;return P((function(o){return 1==o.g?(t.qb=!1,t.Uc=!1,t.Ac=0,t.Yb=!0,t.za=null,t.Kc=null,t.ea=null,i?(r=e.g.Ic(),a=e.g.O.getDuration(),x(o,e.g.O.remove(t.type,r+i,a),3)):x(o,Ya(e.g.O,t.type),4)):3!=o.g?(_i(e.j),n?x(o,e.g.O.flush(t.type),3):o.A(3)):(_i(e.j),t.Yb=!1,t.endOfStream=!1,is(e,t,0),void w(o))}))}function is(e,t,n){var i=t.type;(i!=ut||e.i.has(i))&&(t.Ma=new nn((function(){var n;return P((function(i){return 1==i.g?(k(i,2),x(i,Zo(e,t),4)):2!=i.g?T(i,0):(n=S(i),e.g&&e.g.onError(n),void w(i))}))})).R(n))}function rs(e){null!=e.Ma&&(e.Ma.stop(),e.Ma=null)}function as(e){return P((function(t){return e.ua?x(t,e.ua.abort(),0):t.A(0)}))}function os(e,t){return P((function(n){if(1==n.g)return x(n,ai(e.D),2);_i(e.j),e.g.onError(t),t.handled||e.h.failureCallback(t),w(n)}))}function ss(e,t){var n=zl(),i=this;this.j=t,this.i=e,this.l=n,this.o=null,this.m=[],this.h=this.g=null,this.u=Promise.resolve().then((function(){return function(e){return P((function(t){if(e.s.g)t=t.A(0);else{if(0==e.m.length||e.g&&!e.g.ib)var n=!1;else{e.g&&(e.g.Ia.mb(),e.g=null);var i=(n=e.m.shift()).create(e.l);i?(n.Ia.Jb(),e.g={node:i.node,payload:i.payload,ib:i.ib,Ia:n.Ia}):n.Ia.Oc(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return P((function(i){switch(i.g){case 1:return e.i=e.j.gf(e.i,e.l,e.g.node,e.g.payload),k(i,2),e.h=e.j.Se(e.i,e.l,e.g.payload),x(i,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.Ia.Mc(),e.g=null),T(i,0);break;case 2:return 7001==(t=S(i)).code?e.g.Ia.mb():e.g.Ia.onError(t),e.g=null,e.h=null,n=e,x(i,e.j.handleError(e.l,t),5);case 5:n.i=i.h,w(i)}}))}(e):(e.j.Df(e.i),e.o=new mt,n=e.o),t=x(t,n,1)}return t}))}(i)})),this.s=new Ci((function(){return function(e){var t,n;return P((function(i){if(1==i.g)return e.h&&e.h.abort(),cs(e),x(i,e.u,2);for(e.g&&e.g.Ia.mb(),t=c(e.m),n=t.next();!n.done;n=t.next())n.value.Ia.mb();e.g=null,e.m=[],e.j=null,w(i)}))}(i)}))}function ls(e,t){var n={Jb:function(){},Mc:function(){},mb:function(){},onError:function(){},Oc:function(){},Ng:function(){}};return e.m.push({create:t,Ia:n}),e.h&&e.h.abort(),cs(e),n}function cs(e){e.o&&(e.o.resolve(),e.o=null)}function ds(e){this.g=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function us(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function ps(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=c(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function hs(){}function ms(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function gs(t,n){var i=this;this.j=!1,this.i=[],this.u=t,this.m=n,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.s=new rn((function(){vs(i)})).Ca(.25),this.h=new Map,this.o=new ji,this.o.B(document,"fullscreenchange",(function(){vs(i,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){vs(i,!0)})),this.l.observe(this.g))}function fs(e,t,n,i,r){for(var a=!1,o=[],s=[],l=(t=c(t)).next();!l.done;
2l=t.next()){l=l.value,r.push(l);var d=e.h.get(l),u=l.startTime<=i&&l.endTime>i,p=d?d.De:null;d&&(o.push(d.ae),u||(a=!0,e.h.delete(l),d=null)),u&&(s.push(l),d||(bs(e,l,r),p=(d=e.h.get(l)).De,a=!0)),0<l.nestedCues.length&&p&&fs(e,l.nestedCues,p,i,r),r.pop()}if(a){for(r=(i=c(o)).next();!r.done;r=i.next())n.removeChild(r.value);for(s.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),l=(s=c(s)).next();!l.done;l=s.next())i=e.h.get(l.value),n.appendChild(i.ae)}}function vs(e,t){if(e.g){var n=e.u.currentTime;if((!e.j||void 0!==t&&t)&&0<e.h.size&&(ms(e.g),e.h.clear()),e.j){for(var i=new Map,r=c(e.h.keys()),a=r.next();!a.done;a=r.next())a=a.value,i.set(a,e.h.get(a));fs(e,e.i,e.g,n,[])}}}function bs(e,t,n){var i=1<n.length,r=i?"span":"div";(t.lineBreak||t.spacer)&&(t.spacer&&De("shaka.extern.Cue","Please use lineBreak instead of spacer."),r="br"),i=!i&&0<t.nestedCues.length;var a=document.createElement(r);"br"!=r&&function(e,t,n,i,r){var a=t.style,o=0==n.nestedCues.length,s=1<i.length;a.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(a.webkitTextStrokeColor=n.textStrokeColor,a.webkitTextStrokeWidth=n.textStrokeWidth,a.color=n.color,a.direction=n.direction,a.opacity=n.opacity,a.paddingLeft=ys(n.linePadding,n,e.m),a.paddingRight=ys(n.linePadding,n,e.m),n.backgroundImage)a.backgroundImage="url('"+n.backgroundImage+"')",a.backgroundRepeat="no-repeat",a.backgroundSize="contain",a.backgroundPosition="center";else{if(n.nestedCues.length)var c=t;else c=document.createElement("span"),t.appendChild(c);n.border&&(c.style.border=n.border),r||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||0===i)return i}return null}(i,(function(e){return e.backgroundColor})))?c.style.backgroundColor=t:l&&(c.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(c.textContent=l)}s&&!i[i.length-1].isContainer?a.display="inline":(a.display="flex",a.flexDirection="column",a.alignItems="center",a.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),o||(a.margin="0"),a.fontFamily=n.fontFamily,a.fontWeight=n.fontWeight.toString(),a.fontStyle=n.fontStyle,a.letterSpacing=n.letterSpacing,a.fontSize=ys(n.fontSize,n,e.m),n.line?1==n.lineInterpretation&&(a.position="absolute",a.left="0",a.top="0",n.writingMode==ue?(a.width="100%",n.lineAlign==he?a.top=n.line+"%":"end"==n.lineAlign&&(a.bottom=n.line+"%")):"vertical-lr"==n.writingMode?(a.height="100%",n.lineAlign==he?a.left=n.line+"%":"end"==n.lineAlign&&(a.right=n.line+"%")):(a.height="100%",n.lineAlign==he?a.right=n.line+"%":"end"==n.lineAlign&&(a.left=n.line+"%"))):n.region&&n.region.id&&(e=n.region.widthUnits==we?"%":"px",i=n.region.viewportAnchorUnits==we?"%":"px",a.height=n.region.height+(n.region.heightUnits==we?"%":"px"),a.width=n.region.width+e,a.position="absolute",a.top=n.region.viewportAnchorY+i,a.left=n.region.viewportAnchorX+i),a.lineHeight=n.lineHeight,n.position&&(n.writingMode==ue?a.paddingLeft=n.position:a.paddingTop=n.position),"line-left"==n.positionAlign?a.cssFloat="left":"line-right"==n.positionAlign&&(a.cssFloat="right"),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(" "),a.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==ue?a.width=n.size+"%":a.height=n.size+"%")}(e,a,t,n,i),n=a,i&&((n=document.createElement("span")).classList.add("shaka-text-wrapper"),n.style.backgroundColor=t.backgroundColor,a.appendChild(n)),e.h.set(t,{ae:a,De:n})}function ys(e,t,n){var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;var r=i.value;switch(i.unit){case"%":return r/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*r/t.cellResolution.rows+"px";default:return e}}function xs(e,t){this.h=e,this.g=t,this.j="",this.o=void 0,this.i=!1,this.m=!0,this.l=!1}function ws(e,t,n){try{if(e.g.enabled){var i={d:1e3*n.duration,st:e.h.T()?Ms:Ds};i.ot=function(e){var t=e.type;if(e.init)return Ns;if("video"==t)return e.codecs.includes(",")?js:_s;if("audio"==t)return Cs;if("text"==t)return"application/mp4"===e.mimeType?Ps:Ls}(n);var r=i.ot===_s||i.ot===Cs||i.ot===js||i.ot===Ps;r&&(i.bl=function(e,t){var n=e.h.Za()[t];if(!n.length)return NaN;var i=e.h.Xe();return(n=n.find((function(e){return e.start<=i&&e.end>=i})))?1e3*(n.end-i):NaN}(e,n.type)),n.bandwidth&&(i.br=n.bandwidth/1e3),r&&i.ot!==Ps&&(i.tb=function(e,t){var n=e.h.hb();if(!n.length)return NaN;for(var i=n[0],r=(n=c(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>i.bandwidth&&(i=r);switch(t){case _s:return i.videoBandwidth||NaN;case Cs:return i.audioBandwidth||NaN;default:return i.bandwidth}}(e,i.ot)/1e3),Ts(e,t,i)}}catch(e){W("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function ks(e,t){try{if(!e.g.enabled)return t;var n=As(e);return n.ot=Ls,n.su=!0,Es(t,Ss(n))}catch(e){return W("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),t}}function As(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.o,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}
2function Ts(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,As(e)),n.pr=e.h.Hc();var r=n.ot===_s||n.ot===js;if(e.l&&r&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),i)e=function(e){for(var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=c(t)).next();!o.done;o=t.next())o=o.value,r[null!=a[o]?a[o]:1][o]=e[o];for(e=0;e<r.length;e++)(a=Ss(r[e]))&&(n["CMCD-"+i[e]]=a);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var a=Ss(n);a&&(t.uris=t.uris.map((function(e){return Es(e,a)})))}}}function Ss(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var i,r=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},o=Object.keys(e||{}).sort(),s=(o=c(o)).next();!s.done;s=o.next()){var l=e[s=s.value];if(!(i=l,Number.isNaN(i)||null==i||""===i||!1===i||"v"===s&&1===l||"pr"==s&&1===l)){var d=a[s];d&&(l=d(l));var u;u="string"===(d=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===d?s:"symbol"===d?s+"="+l.description:s+"="+l,r.push(u)}}return r.join(",")}function Es(e,t){if(!t||e.includes("offline:"))return e;var n=new $e(e);return n.g.set("CMCD",t),n.toString()}Go.prototype.destroy=function(){return this.j.destroy()},Go.prototype.configure=function(e){this.h=e,this.D=new ri({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)},Go.prototype.start=function(){var e=this;return P((function(t){if(1==t.g)return x(t,function(e){var t,n,i,r,a,o,s,l,d,u;return P((function(p){if(1==p.g){if(t=pt,!e.l)throw new Ge(2,5,5006);return n=new Map,i=new Set,e.l.audio&&(n.set(t.bb,e.l.audio),i.add(e.l.audio)),e.l.video&&(n.set(t.Na,e.l.video),i.add(e.l.video)),e.o&&(n.set(t.Y,e.o),i.add(e.o)),r=e.g.O,a=e.h.forceTransmuxTS,x(p,r.init(n,a,e.m.sequenceMode),2)}_i(e.j);var h=e.m.presentationTimeline.getDuration();for(1/0>h?e.g.O.Ka(h):e.g.O.Ka(Math.pow(2,32)),o=c(n.keys()),s=o.next();!s.done;s=o.next())l=s.value,d=n.get(l),e.i.has(l)||(u=Jo(d),e.i.set(l,u),is(e,u,0));w(p)}))}(e),2);_i(e.j),e.C=!0,w(t)}))},Go.prototype.lc=function(){for(var e=this.g.Ic(),t=this.h.smallGapLimit,n=c(this.i.keys()),i=n.next();!i.done;i=n.next()){var r=i.value;(i=this.i.get(r)).ea=null;var a=this.g.O;if(r==ut?a=null!=(a=a.g).g&&null!=a.h&&(e>=a.g&&e<a.h):a=Ua(a=Wa(a,r),e,t),!a){if((null!=$a(this.g.O,r)||i.Ja)&&Yo(this,i),i.ua&&(i.ua.abort(),i.ua=null),r===ut)for((r=this.g.O.u.g).l=0,r.h=[],r.g=[],(a=r.i).i=[],a.h=[],a.g=0,Ea(r),a=(r=c(r.j.values())).next();!a.done;a=r.next())wa(a.value);i.lc=!0}}},ss.prototype.destroy=function(){return this.s.destroy()},(i=ds.prototype).remove=function(e,t){return!!this.g&&(ps(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},i.append=function(e){function t(e){var n=[],i=700<=e.fontWeight,r="italic"==e.fontStyle,a=e.textDecoration.includes("underline");return i&&n.push("b"),r&&n.push("i"),a&&n.push("u"),i=n.reduce((function(e,t){return e+"<"+t+">"}),""),n=n.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak||e.spacer?(e.spacer&&De("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(t).join(""):i+e.payload+n}var n=e.map((function(e){if(e.nestedCues.length){var n=e.clone();return n.nestedCues=[],n.payload=t(e),n}return e})),i=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r={},a=(n=c(n)).next();!a.done;r={ub:r.ub},a=n.next())r.ub=a.value,e.some(function(e){return function(t){return t.startTime==e.ub.startTime&&t.endTime==e.ub.endTime&&t.text==e.ub.payload}}(r))||(a=us(r.ub))&&i.push(a);for(r=(e=c(e=i.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?i.indexOf(t)-i.indexOf(e):i.indexOf(e)-i.indexOf(t)})))).next();!r.done;r=e.next())this.g.addCue(r.value)},i.destroy=function(){return this.g&&(ps(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},i.isTextVisible=function(){return"showing"==this.g.mode},i.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},F("shaka.text.SimpleTextDisplayer",ds),ds.prototype.setTextVisibility=ds.prototype.setTextVisibility,ds.prototype.isTextVisible=ds.prototype.isTextVisible,ds.prototype.destroy=ds.prototype.destroy,ds.prototype.append=ds.prototype.append,ds.prototype.remove=ds.prototype.remove,F("shaka.util.Dom",hs),hs.removeAllChildren=ms,(i=gs.prototype).append=function(e){for(var t=[].concat(d(this.i)),n={},i=(e=c(e)).next();!i.done;n={pc:n.pc},i=e.next())n.pc=i.value,t.some(function(e){return function(t){return re(t,e.pc)}}(n))||this.i.push(n.pc);vs(this)},i.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.s&&this.s.stop(),this.h.clear(),this.o&&(this.o.release(),this.o=null),this.l&&(this.l.disconnect(),this.l=null)},i.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),vs(this,n>this.i.length),!0},i.isTextVisible=function(){return this.j},i.setTextVisibility=function(e){this.j=e},F("shaka.text.UITextDisplayer",gs),gs.prototype.setTextVisibility=gs.prototype.setTextVisibility,gs.prototype.isTextVisible=gs.prototype.isTextVisible,gs.prototype.remove=gs.prototype.remove,gs.prototype.destroy=gs.prototype.destroy,gs.prototype.append=gs.prototype.append,F("shaka.text.WebVttGenerator",(function(){}));var Is="m",Cs="a",_s="v",js="av",Ns="i",Ls="c",Ps="tt",Ds="v",Ms="l";function Os(){}function Rs(e,t,n,i,r){var a,o=r in i,s=!0;for(a in t){var l=r+"."+a,c=o?i[r]:n[a];o||a in n?void 0===t[a]?void 0===c||o?delete e[a]:e[a]=gi(c):c.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=gi(c)),l=Rs(e[a],t[a],c,i,l),s=s&&l):typeof t[a]!=typeof c||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=c.constructor?(K("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&$("Unexpected number of arguments for "+l),e[a]=t[a]):(K("Invalid config, unrecognized key "+l),s=!1)}return s}function zs(e,t){for(var n={},i=n,r=0,a=0;!(0>(r=e.indexOf(".",r)));)0!=r&&"\\"==e[r-1]||(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function Bs(){}function Us(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:Yi,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return e}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E"}},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};(navigator.userAgent.match(/Edge\//)||sn()||dn("CrKey"))&&(i.gapDetectionThreshold=.5),(dn("Web0S")||sn()||dn("CrKey"))&&(i.stallSkip=0);var r={trackSelectionCallback:function(e){return P((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return P((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?x(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},a={drm:t,manifest:n,streaming:i,offline:r,abrFactory:function(){return new Gn},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};return r.trackSelectionCallback=function(e){return P((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),i=[],r=Zt(t,n.map((function(e){return e.language})));r&&(i=n.filter((function(e){return Wt(e.language)==r}))),0==i.length&&(i=n.filter((function(e){return e.primary}))),0==i.length&&(n.map((function(e){return e.language})),i=n);var a=i.filter((function(e){return e.height&&480>
2=e.height}));if(a.length&&(a.sort((function(e,t){return t.height-e.height})),i=a.filter((function(e){return e.height==a[0].height}))),n=[],i.length){var o=Math.floor(i.length/2);i.sort((function(e,t){return e.bandwidth-t.bandwidth})),n.push(i[o])}for(i=c(e),o=i.next();!o.done;o=i.next())(o=o.value).type!=ut&&"image"!=o.type||n.push(o);return n}(e,a.preferredAudioLanguage))}))},a}function Fs(e,t,n){var i={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Rs(e,t,n||Us(),i,"")}function Vs(){this.g=null,this.h=[]}function qs(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Hs(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var i=c(e.h),r=i.next();!r.done;r=i.next())n+=(r=r.value).state==t?r.duration:0;return n}function Gs(){this.i=this.h=null,this.g=[]}function Ks(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function $s(){this.o=this.s=this.G=this.C=this.m=this.j=this.D=this.l=this.i=this.H=this.J=this.L=this.u=this.N=NaN,this.g=new Vs,this.h=new Gs}function Ws(t,n){mi.call(this);var i=this;this.l=mc,this.xc=this.g=null,this.pa=!1,this.m=new ji,this.kd=this.s=this.Ub=this.i=this.Dc=this.J=this.j=this.qa=this.X=this.Ec=this.L=this.yc=this.H=this.yb=this.D=this.N=this.o=this.G=null,this.wd=1e9,this.h=cl(this),this.sd={width:1/0,height:1/0},this.u=null,this.vb=new Qn(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.wb=this.h.preferredTextLanguage,this.Ob=this.h.preferredTextRole,this.Vb=this.h.preferForcedSubs,this.md=[],this.Wb=null,n&&n(this),this.G=function(e){return new yi((function(t,n){e.s&&e.s.segmentDownloaded(t,n)}),(function(t,n,i){t=(new Map).set("headers",t).set("request",n).set("requestType",i),e.dispatchEvent(Xs(Hl,t))}),(function(t,n,i,r){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",i).set("aborted",r),e.dispatchEvent(Xs(ql,t))}))}(this),this.G.Od(this.h.streaming.forceHTTPS),this.C=null,xc&&(this.C=Fe(xc)),this.m.B(e,"online",(function(){i.Jd()})),this.V={name:"detach"},this.$={name:"attach"},this.ha={name:"unload"},this.zd={name:"manifest-parser"},this.rd={name:"manifest"},this.xb={name:"media-source"},this.nd={name:"drm-engine"},this.fa={name:"load"},this.Dd={name:"src-equals-drm-engine"},this.zb={name:"src-equals"};var r=new Map;r.set(this.$,(function(e,t){return di(function(e,t,n){return null==t.F&&(t.F=n.F,e.m.B(t.F,"error",(function(){var t=Il(e);t&&Sl(e,t)}))),e.g=t.F,Promise.resolve()}(i,e,t))})),r.set(this.V,(function(e){return e.F&&(i.m.Da(e.F,"error"),e.F=null),i.C&&i.C.release(),i.g=null,di(e=Promise.resolve())})),r.set(this.ha,(function(e){return di(Ys(i,e))})),r.set(this.xb,(function(e){return e=function(e,t){var n,i,r,a;return P((function(o){if(1==o.g)return n=new Ra,i=e.h.textDisplayFactory,r=Fe(i),e.qd=i,a=function(e,t,n,i){return new qa(e,t,n,i)}(t.F,n,r,(function(t,n,i){for(var r=(t=c(t)).next();!r.done;r=t.next())if((r=r.value).data&&r.cueTime&&r.frames){for(var a=r.cueTime+n,o=i,s=c(r.frames),l=s.next();!l.done;l=s.next())Js(e,a,o,"ID3",l.value);e.C&&e.C.onHlsTimedMetadata(r,a)}})),x(o,a.D,2);e.N=a,w(o)}))}(i,e),di(e)})),r.set(this.zd,(function(e,t){var n=function(e,t,n){var i,r,a,o;return P((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,i=t.uri,r=e.G,e.Ub=i,a=e,x(s,dr(i,r,e.h.manifest.retryParameters,t.mimeType),2);a.Dc=s.h,e.J=Fe(e.Dc),o=gi(e.h.manifest),n.F&&"AUDIO"===n.F.nodeName&&(o.disableVideo=!0),e.J.configure(o),w(s)}))}(i,e,t);return di(n)})),r.set(this.rd,(function(e){return function(e,t){var n=t.uri,i=e.G;e.Ec=new zo((function(){return e.kc()})),e.Ec.addEventListener("regionadd",(function(t){t=t.region,El(e,oc,t),e.C&&e.C.onDashTimedMetadata(t)})),e.qa=null,e.h.streaming.observeQualityChanges&&(e.qa=new Ro((function(){return e.Za()})),e.qa.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.co
2decs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(Xs(Zl,n))})));var r={networkingEngine:i,modifyManifestRequest:function(t,n){var i=e.X;try{i.g.enabled&&(i.o=n.format,Ts(i,t,{ot:Is,su:!i.i}))}catch(e){W("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){ws(e.X,t,n)},filter:function(t){return dl(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=c(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"!=(r=r.value).mimeType&&"application/cea-708"!=r.mimeType||n.add(r.originalId);for(i=c(t.variants),r=i.next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions)for(var a=c(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",l=new Lo;s={id:e.wd++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:r.closedCaptions.get(o),label:null,type:ut,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.Ec;e:{for(var i=c(n.g),r=i.next();!r.done;r=i.next())if((r=r.value).schemeIdUri==t.schemeIdUri&&r.id==t.id&&r.startTime==t.startTime&&r.endTime==t.endTime){i=r;break e}i=null}null==i&&(n.g.add(t),t=new pi("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Sl(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)}},a=Date.now()/1e3;return new oi(function(){var t,i,o,s;return P((function(l){if(1==l.g)return t=e,x(l,e.J.start(n,r),2);if(t.i=l.h,i=Xs(Jl),e.dispatchEvent(i),0==e.i.variants.length)throw new Ge(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),o=Date.now()/1e3,s=o-a,e.u.D=s,w(l)}))}(),(function(){return e.J.stop()}))}(i,e)})),r.set(this.nd,(function(e){return e=function(e,t){var n,i;return P((function(r){return 1==r.g?(n=Date.now()/1e3,i=!0,e.o=Qs(e,{lb:e.G,onError:function(t){Sl(e,t)},Nc:function(t){Cl(e,t)},onExpirationUpdated:function(t,n){_l(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Gl&&i&&(i=!1,e.u.j=Date.now()/1e3-n)}}),e.o.configure(e.h.drm),x(r,Ui(e.o,e.i.variants,e.i.offlineSessionIds),2)):3!=r.g?x(r,e.o.Xb(t.F),3):x(r,dl(e,e.i),0)}))}(i,e),di(e)})),r.set(this.fa,(function(e,t){return di(function(e,t,n){var i,r,a,o,s,l,c,d,u,p;return P((function(h){switch(h.g){case 1:if(t.startTime=n.startTime,null!=e.Wb&&(t.startTime=e.Wb,e.Wb=null),i=t.F,r=t.uri,e.Ub=r,e.H=new Po({Jc:function(){return t.F.playbackRate},Fc:function(){return t.F.defaultPlaybackRate},Qd:function(e){t.F.playbackRate=e},pe:function(e){t.F.currentTime+=e}}),a=function(){return ml(e)},o=function(){return hl(e)},e.m.B(i,"playing",a),e.m.B(i,"pause",a),e.m.B(i,"ended",a),e.m.B(i,"ratechange",o),s=e.h.abrFactory,e.s&&e.kd==s||(e.kd=s,e.s=Fe(s),"function"!=typeof e.s.playbackRateChanged&&(De("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.s.playbackRateChanged=function(){}),e.s.configure(e.h.abr)),e.vb=new Qn(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.wb=e.h.preferredTextLanguage,e.Ob=e.h.preferredTextRole,e.Vb=e.h.preferForcedSubs,jl(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.s.init((function(t,n,i){e.j&&t!=e.j.l&&vl(e,t,!0,void 0!==n&&n,void 0===i?0:i)})),e.D=function(e,t){return new So(e.g,e.i,e.h.streaming,t,(function(){e.yb&&Oo(e.yb,!0),e.j&&e.j.lc(),e.L&&tl(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.yb=function(e){var t=new Bo(e.Ec);t.addEventListener("enter",(function(t){El(e,sc,t.region)})),t.addEventListener("exit",(function(t){El(e,lc,t.region)}
2)),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(El(e,sc,n),El(e,lc,n))}));var n=new Mo(e.g);return n.g.add(t),e.qa&&n.g.add(e.qa),n}(e),l=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),el(e,l),mn(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Go(e.i,{Ic:function(){return e.D.m()},getBandwidthEstimate:function(){return e.s.getBandwidthEstimate()},modifySegmentRequest:function(t,n){ws(e.X,t,n)},O:e.N,lb:e.G,onError:function(t){return Sl(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Ff:function(){e.J&&e.J.update&&e.J.update()},Fd:function(){e.D&&e.D.D(),tl(e)},Ef:function(t,n){var i=n.xd;i&&e.qa&&function(e,t,n){var i=function(e,t){var n=e.g.get(t);return n||(n={ic:[],be:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){var n=e.h()[t.contentType];if(n&&0<n.length){var i=n[0].start,r=n[n.length-1].end,a=t.ic;t.ic=a.filter((function(e,t){return!(e.position<=i&&t+1<a.length&&a[t+1].position<=i||e.position>=r)}))}else t.ic=[]}(e,i),e={xd:t,position:n},0<=(t=(i=i.ic).findIndex((function(e){return e.position>=n})))?i.splice(t,i[t].position==n?1:0,e):i.push(e)}(e.qa,i,t)}})}(e),e.j.configure(e.h.streaming),e.l=gc,e.dispatchEvent(Xs(ic)),c=null,e.hb().find((function(e){return e.active}))){h.A(2);break}if(c=gl(e)?e.s.chooseVariant():null,vl(e,c,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){h.A(3);break}return d=e.D.m(),x(h,function(e,t){var n,i,r,a,o;return P((function(s){return 1==s.g?(n=e.audio,i=e.video,r=function(e,t){var n,i;return P((function(r){return 1==r.g?e?x(r,e.createSegmentIndex(),2):r.return(null):(n=e.segmentIndex[Symbol.iterator]().seek(t))?(i=n.startTime,r.return(i)):r.return(null)}))},x(s,r(n,t),2)):3!=s.g?(a=s.h,x(s,r(i,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(c,d),4);case 4:u=h.h,e.D.o(u);case 3:yl(e,null,En(c));case 2:return e.gb().find((function(e){return e.active}))||((p=Mn(e.i.textStreams,e.wb,e.Ob,e.Vb)[0]||null)&&Ks(e.u.h,p,!0),c&&(p?(c.audio&&function(e,t,n){return e=Wt(e.h.preferredTextLanguage),t=Wt(t.language),n=Wt(n.language),Gt(n,e)&&!Gt(t,n)}(e,c.audio,p)&&(e.pa=!0),e.pa&&e.N.l.setTextVisibility(!0),Al(e)):e.pa=!1),p&&(e.h.streaming.alwaysStreamText||e.pd())&&Wo(e.j,p)),x(h,e.j.start(),5);case 5:e.h.abr.enabled&&(e.s.enable(),Tl(e)),Tn(e.j?e.j.l:null,e.i),Ll(e.i),xl(e),gl(e),e.i.variants.some((function(e){return e.primary})),e.m.ta(i,"loadedmetadata",(function(){e.u.l=Date.now()/1e3-n.Sd})),w(h)}}))}(i,e,t))})),r.set(this.Dd,(function(e,t){var n=function(e,t,n){var i,r,a,o,s,l,c;return P((function(d){return 1==d.g?(i=pt,r=Date.now()/1e3,a=!0,e.o=Qs(e,{lb:e.G,onError:function(t){Sl(e,t)},Nc:function(t){Cl(e,t)},onExpirationUpdated:function(t,n){_l(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==Gl&&a&&(a=!1,e.u.j=Date.now()/1e3-r)}}),e.o.configure(e.h.drm),o=n.uri||"",s=pr(o),"application/x-mpegurl"==(l=wc[s])&&ln()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),c={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?Rt(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:i.Na,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.o.$=!0,x(d,Ui(e.o,[c],[]),2)):x(d,e.o.Xb(t.F),0)}))}(i,e,t);return di(n)})),r.set(this.zb,(function(e,t){return function(e,t,n){function i(){return ml(e)}t.uri=n.uri,t.startTime=n.startTime,e.Ub=t.uri,e.D=new To(t.F),null!=t.startTime&&e.D.o(t.startTime),e.H=new Po({Jc:function(){return t.F.playbackRate},Fc:function(){return t.F.defaultPlaybackRate},Qd:function(e){t.F.playbackRate=e},pe:function(e){t.F.currentTime+=e}}),el(e,e.h.streaming.rebufferingGoal),e.m.B(t.F,"playing",i),e.m.B(t.F,"pause",i),e.m.B(t.F,"ended",i),e.m.B(t.F,"ratechange",(function(){return hl(e)})),"none"!=e.g.preload&&e.m.ta(e.g,"loadedmetadata",(function(){e.u.l=Date.now()/1e3-n.Sd})),e.g.audioTracks&&(e.m.B(e.g.audioTracks,"addtrack",(function(){return xl(e)})),e.m.B(e.g.audioTracks,"removetrack",(function(){return xl(e)})),e.m.B(e.g.audioTracks,"change",(function(){return xl(e)}))),e.g.textTracks&&(e.m.B(e.g.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){"metadata"==t.kind&&(t.mode="hidden",e.m.B(t,"cuechange",(function(){if(t.activeCues)for(var n=c(t.activeCues),i=n.next();!i.done;i=n.next())i=i.value,Js(e,i.startTime,i.endTime,i.type,i.value),e.C&&e.C.onCueMetadataChange(i.value)})),new rn((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Nb().R(.5))}(e,t);break;case"chapters":Zs(e,t);break;default:xl(e)}})),e.m.B(e.g.textTracks,"removetrack",(function(){return xl(e)})),e.m.B(e.g.textTracks,"change",(function(){return xl(e)})));var r=pr(t.uri);t.F.src=function(e,t,n){try{if(!e.g.enabled)return t;var i=As(e);e:{switch(n){case"video/webm":case"video/mp4":var r=js;break e;case"application/x-mpegurl":r=Is;break e}r=void 0}return i.ot=r,i.su=!0,Es(t,Ss(i))}catch(e){return W("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.X,t.uri,wc[r]),(sn()||dn("Web0S"))&&t.F.load(),e.l=fc,e.dispatchEvent(Xs(ic));var a=new mt;go(e.g,HTMLMediaElement.HAVE_METADATA,e.m,(function(){a.resolve()}));var o=!1;return e.md.push((function(){o=!0})),go(e.g,HTMLMediaElement.HAVE_CURRENT_DATA,e.m,(function(){return P((function(t){return 1==t.g?o?t.return():(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.Ld(t);var n=e.h.preferredVariantRole;""!=n&&e.Ld(t,n)}}(e),il(e).find((function(e){return"disabled"!=e.mode}))?t.A(2):x(t,new Promise((function(t){e.m.ta(e.g.textTracks,"change",t),new rn(t).R(1)})),2)):o?t.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.Md(t,"",n);var i=e.h.preferredTextRole;""!=i&&e.Md(t,i,n)}}(e),void w(t))}))})),e.g.error?a.reject(Il(e)):"none"==e.g.preload&&($('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),a.resolve()),e.m.ta(e.g,"error",(function(){a.reject(Il(e))})),new oi(a,(function(){return a.reject(new Ge(2,7,7001)),Promise.resolve()}))}(i,e,t)})),this.Ga=new ss(this.V,{gf:function(e,t,n,r){var a=null;return e==i.V&&(a=n==i.V?i.V:i.$),e==i.$&&(a=n==i.V||t.F!=r.F?i.V:n==i.$?i.$:n==i.xb||n==i.fa?i.xb:n==i.zb?i.Dd:null),e==i.xb&&(a=n==i.fa&&t.F==r.F?i.zd:i.ha),e==i.zd&&(a=Rl(i.fa,i.rd,i.ha,n,t,r)),e==i.rd&&(a=Rl(i.fa,i.nd,i.ha,n,t,r)),e==i.nd&&(a=Rl(i.fa,i.fa,i.ha,n,t,r)),e==i.Dd&&(a=n==i.zb&&t.F==r.F?i.zb:i.ha),e!=i.fa&&e!=i.zb||(a=i.ha),e==i.ha&&(a=r.F&&t.F==r.F?i.$:i.V),a},Se:function(e,t,n){return i.dispatchEvent(Xs(ec,(new Map).set("state",e.name))),r.get(e)(t,n)},handleError:function(e){return P((function(t){return 1==t.g?x(t,Ys(i,e),2):t.return(e.F?i.$:i.V)}))},Df:function(e){i.dispatchEvent(Xs(tc,(new Map).set("state",e.name)))}}),t&&this.Xb(t,!0)}function Xs(e,t){return new pi(e,t)}function Ys(e,t){var n,i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:return e.l!=hc&&(e.l=mc),n=e.md.map((function(e){return e()})),e.md=[],x(p,Promise.all(n),2);
2case 2:if(e.dispatchEvent(Xs(dc)),t.mimeType=null,t.startTime=null,t.uri=null,t.F&&(e.m.Da(t.F,"loadedmetadata"),e.m.Da(t.F,"playing"),e.m.Da(t.F,"pause"),e.m.Da(t.F,"ended"),e.m.Da(t.F,"ratechange")),e.yb&&(e.yb.release(),e.yb=null),e.yc&&(e.yc.stop(),e.yc=null),!e.J){p.A(3);break}return x(p,e.J.stop(),4);case 4:e.J=null,e.Dc=null;case 3:if(!e.s){p.A(5);break}return x(p,e.s.stop(),5);case 5:if(!e.j){p.A(7);break}return x(p,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.H&&(e.H.release(),e.H=null),e.D&&(e.D.release(),e.D=null),!e.N){p.A(9);break}return x(p,e.N.destroy(),10);case 10:e.N=null;case 9:if(e.C&&e.C.onAssetUnload(),!t.F||!t.F.src){p.A(11);break}return x(p,new Promise((function(e){return new rn(e).R(.1)})),12);case 12:for(t.F.removeAttribute("src"),t.F.load();t.F.lastChild;)t.F.removeChild(t.F.firstChild);case 11:if(!e.o){p.A(13);break}return x(p,e.o.destroy(),14);case 14:e.o=null;case 13:if(e.Ub=null,e.L=null,e.i){for(i=c(e.i.variants),r=i.next();!r.done;r=i.next())for(a=r.value,o=c([a.audio,a.video]),s=o.next();!s.done;s=o.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(d=c(e.i.textStreams),s=d.next();!s.done;s=d.next())(u=s.value).segmentIndex&&u.segmentIndex.release()}e.i=null,e.u=new $s,e.qd=null,pl(e),w(p)}}))}function Js(e,t,n,i,r){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",r),e.dispatchEvent(Xs(Ql,t))}function Zs(e,t){t&&"chapters"==t.kind&&(t.mode="hidden",new rn((function(){for(var t=rl(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Nb().R(.5))}function Qs(e,t){return new Bi(t,e.h.drm.updateExpirationTime)}function el(e,t){e.L=new ei,e.L.g=ni,ti(e.L,t,Math.min(.5,t/2)),pl(e),e.yc=new rn((function(){tl(e)})).Ca(.25)}function tl(e){switch(e.l){case fc:if(e.g.ended)var t=!0;else{var n=Ba(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case gc:e:if(e.g.ended||Ga(e.N))t=!0;else{if(e.i.presentationTimeline.T()){n=e.i.presentationTimeline.fb();var i=Ba(e.g.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=Fa(e.g.buffered,e.g.currentTime);var r=t,a=(n=e.L).h.get(n.g);t=n.g,i=r||i>=a?ii:ni,n.g=i,t!=i&&pl(e)}function nl(e){if(e.J){var t=gi(e.h.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.J.configure(t)}if(e.o&&e.o.configure(e.h.drm),e.j){e.j.configure(e.h.streaming);try{ul(e,e.i)}catch(t){Sl(e,t)}e.s&&gl(e),!(t=e.j.l)||t.allowedByApplication&&t.allowedByKeySystem||fl(e)}if(e.G&&e.G.Od(e.h.streaming.forceHTTPS),e.N&&(t=e.h.textDisplayFactory,e.qd!=t)){var n=Fe(t),i=e.N,r=i.l;i.l=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.g&&(i.g.i=n),e.qd=t,e.j&&((n=(t=e.j).i.get(ut))&&Xo(t,n.stream,!0,0,!0))}e.s&&(e.s.configure(e.h.abr),e.h.abr.enabled?e.s.enable():e.s.disable(),Tl(e)),e.L&&(t=e.h.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),ti(e.L,t,Math.min(.5,t/2))),e.i&&jl(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd)}function il(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function rl(e){return Array.from(e.g.textTracks).filter((function(e){return"chapters"==e.kind}))}function al(e,t){var n,i;return P((function(r){switch(r.g){case 1:return n=pr(t),(i=kc[n])?r.return(i):(k(r,2),x(r,ur(t,e.G,e.h.streaming.retryParameters),4));case 4:i=r.h,T(r,3);break;case 2:S(r);case 3:if(i)return r.return(i);throw new Ge(1,2,2011,n)}}))}function ol(e,t,n,i,r,a,o){var s,l,c,d;return P((function(u){if(1==u.g)return"text/vtt"!=r||o.length?x(u,sl(e,t,e.G,e.h.streaming.retryParameters),3):u.A(2);2!=u.g&&(s=u.h,l=ll(e,s,r,o),c=new Blob([l],{type:"text/vtt"}),t=io(c),r="text/vtt"),(d=document.createElement("track")).src=ks(e.X,t),d.label=a,d.kind=i,d.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(d),w(u)}))}function sl(e,t,n,i){var r,a,o;return P((function(s){if(1==s.g){r=Si,(a=wi([t],i)).method="GET";var l=e.X;try{l.g.enabled&&Ts(l,a,{ot:Ls,su:!0})}catch(e){W("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return x(s,n.request(r,a).promise,2)}return o=s.h,s.return(o.data)}))}function ll(e,t,n,i){var r=qt[n];if(r)return n=r(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration},t=je(t),function(e,t){function n(e){for(var n=e,i=c(t),r=i.next();!r.done;r=i.next())(r=r.value).end&&r.start<e&&(n+=r.end-r.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(i=Math.floor(n/60%60))?"0":"")+i+":"+(10>(r=Math.floor(n%60))?"0":"")+r+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}function i(e){var t=[],n=700<=e.fontWeight,r="italic"==e.fontStyle,a=e.textDecoration.includes("underline");
2return n&&t.push("b"),r&&t.push("i"),a&&t.push("u"),n=t.reduce((function(e,t){return e+"<"+t+">"}),""),t=t.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak||e.spacer?(e.spacer&&De("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(i).join(""):n+e.payload+t}for(var r=e.map((function(e){if(e.nestedCues.length){var t=e.clone();return t.nestedCues=[],t.payload=i(e),t}return e})),a="WEBVTT\n\n",o=(r=c(r)).next();!o.done;o=r.next())a+=n((o=o.value).startTime)+" --\x3e "+n(o.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case oe:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(o)+"\n",a+=o.payload+"\n\n";return a}(t=n.parseMedia(t,e),i);throw new Ge(2,2,2014,n)}function cl(e){var t=Us();return t.streaming.failureCallback=function(t){e.T()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.Jd())},t.textDisplayFactory=function(){return e.xc?new gs(e.g,e.xc):new ds(e.g)},t}function dl(e,t){return P((function(n){if(1==n.g)return x(n,function(e,t){return P((function(n){if(1==n.g)return x(n,bn(e.j?e.j.l:null,t),2);Ll(t),w(n)}))}(e,t),2);ul(e,t),w(n)}))}function ul(e,t){if(e.l!=hc){for(var n=e.h.restrictions,i=e.sd,r=!1,a=c(t.variants),o=a.next();!o.done;o=a.next()){var s=(o=o.value).allowedByApplication;o.allowedByApplication=vn(o,n,i),s!=o.allowedByApplication&&(r=!0)}if(r&&e.j&&xl(e),(n=e.o?e.o.g:null)&&e.o.s)for(r=(i=c(t.variants)).next();!r.done;r=i.next())for(a=(r=c(((r=r.value).video?r.video.drmInfos:[]).concat(r.audio?r.audio.drmInfos:[]))).next();!a.done;a=r.next())if((a=a.value).keySystem==n.keySystem)for(o=(a=c(a.initData||[])).next();!o.done;o=a.next())o=o.value,Gi(e.o,o.initDataType,o.initData);Nl(e,t)}}function pl(e){var t=e.od();if(e.u&&e.L&&e.D){var n=e.H;n.j=t,Do(n),e.X&&(n=e.X,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),ml(e)}t=(new Map).set("buffering",t),e.dispatchEvent(Xs(Vl,t))}function hl(e){var t=e.g.playbackRate;0!=t&&(e.H&&e.H.set(t),t=Xs(nc),e.dispatchEvent(t))}function ml(e){if(e.u&&e.L){var t=e.u.g;e.L.g==ni?qs(t,"buffering"):e.g.paused?qs(t,"paused"):e.g.ended?qs(t,"ended"):qs(t,"playing")}}function gl(e){try{Nl(e,e.i)}catch(t){return Sl(e,t),!1}var t=e.i.variants.filter((function(e){return Pn(e)}));return t=e.vb.create(t),e.s.setVariants(Array.from(t.values())),!0}function fl(e){var t;(t=gl(e)?e.s.chooseVariant():null)&&vl(e,t,!0,!0,0)}function vl(e,t,n,i,r){var a=e.j.l;if(t==a)i&&$o(e.j,t,i,r,!0);else{var o=e.u.h;o.h!=t&&(o.h=t,o.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),$o(e.j,t,i,r),i=null,a&&(i=En(a)),t=En(t),n?yl(e,i,t):wl(e,i,t)}}function bl(e,t){var n=Array.from(e.g.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),wl(e,n=Nn(n),Nn(t))}function yl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),Pl(e,t=Xs(Fl,t))}function xl(e){Pl(e,Xs(cc))}function wl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),Pl(e,t=Xs(uc,t))}function kl(e){Pl(e,Xs(rc))}function Al(e){Pl(e,Xs(ac))}function Tl(e){var t=(new Map).set("newStatus",e.h.abr.enabled);Pl(e,Xs(Ul,t))}function Sl(e,t){if(e.l!=hc){var n=Xs($l,(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function El(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(Xs(t,n))}function Il(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new Ge(2,3,3016,t,n,e.g.error.message)}function Cl(e,t){if(e.j){var n=Object.keys(t),i=1==n.length&&"00"==n[0],r=!1;if(n.length)for(var a=(n=c(e.i.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=c(o)).next();!s.done;s=o.next()){var l=s.value;if(s=a.allowedByKeySystem,l.keyIds.size){a.allowedByKeySystem=!0;for(var d=(l=c(l.keyIds)).next();!d.done;d=l.next())d=d.value,d=t[i?"00":d],a.allowedByKeySystem=a.allowedByKeySystem&&!!d&&!bc.includes(d)}s!=a.allowedByKeySystem&&(r=!0)}}r&&gl(e),(i=e.j.l)&&!i.allowedByKeySystem&&fl(e),r&&xl(e)}}function _l(e,t,n){e.J&&e.J.onExpirationUpdated&&e.J.onExpirationUpdated(t,n),t=Xs(Wl),e.dispatchEvent(t)}function jl(e,t,n){0<t&&(e.T()||e.ze(t)),n<(t=e.getDuration())&&(e.T()||e.Ka(n))}function Nl(e,t){var n=e.o?e.o.Gc():{},i=Object.keys(n);i=i.length&&"00"==i[0];for(var r=!1,a=!1,o=new Set,s=new Set,l=c(t.variants),d=l.next();!d.done;d=l.next()){var u=[];(d=d.value).audio&&u.push(d.audio),d.video&&u.push(d.video);for(var p=(u=c(u)).next();!p.done;p=u.next())if((p=p.value).keyIds.size)for(var h=(p=c(p.keyIds)).next();!h.done;h=p.next()){h=h.value;var m=n[i?"00":h];m?bc.includes(m)&&s.add(m):o.add(h)}d.allowedByApplication?d.allowedByKeySystem&&(r=!0):a=!0}if(!r)throw new Ge(2,4,4012,n={hasAppRestrictions:a,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(s)})}function Ll(e){if(!e.variants.some(Pn))throw new Ge(2,4,4032)}function Pl(e,t){P((function(n){if(1==n.g)return x(n,Promise.resolve(),2);e.l!=hc&&e.dispatchEvent(t),w(n)}))}function Dl(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(Wt(n.language)):t.add("und");return t}function Ml(e){for(var t=new Map,n=new Map,i=(e=c(e)).next();!i.done;i=e.next()){var r="und",a=[];(i=i.value).language&&(r=Wt(i.language)),(a="variant"==i.type?i.audioRoles:i.roles)&&a.length||(a=[""]),t.has(r)||t.set(r,new Set);for(var o=(a=c(a)).next();!o.done;o=a.next())o=o.value,t.get(r).add(o),i.label&&(n.has(r)||n.set(r,new Map),n.get(r).set(o,i.label))}var s=[];return t.forEach((function(e,t){for(var i=c(e),r=i.next();!r.done;r=i.next()){r=r.value;var a=null;n.has(t)&&n.get(t).has(r)&&(a=n.get(t).get(r)),s.push({language:t,role:r,label:a})}})),s}function Ol(){return new Ge(2,7,7e3)}function Rl(e,t,n,i,r,a){return i==e&&r.F==a.F&&r.uri==a.uri&&r.mimeType==a.mimeType?t:n}function zl(){return{F:null,mimeType:null,startTime:null,Sd:NaN,uri:null}}function Bl(e){return new Promise((function(t,n){e.mb=function(){return n(Ol())},e.Mc=function(){return t()},e.onError=function(e){return n(e)},e.Oc=function(){return n(Ol())}}))}F("shaka.util.CmcdManager.StreamingFormat",{jg:"d",qg:"h",Ag:"s",wg:"o"}
2),F("shaka.util.ConfigUtils",Os),Os.convertToConfigObject=zs,Os.mergeConfigObjects=Rs,F("shaka.util.PlayerConfiguration",Bs),Bs.mergeConfigObjects=Fs,f(Ws,mi),(i=Ws.prototype).destroy=function(){var e,t=this;return P((function(n){switch(n.g){case 1:return t.l==hc?n.return():(t.l=hc,e=ls(t.Ga,(function(){return{node:t.V,payload:zl(),ib:!1}})),x(n,new Promise((function(t){e.Jb=function(){},e.Mc=function(){t()},e.mb=function(){t()},e.onError=function(){t()},e.Oc=function(){t()}})),2));case 2:return x(n,t.Ga.destroy(),3);case 3:if(t.m&&(t.m.release(),t.m=null),t.kd=null,t.s=null,t.h=null,t.u=null,t.xc=null,t.X=null,!t.G){n.A(4);break}return x(n,t.G.destroy(),5);case 5:t.G=null;case 4:mi.prototype.release.call(t),w(n)}}))},i.Xb=function(e,t){if(t=void 0===t||t,this.l==hc)return Promise.reject(Ol());var n=zl();n.F=e,an()||(t=!1);var i=t?this.xb:this.$,r=ls(this.Ga,(function(){return{node:i,payload:n,ib:!1}}));return r.Jb=function(){},Bl(r)},i.detach=function(){var e=this;if(this.l==hc)return Promise.reject(Ol());var t=ls(this.Ga,(function(){return{node:e.V,payload:zl(),ib:!1}}));return t.Jb=function(){},Bl(t)},i.Vd=function(e){var t=this;if(e=void 0===e||e,this.l==hc)return Promise.reject(Ol());an()||(e=!1);var n=zl(),i=ls(this.Ga,(function(i){var r=i.F&&e?t.xb:i.F?t.$:t.V;return n.F=i.F,{node:r,payload:n,ib:!1}}));return i.Jb=function(){},Bl(i)},i.eg=function(e){this.Wb=e},i.load=function(e,t,n){var i=this;if(this.Wb=null,this.l==hc)return Promise.reject(Ol());this.dispatchEvent(Xs(Yl));var r=zl();r.uri=e,r.Sd=Date.now()/1e3,n&&(r.mimeType=n),void 0!==t&&(r.startTime=t);var a=function(e,t){if(!an())return!0;var n=t.mimeType,i=t.uri||"";if(n||(n=pr(i),n=wc[n]),n){if(""==(t.F||un()).canPlayType(n))return!1;if(!an()||!(n in hr)&&!(pr(i)in mr)||e.h.streaming.preferNativeHls)return!0;if(ln())return e.h.streaming.useNativeHlsOnSafari}return!1}(this,r)?this.zb:this.fa,o=ls(this.Ga,(function(e){return null==e.F?null:(r.F=e.F,{node:a,payload:r,ib:!0})}));return this.u=new $s,this.X=function(e){return new xs({getBandwidthEstimate:function(){return e.s?e.s.getBandwidthEstimate():NaN},Za:function(){return e.Za()},Xe:function(){return e.g?e.g.currentTime:0},hb:function(){return e.hb()},Hc:function(){return e.Hc()},T:function(){return e.T()}},e.h.cmcd)}(this),o.Jb=function(){},new Promise((function(e,t){o.Oc=function(){return t(new Ge(2,7,7002))},o.Mc=function(){e(),i.dispatchEvent(Xs(Xl))},o.mb=function(){return t(Ol())},o.onError=function(e){return t(e)}}))},i.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=zs(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(De("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=Fs(this.h,e,cl(this));return nl(this),n},i.getConfiguration=function(){var e=cl(this);return Fs(e,this.h,cl(this)),e},i.Ve=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.kc().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},i.Qf=function(){for(var e in this.h)delete this.h[e];Fs(this.h,cl(this),cl(this)),nl(this)},i.bf=function(){return this.l},i.ff=function(){return this.g},i.bc=function(){return this.G},i.ld=function(){return this.Ub},i.he=function(){return this.C?this.C:null},i.T=function(){return this.i?this.i.presentationTimeline.T():!(!this.g||!this.g.src)&&1/0==this.g.duration},i.kb=function(){return!!this.i&&this.i.presentationTimeline.kb()},i.xf=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},i.kc=function(){if(this.i){var e=this.i.presentationTimeline;return{start:e.Eb(),end:e.Pa()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},i.vf=function(){this.T()&&(this.g.currentTime=this.kc().end)},i.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},i.drmInfo=function(){return this.o?this.o.g:null},i.ac=function(){return this.o?this.o.ac():1/0},i.Gc=function(){return this.o?this.o.Gc():{}},i.od=function(){return!!this.L&&this.L.g==ni},i.Hc=function(){return this.g?this.H?this.H.i:1:0},i.$f=function(e){0==e?$("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.H.set(e),this.l==gc&&(this.s.playbackRateChanged(e),Ko(this.j,1<Math.abs(e))))},i.Me=function(){var e=this.H.Fc();this.l==fc&&this.H.set(e),this.l==gc&&(this.H.set(e),this.s.playbackRateChanged(e),Ko(this.j,!1))},i.hb=function(){if(this.i){for(var e=this.j?this.j.l:null,t=[],n=0,i=c(this.i.variants),r=i.next();!r.done;r=i.next())if(Pn(r=r.value)){var a=En(r);a.active=r==e,a.active||1==n||null==e||r.video!=e.video||r.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map((function(e){return Nn(e)})):[]},i.gb=function(){if(this.i){for(var e=this.j?this.j.o:null,t=[],n=c(this.i.textStreams),i=n.next();!i.done;i=n.next()){var r=In(i=i.value);r.active=i==e,t.push(r)}return t}return this.g&&this.g.src&&this.g.textTracks?il(this).map((function(e){return jn(e)})):[]},i.$e=function(){return this.i?this.i.imageStreams.map((function(e){return Cn(e)})):[]},i.qf=function(e,t){var n,i,r,a,o,s,l,c,d,u,p,h,m,g,f,v,b,y,w=this;return P((function(k){return 1==k.g?w.i?(n=w.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?k.A(3):x(k,n.createSegmentIndex(),3):k.return(null):k.A(2):2!=k.g?null==(i=n.segmentIndex.find(t))?k.return(null):(r=n.segmentIndex.get(i),a=r.tilesLayout||n.tilesLayout,(o=/(\d+)x(\d+)/.exec(a))?(s=n.width||0,l=n.height||0,c=parseInt(o[1],10),d=parseInt(o[2],10),u=s/c,p=l/d,h=c*d,m=r.l-r.startTime,g=r.i||m/h,f=r.startTime,b=v=0,1<h&&(y=Math.floor((t-r.startTime)/g),f=r.startTime+y*g,v=y%c*u,b=Math.floor(y/c)*p),k.return({imageHeight:l,imageWidth:s,height:p,positionX:v,positionY:b,startTime:f,duration:g,uris:r.ya(),width:u})):k.return(null)):k.return(null)}))},i.ve=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.o&&(Ks(this.u.h,t,!1),Wo(this.j,t),kl(this),this.wb=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=c(t=il(this))).next();!n.done;n=t.next())_n(n=n.value)==e.id?n.mode=this.pa?"showing":"hidden":n.mode="disabled";kl(this)}},i.we=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.h.abr.enabled&&$("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var i=this.i.variants.find((function(t){return t.id==e.id}));i&&Pn(i)&&(vl(this,i,!1,t,n),this.vb=new Zn(i),gl(this))}else if(this.g&&this.g.audioTracks)for(n=(t=c(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(_n(n=n.value)==e.id){bl(this,n);break}},i.Ue=function(){return Ml(this.hb())},i.pf=function(){return Ml(this.gb())},i.Te=function(){return Array.from(Dl(this.hb()))},i.nf=function(){return Array.from(Dl(this.gb()))},i.Ld=function(e,t){if(this.i&&this.D){this.vb=new Qn(e,t||"",0,"");for(var n=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},i=this.j.l,r=this.vb.create(this.i.variants),a=null,o=(r=c(r.values())
2).next();!o.done;o=r.next())o=o.value,(!a||n(a,i)>n(o,i))&&(a=o);a?(n=En(a),this.we(n,!0)):fl(this)}else if(this.g&&this.g.audioTracks){for(r=Array.from(this.g.audioTracks),n=Wt(e),a=i=null,o=(r=c(r)).next();!o.done;o=r.next()){var s=Nn(o=o.value);Wt(s.language)==n&&(i=o,t?s.roles.includes(t)&&(a=o):0==s.roles.length&&(a=o))}a?bl(this,a):i&&bl(this,i)}},i.Md=function(e,t,n){if(n=void 0!==n&&n,this.i&&this.D)this.wb=e,this.Ob=t||"",this.Vb=n,(e=Mn(this.i.textStreams,this.wb,this.Ob,this.Vb)[0]||null)&&e!=this.j.o&&(Ks(this.u.h,e,!1),this.h.streaming.alwaysStreamText||this.pd())&&(Wo(this.j,e),kl(this));else{var i=Wt(e);(e=this.gb().find((function(e){return Wt(e.language)==i&&(!t||e.roles.includes(t))&&e.forced==n})))&&this.ve(e)}},i.Sf=function(e){if(this.i&&this.D){for(var t=null,n=c(this.i.variants),i=n.next();!i.done;i=n.next())if((i=i.value).audio.label==e){t=i;break}null!=t&&(this.vb=new Qn(t.language,"",0,e),fl(this))}},i.pd=function(){var e=this.pa;return this.N?this.N.l.isTextVisible():this.g&&this.g.src&&this.g.textTracks?il(this).some((function(e){return"showing"==e.mode})):e},i.ie=function(){return this.g&&this.g.src&&this.g.textTracks?rl(this).map((function(e){return jn(e)})):[]},i.We=function(e){var t=Wt(e),n=rl(this).filter((function(e){return Wt(e.language)==t}));if(!n||!n.length)return[];e=[];for(var i=(n=c(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var r=(i=c(i.cues)).next();!r.done;r=i.next())r=r.value,e.push({title:r.text,startTime:r.startTime,endTime:r.endTime});return e},i.Yf=function(e){if(e=!!e,this.pa!=e){if(this.pa=e,this.l==gc)this.N.l.setTextVisibility(e),this.h.streaming.alwaysStreamText||(e?this.j.o||0<(e=Mn(this.i.textStreams,this.wb,this.Ob,this.Vb)).length&&(Wo(this.j,e[0]),kl(this)):function(e){var t=e.i.get(ut);t&&(rs(t),as(t).catch((function(){})),e.i.delete(ut)),e.o=null}(this.j));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=il(this),n=(t=c(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Al(this)}},i.jf=function(){if(!this.T())return null;var e=this.Ga.l,t=0;if(this.D)t=this.D.m();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.j+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},i.je=function(){if(!this.T())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.j);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},i.Za=function(){if(this.l==gc)return this.N.Za();var e={total:[],audio:[],video:[],text:[]};return this.l==fc&&(e.total=Va(this.g.buffered)),e},i.getStats=function(){if(this.l!=gc&&this.l!=fc)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};ml(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.u;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),n=this.u,t=Number(e.totalVideoFrames),n.L=Number(e.droppedVideoFrames),n.J=t,this.u.H=Number(e.corruptedVideoFrames)),this.o?e=(e=this.o).J?e.J:NaN:e=NaN,this.u.m=e,this.l==gc&&((e=this.j.l)&&(this.u.s=(this.H?this.H.i:1)*e.bandwidth),e&&e.video&&(n=this.u,t=e.video.height||NaN,n.N=e.video.width||NaN,n.u=t),this.T()&&(e=this.je().valueOf()+1e3*this.kc().end,this.u.C=(Date.now()-e)/1e3),this.i&&this.i.presentationTimeline&&(this.u.G=this.i.presentationTimeline.g),e=this.s.getBandwidthEstimate(),this.u.o=e);var i=this.u;e=i.N,n=i.u,t=i.s;for(var r=i.J,a=i.L,o=i.H,s=i.o,l=i.i,d=i.l,u=i.D,p=i.j,h=Hs(i.g,"playing"),m=Hs(i.g,"paused"),g=Hs(i.g,"buffering"),f=i.m,v=i.C,b=i.G,y=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=c(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(i.g),x=[],w=(i=c(i.h.g)).next();!w.done;w=i.next())w=w.value,x.push({timestamp:w.timestamp,id:w.id,type:w.type,fromAdaptation:w.fromAdaptation,bandwidth:w.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:r,droppedFrames:a,corruptedFrames:o,estimatedBandwidth:s,completionPercent:l,loadLatency:d,manifestTimeSeconds:u,drmTimeSeconds:p,playTime:h,pauseTime:m,bufferingTime:g,licenseTime:f,liveLatency:v,maxSegmentDuration:b,stateHistory:y,switchHistory:x}},i.addTextTrack=function(e,t,n,i,r,a,o){if(o=void 0!==o&&o,De("addTextTrack","Please use an addTextTrackAsync."),this.l!=gc&&this.l!=fc)throw new Ge(1,7,7004);if(!i){var s=pr(e);if(!(i=kc[s]))throw new Ge(1,2,2011,s)}if(this.l==fc){if("text/vtt"!=i)throw new Ge(1,2,2013,i);if(o&&(n="forced"),(i=document.createElement("track")).src=ks(this.X,e),i.label=a||"",i.kind=n,i.srclang=t,this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous"),this.g.appendChild(i),e=this.gb().find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return xl(this),e;throw new Ge(1,2,2012)}if(1/0==(s=this.i.presentationTimeline.getDuration()))throw new Ge(1,4,4033);if(!Bt(Dt((e={id:this.wd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:jo(0,s,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:ut,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}).mimeType,e.codecs)))throw new Ge(2,2,2014,i);return this.i.textStreams.push(e),xl(this),In(e)},i.Ie=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s,l,c,d,u,p,h,m,g,f,v=this;return P((function(b){switch(b.g){case 1:if(v.l!=gc&&v.l!=fc)throw new Ge(1,7,7004);if(i){b.A(2);break}return x(b,al(v,e),3);case 3:i=b.h;case 2:if(s=[],v.C)try{s=v.C.getServerSideCuePoints()}catch(e){}if(v.l!=fc){b.A(4);break}return o&&(n="forced"),x(b,ol(v,e,t,n,i,a||"",s),5);case 5:if(l=v.gb(),c=l.find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return xl(v),b.return(c);throw new Ge(1,2,2012);case 4:if(d=pt,1/0==(u=v.i.presentationTimeline.getDuration()))throw new Ge(1,4,4033);if(!s.length){b.A(6);break}return x(b,sl(v,e,v.G,v.h.streaming.retryParameters),7);case 7:p=b.h,h=ll(v,p,i,s),m=new Blob([h],{type:"text/vtt"}),e=io(m),i="text/vtt";case 6:if(g={id:v.wd++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:jo(0,u,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:d.Y,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},f=Dt(g.mimeType,g.codecs),!Bt(f))throw new Ge(2,2,2014,i);return v.i.textStreams.push(g),xl(v),b.return(In(g))}}))},i.He=function(e,t,n){var i,r,a,o,s,l,d,u=this;return P((function(p){switch(p.g){case 1:if(u.l!=gc&&u.l!=fc)throw new Ge(1,7,7004);if(n){p.A(2);break}return x(p,al(u,e),3);case 3:n=p.h;case 2:if(i=[],u.C)try{i=u.C.getServerSideCuePoints()}catch(e){}return x(p,ol(u,e,t,"chapters",n,"",i),4);case 4:if(r=u.ie(),a=r.find((function(e){return e.language==t}))){for(o=rl(u),s=c(o),l=s.next();!l.done;l=s.next())d=l.value,Zs(u,d);return p.return(a)}throw new Ge(1,2,2012)}}))},i.Pd=function(e,t){this.sd.width=e,this.sd.height=t},i.Jd=function(){if(this.l==gc){var e=this.j;if(e.j.g)e=!1;else if(e.s)e=!1;else{for(var t=c(e.i.values()),n=t.next();!n.done;n=t.next())(n=n.value).ec&&(n.ec=!1,is(e,n,.1));e=!0}}else e=!1;return e},i.cf=function(){return $("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees.  It may change at any time!  Please consider filing a feature request for whatever you use getManifest() for."),this.i},i.df=function(){return this.Dc},i.Ae=function(e){this.xc=e},F("shaka.Player",Ws),Ws.prototype.setVideoContainer=Ws.prototype.Ae,Ws.prototype.getManifestParserFactory=Ws.prototype.df,Ws.prototype.getManifest=Ws.prototype.cf,Ws.prototype.retryStreaming=Ws.prototype.Jd,Ws.prototype.setMaxHardwareResolution=Ws.prototype.Pd,Ws.prototype.addChapter
2sTrack=Ws.prototype.He,Ws.prototype.addTextTrackAsync=Ws.prototype.Ie,Ws.prototype.addTextTrack=Ws.prototype.addTextTrack,Ws.prototype.getStats=Ws.prototype.getStats,Ws.prototype.getBufferedInfo=Ws.prototype.Za,Ws.prototype.getPresentationStartTimeAsDate=Ws.prototype.je,Ws.prototype.getPlayheadTimeAsDate=Ws.prototype.jf,Ws.prototype.setTextTrackVisibility=Ws.prototype.Yf,Ws.prototype.getChapters=Ws.prototype.We,Ws.prototype.getChaptersTracks=Ws.prototype.ie,Ws.prototype.isTextTrackVisible=Ws.prototype.pd,Ws.prototype.selectVariantsByLabel=Ws.prototype.Sf,Ws.prototype.selectTextLanguage=Ws.prototype.Md,Ws.prototype.selectAudioLanguage=Ws.prototype.Ld,Ws.prototype.getTextLanguages=Ws.prototype.nf,Ws.prototype.getAudioLanguages=Ws.prototype.Te,Ws.prototype.getTextLanguagesAndRoles=Ws.prototype.pf,Ws.prototype.getAudioLanguagesAndRoles=Ws.prototype.Ue,Ws.prototype.selectVariantTrack=Ws.prototype.we,Ws.prototype.selectTextTrack=Ws.prototype.ve,Ws.prototype.getThumbnails=Ws.prototype.qf,Ws.prototype.getImageTracks=Ws.prototype.$e,Ws.prototype.getTextTracks=Ws.prototype.gb,Ws.prototype.getVariantTracks=Ws.prototype.hb,Ws.prototype.cancelTrickPlay=Ws.prototype.Me,Ws.prototype.trickPlay=Ws.prototype.$f,Ws.prototype.getPlaybackRate=Ws.prototype.Hc,Ws.prototype.isBuffering=Ws.prototype.od,Ws.prototype.getKeyStatuses=Ws.prototype.Gc,Ws.prototype.getExpiration=Ws.prototype.ac,Ws.prototype.drmInfo=Ws.prototype.drmInfo,Ws.prototype.keySystem=Ws.prototype.keySystem,Ws.prototype.goToLive=Ws.prototype.vf,Ws.prototype.seekRange=Ws.prototype.kc,Ws.prototype.isAudioOnly=Ws.prototype.xf,Ws.prototype.isInProgress=Ws.prototype.kb,Ws.prototype.isLive=Ws.prototype.T,Ws.prototype.getAdManager=Ws.prototype.he,Ws.prototype.getAssetUri=Ws.prototype.ld,Ws.prototype.getNetworkingEngine=Ws.prototype.bc,Ws.prototype.getMediaElement=Ws.prototype.ff,Ws.prototype.getLoadMode=Ws.prototype.bf,Ws.prototype.resetConfiguration=Ws.prototype.Qf,Ws.prototype.getBufferFullness=Ws.prototype.Ve,Ws.prototype.getConfiguration=Ws.prototype.getConfiguration,Ws.prototype.configure=Ws.prototype.configure,Ws.prototype.load=Ws.prototype.load,Ws.prototype.updateStartTime=Ws.prototype.eg,Ws.prototype.unload=Ws.prototype.Vd,Ws.prototype.detach=Ws.prototype.detach,Ws.prototype.attach=Ws.prototype.Xb,Ws.probeSupport=function(e){var t,n,i,r,a;return e=void 0===e||e,P((function(o){if(1==o.g)return t={},e?x(o,function(){var e,t,n,i,r,a;return P((function(o){return 1==o.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],i=new Map,r=function(e){var t,r,a;return P((function(o){switch(o.g){case 1:if(k(o,2),"org.w3.clearkey"===e&&cn())throw Error("Unsupported keySystem");return x(o,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=o.h,a=!!(r=t.getConfiguration().sessionTypes)&&r.includes("persistent-license"),dn("Tizen 3")&&(a=!1),i.set(e,{persistentState:a}),x(o,t.createMediaKeys(),5);case 5:T(o,0);break;case 2:S(o),i.set(e,null),w(o)}}))},a=e.map((function(e){return r(e)})),x(o,Promise.all(a),2)):o.return(Ri(i))}))}(),3):o.A(2);2!=o.g&&(t=o.h);var s={};if(an()){for(var l in hr)s[l]=!0;for(var u in mr)s[u]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var p=(u=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!p.done;p=u.next())s[p=p.value]=an()?!!hr[p]:on(p);for(var h in l)s[h]=an()?!!mr[h]:on(l[h]);for(n=s,s={},l=(h=c(h='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4;
2 codecs="stpp"'.split(",").concat(d(ao)))).next();!l.done;l=h.next())s[l=l.value]=an()?!!Bt(l)||(MediaSource.isTypeSupported(l)||Nt(l)):on(l),s[u=l.split(";")[0]]=s[u]||s[l];for(a in i={manifest:n,media:s,drm:t},r=yc)i[a]=r[a]();return o.return(i)}))},Ws.isBrowserSupported=function(){if(e.Promise||$("A Promise implementation or polyfill is required"),e.TextDecoder&&e.TextEncoder||$("A TextDecoder/TextEncoder implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&e.TextDecoder&&e.TextEncoder&&Array.prototype.forEach)||dn("Trident/"))return!1;var t=cn();return!(t&&12>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!an()||on("application/x-mpegurl"))},Ws.setAdManagerFactory=function(e){xc=e},Ws.registerSupportPlugin=function(e,t){yc[e]=t},Ws.prototype.destroy=Ws.prototype.destroy;var Ul="abrstatuschanged",Fl="adaptation",Vl="buffering",ql="downloadfailed",Hl="downloadheadersreceived",Gl="drmsessionupdate",Kl="emsg",$l="error",Wl="expirationupdated",Xl="loaded",Yl="loading",Jl="manifestparsed",Zl="mediaqualitychanged",Ql="metadata",ec="onstatechange",tc="onstateidle",nc="ratechange",ic="streaming",rc="textchanged",ac="texttrackvisibility",oc="timelineregionadded",sc="timelineregionenter",lc="timelineregionexit",cc="trackschanged",dc="unloading",uc="variantchanged",pc={gg:Ul,hg:Fl,ig:Vl,kg:ql,lg:Hl,mg:Gl,og:Kl,Error:$l,pg:Wl,rg:"largegap",sg:Xl,tg:Yl,ug:Jl,vg:Zl,Metadata:Ql,xg:ec,yg:tc,zg:nc,Bg:"sessiondata",Cg:ic,Dg:rc,Eg:ac,Fg:oc,Gg:sc,Hg:lc,Ig:cc,Jg:dc,Kg:uc},hc=0,mc=1,gc=2,fc=3;Ws.LoadMode={DESTROYED:hc,NOT_LOADED:mc,MEDIA_SOURCE:gc,SRC_EQUALS:fc},Ws.version="v3.1.6-master-18-gd6bdf9a4";var vc=["3","1"];Re=new function(e){this.g=e,this.i=Me,this.h=Oe}(new Pe(Number(vc[0]),Number(vc[1])));var bc=["output-restricted","internal-error"],yc={},xc=null,wc={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},kc={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Ac(){this.h=[],this.j=this.i=this.g=0}function Tc(e,t,n){var i=this;this.h=e,this.g=t,this.m=n,this.i=!1,this.l=this.g.getVolume(),this.j=new ji,this.j.B(this.g,google.ima.AdEvent.Type.PAUSED,(function(){i.i=!0})),this.j.B(this.g,google.ima.AdEvent.Type.RESUMED,(function(){i.i=!1}))}function Sc(t,n,i,r){var a=this;this.o=t,this.i=n,this.s=null,this.u=NaN,this.j=r,this.m=null,this.h=new ji,google.ima.settings.setLocale(i),(t=new google.ima.AdDisplayContainer(this.o,this.i)).initialize(),this.l=new google.ima.AdsLoader(t),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v3.1.6-master-18-gd6bdf9a4"),this.g=null,this.h.ta(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){t.j(new pi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.u))),t.g=n.getAdsManager(t.i),t.j(new pi("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var i=t.g.getCuePoints();if(i.length){for(var r=[],a=(i=c(i)).next();!a.done;a=i.next())r.push({start:a.value,end:null});t.j(new pi("ad-cue-points-changed",(new Map).set("cuepoints",r)))}!function(e){function t(t,n){var i=(new Map).set("originalEvent",t);e.j(new pi(n,i))}e.h.B(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){Ec(e,t)})),e.h.B(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){Cc(e,t)})),e.h.B(e.g,google.ima.AdEvent.Type.STARTED,(function(t){Cc(e,t)})),e.h.B(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.B(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.B(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.B(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")}
2)),e.h.B(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){_c(e,t)})),e.h.B(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){_c(e,t)})),e.h.B(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.B(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.B(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.B(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.m.i=!0,t(n,"ad-paused")})),e.h.B(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.m.i=!1,t(n,"ad-resumed")})),e.h.B(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(e){t(e,"ad-skip-state-changed")})),e.h.B(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.B(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.B(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.B(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.B(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.B(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.B(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.B(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.B(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.B(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.B(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.B(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.B(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,Ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.B(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,Ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e&&(t.s=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,Ic(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.s.observe(t.i)),t.g.start()}catch(e){_c(t,null)}}(a,t)})),this.h.B(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){Ec(a,e)})),this.i.onended=function(){a.l.contentComplete()}}function Ec(e,t){t.getError(),_c(e,null),e.j(new pi("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function Ic(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function Cc(e,t){var n=t.getAd();e.m=new Tc(n,e.g,e.i),n=(new Map).set("ad",e.m).set("sdkAdObject",n).set("originalEvent",t),e.j(new pi("ad-started",n)),e.m.isLinear()&&(e.o.setAttribute("ad-active","true"),e.i.pause())}function _c(e,t){e.j(new pi("ad-stopped",(new Map).set("originalEvent",t))),e.m.isLinear()&&(e.o.removeAttribute("ad-active"),e.i.play())}function jc(e,t){this.i=e,this.h=null,this.g=t}function Nc(e,t,n,i){var r=this;this.s=e,this.l=t,this.j=null,this.H=NaN,this.i=i,this.G=!1,this.u=this.m=this.o=null,this.C="",this.D=[],this.h=new ji,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.s,e),this.i(new pi("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new pi("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.H)));var n=t.getStreamData().url;e.j.resolve(n),e.j=null,e.G||e.h.B(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.o=t,e.l.currentTime=n.start)}}))}(r,e)})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){r.C.length?r.j.resolve(r.C):r.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),r.j=null})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),r.m=new jc(e,r.l),r.u&&(r.m.h=r.u),r.i(new pi("ad-started",(new Map).set("ad",r.m))),r.s.setAttribute("ad-active","true")})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){r.s.removeAttribute("ad-active");var e=r.l.currentTime;r.o&&r.o>e&&(r.l.currentTime=r.o,r.o=null)})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){r.u=e.getStreamData().adProgressData,r.m&&(r.m.h=r.u)})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){r.i(new pi("ad-first-quartile"))})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){r.i(new pi("ad-midpoint"))})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){r.i(new pi("ad-third-quartile"))})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){r.i(new pi("ad-complete")),r.i(new pi("ad-stopped")),r.s.removeAttribute("ad-active"),r.m=null})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){r.i(new pi("ad-skipped")),r.i(new pi("ad-stopped"))})),this.h.B(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});r.D=e,r.i(new pi("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function Lc(){mi.call(this),this.g=this.i=null,this.h=new Ac,this.j=navigator.language}function Pc(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof pi){var n={};for(r in t){var i=t[r];
2i&&"object"==typeof i?"detail"==r&&(n[r]=i):r in Event||(n[r]=i)}return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(i=c(Object.getOwnPropertyNames(t))).next();!n.done;n=i.next())r.add(n.value);for(i={},n=(r=c(r)).next();!n.done;n=r.next())i[n=n.value]=t[n];r={__type__:"Error",contents:i}}else if(t instanceof TimeRanges)for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},i=(n=c(Va(t))).next();!i.done;i=n.next()){var a=(i=i.value).end;r.start.push(i.start),r.end.push(a)}else r=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return r}}))}function Dc(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){n=t.contents;var i,r=Error(n.message);for(i in n)r[i]=n[i];n=r}else n=t;return n}))}(i=Tc.prototype).getDuration=function(){return this.h.getDuration()},i.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()},i.getRemainingTime=function(){return this.g.getRemainingTime()},i.isPaused=function(){return this.i},i.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()},i.getTimeUntilSkippable=function(){var e=this.h.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return this.g.getAdSkippableState()},i.skip=function(){return this.g.skip()},i.pause=function(){return this.g.pause()},i.play=function(){return this.g.resume()},i.getVolume=function(){return this.g.getVolume()},i.setVolume=function(e){return this.g.setVolume(e)},i.isMuted=function(){return 0==this.g.getVolume()},i.isLinear=function(){return this.h.isLinear()},i.resize=function(e,t){var n=!1,i=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:i.webkitSupportsFullscreen&&(n=i.webkitDisplayingFullscreen),this.g.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},i.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},i.getSequenceLength=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.g=this.h=null},F("shaka.ads.ClientSideAd",Tc),Tc.prototype.release=Tc.prototype.release,Tc.prototype.getPositionInSequence=Tc.prototype.getPositionInSequence,Tc.prototype.getSequenceLength=Tc.prototype.getSequenceLength,Tc.prototype.setMuted=Tc.prototype.setMuted,Tc.prototype.resize=Tc.prototype.resize,Tc.prototype.isLinear=Tc.prototype.isLinear,Tc.prototype.isMuted=Tc.prototype.isMuted,Tc.prototype.setVolume=Tc.prototype.setVolume,Tc.prototype.getVolume=Tc.prototype.getVolume,Tc.prototype.play=Tc.prototype.play,Tc.prototype.pause=Tc.prototype.pause,Tc.prototype.skip=Tc.prototype.skip,Tc.prototype.canSkipNow=Tc.prototype.canSkipNow,Tc.prototype.getTimeUntilSkippable=Tc.prototype.getTimeUntilSkippable,Tc.prototype.isSkippable=Tc.prototype.isSkippable,Tc.prototype.isPaused=Tc.prototype.isPaused,Tc.prototype.getRemainingTime=Tc.prototype.getRemainingTime,Tc.prototype.getMinSuggestedDuration=Tc.prototype.getMinSuggestedDuration,Tc.prototype.getDuration=Tc.prototype.getDuration,Sc.prototype.stop=function(){this.g&&this.g.stop(),this.o&&ms(this.o)},Sc.prototype.release=function(){this.stop(),this.s&&this.s.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.l.destroy()},(i=jc.prototype).getDuration=function(){return this.h?this.h.duration:-1},i.getMinSuggestedDuration=function(){return this.getDuration()},i.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},i.isPaused=function(){return this.g.paused},i.isSkippable=function(){return this.i.isSkippable()},i.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},i.skip=function(){this.g.currentTime+=this.getRemainingTime()},i.pause=function(){return this.g.pause()},i.play=function(){return this.g.play()},i.getVolume=function(){return this.g.volume},i.setVolume=function(e){this.g.volume=e},i.isMuted=function(){return this.g.muted},i.isLinear=function(){return!0},i.resize=function(){},i.setMuted=function(e){this.g.muted=e},i.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.g=this.h=this.i=null},F("shaka.ads.ServerSideAd",jc),jc.prototype.release=jc.prototype.release,jc.prototype.getPositionInSequence=jc.prototype.getPositionInSequence,jc.prototype.getSequenceLength=jc.prototype.getSequenceLength,jc.prototype.setMuted=jc.prototype.setMuted,jc.prototype.resize=jc.prototype.resize,jc.prototype.isLinear=jc.prototype.isLinear,jc.prototype.isMuted=jc.prototype.isMuted,jc.prototype.setVolume=jc.prototype.setVolume,jc.prototype.getVolume=jc.prototype.getVolume,jc.prototype.play=jc.prototype.play,jc.prototype.pause=jc.prototype.pause,jc.prototype.skip=jc.prototype.skip,jc.prototype.canSkipNow=jc.prototype.canSkipNow,jc.prototype.getTimeUntilSkippable=jc.prototype.getTimeUntilSkippable,jc.prototype.isSkippable=jc.prototype.isSkippable,jc.prototype.isPaused=jc.prototype.isPaused,jc.prototype.getRemainingTime=jc.prototype.getRemainingTime,jc.prototype.getMinSuggestedDuration=jc.prototype.getMinSuggestedDuration,jc.prototype.getDuration=jc.prototype.getDuration,Nc.prototype.stop=function(){this.C="",this.o=null,this.D=[]},Nc.prototype.release=function(){this.stop(),this.h&&this.h.release()},Nc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},f(Lc,mi),(i=Lc.prototype).setLocale=function(e){this.j=e},i.initClientSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new Ge(2,10,1e4);this.i&&this.i.release(),this.i=new Sc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.h.h.push(e.loadTime);break;case"ad-started":i.h.g++;break;case"ad-complete":i.h.i++;break;case"ad-skipped":i.h.j++}i.dispatchEvent(e)}))},i.release=function(){this.i&&(this.i.release(),this.i=null),this.g&&(this.g.release(),this.g=null),mi.prototype.release.call(this)},i.onAssetUnload=function(){this.i&&this.i.stop(),this.g&&this.g.stop(),this.dispatchEvent(new pi("ad-stopped")),this.h=new Ac},i.requestClientSideAds=function(e){if(!this.i)throw new Ge(1,10,10001);var t=this.i;t.u=Date.now()/1e3,t.l.requestAds(e)},i.initServerSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.dai)throw new Ge(2,10,10002);this.g&&this.g.release(),this.g=new Nc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.h.h.push(e.loadTime);break;case"ad-started":i.h.g++;break;case"ad-complete":i.h.i++;break;case"ad-skipped":i.h.j++}i.dispatchEvent(e)}))},i.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new Ge(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&$('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v3.1.6-master-18-gd6bdf9a4";var i=t;return(n=this.g).j?n=Promise.reject(new Ge(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.G=!0),n.j=new mt,n.g.requestStream(e),n.C=i||"",n.H=Date.now()/1e3,n=n.j),n},i.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new Ge(1,10,10003);(e.mpt||e.mpv)&&$('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.1.6-master-18-gd6bdf9a4",this.g.g.replaceAdTagParameters(e)},i.getServerSideCuePoints=function(){if(!this.g)throw new Ge(1,10,10003);return this.g.D},i.getStats=function(){var e=this.h;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},i.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},i.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},i.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},F("shaka.ads.AdManager",Lc),Lc.prototype.onCueMetadataChange=Lc.prototype.onCueMetadataChange,Lc.prototype.onHlsTimedMetadata=Lc.prototype.onHlsTimedMetadata,Lc.prototype.onDashTimedMetadata=Lc.prototype.onDashTimedMetadata,Lc.prototype.getStats=Lc.prototype.getStats,Lc.prototype.getServerSideCuePoints=Lc.prototype.getServerSideCuePoints,Lc.prototype.replaceServerSideAdTagParameters=Lc.prototype.replaceServerSideAdTagParameters,Lc.prototype.requestServerSideStream=Lc.prototype.requestServerSideStream,Lc.prototype.initServerSide=Lc.prototype.initServerSide,Lc.prototype.requestClientSideAds=Lc.prototype.requestClientSideAds,Lc.prototype.onAssetUnload=Lc.prototype.onAssetUnload,Lc.prototype.release=Lc.prototype.release,Lc.prototype.initClientSide=Lc.prototype.initClientSide,Lc.prototype.setLocale=Lc.prototype.setLocale,Lc.ADS_LOADED="ads-loaded",Lc.AD_STARTED="ad-started",Lc.AD_FIRST_QUARTILE="ad-first-quartile",Lc.AD_MIDPOINT="ad-midpoint",Lc.AD_THIRD_QUARTILE="ad-third-quartile",Lc.AD_COMPLETE="ad-complete",Lc.AD_STOPPED="ad-stopped",Lc.AD_SKIPPED="ad-skipped",Lc.AD_VOLUME_CHANGED="ad-volume-changed",Lc.AD_MUTED="ad-muted",Lc.AD_PAUSED="ad-paused",Lc.AD_RESUMED="ad-resumed",Lc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Lc.CUEPOINTS_CHANGED="ad-cue-points-changed",Lc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Lc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Lc.AD_CLICKED="ad-clicked",Lc.AD_PROGRESS="ad-progress",Lc.AD_BUFFERING="ad-buffering",Lc.AD_IMPRESSION="ad-impression",Lc.AD_DURATION_CHANGED="ad-duration-changed",Lc.AD_CLOSED="ad-closed",Lc.AD_LOADED="ad-loaded",Lc.ALL_ADS_COMPLETED="all-ads-completed",Lc.AD_LINEAR_CHANGED="ad-linear-changed",Lc.AD_METADATA="ad-metadata",Lc.AD_RECOVERABLE_ERROR="ad-recoverable-error",Lc.AD_BREAK_READY="ad-break-ready",Lc.AD_INTERACTION="ad-interaction",xc=function(){return new Lc};var Mc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Oc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),Rc=["loop","playbackRate"],zc=["pause","play"],Bc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getL
2oadMode:10},Uc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Fc=[["getConfiguration","configure"]],Vc=[["isTextTrackVisible","setTextTrackVisibility"]],qc="addChaptersTrack addTextTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),Hc=["attach","detach","load","unload"];function Gc(e,t,n,i,r,a){var o=this;this.H=e,this.j=new rn(t),this.V=n,this.u=!1,this.s=i,this.G=r,this.L=a,this.h=this.m=!1,this.N="",this.o=null,this.C=function(){return Yc(o)},this.D=function(e,t){var n=Dc(t);switch(n.type){case"event":var i=n.targetName;n=hi(n.event),o.s(i,n);break;case"update":for(var r in i=n.update)for(var a in n=o.g[r]||{},i[r])n[a]=i[r][a];o.u&&(o.V(),o.u=!1);break;case"asyncComplete":if(r=n.id,n=n.error,a=o.i[r],delete o.i[r],a)if(n){for(i in r=new Ge(n.severity,n.category,n.code),n)r[i]=n[i];a.reject(r)}else a.resolve()}},this.g={video:{},player:{}},this.J=0,this.i={},this.l=null,nd.add(this)}function Kc(e,t,n){td=n,n.addUpdateListener(e.C),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.D),Yc(e),Zc(e,{type:"init",initState:t,appData:e.o}),e.l.resolve()}function $c(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new Ge(2,8,n,t))}function Wc(e,t){var n=e.L();e.l=new mt,e.u=!0,Kc(e,n,t)}function Xc(e){var t=td;t.removeUpdateListener(e.C),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.D)}function Yc(e){var t=!!td&&"connected"==td.status;if(e.h&&!t){for(var n in e.G(),e.g)e.g[n]={};Jc(e)}e.h=t,e.N=t?td.receiver.friendlyName:"",e.j.Nb()}function Jc(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new Ge(1,7,7e3))}}function Zc(e,t){var n=Pc(t),i=td;try{i.sendMessage("urn:x-cast:com.google.shaka.v2",n,(function(){}),X)}catch(t){throw n=new Ge(2,8,8005,t),i=new pi("error",(new Map).set("detail",n)),e.s("player",i),e.Bb(),n}}(i=Gc.prototype).destroy=function(){return nd.delete(this),Jc(this),td&&Xc(this),this.j&&(this.j.stop(),this.j=null),this.G=this.s=null,this.h=this.m=!1,this.D=this.C=this.l=this.i=this.g=this.o=null,Promise.resolve()},i.sa=function(){return this.h},i.Hd=function(){return this.N},i.init=function(){if(this.H.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.Nb();var t=new chrome.cast.SessionRequest(this.H);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=c(nd),n=t.next();!n.done;n=t.next())Wc(n.value,e)}),(function(e){for(var t=c(nd),n=t.next();!n.done;n=t.next())n=n.value,ed="available"==e,n.j.Nb()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),ed&&this.j.R(Qc),(t=td)&&t.status!=chrome.cast.SessionStatus.STOPPED?Wc(this,t):td=null}else e.__onGCastApiAvailable||(e.__onGCastApiAvailable=id),e.__onGCastApiAvailable!=id&&$("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")},i.Nd=function(e){this.o=e,this.h&&Zc(this,{type:"appData",appData:this.o})},i.cast=function(e){var t=this;return P((function(n){if(!t.m)throw new Ge(1,8,8e3);if(!ed)throw new Ge(1,8,8001);if(t.h)throw new Ge(1,8,8002);return t.l=new mt,chrome.cast.requestSession((function(n){return Kc(t,e,n)}),(function(e){return $c(t,e)})),x(n,t.l,0)}))},i.Bb=function(){if(this.h){if(Jc(this),td){Xc(this);try{td.stop((function(){}),(function(){}))}catch(e){}td=null}Yc(this)}},i.get=function(e,t){var n=this;if("video"==e){if(zc.includes(t))return function(){return n.se.apply(n,[e,t].concat(d(D.apply(0,arguments))))}}else if("player"==e){if(Uc[t]&&!this.get("player","isLive")())return function(){};if(qc.includes(t))return function(){return n.se.apply(n,[e,t].concat(d(D.apply(0,arguments))))};if(Hc.includes(t))return function(){return n.Nf.apply(n,[e,t].concat(d(D.apply(0,arguments))))};if(Bc[t])return function(){return n.g[e][t]}}return this.g[e][t]},i.set=function(e,t,n){this.g[e][t]=n,Zc(this,{type:"set",targetName:e,property:t,value:n})},i.se=function(e,t){Zc(this,{type:"call",targetName:e,methodName:t,args:D.apply(2,arguments)})},i.Nf=function(e,t){var n=D.apply(2,arguments),i=new mt,r=this.J.toString();this.J++,this.i[r]=i;try{Zc(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:r})}catch(e){i.reject(e)}return i};var Qc=.02,ed=!1,td=null,nd=new Set;function id(e){if(e)for(var t=(e=c(nd)).next();!t.done;
2t=e.next())t.value.init()}function rd(e,t,n){mi.call(this);var i=this;this.i=e,this.h=t,this.m=this.o=this.j=this.s=this.l=null,this.C=n,this.u=new Map,this.g=new Gc(n,(function(){return sd(i)}),(function(){return ld(i)}),(function(e,t){return ud(i,e,t)}),(function(){return cd(i)}),(function(){return od(i)})),function(e){e.g.init(),e.m=new ji;for(var t=c(Mc),n=t.next();!n.done;n=t.next())e.m.B(e.i,n.value,(function(t){e.g.sa()||(t=hi(t),e.j.dispatchEvent(t))}));for(var i in pc)e.m.B(e.h,pc[i],(function(t){e.g.sa()||e.o.dispatchEvent(t)}));for(var r in e.l={},t={},e.i)t.Pb=r,Object.defineProperty(e.l,t.Pb,{configurable:!1,enumerable:!0,get:function(t){return function(){return dd(e,t.Pb)}}(t),set:function(t){return function(n){var i=t.Pb;e.g.sa()?e.g.set("video",i,n):e.i[i]=n}}(t)}),t={Pb:t.Pb};e.s={},ad(e,(function(t){Object.defineProperty(e.s,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.u.has(t)&&(t=e.u.get(t)),"addEventListener"==t)return function(t,n,i){return e.o.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.o.removeEventListener(t,n,i)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.bc()};if("getDrmEngine"==t)return function(){return e.h.o};if("getAdManager"==t)return function(){return e.h.he()};if("setVideoContainer"==t)return function(t){return e.h.Ae(t)};if(e.g.sa()){if("getManifest"==t||"drmInfo"==t)return function(){return $(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return $(t+"() does not work while casting!"),Promise.resolve()}}return e.g.sa()&&0==Object.keys(e.g.g.video).length&&Bc[t]||!e.g.sa()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;ad(e,(function(n,i){if(t.has(i)){var r=t.get(i);n.length<r.length?e.u.set(n,r):e.u.set(r,n)}else t.set(i,n)}))}(e),e.j=new mi,e.j.Cc=e.l,e.o=new mi,e.o.Cc=e.s}(this)}function ad(e,t){function n(e){return"constructor"!=e&&"function"==typeof i[e]&&!r.has(e)}var i=e.h,r=new Set;for(a in i)n(a)&&(r.add(a),t(a,i[a]));for(var a=Object.getPrototypeOf(i),o=Object.getPrototypeOf({});a&&a!=o;){for(var s=c(Object.getOwnPropertyNames(a)),l=s.next();!l.done;l=s.next())n(l=l.value)&&(r.add(l),t(l,i[l]));a=Object.getPrototypeOf(a)}}function od(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.ld(),startTime:null};e.i.pause();for(var n=c(Rc),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.i[i];for(e.i.ended||(t.startTime=e.i.currentTime),i=(n=c(Fc)).next();!i.done;i=n.next()){var r=i.value;i=r[1],r=e.h[r[0]](),t.player[i]=r}for(i=(n=c(Vc)).next();!i.done;i=n.next())i=(r=i.value)[1],r=e.h[r[0]](),t.playerAfterLoad[i]=r;return t}function sd(e){var t=new pi("caststatuschanged");e.dispatchEvent(t)}function ld(e){var t=new pi(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function cd(e){for(var t=c(Fc),n=t.next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}var r=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var a=e.i.autoplay;i=null,n||(i=e.g.get("video","currentTime")),r&&(e.i.autoplay=!1,t=e.h.load(r,i));var o={};for(i=(n=c(Rc)).next();!i.done;i=n.next())i=i.value,o[i]=e.g.get("video",i);t.then((function(){if(e.i){for(var t=c(Rc),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=o[n];for(n=(t=c(Vc)).next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}e.i.autoplay=a,r&&e.i.play()}}),(function(t){t=(new Map).set("detail",t),t=new pi($l,t),e.h.dispatchEvent(t)}))}function dd(e,t){if("addEventListener"==t)return function(t,n,i){return e.j.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.j.removeEventListener(t,n,i)};if(e.g.sa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.sa()?e.g.get("video",t):("function"==typeof(n=e.i[t])&&(n=n.bind(e.i)),n)}function ud(e,t,n){e.g.sa()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.o.dispatchEvent(n))}function pd(e,t,n,i){mi.call(this);var r=this;this.g=e,this.h=t,this.j=new ji,this.J={video:e,player:t},this.D=n||function(){},this.L=i||function(e){return e},this.i=null,this.G=!1,this.o=!0,this.m=0,this.C=!1,this.u=!0,this.s=this.l=null,this.H=new rn((function(){fd(r)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return hd(e)},t.onSenderDisconnected=function(){return hd(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&xd(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),xd(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.s=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.s.onMessage=function(t){return function(e,t){var n=Dc(t.data);switch(n.type){case"PLAY":e.g.play(),wd(e);break;case"PAUSE":e.g.pause(),wd(e);break;case"SEEK":var i=n.currentTime,r=n.resumeState;null!=i&&(e.g.currentTime=Number(i)),r&&"PLAYBACK_START"==r?(e.g.play(),wd(e)):r&&"PLAYBACK_PAUSE"==r&&(e.g.pause(),wd(e));break;case"STOP":e.h.Vd().then((function(){e.h&&wd(e)}));break;case"GET_STATUS":bd(e,Number(n.requestId));break;case"VOLUME":i=(r=n.volume).level,r=r.muted;var a=e.g.volume,o=e.g.muted;null!=i&&(e.g.volume=Number(i)),null!=r&&(e.g.muted=r),a==e.g.volume&&o==e.g.muted||wd(e);break;case"LOAD":e.m=0,e.C=!1,e.u=!1,i=n.media,r=n.currentTime,a=e.L(i.contentId),o=n.autoplay||!0,e.D(i.customData),o&&(e.g.autoplay=!0),e.h.load(a,r).then((function(){e.h&&bd(e)})).catch((function(t){var i="LOAD_FAILED";7==t.category&&7e3==t.code&&(i="LOAD_CANCELLED"),xd(e,{requestId:Number(n.requestId),type:i},e.s)}
2));break;default:xd(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.s)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=Dc(t.data);switch(n.type){case"init":e.m=0,e.C=!1,e.u=!0,function(e,t,n){var i,r,a,o,s,l,c,d,u,p,h;P((function(m){switch(m.g){case 1:for(i in t.player)r=t.player[i],e.h[i](r);return e.D(n),a=e.g.autoplay,t.manifest?(e.g.autoplay=!1,k(m,5),x(m,e.h.load(t.manifest,t.startTime),7)):x(m,Promise.resolve(),3);case 7:T(m,3);break;case 5:return o=S(m),s=$l,l=(new Map).set("detail",o),c=new pi(s,l),e.h&&e.h.dispatchEvent(c),m.return();case 3:if(!e.h)return m.return();for(d in t.video)u=t.video[d],e.g[d]=u;for(p in t.playerAfterLoad)h=t.playerAfterLoad[p],e.h[p](h);e.g.autoplay=a,t.manifest&&(e.g.play(),wd(e)),w(m)}}))}(e,n.initState,n.appData),fd(e);break;case"appData":e.D(n.appData);break;case"set":var i=n.targetName,r=n.property;if(n=n.value,"video"==i){var a=cast.receiver.CastReceiverManager.getInstance();if("volume"==r){a.setSystemVolumeLevel(n);break}if("muted"==r){a.setSystemVolumeMuted(n);break}}e.J[i][r]=n;break;case"call":(i=e.J[n.targetName])[n.methodName].apply(i,n.args);break;case"asyncCall":i=n.targetName,r=n.methodName,"player"==i&&"load"==r&&(e.m=0,e.C=!1);var o=n.id,s=t.senderId;n=(a=e.J[i])[r].apply(a,n.args),"player"==i&&"load"==r&&(n=n.then((function(){e.u=!0}))),n.then((function(){return yd(e,s,o,null)}),(function(t){return yd(e,s,o,t)}))}}(e,t)},t.start();for(var n=(t=c(Mc)).next();!n.done;n=t.next())e.j.B(e.g,n.value,(function(t){return gd(e,"video",t)}));for(var i in pc)e.j.B(e.h,pc[i],(function(t){return gd(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.Pd(3840,2160):e.h.Pd(1920,1080),e.j.B(e.g,"loadeddata",(function(){e.C=!0})),e.j.B(e.h,"loading",(function(){e.o=!1,md(e)})),e.j.B(e.g,"playing",(function(){e.o=!1,md(e)})),e.j.B(e.g,"pause",(function(){md(e)})),e.j.B(e.h,"unloading",(function(){e.o=!0,md(e)})),e.j.B(e.g,"ended",(function(){new rn((function(){e.g&&e.g.ended&&(e.o=!0,md(e))})).R(Ad)}))}(this)}function hd(e){e.m=0,e.u=!0,e.G=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,md(e)}function md(e){var t;P((function(n){return 1==n.g?x(n,Promise.resolve(),2):e.h?(t=new pi("caststatuschanged"),e.dispatchEvent(t),vd(e)||wd(e),void w(n)):n.return()}))}function gd(e,t,n){e.h&&(fd(e),xd(e,{type:"event",targetName:t,event:n},e.l))}function fd(e){e.H.R(kd);for(var t={video:{},player:{}},n=c(Oc),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.g[i];if(e.h.T())for(var r in Uc)0==e.m%Uc[r]&&(t.player[r]=e.h[r]());for(var a in Bc)0==e.m%Bc[a]&&(t.player[a]=e.h[a]());(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),e.C&&(e.m+=1),xd(e,{type:"update",update:t},e.l),vd(e)}function vd(e){return!(!e.u||!e.g.duration&&!e.h.T())&&(bd(e),e.u=!1,!0)}function bd(e,t){var n={contentId:e.h.ld(),streamType:e.h.T()?"LIVE":"BUFFERED",contentType:""};e.h.T()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),wd(e,void 0===t?0:t,n)}function yd(e,t,n,i){e.h&&xd(e,{type:"asyncComplete",id:n,error:i},e.l,t)}function xd(e,t,n,i){e.G&&(e=Pc(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function wd(e,t,n){n=void 0===n?null:n;var i={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.o?Td:e.h.od()?Ed:e.g.paused?Id:Sd,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(i.media=n),xd(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[i]},e.s)}f(rd,mi),(i=rd.prototype).destroy=function(e){return e&&this.g.Bb(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.s=this.l=this.i=null,mi.prototype.release.call(this),Promise.all(e)},i.uf=function(){return this.l},i.hf=function(){return this.s},i.Ke=function(){return this.g.m&&ed},i.sa=function(){return this.g.sa()},i.Hd=function(){return this.g.Hd()},i.cast=function(){var e,t=this;return P((function(n){return 1==n.g?(e=od(t),x(n,t.g.cast(e),2)):t.h?x(n,t.h.Vd(),0
2):n.return()}))},i.Nd=function(e){this.g.Nd(e)},i.Zf=function(){!function(e){if(e.h){var t=e.L();chrome.cast.requestSession((function(n){return Kc(e,t,n)}),(function(t){return $c(e,t)}))}}(this.g)},i.Bb=function(){this.g.Bb()},i.Ne=function(e){var t=this;return P((function(n){if(1==n.g)return e==t.C?n.return():(t.C=e,t.g.Bb(),x(n,t.g.destroy(),2));t.g=null,t.g=new Gc(e,(function(){return sd(t)}),(function(){return ld(t)}),(function(e,n){return ud(t,e,n)}),(function(){return cd(t)}),(function(){return od(t)})),t.g.init(),w(n)}))},F("shaka.cast.CastProxy",rd),rd.prototype.changeReceiverId=rd.prototype.Ne,rd.prototype.forceDisconnect=rd.prototype.Bb,rd.prototype.suggestDisconnect=rd.prototype.Zf,rd.prototype.setAppData=rd.prototype.Nd,rd.prototype.cast=rd.prototype.cast,rd.prototype.receiverName=rd.prototype.Hd,rd.prototype.isCasting=rd.prototype.sa,rd.prototype.canCast=rd.prototype.Ke,rd.prototype.getPlayer=rd.prototype.hf,rd.prototype.getVideo=rd.prototype.uf,rd.prototype.destroy=rd.prototype.destroy,f(pd,mi),(i=pd.prototype).isConnected=function(){return this.G},i.yf=function(){return this.o},i.Vf=function(e){this.i=e},i.Qe=function(){this.i=null},i.Wf=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},i.Uf=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},i.Tf=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},i.destroy=function(){var e,t=this;return P((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.H&&(t.H.stop(),t.H=null),t.g=null,t.J=null,t.D=null,t.G=!1,t.o=!0,t.l=null,t.s=null,mi.prototype.release.call(t),x(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),w(n)}))},F("shaka.cast.CastReceiver",pd),pd.prototype.destroy=pd.prototype.destroy,pd.prototype.setContentArtist=pd.prototype.Tf,pd.prototype.setContentImage=pd.prototype.Uf,pd.prototype.setContentTitle=pd.prototype.Wf,pd.prototype.clearContentMetadata=pd.prototype.Qe,pd.prototype.setContentMetadata=pd.prototype.Vf,pd.prototype.isIdle=pd.prototype.yf,pd.prototype.isConnected=pd.prototype.isConnected;var kd=.5,Ad=5,Td="IDLE",Sd="PLAYING",Ed="BUFFERING",Id="PAUSED";function Cd(e){var t=this;this.g=[],this.h=[],this.data=[],(new br).box("moov",yr).S("pssh",(function(e){if(!(1<e.version)){var n=je(e.reader.P,-12,e.size);if(t.data.push(n),t.g.push(Ct(e.reader.$a(16))),0<e.version){n=e.reader.M();for(var i=(n=c(Te(n))).next();!i.done;i=n.next())i=Ct(e.reader.$a(16)),t.h.push(i)}}})).parse(e)}function _d(e,t){var n=e.length,i=t.length+16+n,r=new Uint8Array(i),a=Ne(r),o=0;return a.setUint32(o,i),o+=4,a.setUint32(o,1886614376),o+=4,a.setUint32(o,0),o+=4,r.set(t,o),o+=t.length,a.setUint32(o,n),r.set(e,o+4),r}function jd(e,t){var n=Ld(e,t);return 1!=n.length?null:n[0]}function Nd(e,t,n){return 1!=(e=Pd(e,t,n)).length?null:e[0]}function Ld(e,t){return Array.from(e.childNodes).filter((function(e){return e instanceof Element&&e.tagName==t}))}function Pd(e,t,n){return Array.from(e.childNodes).filter((function(e){return e instanceof Element&&e.localName==n&&e.namespaceURI==t}))}function Dd(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Md(e,t,n){for(var i=(t=c(t)).next();!i.done;i=t.next())if(i=i.value,e.hasAttributeNS(i,n))return e.getAttributeNS(i,n);return null}function Od(e){return Array.from(e.childNodes).every(Rd)?e.textContent.trim():null}function Rd(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function zd(e,t,n,i){i=void 0===i?null:i;var r=null;return null!=(e=e.getAttribute(t))&&(r=n(e)),null==r?i:r}function Bd(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:Math.floor(e/1e3)):null}function Ud(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Fd(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function Vd(e){return 0==(e=Number(e))%1?e:null}function qd(e){return 0==(e=Number(e))%1&&0<e?e:null}function Hd(e){return 0==(e=Number(e))%1&&0<=e?e:null}function Gd(e){return e=Number(e),isNaN(e)?null:e}function Kd(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function $d(e,t){var n=new DOMParser,i=null;try{i=n.parseFromString(e,"text/xml")}catch(e){return null}return!(n=i.documentElement)||n.getElementsByTagName("parsererror").length||i.documentElement.tagName!=t?null:n}function Wd(e,t){try{return $d(vt(e),t)}catch(e){return null}}function Xd(e,t,n){var i=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=Jd(n.value))&&t.push(n);return t}(e),r=null;e=[];var a=[],o=new Set(i.map((function(e){return e.keyId})));if(o.delete(null),1<o.size)throw new Ge(2,4,4010);if(t||(a=i.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.ue||(r=e.init||r,!1)}))).length&&(e=function(e,t,n){for(var i=[],r=(t=c(t)).next();!r.done;r=t.next()){var a=n[(r=r.value).ue];if(a){var o;
2if(o=Nd(r.node,"urn:microsoft:playready","pro"))o=[{initData:_d(o=Et(o.textContent),new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149])),initDataType:"cenc",keyId:r.keyId}];else o=null;o=lt(a,r.init||e||o),(a=Qd.get(a))&&(o.licenseServerUri=a(r)),i.push(o)}}return i}(r,a,n),0==e.length&&(e=[lt("",r)])),i.length&&(t||!a.length))for(e=[],n=(t=c(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(lt(n,r));if(o=Array.from(o)[0]||null)for(n=(t=c(e)).next();!n.done;n=t.next())for(i=(n=c(n.value.initData)).next();!i.done;i=n.next())i.value.keyId=o;return{ce:o,Lg:r,drmInfos:e,ge:!0}}function Yd(e){return(e=Nd(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Ne(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var r=n.getUint16(e,!0);if(e+=2,1&r||r+e>n.byteLength){n=[];break e}var a=je(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n}(e=Et(e.textContent)).filter((function(e){return e.type===Zd}))[0])&&(e=$d(e=bt(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function Jd(e){var t=e.getAttribute("schemeIdUri"),n=Dd(e,"urn:mpeg:cenc:2013","default_KID"),i=Pd(e,"urn:mpeg:cenc:2013","pssh").map(Od);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new Ge(2,4,4009);var r=[];try{r=i.map((function(e){return{initDataType:"cenc",initData:Et(e),keyId:null}}))}catch(e){throw new Ge(2,4,4007)}return{node:e,ue:t,keyId:n,init:0<r.length?r:null}}var Zd=1,Qd=(new Map).set("com.widevine.alpha",(function(e){return(e=Nd(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",Yd).set("com.microsoft.playready.recommendation",Yd).set("com.microsoft.playready.software",Yd).set("com.microsoft.playready.hardware",Yd);function eu(t,n,i,r,a){var o={RepresentationID:n,Number:i,Bandwidth:r,Time:a};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,i,r){if("$$"==t)return"$";var a=o[n];if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&(a=Math.round(a)),r){case void 0:case"d":case"i":case"u":t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase();break;default:t=a.toString()}return i=e.parseInt(i,10)||1,Array(Math.max(0,i-t.length)+1).join("0")+t}))}function tu(e,t){var n=nu(e,t,"timescale"),i=1;n&&(i=qd(n)||1);var r=nu(e,t,"duration");n=qd(r||""),"image"==e.I.contentType&&(n=Gd(r||"")),n&&(n/=i);var a=nu(e,t,"startNumber");r=Number(nu(e,t,"presentationTimeOffset"))||0;var o=Hd(a||"");null!=a&&null!=o||(o=1);var s=iu(e,t,"SegmentTimeline");if(a=null,s){a=i;var l=e.U.duration||1/0,d=Ld(s,"S");s=[];for(var u=-r,p=(d=c(Se(d))).next();!p.done;p=d.next()){var h=(p=p.value).item,m=p.next,g=zd(h,"t",Hd);p=zd(h,"d",Hd);var f=zd(h,"r",Vd);if(null!=g&&(g-=r),!p)break;if(h=null!=g?g:u,0>(g=f||0))if(m){if(null==(m=zd(m,"t",Hd)))break;if(h>=m)break;g=Math.ceil((m-h)/p)-1}else{if(1/0==l)break;if(h/a>=l)break;g=Math.ceil((l*a-h)/p)-1}for(0<s.length&&h!=u&&(s[s.length-1].end=h/a),g=(m=c(Te(g+1))).next();!g.done;g=m.next())u=h+p,s.push({start:h/a,end:u/a,cg:h}),h=u}a=s}return{timescale:i,ja:n,Mb:o,Ta:r/i||0,Wd:r,timeline:a}}function nu(e,t,n){return[t(e.I),t(e.ka),t(e.da)].filter(Ue).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function iu(e,t,n){return[t(e.I),t(e.ka),t(e.da)].filter(Ue).map((function(e){return jd(e,n)})).reduce((function(e,t){return e||t}))}function ru(e,t,n,i,r,a){if(a=void 0===a?0:a,Dd(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,i,r,a){for(var o=Dd(e,"http://www.w3.org/1999/xlink","href"),s=Dd(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=c(Array.from(e.attributes)),d=l.next();!d.done;d=l.next())"http://www.w3.org/1999/xlink"==(d=d.value).namespaceURI&&e.removeAttributeNS(d.namespaceURI,d.localName);if(5<=a)return si(new Ge(2,4,4028));if("onLoad"!=s)return si(new Ge(2,4,4027));
2var u=st([i],[o]);return r.request(0,wi(u,t)).aa((function(i){if(!(i=Wd(i.data,e.tagName)))return si(new Ge(2,4,4001,o));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;i.childNodes.length;){var s=i.childNodes[0];i.removeChild(s),e.appendChild(s)}for(s=(i=c(Array.from(i.attributes))).next();!s.done;s=i.next())e.setAttributeNode(s.value.cloneNode(!1));return ru(e,t,n,u[0],r,a+1)}))}(e,t,n,i,r,a);return n&&(o=o.aa(void 0,(function(){return ru(e,t,n,i,r,a)}))),o}o=[];for(var s=c(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Dd(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&o.push(ru(l,t,n,i,r,a)));return ui(o).aa((function(){return e}))}function au(e,t,n,i,r,a,o){var s,l=(new br).S("sidx",(function(e){s=function(e,t,n,i,r,a,o){var s=[];o.reader.skip(4);var l=o.reader.M();if(0==l)throw new Ge(2,3,3005);if(0==o.version)var d=o.reader.M(),u=o.reader.M();else d=o.reader.Lb(),u=o.reader.Lb();o.reader.skip(2);var p=o.reader.Gd();for(e=e+o.size+u,p=c(Te(p)),u=p.next();!u.done;u=p.next()){var h=o.reader.M();u=(2147483648&h)>>>31,h&=2147483647;var m=o.reader.M();if(o.reader.skip(4),1==u)throw new Ge(2,3,3006);s.push(new so(d/l+n,(d+m)/l+n,(function(){return a}),e,e+h-1,t,n,i,r)),d+=m,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)}));if(e&&l.parse(e),s)return s;throw new Ge(2,3,3004)}function ou(e){this.h=Ne(e),this.g=new gr(this.h,0)}function su(e){var t=lu(e);if(7<t.length)throw new Ge(2,3,3002);for(var n=0,i=(t=c(t)).next();!i.done;i=t.next())n=256*n+i.value;t=lu(e);e:{for(var r=(i=c(cu)).next();!r.done;r=i.next())if(Ie(t,new Uint8Array(r.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.ba();else{if(8==t.length&&224&t[1])throw new Ge(2,3,3001);i=0;for(var a=(r=c(Se(t))).next();!a.done;a=r.next()){var o=(a=a.value).item;i=0==a.ca?o&(1<<8-t.length)-1:256*i+o}t=i}return t=e.g.ba()+t<=e.h.byteLength?t:e.h.byteLength-e.g.ba(),i=Ne(e.h,e.g.ba(),t),e.g.skip(t),new du(n,i)}function lu(e){var t=e.g.ba(),n=e.g.Sa();if(0==n)throw new Ge(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),je(e.h,t,n)}ou.prototype.ma=function(){return this.g.ma()};var cu=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function du(e,t){this.id=e,this.g=t}function uu(e){if(8<e.g.byteLength)throw new Ge(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new Ge(2,3,3001);for(var t=0,n=c(Te(e.g.byteLength)),i=n.next();!i.done;i=n.next())t=256*t+(i=e.g.getUint8(i.value));return t}function pu(e){var t=new ou(e.g);if(179!=(e=su(t)).id)throw new Ge(2,3,3013);if(e=uu(e),183!=(t=su(t)).id)throw new Ge(2,3,3012);t=new ou(t.g);for(var n=0;t.ma();){var i=su(t);if(241==i.id){n=uu(i);break}}return{dg:e,Mf:n}}function hu(e,t){var n=iu(e,t,"Initialization");if(!n)return null;var i=e.I.wa,r=n.getAttribute("sourceURL");r&&(i=st(e.I.wa,[r])),r=0;var a=null;return(n=zd(n,"range",Fd))&&(r=n.start,a=n.end),new oo((function(){return i}),r,a,yu(e))}function mu(e,t){var n=Number(nu(e,fu,"presentationTimeOffset"))||0,i=nu(e,fu,"timescale"),r=1;i&&(r=qd(i)||1);var a=n/r||0,o=hu(e,fu);!function(e,t){if(bu(e,t),!vu(e))throw new Ge(2,4,4002)}(e,o);var s=fi(e);return{Cb:function(){var e=iu(s,fu,"RepresentationIndex"),n=s.I.wa;return e&&(e=e.getAttribute("sourceURL"))&&(n=st(s.I.wa,[e])),e=vu(s),gu(s,t,o,n,e.start,e.end,a)}}}function gu(e,t,n,i,r,a,o){var s,l,c,d,u,p,h,m,g,f,v,b,y,w,k;return P((function(A){if(1==A.g)return s=e.presentationTimeline,l=!e.Xa||!e.U.me,c=e.U.start,d=e.U.duration,u=e.I.mimeType.split("/")[1],h=null,m=[(p=t)(i,r,a),"webm"==u?p(n.ya(),n.Ba,n.la):null],p=null,x(A,Promise.all(m),2);if(g=A.h,f=g[0],v=g[1]||null,null,y=c-o,w=c,k=d?c+d:1/0,"mp4"==u)var T=au(f,r,i,n,y,w,k);else{if(440786851!=su(T=new ou(v)).id)throw new Ge(2,3,3008);var S=su(T);if(408125543!=S.id)throw new Ge(2,3,3009);T=S.g.byteOffset,S=new ou(S.g);for(var E=null;S.ma();){var I=su(S);if(357149030==I.id){E=I;break}}if(!E)throw new Ge(2,3,3010);for(E=new ou(E.g),I=1e6,S=null;E.ma();){var C=su(E);if(2807729==C.id)I=uu(C);else if(17545==C.id)if(4==C.g.byteLength)S=C.g.getFloat32(0);else{if(8!=C.g.byteLength)throw new Ge(2,3,3003);S=C.g.getFloat64(0)}}if(null==S)throw new Ge(2,3,3011);if(S*=E=I/1e9,475249515!=(I=su(new ou(f))).id)throw new Ge(2,3,3007);T=function(e,t,n,i,r,a,o,s,l){function c(){return r}var d=[];e=new ou(e.g);for(var u=null,p=null;e.ma();){var h=su(e);if(187==h.id){var m=pu(h);m&&(h=n*m.dg,m=t+m.Mf,null!=u&&d.push(new so(u+o,h+o,c,p,m-1,a,o,s,l)),u=h,p=m)}}return null!=u&&d.push(new so(u+o,i+o,c,p,null,a,o,s,l)),d}(I,T,E,S,i,n,y,w,k)}
2return b=T,s.Ib(b),h=new _o(b),l&&h.Ya(w,k,!0),A.return(h)}))}function fu(e){return e.mc}function vu(e){var t=iu(e,fu,"RepresentationIndex");return e=Fd((e=nu(e,fu,"indexRange"))||""),t&&(e=zd(t,"range",Fd,e)),e}function bu(e,t){var n=e.I.mimeType.split("/")[1];if(e.I.contentType!=ut&&"mp4"!=n&&"webm"!=n)throw new Ge(2,4,4006);if("webm"==n&&!t)throw new Ge(2,4,4005)}function yu(e){var t=e.I;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.Lc,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function xu(e,t){var n=hu(e,wu),i=function(e){var t=function(e){return[e.I.ab,e.ka.ab,e.da.ab].filter(Ue).map((function(e){return Ld(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.ke&&(e.ke=!0),{Cf:t.getAttribute("media"),start:(t=zd(t,"mediaRange",Fd,{start:0,end:null})).start,end:t.end}}))}(e);e=tu(e,wu);var n=e.Mb;0==n&&(n=1);var i=0;return e.ja?i=e.ja*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{ja:e.ja,startTime:i,Mb:n,Ta:e.Ta,timeline:e.timeline,Fb:t}}(e);if(!i.ja&&!i.timeline&&1<i.Fb.length)throw new Ge(2,4,4002);if(!i.ja&&!e.U.duration&&!i.timeline&&1==i.Fb.length)throw new Ge(2,4,4002);if(i.timeline&&0==i.timeline.length)throw new Ge(2,4,4002);var r=null,a=null;e.da.id&&e.I.id&&(a=t[e.da.id+","+e.I.id])&&(r=a.segmentIndex);var o=function(e,t,n,i,r){var a=i.Fb.length;i.timeline&&i.timeline.length!=i.Fb.length&&(a=Math.min(i.timeline.length,i.Fb.length));for(var o=e-i.Ta,s=t?e+t:1/0,l=[],d=i.startTime,u={},p=(a=c(Te(a))).next();!p.done;u={$c:u.$c},p=a.next()){p=p.value;var h=i.Fb[p];u.$c=st(n,[h.Cf]);var m=void 0;m=null!=i.ja?d+i.ja:i.timeline?i.timeline[p].end:d+t,l.push(new so(e+d,e+m,function(e){return function(){return e.$c}}(u),h.start,h.end,r,o,e,s)),d=m}return l}(e.U.start,e.U.duration,e.I.wa,i,n);return n=!r,r?r.Hb(o,e.presentationTimeline.Qa()):r=new _o(o),e.presentationTimeline.Ib(o),e.Xa&&e.U.me||r.Ya(e.U.start,e.U.duration?e.U.start+e.U.duration:1/0,n),a&&(a.segmentIndex=r),{Cb:function(){return r&&0!=r.K.length||r.Gb(o),Promise.resolve(r)}}}function wu(e){return e.ab}function ku(e,t,n,i,r,a){var o=function(e){var t=nu(e,Au,"initialization");if(!t)return null;var n=e.I.id,i=e.bandwidth||null,r=e.I.wa;return new oo((function(){var e=eu(t,n,null,i,null);return st(r,[e])}),0,null,yu(e))}(e),s=function(e){var t=tu(e,Au),n=nu(e,Au,"media");return e=nu(e,Au,"index"),{ja:t.ja,timescale:t.timescale,Mb:t.Mb,Ta:t.Ta,Wd:t.Wd,timeline:t.timeline,yd:n,fc:e}}(e);!function(e){var t=e.fc?1:0;if(t+=e.timeline?1:0,t+=e.ja?1:0,0==t)throw new Ge(2,4,4002);if(1!=t&&(e.fc&&(e.timeline=null),e.ja=null),!e.fc&&!e.yd)throw new Ge(2,4,4002)}(s);var l=fi(e);if(s.fc)return bu(e,o),{Cb:function(){var e=eu(s.fc,l.I.id,null,l.bandwidth||null,null);return e=st(l.I.wa,[e]),gu(l,t,o,e,0,null,s.Ta)}};if(s.ja)return i||(e.presentationTimeline.Bd(s.ja),e.presentationTimeline.Cd(e.U.start)),{Cb:function(){return function(e,t,n,i,r){function a(e){var n=(e-m)*h,r=n+t.Ta,a=n+d;return n=a+h,(a=new so(a,Math.min(n,s()),(function(){var t=eu(f,b,e,v,r*g);return st(y,[t])}),0,null,i,x,d,s())).l=n,a}function o(){var e=[Math.max(l.Qa(),d),Math.min(l.fb(),s())].map((function(e){return e-d}));return[Math.ceil(e[0]/h),Math.ceil(e[1]/h)-1].map((function(e){return e+m}))}function s(){var e=null!=u&&r[u]||p;return e?d+e:1/0}var l=e.presentationTimeline,d=e.U.start,u=e.da.id,p=e.U.duration,h=t.ja,m=t.Mb,g=t.timescale,f=t.yd,v=e.bandwidth||null,b=e.I.id,y=e.I.wa,x=d-t.Ta,w=o();e=e.Xa?Math.max(w[0],w[1]-n+1):w[0],w=w[1],n=[];for(var k=e;k<=w;++k){var A=a(k);n.push(A)}var T=new _o(n);if(n=l.fb()<s(),k=l.T(),n||k){var S=Math.max(e,w+1);T.Sc(h,(function(){var e=l.Qa();T.cb(e);var t=c(o());t.next(),t=t.next().value;for(var n=[];S<=t;){var i=a(S);n.push(i),S++}return e>s()&&!n.length?null:n}))}return Promise.resolve(T)}(l,s,r,o,a)}};var d=null;i=i=null,e.da.id&&e.I.id&&(i=n[i=e.da.id+","+e.I.id])&&(d=i.segmentIndex);var u=function(e,t,n){var i=e.U.start,r=e.U.duration,a=i-t.Ta;r=r?i+r:1/0;for(var o=[],s={},l=c(Se(t.timeline)),d=l.next();!d.done;s={Zc:s.Zc,cd:s.cd,fd:s.fd,Wc:s.Wc,hd:s.hd,Xc:s.Xc},d=l.next()){var u=(d=d.value).item,p=u.start,h=u.cg;u=u.end,s.fd=d.ca+t.Mb,s.hd=h+t.Wd,s.cd=e.I.id,s.Wc=e.bandwidth||null,s.Zc=t.yd,s.Xc=e.I.wa,o.push(new so(i+p,i+u,function(e){return function(){var t=eu(e.Zc,e.cd,e.fd,e.Wc||null,e.hd);return st(e.Xc,[t]).map((function(e){return e.toString()}))}}(s),0,null,n,a,i,r))}return o}(l,s,o);n=e.U.start;var p=e.U.duration?e.U.start+e.U.duration:1/0,h=1/0!=p;return d?(h&&new _o(u).Ya(n,p,!0),d.Hb(u,e.presentationTimeline.Qa())):d=new _o(u),e.presentationTimeline.Ib(u),h&&d.Ya(n,p),i&&e.Xa&&(i.segmentIndex=d),{Cb:function(){return d&&0!=d.K.length||d.Gb(u),Promise.resolve(d)}}}function Au(e){return e.nc}function Tu(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function Su(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,k,A,T,S,E,I,C,_,j,N,L,D,M,O,R;return P((function(P){switch(P.g){case 1:if(i=pt,function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).wc),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.channelsCount==s.channelsCount&&r.language==s.language&&r.bandwidth==s.bandwidth&&r.label==s.label&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&te(r.roles,s.roles)&&r.audioSamplingRate==s.audioSamplingRate&&r.primary==s.primary&&(a=!0);a||n.push(r)}t.wc=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).Tc),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.width==s.width&&r.frameRate==s.frameRate&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&r.label==s.label&&te(r.roles,s.roles)&&zi(r.closedCaptions,s.closedCaptions)&&r.bandwidth==s.bandwidth&&(a=!0);a||n.push(r)}t.Tc=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).textStreams),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.language==s.language&&r.label==s.label&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&te(r.roles,s.roles)&&(a=!0);a||n.push(r)}t.textStreams=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).imageStreams),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.width==s.width&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&(a=!0);a||n.push(r)}t.imageStreams=n}}(t),!n&&1==t.length){r=t[0],e.g=r.wc,e.h=r.Tc,e.j=r.textStreams,e.i=r.imageStreams,P.A(2);break}for(a=-1,o=c(Se(t)),s=o.next();!s.done;s=o.next())l=s.value,d=l.ca,u=l.item,e.m.has(u.id)||(e.m.add(u.id),-1==a&&(a=d));if(-1==a)return P.return();for(p=t.map((function(e){return e.wc})),h=t.map((function(e){return e.Tc})),m=t.map((function(e){return e.textStreams})),g=t.map((function(e){return e.imageStreams})),f=c(m),v=f.next();!v.done;v=f.next())v.value.push(Hu(i.Y));for(b=c(g),y=b.next();!y.done;y=b.next())y.value.push(Hu(i.Tb));return x(P,Iu(e.g,p,a,Nu,Pu),3);case 3:return x(P,Iu(e.h,h,a,Nu,Pu),4);case 4:return x(P,Iu(e.j,m,a,Nu,Pu),5);case 5:return x(P,Iu(e.i,g,a,Nu,Pu),2);case 2:if(k=0,A=[],e.h.length&&e.g.length)for(_=c(e.g),j=_.next();!j.done;j=_.next())for(N=j.value,L=c(e.h),D=L.next();!D.done;D=L.next())M=D.value,O=er(N.drmInfos,M.drmInfos),N.drmInfos.length&&M.drmInfos.length&&!O.length||(
2R=k++,A.push({id:R,language:N.language,primary:N.primary,audio:N,video:M,bandwidth:(N.bandwidth||0)+(M.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(T=e.h.concat(e.g),S=c(T),E=S.next();!E.done;E=S.next())I=E.value,C=k++,A.push({id:C,language:I.language,primary:I.primary,audio:I.type==i.bb?I:null,video:I.type==i.Na?I:null,bandwidth:I.bandwidth||0,drmInfos:I.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=A,w(P)}}))}function Eu(e){var t,n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,k,A,T,S,E;return P((function(I){switch(I.g){case 1:if(t=pt,1==e.length)return I.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.bb}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.Na}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.Y}))})),a=e.map((function(e){return e.filter((function(e){return e.type==t.Tb}))})),o=c(r),s=o.next();!s.done;s=o.next())s.value.push(qu(t.Y));for(l=c(a),d=l.next();!d.done;d=l.next())d.value.push(qu(t.Tb));return x(I,Iu([],n,0,Lu,Du),2);case 2:return u=I.h,x(I,Iu([],i,0,Lu,Du),3);case 3:return p=I.h,x(I,Iu([],r,0,Lu,Du),4);case 4:return h=I.h,x(I,Iu([],a,0,Lu,Du),5);case 5:if(m=I.h,g=0,p.length&&u.length)for(y=c(u),w=y.next();!w.done;w=y.next())for(k=w.value,A=c(p),T=A.next();!T.done;T=A.next())S=T.value,E=g++,S.variantIds.push(E),k.variantIds.push(E);else for(f=p.concat(u),v=c(f),b=v.next();!b.done;b=v.next())b.value.variantIds=[g++];return I.return(p.concat(u).concat(h).concat(m))}}))}function Iu(e,t,n,i,r){var a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,k,A,T,S,E,I,C;return P((function(_){switch(_.g){case 1:for(a=pt,o=[],s=c(Se(t)),l=s.next();!l.done;l=s.next())d=l.value,u=d.ca,p=d.item,u>=n?o.push(new Set(p)):o.push(new Set);h=c(e),m=h.next();case 2:if(m.done){_.A(4);break}return x(_,function(e,t,n,i,r){return P((function(a){return 1==a.g?(Mu(t,e),e.matchedStreams?e.segmentIndex?x(a,Cu(e,n),2):a.A(2):a.return(!1)):(ju(e,n,i,r),a.return(!0))}))}(m.value,t,n,r,o),5);case 5:if(!_.h)throw new Ge(2,4,4037);m=h.next(),_.A(2);break;case 4:for(g=c(o),f=g.next();!f.done;f=g.next())for(v=f.value,b=c(v),y=b.next();!y.done;y=b.next())w=y.value,(k=_u(w,t,i,r,o))&&e.push(k);for(A=c(o),f=A.next();!f.done;f=A.next())for(T=f.value,S={},E=c(T),y=E.next();!y.done;S={Wa:S.Wa},y=E.next())if(S.Wa=y.value,I=S.Wa.type==a.Y&&!S.Wa.language,C=S.Wa.type==a.Tb&&!S.Wa.tilesLayout,!I&&!C&&e.some(function(e){return function(t){return t.mimeType==e.Wa.mimeType&&Ot(t.codecs)==Ot(e.Wa.codecs)}}(S)))throw new Ge(2,4,4037);return _.return(e)}}))}function Cu(e,t){var n,i,r,a,o,s,l,d,u,p;return P((function(h){if(1==h.g){for(n=[],i=e.matchedStreams,r=c(i),a=r.next();!a.done;a=r.next())o=a.value,n.push(o.createSegmentIndex()),o.trickModeVideo&&!o.trickModeVideo.segmentIndex&&n.push(o.trickModeVideo.createSegmentIndex());return x(h,Promise.all(n),2)}if(e.segmentIndex instanceof Lo)for(s=c(Se(i)),l=s.next();!l.done;l=s.next())d=l.value,u=d.ca,(p=d.item).segmentIndex&&u>=t&&e.segmentIndex.j.push(p.segmentIndex);w(h)}))}function _u(e,t,n,i,r){var a=n(e);return Mu(t,a),a.createSegmentIndex&&(a.createSegmentIndex=function(){return P((function(e){return a.segmentIndex?e.A(0):(a.segmentIndex=new Lo,x(e,Cu(a,0),0))}))}),a.matchedStreams?(ju(a,0,i,r),a):null}function ju(e,t,n,i){for(var r=c(Se(e.matchedStreams)),a=r.next();!a.done;a=r.next()){var o=a.value;if(a=o.ca,o=o.item,a>=t){n(e,o);var s=!0;"audio"==e.type&&0==Xt(e.language,o.language)&&(s=!1),s&&i[a].delete(o)}}}function Nu(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=c(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Lu(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function Pu(e,t){var n,i;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,i=t.keyIds,new Set([].concat(d(n),d(i)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var r=er(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!r.length)throw new Ge(2,4,4038);if(e.drmInfos=r,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var a=(r=c(t.closedCaptions)).next();!a.done;a=r.next()){var o=c(a.value);a=o.next().value,o=o.next().value,e.closedCaptions.set(a,o)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Nu(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),Pu(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&Pu(e.trickModeVideo,t)}function Du(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;
2if(n=new Set([].concat(d(e.keyIds),d(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,d(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=c(t.closedCaptions)).next();!i.done;i=n.next()){var r=c(i.value);i=r.next().value,r=r.next().value,e.closedCaptions.set(i,r)}}}function Mu(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){for(var a=t,o={audio:Ou,video:Ou,text:Ru,image:zu}[a.type],s={audio:Bu,video:Uu,text:Fu,image:Vu}[a.type],l=null,d=(r=c(r.value)).next();!d.done;d=r.next())!o(a,d=d.value)||l&&!s(a,l,d)||(l=d);if(!(a=l))return;n.push(a)}t.matchedStreams=n}function Ou(e,t){var n;if(!(n=t.mimeType!=e.mimeType||Ot(t.codecs)!=Ot(e.codecs))&&(n=e.drmInfos)){n=e.drmInfos;var i=t.drmInfos;n=!(!n.length||!i.length||0<er(n,i).length)}return!n}function Ru(e,t){return!!e.language&&(!t.language||0!=Xt(e.language,t.language)&&t.kind==e.kind)}function zu(e){return!!e.tilesLayout}function Bu(e,t,n){if(e.id==n.id)return!0;var i=Xt(e.language,t.language),r=Xt(e.language,n.language);return r>i||!(r<i)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&(e.roles.length?(i=t.roles.filter((function(t){return e.roles.includes(t)})),(r=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length||!(r.length<i.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&((i=Gu(e.channelsCount,t.channelsCount,n.channelsCount))==$u||i!=Xu&&((i=Gu(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==$u||i!=Xu&&!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=$u)))))}function Uu(e,t,n){if(e.id==n.id)return!0;var i=Gu(e.width*e.height,t.width*t.height,n.width*n.height);if(i==$u)return!0;if(i==Xu)return!1;if(e.frameRate){if((i=Gu(e.frameRate,t.frameRate,n.frameRate))==$u)return!0;if(i==Xu)return!1}return!(!e.bandwidth||Ku(e.bandwidth,t.bandwidth,n.bandwidth)!=$u)}function Fu(e,t,n){if(e.id==n.id)return!0;var i=Xt(e.language,t.language),r=Xt(e.language,n.language);if(r>i)return!0;if(r<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(i=t.roles.filter((function(t){return e.roles.includes(t)})),(r=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length)return!0;if(r.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Vu(e,t,n){return e.id==n.id||Gu(e.width*e.height,t.width*t.height,n.width*n.height)==$u}function qu(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Hu(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new _o([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function Gu(e,t,n){if(t==e&&e!=n)return Xu;if(n==e&&e!=t)return $u;if(t>e){if(n<=e||n-e<t-e)return $u;if(n-e>t-e)return Xu}else{if(n>e)return Xu;if(e-n<e-t)return $u;if(e-n>e-t)return Xu}return Wu}function Ku(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?$u:t<e?Xu:Wu}Tu.prototype.release=function(){for(var e=c(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var $u=1,Wu=0,Xu=-1;function Yu(){var e=this;this.h=this.g=null,this.m=[],this.i=null,this.H=1,this.l={},this.N={},this.j=new Tu,this.G=0,this.J=new V(5),this.D=new rn((function(){!function(e){var t,n;P((function(i){switch(i.g){case 1:return t=0,k(i,2),x(i,Ju(e),4);case 4:t=i.h,T(i,3);break;case 2:n=S(i),e.h&&(n.severity=1,e.h.onError(n));case 3:if(!e.h)return i.return();tp(e,t),w(i)}}))}(e)})),this.o=new vi,this.s=null,this.L=[],this.u=1/0,this.C=!1}function Ju(e){var t,n,i,r,a,o,s;return P((function(l){return 1==l.g?(t=wi(e.m,e.g.retryParameters),n=e.h.networkingEngine,e.h.modifyManifestRequest(t,{format:"d"}),i=Date.now(),r=n.request(0,t),bi(e.o,r),x(l,r.promise,2)):3!=l.g?(a=l.h,e.h?(a.uri&&!e.m.includes(a.uri)&&e.m.unshift(a.uri),x(l,function(e,t,n){var i,r,a,o;return P((function(s){if(1==s.g){if(!(i=Wd(t,"MPD")))throw new Ge(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(Zu(e,i,n)):(r=e.g.dash.xlinkFailGracefully,a=ru(i,e.g.retryParameters,r,n,e.h.networkingEngine),bi(e.o,a),x(s,a.promise,2))}return o=s.h,s.return(Zu(e,o,n))}))}(e,a.data,a.uri),3)):l.return(0)):(o=Date.now(),s=(o-i)/1e3,e.J.sample(1,s),l.return(s))}))}function Zu(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,E,I,C,_,j,N,L,D,M,O,R,z;return P((function(B){switch(B.g){case 1:if((i=e.g.dash.manifestPreprocessor)&&i(t),r=[n],0<(a=Ld(t,"Location").map(Od).filter(Ue)).length&&(o=st(r,a),r=e.m=o),s=Ld(t,"BaseURL"),l=s.map(Od),d=st(r,l),u=0,s&&s.length&&(u=zd(s[0],"availabilityTimeOffset",Gd)||0),p=e.g.dash.ignoreMinBufferTime,h=0,p||(h=zd(t,"minBufferTime",Ud)||0),e.G=zd(t,"minimumUpdatePeriod",Ud,-1),m=zd(t,"availabilityStartTime",Bd),g=zd(t,"timeShiftBufferDepth",Ud),f=e.g.dash.ignoreSuggestedPresentationDelay,v=null,f||(v=zd(t,"suggestedPresentationDelay",Ud)),b=e.g.dash.ignoreMaxSegmentDuration,y=null,b||(y=zd(t,"maxSegmentDuration",Ud)),A=t.getAttribute("type")||"static",e.i)for(E=e.i.presentationTimeline,I=c(Object.values(e.l)),C=I.next();!C.done;C=I.next())(_=C.value).segmentIndex&&_.segmentIndex.cb(E.Qa());else j=e.g.defaultPresentationDelay||1.5*h,E=new lo(m,null!=v?v:j,e.g.dash.autoCorrectDrift);
2return E.oc("static"==A),E.T()&&!isNaN(e.g.availabilityWindowOverride)&&(g=e.g.availabilityWindowOverride),null==g&&(g=1/0),E.Rd(g),N=t.getAttribute("profiles")||"",L={Xa:"static"!=A,presentationTimeline:E,da:null,U:null,ka:null,I:null,bandwidth:0,ke:!1,Ab:u,profiles:N.split(",")},D=function(e,t,n,i){var r=zd(i,"mediaPresentationDuration",Ud),a=[],o=0;i=Ld(i,"Period");for(var s=c(Se(i)),l=s.next();!l.done;l=s.next()){var d=l.value;l=d.ca;var u=d.item,p=d.next;d=zd(u,"start",Ud,o);var h=u.id,m=zd(u,"duration",Ud),g=null;if(p){var f=zd(p,"start",Ud);null!=f&&(g=f-d)}else null!=r&&(g=r-d);if(null==g&&(g=m),!(null!==e.s&&null!==h&&null!==d&&d<e.s)||e.L.includes(h)||l+1==i.length){if(null!==d&&(null===e.s||d>e.s)&&(e.s=d),o=Qu(e,t,n,{start:d,duration:g,node:u,me:null==g||!p}),a.push(o),t.da.id&&g&&(e.N[t.da.id]=g),null==g){o=null;break}o=d+g}}return e.L=a.map((function(e){return e.id})),null!=r?{periods:a,duration:r,ee:!1}:{periods:a,duration:o,ee:!0}}(e,L,d,t),M=D.duration,O=D.periods,"static"!=A&&D.ee||E.Ka(M||1/0),e.u&&!e.C&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.C=e.h.isLowLatencyMode()),e.C?E.xe(e.u):e.u&&$("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),E.Bd(y||1),x(B,Su(e.j,O,L.Xa),2);case 2:if(e.i){e.i.variants=e.j.l,e.i.textStreams=e.j.j.slice(),e.i.imageStreams=e.j.i,e.h.filter(e.i),B.A(3);break}if(e.i={presentationTimeline:E,variants:e.j.l,textStreams:e.j.j.slice(),imageStreams:e.j.i,offlineSessionIds:[],minBufferTime:h||0,sequenceMode:!1},!E.Ce()){B.A(3);break}return R=Ld(t,"UTCTiming"),x(B,function(e,t,n){var i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:i=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),r=e.g.dash.clockSyncUri,!i.length&&r&&i.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:r}),a=c(i),o=a.next();case 2:if(o.done){p.A(4);break}switch(s=o.value,k(p,5),l=s.scheme,d=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return p.A(7);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":return p.A(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return u=Date.parse(d),p.return(isNaN(u)?0:u-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":$("NTP UTCTiming scheme is not supported");break;default:$("Unrecognized scheme in UTCTiming element",l)}p.A(9);break;case 7:return x(p,ip(e,t,d,"HEAD"),10);case 10:return p.return(p.h);case 8:return x(p,ip(e,t,d,"GET"),11);case 11:return p.return(p.h);case 9:T(p,3);break;case 5:S(p);case 3:o=a.next(),p.A(2);break;case 4:return $("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}}))}(e,d,R),5);case 5:if(z=B.h,!e.h)return B.return();E.ye(z);case 3:e.h.makeTextStreamsForClosedCaptions(e.i),w(B)}}))}function Qu(e,t,n,i){t.da=np(i.node,null,n),t.U=i,t.da.Ab=t.Ab,t.da.id||(t.da.id="__shaka_period_"+i.start);var r=Ld(i.node,"EventStream");n=t.presentationTimeline.Qa();for(var a=(r=c(r)).next();!a.done;a=r.next())rp(e,i.start,i.duration,a.value,n);if(n=Ld(i.node,"AdaptationSet").map((function(n){return function(e,t,n){function i(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.ka=np(n,t.da,null);var r,a=!1,o=Ld(n,"Role"),s=o.map((function(e){return e.getAttribute("value")})).filter(Ue),l=void 0,u=t.ka.contentType==ut;u&&(l="subtitle");for(var p=(o=c(o)).next();!p.done;p=o.next()){var h=(p=p.value).getAttribute("schemeIdUri");if(null==h||"urn:mpeg:dash:role:2011"==h)switch(p=p.getAttribute("value"),p){case"main":a=!0;break;case"caption":case"subtitle":l=p}}h=Ld(n,"EssentialProperty"),o=null,p=!1;for(var m=(h=c(h)).next();!m.done;m=h.next()){var g=(m=m.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==g?o=m.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?r=i(parseInt(m.getAttribute("value"),10)):p=!0}for(h=c(h=Ld(n,"SupplementalProperty")),m=h.next();!m.done;m=h.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(m=m.value).getAttribute("schemeIdUri")&&(r=i(parseInt(m.getAttribute("value"),10)));h=Ld(n,"Accessibility");var f=new Map;for(h=c(h),m=h.next();!m.done;m=h.next())if(g=m.value,m=g.getAttribute("schemeIdUri"),g=g.getAttribute("value"),"urn:scte:dash:cc:cea-608:2
2015"==m)if(m=1,null!=g)for(var v=c(g=g.split(";")),b=v.next();!b.done;b=v.next()){var y=b.value,k=b=void 0;y.includes("=")?(b=(y=y.split("="))[0].startsWith("CC")?y[0]:"CC"+y[0],k=y[1]||"und"):(b="CC"+m,2==g.length?m+=2:m++,k=y),f.set(b,Wt(k))}else f.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=g)for(b=(g=c(g.split(";"))).next();!b.done;b=g.next())y=v=void 0,(b=b.value).includes("=")?(v="svc"+(b=b.split("="))[0],y=b[1].split(",")[0].split(":").pop()):(v="svc"+m,m++,y=b),f.set(v,Wt(y));else f.set("svc1","und");else"urn:mpeg:dash:role:2011"==m&&null!=g&&(s.push(g),"captions"==g&&(l="caption"));if(p)return null;p=Ld(n,"ContentProtection");var A=Xd(p,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),T=Wt(n.getAttribute("lang")||"und"),S=n.getAttribute("label");if((p=Ld(n,"Label"))&&p.length&&(p=p[0],p.textContent&&(S=p.textContent)),p=Ld(n,"Representation"),n=p.map((function(n){return(n=function(e,t,n,i,r,a,o,s,l,c){if(t.I=np(c,t.ka,null),e.u=Math.min(e.u,t.I.Ab),!function(e){var t=e.mc?1:0;return t+=e.ab?1:0,t+=e.nc?1:0,0==t?e.contentType==ut||"application"==e.contentType:(1!=t&&(e.mc&&(e.ab=null),e.nc=null),!0)}(t.I))return null;var d=t.U.start;t.bandwidth=zd(c,"bandwidth",qd)||0;var u=t.I.contentType,p=u==ut||"application"==u;u="image"==u;try{var h=function(t,n,i){return function(e,t,n,i){var r,a,o,s,l;return P((function(c){return 1==c.g?(r=Si,a=Ho(t,n,i,e.g.retryParameters),o=e.h.networkingEngine,s=o.request(r,a),bi(e.o,s),x(c,s.promise,2)):(l=c.h,c.return(l.data))}))}(e,t,n,i)};if(t.I.mc)var m=mu(t,h);else if(t.I.ab)m=xu(t,e.l);else if(t.I.nc)m=ku(t,h,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.N);else{var g=t.I.wa,f=t.U.duration||0;m={Cb:function(){return Promise.resolve(jo(d,f,g))}}}}catch(e){if((p||u)&&4002==e.code)return null;throw e}h=Ld(c,"ContentProtection"),h=function(e,t,n,i){var r=Xd(e,n,i);
2if(t.ge)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==r.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=r.drmInfos),t.ge=!1;else if(0<r.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return r.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new Ge(2,4,4008);return r.ce||t.ce}(h,n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),h=new Set(h?[h]:[]);var v=!1;Ld(c,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(t.I.mimeType="audio/eac3-joc",v=!0);var b,y,k=!1;if(p&&(k=s.includes("forced_subtitle")||s.includes("forced-subtitle")),u&&((c=Ld(c,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(b=c.getAttribute("value")),!b))return null;c=t.I.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(y="PQ");var A=t.I.id?t.da.id+","+t.I.id:"",T={id:e.H++,originalId:t.I.id,createSegmentIndex:function(){var n,i;return P((function(r){if(1==r.g)return(n=A&&t.Xa&&e.l[A]?e.l[A]:T).segmentIndex?r.A(0):(i=n,x(r,m.Cb(),3));i.segmentIndex=r.h,w(r)}))},closeSegmentIndex:function(){T.segmentIndex&&(T.segmentIndex.release(),T.segmentIndex=null)},segmentIndex:null,mimeType:t.I.mimeType,codecs:t.I.codecs,frameRate:t.I.frameRate,pixelAspectRatio:t.I.pixelAspectRatio,bandwidth:t.bandwidth,width:t.I.width,height:t.I.height,kind:i,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:h,language:r,label:a,type:t.ka.contentType,primary:o,trickModeVideo:null,emsgSchemeIdUris:t.I.emsgSchemeIdUris,roles:s,forced:k,channelsCount:t.I.Lc,audioSamplingRate:t.I.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:y,tilesLayout:b,matchedStreams:[]};return A&&t.Xa&&!e.l[A]&&(e.l[A]=T),T}(e,t,A,l,T,S,a,s,f,n))&&(n.hdr=n.hdr||r),n})).filter((function(e){return!!e})),0==n.length){if(o="image"==t.ka.contentType,e.g.dash.ignoreEmptyAdaptationSet||u||o)return null;throw new Ge(2,4,4003)}if(!t.ka.contentType||"application"==t.ka.contentType)for(t.ka.contentType=ap(n[0].mimeType,n[0].codecs),u=c(n),h=u.next();!h.done;h=u.next())h.value.type=t.ka.contentType;for(u=c(n),h=u.next();!h.done;h=u.next())for(h=h.value,m=c(A.drmInfos),g=m.next();!g.done;g=m.next())(g=g.value).keyIds=g.keyIds&&h.keyIds?new Set([].concat(d(g.keyIds),d(h.keyIds))):g.keyIds||h.keyIds;return u=p.map((function(e){return e.getAttribute("id")})).filter(Ue),{id:t.ka.id||"__fake__"+e.H++,contentType:t.ka.contentType,language:T,Mg:a,streams:n,drmInfos:A.drmInfos,Ud:o,Pf:u}}(e,t,n)})).filter(Ue),t.Xa){for(i=[],a=(r=c(n)).next();!a.done;a=r.next())for(var o=(a=c(a.value.Pf)).next();!o.done;o=a.next())i.push(o.value);if(i.length!=new Set(i).size)throw new Ge(2,4,4018)}for(i=n.filter((function(e){return!e.Ud})),r=(n=c(n=n.filter((function(e){return e.Ud})))).next();!r.done;r=n.next()){a=(r=r.value).Ud.split(" ");for(var s=(o=c(i)).next();!s.done;s=o.next()){var l=s.value;if(a.includes(l.id)){s={};for(var u=(l=c(l.streams)).next();!u.done;s={vc:s.vc},u=l.next())s.vc=u.value,s.vc.trickModeVideo=r.streams.find(function(e){return function(t){return Ot(e.vc.codecs)==Ot(t.codecs)}}(s))}}}if(r=e.g.disableAudio?[]:ep(i,"audio"),o=e.g.disableVideo?[]:ep(i,"video"),a=e.g.disableText?[]:ep(i,ut),n=e.g.disableThumbnails?[]:ep(i,"image"),!o.length&&!r.length)throw new Ge(2,4,4004);for(i=[],s=(r=c(r)).next();!s.done;s=r.next())i.push.apply(i,d(s.value.streams));for(r=[],s=(o=c(o)).next();!s.done;s=o.next())r.push.apply(r,d(s.value.streams));for(o=[],s=(a=c(a)).next();!s.done;s=a.next())o.push.apply(o,d(s.value.streams));for(a=[],s=(n=c(n)).next();!s.done;s=n.next())a.push.apply(a,d(s.value.streams));return{id:t.da.id,wc:i,Tc:r,textStreams:o,imageStreams:a}}function ep(e,t){return e.filter((function(e){return e.contentType==t}))}function tp(e,t){0>e.G||e.D.R(Math.max(3,e.G-t,q(e.J)))}
2function np(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,Lc:null,audioSamplingRate:null,Ab:0},n=n||t.wa;for(var i=Ld(e,"BaseURL"),r=i.map(Od),a=e.getAttribute("contentType")||t.contentType,o=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=zd(e,"frameRate",Kd)||t.frameRate,d=e.getAttribute("sar")||t.pixelAspectRatio,u=Ld(e,"InbandEventStream"),p=t.emsgSchemeIdUris.slice(),h=(u=c(u)).next();!h.done;h=u.next())h=h.value.getAttribute("schemeIdUri"),p.includes(h)||p.push(h);u=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(u=Ld(e,"AudioChannelConfiguration"))||t.Lc,h=zd(e,"audioSamplingRate",Hd)||t.audioSamplingRate,a||(a=ap(o,s));var m=jd(e,"SegmentBase"),g=jd(e,"SegmentTemplate"),f=m&&zd(m,"availabilityTimeOffset",Gd)||0,v=g&&zd(g,"availabilityTimeOffset",Gd)||0;return i=i&&i.length&&zd(i[0],"availabilityTimeOffset",Gd)||0,i=t.Ab+i+f+v,{wa:st(n,r),mc:m||t.mc,ab:jd(e,"SegmentList")||t.ab,nc:g||t.nc,width:zd(e,"width",Hd)||t.width,height:zd(e,"height",Hd)||t.height,contentType:a,mimeType:o,codecs:s,frameRate:l,pixelAspectRatio:d,emsgSchemeIdUris:p,id:e.getAttribute("id"),Lc:u,audioSamplingRate:h,Ab:i}}function ip(e,t,n,i){var r,a,o,s,l,c;return P((function(d){if(1==d.g)return r=st(t,[n]),(a=wi(r,e.g.retryParameters)).method=i,o=e.h.networkingEngine.request(4,a),bi(e.o,o),x(d,o.promise,2);if(s=d.h,"HEAD"==i){if(!s.headers||!s.headers.date)return d.return(0);l=s.headers.date}else l=vt(s.data);return c=Date.parse(l),isNaN(c)?d.return(0):d.return(c-Date.now())}))}function rp(e,t,n,i,r){for(var a=i.getAttribute("schemeIdUri")||"",o=i.getAttribute("value")||"",s=zd(i,"timescale",Hd)||1,l=(i=c(Ld(i,"Event"))).next();!l.done;l=i.next()){var d=zd(l=l.value,"presentationTime",Hd)||0,u=zd(l,"duration",Hd)||0;u=(d=d/s+t)+u/s,null!=n&&(d=Math.min(d,t+n),u=Math.min(u,t+n)),u<r||(l={schemeIdUri:a,value:o,startTime:d,endTime:u,id:l.getAttribute("id")||"",eventElement:l},e.h.onTimelineRegionAdded(l))}}function ap(e,t){return Bt(Dt(e,t))?ut:e.split("/")[0]}function op(e,t,n,i){this.g=e,this.type=t,this.W=n,this.segments=i||null}function sp(e,t,n,i){this.id=e,this.name=t,this.g=n,this.value=void 0===i?null:i}function lp(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function cp(e,t){var n=e.getAttribute(t);if(!n)throw new Ge(2,4,4023,t);return n.value}function dp(e,t,n){n=void 0===n?[]:n,this.W=t,this.g=e,this.h=n}function up(e,t){this.name=e,this.value=t}function pp(e,t){return e.filter((function(e){return e.name==t}))}function hp(e,t){return e.filter((function(e){return cp(e,"TYPE")==t}))}function mp(e,t){var n=pp(e,t);return n.length?n[0]:null}function gp(e){var t=0;return t=void 0===t?0:t,(e=mp(e,"EXT-X-MEDIA-SEQUENCE"))?Number(e.value):t}function fp(e){this.h=e,this.g=0}function vp(e){bp(e,/[ \t]+/gm)}function bp(e,t){t.lastIndex=e.g;var n=t.exec(e.h);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.g==e.h.length||null==n||n.position!=e.g?null:(e.g+=n.length,n.results)}function yp(e){return e.g==e.h.length?null:(e=bp(e,/[^ \t\n]*/gm))?e[0]:null}function xp(){this.g=0}function wp(e,t,n){var i=(t=(t=vt(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(i[0]))throw new Ge(2,4,4015);t=0;for(var r=!0,a=c(i),o=a.next();!o.done;o=a.next())if(o=o.value,/^#(?!EXT)/m.test(o)||r)r=!1;else{if(o=kp(e.g++,o),--e.g,Ap.includes(o.name)){t=1;break}"EXT-X-STREAM-INF"==o.name&&(r=!0)}a=[],r=!0;for(var s=(o=c(Se(i))).next();!s.done;s=o.next()){var l=s.value;s=l.ca;var d=l.item;if(l=l.next,/^#(?!EXT)/m.test(d)||r)r=!1;else{if(d=kp(e.g++,d),Tp.includes(d.name)){if(1!=t)throw new Ge(2,4,4017);l=i.splice(s,i.length-s),i=n,r=[],o=[],s=[],d=null;for(var u=(l=c(l)).next();!u.done;u=l.next())u=u.value,/^(#EXT)/.test(u)?(u=kp(e.g++,u),Ap.includes(u.name)?a.push(u):"EXT-X-MAP"==u.name?d=u:"EXT-X-PART"==u.name?s.push(u):"EXT-X-PRELOAD-HINT"
2==u.name?"PART"==lp(u,"TYPE")?s.push(u):"MAP"==lp(u,"TYPE")&&(u.name="EXT-X-MAP",d=u):o.push(u)):/^#(?!EXT)/m.test(u)||(u=st([i],[u.trim()])[0],d&&o.push(d),r.push(new dp(u,o,s)),o=[],s=[]);return s.length&&(d&&o.push(d),r.push(new dp("",o,s))),new op(n,t,a,r)}a.push(d),"EXT-X-STREAM-INF"==d.name&&(d.g.push(new up("URI",l)),r=!0)}}return new op(n,t,a)}function kp(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new Ge(2,4,4016,t);var i,r=n[1],a=n[2];if(n=[],a){var o;(o=bp(a=new fp(a),/^([^,=]+)(?:,|$)/g))&&(i=o[1]);for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;o=bp(a,s);)n.push(new up(o[1],o[2]||o[3])),vp(a)}return new sp(e,r,n,i)}(i=Yu.prototype).configure=function(e){this.g=e},i.start=function(e,t){var n,i=this;return P((function(r){if(1==r.g)return i.C=t.isLowLatencyMode(),i.m=[e],i.h=t,x(r,Ju(i),2);if(n=r.h,i.h&&tp(i,n),!i.h)throw new Ge(2,7,7001);return r.return(i.i)}))},i.stop=function(){for(var e=c(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.m=[],this.i=null,this.l={},this.j=null,null!=this.D&&(this.D.stop(),this.D=null),this.o.destroy()},i.update=function(){var e,t=this;return P((function(n){return 1==n.g?(k(n,2),x(n,Ju(t),4)):2!=n.g?T(n,0):(e=S(n),t.h&&e?(t.h.onError(e),void w(n)):n.return())}))},i.onExpirationUpdated=function(){},F("shaka.dash.DashParser",Yu),mr.mpd=function(){return new Yu},hr["application/dash+xml"]=function(){return new Yu},hr["video/vnd.mpeg.dash.mpd"]=function(){return new Yu},sp.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},sp.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null};var Ap="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Tp="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Sp(){}function Ep(e){try{var t=Ip(e);return ci({uri:e,qe:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return si(e)}}function Ip(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new Ge(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new Ge(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=i.split(";"),i=n[0];var r=!1;return 1<n.length&&"base64"==n[n.length-1]&&(r=!0,n.pop()),{data:r?Et(t):xt(t),contentType:i}}function Cp(){var e=this;this.h=this.j=null,this.pa=1,this.o=new Map,this.u=new Map,this.ha=new Set,this.g=new Map,this.i=null,this.L="",this.X=new xp,this.ga=0,this.C=new rn((function(){!function(e){var t,n;P((function(i){return 1==i.g?e.j?(k(i,2),x(i,e.update(),4)):i.return():2!=i.g?(t=e.ga,e.C.R(t),T(i,0)):(n=S(i),e.j?(n.severity=1,e.j.onError(n),e.C.R(.1),void w(i)):i.return())}))}(e)})),this.l=Kp,this.H=null,this.fa=0,this.G=1/0,this.V=this.Ga=0,this.D=new vi,this.N=[],this.J=new Map,this.qa=!1,this.s=new Map,this.$=new Map,this.m=!1}function _p(e,t){var n,i,r,a,o,s,l,c,d,u,p,h;return P((function(m){if(1==m.g)return n=Xp,i=t.Ge,r=new $e(i),e.m&&t.Le&&Ye(r,new at("_HLS_skip=YES")),x(m,Fp(e,r.toString()),2);if(a=m.h,1!=(o=wp(e.X,a.data,a.uri)).type)throw new Ge(2,4,4017);s=pp(o.W,"EXT-X-DEFINE"),l=jp(e,s),c=t.stream,d=Bp(e,o,c.type,t.ne,l),c.segmentIndex.Hb(d,e.i.Qa()),d.length&&(u=gp(o.W),p=t.ne.get(u),c.segmentIndex.cb(p)),h=d[d.length-1],mp(o.W,"EXT-X-ENDLIST")&&(Vp(e,n.Fe),e.i.Ka(h.endTime)),w(m)}))}function jp(e,t){for(var n=new Map,i=c(t),r=i.next();!r.done;r=i.next()){var a=r.value;r=lp(a,"NAME");var o=lp(a,"VALUE");a=lp(a,"IMPORT"),r&&o&&n.set(r,o),a&&(r=e.o.get(a))&&n.set(a,r)}return n}function Np(e,t){var n=[];e.h.disableVideo||n.push(e.h.hls.defaultVideoCodec),e.h.disableAudio||n.push(e.h.hls.defaultAudioCodec);var i=lp(t,"CODECS",n.join(",")).split(/\s*,\s*/);n=new Set;for(var r=[],a=(i=c(i)).next();!a.done;a=i.next()){var o=Ot(a=a.value);
2n.has(o)||(r.push(a),n.add(o))}return r}function Lp(e){return Wt(e=lp(e,"LANGUAGE")||"und")}function Pp(e,t){var n,i,r,a,o,s,l,c,d,u,p,h,m;return P((function(g){if(1==g.g){n=cp(t,"GROUP-ID"),i="";var f=cp(t,"TYPE").toLowerCase();return"subtitles"==f&&(f=ut),(r=f)!=ut&&n&&e.s.has(n)&&(i=e.s.get(n)),a=Up(cp(t,"URI"),e.o),e.g.has(a)?g.return(e.g.get(a)):(o=Lp(t),s=lp(t,"NAME"),l=lp(t,"DEFAULT"),c="YES"==l,f="audio"==r&&(f=lp(t,"CHANNELS"))?parseInt(f.split("/")[0],10):null,d=f,f="audio"==r&&(!!(f=lp(t,"CHANNELS"))&&f.includes("/JOC")),u=f,p=lp(t,"CHARACTERISTICS"),h=lp(t,"FORCED"),x(g,Dp(e,a,i,r,o,c,s,d,null,p,"YES"==h,u),2))}return m=g.h,e.u.has(n)?e.u.get(n).push(m):e.u.set(n,[m]),null==m?g.return(null):e.g.has(a)?g.return(e.g.get(a)):(e.g.set(a,m),g.return(m))}))}function Dp(e,t,n,i,r,a,o,s,l,u,p,h){var m,g,f,v,b,y,w,k,A,T,S,E,I,C,_,j,N,L,D,M,O,R,z,B,U,F,V,q,H,G,K,W,X,Y,J,Z,Q;return P((function(ee){if(1==ee.g)return m=st([e.L],[t])[0],x(ee,Fp(e,m),2);if(3!=ee.g){if(g=ee.h,m=g.uri,1!=(f=wp(e.X,g.data,m)).type)throw new Ge(2,4,4017);return v=pp(f.W,"EXT-X-DEFINE"),b=jp(e,v),function(e,t){var n=mp(t.W,"EXT-X-PLAYLIST-TYPE"),i=mp(t.W,"EXT-X-ENDLIST");if(i=n&&"VOD"==n.value||i,n=n&&"EVENT"==n.value&&!i,n=!i&&!n,i)Vp(e,Kp);else{if(Vp(e,n?Wp:$p),!(i=mp(t.W,"EXT-X-TARGETDURATION")))throw new Ge(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),n=mp(t.W,"EXT-X-PART-INF"),e.m&&n?(e.Ga=Number(cp(n,"PART-TARGET")),e.G=Math.min(e.Ga,e.G),n=mp(t.W,"EXT-X-SERVER-CONTROL"),e.V=n?Number(cp(n,"PART-HOLD-BACK")):0):e.G=Math.min(i,e.G),e.fa=Math.max(i,e.fa)}}(e,f),x(ee,function(e,t,n,i,r){var a,o,s,l,c,d,u,p,h,m,g;return P((function(f){return 1==f.g?(a=pt,o=Si,s=Up(i.segments[0].g,r),l=new $e(s),c=l.va.split(".").pop(),d=Hp[t],(u=d[c])?f.return(u):t==a.Y?n&&"vtt"!=n&&"wvtt"!=n?f.return("application/mp4"):f.return("text/vtt"):t!=a.Tb||n&&"jpeg"!=n?((p=wi([s],e.h.retryParameters)).method="HEAD",x(f,qp(e,p,o),2)):f.return("image/jpeg")):(h=f.h,(m=h.headers["content-type"])?f.return(m.split(";")[0]):(g=d.mp4,f.return(g)))}))}(e,i,n,f,b),3)}if(y=ee.h,w=[],f.segments)for(k=c(f.segments),A=k.next();!A.done;A=k.next())T=A.value,S=pp(T.W,"EXT-X-KEY"),w.push.apply(w,d(S));for(E=!1,I=[],C=new Set,_=c(w),j=_.next();!j.done;j=_.next())if(N=j.value,"NONE"!=(L=cp(N,"METHOD"))){if(E=!0,"AES-128"==L)return e.qa=!0,ee.return(null);if(D=cp(N,"KEYFORMAT"),O=(M=Gp[D])?M(N,y):null){if(O.keyIds)for(R=c(O.keyIds),z=R.next();!z.done;z=R.next())B=z.value,C.add(B);I.push(O)}}if(E&&!I.length)throw new Ge(2,4,4026);ao.includes(y)&&(n=""),U=new Map;try{F=Bp(e,f,i,U,b)}catch(e){if(4035==e.code)return $("Skipping unsupported HLS stream",y,t),ee.return(null);throw e}if(V=F[0].startTime,q=F[F.length-1].endTime,H=new _o(F),G=i==ut?"subtitle":void 0,K=[],u)for(W=c(u.split(",")),X=W.next();!X.done;X=W.next())Y=X.value,K.push(Y);return Z=!!(J=mp(f.W,"EXT-X-SERVER-CONTROL"))&&null!=J.getAttribute("CAN-SKIP-UNTIL"),Q={id:e.pa++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:H,mimeType:y,codecs:n,kind:G,encrypted:E,drmInfos:I,keyIds:C,language:r,label:o,type:i,primary:a,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:K,forced:p,channelsCount:s,audioSamplingRate:null,spatialAudio:h,closedCaptions:l,hdr:void 0,tilesLayout:void 0},ee.return({stream:Q,Xd:t,Ge:m,oe:V,Bf:q,ne:U,Le:Z})}))}function Mp(e,t){var n=0,i=null,r=lp(t,"BYTERANGE");return r&&(n=r.split("@"),i=Number(n[0]),i=(n=Number(n[1]))+i-1),new oo((function(){return[e]}),n,i)}function Op(e,t,n,i,r,a,o,s){var l=i.W,d=Up(i.g,a),u=mp(l,"EXTINF"),p=a=0,h=null;i.h.length&&!e.m&&$("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var m=[];if(e.m&&i.h.length){e={};for(var g=(i=c(Se(i.h))).next();!g.done;e={ad:e.ad},g=i.next()){var f=(g=g.value).ca;g=g.item;var v=0==f?n:m[m.length-1];f=0==f?r:v.endTime;var b=Number(lp(g,"DURATION"));b=f+b;var y=0,x=null;
2"EXT-X-PRELOAD-HINT"==g.name?y=(v=lp(g,"BYTERANGE-START"))?Number(v):0:(y=(v=c(Rp(v,y=lp(g,"BYTERANGE")))).next().value,x=v.next().value),g=lp(g,"URI"),e.ad=st([o],[g])[0],m.push(new so(f,b,function(e){return function(){return[e.ad]}}(e),y,x,t,0,0,1/0))}}else if(!u)throw new Ge(2,4,4024,"EXTINF");return a=u?r+Number(u.value.split(",")[0]):m[m.length-1].endTime,(o=mp(l,"EXT-X-BYTERANGE"))?(p=(h=c(Rp(n,o.value))).next().value,h=h.next().value):m.length&&(p=m[0].Ba,h=m[m.length-1].la),n="",o=null,"image"==s&&(n="1x1",s=mp(l,"EXT-X-TILES"))&&(n=cp(s,"LAYOUT"),(s=lp(s,"DURATION"))&&(o=Number(s))),new so(r,a,(function(){return d.length?[d]:[]}),p,h,t,0,0,1/0,m,n,o)}function Rp(e,t){var n=0,i=null;return t&&(n=t.split("@"),i=Number(n[0]),i=(n=n[1]?Number(n[1]):e.la+1)+i-1),[n,i]}function zp(e){if(e.i){for(var t=c(e.N),n=t.next();!n.done;n=t.next())e.i.Ib(n.value);e.N=[]}}function Bp(e,t,n,i,r){var a=t.segments,o=gp(t.W),s=mp(t.W,"EXT-X-SKIP"),l=o+(s=s?Number(lp(s,"SKIPPED-SEGMENTS")):0),d=0;e.l!=Kp&&i.has(l)&&(d=i.get(l)),a[0].g.split("/").pop();for(var u=[],p=(a=c(Se(a))).next();!p.done;p=a.next()){l=(p=p.value).ca,p=p.item;var h=u[u.length-1],m=0==l?d:h.endTime;l=o+s+l,i.set(l,m),l=e;var g=t.g,f=r,v=mp(p.W,"EXT-X-MAP");if(v)g=[f=Up(st([g],[cp(v,"URI")])[0],f),lp(v,"BYTERANGE","")].join("-"),l.$.has(g)||(v=Mp(f,v),l.$.set(g,v)),l=l.$.get(g);else l=null;!e.m&&e.j.isAutoLowLatencyMode()&&(e.j.enableLowLatencyMode(),e.m=e.j.isLowLatencyMode()),p=Op(e,l,h,p,m,r,t.g,n),u.push(p)}return u}function Up(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),i=n.match(/{\$\w*}/g);if(i)for(var r=(i=c(i)).next();!r.done;r=i.next()){var a=(r=r.value).slice(2,r.length-1),o=t.get(a);if(!o)throw new Ge(2,4,4039,a);n=n.replace(r,o)}return n}function Fp(e,t){var n=wi([t],e.h.retryParameters);return e.j.modifyManifestRequest(n,{format:"h"}),qp(e,n,0)}function Vp(e,t){e.l=t,e.i&&e.i.oc(e.l==Kp),e.l!=Kp||e.C.stop()}function qp(e,t,n){if(!e.D)throw new Ge(2,7,7001);return t=e.j.networkingEngine.request(n,t),bi(e.D,t),t.promise}F("shaka.net.DataUriPlugin",Sp),Sp.parse=Ep,xi("data",Ep),(i=Cp.prototype).configure=function(e){this.h=e},i.start=function(e,t){var n,i,r=this;return P((function(a){return 1==a.g?(r.j=t,r.m=t.isLowLatencyMode(),x(a,Fp(r,e),2)):3!=a.g?(n=a.h,r.L=n.uri,x(a,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,T,E,I,C,_,j,N,L,D,M,O,R,z,B,U,F,V,q;return P((function(H){switch(H.g){case 1:if(0!=(n=wp(e.X,t,e.L)).type)throw new Ge(2,4,4022);for(i=pp(n.W,"EXT-X-DEFINE"),function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value;i=lp(r,"NAME"),r=lp(r,"VALUE"),i&&r&&(e.o.has(i)||e.o.set(i,r))}}(e,i),r=pp(n.W,"EXT-X-MEDIA"),a=pp(n.W,"EXT-X-STREAM-INF"),o=pp(n.W,"EXT-X-IMAGE-STREAM-INF"),function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value,a=lp(r,"AUDIO");i=lp(r,"VIDEO");var o=lp(r,"SUBTITLES");if(r=Np(e,r),o){var s=dt(ut,r);e.s.set(o,s),ee(r,s)}a&&(o=ct("audio",r),e.s.set(a,o)),i&&(a=ct("video",r),e.s.set(i,a))}}(e,a),s=pp(n.W,"EXT-X-SESSION-DATA"),l=c(s),d=l.next();!d.done;d=l.next())u=d.value,p=lp(u,"DATA-ID"),h=lp(u,"URI"),m=lp(u,"LANGUAGE"),g=lp(u,"VALUE"),f=(new Map).set("id",p),h&&f.set("uri",st([e.L],[h])[0]),m&&f.set("language",m),g&&f.set("value",g),v=new pi("sessiondata",f),e.j&&e.j.onEvent(v);return x(H,function(e,t){var n;return P((function(i){return 1==i.g?(t=t.filter((function(e){var t=lp(e,"URI")||"";return"SUBTITLES"!=lp(e,"TYPE")&&""!=t})),t.length?x(i,Pp(e,t[0]),2):i.A(2)):(n=t.slice(1).map((function(t){return Pp(e,t)})),x(i,Promise.all(n),0))}))}(e,r),2);case 2:return function(e,t){for(var n=hp(t,"CLOSED-CAPTIONS"),i=(n=c(n)).next();!i.done;i=n.next()){var r=i.value;i=Lp(r);var a=cp(r,"GROUP-ID");r=cp(r,"INSTREAM-ID"),e.J.get(a)||e.J.set(a,new Map),e.J.get(a).set(r,i)}}(e,r),x(H,function(e,t){var n,i,r;return P((function(a){return 1==a.g?(n=t.map((function(t){var n,i,r,a,o,s,l,d;return P((function(u){if(1==u.g)return n=lp(t,"FRAME-RATE"),i=Number(lp(t,"AVERAGE-BANDWIDTH"))||Number(cp(t,"BANDWIDTH")),r=lp(t,"RESOLUTION"),a=c(r?r.split("x"):[null,null]),o=a.next().value,s=a.next().value,l=lp(t,"VIDEO-RANGE"),x(u,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f;return P((function(v){if(1==v.g)return n=pt,i=Np(e,t),r=lp(t,"AUDIO"),a=lp(t,"VIDEO"),s=(o=r||a)&&e.u.has(o)?e.u.get(o):[],l={audio:r?s:[],video:a?s:[]},u=!1,p=cp(t,"URI"),h=l.audio.find((function(e){return e&&e.Xd==p})),m=dt(n.Na,i),(g=dt(n.bb,i))&&!m?d=n.bb:!s.length&&g&&m?(d=n.Na,i=[[m,g].join()]):l.audio.length&&h?(d=n.bb,u=!0):d=l.video.length?n.bb:n.Na,u?v.A(2):x(v,function(e,t,n,i){var r,a,o,s;return P((function(l){if(1==l.g){if(r=Up(cp(t,"URI"),e.o),e.g.has(r))return l.return(e.g.get(r));var c=lp(t,"CLOSED-CAPTIONS");return a="video"==i&&c&&"NONE"!=c?e.J.get(c):null,o=ct(i,n),x(l,Dp(e,r,o,i,"und",!1,null,null,a,null,!1,!1),2)}return null==(s=l.h)?l.return(null):e.g.has(r)?l.return(e.g.get(r)):(e.g.set(r,s),l.return(s))}))}(e,t,i,d),3);if(2!=v.g&&(f=v.h),f)l[f.stream.type]=[f];else if(null===f)return v.return(null);return function(e){for(var t=(e=c(e.audio.concat(e.video))).next();!t.done;t=e.next())if(t=t.value){var n=t.stream.codecs.split(",");n=n.filter((function(e){return"mp4a.40.34"!=e})),t.stream.codecs=n.join(",")}}(l),v.return(l)}))}(e,t),2);if(d=u.h){for(var p=u.return,h=d.audio,m=d.video,g=c(m),f=g.next();!f.done;f=g.next())(f=f.value.stream)&&(f.width=Number(o)||void 0,f.height=Number(s)||void 0,f.frameRate=Number(n)||void 0,f.hdr=l||void 0);for(g=e.h.disableAudio,h.length&&!g||(h=[null]),g=e.h.disableVideo,m.length&&!g||(m=[null]),g=[],f=(h=c(h)).next();!f.done;f=h.next()){f=f.value;for(var v=c(m),b=v.next();!b.done;b=v.next()){var y=b.value;b=f?f.stream:null;var w=y?y.stream:null,k=f?f.stream.drmInfos:null,A=y?y.stream.drmInfos:null;y=(y?y.Xd:"")+" - "+(f?f.Xd:""),b&&w&&k.length&&A.length&&!(0<er(k,A).length)||e.ha.has(y)||(b={id:e.pa++,language:b?b.language:"und",primary:!!b&&b.primary||!!w&&w.primary,audio:b,video:w,bandwidth:i,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}
2,g.push(b),e.ha.add(y))}}u=p.call(u,g)}else u=u.return([]);return u}))})),x(a,Promise.all(n),2)):(i=a.h,r=(r=i.reduce(ze,[])).filter((function(e){return null!=e})),a.return(r))}))}(e,a),3);case 3:return b=H.h,x(H,function(e,t){var n,i,r,a,o,s,l,d,u,p,h;return P((function(m){if(1==m.g)return n=hp(t,"SUBTITLES"),i=n.map((function(t){var n,i;return P((function(r){if(1==r.g)return e.h.disableText?r.return(null):(k(r,2),x(r,Pp(e,t),4));if(2!=r.g)return n=r.h,r.return(n.stream);if(i=S(r),e.h.hls.ignoreTextStreamFailures)return r.return(null);throw i}))})),x(m,Promise.all(i),2);for(r=m.h,a=c(n),o=a.next();!o.done;o=a.next())if(s=o.value,l=cp(s,"GROUP-ID"),(d=e.s.get(l))&&(u=e.u.get(l)))for(p=c(u),h=p.next();!h.done;h=p.next())h.value.stream.codecs=d;return m.return(r.filter((function(e){return e})))}))}(e,r),4);case 4:return y=H.h,x(H,function(e,t){var n,i;return P((function(r){return 1==r.g?(n=t.map((function(t){var n,i;return P((function(r){if(1==r.g)return e.h.disableThumbnails?r.return(null):(k(r,2),x(r,function(e,t){var n,i,r,a,o,s,l,c,d,u;return P((function(p){return 1==p.g?(n=Up(cp(t,"URI"),e.o),i=lp(t,"CODECS","jpeg")||"",e.g.has(n)?p.return(e.g.get(n)):(r=Lp(t),a=lp(t,"NAME"),o=lp(t,"CHARACTERISTICS"),x(p,Dp(e,n,i,"image",r,!1,a,null,
2null,o,!1,!1),2))):null==(s=p.h)?p.return(null):e.g.has(n)?p.return(e.g.get(n)):((l=lp(t,"RESOLUTION"))&&(c=s.stream.segmentIndex.get(0),(d=c.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(d.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(d.split("x")[1]))),(u=lp(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(u)),e.g.set(n,s),p.return(s))}))}(e,t),4));if(2!=r.g)return n=r.h,r.return(n.stream);if(i=S(r),e.h.hls.ignoreImageStreamFailures)return r.return(null);throw i}))})),x(r,Promise.all(n),2)):(i=r.h,r.return(i.filter((function(e){return e}))))}))}(e,o),5);case 5:if(A=H.h,!e.j)throw new Ge(2,7,7001);if(e.qa&&0==b.length)throw new Ge(2,4,4034);for(E=T=1/0,I=c(e.g.values()),C=I.next();!C.done;C=I.next())_=C.value,T=Math.min(T,_.oe),"text"!=_.stream.type&&(E=Math.min(E,_.Bf-_.oe));if(e.l!=Kp?(e.i=new lo(0,e.h.defaultPresentationDelay?e.h.defaultPresentationDelay:e.V?e.V:3*e.fa),e.i.oc(!1)):(e.i=new lo(null,0),e.i.oc(!0)),zp(e),e.l!=Kp)e.ga=e.G,j=Xp,e.l==j.Ee&&(N=e.i.Qc,isNaN(e.h.availabilityWindowOverride)||(N=e.h.availabilityWindowOverride),e.i.Rd(N));else for(e.i.Ka(E),e.i.offset(-T),L=c(e.g.values()),C=L.next();!C.done;C=L.next())(D=C.value).stream.segmentIndex.offset(-T),D.stream.segmentIndex.Ya(0,E);for(e.N=[],M=[],O=c(b),R=O.next();!R.done;R=O.next())for(z=R.value,B=c([z.video,z.audio]),U=B.next();!U.done;U=B.next())(F=U.value)&&M.push(F);return x(H,Promise.all(M.map((function(e){return P((function(t){return x(t,e.createSegmentIndex(),0)}))}))),6);case 6:for(V=c(M),U=V.next();!U.done;U=V.next())q=U.value,e.N.push(q.segmentIndex.K);zp(e),e.H={presentationTimeline:e.i,variants:b,textStreams:y,imageStreams:A,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0},e.j.makeTextStreamsForClosedCaptions(e.H),w(H)}}))}(r,n.data),3)):(0<(i=r.ga)&&r.C.R(i),a.return(r.H))}))},i.stop=function(){this.C&&(this.C.stop(),this.C=null);var e=[];return this.D&&(e.push(this.D.destroy()),this.D=null),this.h=this.j=null,this.ha.clear(),this.H=null,this.g.clear(),this.u.clear(),this.s.clear(),this.o.clear(),Promise.all(e)},i.update=function(){var e,t,n,i=this;return P((function(r){if(1==r.g)return i.l==Kp?r.return():(e=[],(t=Array.from(i.g.values())).length?x(r,_p(i,t[0]),2):r.A(2));for(n=1;n<t.length;n++)e.push(_p(i,t[n]));return x(r,Promise.all(e),0)}))},i.onExpirationUpdated=function(){},F("shaka.hls.HlsParser",Cp);var Hp={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},Gp={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new Ge(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new Ge(2,4,4041);return lt("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=cp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=lt("com.widevine.alpha",[{initDataType:"cenc",initData:t=je((t=Ip(t=cp(e,"URI"))).data)}]),(e=lp(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=cp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?lt("com.microsoft.playready",[{initDataType:"cenc",initData:e=_d(e=je((e=Ip(e=cp(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]))}]):null}},Kp="VOD",$p="EVENT",Wp="LIVE",Xp={Fe:Kp,ng:$p,Ee:Wp};function Yp(e,t,n,i,r,a){if(200<=n&&299>=n&&202!=n)return{uri:r||i,qe:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};r=null;try{r=yt(t)}catch(e){}throw new Ge(401==n||403==n?2:1,1,1001,i,n,r,e,a)}function Jp(){}function Zp(e,t,n,i,r){var a=new rh;
2Oi(t.headers).forEach((function(e,t){a.append(t,e)}));var o=new nh,s={Zd:!1,Be:!1};if(e=function(e,t,n,i,r,a,o){var s,l,c,d,u,p,h,m,g,f,v,b;return P((function(y){switch(y.g){case 1:return s=th,l=ih,p=u=0,h=Date.now(),k(y,2),x(y,s(e,n),4);case 4:return c=y.h,a(Qp(c.headers)),m=c.clone().body.getReader(),f=(g=c.headers.get("Content-Length"))?parseInt(g,10):0,new l({start:function(e){function t(){var n,i;return P((function(a){switch(a.g){case 1:return k(a,2),x(a,m.read(),4);case 4:n=a.h,T(a,3);break;case 2:return S(a),a.return();case 3:if(n.done){a.A(5);break}if(u+=n.value.byteLength,!o){a.A(5);break}return x(a,o(n.value),5);case 5:(100<(i=Date.now())-h||n.done)&&(r(i-h,u-p,f-u),p=u,h=i),n.done?e.close():(e.enqueue(n.value),t()),w(a)}}))}t()}}),x(y,c.arrayBuffer(),5);case 5:d=y.h,T(y,3);break;case 2:if(v=S(y),i.Zd)throw new Ge(1,1,7001,e,t);if(i.Be)throw new Ge(1,1,1003,e,t);throw new Ge(1,1,1002,e,v,t);case 3:return b=Qp(c.headers),y.return(Yp(b,d,c.status,e,c.url,t))}}))}(e,n,{body:t.body||void 0,headers:a,method:t.method,signal:o.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,i,r,t.streamDataCallback),e=new oi(e,(function(){return s.Zd=!0,o.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var l=new rn((function(){s.Be=!0,o.abort()}));l.R(t/1e3),e.finally((function(){l.stop()}))}return e}function Qp(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function eh(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}dn("Tizen 3")||dn("Tizen 2")||dn("Web0S")&&dn("Chrome/38.0.2125.122 Safari/537.36")||(mr.m3u8=function(){return new Cp},hr["application/x-mpegurl"]=function(){return new Cp},hr["application/vnd.apple.mpegurl"]=function(){return new Cp}),F("shaka.net.HttpFetchPlugin",Jp),Jp.isSupported=eh,Jp.parse=Zp;var th=e.fetch,nh=e.AbortController,ih=e.ReadableStream,rh=e.Headers;function ah(){}function oh(e,t,n,i,r){var a=new lh,o=Date.now(),s=0;return new oi(new Promise((function(l,c){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){c(new Ge(1,1,7001,e,n))};var d=!1;for(var u in a.onreadystatechange=function(){if(2==a.readyState&&!d){var e=sh(a);r(e),d=!0}},a.onload=function(){var t=sh(a),i=a.response;try{var r=Yp(t,i,a.status,e,a.responseURL,n);l(r)}catch(e){c(e)}},a.onerror=function(t){c(new Ge(1,1,1002,e,t,n))},a.ontimeout=function(){c(new Ge(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(i(t-o,e.loaded-s,e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(u.toLowerCase(),t.headers[u]);a.send(t.body)})),(function(){return a.abort(),Promise.resolve()}))}function sh(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}eh()&&(xi("http",Zp,2,!0),xi("https",Zp,2,!0),xi("blob",Zp,2,!0)),F("shaka.net.HttpXHRPlugin",ah),ah.parse=oh;var lh=e.XMLHttpRequest;function ch(e,t,n,i){this.g=e,this.i=t,this.groupId=n,this.h=i}function dh(e){return e.ya().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ba+":"+e.la}function uh(e,t){return Ho(e.g.ya(),e.g.Ba,e.g.la,t.streaming.retryParameters)}function ph(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function hh(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function mh(e){var t=this;this.o=e,this.h=new Map,this.i=new Ci((function(){return gh(t).catch((function(){}))})),this.j=[],this.m=function(){},this.l=function(){},this.g=new ph}function gh(e){var t=e.j.map((function(e){return e()}));return e.j=[],Promise.all(t)}function fh(e,t,n,i,r,a){_i(e.i);var o=(e.h.get(t)||Promise.resolve()).then((function(){var t,o,s,l,c,d,u;return P((function(p){if(1==p.g)return x(p,function(e,t){var n,i,r,a;return P((function(o){return 1==o.g?(n=Si,i=e.o.request(n,t),r=function(){return i.abort()},e.j.push(r),x(o,i.promise,2)):(a=o.h,ee(e.j,r),o.return(a.data))}))}(e,n),2);if(t=p.h,e.i.g)throw new Ge(2,9,7001);if(r)for(l in o=je(t),(s=new Cd(o)).data)c=Number(l),d=s.data[c],u=s.g[c],e.l(d,u);e.g.close(i,t.byteLength);var h=e.g;return e.m(0==h.i?0:h.j/h.i,e.g.h),p.return(a(t))}))}));e.h.set(t,o)}function vh(e,t,n){_i(e.i);var i=(e.h.get(t)||Promise.resolve()).then((function(){return P((function(e){return x(e,n(),0)}))}));e.h.set(t,i)}function bh(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new mt,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function yh(e,t){return new Promise((function(n,i){var r=e.h.openCursor();r.onerror=i,r.onsuccess=function(){var e;return P((function(i){if(1==i.g)return null==r.result?(n(),i.return()):(e=r.result,x(i,t(e.key,e.value,e),2));e.continue(),w(i)}))}}))}function xh(e){this.h=e,this.g=[]}function wh(e,t){return kh(e,t,"readwrite")}
2function kh(e,t,n){var i=new bh(n=e.h.transaction([t],n),t);return e.g.push(i),i.promise().then((function(){ee(e.g,i)}),(function(){ee(e.g,i)})),i}function Ah(e,t,n){this.h=new xh(e),this.i=t,this.g=n}function Th(e){return Promise.reject(new Ge(2,9,9011,"Cannot add new value to "+e))}function Sh(e,t,n,i){t=(e=wh(e.h,t)).store();for(var r={},a=(n=c(n)).next();!a.done;r={tc:r.tc},a=n.next())r.tc=a.value,t.delete(r.tc).onsuccess=function(e){return function(){return i(e.tc)}}(r);return e.promise()}function Eh(e,t,n){var i,r,a,o,s,l,d;return P((function(u){if(1==u.g){for(i=kh(e.h,t,"readonly"),r=i.store(),a={},o=[],s={},l=c(n),d=l.next();!d.done;s={Sb:s.Sb,Qb:s.Qb},d=l.next())s.Qb=d.value,s.Sb=r.get(s.Qb),s.Sb.onsuccess=function(e){return function(){null==e.Sb.result&&o.push(e.Qb),a[e.Qb]=e.Sb.result}}(s);return x(u,i.promise(),2)}if(o.length)throw new Ge(2,9,9012,"Could not find values for "+o);return u.return(n.map((function(e){return a[e]})))}))}function Ih(e){this.g=new xh(e)}function Ch(){this.g=new Map}function _h(e){var t=null;
2if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,i){e.hasFixedKeySpace()||t||(t={path:{Aa:n,Z:i},Z:e})}))})),t)return t;throw new Ge(2,9,9013,"Could not find a cell that supports add-operations")}function jh(e,t,n){if(!(e=e.g.get(t)))throw new Ge(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new Ge(2,9,9013,"Could not find cell with name "+n);return t}function Nh(e,t){Lh.set(e,t)}xi("http",oh,1,!0),xi("https",oh,1,!0),xi("blob",oh,1,!0),ph.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},mh.prototype.destroy=function(){return this.i.destroy()},bh.prototype.abort=function(){var e=this;return P((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return k(t,2),x(t,e.g,4)}if(2!=t.g)return T(t,0);S(t),w(t)}))},bh.prototype.store=function(){return this.h},bh.prototype.promise=function(){return this.g},xh.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(i=Ah.prototype).destroy=function(){return this.h.destroy()},i.hasFixedKeySpace=function(){return!0},i.addSegments=function(){return Th(this.i)},i.removeSegments=function(e,t){return Sh(this,this.i,e,t)},i.getSegments=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,Eh(n,n.i,e),2):(t=i.h,i.return(t.map((function(e){return n.$d(e)}))))}))},i.addManifests=function(){return Th(this.g)},i.updateManifest=function(){return Promise.reject(new Ge(2,9,9016,"Cannot modify values in "+this.g))},i.updateManifestExpiration=function(e,t){var n=wh(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,i.put(n,e))},n.promise()},i.removeManifests=function(e,t){return Sh(this,this.g,e,t)},i.getManifests=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,Eh(n,n.g,e),2):(t=i.h,i.return(Promise.all(t.map((function(e){return n.Zb(e)})))))}))},i.getAllManifests=function(){var e,t,n=this;return P((function(i){return 1==i.g?(e=kh(n.h,n.g,"readonly"),t=new Map,x(i,yh(e,(function(e,i){var r;return P((function(a){if(1==a.g)return x(a,n.Zb(i),2);r=a.h,t.set(e,r),w(a)}))})),2)):3!=i.g?x(i,e.promise(),3):i.return(t)}))},i.$d=function(e){return e},i.Zb=function(e){return Promise.resolve(e)},i.add=function(e,t){var n,i,r,a,o,s,l,d=this;return P((function(u){if(1==u.g){for(n=wh(d.h,e),i=n.store(),r=[],a={},o=c(t),s=o.next();!s.done;a={uc:a.uc},s=o.next())l=s.value,a.uc=i.add(l),a.uc.onsuccess=function(e){return function(){r.push(e.uc.result)}}(a);return x(u,n.promise(),2)}return u.return(r)}))},Ih.prototype.destroy=function(){return this.g.destroy()},Ih.prototype.getAll=function(){var e,t,n=this;return P((function(i){return 1==i.g?(e=kh(n.g,"session-ids","readonly"),t=[],x(i,yh(e,(function(e,n){t.push(n)})),2)):3!=i.g?x(i,e.promise(),3):i.return(t)}))},Ih.prototype.add=function(e){for(var t=wh(this.g,"session-ids"),n=t.store(),i=(e=c(e)).next();!i.done;i=e.next())n.add(i.value);return t.promise()},Ih.prototype.remove=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,yh(t=wh(n.g,"session-ids"),(function(t,n,i){e.includes(n.sessionId)&&i.delete()})),2):x(i,t.promise(),0)}))},Ch.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},Ch.prototype.init=function(){var e=this;Lh.forEach((function(t,n){var i=t();i&&e.g.set(n,i)}));for(var t=[],n=c(this.g.values()),i=n.next();!i.done;i=n.next())t.push(i.value.init());return Promise.all(t)},F("shaka.offline.StorageMuxer",Ch),Ch.unregister=function(e){Lh.delete(e)},Ch.register=Nh,Ch.prototype.destroy=Ch.prototype.destroy;var Lh=new Map;function Ph(){Ah.apply(this,arguments)}function Dh(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=c(t),i=n.next();!i.done;i=n.next())i.value.variantIds=[];for(i=(n=c(e)).next();!i.done;i=n.next())i.value.variantIds=[];if(n=0,e.length&&!t.length){var r=n++,a=c(e);for(i=a.next();!i.done;i=a.next())i.value.variantIds.push(r)}if(!e.length&&t.length)for(r=n++,i=(a=c(t)).next();!i.done;i=a.next())i.value.variantIds.push(r);if(e.length&&t.length)for(i=(t=c(t)).next();!i.done;i=t.next())for(i=i.value,a=(r=c(e)).next();!a.done;a=r.next()){a=a.value;var o=n++;i.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=c(e.streams),i=n.next();!i.done;i=n.next());return e.streams.map((function(n){return function(e,t,n){var i=e.initSegmentUri?Mh(e.initSegmentUri):null,r=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:i,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=Mh(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:i,appendWindowStart:t,appendWindowEnd:a,timestampOffset:r,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)}))}function Mh(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new Ge(2,9,9004,"Could not parse uri "+e)}function Oh(){Ah.apply(this,arguments)}function Rh(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(i){return{startTime:t+i.startTime,endTime:t+i.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:i.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function zh(){Ah.apply(this,arguments)}function Bh(){this.m=this.j=this.i=this.h=this.g=this.l=null}function Uh(e,t,n,i){this.g=e,this.i=t,this.h=n,this.l=i,this.j=["offline:",e,"/",t,"/",n,"/",i].join("")}function Fh(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var i=e[3];return i&&null!=t?new Uh(t,n,i,Number(e[4])):null}function Vh(e,t){this.h=e,this.g=t}function qh(e,t){var n=new lo(null,0);n.Ka(t.duration);var i=t.streams.filter((function(e){return"audio"==e.type}
2)),r=t.streams.filter((function(e){return"video"==e.type}));i=function(e,t,n,i){for(var r=new Set,a=c(t),o=a.next();!o.done;o=a.next()){var s=c(o.value.variantIds);for(o=s.next();!o.done;o=s.next())r.add(o.value)}for(a=c(n),o=a.next();!o.done;o=a.next())for(s=c(o.value.variantIds),o=s.next();!o.done;o=s.next())r.add(o.value);for(a=new Map,r=c(r),o=r.next();!o.done;o=r.next())o=o.value,a.set(o,{id:o,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=c(t),r=t.next();!r.done;r=t.next())for(r=r.value,o=Hh(e,r,i),s=c(r.variantIds),r=s.next();!r.done;r=s.next())(r=a.get(r.value)).language=o.language,r.primary=r.primary||o.primary,r.audio=o;for(n=c(n),t=n.next();!t.done;t=n.next())for(r=t.value,t=Hh(e,r,i),o=c(r.variantIds),r=o.next();!r.done;r=o.next())(r=a.get(r.value)).primary=r.primary||t.primary,r.video=t;return a}(e,i,r,n),r=t.streams.filter((function(e){return e.type==ut})).map((function(t){return Hh(e,t,n)}));var a=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return Hh(e,t,n)})),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(i.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=o),l.video&&l.video.encrypted&&(l.video.drmInfos=o);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(i.values()),textStreams:r,imageStreams:a,sequenceMode:t.sequenceMode||!1}}function Hh(e,t,n){var i=t.segments.map((function(t){return function(e,t){var n=new Uh("segment",e.h,e.g,t.dataKey);return new so(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new Uh("segment",e.h,e.g,t);return new oo((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.Ib(i),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new _o(i),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function Gh(){this.g=null}function Kh(){}function $h(e){var t=Fh(e);return t&&"manifest"==t.g?e=ci(e={uri:e,qe:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new Ch;return ci(void 0).aa((function(){return n.init()})).aa((function(){return jh(n,t.Aa(),t.Z())})).aa((function(e){return e.getSegments([t.key()])})).aa((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):si(new Ge(2,1,9004,e)),e}function Wh(e,t,n){var i,r,a,o,s,l;return P((function(d){switch(d.g){case 1:i=[];for(var u=[],p=c(n),h=p.next();!h.done;h=p.next()){h=h.value;for(var m=!1,g=c(u),f=g.next();!f.done;f=g.next())if(Xh((f=f.value).info,h)){f.sessionIds.push(h.sessionId),m=!0;break}m||u.push({info:h,sessionIds:[h.sessionId]})}r=c(u),a=r.next();case 2:if(a.done){d.A(4);break}return o=a.value,s=function(e,t,n){var i,r;return P((function(a){switch(a.g){case 1:return i=new Bi({lb:t,onError:function(){},Nc:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),k(a,2),i.configure(e),x(a,function(e,t,n,i,r,a){var o=new Map;return(r={audioCapabilities:r,videoCapabilities:a,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioR
2obustness:"",videoRobustness:"",serverCertificate:i,serverCertificateUri:"",initData:null,keyIds:null}],o.set(t,r),Wi(e,o,[])}(i,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:T(a,3);break;case 2:return S(a),x(a,i.destroy(),5);case 5:case 9:return a.return([]);case 3:return k(a,6),x(a,qi(i),8);case 8:T(a,7);break;case 6:return S(a),x(a,i.destroy(),9);case 7:return r=[],x(a,Promise.all(n.sessionIds.map((function(e){return P((function(t){return 1==t.g?(k(t,2),x(t,function(e,t){var n,i,r;return P((function(a){return 1==a.g?x(a,Xi(e,t),2):3!=a.g?(n=a.h)?(i=[],(r=e.i.get(n))&&(r.La=new mt,i.push(r.La)),i.push(n.remove()),x(a,Promise.all(i),3)):a.return():(e.i.delete(n),void w(a))}))}(i,e),4)):2!=t.g?(r.push(e),T(t,0)):(S(t),void w(t))}))}))),10);case 10:return x(a,i.destroy(),11);case 11:return a.return(r)}}))}(e,t,o),x(d,s,5);case 5:l=d.h,i=i.concat(l),a=r.next(),d.A(2);break;case 4:return d.return(i)}}))}function Xh(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&te(e.audioCapabilities,t.audioCapabilities,n)&&te(e.videoCapabilities,t.videoCapabilities,n)}function Yh(e,t){var n=qh(new Vh(e.Aa(),e.Z()),t),i=t.appMetadata||{};return n=Jh(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:i,isIncomplete:t.isIncomplete||!1}}function Jh(e){for(var t=[],n=function(e){return e.filter((function(e){return Pn(e)}))}(e.variants),i=(n=c(n)).next();!i.done;i=n.next())t.push(En(i.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(In(n.value));return t}function Zh(){this.g={}}function Qh(e,t){var n=t.audio,i=t.video;
2if(n&&!i&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&i&&(e.g[i.id]=i.bandwidth||t.bandwidth),n&&i){var r=n.bandwidth||393216,a=i.bandwidth||t.bandwidth-r;0>=a&&(a=t.bandwidth),e.g[n.id]=r,e.g[i.id]=a}}function em(e,t){e.g[t.id]=t.bandwidth||2048}function tm(e,t){var n=e.g[t];return null==n&&(n=0),n}function nm(){this.h=[],this.g=this.i=0}function im(e){var t=this;if(e&&e.constructor!=Ws)throw new Ge(2,9,9008);this.g=this.h=null,e?(this.h=e.h,this.g=e.bc()):(this.h=Us(),this.g=new yi),this.i=[],this.j=[];var n=!e;this.l=new Ci((function(){var e,i,r,a,o;return P((function(s){switch(s.g){case 1:return x(s,Promise.all(t.j.map((function(e){return gh(e)}))),2);case 2:for(e=function(){},i=[],r=c(t.i),a=r.next();!a.done;a=r.next())o=a.value,i.push(o.then(e,e));return x(s,Promise.all(i),3);case 3:if(!n){s.A(4);break}return x(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,w(s)}}))}))}function rm(){if(an())e:{for(var e=c(Lh.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function am(e){var t,n,i;return P((function(r){switch(r.g){case 1:return x(r,(t=new Ch).init(),2);case 2:return x(r,_h(t),3);case 3:return n=r.h,i=new Uh("manifest",n.path.Aa,n.path.Z,e),x(r,t.destroy(),4);case 4:return x(r,(new im).remove(i.toString()),0)}}))}function om(e,t,n,i){var r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,A;return P((function(T){switch(T.g){case 1:return r=new Ch,a=dh(t),o=!1,u=0,k(T,2,3),x(T,r.init(),5);case 5:return x(T,_h(r),6);case 6:return x(T,(l=T.h).Z.addSegments([n]),7);case 7:return p=T.h,s=p[0],i(),x(T,function(){var e,t=vm;return P((function(n){return 1==n.g?(e=++t.i,t.g?x(n,new Promise((function(n){t.h.push((function(){t.g=e,n()}))})),2):(t.g=e,n.A(2))):n.return(e)}))}(),8);case 8:return u=T.h,i(),x(T,l.Z.getManifests([e]),9);case 9:for(h=T.h,i(),d=h[0],m=!0,g=c(d.streams),f=g.next();!f.done;f=g.next())for(v=f.value,b=c(v.segments),y=b.next();!y.done;y=b.next())(w=y.value).pendingSegmentRefId==a&&(w.dataKey=s,w.pendingSegmentRefId=void 0),w.pendingInitSegmentRefId==a&&(w.initSegmentKey=s,w.pendingInitSegmentRefId=void 0),w.pendingSegmentRefId&&(m=!1),w.pendingInitSegmentRefId&&(m=!1);return d.size+=n.data.byteLength,m&&(d.isIncomplete=!1),x(T,l.Z.updateManifest(e,d),10);case 10:o=!0,i();case 3:return E(T),x(T,r.destroy(),11);case 11:vm.release(u),I(T,4);break;case 2:return A=S(T),x(T,am(e),12);case 12:if(!l||o||!s){T.A(13);break}return x(T,l.Z.removeSegments([s],(function(){})),13);case 13:throw A;case 4:return T.return(d)}}))}function sm(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function lm(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function cm(e,t){for(var n=[],i=c(e.streams),r=i.next();!r.done;r=i.next())r=r.value,t&&"video"==r.type?n.push({contentType:Dt(r.mimeType,r.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=r.type||n.push({contentType:Dt(r.mimeType,r.codecs),robustness:e.drmInfo.audioRobustness});return n}function dm(e,t,n){return P((function(i){return x(i,function(e,t,n,i){var r,a,o;return P((function(s){return 1==s.g?i.drmInfo?(r=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new Ge(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),a=i.sessionIds.map((function(e){return{sessionId:e,keySystem:i.drmInfo.keySystem,licenseUri:i.drmInfo.licenseServerUri,serverCertificate:i.drmInfo.serverCertificate,audioCapabilities:cm(i,!1),videoCapabilities:cm(i,!0)}})),x(s,Wh(t,e,a),2)):s.return():3!=s.g?(o=s.h,x(s,r.remove(o),3)):x(s,r.add(a.filter((function(e){return!o.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function um(e,t,n){function i(){}var r=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var i=(n=c(n.value.segments)).next();!i.done;i=n.next())null!=(i=i.value).initSegmentKey&&t.add(i.initSegmentKey),t.add(i.dataKey);return Array.from(t)}(n);return Yh(t,n),Promise.all([e.removeSegments(r,i),e.removeManifests([t.key()],i)])}function pm(e,t,n,i,r){var a={id:i.id,originalId:i.originalId,primary:i.primary,type:i.type,mimeType:i.mimeType,codecs:i.codecs,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,kind:i.kind,language:i.language,label:i.label,width:i.width||null,height:i.height||null,encrypted:i.encrypted,keyIds:i.keyIds,segments:[],variantIds:[],roles:i.roles,forced:i.forced,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,closedCaptions:i.closedCaptions,tilesLayout:i.tilesLayout};return function(e,t,n){if(t=e.segmentIndex.find(t),null!=t)for(var i=e.segmentIndex.get(t);i;)n(i),i=e.segmentIndex.get(++t)}(i,n.presentationTimeline.Qa(),(function(n){var o=dh(n),s=void 0;if(!r.has(o)){var l=n.endTime-n.startTime;l=tm(t,i.id)*l,l=hh(e.g,l),r.set(o,new ch(n,l,i.id,!1))}n.g&&(s=dh(n.g),r.has(s)||(l=.5*tm(t,i.id),l=hh(e.g,l),r.set(s,new ch(n.g,l,i.id,!0)))),a.segments.push({pendingInitSegmentRefId:s,initSegmentKey:s?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:o,dataKey:0})})),a}function hm(e){if(e.l.g)throw new Ge(2,9,7001)}function mm(){if(!rm())throw new Ge(2,9,9e3)}function gm(e,t){return P((function(n){return 1==n.g?(e.i.push(t),A(n),x(n,t,4)):2!=n.g?n.return(n.h):(E(n),ee(e.i,t),I(n,0))}))}function fm(e){for(var t=new Set,n=c(e.textStreams),i=n.next();!i.done;i=n.next())t.add(i.value);for(i=(n=c(e.imageStreams)).next();!i.done;i=n.next())t.add(i.value);
2for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}f(Ph,Ah),Ph.prototype.updateManifestExpiration=function(e,t){var n,i,r,a=this;return P((function(o){return n=wh(a.h,a.g),i=n.store(),r=new mt,i.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,i.put(n),r.resolve()):r.reject(new Ge(2,9,9012,"Could not find values for "+e))},x(o,Promise.all([n.promise(),r]),0)}))},Ph.prototype.Zb=function(e){var t,n,i,r,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,r=i-e.periods[n].startTime,a=Dh(e.periods[n],r),t.push(a);return x(s,Eu(t),2)}return o=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:o,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},Ph.prototype.$d=function(e){return{data:e.data}},f(Oh,Ah),Oh.prototype.Zb=function(e){var t,n,i,r,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,r=i-e.periods[n].startTime;for(var l=e.periods[n],d=[],u=c(l.streams),p=u.next();!p.done;p=u.next())0!=(p=p.value).variantIds.length&&d.push(Rh(p,l.startTime,l.startTime+r));a=d,t.push(a)}return x(s,Eu(t),2)}return o=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:o,sequenceMode:!1})}))},f(zh,Ah),(i=zh.prototype).hasFixedKeySpace=function(){return!1},i.addSegments=function(e){return this.add(this.i,e)},i.addManifests=function(e){return this.add(this.g,e)},i.updateManifest=function(e,t){return function(e,t,n){var i=(e=wh(e.h,e.g)).store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}(this,e,t)},i.Zb=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(i=Bh.prototype).init=function(){var t=this,n=new mt,i=e.indexedDB.open("shaka_offline_db",5);return i.onsuccess=function(){var e=i.result;t.l=e;var r=e.objectStoreNames;r=r.contains("manifest")&&r.contains("segment")?new Ph(e,"segment","manifest"):null,t.g=r,r=(r=e.objectStoreNames).contains("manifest-v2")&&r.contains("segment-v2")?new Oh(e,"segment-v2","manifest-v2"):null,t.h=r,r=(r=e.objectStoreNames).contains("manifest-v3")&&r.contains("segment-v3")?new Oh(e,"segment-v3","manifest-v3"):null,t.i=r,r=(r=e.objectStoreNames).contains("manifest-v5")&&r.contains("segment-v5")?new zh(e,"segment-v5","manifest-v5"):null,t.j=r,e=e.objectStoreNames.contains("session-ids")?new Ih(e):null,t.m=e,n.resolve()},i.onupgradeneeded=function(){for(var e=i.result,t=c(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onerror=function(e){n.reject(new Ge(2,9,9001,i.error)),e.preventDefault()},n},i.destroy=function(){var e=this;return P((function(t){switch(t.g){case 1:if(!e.g){t.A(2);break}return x(t,e.g.destroy(),2);case 2:if(!e.h){t.A(4);break}return x(t,e.h.destroy(),4);case 4:if(!e.i){t.A(6);break}return x(t,e.i.destroy(),6);case 6:if(!e.j){t.A(8);break}return x(t,e.j.destroy(),8);case 8:if(!e.m){t.A(10);break}return x(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),w(t)}}))},i.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},i.getEmeSessionCell=function(){return this.m},i.erase=function(){var t=this;return P((function(n){switch(n.g){case 1:if(!t.g){n.A(2);break}return x(n,t.g.destroy(),2);case 2:if(!t.h){n.A(4);break}return x(n,t.h.destroy(),4);case 4:if(!t.i){n.A(6);break}return x(n,t.i.destroy(),6);case 6:if(!t.j){n.A(8);break}return x(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),x(n,function(){var t=new mt,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new Ge(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,x(n,t.init(),0)}}))},Nh("idb",(function(){return dn("CrKey")||!e.indexedDB?null:new Bh})),Uh.prototype.Aa=function(){return this.i},Uh.prototype.Z=function(){return this.h},Uh.prototype.key=function(){return this.l},Uh.prototype.toString=function(){return this.j},(i=Gh.prototype).configure=function(){},i.start=function(e,t){var n,i,r,a,o,s,l=this;return P((function(c){switch(c.g){case 1:if(n=Fh(e),l.g=n,null==n||"manifest"!=n.g)throw new Ge(2,1,9004,e);return i=new Ch,A(c),x(c,i.init(),4);case 4:return x(c,jh(i,n.Aa(),n.Z()),5);case 5:return x(c,c.h.getManifests([n.key()]),6);case 6:return r=c.h,a=r[0],o=new Vh(n.Aa(),n.Z()),s=qh(o,a),t.makeTextStreamsForClosedCaptions(s),c.return(s);case 2:return E(c),x(c,i.destroy(),7);case 7:I(c,0)}}))},i.stop=function(){return Promise.resolve()},i.update=function(){},i.onExpirationUpdated=function(e,t){var n,i,r,a,o,s,l,c=this;return P((function(d){switch(d.g){case 1:return n=c.g,i=new Ch,k(d,2,3),x(d,i.init(),5);case 5:return x(d,jh(i,n.Aa(),n.Z()),6);case 6:return x(d,(r=d.h).getManifests([n.key()]),7);case 7:if(a=d.h,o=a[0],s=o.sessionIds.includes(e),l=null==o.expiration||o.expiration>t,!s||!l){d.A(3);break}return x(d,r.updateManifestExpiration(n.key(),t),3);case 3:return E(d),x(d,i.destroy(),10);case 10:I(d,0);break;case 2:S(d),d.A(3)}}))},hr["application/x-offline-manifest"]=function(){return new Gh},F("shaka.offline.OfflineScheme",Kh),Kh.plugin=$h,xi("offline",$h),nm.prototype.release=function(e){e==this.g&&(this.g=0,0<this.h.length&&this.h.shift()())},(i=im.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=zs(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(De("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Fs(this.h,e)},i.getConfiguration=function(){var e=Us();return Fs(e,this.h,Us()),e},i.bc=function(){return this.g},i.store=function(e,t,n){var i=this,r=this.getConfiguration(),a=new mh(this.g);this.j.push(a),t=function(e,t,n,i,r,a){var o,s,l,d,u,p,h,m,g,f,v,b,y;return P((function(A){switch(A.g){case 1:return mm(),s=o=null,l=new Ch,p=u=d=null,k(A,2,3),x(A,i(),5);case 5:return o=A.h,x(A,function(e,t,n,i){var r,a,o,s,l;return P((function(c){if(1==c.g)return r=null,a=e.g,o={networkingEngine:a,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){r=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},n.configure(i.manifest),hm(e),x(c,n.start(t,o),2);if(3!=c.g)return s=c.h,hm(e),l=fm(s),x(c,Promise.all(Ae(l,(function(e){return e.createSegmentIndex()}))),3);if(hm(e),r)throw r;return c.return(s)}))}(e,t,o,r),6);case 6:if(h=A.h,hm(e),!(!h.presentationTimeline.T()&&!h.presentationTimeline.kb()))throw new Ge(2,9,9005,t);return x(A,function(e,t,n,i){var r;
2return P((function(a){switch(a.g){case 1:return(r=new Bi({lb:e.g,onError:n,Nc:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(i.drm),x(a,function(e,t,n){return e.pa=!0,e.C=[],e.N=n,Fi(e,t)}(r,t.variants,i.offline.usePersistentLicense),2);case 2:return x(a,qi(r),3);case 3:return x(a,Hi(r),4);case 4:return a.return(r)}}))}(e,h,(function(e){p=p||e}),r),7);case 7:if(s=A.h,hm(e),p)throw p;return x(A,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,E,I,C,_,j,N,L,D,M,O;return P((function(P){switch(P.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return vn(e,t,n)}))}(e,t.restrictions,n),x(P,yn(e,t.offline.usePersistentLicense),2);case 2:for(i=[],r=t.preferredAudioChannelCount,a=t.preferredDecodingAttributes,o=t.preferredVideoCodecs,s=t.preferredAudioCodecs,mn(e,o,s,r,a),l=c(e.variants),d=l.next();!d.done;d=l.next())u=d.value,i.push(En(u));for(p=c(e.textStreams),h=p.next();!h.done;h=p.next())m=h.value,i.push(In(m));for(g=c(e.imageStreams),f=g.next();!f.done;f=g.next())v=f.value,i.push(Cn(v));return x(P,t.offline.trackSelectionCallback(i),3);case 3:for(b=P.h,y=e.presentationTimeline.getDuration(),A=0,E=c(b),I=E.next();!I.done;I=E.next())C=I.value,_=C.bandwidth*y/8,A+=_;return k(P,4),x(P,t.offline.downloadSizeCallback(A),6);case 6:if(!P.h)throw new Ge(2,9,9014);T(P,5);break;case 4:if((j=S(P))instanceof Ge)throw j;throw new Ge(2,9,9015);case 5:for(N=new Set,L=new Set,D=new Set,M=c(b),I=M.next();!I.done;I=M.next())"variant"==(O=I.value).type&&N.add(O.id),"text"==O.type&&L.add(O.id),"image"==O.type&&D.add(O.id);e.variants=e.variants.filter((function(e){return N.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return L.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return D.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),i=n.next();!i.done;i=n.next())for(var r=(i=c(t)).next();!r.done;r=i.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),i=n.next();!i.done;i=n.next());}(e),w(P)}}))}(h,r),8);case 8:return x(A,l.init(),9);case 9:return hm(e),x(A,_h(l),10);case 10:return d=A.h,hm(e),m=function(e,t,n,i,r,a){var o=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=Jh(t),appMetadata:n,isIncomplete:!1}}(n,t,i),s=r.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(a,(function(e,t){o.size=t,s(o,e)}),(function(t,n){l&&r.offline.usePersistentLicense&&d==n&&Gi(e,"cenc",t)}));var l=sm(t)&&!lm(t),d=null;l&&(d=bm.get(e.g.keySystem));for(var u=new Zh,p=c(t.textStreams),h=p.next();!h.done;h=p.next())u.g[h.value.id]=52;for(p=c(t.imageStreams),h=p.next();!h.done;h=p.next())em(u,h.value);for(h=c(t.variants),p=h.next();!p.done;p=h.next())Qh(u,p.value);return u=function(e,t,n){for(var i=new Map,r=fm(n),a=new Map,o=(r=c(r)).next();!o.done;o=r.next()){var s=pm(e,t,n,o=o.value,i);a.set(o.id,s)}for(e=c(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&a.get(t.audio.id).variantIds.push(t.id),t.video&&a.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(a.values()),Td:Array.from(i.values())}}(a,u,t),a=u.streams,u=u.Td,h=e.g,p=r.offline.usePersistentLicense,h&&p&&(h.initData=[]),{zf:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.ac(),streams:a,sessionIds:p?$i(e):[],drmInfo:h,appMetadata:i,isIncomplete:!0,sequenceMode:t.sequenceMode},Td:u}}(s,h,t,n,r,a),g=m.zf,f=m.Td,x(A,d.Z.addManifests([g]),11);case 11:if(v=A.h,hm(e),u=v[0],hm(e),p)throw p;return x(A,function(e,t,n,i,r,a,o,s,l){var d,u;return P((function(p){switch(p.g){case 1:if(d=function(t,d){var u,p,h,m,g,f,v,b;return P((function(y){if(1==y.g){for(u=function(){hm(e)},p={},h=c(t),m=h.next();!m.done;p={qc:p.qc,Ua:p.Ua},m=h.next())p.Ua=m.value,p.qc=void 0,g=uh(p.Ua,a),f=p.Ua.i,v=p.Ua.h,b=function(e){return function(t){return e.qc=t,Promise.resolve()}}(p),fh(r,p.Ua.groupId,g,f,v,b),vh(r,p.Ua.groupId,function(e){return function(){var t;return P((function(r){if(1==r.g)return t=e.Ua.g,x(r,om(n,t,{data:e.qc},u),2);i=r.h||i,w(r)}))}}(p));return x(y,function(e){return P((function(t){return 1==t.g?x(t,Promise.all(e.h.values()),2):t.return(e.g.h)}))}(r),2)}return d?(hm(e),function(e,t,n,i){if(t.expiration=n.ac(),n=$i(n),t.sessionIds=i.offline.usePersistentLicense?n:[],sm(e)&&i.offline.usePersistentLicense&&!n.length)throw new Ge(2,9,9007)}(s,i,l,a),x(y,o.updateManifest(n,i),0)):y.A(0)}))},u=!1,!sm(s)||!u||lm(s)){p.A(2);break}return x(p,d(t.filter((function(e){return e.h})),!0),3);case 3:hm(e),t=t.filter((function(e){return!e.h}));case 2:if(u){p.A(0);break}return x(p,d(t,!1),5);case 5:hm(e),w(p)}}))}(e,f,u,g,a,r,d.Z,h,s),12);case 12:return hm(e),b=new Uh("manifest",d.path.Aa,d.path.Z,u),A.return(Yh(b,g));case 3:return E(A),x(A,l.destroy(),13);case 13:if(!o){A.A(14);break}return x(A,o.stop(),14);case 14:if(!s){A.A(16);break}return x(A,s.destroy(),16);case 16:I(A,0);break;case 2:if(y=S(A),null==u){A.A(18);break}return x(A,am(u),18);case 18:throw p||y}}))}(this,e,t||{},(function(){var t;return P((function(a){return 1==a.g?x(a,dr(e,i.g,r.manifest.retryParameters,n||null),2):(t=a.h,a.return(Fe(t)))}))}),r,a);var o=new oi(t,(function(){return gh(a)}));return o.finally((function(){ee(i.j,a)})),o.then=function(e){return De("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise.  Please update to conform to this new API; you can use the |chain| method instead."),o.promise.then(e)},function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){ee(e.i,n)}))}(this,o)},i.mf=function(){return De("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},i.remove=function(e){return gm(this,function(e,t){var n,i,r,a,o,s;return P((function(l){switch(l.g){case 1:if(mm(),null==(n=Fh(t))||"manifest"!=n.g)throw new Ge(2,9,9004,t);return i=n,r=new Ch,A(l),x(l,r.init(),4);case 4:return x(l,jh(r,i.Aa(),i.Z()),5);case 5:return x(l,(a=l.h).getManifests([i.key()]),6);case 6:return o=l.h,s=o[0],x(l,Promise.all([dm(e,s,r),um(a,i,s)]),2);case 2:return E(l),x(l,r.destroy(),8);case 8:I(l,0)}}))}(this,e))},i.Of=function(){return gm(this,function(e){var t,n,i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:return mm(),t=e.g,n=e.h.drm,i=new Ch,r=!1,A(p),x(p,i.init(),4);case 4:a=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(i,(function(e){return a.push(e)})),o=c(a),s=o.next();case 5:if(s.done){p.A(2);break}return x(p,(l=s.value).getAll(),8);case 8:return d=p.h,x(p,Wh(n,t,d),9);case 9:return u=p.h,x(p,l.remove(u),10);case 10:u.length!=d.length&&(r=!0),s=o.next(),p.A(5);break;case 2:return E(p),x(p,i.destroy(),11);case 11:I(p,3);break;case 3:return p.return(!r)}}))}(this))},i.list=function(){return gm(this,P((function(i){switch(i.g){case 1:return mm(),e=[],t=new Ch,A(i),x(i,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEac
2h((function(e,i){t({Aa:n,Z:i},e)}))}))}(t,(function(t,i){n=n.then((function(){return P((function(n){if(1==n.g)return x(n,i.getAllManifests(),2);n.h.forEach((function(n,i){var r=Yh(new Uh("manifest",t.Aa,t.Z,i),n);e.push(r)})),w(n)}))}))})),x(i,n,2);case 2:return E(i),x(i,t.destroy(),6);case 6:I(i,3);break;case 3:return i.return(e)}})));var e,t,n},F("shaka.offline.Storage",im),im.deleteAll=function(){var e;return P((function(t){return 1==t.g?(e=new Ch,A(t),x(t,function(e){var t,n;return P((function(i){return 1==i.g?(t=Array.from(e.g.values()),(n=0<t.length)||Lh.forEach((function(e){(e=e())&&t.push(e)})),x(i,Promise.all(t.map((function(e){return e.erase()}))),2)):n?i.A(0):x(i,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(E(t),x(t,e.destroy(),5)):I(t,0)}))},im.prototype.list=im.prototype.list,im.prototype.removeEmeSessions=im.prototype.Of,im.prototype.remove=im.prototype.remove,im.prototype.getStoreInProgress=im.prototype.mf,im.prototype.store=im.prototype.store,im.prototype.getNetworkingEngine=im.prototype.bc,im.prototype.getConfiguration=im.prototype.getConfiguration,im.prototype.configure=im.prototype.configure,im.prototype.destroy=im.prototype.destroy,im.support=rm;var vm=new nm,bm=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function ym(){}function xm(e,t){for(var n={priority:t||0,Je:e},i=c(Se(wm)),r=i.next();!r.done;r=i.next()){var a=(r=r.value).ca;if(r.item.priority<n.priority)return void wm.splice(a,0,n)}wm.push(n)}yc.offline=rm,F("shaka.polyfill",ym),ym.register=xm,ym.installAll=function(){for(var e=c(wm),t=e.next();!t.done;t=e.next()){t=t.value;try{t.Je()}catch(e){$("Error installing polyfill!",e)}}};var wm=[];function km(){}function Am(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=c(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Tm(t.value)}function Tm(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function Sm(){}function Em(){mv()}function Im(){}function Cm(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",_m),document.addEventListener("webkitfullscreenerror",_m),document.addEventListener("mozfullscreenchange",_m),document.addEventListener("mozfullscreenerror",_m),document.addEventListener("MSFullscreenChange",_m),document.addEventListener("MSFullscreenError",_m)}}function _m(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function jm(){}function Nm(){}function Lm(){}function Pm(){(dn("CrKey")||ln()||dn("PlayStation 5")||!navigator.mediaCapabilities)&&(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Mm=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Dm)}function Dm(e){var t,n,i,r,a,o,s,l,c,d,u,p;return P((function(h){switch(h.g){case 1:if(t={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:e},!e)return h.return(t);if("media-source"==e.type){if(!an()||e.video&&(n=e.video.contentType,!MediaSource.isTypeSupp
2orted(n))||e.audio&&(i=e.audio.contentType,!MediaSource.isTypeSupported(i)))return h.return(t)}else{if("file"!=e.type)return h.return(t);if(e.video&&(r=e.video.contentType,!on(r))||e.audio&&(a=e.audio.contentType,!on(a)))return h.return(t)}return e.keySystemConfiguration?(o=e.keySystemConfiguration,s=[],l=[],o.audio&&(c={robustness:o.audio.robustness||"",contentType:e.audio.contentType},s.push(c)),o.video&&(d={robustness:o.video.robustness||"",contentType:e.video.contentType},l.push(d)),u={initDataTypes:[o.initDataType],distinctiveIdentifier:o.distinctiveIdentifier,persistentState:o.persistentState,sessionTypes:o.sessionTypes},s.length&&(u.audioCapabilities=s),l.length&&(u.videoCapabilities=l),k(h,3),x(h,navigator.requestMediaKeySystemAccess(o.keySystem,[u]),5)):(t.supported=!0,h.return(Promise.resolve(t)));case 5:p=h.h,T(h,4);break;case 3:S(h);case 4:p&&(t.supported=!0,t.keySystemAccess=p);case 2:return h.return(t)}}))}ym.Aria=km,km.install=Am,xm(Am),ym.EncryptionScheme=Sm,Sm.install=Em,xm(Em,-2),ym.Fullscreen=Im,Im.install=Cm,xm(Cm),ym.MathRound=jm,jm.install=Nm,xm(Nm),ym.MediaCapabilities=Lm,Lm.install=Pm;var Mm=null;function Om(){}function Rm(){var t=cn();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(zm(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):zm()):(dn("Tizen 2")||dn("Tizen 3")||dn("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=Ot(t)&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;dn("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),i=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>i)return e(t);var r=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=r.findIndex((function(e){return e.startsWith("vp09")}));return 0<=a&&(r[a]="vp9",n[i]='codecs="'+r.join(",")+'"',t=n.join("; ")),e(t)})}()}function zm(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,D.apply(0,arguments));return t.abort=function(){},t}}function Bm(){}function Um(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Fm;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new pi("change");n.dispatchEvent(e)}))}()}function Fm(){mi.call(this),this.type="",this.angle=0}function Vm(){}function qm(){if(e.HTMLVideoElement&&e.WebKitMediaKeys){var t=cn();navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&t&&14<=t||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Gm,e.MediaKeys=Wm,e.MediaKeySystemAccess=$m,navigator.requestMediaKeySystemAccess=Hm,e.shakaMediaKeysPolyfill=!0)}}function Hm(e,t){try{var n=new $m(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Gm(e){var t=this.mediaKeys;return t&&t!=e&&Xm(t,null),delete this.mediaKeys,(this.mediaKeys=e)?Xm(e,this):Promise.resolve()}function Km(e){if(Ne(e=je(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=xt(e=bt(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=_e(e),this.dispatchEvent(t)}function $m(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value;if("required"==r.persistentState)i=null;else{i={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label};var a=!1,o=!1;if(r.audioCapabilities)for(var s=c(r.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,WebKitMediaKeys.isTypeSupp
2orted(this.keySystem,l.contentType.split(";")[0])&&(i.audioCapabilities.push(l),o=!0));if(r.videoCapabilities)for(l=(r=c(r.videoCapabilities)).next();!l.done;l=r.next())(s=l.value).contentType&&(a=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,s.contentType.split(";")[0])&&(i.videoCapabilities.push(s),o=!0));a||(o=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),i=o?i:null}if(i)return void(this.g=i)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Wm(e){this.h=new WebKitMediaKeys(e),this.g=new ji}function Xm(e,t){if(e.g.nb(),!t)return Promise.resolve();e.g.B(t,"webkitneedkey",Km);try{return go(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function Ym(e){mi.call(this),this.i=null,this.l=e,this.h=this.g=null,this.j=new ji,this.sessionId="",this.expiration=NaN,this.closed=new mt,this.keyStatuses=new Zm}function Jm(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new pi("keystatuseschange"),e.dispatchEvent(n)}function Zm(){this.size=0,this.g=void 0}function Qm(){}function eg(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=ag,e.MediaKeySystemAccess=ig,navigator.requestMediaKeySystemAccess=tg,HTMLMediaElement.prototype.setMediaKeys=rg,e.shakaMediaKeysPolyfill=!0)}function tg(e,t){try{var n=new ig(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function ng(e){if(e.initData){var t=new CustomEvent("encrypted");t.initDataType="cenc",t.initData=_e(function(e){if(!e)return e;var t=new Cd(e);if(1>=t.data.length)return e;e=[];for(var n={},i=(t=c(t.data)).next();!i.done;n={rc:n.rc},i=t.next())n.rc=i.value,e.some(function(e){return function(t){return Ie(t,e.rc)}}(n))||e.push(n.rc);return _t.apply(At,d(e))}(e.initData)),this.dispatchEvent(t)}}function ig(e,t){this.keySystem=e;for(var n=!1,i=c(t),r=i.next();!r.done;r=i.next()){var a={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(r=r.value).initDataTypes,sessionTypes:["temporary"],label:r.label},o=!1;if(r.audioCapabilities)for(var s=c(r.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(a.audioCapabilities.push(l),n=!0));if(r.videoCapabilities)for(l=(s=c(r.videoCapabilities)).next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(a.videoCapabilities.push(l),n=!0));if(o||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==r.persistentState&&(n=!1),n)return void(this.g=a)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function rg(e){var t=this.mediaKeys;return t&&t!=e&&og(t,null),delete this.mediaKeys,(this.mediaKeys=e)?og(e,this):Promise.resolve()}function ag(e){this.h=new MSMediaKeys(e),this.g=new ji}function og(e,t){if(e.g.nb(),!t)return Promise.resolve();e.g.B(t,"msneedkey",ng);try{return go(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.msSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function sg(e){mi.call(this),this.i=null,this.l=e,this.h=this.g=null,this.j=new ji,this.sessionId="",this.expiration=NaN,this.closed=new mt,this.keyStatuses=new cg}function lg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new pi("keystatuseschange"),e.dispatchEvent(n)}function cg(){this.size=0,this.g=void 0}function dg(){}function ug(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=pg,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=hg,e.MediaKeys=mg,e.MediaKeySystemAccess=gg,e.shakaMediaKeysPolyfill=!0)}function pg(){return Promise.reject(Error("The key system specified is not supported."))}function hg(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function mg(){throw new TypeError("Illegal constructor.")}function gg(){throw this.keySystem="",new TypeError("Illegal constructor.")}function fg(){}function vg(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if
2(HTMLMediaElement.prototype.webkitGenerateKeyRequest)jg="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=yg,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=xg,e.MediaKeys=kg,e.MediaKeySystemAccess=wg,e.shakaMediaKeysPolyfill=!0}}function bg(e){return jg?jg+e.charAt(0).toUpperCase()+e.slice(1):e}function yg(e,t){try{var n=new wg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function xg(e){var t=this.mediaKeys;return t&&t!=e&&Ag(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Ag(e,this),Promise.resolve()}function wg(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,r=document.getElementsByTagName("video");r=r.length?r[0]:document.createElement("video");for(var a=c(t),o=a.next();!o.done;o=a.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(o=o.value).initDataTypes,sessionTypes:["temporary"],label:o.label},l=!1;if(o.audioCapabilities)for(var d=c(o.audioCapabilities),u=d.next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,r.canPlayType(u.contentType.split(";")[0],this.g)&&(s.audioCapabilities.push(u),i=!0));if(o.videoCapabilities)for(u=(d=c(o.videoCapabilities)).next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,r.canPlayType(u.contentType,this.g)&&(s.videoCapabilities.push(u),i=!0));if(l||(i=r.canPlayType("video/mp4",this.g)||r.canPlayType("video/webm",this.g)),"required"==o.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):i=!1),i)return void(this.h=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function kg(e){this.l=e,this.h=null,this.g=new ji,this.i=[],this.j=new Map}function Ag(e,t){e.h=t,e.g.nb();var n=jg;t&&(e.g.B(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=_e(t.initData),e.h.dispatchEvent(n)})),e.g.B(t,n+"keymessage",(function(t){var n=Tg(e,t.sessionId);n&&(t=new pi("message",t=(new Map).set("messageType",null==n.keyStatuses.g?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.B(t,n+"keyadded",(function(t){(t=Tg(e,t.sessionId))&&(Cg(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.B(t,n+"keyerror",(function(t){var n=Tg(e,t.sessionId);n&&n.handleError(t)})))}function Tg(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Sg(e,t,n){mi.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new mt,this.keyStatuses=new _g}function Eg(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var i=je(xt("LOAD_SESSION|"+n));else{var r=xt("PERSISTENT|");i=_t(r,t)}else i=je(t)}catch(e){return Promise.reject(e)}e.h=new mt;var a=bg("generateKeyRequest");try{e.j[a](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new rn((function(){try{e.j[a](e.i,i)}catch(t){e.h.reject(t),e.h=null}})).R(.01)}return e.h}function Ig(e,t,n){if(e.g)e.g.then((function(){return Ig(e,t,n)})).catch((function(){return Ig(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var i=vt(n),r=JSON.parse(i);"oct"!=r.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),i=Et(r.keys[0].k),r=Et(r.keys[0].kid)}else i=je(n),r=null;var a=bg("addKey");try{e.j[a](e.i,i,r,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function Cg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new pi("keystatuseschange"),e.dispatchEvent(n)}function _g(){this.size=0,this.g=void 0}Lm.originalMcap=Mm,xm(Pm,-1),ym.MediaSource=Om,Om.install=Rm,xm(Rm),ym.Orientation=Bm,Bm.install=Um,f(Fm,mi),Fm.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Fm.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},xm(Um),ym.PatchedMediaKeysApple=Vm,Vm.install=qm,$m.prototype.createMediaKeys=function(){var e=new Wm(this.keySystem);return Promise.resolve(e)},$m.prototype.getConfiguration=function(){return this.g},Wm.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new Ym(this.h,e)},Wm.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(Ym,mi),(i=Ym.prototype).generateRequest=function(e,t){var n=this;this.g=new mt;try{var i=this.l.createSession("video/mp4",je(t));this.i=i,this.sessionId=i.sessionId||"",this.j.B(this.i,"webkitkeymessage",(function(e){n.g&&(n.g.resolve(),n.g=null),e=new pi("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",_e(e.message))),n.dispatchEvent(e)})),this.j.B(i,"webkitkeyadded",(function(){n.h&&(Jm(n,"usable"),n.h.resolve(),n.h=null)})),this.j.B(i,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");
2if(e.errorCode=n.i.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.h)n.h.reject(e),n.h=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:Jm(n,"output-not-allowed");break;default:Jm(n,"internal-error")}})),Jm(this,"status-pending")}catch(e){this.g.reject(e)}return this.g},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.h=new mt;try{this.i.update(je(e))}catch(e){this.h.reject(e)}return this.h},i.close=function(){try{this.i.close(),this.closed.resolve(),this.j.nb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=Zm.prototype).forEach=function(e){this.g&&e(this.g,lr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=lr.value();return!(!this.g||!Ie(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},xm(qm),ym.PatchedMediaKeysMs=Qm,Qm.install=eg,ig.prototype.createMediaKeys=function(){var e=new ag(this.keySystem);return Promise.resolve(e)},ig.prototype.getConfiguration=function(){return this.g},ag.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new sg(this.h,e)},ag.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(sg,mi),(i=sg.prototype).generateRequest=function(e,t){var n=this;this.g=new mt;try{this.i=this.l.createSession("video/mp4",je(t),null),this.j.B(this.i,"mskeymessage",(function(e){n.g&&(n.g.resolve(),n.g=null),e=new pi("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",_e(e.message))),n.dispatchEvent(e)})),this.j.B(this.i,"mskeyadded",(function(){n.g?(lg(n,"usable"),n.g.resolve(),n.g=null):n.h&&(lg(n,"usable"),n.h.resolve(),n.h=null)})),this.j.B(this.i,"mskeyerror",(function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.i.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.h)n.h.reject(e),n.h=null;else switch(n.i.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:lg(n,"output-not-allowed");break;default:lg(n,"internal-error")}})),lg(this,"status-pending")}catch(e){this.g.reject(e)}return this.g},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.h=new mt;try{this.i.update(je(e))}catch(e){this.h.reject(e)}return this.h},i.close=function(){try{this.i.close(),this.closed.resolve(),this.j.nb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=cg.prototype).forEach=function(e){this.g&&e(this.g,lr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=lr.value();return!(!this.g||!Ie(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},xm(eg),ym.PatchedMediaKeysNop=dg,dg.install=ug,mg.prototype.createSession=function(){},mg.prototype.setServerCertificate=function(){},gg.prototype.getConfiguration=function(){},gg.prototype.createMediaKeys=function(){},xm(ug,-10),ym.PatchedMediaKeysWebkit=fg,fg.install=vg,wg.prototype.createMediaKeys=function(){var e=new kg(this.g);return Promise.resolve(e)},wg.prototype.getConfiguration=function(){return this.h},kg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new Sg(t,this.l,e),this.i.push(e),e},kg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(Sg,mi),(i=Sg.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Cg(this,"output-restricted"):Cg(this,1==t?"expired":"internal-error"))},i.generateRequest=function(e,t){return Eg(this,t,null)},i.load=function(e){return"persistent-license"==this.l?Eg(this,null,e):Prom
2ise.reject(Error("Not a persistent session."))},i.update=function(e){var t=new mt;return Ig(this,t,e),t},i.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=bg("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},i.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(i=_g.prototype).forEach=function(e){this.g&&e(this.g,lr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=lr.value();return!(!this.g||!Ie(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){};var jg="";function Ng(){}function Lg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=Dg,Object.defineProperty(t,"disablePictureInPicture",{get:Og,set:Rg,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Mg,document.addEventListener("webkitpresentationmodechanged",Pg,!0))}}function Pg(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function Dg(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Mg(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function Og(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function Rg(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function zg(){}function Bg(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=Ug))}function Ug(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function Fg(){}function Vg(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=qg)}function qg(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function Hg(){}function Gg(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function Kg(){}function $g(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=Wg)}}function Wg(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function Xg(){}function Yg(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=Jg;else if(6==n)t=Zg;else{try{var i=!!Jg(1,2,"")}catch(e){i=!1}i&&(t=Jg)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function Jg(t,n,i){return new e.TextTrackCue(t,n,i)}function Zg(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function Qg(){}xm(vg),ym.PiPWebkit=Ng,Ng.install=Lg,xm(Lg),ym.RandomUUID=zg,zg.install=Bg,xm(Bg),ym.StorageEstimate=Fg,Fg.install=Vg,xm(Vg),ym.VideoPlayPromise=Hg,Hg.install=Gg,xm(Gg),ym.VideoPlaybackQuality=Kg,Kg.install=$g,xm($g),ym.VTTCue=Xg,Xg.install=Yg,xm(Yg),Qg.prototype.parseInit=function(){},Qg.prototype.setSequenceMode=function(){},Qg.prototype.parseMedia=function(e,t){for(var n=null,i=[],r=vt(e).split(/\r?\n/),a=(r=c(r)).next();!a.done;a=r.next())if((a=a.value)&&!/^\s+$/.test(a)&&(a=ef.exec(a))){var o=tf.exec(a[1]);a=new ie(o=60*parseInt(o[1],10)+parseFloat(o[2].replace(",",".")),t.segmentEnd?t.segmentEnd:o+2,a[2]),n&&(n.endTime=o,i.push(n)),n=a}return n&&i.push(n),i},F("shaka.text.LrcTextParser",Qg),Qg.prototype.parseMedia=Qg.prototype.parseMedia,Qg.prototype.setSequenceMode=Qg.prototype.setSequenceMode,Qg.prototype.parseInit=Qg.prototype.parseInit;var ef=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,tf=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function nf(){}function rf(e,t,n,i,r,a,o,s,l,d,u){var p=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!u)return null;var h=document.createElement("span");h.textContent=e.textContent}else h=e;for(var m=null,g=c(jf),f=g.next();!f.done&&!(m=df(h,"backgroundImage",i,"#",f.value)[0]);f=g.next());if(g=u,("p"==e.nodeName||m)&&(u=!0),s="default"==(h.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(f=Array.from(h.childNodes).every((function(e){return e.no
2deType==Node.TEXT_NODE}))))for(var v=c(h.childNodes),b=v.next();!b.done;b=v.next())(b=rf(b.value,t,n,i,r,a,o,s,l,h,u))&&e.push(b);i=null!=d,v=/\S/.test(h.textContent);var y=h.hasAttribute("begin")||h.hasAttribute("end")||h.hasAttribute("dur");if(!(y||v||"br"==h.tagName||0!=e.length||i&&!s))return null;for(v=(b=pf(h,n)).start,b=b.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)v=(b=uf(p,n,v,b)).start,b=b.end,p=p.parentNode;if(null==v&&(v=0),v+=t,b=null==b?1/0:b+t,!y&&0<e.length)for(v=1/0,b=0,n=(t=c(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),b=Math.max(b,n.endTime);if("br"==h.tagName)return(r=new ie(v,b,"")).lineBreak=!0,r;if(t="",f&&(t=h.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new ie(v,b,t)).nestedCues=e,u||(t.isContainer=!0),l&&(t.cellResolution=l),l=df(h,"region",a,"")[0],h.hasAttribute("region")&&l&&l.getAttribute("xml:id")){var x=l.getAttribute("xml:id");t.region=o.filter((function(e){return e.id==x}))[0]}return o=l,d&&i&&!h.getAttribute("region")&&!h.getAttribute("style")&&(o=df(d,"region",a,"")[0]),function(e,t,n,i,r,a,o){a=a||o,"rtl"==of(t,n,r,"direction",a)&&(e.direction="rtl"),o=of(t,n,r,"writingMode",a),"tb"==o||"tblr"==o?e.writingMode="vertical-lr":"tbrl"==o?e.writingMode="vertical-rl":"rltb"==o||"rl"==o?e.direction="rtl":o&&(e.direction=de),(o=of(t,n,r,"textAlign",!0))?(e.positionAlign=If[o],e.lineAlign=Ef[o],e.textAlign=se[o.toUpperCase()]):e.textAlign="start",(o=of(t,n,r,"displayAlign",!0))&&(e.displayAlign=ce[o.toUpperCase()]);(o=of(t,n,r,"color",a))&&(e.color=o);(o=of(t,n,r,"backgroundColor",a))&&(e.backgroundColor=o);(o=of(t,n,r,"border",a))&&(e.border=o);(o=of(t,n,r,"fontFamily",a))&&(e.fontFamily=o);(o=of(t,n,r,"fontWeight",a))&&"bold"==o&&(e.fontWeight=700),o=of(t,n,r,"wrapOption",a),e.wrapLine=!o||"noWrap"!=o,(o=of(t,n,r,"lineHeight",a))&&o.match(bf)&&(e.lineHeight=o),(o=of(t,n,r,"fontSize",a))&&(o.match(bf)||o.match(vf))&&(e.fontSize=o),(o=of(t,n,r,"fontStyle",a))&&(e.fontStyle=ye[o.toUpperCase()]);if(i){o=i.getAttribute("imageType")||i.getAttribute("imagetype");var s=i.getAttribute("encoding");i=i.textContent.trim(),"PNG"==o&&"Base64"==s&&i&&(e.backgroundImage="data:image/png;base64,"+i)}(i=of(t,n,r,"textOutline",a))&&(i=i.split(" "),i[0].match(bf)?e.textStrokeColor=e.color:(e.textStrokeColor=i[0],i.shift()),i[0]&&i[0].match(bf)?e.textStrokeWidth=i[0]:e.textStrokeColor="");(i=of(t,n,r,"letterSpacing",a))&&i.match(bf)&&(e.letterSpacing=i),(i=of(t,n,r,"linePadding",a))&&i.match(bf)&&(e.linePadding=i),(a=of(t,n,r,"opacity",a))&&(e.opacity=parseFloat(a));(n=sf(n,r,"textDecoration"))&&af(e,n),(t=lf(t,r,"textDecoration"))&&af(e,t)}(t,h,o,m,r,g,0==e.length),t}function af(e,t){for(var n=c(t.split(" ")),i=n.next();!i.done;i=n.next())switch(i.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&ee(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&ee(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&ee(e.textDecoration,"overline")}}function of(e,t,n,i,r){return r=void 0===r||r,(e=lf(e,n,i))?e:r?sf(t,n,i):null}function sf(e,t,n){if(!e)return null;var i=Md(e,_f,n);return i||cf(e,t,n)}function lf(e,t,n){var i=Md(e,_f,n);return i||cf(e,t,n)}function cf(e,t,n){e=df(e,"style",t,"");for(var i=null,r=0;r<e.length;r++){var a=Dd(e[r],"urn:ebu:tt:style",n);a||(a=Md(e[r],_f,n)),a||(a=lf(e[r],t,n)),a&&(i=a)}return i}function df(e,t,n,i,r){var a=[];if(!e||1>n.length)return a;var o=e;for(e=null;o&&!(e=r?Dd(o,r,t):o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(r=(t=c(t.split(" "))).next();!r.done;r=t.next())for(r=r.value,o=(e=c(n)).next();!o.done;o=e.next())if(i+(o=o.value).getAttribute("xml:id")==r){a.push(o);break}return a}function uf(e,t,n,i){return e=pf(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==i?i=e.end:null!=e.start&&(i+=e.start),{start:n,end:i}}function pf(e,t){var n=hf(e.getAttribute("begin"),t),i=hf(e.getAttribute("end"),t),r=hf(e.getAttribute("dur"),t);return null==i&&null!=r&&(i=n+r),{start:n,end:i}}function hf(e,t){var n=null;if(xf.test(e)){n=xf.exec(e);var i=Number(n[1]),r=Number(n[2]),a=Number(n[3]),o=Number(n[4]);n=(a+=(o+=(Number(n[5])||0)/t.h)/t.frameRate)+60*r+3600*i}else if(wf.test(e))n=mf(wf,e);else if(kf.test(e))n=mf(kf,e);else if(Af.test(e))n=Af.exec(e),n=Number(n[1])/t.frameRate;else if(Tf.test(e))n=Tf.exec(e),n=Number(n[1])/t.g;else if(Sf.test(e))n=mf(Sf,e);else if(e)throw new Ge(2,2,2001,"Could not parse cue time range in TTML");return n}function mf(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function gf(e,t,n,i){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(i),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}qt["application/x-subtitle-lrc"]=function(){return new Qg},nf.prototype.parseInit=function(){},nf.prototype.setSequenceMode=function(){},nf.prototype.parseMedia=function(e,t){var n=vt(e),i=[],r=new DOMParser,a=null;if(""==n)return i;try{a=r.parseFromString(n,"text/xml")}catch(e){throw new Ge(2,2,2005,"Failed to parse TTML.")}if(a){if(n=a.getElementsByTagName("parsererror")[0])throw new Ge(2,2,2005,n.textContent);var o=a.getElementsByTagName("tt")[0];if(!o)throw new Ge(2,2,2005,"TTML does not contain <tt> tag.");if(!(a=o.getElementsByTagName("body")[0]))return[];var s=Md(o,Cf,"frameRate"),l=Md(o,Cf,"subFrameRate"),d=Md(o,Cf,"frameRateMultiplier"),u=Md(o,Cf,"tickRate"),p=Md(o,Cf,"cellResolution");if(n=o.getAttribute("xml:space")||"default",r=Md(o,_f,"extent"),"default"!=n&&"preserve"!=n)throw new Ge(2,2,2005,"Invalid xml:space value: "+n);n="default"==n,s=new gf(s,l,d,u),p=p&&(p=/^(\d+) (\d+)$/.exec(p))?{columns:parseInt(p[1],10),rows:parseInt(p[2],10)}:null,l=(l=o.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(l):[],d=Array.from(o.getElementsByTagName("style")),u=[];for(var h=c(o=Array.from(o.getElementsByTagName("region"))),m=h.next();!m.done;m=h.next()){var g=m.value;m=new xe;var f=g.getAttribute("xml:id");if(f){m.id=f;var v,b,y=null;r&&(y=ff.exec(r)||yf.exec(r)),f=y?Number(y[1]):null,y=y?Number(y[2]):null,(v=sf(g,d,"extent"))&&(null!=(v=(b=ff.exec(v))||yf.exec(v))&&(m.width=Number(v[1]),m.height=Number(v[2]),b||(null!=f&&(m.width=100*m.width/f),null!=y&&(m.height=100*m.height/y)),m.widthUnits=b||null!=f?we:0,m.heightUnits=b||null!=y?we:0)),(g=sf(g,d,"origin"))&&(null!=(v=(b=ff.exec(g))||yf.exec(g))&&(m.viewportAnchorX=Number(v[1]),m.viewportAnchorY=Number(v[2]),b||(null!=y&&(m.viewportAnchorY=100*m.viewportAnchorY/y),null!=f&&(m.viewportAnchorX=100*m.viewportAnchorX/f)),m.viewportAnchorUnits=b||null!=f?we:0))}else m=null;m&&u.push(m)}if(Ld(a,"p").length)throw new Ge(2,2,2001,"<p> can only be inside <div> in TTML");for(h=(r=c(Ld(a,"div"))).next();!h.done;h=r.next())if(Ld(h.value,"span").length)throw new Ge(2,2,2001,"<span> can only be inside <p> in TTML");(a=rf(a,t.periodStart,s,l,d,o,u,n,p,null,!1))&&i.push(a)}return i},F("shaka.text.TtmlTextParser",nf),nf.prototype.parseMedia=nf.prototype.parseMedia,nf.prototype.setSequenceMode=nf.prototype.setSequenceMode,nf.prototype.parseInit=nf.prototype.parseInit;var ff=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,vf=/^(\d{1,2}(?:\.\d+)?|100)%$/,bf=/^(\d+px|\d+em|\d*\.?\d+c)$/,yf=/^(\d+)px (\d+)px$/,xf=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,wf=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,kf=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Af=/^(\d*(?:\.\d*)?)f$/,Tf=/^(\d*(?:\.\d*)?)t$/,Sf=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Ef={left:he,center:"center",right:"end",start:he,end:"end"},If={left:"line-left",center:"center",right:"line-right"},Cf=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],_f=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],jf=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function Nf(){this.g=new nf}function Lf(){this.g=!1}function Pf(e){for(var t=c(Object.entries(ge)),n=t.next();!n.done;n=t.next()){var i=c(n.value);n=i.next().value,i=i.next().value;var r=new ie(0,0,"");r.color=i,e.set(n,r)}for(n=(t=c(Object.entries(fe))).next();!n.done;n=t.next())n=(i=c(n.value)).next().value,i=i.next().value,(r=new ie(0,0,"")).backgroundColor=i,e.set(n,r)}function Df(e,t,n){0===n.size&&Pf(n),e=function(e){for(var t=[],n=-1,i="",r=0;r<e.length;r++)if("/"===e[r]){var a=e.indexOf(">",r);if(a<=r)return e;a=e.substring(r+1,a);var o=t.pop();if(!a||!o)return e;if(o===a)i+="/"+a+">";else{if(!o.startsWith("c.")||"c"!==a)return e;i+="/"+o+">"}r+=a.length+1}else"<"===e[r]?n=r+1:">"===e[r]&&0<n&&(t.push(e.substr(n,r-n)),n=-1),i+=e[r];return i}(e);var i=$d("<span>"+e+"</span>","span");if(i){var r=[];if(1==(i=i.childNodes).length){var a=i[0];if(a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE)return void(t.payload=e)}for(i=(e=c(i)).next();!i.done;i=e.next())Of(i.value,t,r,n);t.nestedCues=r}else t.payload=e}function Mf(e,t){return e&&0<e.length?e:t}function Of(e,t,n,i){var r=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var a=c(e.nodeName.split(/[ .]+/)),o=a.next();!o.done;o=a.next()){if(o=o.value,i.has(o)){var s=i.get(o);s&&(r.backgroundColor=Mf(s.backgroundColor,r.backgroundColor),r.color=Mf(s.color,r.color),r.fontFamily=Mf(s.fontFamily,r.fontFamily),r.fontSize=Mf(s.fontSize,r.fontSize),r.fontWeight=s.fontWeight,r.fontStyle=s.fontStyle,r.opacity=s.opacity,r.wrapLine=s.wrapLine)}switch(o){case"b":r.fontWeight=700;break;case"i":r.fontStyle="italic";break;case"u":r.textDecoration.push("underline")}}if(Rd(e))for(a=!0,i=c(e.textContent.split("\n")),e=i.next();!e.done;e=i.next())e=e.value,a||((a=t.clone()).lineBreak=!0,n.push(a)),0<e.length&&((a=r.clone()).payload=e,n.push(a)),a=!1;else for(e=(t=c(e.childNodes)).next();!e.done;e=t.next())Of(e.value,r,n,i)}function Rf(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],e.textAlign="middle"==t?oe:se[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(i=/^regi
2on:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length?n[0]:null}(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=me[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=pe,e.line=Number(n[1]),n[2]&&(e.lineAlign=me[n[2].toUpperCase()]))}function zf(e){if(null==(e=bp(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Bf(){this.g=null}function Uf(e,t,n){var i,r,a;return(new br).box("payl",wr((function(e){i=vt(e)}))).box("iden",wr((function(e){r=vt(e)}))).box("sttg",wr((function(e){a=vt(e)}))).parse(e),i?function(e,t,n,i,r){if(i=new ie(i,r,""),Df(e,i,new Map),t&&(i.id=t),n)for(e=new fp(n),t=yp(e);t;)Rf(i,t,[]),vp(e),t=yp(e);return i}(i,r,a,t,n):null}function Ff(){}function Vf(e){if(null==(e=bp(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function qf(){this.g=new Lf}function Hf(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function Gf(){}function Kf(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=$f(n))&&(e.color=n),(n=t.BackColour)&&(n=$f(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=le,e.textAlign="start";break;case 2:e.displayAlign=le,e.textAlign=oe;break;case 3:e.displayAlign=le,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=oe;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=oe;break;case 11:e.displayAlign="center",e.textAlign="end"}(n=t.AlphaLevel)&&(e.opacity=parseFloat(n))}function $f(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function Wf(e){return 3600*((e=ev.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}qt["application/ttml+xml"]=function(){return new nf},Nf.prototype.parseInit=function(e){var t=!1;if((new br).box("moov",yr).box("trak",yr).box("mdia",yr).box("minf",yr).box("stbl",yr).S("stsd",xr).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new Ge(2,2,2007)},Nf.prototype.setSequenceMode=function(){},Nf.prototype.parseMedia=function(e,t){var n=this,i=!1,r=[];if((new br).box("mdat",wr((function(e){i=!0,r=r.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!i)throw new Ge(2,2,2007);return r},F("shaka.text.Mp4TtmlParser",Nf),Nf.prototype.parseMedia=Nf.prototype.parseMedia,Nf.prototype.setSequenceMode=Nf.prototype.setSequenceMode,Nf.prototype.parseInit=Nf.prototype.parseInit,qt['application/mp4; codecs="stpp"']=function(){return new Nf},qt['application/mp4; codecs="stpp.ttml"']=function(){return new Nf},qt['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Nf},qt['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Nf},Lf.prototype.parseInit=function(){},Lf.prototype.setSequenceMode=function(e){this.g=e},Lf.prototype.parseMedia=function(e,t){var n=vt(e),i=(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(i[0]))throw new Ge(2,2,2e3);if(n=t.periodStart,i[0].includes("X-TIMESTAMP-MAP")&&!this.g){var r=i[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),a=i[0].match(/MPEGTS:(\d+)/m);if(r&&a){if(null==(n=zf(new fp(r[1]))))throw new Ge(2,2,2e3);for(a=Number(a[1]),r=t.segmentStart;95443.7176888889<=r;)r-=95443.7176888889,a+=8589934592;n=t.periodStart+a/9e4-n}}a=[];for(var o=(r=c(i[0].split("\n"))).next();!o.done;o=r.next())if(o=o.value,/^Region:/.test(o)){o=new fp(o);var s=new xe;yp(o),vp(o);for(var l=yp(o);l;){var d=s,u=l;(l=/^id=(.*)$/.exec(u))?d.id=l[1]:(l=/^width=(\d{1,2}|100)%$/.exec(u))?d.width=Number(l[1]):(l=/^lines=(\d+)$/.exec(u))?(d.height=Number(l[1]),d.heightUnits=2):(l=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.regionAnchorX=Number(l[1]),d.regionAnchorY=Number(l[2])):(l=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.viewportAnchorX=Number(l[1]),d.viewportAnchorY=Number(l[2])):/^scroll=up$/.exec(u)&&(d.scroll="up"),vp(o),l=yp(o)}a.push(s)}for(Pf(r=new Map),o=[],s=(i=c(i.slice(1))).next();!s.done;s=i.next()){if((1!=(s=s.value.split("\n")).length||s[0])&&!/^NOTE($|[ \t])/.test(s[0])&&"STYLE"==s[0]&&s[1].includes("::cue")){d="global",(l=s[1].match(/\((.*)\)/))&&(d=l.pop()),l=s.slice(2,-1),s[1].includes("}")&&(u=/\{(.*?)\}/.exec(s[1]))&&(l=u[1].split(";")),u=new ie(0,0,"");for(var p=!1,h=0;h<l.length;h++){var m=/^\s*([^:]+):\s*(.*)/.exec(l[h]);if(m){var g=m[2].trim().replace(";","");switch(m[1].trim()){case"background-color":p=!0,u.backgroundColor=g;break;case"color":p=!0,u.color=g;break;case"font-family":p=!0,u.fontFamily=g;break;case"font-size":p=!0,u.fontSize=g;break;case"font-weight":700<=parseInt(g,10)&&(p=!0,u.fontWeight=700);break;case"font-style":switch(g){case"normal":p=!0,u.fontStyle=be;break;case"italic":p=!0,u.fontStyle="italic";break;case"oblique":p=!0,u.fontStyle="oblique"}break;case"opacity":p=!0,u.opacity=parseFloat(g);break;case"white-space":p=!0,u.wrapLine="noWrap"!=g}}}p&&r.set(d,u)}if(h=n,1==s.length&&!s[0]||/^NOTE($|[ \t])/.test(s[0])||"STYLE"==s[0])s=null;
2else{if(d=null,s[0].includes("--\x3e")||(d=s[0],s.splice(0,1)),u=zf(l=new fp(s[0])),m=bp(l,/[ \t]+--\x3e[ \t]+/g),p=zf(l),null==u||null==m||null==p)throw new Ge(2,2,2001,"Could not parse cue time range in WebVTT");for(u+=h,p+=h,h=s.slice(1).join("\n").trim(),r.has("global")?((s=r.get("global").clone()).startTime=u,s.endTime=p,s.payload=""):s=new ie(u,p,""),Df(h,s,r),vp(l),u=yp(l);u;)Rf(s,u,a),vp(l),u=yp(l);null!=d&&(s.id=d)}s&&o.push(s)}return o},F("shaka.text.VttTextParser",Lf),Lf.prototype.parseMedia=Lf.prototype.parseMedia,Lf.prototype.setSequenceMode=Lf.prototype.setSequenceMode,Lf.prototype.parseInit=Lf.prototype.parseInit,qt["text/vtt"]=function(){return new Lf},qt['text/vtt; codecs="vtt"']=function(){return new Lf},qt['text/vtt; codecs="wvtt"']=function(){return new Lf},Bf.prototype.parseInit=function(e){var t=this,n=!1;if((new br).box("moov",yr).box("trak",yr).box("mdia",yr).S("mdhd",(function(e){e=Da(e.reader,e.version),t.g=e.timescale})).box("minf",yr).box("stbl",yr).S("stsd",xr).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new Ge(2,2,2008);if(!n)throw new Ge(2,2,2008)},Bf.prototype.setSequenceMode=function(){},Bf.prototype.parseMedia=function(e,t){if(!this.g)throw new Ge(2,2,2008);var n,i=0,r=[],a=[],o=!1,s=!1,l=!1,d=null;if((new br).box("moof",yr).box("traf",yr).S("tfdt",(function(e){o=!0,i=Pa(e.reader,e.version).Yd})).S("tfhd",(function(e){d=La(e.reader,e.flags).de})).S("trun",(function(e){s=!0,r=Ma(e.reader,e.version,e.flags).te})).box("mdat",wr((function(e){l=!0,n=e}))).parse(e,!1),!l&&!o&&!s)throw new Ge(2,2,2008);for(var u=i,p=new gr(n,0),h=c(r),m=h.next();!m.done;m=h.next()){var g=(m=m.value).Kd||d,f=m.Rc?i+m.Rc:u;u=f+(g||0);var v=0;do{var b=p.M();v+=b;var y=null;"vttc"==Ar(p.M())?8<b&&(y=p.$a(b-8)):p.skip(b-8),g&&y&&(b=Uf(y,t.periodStart+f/this.g,t.periodStart+u/this.g),a.push(b))}while(m.sampleSize&&v<m.sampleSize)}return a.filter(Ue)},F("shaka.text.Mp4VttParser",Bf),Bf.prototype.parseMedia=Bf.prototype.parseMedia,Bf.prototype.setSequenceMode=Bf.prototype.setSequenceMode,Bf.prototype.parseInit=Bf.prototype.parseInit,qt['application/mp4; codecs="wvtt"']=function(){return new Bf},Ff.prototype.parseInit=function(){},Ff.prototype.setSequenceMode=function(){},Ff.prototype.parseMedia=function(e){var t=vt(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=c(t.split("\n\n"))).next();!n.done;n=t.next()){var i=new fp((n=n.value.split("\n"))[0]),r=Vf(i),a=bp(i,/,/g);if(i=Vf(i),null==r||null==a||null==i)throw new Ge(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new ie(r,i,n.slice(1).join("\n").trim()))}return e},F("shaka.text.SbvTextParser",Ff),Ff.prototype.parseMedia=Ff.prototype.parseMedia,Ff.prototype.setSequenceMode=Ff.prototype.setSequenceMode,Ff.prototype.parseInit=Ff.prototype.parseInit,qt["text/x-subviewer"]=function(){return new Ff},qf.prototype.parseInit=function(){},qf.prototype.setSequenceMode=function(){},qf.prototype.parseMedia=function(e,t){var n=vt(e);return n=je(xt(n=Hf(n))),this.g.parseMedia(n,t)},F("shaka.text.SrtTextParser",qf),qf.srt2webvtt=Hf,qf.prototype.parseMedia=qf.prototype.parseMedia,qf.prototype.setSequenceMode=qf.prototype.setSequenceMode,qf.prototype.parseInit=qf.prototype.parseInit,qt["text/srt"]=function(){return new qf},Gf.prototype.parseInit=function(){},Gf.prototype.setSequenceMode=function(){},Gf.prototype.parseMedia=function(e){for(var t="",n="",i=(e=c(e=vt(e).split(/\r?\n\s*\r?\n/))).next();!i.done;i=e.next()){var r=Jf.exec(i.value);r&&(i=r[1],r=r[2],"V4 Styles"==i||"V4+ Styles"==i?t=r:"Events"==i&&(n=r))}e=[],i=null;for(var a=(t=c(t.split(/\r?\n/))).next();!a.done;a=t.next())if(r=a.value,!/^\s*;/.test(r)&&(a=Zf.exec(r)))if(r=a[1].trim(),a=a[2].trim(),"Format"==r)i=a.split(Qf);else if("Style"==r){r=a.split(Qf),a={};for(var o=0;o<i.length&&o<r.length;o++)a[i[o]]=r[o];e.push(a)}for(i=[],t=null,r={},a=(n=c(n.split(/\r?\n/))).next();!a.done;r={gd:r.gd},a=n.next())if(a=a.value,!/^\s*;/.test(a)&&(o=Zf.exec(a)))if(a=o[1].trim(),o=o[2].trim(),"Format"==a)t=o.split(Qf);else if("Dialogue"==a){o=o.split(Qf),a={};for(var s=0;s<t.length&&s<o.length;s++)a[t[s]]=o[s];o=new ie(s=Wf(a.Start),Wf(a.End),o.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}
2/g,"")),r.gd=a.Style,(a=e.find(function(e){return function(t){return t.Name==e.gd}}(r)))&&Kf(o,a),i.push(o)}return i},F("shaka.text.SsaTextParser",Gf),Gf.prototype.parseMedia=Gf.prototype.parseMedia,Gf.prototype.setSequenceMode=Gf.prototype.setSequenceMode,Gf.prototype.parseInit=Gf.prototype.parseInit;var Xf,Yf,Jf=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,Zf=/^\s*([^:]+):\s*(.*)/,Qf=/\s*,\s*/,ev=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function tv(){}function nv(){Xf?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(Xf=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=iv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function iv(e,t){var n,i=this;return P((function(r){return 1==r.g?(console.assert(i==navigator,'bad "this" for requestMediaKeySystemAccess'),x(r,Xf.call(i,e,t),2)):pv(n=r.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=Xf,r.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=rv,r.return(rv.call(i,e,t)))}))}function rv(e,t){var n,i,r,a,o,s,l,d,u,p,h=this;return P((function(m){if(1==m.g){for(console.assert(h==navigator,'bad "this" for requestMediaKeySystemAccess'),n=uv(e),i=[],r=c(t),a=r.next();!a.done;a=r.next())o=a.value,s=av(o.videoCapabilities,n),l=av(o.audioCapabilities,n),o.videoCapabilities&&o.videoCapabilities.length&&!s.length||o.audioCapabilities&&o.audioCapabilities.length&&!l.length||((d=Object.assign({},o)).videoCapabilities=s,d.audioCapabilities=l,i.push(d));if(!i.length)throw(u=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",u.code=DOMException.NOT_SUPPORTED_ERR,u;return x(m,Xf.call(h,e,i),2)}return p=m.h,m.return(new dv(p,n))}))}function av(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function ov(){}function sv(){Yf?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(Yf=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=lv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function lv(e){var t,n,i=this;return P((function(r){return 1==r.g?(console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),x(r,Yf.call(i,e),2)):(t=r.h,e.keySystemConfiguration?(n=t.keySystemAccess)&&pv(n)?(console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=Yf,r.return(t)):(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=cv,r.return(cv.call(i,e))):r.return(t))}))}function cv(e){var t,n,i,r,a,o,s,l,c,d=this;return P((function(u){switch(u.g){case 1:return console.assert(d==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,i=n.keySystem,r=n.audio&&n.audio.encryptionScheme,a=n.video&&n.video.encryptionScheme,t=uv(i),o={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},r&&r!=t||a&&a!=t)?u.return(o):x(u,Yf.call(d,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new dv(s.keySystemAccess,t),u.A(3);break}if(!e.keySystemConfiguration){u.A(3);break}var p=e.keySystemConfiguration,h=[],m=[];return p.audio&&h.push({robustness:p.audio.robustness||"",contentType:e.audio.contentType}),p.video&&m.push({robustness:p.video.robustness||"",contentType:e.video.contentType}),p={initDataTypes:p.initDataType?[p.initDataType]:[],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes},h.length&&(p.audioCapabilities=h),m.length&&(p.videoCapabilities=m),l=p,c=s,x(u,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[l]),5);case 5:c.keySystemAccess=u.h;case 3:return u.return(s)}}))}function dv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function uv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function pv(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function hv(){}function mv(){nv(),sv()}qt["text/x-ssa"]=function(){return new Gf},F("EmeEncryptionSchemePolyfill",tv),tv.install=nv,F("McEncryptionSchemePolyfill",ov),ov.install=sv,dv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=c(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=c(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},dv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},F("EncryptionSchemePolyfills",hv),hv.install=mv,void 0!==n&&n.exports&&(n.exports=hv)}.call(i,e,e,void 0),i.shaka)t[r]=i.shaka[r]}()}
2,94030(e,t,n){!function(){var e="undefined"!=typeof window?window:n.g,i={};for(var r in function(e,t,n){var i;function r(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}var a="function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};var o=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof e&&e,"object"==typeof self&&self,"object"==typeof t&&t];for(var i=0;i<n.length;++i){var r=n[i];if(r&&r.Math==Math)return r}throw Error("Cannot find global object")}(this);function s(e,t){if(t)e:{for(var n=o,i=e.split("."),r=0;r<i.length-1;r++){var s=i[r];if(!(s in n))break e;n=n[s]}(s=t(r=n[i=i[i.length-1]]))!=r&&null!=s&&a(n,i,{configurable:!0,writable:!0,value:s})}}function l(e){return(e={next:e})[Symbol.iterator]=function(){return this},e}function c(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:r(e)}}function d(e){if(!(e instanceof Array)){e=c(e);for(var t,n=[];!(t=e.next()).done;)n.push(t.value);e=n}return e}s("Symbol",(function(e){function t(e,t){this.g=e,a(this,"description",{configurable:!0,writable:!0,value:t})}if(e)return e;t.prototype.toString=function(){return this.g};var n="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0;return function e(r){if(this instanceof e)throw new TypeError("Symbol is not a constructor");return new t(n+(r||"")+"_"+i++,r)}})),s("Symbol.iterator",(function(e){if(e)return e;e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=o[t[n]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&a(i.prototype,e,{configurable:!0,writable:!0,value:function(){return l(r(this))}})}return e}));var u,p="function"==typeof Object.create?Object.create:function(e){function t(){}return t.prototype=e,new t};if("function"==typeof Object.setPrototypeOf)u=Object.setPrototypeOf;else{var h;e:{var m={};try{m.__proto__={a:!0},h=m.a;break e}catch(e){}h=!1}u=h?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var g=u;function f(e,t){if(e.prototype=p(t.prototype),e.prototype.constructor=e,g)g(e,t);else for(var n in t)if("prototype"!=n)if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.Oi=t.prototype}function v(){this.A=!1,this.l=null,this.h=void 0,this.g=1,this.j=this.m=0,this.C=this.i=null}function b(e){if(e.A)throw new TypeError("Generator is already running");e.A=!0}function y(e,t){e.i={Ze:t,kf:!0},e.g=e.m||e.j}function x(e,t,n){return e.g=n,{value:t}}function w(e){e.g=0}function k(e,t,n){e.m=t,null!=n&&(e.j=n)}function A(e){e.m=0,e.j=2}function T(e,t,n){e.g=t,e.m=n||0}function S(e,t){e.m=t||0;var n=e.i.Ze;return e.i=null,n}function E(e){e.C=[e.i],e.m=0,e.j=0}function I(e,t){var n=e.C.splice(0)[0];(n=e.i=e.i||n)?n.kf?e.g=e.m||e.j:null!=n.D&&e.j<n.D?(e.g=n.D,e.i=null):e.g=e.j:e.g=t}function C(e){this.g=new v,this.h=e}function _(e,t,n,i){try{var r=t.call(e.g.l,n);if(!(r instanceof Object))throw new TypeError("Iterator result "+r+" is not an object");if(!r.done)return e.g.A=!1,r;var a=r.value}catch(t){return e.g.l=null,y(e.g,t),j(e)}
2return e.g.l=null,i.call(e.g,a),j(e)}function j(e){for(;e.g.g;)try{var t=e.h(e.g);if(t)return e.g.A=!1,{value:t.value,done:!1}}catch(t){e.g.h=void 0,y(e.g,t)}if(e.g.A=!1,e.g.i){if(t=e.g.i,e.g.i=null,t.kf)throw t.Ze;return{value:t.return,done:!0}}return{value:void 0,done:!0}}function N(e){this.next=function(t){return b(e.g),e.g.l?t=_(e,e.g.l.next,t,e.g.B):(e.g.B(t),t=j(e)),t},this.throw=function(t){return b(e.g),e.g.l?t=_(e,e.g.l.throw,t,e.g.B):(y(e.g,t),t=j(e)),t},this.return=function(t){return function(e,t){b(e.g);var n=e.g.l;return n?_(e,"return"in n?n.return:function(e){return{value:e,done:!0}},t,e.g.return):(e.g.return(t),j(e))}(e,t)},this[Symbol.iterator]=function(){return this}}function L(e,t){var n=new N(new C(t));return g&&e.prototype&&g(n,e.prototype),n}function P(e){return function(e){function t(t){return e.next(t)}function n(t){return e.throw(t)}return new Promise((function(i,r){!function e(a){a.done?i(a.value):Promise.resolve(a.value).then(t,n).then(e,r)}(e.next())}))}(new N(new C(e)))}function D(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t}function M(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function O(e,t){e instanceof String&&(e+="");var n=0,i=!1,r={next:function(){if(!i&&n<e.length){var r=n++;return{value:t(r,e[r]),done:!1}}return i=!0,{done:!0,value:void 0}}};return r[Symbol.iterator]=function(){return r},r}function R(e,t,n){e instanceof String&&(e=String(e));for(var i=e.length,r=0;r<i;r++){var a=e[r];if(t.call(n,a,r,e))return{ra:r,v:a}}return{ra:-1,v:void 0}}function z(e,t,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(t instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""}v.prototype.B=function(e){this.h=e},v.prototype.return=function(e){this.i={return:e},this.g=this.j},v.prototype.D=function(e){this.g=e},s("Promise",(function(e){function t(e){this.h=0,this.i=void 0,this.g=[],this.A=!1;var t=this.j();try{e(t.resolve,t.reject)}catch(e){t.reject(e)}}function n(){this.g=null}function i(e){return e instanceof t?e:new t((function(t){t(e)}))}if(e)return e;n.prototype.h=function(e){if(null==this.g){this.g=[];var t=this;this.i((function(){t.l()}))}this.g.push(e)};var r=o.setTimeout;n.prototype.i=function(e){r(e,0)},n.prototype.l=function(){for(;this.g&&this.g.length;){var e=this.g;this.g=[];for(var t=0;t<e.length;++t){var n=e[t];e[t]=null;try{n()}catch(e){this.j(e)}}}this.g=null},n.prototype.j=function(e){this.i((function(){throw e}))},t.prototype.j=function(){function e(e){return function(i){n||(n=!0,e.call(t,i))}}var t=this,n=!1;return{resolve:e(this.H),reject:e(this.l)}},t.prototype.H=function(e){if(e===this)this.l(new TypeError("A Promise cannot resolve to itself"));else if(e instanceof t)this.K(e);else{e:switch(typeof e){case"object":var n=null!=e;break e;case"function":n=!0;break e;default:n=!1}n?this.G(e):this.m(e)}},t.prototype.G=function(e){var t=void 0;try{t=e.then}catch(e){return void this.l(e)}"function"==typeof t?this.M(t,e):this.m(e)},t.prototype.l=function(e){this.B(2,e)},t.prototype.m=function(e){this.B(1,e)},t.prototype.B=function(e,t){if(0!=this.h)throw Error("Cannot settle("+e+", "+t+"): Promise already settled in state"+this.h);this.h=e,this.i=t,2===this.h&&this.J(),this.C()},t.prototype.J=function(){var e=this;r((function(){if(e.F()){var t=o.console;void 0!==t&&t.error(e.i)}}),1)},t.prototype.F=function(){if(this.A)return!1;var e=o.CustomEvent,t=o.Event,n=o.dispatchEvent;return void 0===n||("function"==typeof e?e=new e("unhandledrejection",{cancelable:!0}):"function"==typeof t?e=new t("unhandledrejection",{cancelable:!0}):(e=o.document.createEvent("CustomEvent")).initCustomEvent("unhandledrejection",!1,!0,e),e.promise=this,e.reason=this.i,n(e))},t.prototype.C=function(){if(null!=this.g){for(var e=0;e<this.g.length;++e)a.h(this.g[e]);this.g=null}};var a=new n;return t.prototype.K=function(e){var t=this.j();e.Zc(t.resolve,t.reject)},t.prototype.M=function(e,t){var n=this.j();try{e.call(t,n.resolve,n.reject)}catch(e){n.reject(e)}},t.prototype.then=function(e,n){function i(e,t){return"function"==typeof e?function(t){try{r(e(t))}catch(e){a(e)}}:t}var r,a,o=new t((function(e,t){r=e,a=t}));return this.Zc(i(e,r),i(n,a)),o},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.Zc=function(e,t){function n(){switch(i.h){case 1:e(i.i);break;case 2:t(i.i);break;default:throw Error("Unexpected state: "+i.h)}}var i=this;null==this.g?a.h(n):this.g.push(n),this.A=!0},t.resolve=i,t.reject=function(e){return new t((function(t,n){n(e)}))},t.race=function(e){return new t((function(t,n){for(var r=c(e),a=r.next();!a.done;a=r.next())i(a.value).Zc(t,n)}))},t.all=function(e){var n=c(e),r=n.next();return r.done?i([]):new t((function(e,t){function a(t){return function(n){o[t]=n,0==--s&&e(o)}}var o=[],s=0;do{o.push(void 0),s++,i(r.value).Zc(a(o.length-1),t),r=n.next()}while(!r.done)}))},t})),s("WeakMap",(function(e){function t(e){if(this.g=(l+=Math.random()+1).toString(),e){e=c(e);for(var t;!(t=e.next()).done;)t=t.value,this.set(t[0],t[1])}}function n(){}function i(e){var t=typeof e;return"object"===t&&null!==e||"function"===t}function r(e){if(!M(e,s)){var t=new n;a(e,s,{value:t})}}function o(e){var t=Object[e];t&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&r(e),t(e))})}if(function(){if(!e||!Object.seal)return!1;try{var t=Object.seal({}
2),n=Object.seal({}),i=new e([[t,2],[n,3]]);return 2==i.get(t)&&3==i.get(n)&&(i.delete(t),i.set(n,4),!i.has(t)&&4==i.get(n))}catch(e){return!1}}())return e;var s="$jscomp_hidden_"+Math.random();o("freeze"),o("preventExtensions"),o("seal");var l=0;return t.prototype.set=function(e,t){if(!i(e))throw Error("Invalid WeakMap key");if(r(e),!M(e,s))throw Error("WeakMap key fail: "+e);return e[s][this.g]=t,this},t.prototype.get=function(e){return i(e)&&M(e,s)?e[s][this.g]:void 0},t.prototype.has=function(e){return i(e)&&M(e,s)&&M(e[s],this.g)},t.prototype.delete=function(e){return!!(i(e)&&M(e,s)&&M(e[s],this.g))&&delete e[s][this.g]},t})),s("Map",(function(e){function t(){var e={};return e.sb=e.next=e.head=e}function n(e,t){var n=e.g;return l((function(){if(n){for(;n.head!=e.g;)n=n.sb;for(;n.next!=n.head;)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}}))}function i(e,t){var n=t&&typeof t;"object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t;var i=e.h[n];if(i&&M(e.h,n))for(var r=0;r<i.length;r++){var s=i[r];if(t!=t&&s.key!=s.key||t===s.key)return{id:n,list:i,index:r,ya:s}}return{id:n,list:i,index:-1,ya:void 0}}function r(e){if(this.h={},this.g=t(),this.size=0,e){e=c(e);for(var n;!(n=e.next()).done;)n=n.value,this.set(n[0],n[1])}}if(function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([[t,"s"]]));if("s"!=n.get(t)||1!=n.size||n.get({x:4})||n.set({x:4},"t")!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();return!r.done&&r.value[0]==t&&"s"==r.value[1]&&!((r=i.next()).done||4!=r.value[0].x||"t"!=r.value[1]||!i.next().done)}catch(e){return!1}}())return e;var a=new WeakMap;r.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.h[n.id]=[]),n.ya?n.ya.value=t:(n.ya={next:this.g,sb:this.g.sb,head:this.g,key:e,value:t},n.list.push(n.ya),this.g.sb.next=n.ya,this.g.sb=n.ya,this.size++),this},r.prototype.delete=function(e){return!(!(e=i(this,e)).ya||!e.list)&&(e.list.splice(e.index,1),e.list.length||delete this.h[e.id],e.ya.sb.next=e.ya.next,e.ya.next.sb=e.ya.sb,e.ya.head=null,this.size--,!0)},r.prototype.clear=function(){this.h={},this.g=this.g.sb=t(),this.size=0},r.prototype.has=function(e){return!!i(this,e).ya},r.prototype.get=function(e){return(e=i(this,e).ya)&&e.value},r.prototype.entries=function(){return n(this,(function(e){return[e.key,e.value]}))},r.prototype.keys=function(){return n(this,(function(e){return e.key}))},r.prototype.values=function(){return n(this,(function(e){return e.value}))},r.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)n=n.value,e.call(t,n[1],n[0],this)},r.prototype[Symbol.iterator]=r.prototype.entries;var o=0;return r})),s("Array.prototype.keys",(function(e){return e||function(){return O(this,(function(e){return e}))}})),s("Set",(function(e){function t(e){if(this.g=new Map,e){e=c(e);for(var t;!(t=e.next()).done;)this.add(t.value)}this.size=this.g.size}return function(){if(!e||"function"!=typeof e||!e.prototype.entries||"function"!=typeof Object.seal)return!1;try{var t=Object.seal({x:4}),n=new e(c([t]));if(!n.has(t)||1!=n.size||n.add(t)!=n||1!=n.size||n.add({x:4})!=n||2!=n.size)return!1;var i=n.entries(),r=i.next();return!r.done&&r.value[0]==t&&r.value[1]==t&&(!(r=i.next()).done&&r.value[0]!=t&&4==r.value[0].x&&r.value[1]==r.value[0]&&i.next().done)}catch(e){return!1}}()?e:(t.prototype.add=function(e){return e=0===e?0:e,this.g.set(e,e),this.size=this.g.size,this},t.prototype.delete=function(e){return e=this.g.delete(e),this.size=this.g.size,e},t.prototype.clear=function(){this.g.clear(),this.size=0},t.prototype.has=function(e){return this.g.has(e)},t.prototype.entries=function(){return this.g.entries()},t.prototype.values=function(){return this.g.values()},t.prototype.keys=t.prototype.values,t.prototype[Symbol.iterator]=t.prototype.values,t.prototype.forEach=function(e,t){var n=this;this.g.forEach((function(i){return e.call(t,i,i,n)}))},t)})),s("Array.from",(function(e){return e||function(e,t,n){t=null!=t?t:function(e){return e};var i=[],r="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if("function"==typeof r){e=r.call(e);for(var a=0;!(r=e.next()).done;)i.push(t.call(n,r.value,a++))}else for(r=e.length,a=0;a<r;a++)i.push(t.call(n,e[a],a));return i}})),s("Array.prototype.findIndex",(function(e){return e||function(e,t){return R(this,e,t).ra}})),s("Object.is",(function(e){return e||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}})),s("Array.prototype.includes",(function(e){return e||function(e,t){var n=this;n instanceof String&&(n=String(n));var i=n.length,r=t||0;for(0>r&&(r=Math.max(r+i,0));r<i;r++){var a=n[r];if(a===e||Object.is(a,e))return!0}return!1}}
2)),s("String.prototype.includes",(function(e){return e||function(e,t){return-1!==z(this,e,"includes").indexOf(e,t||0)}})),s("Array.prototype.find",(function(e){return e||function(e,t){return R(this,e,t).v}})),s("String.prototype.startsWith",(function(e){return e||function(e,t){for(var n=z(this,e,"startsWith"),i=n.length,r=e.length,a=Math.max(0,Math.min(0|t,n.length)),o=0;o<r&&a<i;)if(n[a++]!=e[o++])return!1;return o>=r}}));var B="function"==typeof Object.assign?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)M(i,r)&&(e[r]=i[r])}return e};s("Object.assign",(function(e){return e||B})),s("Array.prototype.values",(function(e){return e||function(){return O(this,(function(e,t){return t}))}})),s("Promise.prototype.finally",(function(e){return e||function(e){return this.then((function(t){return Promise.resolve(e()).then((function(){return t}))}),(function(t){return Promise.resolve(e()).then((function(){throw t}))}))}})),s("Array.prototype.entries",(function(e){return e||function(){return O(this,(function(e,t){return[e,t]}))}})),s("String.prototype.repeat",(function(e){return e||function(e){var t=z(this,null,"repeat");if(0>e||1342177279<e)throw new RangeError("Invalid count value");e|=0;for(var n="";e;)1&e&&(n+=t),(e>>>=1)&&(t+=t);return n}})),s("Number.isNaN",(function(e){return e||function(e){return"number"==typeof e&&isNaN(e)}})),s("Object.values",(function(e){return e||function(e){var t,n=[];for(t in e)M(e,t)&&n.push(e[t]);return n}})),s("Math.log2",(function(e){return e||function(e){return Math.log(e)/Math.LN2}})),s("Object.entries",(function(e){return e||function(e){var t,n=[];for(t in e)M(e,t)&&n.push([t,e[t]]);return n}}));var U=this||self;function F(e,t){var n,i=e.split("."),r=U;i[0]in r||void 0===r.execScript||r.execScript("var "+i[0]);for(;i.length&&(n=i.shift());)i.length||void 0===t?r=r[n]&&r[n]!==Object.prototype[n]?r[n]:r[n]={}:r[n]=t}function V(t,n){if(n)if(n instanceof Map)for(var i=c(n.keys()),r=i.next();!r.done;r=i.next())r=r.value,Object.defineProperty(this,r,{value:n.get(r),writable:!0,enumerable:!0});else for(i in n)Object.defineProperty(this,i,{value:n[i],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=e.performance&&e.performance.now?e.performance.now():Date.now(),this.type=t,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function q(e){var t,n=new V(e.type);for(t in e)Object.defineProperty(n,t,{value:e[t],writable:!0,enumerable:!0});return n}function H(){}function G(){}function K(){}function $(e){var t=D.apply(1,arguments);X.has(e)||(X.add(e),K.apply(H,d(t)))}function W(){}V.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},V.prototype.stopImmediatePropagation=function(){this.g=!0},V.prototype.stopPropagation=function(){},F("shaka.util.FakeEvent",V);var X=new Set;if(e.console&&e.console.log.bind){var Y={},J=(Y[1]=console.error.bind(console),Y[2]=console.warn.bind(console),Y[3]=console.info.bind(console),Y[4]=console.log.bind(console),Y[5]=console.debug.bind(console),Y[6]=console.debug.bind(console),Y);K=J[2],G=J[1]}function Z(){this.g={}}function Q(e,t){for(var n in e.g)t(n,e.g[n])}function ee(){this.xa=new Z,this.jd=this}function te(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next())n.push(t(r.value));return n}function ne(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next())t(r=r.value)&&n.push(r);return n}(i=Z.prototype).push=function(e,t){this.g.hasOwnProperty(e)?this.g[e].push(t):this.g[e]=[t]},i.get=function(e){return(e=this.g[e])?e.slice():null},i.remove=function(e,t){e in this.g&&(this.g[e]=this.g[e].filter((function(e){return e!=t})),0==this.g[e].length&&delete this.g[e])},i.size=function(){return Object.keys(this.g).length},i.keys=function(){return Object.keys(this.g)},ee.prototype.addEventListener=function(e,t){this.xa&&this.xa.push(e,t)},ee.prototype.removeEventListener=function(e,t){this.xa&&this.xa.remove(e,t)},ee.prototype.dispatchEvent=function(e){if(!this.xa)return!0;var t=this.xa.get(e.type)||[],n=this.xa.get("All");for(n&&(t=t.concat(n)),n=(t=c(t)).next();!n.done;n=t.next()){n=n.value,e.target=this.jd,e.currentTarget=this.jd;try{n.handleEvent?n.handleEvent(e):n.call(this,e)}catch(e){}if(e.g)break}return e.defaultPrevented},ee.prototype.release=function(){this.xa=null};var ie=function e(t){var n;return L(e,(function(e){return 1==e.g&&(n=0),3!=e.g?n<t?x(e,n,3):e.D(0):(n++,e.D(2))}))},re=function e(t){var n,i,r,a,o,s;return L(e,(function(e){return 1==e.g&&(n=-1,r=i=void 0,a=c(t),o=a.next()),5!=e.g?o.done?-1==n?e.D(0):x(e,{ra:n,Qg:i,item:r,next:void 0},0):(s=o.value,0<=n?x(e,{ra:n,item:r,Qg:i,next:s},5):e.D(5)):(n++,i=r,r=s,o=a.next(),e.D(2))}))},ae=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function oe(e){var t;e instanceof oe?(se(this,e.Xa),this.Ub=e.Ub,this.$a=e.$a,le(this,e.mc),this.Ka=e.Ka,ce(this,e.g.clone()),this.Jb=e.Jb):e&&(t=String(e).match(ae))?(se(this,t[1]||"",!0),this.Ub=de(t[2]||""),this.$a=de(t[3]||"",!0),le(this,t[4]),this.Ka=de(t[5]||"",!0),ce(this,t[6]||"",!0),this.Jb=de(t[7]||"")):this.g=new be(null)}function se(e,t,n){e.Xa=n?de(t,!0):t,e.Xa&&(e.Xa=e.Xa.replace(/:$/,""))}function le(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.mc=t}else e.mc=null}function ce(e,t,n){t instanceof be?e.g=t:(n||(t=ue(t,fe)),e.g=new be(t))}function de(e,t){return e?t?decodeURI(e):decodeURIComponent(e):""}function ue(e,t,n){return null!=e?(e=encodeURI(e).replace(t,pe),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function pe(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}(i=oe.prototype).Xa="",i.Ub="",i.$a="",i.mc=null,i.Ka="",i.Jb="",i.toString=function(){var e=[],t=this.Xa;if(t&&e.push(ue(t,he,!0),":"),t=this.$a){e.push("//");var n=this.Ub;n&&e.push(ue(n,he,!0),"@"),e.push(encodeURIComponent(t).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(t=this.mc)&&e.push(":",String(t))}return(t=this.Ka)&&(this.$a&&"/"!=t.charAt(0)&&e.push("/"),e.push(ue(t,"/"==t.charAt(0)?ge:me,!0))),(t=this.g.toString())&&e.push("?",t),(t=this.Jb)&&e.push("#",ue(t,ve)),e.join("")},i.resolve=function(e){var t=this.clone();"data"===t.Xa&&(t=new oe);var n=!!e.Xa;n?se(t,e.Xa):n=!!e.Ub,n?t.Ub=e.Ub:n=!!e.$a,n?t.$a=e.$a:n=null!=e.mc;var i=e.Ka;if(n)le(t,e.mc);else if(n=!!e.Ka){if("/"!=i.charAt(0))if(this.$a&&!this.Ka)i="/"+i;else{var r=t.Ka.lastIndexOf("/");-1!=r&&(i=t.Ka.substr(0,r+1)+i)}if(".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var a=[],o=0;o<i.length;){var s=i[o++];"."==s?r&&o==i.length&&a.push(""):".."==s?((1<a.length||1==a.length&&""!=a[0])&&a.pop(),r&&o==i.length&&a.push("")):(a.push(s),r=!0)}i=a.join("/")}}return n?t.Ka=i:n=""!==e.g.toString(),n?ce(t,e.g.clone()):n=!!e.Jb,n&&(t.Jb=e.Jb),t},i.clone=function(){return new oe(this)};var he=/[#\/\?@]/g,me=/[#\?:]/g,ge=/[#\?]/g,fe=/[#\?@]/g,ve=/#/g;function be(e){this.g=e||null}
2function ye(e){if(!e.Ea&&(e.Ea={},e.bd=0,e.g))for(var t=e.g.split("&"),n=0;n<t.length;n++){var i=t[n].indexOf("="),r=null;if(0<=i){var a=t[n].substring(0,i);r=t[n].substring(i+1)}else a=t[n];a=decodeURIComponent(a.replace(/\+/g," ")),r=r||"",e.add(a,decodeURIComponent(r.replace(/\+/g," ")))}}function xe(e,t,n){var i=D.apply(3,arguments);this.severity=e,this.category=t,this.code=n,this.data=i,this.handled=!1}function we(e,t){this.g=e,this.h=t}function ke(e,t){var n=new we(4,0),i=Se,r=i.g,a=n.h-r.h;(0<(n.g-r.g||a)?i.i:i.h)(i.g,n,e,t)}function Ae(e,t,n,i){K([n,"has been deprecated and will be removed in",t,". We are currently at version",e,". Additional information:",i].join(" "))}function Te(e,t,n,i){G([n,"has been deprecated and has been removed in",t,". We are now at version",e,". Additional information:",i].join(""))}(i=be.prototype).Ea=null,i.bd=null,i.add=function(e,t){ye(this),this.g=null;var n=this.Ea.hasOwnProperty(e)&&this.Ea[e];return n||(this.Ea[e]=n=[]),n.push(t),this.bd++,this},i.set=function(e,t){return ye(this),this.g=null,this.Ea.hasOwnProperty(e)?this.Ea[e]=[t]:this.add(e,t),this},i.toString=function(){if(this.g)return this.g;if(!this.Ea)return"";var e,t=[];for(e in this.Ea)for(var n=encodeURIComponent(e),i=this.Ea[e],r=0;r<i.length;r++){var a=n;""!==i[r]&&(a+="="+encodeURIComponent(i[r])),t.push(a)}return this.g=t.join("&")},i.clone=function(){var e=new be;if(e.g=this.g,this.Ea){var t,n={};for(t in this.Ea)n[t]=this.Ea[t].concat();e.Ea=n,e.bd=this.bd}return e},xe.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null,"  ")},F("shaka.util.Error",xe),xe.Severity={RECOVERABLE:1,CRITICAL:2},xe.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9,ADS:10},xe.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,MALFORMED_TEST_URI:1008,UNEXPECTED_TEST_REQUEST:1009,ATTEMPTS_EXHAUSTED:1010,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,UNABLE_TO_EXTRACT_CUE_START_TIME:2009,INVALID_MP4_CEA:2010,TEXT_COULD_NOT_GUESS_MIME_TYPE:2011,CANNOT_ADD_EXTERNAL_TEXT_TO_SRC_EQUALS:2012,TEXT_ONLY_WEBVTT_SRC_EQUALS:2013,MISSING_TEXT_PLUGIN:2014,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,TRANSMUXING_FAILED:3018,CONTENT_TRANSFORMATION_FAILED:3019,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,RESTRICTIONS_CANNOT_BE_MET:4012,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,CONTENT_UNSUPPORTED_BY_BROWSER:4032,CANNOT_ADD_EXTERNAL_TEXT_TO_LIVE_STREAM:4033,HLS_AES_128_ENCRYPTION_NOT_SUPPORTED:4034,HLS_INTERNAL_SKIP_STREAM:4035,NO_VARIANTS:4036,PERIOD_FLATTENING_FAILED:4037,INCONSISTENT_DRM_ACROSS_PERIODS:4038,HLS_VARIABLE_NOT_FOUND:4039,HLS_MSE_ENCRYPTED_MP2T_NOT_SUPPORTED:4040,HLS_MSE_ENCRYPTED_LEGACY_APPLE_MEDIA_KEYS_NOT_SUPPORTED:4041,STREAMING_ENGINE_STARTUP_INVALID_STATE:5006,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_
2KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,SERVER_CERTIFICATE_REQUIRED:6015,INIT_DATA_TRANSFORM_ERROR:6016,SERVER_CERTIFICATE_REQUEST_FAILED:6017,LOAD_INTERRUPTED:7e3,OPERATION_ABORTED:7001,NO_VIDEO_ELEMENT:7002,OBJECT_DESTROYED:7003,CONTENT_NOT_LOADED:7004,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,DEPRECATED_OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,NEW_KEY_OPERATION_NOT_SUPPORTED:9011,KEY_NOT_FOUND:9012,MISSING_STORAGE_CELL:9013,STORAGE_LIMIT_REACHED:9014,DOWNLOAD_SIZE_CALLBACK_ERROR:9015,MODIFY_OPERATION_NOT_SUPPORTED:9016,CS_IMA_SDK_MISSING:1e4,CS_AD_MANAGER_NOT_INITIALIZED:10001,SS_IMA_SDK_MISSING:10002,SS_AD_MANAGER_NOT_INITIALIZED:10003,CURRENT_DAI_REQUEST_NOT_FINISHED:10004},we.prototype.toString=function(){return"v"+this.g+"."+this.h};var Se=null;function Ee(e,t){return e.concat(t)}function Ie(){}function Ce(e){return null!=e}function _e(e){var t=Object.create(e.prototype||Object.prototype);try{var n=e.call(t);n||(ke("Factories requiring new","Factories should be plain functions"),n=t)}catch(t){ke("Factories requiring new","Factories should be plain functions"),n=new e}return n}function je(e,t){if(0==t.length)return e;var n=t.map((function(e){return new oe(e)}));return e.map((function(e){return new oe(e)})).map((function(e){return n.map((function(t){return e.resolve(t)}))})).reduce(Ee,[]).map((function(e){return e.toString()}))}function Ne(e,t){return{keySystem:e,licenseServerUri:"",distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:t||[],keyIds:new Set}}function Le(e,t){if(1==t.length)return t[0];var n=Pe(e,t);if(null!=n)return n;throw new xe(2,4,4025,t)}function Pe(e,t){for(var n=c(Oe[e]),i=n.next();!i.done;i=n.next()){i=i.value;for(var r=c(t),a=r.next();!a.done;a=r.next())if(a=a.value,i.test(a.trim()))return a.trim()}return e==De?"":null}var De="text",Me={ib:"video",Gb:"audio",ma:De,xc:"image",qh:"application"},Oe={audio:[/^vorbis$/,/^opus$/,/^flac$/,/^mp4a/,/^[ae]c-3$/],video:[/^avc/,/^hev/,/^hvc/,/^vp0?[89]/,/^av1$/],text:[/^vtt$/,/^wvtt/,/^stpp/]};function Re(){}function ze(e,t){return e=Fe(e),t=Fe(t),e.split("-")[0]==t.split("-")[0]}function Be(e,t){e=Fe(e),t=Fe(t);var n=e.split("-"),i=t.split("-");return n[0]==i[0]&&1==n.length&&2==i.length}function Ue(e,t){e=Fe(e),t=Fe(t);var n=e.split("-"),i=t.split("-");return 2==n.length&&2==i.length&&n[0]==i[0]}function Fe(e){var t=e.split("-");return e=t[0]||"",t=t[1]||"",e=e.toLowerCase(),e=$e.get(e)||e,(t=t.toUpperCase())?e+"-"+t:e}function Ve(e,t){var n=He(e),i=He(t);return e!=n&&t!=i&&n==i}function qe(e,t){return e=Fe(e),(t=Fe(t))==e?4:Be(t,e)?3:Ue(t,e)?2:Be(e,t)?1:0}function He(e){var t=e.indexOf("-");return e=(e=0<=t?e.substring(0,t):e).toLowerCase(),$e.get(e)||e}function Ge(e){return e.language?Fe(e.language):e.audio&&e.audio.language?Fe(e.audio.language):e.video&&e.video.language?Fe(e.video.language):"und"}function Ke(e,t){for(var n=Fe(e),i=new Set,r=c(t),a=r.next();!a.done;a=r.next())i.add(Fe(a.value));for(a=(r=c(i)).next();!a.done;a=r.next())if((a=a.value)==n)return a;for(a=(r=c(i)).next();!a.done;a=r.next())if(Be(a=a.value,n))return a;for(a=(r=c(i)).next();!a.done;a=r.next())if(Ue(a=a.value,n))return a;for(a=(i=c(i)).next();!a.done;a=i.next())if(Be(n,a=a.value))return a;return null}F("shaka.util.LanguageUtils",Re),Re.findClosestLocale=Ke,Re.getLocaleForVariant=Ge,Re.getLocaleForText=function(e){return Fe(e.language||"und")},Re.getBase=He,Re.relatedness=qe,Re.areSiblings=Ve,Re.normalize=Fe,Re.isSiblingOf=Ue,Re.isParentOf=Be,Re.areLanguageCompatible=ze,Re.areLocaleCompatible=function(e,t){return(e=Fe(e))==(t=Fe(t))};var $e=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["
2ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function We(e){ee.call(this),this.j=Fe(e),this.i=new Map,this.g=new Set,this.h=new Map}function Xe(e){for(var t=e.h,n=e.j,i=e.g,r=new Set,a={},o=c(i),s=o.next();!s.done;a={Zb:a.Zb},s=o.next()){a.Zb=s.value,r.add(a.Zb),r.add(He(a.Zb)),(s=ne(t.keys(),function(e){return function(t){return Ve(t,e.Zb)}}(a))).sort();var l=c(s);for(s=l.next();!s.done;s=l.next())r.add(s.value);for((s=ne(t.keys(),function(e){return function(t){return He(t)==e.Zb}}(a))).sort(),s=(l=c(s)).next();!s.done;s=l.next())r.add(s.value)}for(r.add(n),n=[],s=(r=c(r)).next();!s.done;s=r.next())(s=t.get(s.value))&&n.push(s);for(n.reverse(),e.i.clear(),s=(t=c(n)).next();!s.done;s=t.next())s.value.forEach((function(t,n){e.i.set(n,t)}));for(t=e.i.keys(),r=new Set,s=(n=c(e.g)).next();!s.done;s=n.next())Ye(s=e.h.get(s.value)||new Map,t,r);0<r.size&&(i=(new Map).set("locales",Array.from(i)).set("missing",Array.from(r)),e.dispatchEvent(new V("missing-localizations",i)))}function Ye(e,t,n){for(var i=(t=c(t)).next();!i.done;i=t.next())i=i.value,e.get(i)||n.add(i)}f(We,ee),(i=We.prototype).release=function(){ee.prototype.release.call(this)},i.Re=function(e){var t=this;this.g.clear();for(var n=(e=c(e)).next();!n.done;n=e.next())this.g.add(Fe(n.value));Xe(this),(e=ne(this.g,(function(e){return!t.h.has(e)}))).length&&this.dispatchEvent(new V("unknown-locales",(new Map).set("locales",e))),e=ne(this.g,(function(e){return t.h.has(e)})),e=(new Map).set("locales",e.length?e:[this.j]),this.dispatchEvent(new V("locale-changed",e))},i.ia=function(e,t,n){e=Fe(e),void 0===n&&(n=Je);var i=this.h.get(e)||new Map;return t.forEach((function(e,t){i.has(t)&&n!=Je||i.set(t,e)})),this.h.set(e,i),Xe(this),this.dispatchEvent(new V("locale-updated")),this},i.Zg=function(e){for(var t=c(e.keys()),n=t.next();!n.done;n=t.next())n=n.value,e.set(n,this.resolve(n))},i.resolve=function(e){var t=this.i.get(e);return t||(e=(new Map).set("locales",Array.from(this.g)).set("missing",e),this.dispatchEvent(new V("unknown-localization",e)),"")},F("shaka.ui.Localization",We),We.prototype.resolve=We.prototype.resolve,We.prototype.resolveDictionary=We.prototype.Zg,We.prototype.insert=We.prototype.ia,We.prototype.changeLocale=We.prototype.Re,We.prototype.release=We.prototype.release;var Je=1;We.ConflictResolution={USE_OLD:0,USE_NEW:Je},We.UNKNOWN_LOCALES="unknown-locales",We.UNKNOWN_LOCALIZATION="unknown-localization",We.MISSING_LOCALIZATIONS="missing-localizations",We.LOCALE_CHANGED="locale-changed",We.LOCALE_UPDATED="locale-updated";var Ze={AD_PROGRESS:"AD_PROGRESS",Eh:"ENTER_PICTURE_IN_PICTURE",Uh:"MULTIPLE_LANGUAGES",BACK:"BACK",Ii:"VOLUME",di:"PAUSE",Gh:"EXIT_FULL_SCREEN",Yh:"NOT_APPLICABLE",ni:"SEEK",nh:"AD_DURATION",Oh:"LANGUAGE",pi:"SKIP_TO_LIVE",Mh:"FULL_SCREEN",xh:"CAST",Me:"LIVE",Gi:"UNRECOGNIZED_LANGUAGE",Gf:"SUBTITLE_FORCED",ki:"RESOLUTION",ei:"PICTURE_IN_PICTURE",gi:"PLAY",Hh:"EXIT_LOOP_MODE",Zh:"OFF",Vh:"MUTE",ph:"AIRPLAY",Ei:"UNDETERMINED_LANGUAGE",wh:"CAPTIONS",oh:"AD_TIME",rh:"AUTO_QUALITY",$h:"ON",si:"STATISTICS",ii:"PLAYBACK_RATE",Th:"MORE_SETTINGS",Ih:"EXIT_PICTURE_IN_PICTURE",Dh:"ENTER_LOOP_MODE",Fi:"UNMUTE",ji:"REPLAY",Lh:"FAST_FORWARD",li:"REWIND",oi:"SKIP_AD",Ph:"LOOP"};function Qe(e){this.g=Math.exp(Math.log(.5)/e),this.i=this.h=0}function et(e){return e.h/(1-Math.pow(e.g,e.i))}function tt(){this.h=new Qe(2),this.j=new Qe(5),this.g=0,this.i=128e3,this.l=16e3}function nt(e,t){return!("number"!=typeof e||"number"!=typeof t||!isNaN(e)||!isNaN(t))||e===t}function it(e,t){var n=e.indexOf(t);-1<n&&e.splice(n,1)}function rt(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;t=t.slice();for(var i={},r=(e=c(e)).next();!r.done;i={Dd:i.Dd},r=e.next()){if(i.Dd=r.value,-1==(r=t.findIndex(function(e){return function(t){return n(e.Dd,t)}}(i))))return!1;t[r]=t[t.length-1],t.pop()}return 0==t.length}function at(e,t,n){if(n||(n=nt),e.length!=t.length)return!1;for(var i=0;i<e.length;i++)if(!n(e[i],t[i]))return!1;return!0}function ot(e,t,n){this.startTime=e,this.direction=ht,this.endTime=t,this.payload=n,this.region=new At,this.position=null,this.positionAlign=lt,this.size=0,this.textAlign=ct,this.writingMode=mt,this.lineInterpretation=gt,this.line=null,this.lineHeight="",this.lineAlign=ft,this.displayAlign=ut,this.fontSize=this.textStrokeWidth=this.textStrokeColor=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=xt,this.fontStyle=wt,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textDecoration=[],this.wrapLine=!0,this.id="",this.nestedCues=[],this.spacer=this.lineBreak=this.isContainer=!1,this.cellResolution={columns:32,rows:15}}function st(e,t){if(e.startTime!=t.startTime||e.endTime!=t.endTime||e.payload!=t.payload)return!1;for(var n in e)if("startTime"!=n&&"endTime"!=n&&"payload"!=n)if("nestedCues"==n){if(!at(e.nestedCues,t.nestedCues,st))return!1}else if("region"==n||"cellResolution"==n){for(var i in e[n])if(e[
2n][i]!=t[n][i])return!1}else if(Array.isArray(e[n])){if(!at(e[n],t[n]))return!1}else if(e[n]!=t[n])return!1;return!0}Qe.prototype.sample=function(e,t){var n=Math.pow(this.g,e);n=t*(1-n)+n*this.h,isNaN(n)||(this.h=n,this.i+=e)},tt.prototype.configure=function(e){this.i=e.minTotalBytes,this.l=e.minBytes,this.h.g=Math.exp(Math.log(.5)/e.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/e.slowHalfLife)},tt.prototype.sample=function(e,t){if(!(t<this.l)){var n=8e3*t/e,i=e/1e3;this.g+=t,this.h.sample(i,n),this.j.sample(i,n)}},tt.prototype.getBandwidthEstimate=function(e){return this.g<this.i?e:Math.min(et(this.h),et(this.j))},ot.prototype.clone=function(){var e,t=new ot(0,0,"");for(e in this)t[e]=this[e],t[e]&&t[e].constructor==Array&&(t[e]=t[e].slice());return t},F("shaka.text.Cue",ot);var lt="auto";ot.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:lt};var ct="center",dt={LEFT:"left",RIGHT:"right",CENTER:ct,START:"start",END:"end"};ot.textAlign=dt;var ut="after",pt={BEFORE:"before",CENTER:"center",AFTER:ut};ot.displayAlign=pt;var ht="ltr";ot.direction={HORIZONTAL_LEFT_TO_RIGHT:ht,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var mt="horizontal-tb";ot.writingMode={HORIZONTAL_TOP_TO_BOTTOM:mt,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var gt=0;ot.lineInterpretation={LINE_NUMBER:gt,PERCENTAGE:1};var ft="start",vt={CENTER:"center",START:ft,END:"end"};ot.lineAlign=vt;var bt={white:"#FFF",lime:"#0F0",cyan:"#0FF",red:"#F00",yellow:"#FF0",magenta:"#F0F",blue:"#00F",black:"#000"};ot.defaultTextColor=bt;var yt={bg_white:"#FFF",bg_lime:"#0F0",bg_cyan:"#0FF",bg_red:"#F00",bg_yellow:"#FF0",bg_magenta:"#F0F",bg_blue:"#00F",bg_black:"#000"};ot.defaultTextBackgroundColor=yt;var xt=400;ot.fontWeight={NORMAL:xt,BOLD:700};var wt="normal",kt={NORMAL:wt,ITALIC:"italic",OBLIQUE:"oblique"};function At(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Tt,this.scroll=St}ot.fontStyle=kt,ot.textDecoration={UNDERLINE:"underline",LINE_THROUGH:"lineThrough",OVERLINE:"overline"},F("shaka.text.CueRegion",At);var Tt=1;At.units={PX:0,PERCENTAGE:Tt,LINES:2};var St="";function Et(){}function It(e,t){if(!e&&!t)return!0;if(!e||!t||e.byteLength!=t.byteLength)return!1;if(Ct(e)==Ct(t)&&(e.byteOffset||0)==(t.byteOffset||0))return!0;for(var n=jt(e),i=jt(t),r=c(ie(e.byteLength)),a=r.next();!a.done;a=r.next())if(n[a=a.value]!=i[a])return!1;return!0}function Ct(e){return e instanceof ArrayBuffer?e:e.buffer}function _t(e){return e instanceof ArrayBuffer?e:0==e.byteOffset&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function jt(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,Uint8Array)}function Nt(e,t,n){return Lt(e,void 0===t?0:t,n=void 0===n?1/0:n,DataView)}function Lt(e,t,n,i){var r=(e.byteOffset||0)+e.byteLength;return t=Math.max(0,Math.min((e.byteOffset||0)+t,r)),new i(Ct(e),t,Math.min(t+Math.max(n,0),r)-t)}function Pt(){}At.scrollMode={NONE:St,UP:"up"},F("shaka.util.BufferUtils",Et),Et.toDataView=Nt,Et.toUint8=jt,Et.toArrayBuffer=_t,Et.equal=It,F("shaka.dependencies",Pt),Pt.has=function(e){return Mt.has(e)},Pt.add=function(e,t){if(!Dt[e])throw Error(e+" is not supported");Mt.set(e,(function(){return t}))};var Dt={muxjs:"muxjs"};Pt.Allowed=Dt;var Mt=new Map([["muxjs",function(){return e.muxjs}]]);function Ot(){var e,t,n=new Promise((function(n,i){e=n,t=i}));return n.resolve=e,n.reject=t,n}function Rt(e){this.h=e,this.g=void 0}function zt(){}function Bt(e){return e?(239==(e=jt(e))[0]&&187==e[1]&&191==e[2]&&(e=e.subarray(3)),(e=(new TextDecoder).decode(e)).includes("�")&&G('Decoded string contains an "unknown character" codepoint.  That probably means the UTF8 encoding was incorrect!'),e):""}function Ut(e,t,n){if(!e)return"";if(!n&&0!=e.byteLength%2)throw new xe(2,2,2004);var i=Math.floor(e.byteLength/2);n=new Uint16Array(i),e=Nt(e);for(var r=(i=c(ie(i))).next();!r.done;r=i.next())n[r=r.value]=e.getUint16(2*r,t);return Ht.value()(n)}function Ft(e){function t(e){return n.byteLength<=e||32<=n[e]&&126>=n[e]}if(!e)return"";var n=jt(e);if(239==n[0]&&187==n[1]&&191==n[2])return Bt(n);if(254==n[0]&&255==n[1])return Ut(n.subarray(2),!1);if(255==n[0]&&254==n[1])return Ut(n.subarray(2),!0);if(0==n[0]&&0==n[2])return Ut(e,!1);if(0==n[1]&&0==n[3])return Ut(e,!0);if(t(0)&&t(1)&&t(2)&&t(3))return Bt(e);throw new xe(2,2,2003)}function Vt(e){return _t((new TextEncoder).encode(e))}function qt(e,t){for(var n=new ArrayBuffer(2*e.length),i=new DataView(n),r=c(re(e)),a=r.next();!a.done;a=r.next())a=a.value,i.setUint16(2*a.ra,a.item.charCodeAt(0),t);return n}Ot.prototype.resolve=function(){},Ot.prototype.reject=function(){},Rt.prototype.value=function(){return null==this.g&&(this.g=this.h()),this.g},F("shaka.util.StringUtils",zt),zt.resetFromCharCode=function(){Ht.g=void 0},zt.toUTF16=qt,zt.toUTF8=Vt,zt.fromBytesAutoDetect=Ft,zt.fromUTF16=Ut,zt.fromUTF8=Bt;var Ht=new Rt((function(){function e(e){try{var t=new Uint8Array(e);return 0<String.fromCharCode.apply(null,t).length}catch(e){return!1}}for(var t={xb:65536};0<t.xb;(t={xb:t.xb}).xb/=2)if(e(t.xb))return function(e){return function(t){for(var n="",i=0;i<t.length;i+=e.xb)n+=String.fromCharCode.apply(null,t.subarray(i,i+e.xb));return n}}(t);return null}));function Gt(){}function Kt(e){return e=jt(e),e=Ht.value()(e),btoa(e)}function $t(e,t){t=null==t||t;var n=Kt(e).replace(/\+/g,"-").replace(/\//g,"_");return t?n:n.replace(/[=]*$/,"")}function Wt(t){var n=e.atob(t.replace(/-/g,"+").replace(/_/g,"/"));
2t=new Uint8Array(n.length);for(var i=(n=c(re(n))).next();!i.done;i=n.next())t[(i=i.value).ra]=i.item.charCodeAt(0);return t}function Xt(t){for(var n=t.length/2,i=new Uint8Array(n),r=(n=c(ie(n))).next();!r.done;r=n.next())i[r=r.value]=e.parseInt(t.substr(2*r,2),16);return i}function Yt(e){var t=jt(e);e="";for(var n=(t=c(t)).next();!n.done;n=t.next())1==(n=(n=n.value).toString(16)).length&&(n="0"+n),e+=n;return e}function Jt(){for(var e=D.apply(0,arguments),t=0,n=c(e),i=n.next();!i.done;i=n.next())t+=i.value.byteLength;for(t=new Uint8Array(t),n=0,i=(e=c(e)).next();!i.done;i=e.next())i=i.value,t.set(jt(i),n),n+=i.byteLength;return t}function Zt(){var e=this;this.A=Mt.get("muxjs")(),this.g=new this.A.mp4.Transmuxer({keepOriginalTimestamps:!0}),this.h=null,this.m=[],this.j=[],this.i=[],this.l=!1,this.g.on("data",(function(t){e.j=t.captions,e.i=t.metadata,e.m.push(Jt(t.initSegment,t.data))})),this.g.on("done",(function(){var t={data:Jt.apply(Gt,d(e.m)),captions:e.j,metadata:e.i};e.h.resolve(t),e.l=!1}))}function Qt(e,t){if(!Mt.get("muxjs")()||!en(e))return!1;if(t)return MediaSource.isTypeSupported(tn(t,e));var n=tn("audio",e),i=tn("video",e);return MediaSource.isTypeSupported(n)||MediaSource.isTypeSupported(i)}function en(e){return"mp2t"==e.toLowerCase().split(";")[0].split("/")[1]}function tn(e,t){var n=t.replace(/mp2t/i,"mp4");"audio"==e&&(n=n.replace("video","audio"));var i=/avc1\.(66|77|100)\.(\d+)/.exec(n);if(i){var r="avc1.",a=i[1],o=Number(i[2]);r=("66"==a?r+"4200":"77"==a?r+"4d00":r+"6400")+(o>>4).toString(16),r+=(15&o).toString(16),n=n.replace(i[0],r)}return n}function nn(e,t){var n=e;return t&&(n+='; codecs="'+t+'"'),n}function rn(e,t,n){return e=nn(e,t),Mt.get("muxjs")()&&en(e)?tn(n,e):e}function an(e){var t=(e=e.split("."))[0];return e.pop(),t}function on(e){return(e=e.split(/ *; */)).shift(),(e=e.find((function(e){return e.startsWith("codecs=")})))?e.split("=")[1].replace(/^"|"$/g,""):""}function sn(e){this.j=null,this.i=e,this.l=this.C=0,this.m=1/0,this.h=this.g=null,this.B="",this.A=new Map}function ln(e){return!(!pn[e]&&"application/cea-608"!=e&&"application/cea-708"!=e)}function cn(e,t,n){if(e.B=t,t=e.A.get(t))for(var i=c(t.keys()),r=i.next();!r.done;r=i.next())(r=t.get(r.value).filter((function(e){return e.endTime<=n})))&&e.i.append(r)}function dn(e,t,n){t.startTime+=n,t.endTime+=n;for(var i=(t=c(t.nestedCues)).next();!i.done;i=t.next())dn(e,i.value,n)}function un(e,t,n,i,r){for(var a=n+" "+i,o=new Map,s=(t=c(t)).next();!s.done;s=t.next()){var l=s.value;s=l.stream,l=l.cue,o.has(s)||o.set(s,new Map),o.get(s).has(a)||o.get(s).set(a,[]),dn(e,l,r),l.startTime>=e.l&&l.startTime<e.m&&(o.get(s).get(a).push(l),s==e.B&&e.i.append([l]))}for(a=(r=c(o.keys())).next();!a.done;a=r.next())for(a=a.value,e.A.has(a)||e.A.set(a,new Map),s=(t=c(o.get(a).keys())).next();!s.done;s=t.next())s=s.value,l=o.get(a).get(s),e.A.get(a).set(s,l);e.g=null==e.g?Math.max(n,e.l):Math.min(e.g,Math.max(n,e.l)),e.h=Math.max(e.h,Math.min(i,e.m))}F("shaka.util.Uint8ArrayUtils",Gt),Gt.concat=Jt,Gt.toHex=Yt,Gt.fromHex=Xt,Gt.fromBase64=Wt,Gt.toBase64=$t,Gt.toStandardBase64=Kt,Gt.equal=function(e,t){return ke("shaka.util.Uint8ArrayUtils.equal","Please use shaka.util.BufferUtils.equal instead."),It(e,t)},Zt.prototype.destroy=function(){return this.g.dispose(),this.g=null,Promise.resolve()},(new Map).set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels"),sn.prototype.destroy=function(){return this.i=this.j=null,this.A.clear(),Promise.resolve()},sn.prototype.remove=function(e,t){var n=this;return P((function(i){if(1==i.g)return x(i,Promise.resolve(),2);!n.i||!n.i.remove(e,t)||null==n.g||t<=n.g||e>=n.h||(e<=n.g&&t>=n.h?n.g=n.h=null:e<=n.g&&t<n.h?n.g=t:e>n.g&&t>=n.h&&(n.h=e)),w(i)}))},F("shaka.text.TextEngine",sn),sn.prototype.destroy=sn.prototype.destroy,sn.findParser=function(e){return pn[e]},sn.unregisterParser=function(e){delete pn[e]},sn.registerParser=function(e,t){pn[e]=t};var pn={};function hn(e){this.h=e,this.g=null}function mn(e){this.h=e,this.g=null}
2function gn(){return!(!e.MediaSource||!MediaSource.isTypeSupported)}function fn(e){return""!=wn().canPlayType(e)}function vn(){return xn("Tizen")}function bn(){return!!navigator.vendor&&navigator.vendor.includes("Apple")&&!vn()}function yn(){if(!bn())return null;var e=navigator.userAgent.match(/Version\/(\d+)/);return e||(e=navigator.userAgent.match(/OS (\d+)(?:_\d+)?/))?parseInt(e[1],10):null}function xn(e){return(navigator.userAgent||"").includes(e)}function wn(){return An||(kn||(kn=new mn((function(){An=null}))),(An=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(An=document.createElement("video")),kn.R(1),An)}hn.prototype.R=function(t){var n=this;this.stop();var i=!0,r=null;return this.g=function(){e.clearTimeout(r),i=!1},r=e.setTimeout((function(){i&&n.h()}),1e3*t),this},hn.prototype.stop=function(){this.g&&(this.g(),this.g=null)},mn.prototype.Aa=function(){return this.stop(),this.h(),this},mn.prototype.R=function(e){var t=this;return this.stop(),this.g=new hn((function(){t.h()})).R(e),this},mn.prototype.ka=function(e){var t=this;return this.stop(),this.g=new hn((function(){t.g.R(e),t.h()})).R(e),this},mn.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},F("shaka.util.Timer",mn),mn.prototype.stop=mn.prototype.stop,mn.prototype.tickEvery=mn.prototype.ka,mn.prototype.tickAfter=mn.prototype.R,mn.prototype.tickNow=mn.prototype.Aa;var kn=null,An=null;function Tn(e,t,n,i,r){var a=e.variants;(t.length||n.length)&&(a=function(e,t,n){for(var i={},r=(t=c(t)).next();!r.done;i={Od:i.Od},r=t.next())if(i.Od=r.value,r=e.filter(function(e){return function(t){return t.video&&t.video.codecs.startsWith(e.Od)}}(i)),r.length){e=r;break}for(i={},n=c(n),t=n.next();!t.done;i={zd:i.zd},t=n.next())if(i.zd=t.value,t=e.filter(function(e){return function(t){return t.audio&&t.audio.codecs.startsWith(e.zd)}}(i)),t.length){e=t;break}return e}(a,t,n)),t=function(e){for(var t=new Z,n=(e=c(e)).next();!n.done;n=e.next()){var i=En(n=n.value);t.push(i,n)}return t}(a=Hn(a,i)),t=function(e){var t=0,n=new Map,i=e.size();return Q(e,(function(e,r){for(var a=c(r),o=a.next();!o.done;o=a.next()){var s=(o=o.value).video;if(s&&s.width&&s.height){s=s.width*s.height*(s.frameRate||1),n.has(s)||n.set(s,new Z);var l=n.get(s);l.push(e,o),l.size()===i&&(t=Math.max(t,s))}}})),t?n.get(t):e}(t);var o=function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next())if((i=i.value)==Yn||i==Jn){if(1==(e=Sn(e,i)).size())return e.keys()[0]}else if(i==Zn)break;return function(e){var t="",n=1/0;return Q(e,(function(e,i){for(var r=0,a=0,o=c(i),s=o.next();!s.done;s=o.next())r+=s.value.bandwidth||0,++a;(r/=a)<n&&(t=e,n=r)})),t}(e)}(t,r);e.variants=e.variants.filter((function(e){return En(e)==o}))}function Sn(e,t){var n=0,i=new Z;return Q(e,(function(e,r){for(var a=0,o=0,s=c(r),l=s.next();!l.done;l=s.next())(l=l.value).decodingInfos.length&&(a+=l.decodingInfos[0][t]?1:0,o++);(a/=o)>n?(i.g={},i.push(e,r),n=a):a==n&&i.push(e,r)})),i}function En(e){var t="";e.video&&(t=an(e.video.codecs));var n="";return e.audio&&(n=an(e.audio.codecs)),t+"-"+n}function In(e,t,n){function i(e,t,n){return e>=t&&e<=n}var r=e.video;return!(r&&r.width&&r.height&&(!i(r.width,t.minWidth,Math.min(t.maxWidth,n.width))||!i(r.height,t.minHeight,Math.min(t.maxHeight,n.height))||!i(r.width*r.height,t.minPixels,t.maxPixels))||e&&e.video&&e.video.frameRate&&!i(e.video.frameRate,t.minFrameRate,t.maxFrameRate)||!i(e.bandwidth,t.minBandwidth,t.maxBandwidth))}function Cn(e,t){return P((function(n){return 1==n.g?x(n,_n(t,0<t.offlineSessionIds.length),2):(Dn(e,t),function(e){e.textStreams=e.textStreams.filter((function(e){return ln(nn(e.mimeType,e.codecs))}))}(t),x(n,function(e){var t,n,i,r,a,o,s;return P((function(l){switch(l.g){case 1:t=[],n=c(e.imageStreams),i=n.next();case 2:if(i.done){l.D(4);break}if(r=i.value,a=r.mimeType,Qn.has(a)){l.D(5);break}if(!(o=ei.get(a))){Qn.set(a,!1),l.D(5);break}return x(l,function(e){return new Promise((function(t){var n=new Image;n.src=e,"decode"in n?n.decode().then((function(){t(!0)})).catch((function(){t(!1)})):n.onload=n.onerror=function(){t(2===n.height)}}))}(o),7);case 7:s=l.h,Qn.set(a,s);
2case 5:Qn.get(a)&&t.push(r),i=n.next(),l.D(2);break;case 4:e.imageStreams=t,w(l)}}))}(t),0))}))}function _n(e,t){return P((function(n){if(1==n.g)return x(n,jn(e.variants,t,!1),2);e.variants=e.variants.filter((function(e){var t=e.video;if(t){var n=Pn(t.codecs);if(t.codecs.includes(",")){var i=t.codecs.split(",");if(n=Le("video",i),i=Le("audio",i),i=rn(t.mimeType,i,"audio"),!MediaSource.isTypeSupported(i))return!1}if(n=rn(t.mimeType,n,"video"),!MediaSource.isTypeSupported(n))return!1}return!((n=e.audio)&&(i=Ln(n.codecs),n=rn(n.mimeType,i,"audio"),!MediaSource.isTypeSupported(n)))&&(xn("Xbox One")&&t&&(t.width&&1920<t.width||t.height&&1080<t.height)&&t.codecs.includes("avc1.")?($n(e),!1):((t=e.decodingInfos.some((function(e){return e.supported})))||$n(e),t))})),w(n)}))}function jn(e,t,n){var i,r,a,o,s,l,d,u,p,h;return P((function(m){if(e.some((function(e){return e.decodingInfos.length})))return m.return();for(i=navigator.mediaCapabilities,r=[],a=function(e,t){var n;return P((function(r){return 1==r.g?(k(r,2),x(r,i.decodingInfo(t),4)):2!=r.g?(n=r.h,e.decodingInfos.push(n),T(r,0)):(S(r),JSON.stringify(t),void w(r))}))},o=c(e),s=o.next();!s.done;s=o.next())for(l=s.value,d=Nn(l,t,n),u=c(d),p=u.next();!p.done;p=u.next())h=p.value,r.push(a(l,h));return x(m,Promise.all(r),0)}))}function Nn(e,t,n){var i=e.audio,r=e.video;if(n={type:n?"file":"media-source"},r){var a=r.codecs;if(r.codecs.includes(",")){var o=r.codecs.split(",");a=Pn(a=Le("video",o)),o=Le("audio",o),o=rn(r.mimeType,o,"audio"),n.audio={contentType:o,channels:2,bitrate:e.bandwidth||1,samplerate:1,spatialRendering:!1}}if(a=Pn(a),a=rn(r.mimeType,a,"video"),n.video={contentType:a,width:r.width||1,height:r.height||1,bitrate:r.bandwidth||e.bandwidth||1,framerate:r.frameRate||1},r.hdr)switch(r.hdr){case"SDR":n.video.transferFunction="srgb";break;case"PQ":n.video.transferFunction="pq";break;case"HLG":n.video.transferFunction="hlg"}}if(i&&(a=Ln(i.codecs),a=rn(i.mimeType,a,"audio"),n.audio={contentType:a,channels:i.channelsCount||2,bitrate:i.bandwidth||e.bandwidth||1,samplerate:i.audioSamplingRate||1,spatialRendering:i.spatialAudio}),!(o=(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])).length)return[n];e=[],a=new Map;for(var s=(o=c(o)).next();!s.done;s=o.next()){var l=s.value;a.get(l.keySystem)||a.set(l.keySystem,[]),a.get(l.keySystem).push(l)}o=t?"required":"optional",t=t?["persistent-license"]:["temporary"];for(var d=(l=c(a.keys())).next();!d.done;d=l.next()){var u=d.value;d=Object.assign({},n);var p=a.get(u);for(u={keySystem:u,initDataType:"cenc",persistentState:o,distinctiveIdentifier:"optional",sessionTypes:t},s=(p=c(p)).next();!s.done;s=p.next()){if((s=s.value).initData&&s.initData.length){for(var h=new Set,m=c(s.initData),g=m.next();!g.done;g=m.next())h.add(g.value.initDataType);u.initDataType=s.initData[0].initDataType}s.distinctiveIdentifierRequired&&(u.distinctiveIdentifier="required"),s.persistentStateRequired&&(u.persistentState="required"),s.sessionType&&(u.sessionTypes=[s.sessionType]),i&&(u.audio?u.audio.robustness=u.audio.robustness||s.audioRobustness:u.audio={robustness:s.audioR
2obustness}),r&&(u.video?u.video.robustness=u.video.robustness||s.videoRobustness:u.video={robustness:s.videoRobustness})}d.keySystemConfiguration=u,e.push(d)}return e}function Ln(e){return vn()&&"ac-3"==e.toLowerCase()?"ec-3":e}function Pn(e){return"vp9"==e?"vp09.00.10.08":e}function Dn(e,t){t.variants=t.variants.filter((function(t){var n=t.audio;return t=t.video,!(n&&e&&e.audio&&!Mn(n,e.audio)||t&&e&&e.video&&!Mn(t,e.video))}))}function Mn(e,t){return e.mimeType==t.mimeType&&e.codecs.split(".")[0]==t.codecs.split(".")[0]}function On(e){var t=e.audio,n=e.video,i=t?t.mimeType:null,r=n?n.mimeType:null,a=t?t.codecs:null,o=n?n.codecs:null,s=[];o&&s.push(o),a&&s.push(a);var l=[];n&&l.push(n.mimeType),t&&l.push(t.mimeType),l=l[0]||null;var d=[];t&&d.push(t.kind),n&&d.push(n.kind),d=d[0]||null;var u=new Set;if(t)for(var p=c(t.roles),h=p.next();!h.done;h=p.next())u.add(h.value);if(n)for(h=(p=c(n.roles)).next();!h.done;h=p.next())u.add(h.value);return e={id:e.id,active:!1,type:"variant",bandwidth:e.bandwidth,language:e.language,label:null,kind:d,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:l,audioMimeType:i,videoMimeType:r,codecs:s.join(", "),audioCodec:a,videoCodec:o,primary:e.primary,roles:Array.from(u),audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null},n&&(e.videoId=n.id,e.originalVideoId=n.originalId,e.width=n.width||null,e.height=n.height||null,e.frameRate=n.frameRate||null,e.pixelAspectRatio=n.pixelAspectRatio||null,e.videoBandwidth=n.bandwidth||null),t&&(e.audioId=t.
2id,e.originalAudioId=t.originalId,e.channelsCount=t.channelsCount,e.audioSamplingRate=t.audioSamplingRate,e.audioBandwidth=t.bandwidth||null,e.label=t.label,e.audioRoles=t.roles),e}function Rn(e){return{id:e.id,active:!1,type:De,bandwidth:0,language:e.language,label:e.label,kind:e.kind||null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:e.codecs||null,audioCodec:null,videoCodec:null,primary:e.primary,roles:e.roles,audioRoles:null,forced:e.forced,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:e.originalId,originalImageId:null}}function zn(e){var t=e.width||null,n=e.height||null,i=null;e.segmentIndex&&(i=e.segmentIndex.get(0));var r=e.tilesLayout;return i&&(r=i.tilesLayout||r),r&&null!=t&&(t/=Number(r.split("x")[0])),r&&null!=n&&(n/=Number(r.split("x")[1])),{id:e.id,active:!1,type:"image",bandwidth:e.bandwidth||0,language:"",label:null,kind:null,width:t,height:n,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:e.mimeType,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],audioRoles:null,forced:!1,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:r||null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:e.originalId}}function Bn(e){return e.__shaka_id||(e.__shaka_id=Xn++),e.__shaka_id}function Un(e){var t=Vn(e);return t.active="disabled"!=e.mode,t.type="text",t.originalTextId=e.id,"captions"==e.kind&&(t.mimeType="application/cea-608"),e.kind&&(t.roles=[e.kind]),"forced"==e.kind&&(t.forced=!0),t}function Fn(e){var t=Vn(e);return t.active=e.enabled,t.type="variant",t.originalAudioId=e.id,"main"==e.kind&&(t.primary=!0),e.kind&&(t.roles=[e.kind],t.audioRoles=[e.kind],t.label=e.label),t}function Vn(e){return{id:Bn(e),active:!1,type:"",bandwidth:0,language:Fe(e.language),label:e.label,kind:e.kind,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:!1,roles:[],forced:!1,audioR
2oles:null,videoId:null,audioId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null}}function qn(e){return e.allowedByApplication&&e.allowedByKeySystem}function Hn(e,t){for(var n=e.filter((function(e){return e.audio&&e.audio.channelsCount})),i=new Map,r=(n=c(n)).next();!r.done;r=n.next()){var a=(r=r.value).audio.channelsCount;i.has(a)||i.set(a,[]),i.get(a).push(r)}return 0==(n=Array.from(i.keys())).length?e:(r=n.filter((function(e){return e<=t}))).length?i.get(Math.max.apply(Math,d(r))):i.get(Math.min.apply(Math,d(n)))}function Gn(e,t,n,i){var r=e,a=e.filter((function(e){return e.primary}));a.length&&(r=a);var o=r.length?r[0].language:"";if(r=r.filter((function(e){return e.language==o})),t){var s=Ke(Fe(t),e.map((function(e){return e.language})));s&&(r=e.filter((function(e){return Fe(e.language)==s})))}if(r=r.filter((function(e){return e.forced==i})),n){if((e=Kn(r,n)).length)return e}else if(e=r.filter((function(e){return 0==e.roles.length})),e.length)return e;return e=r.map((function(e){return e.roles})).reduce(Ee,[]),e.length?Kn(r,e[0]):r}function Kn(e,t){return e.filter((function(e){return e.roles.includes(t)}))}function $n(e){var t=[];return e.audio&&t.push(Wn(e.audio)),e.video&&t.push(Wn(e.video)),t.join(", ")}function Wn(e){return"audio"==e.type?"type=audio codecs="+e.codecs+" bandwidth="+e.bandwidth+" channelsCount="+e.channelsCount+" audioSamplingRate="+e.audioSamplingRate:"video"==e.type?"type=video codecs="+e.codecs+" bandwidth="+e.bandwidth+" frameRate="+e.frameRate+" width="+e.width+" height="+e.height:"unexpected stream type"}var Xn=0,Yn="smooth",Jn="powerEfficient",Zn="bandwidth",Qn=(new Map).set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),ei=(new Map).set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function ti(){var e=this;this.l=null,this.i=!1,this.h=new tt,navigator.connection&&navigator.connection.addEventListener("change",(function(){if(e.g.useNetworkInformation&&e.i){e.h=new tt,e.g&&e.h.configure(e.g.advanced);var t=e.chooseVariant();t&&e.l(t)}})),this.j=[],this.A=1,this.B=!1,this.g=this.m=null}function ni(e){var t=e.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&e.g.useNetworkInformation&&(t=1e6*navigator.connection.downlink),t}function ii(e,t){return e&&(t=t.filter((function(t){return In(t,e,{width:1/0,height:1/0})}))),t.sort((function(e,t){return e.bandwidth-t.bandwidth}))}function ri(e,t){this.h=e,this.g=new Set([e]);for(var n=c(t=t||[]),i=n.next();!i.done;i=n.next())this.add(i.value)}function ai(e,t){var n;if(!(n=!!e.audio!=!!t.audio||!!e.video!=!!t.video||e.language!=t.language)&&(n=e.audio&&t.audio)){n=e.audio;var i=t.audio;n=!((!(!n.channelsCount||!i.channelsCount||2<n.channelsCount||2<i.channelsCount)||n.channelsCount==i.channelsCount)&&oi(n,i)&&si(n.roles,i.roles))}return!n&&(n=e.video&&t.video)&&(n=!(oi(n=e.video,i=t.video)&&si(n.roles,i.roles))),!n}function oi(e,t){if(e.mimeType!=t.mimeType)return!1;var n=e.codecs.split(",").map((function(e){return an(e)})),i=t.codecs.split(",").map((function(e){return an(e)}));if(n.length!=i.length)return!1;n.sort(),i.sort();for(var r=c(ie(n.length)),a=r.next();!a.done;a=r.next())if(n[a=a.value]!=i[a])return!1;return!0}function si(e,t){var n=new Set(e),i=new Set(t);if(n.delete("main"),i.delete("main"),n.size!=i.size)return!1;for(var r=(n=c(n)).next();!r.done;r=n.next())if(!i.has(r.value))return!1;return!0}function li(e){this.g=e,this.h=new ci(e.language,"",e.audio&&e.audio.channelsCount?e.audio.channelsCount:0,"")}function ci(e,t,n,i){this.i=e,this.j=t,this.g=n,this.h=void 0===i?"":i}function di(){this.g=hi,this.h=(new Map).set(hi,2).set(pi,1)}
2function ui(e,t,n){e.h.set(hi,n).set(pi,t)}(i=ti.prototype).stop=function(){this.l=null,this.i=!1,this.j=[],this.A=1,this.m=null},i.init=function(e){this.l=e},i.chooseVariant=function(){var e=ii(this.g.restrictions,this.j),t=this.h.getBandwidthEstimate(ni(this));this.j.length&&!e.length&&(e=[(e=ii(null,this.j))[0]]);for(var n=e[0]||null,i=0;i<e.length;i++){for(var r=e[i],a=isNaN(this.A)?1:Math.abs(this.A),o=a*r.bandwidth/this.g.bandwidthDowngradeTarget,s={bandwidth:1/0},l=i+1;l<e.length;l++)if(r.bandwidth!=e[l].bandwidth){s=e[l];break}a=a*s.bandwidth/this.g.bandwidthUpgradeTarget,t>=o&&t<=a&&n.bandwidth!=r.bandwidth&&(n=r)}return this.m=Date.now(),n},i.enable=function(){this.i=!0},i.disable=function(){this.i=!1},i.segmentDownloaded=function(e,t){if(this.h.sample(e,t),null!=this.m&&this.i)e:{if(this.B){if(Date.now()-this.m<1e3*this.g.switchInterval)break e}else{var n=this.h;if(!(n.g>=n.i))break e;this.B=!0}n=this.chooseVariant(),this.h.getBandwidthEstimate(ni(this)),n&&this.l(n)}},i.getBandwidthEstimate=function(){return this.h.getBandwidthEstimate(this.g.defaultBandwidthEstimate)},i.setVariants=function(e){this.j=e},i.playbackRateChanged=function(e){this.A=e},i.configure=function(e){this.g=e,this.h&&this.g&&this.h.configure(this.g.advanced)},F("shaka.abr.SimpleAbrManager",ti),ti.prototype.configure=ti.prototype.configure,ti.prototype.playbackRateChanged=ti.prototype.playbackRateChanged,ti.prototype.setVariants=ti.prototype.setVariants,ti.prototype.getBandwidthEstimate=ti.prototype.getBandwidthEstimate,ti.prototype.segmentDownloaded=ti.prototype.segmentDownloaded,ti.prototype.disable=ti.prototype.disable,ti.prototype.enable=ti.prototype.enable,ti.prototype.chooseVariant=ti.prototype.chooseVariant,ti.prototype.init=ti.prototype.init,ti.prototype.stop=ti.prototype.stop,ri.prototype.add=function(e){return!!ai(this.h,e)&&(this.g.add(e),!0)},ri.prototype.values=function(){return this.g.values()},li.prototype.create=function(e){var t=this,n=e.filter((function(e){return ai(t.g,e)}));return n.length?new ri(n[0],n):this.h.create(e)},ci.prototype.create=function(e){var t=[];t=function(e,t){var n=Fe(t),i=Ke(n,e.map((function(e){return Ge(e)})));return i?e.filter((function(e){return i==Ge(e)})):[]}(e,this.i);var n=e.filter((function(e){return e.primary}));for(e=function(e,t){return e.filter((function(e){return!!e.audio&&(t?e.audio.roles.includes(t):0==e.audio.roles.length)}))}(t=t.length?t:n.length?n:e,this.j),e.length&&(t=e),this.g&&((e=Hn(t,this.g)).length&&(t=e)),this.h&&(e=function(e,t){return e.filter((function(e){return!!e.audio&&e.audio.label.toLowerCase()==t.toLowerCase()}))}(t,this.h),e.length&&(t=e)),e=new ri(t[0]),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,ai(e.h,n)&&e.add(n);return e};var pi=0,hi=1;function mi(e,t){var n={maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4};this.l=null==e.maxAttempts?n.maxAttempts:e.maxAttempts,this.j=null==e.baseDelay?n.baseDelay:e.baseDelay,this.A=null==e.fuzzFactor?n.fuzzFactor:e.fuzzFactor,this.m=null==e.backoffFactor?n.backoffFactor:e.backoffFactor,this.g=0,this.h=this.j,(this.i=void 0!==t&&t)&&(this.g=1)}function gi(e){var t,n;return P((function(i){if(1==i.g){if(e.g>=e.l){if(!e.i)throw new xe(2,7,1010);e.g=1,e.h=e.j}return t=e.g,e.g++,0==t?i.return():(n=e.h*(1+(2*Math.random()-1)*e.A),x(i,new Promise((function(e){new mn(e).R(n/1e3)})),2))}e.h*=e.m,w(i)}))}function fi(e,t){this.promise=e,this.i=t,this.g=!1}function vi(e){return new fi(Promise.reject(e),(function(){return Promise.resolve()}))}function bi(){var e=Promise.reject(new xe(2,7,7001));return e.catch((function(){})),new fi(e,(function(){return Promise.resolve()}))}function yi(e){return new fi(Promise.resolve(e),(function(){return Promise.resolve()}))}function xi(e){return new fi(e,(function(){return e.catch((function(){}))}))}function wi(e){return new fi(Promise.all(e.map((function(e){return e.promise}))),(function(){return Promise.all(e.map((function(e){return e.abort()})))}))}function ki(e){var t=new Set;return function e(n){switch(typeof n){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return n;default:if(!n||n.buffer&&n.buffer.constructor==ArrayBuffer)return n;if(t.has(n))return null;var i=n.constructor==Array;if(n.constructor!=Object&&!i)return null;t.add(n);var r,a=i?[]:{};for(r in n)a[r]=e(n[r]);return i&&(a.length=n.length),a}}(e)}function Ai(e){var t,n={};for(t in e)n[t]=e[t];return n}function Ti(){this.g=[]}function Si(e,t){e.g.push(t.finally((function(){it(e.g,t)})))}function Ei(e,t,n){ee.call(this),this.i=!1,this.m=new Ti,this.g=new Set,this.h=new Set,this.l=e||null,this.j=t||null,this.B=n||null,this.A=!1}function Ii(e,t,n,i){n=n||Pi;var r=Di[e];(!r||n>=r.priority)&&(Di[e]={priority:n,Pg:t,Rg:void 0!==i&&i})}function Ci(e,t,n){return{uris:e,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:t,licenseRequestType:null,sessionId:null,
2streamDataCallback:void 0===n?null:n}}function _i(e,t,n,i,r,a,o){e.A&&(n.uris[r]=n.uris[r].replace("http://","https://"));var s=new oe(n.uris[r]),l=s.Xa,c=!1;l||(se(s,l=(l=location.protocol).slice(0,-1)),n.uris[r]=s.toString()),l=l.toLowerCase();var d=(l=Di[l])?l.Pg:null;if(!d)return vi(new xe(2,1,1e3,s));var u,p=l.Rg,h=null,m=null,g=!1,f=!1;return xi(gi(i)).oa((function(){if(e.i)return bi();u=Date.now();var i=d(n.uris[r],n,t,(function(n,i,r){h&&h.stop(),m&&m.R(s/1e3),e.l&&t==Li&&(e.l(n,i),c=!0,o.g=r)}),(function(i){e.j&&e.j(i,n,t),f=!0}));if(!p)return i;var a=n.retryParameters.connectionTimeout;a&&(h=new mn((function(){g=!0,i.abort()}))).R(a/1e3);var s=n.retryParameters.stallTimeout;return s&&(m=new mn((function(){g=!0,i.abort()}))),i})).oa((function(i){h&&h.stop(),m&&m.stop(),null==i.timeMs&&(i.timeMs=Date.now()-u);var r={response:i,Cg:c};return!f&&e.j&&e.j(i.headers,n,t),r}),(function(s){if(h&&h.stop(),m&&m.stop(),e.B){var l=null,c=0;s instanceof xe&&(l=s,1001==s.code&&(c=s.data[1])),e.B(n,l,c,g)}if(e.i)return bi();if(g&&(s=new xe(1,1,1003,n.uris[r],t)),s instanceof xe){if(7001==s.code)throw s;if(1010==s.code)throw a;if(1==s.severity)return l=new V("retry",l=(new Map).set("error",s)),e.dispatchEvent(l),r=(r+1)%n.uris.length,_i(e,t,n,i,r,s,o)}throw s}))}function ji(){this.g=0}function Ni(e,t,n){fi.call(this,e,t),this.h=n}fi.prototype.abort=function(){return this.g=!0,this.i()},fi.prototype.finally=function(e){return this.promise.then((function(){return e(!0)}),(function(){return e(!1)})),this},fi.prototype.oa=function(e,t){function n(n){return function(s){if(r.g&&n)a.reject(o);else{var l=n?e:t;l?i=function(e,t,n){try{var i=e(t);return i&&i.promise&&i.abort?(n.resolve(i.promise),function(){return i.abort()}):(n.resolve(i),function(){return Promise.resolve(i).then((function(){}),(function(){}))})}catch(e){return n.reject(e),function(){return Promise.resolve()}}}(l,s,a):(n?a.resolve:a.reject)(s)}}}function i(){return a.reject(o),r.abort()}var r=this,a=new Ot,o=new xe(2,7,7001);return this.promise.then(n(!0),n(!1)),new fi(a,(function(){return i()}))},F("shaka.util.AbortableOperation",fi),fi.prototype.chain=fi.prototype.oa,fi.prototype.finally=fi.prototype.finally,fi.all=wi,fi.prototype.abort=fi.prototype.abort,fi.notAbortable=xi,fi.completed=yi,fi.aborted=bi,fi.failed=vi,Ti.prototype.destroy=function(){for(var e=[],t=c(this.g),n=t.next();!n.done;n=t.next())(n=n.value).promise.catch((function(){})),e.push(n.abort());return this.g=[],Promise.all(e)},f(Ei,ee),(i=Ei.prototype).ue=function(e){this.A=e},i.Sg=function(e){this.g.add(e)},i.ih=function(e){this.g.delete(e)},i.Of=function(){this.g.clear()},i.Tg=function(e){this.h.add(e)},i.jh=function(e){this.h.delete(e)},i.Pf=function(){this.h.clear()},i.destroy=function(){return this.i=!0,this.g.clear(),this.h.clear(),ee.prototype.release.call(this),this.m.destroy()},i.request=function(e,t){var n=this,i=new ji;if(this.i){var r=Promise.reject(new xe(2,7,7001));return r.catch((function(){})),new Ni(r,(function(){return Promise.resolve()}),i)}t.method=t.method||"GET",t.headers=t.headers||{},t.retryParameters=t.retryParameters?ki(t.retryParameters):{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},t.uris=ki(t.uris),r=function(e,t,n){for(var i=yi(void 0),r={},a=(e=c(e.g)).next();!a.done;r={Jd:r.Jd},a=e.next())r.Jd=a.value,i=i.oa(function(e){return function(){return n.body&&(n.body=_t(n.body)),e.Jd(t,n)}}(r));return i.oa(void 0,(function(e){if(e instanceof xe&&7001==e.code)throw e;throw new xe(2,1,1006,e)}))}(this,e,t);var a=r.oa((function(){return _i(n,e,t,new mi(t.retryParameters,!1),0,null,i)})),o=a.oa((function(t){return function(e,t,n){for(var i=yi(void 0),r={},a=(e=c(e.h)).next();!a.done;r={Kd:r.Kd},a=e.next())r.Kd=a.value,i=i.oa(function(e){return function(){var i=n.response;return i.data&&(i.data=_t(i.data)),e.Kd(t,i)}}(r));return i.oa((function(){return n}),(function(e){var t=2;if(e instanceof xe){if(7001==e.code)throw e;t=e.severity}throw new xe(t,1,1007,e)}))}(n,e,t)})),s=Date.now(),l=0;r.promise.then((function(){l=Date.now()-s}),(function(){}));var d=0;a.promise.then((function(){d=Date.now()}),(function(){}));var u=o.oa((function(t){var i=Date.now()-d,r=t.response;return r.timeMs+=l,r.timeMs+=i,t.Cg||!n.l||r.fromCache||e!=Li||n.l(r.timeMs,r.data.byteLength),r}),(function(e){throw e&&(e.severity=2),e}));return r=new Ni(u.promise,(function(){return u.abort()}),i),Si(this.m,r),r},F("shaka.net.NetworkingEngine",Ei),Ei.prototype.request=Ei.prototype.request,Ei.prototype.destroy=Ei.prototype.destroy,Ei.makeRequest=Ci,Ei.defaultRetryParameters=function(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}},Ei.prototype.clearAllResponseFilters=Ei.prototype.Pf,Ei.prototype.unregisterResponseFilter=Ei.prototype.jh,Ei.prototype.registerResponseFilter=Ei.prototype.Tg,Ei.prototype.clearAllRequestFilters=Ei.prototype.Of,Ei.prototype.unregisterRequestFilter=Ei.prototype.ih,Ei.prototype.registerRequestFilter=Ei.prototype.Sg,Ei.unregisterScheme=function(e){delete Di[e]},Ei.registerScheme=Ii,Ei.prototype.setForceHTTPS=Ei.prototype.ue,Ei.NumBytesRemainingClass=ji,f(Ni,fi),Ei.PendingRequest=Ni;var Li=1;Ei.RequestType={MANIFEST:0,SEGMENT:Li,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5};var Pi=3;Ei.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Pi};var Di={};function Mi(e){this.g=!1,this.h=new Ot,this.i=e}function Oi(e,t){if(e.g){if(t instanceof xe&&7003==t.code)throw t;throw new xe(2,7,7003,t)}}function Ri(){this.g=new Z}function zi(e,t,n,i){this.target=e,this.type=t,this.listener=n,this.g=function(e,t){if(null==t)return!1;if("boolean"==typeof t)return t;var n=new Set(["passive","capture"]);return Object.keys(t).filter((function(e){return!n.has(e)})),function(e){var t=Bi;if(null==t){t=!1;try{var n={},i={get:function(){return t=!0,!1}};Object.defineProperty(n,"passive",i),Object.defineProperty(n,"capture",i),i=function(){},e.addEventListener("test",i,n),e.removeEventListener("test",i,n)}catch(e){t=!1}Bi=t}return t||!1}(e)?t:t.capture||!1}(e,i),this.target.addEventListener(t,n,this.g)}Mi.prototype.destroy=function(){var e=this;return this.g?this.h:(this.g=!0,this.i().then((function(){e.h.resolve()}),(function(){e.h.resolve()})))},(i=Ri.prototype).release=function(){this.Sb(),this.g=null},i.o=function(e,t,n,i){this.g&&(e=new zi(e,t,n,i),this.g.push(t,e))},i.Ia=function(e,t,n,i){var r=this;this.o(e,t,(function i(a){r.La(e,t,i),n(a)}),i)},i.La=function(e,t,n){if(this.g)for(var i=this.g.get(t)||[],r=(i=c(i)).next();!r.done;r=i.next())(r=r.value).target!=e||n!=r.listener&&n||(r.La(),this.g.remove(t,r))},i.Sb=function(){if(this.g){var e,t=this.g,n=[];for(e in t.g)n.push.apply(n,d(t.g[e]));for(n=(t=c(n)).next();!n.done;n=t.next())n.value.La();this.g.g={}}},F("shaka.util.EventManager",Ri),Ri.prototype.removeAll=Ri.prototype.Sb,Ri.prototype.unlisten=Ri.prototype.La,Ri.prototype.listenOnce=Ri.prototype.Ia,Ri.prototype.listen=Ri.prototype.o,Ri.prototype.release=Ri.prototype.release,zi.prototype.La=function(){this.target.removeEventListener(this.type,this.listener,this.g),this.listener=this.target=null,this.g=!1};var Bi=void 0;function Ui(){}function Fi(e){return new oe(e=Ft(e)).$a}function Vi(e,t,n){function i(e){Nt(a).setUint32(o,e.byteLength,!0),o+=4,a.set(jt(e),o),o+=e.byteLength}if(!n||!n.byteLength)throw new xe(2,6,6015);var r;r="string"==typeof t?qt(t,!0):t,e=qt(e=Ft(e),!0);var a=new Uint8Array(12+e.byteLength+r.byteLength+n.byteLength),o=0;return i(e),i(r),i(n),a}function qi(e){for(var t=new Map,n=c(Object.keys(e)),i=n.next();!i.done;i=n.next())i=i.value,t.set(i,e[i]);return t}function Hi(e){var t={};return e.forEach((function(e,n){t[n]=e})),t}function Gi(e,t){if(!e&&!t)return!0;
2if(e&&!t||t&&!e)return!1;if(e.size!=t.size)return!1;for(var n=c(e),i=n.next();!i.done;i=n.next()){var r=c(i.value);if(i=r.next().value,r=r.next().value,!t.has(i))return!1;if((i=t.get(i))!=r||null==i)return!1}return!0}function Ki(e,t){var n=this;t=void 0===t?1:t,this.G=e,this.J=new Set,this.j=this.B=null,this.ea=this.$=!1,this.K=0,this.g=null,this.A=new Ri,this.i=new Map,this.F=[],this.C=new Ot,this.h=null,this.m=function(t){n.C.reject(t),e.onError(t)},this.ha=new Map,this.xa=new Map,this.W=new mn((function(){return function(e){var t=e.ha,n=e.xa;n.clear(),t.forEach((function(e,t){return n.set(t,e)})),t=Array.from(n.values()),t.length&&t.every((function(e){return"expired"==e}))&&e.m(new xe(2,6,6014)),e.G.pd(Hi(n))}(n)})),this.N=!1,this.M=[],this.S=!1,this.aa=new mn((function(){!function(e){e.i.forEach((function(t,n){var i=t.ce,r=n.expiration;isNaN(r)&&(r=1/0),r!=i&&(e.G.onExpirationUpdated(n.sessionId,r),t.ce=r)}))}(n)})).ka(t),this.C.catch((function(){})),this.l=new Mi((function(){return function(e){return P((function(t){switch(t.g){case 1:return e.A.release(),e.A=null,e.C.reject(),e.aa.stop(),e.aa=null,e.W.stop(),e.W=null,x(t,or(e),2);case 2:if(!e.j){t.D(3);break}return k(t,4),x(t,e.j.setMediaKeys(null),6);case 6:T(t,5);break;case 4:S(t);case 5:e.j=null;case 3:e.g=null,e.J.clear(),e.B=null,e.F=[],e.h=null,e.m=function(){},e.G=null,e.X=!1,e.H=null,w(t)}}))}(n)})),this.X=!1,this.H=null}function $i(e,t,n){return e.F=n,e.N=0<n.length,Wi(e,t)}function Wi(t,n){var i,r,a,o,s,l,d,u,p,h,m,g;return P((function(f){if(1==f.g){if(i=function(t){if(t=qi(t.h.clearKeys),0==t.size)return null;var n=[],i=[];t.forEach((function(e,t){var r=Xt(t),a=Xt(e);r={kty:"oct",kid:$t(r,!1),k:$t(a,!1)},n.push(r),i.push(r.kid)})),t=JSON.stringify({keys:n});var r=JSON.stringify({kids:i});return r=[{initData:jt(Vt(r)),initDataType:"keyids"}],{keySystem:"org.w3.clearkey",licenseServerUri:"data:application/json;base64,"+e.btoa(t),distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",sessionType:"",initData:r,keyIds:new Set(i)}}(t))for(r=c(n),a=r.next();!a.done;a=r.next())(o=a.value).video&&(o.video.drmInfos=[i]),o.audio&&(o.audio.drmInfos=[i]);for((s=n.some((function(e){return!!(e.video&&e.video.drmInfos.length||e.audio&&e.audio.drmInfos.length)})))||(l=qi(t.h.servers),function(e,t){var n=[];t.forEach((function(e,t){n.push({keySystem:t,licenseServerUri:e,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}));for(var i=c(e),r=i.next();!r.done;r=i.next())(r=r.value).video&&(r.video.drmInfos=n),r.audio&&(r.audio.drmInfos=n)}(n,l)),d=c(n),a=d.next();!a.done;a=d.next())for(u=a.value,p=lr(u),h=c(p),m=h.next();!m.done;m=h.next())ur(m.value,qi(t.h.servers),qi(t.h.advanced||{}));return x(f,jn(n,t.N,t.X),2)}return s||Object.keys(t.h.servers).length?(g=tr(t,void 0,n),f.return(s?g:g.catch((function(){})))):(t.$=!0,f.return(Promise.resolve()))}))}function Xi(e){var t;return P((function(n){switch(n.g){case 1:if(e.j.mediaKeys)return n.return();if(!e.H){n.D(2);break}return x(n,e.H,3);case 3:return n.return();case 2:return k(n,4),e.H=e.j.setMediaKeys(e.B),x(n,e.H,6);case 6:T(n,5);break;case 4:t=S(n),e.m(new xe(2,6,6003,t.message));case 5:Oi(e.l),w(n)}}))}function Yi(e){var t,n;return P((function(i){switch(i.g){case 1:if(!e.B||!e.g)return i.return();if(!e.g.serverCertificateUri||e.g.serverCertificate&&e.g.serverCertificate.length){i.D(2);break}return t=Ci([e.g.serverCertificateUri],e.h.retryParameters),k(i,3),x(i,e.G.Qb.request(5,t).promise,5);case 5:n=i.h,e.g.serverCertificate=jt(n.data),T(i,4);break;case 3:throw new xe(2,6,6017,S(i));case 4:if(e.l.g)return i.return();case 2:return e.g.serverCertificate&&e.g.serverCertificate.length?(k(i,6),x(i,e.B.setServerCertificate(e.g.serverCertificate),8)):i.return();case 8:T(i,0);break;case 6:throw new xe(2,6,6004,S(i).message)}}))}function Ji(e){for(var t=(e.g?e.g.initData:[])||[],n=c(t),i=n.next();!i.done;i=n.next())Zi(e,(i=i.value).initDataType,i.initData);for(i=(n=c(e.F)).next();!i.done;i=n.next())nr(e,i.value);return t.length||e.F.length||e.C.resolve(),e.C}function Zi(t,n,i){if(i.length){for(var r=t.i.values(),a=(r=c(r)).next();!a.done;a=r.next())if(It(i,a.value.initData)&&!xn("Tizen 2"))return;!function(t,n,i,r){try{var a=t.B.createSession(r)}catch(e){return void t.m(new xe(2,6,6005,e.message))}if(t.A.o(a,"message",(function(e){t.j&&t.h.delayLicenseRequestUntilPlayed&&t.j.paused&&!t.S?t.M.push(e):rr(t,e)})),t.A.o(a,"keystatuseschange",(function(e){return ar(t,e)})),t.i.set(a,{initData:i,loaded:!1,ce:1/0,fb:null,type:r}),e.shakaMediaKeysPolyfill)try{i=t.h.initDataTransform(i,n,t.g)}catch(e){return n=e,e instanceof xe||(n=new xe(2,6,6016,e)),void t.m(n)}t.h.logLicenseExchange&&$t(i),a.generateRequest(n,i).catch((function(e){if(!t.l.g){t.i.delete(a);var n=e.errorCode;if(n&&n.systemCode){var i=n.systemCode;0>i&&(i+=Math.pow(2,32)),i="0x"+i.toString(16)}t.m(new xe(2,6,6006,e.message,e,i))}}))}(t,n,i,t.g.sessionType)}}function Qi(e){return!!e&&!!e.match(/^com\.(microsoft|chromecast)\.playready/)}
2function er(e){return e=te(e=e.i.keys(),(function(e){return e.sessionId})),Array.from(e)}function tr(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f;return P((function(v){switch(v.g){case 1:if(i=new Map,n.length){r=function(e,t,n){for(var i=c(t),r=i.next();!r.done;r=i.next()){var a=c(lr(r.value));for(r=a.next();!r.done;r=a.next())r=r.value,n.has(r.keySystem)||n.set(r.keySystem,[]),n.get(r.keySystem).push(r)}if(1==n.size&&n.has(""))throw new xe(2,6,6e3);for(i={},e=c(e.h.preferredKeySystems),r=e.next();!r.done;i={Hd:i.Hd},r=e.next())for(i.Hd=r.value,a=c(t),r=a.next();!r.done;r=a.next())if(r=r.value.decodingInfos.find(function(e){return function(t){return t.supported&&null!=t.keySystemAccess&&t.keySystemAccess.keySystem==e.Hd}}(i)))return r.keySystemAccess;for(e=c([!0,!1]),r=e.next();!r.done;r=e.next())for(i=r.value,a=c(t),r=a.next();!r.done;r=a.next()){var o=c(r.value.decodingInfos);for(r=o.next();!r.done;r=o.next()){var s=r.value;if(s.supported&&s.keySystemAccess){var l=c(r=n.get(s.keySystemAccess.keySystem));for(r=l.next();!r.done;r=l.next())if(!!r.value.licenseServerUri==i)return s.keySystemAccess}}}return null}(e,n,i),v.D(2);break}return x(v,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v;return P((function(b){switch(b.g){case 1:if(1==t.size&&t.has(""))throw new xe(2,6,6e3);for(i=c(t.values()),r=i.next();!r.done;r=i.next())0==(a=r.value).audioCapabilities.length&&delete a.audioCapabilities,0==a.videoCapabilities.length&&delete a.videoCapabilities;o=c(e.h.preferredKeySystems),s=o.next();case 2:if(s.done){b.D(4);break}if(l=s.value,!t.has(l)){b.D(3);break}return d=t.get(l),k(b,6),x(b,navigator.requestMediaKeySystemAccess(l,[d]),8);case 8:return n=b.h,b.return(n);case 6:S(b);case 7:Oi(e.l);case 3:s=o.next(),b.D(2);break;case 4:u=c([!0,!1]),p=u.next();case 9:if(p.done){b.D(11);break}h=p.value,m=c(t.keys()),s=m.next();case 12:if(s.done){p=u.next(),b.D(9);break}if(g=s.value,f=t.get(g),v=f.drmInfos.some((function(e){return!!e.licenseServerUri})),v!=h){b.D(13);break}return k(b,15),x(b,navigator.requestMediaKeySystemAccess(g,[f]),17);case 17:return n=b.h,b.return(n);case 15:S(b);case 16:Oi(e.l);case 13:s=m.next(),b.D(12);break;case 11:return b.return(n)}}))}(e,t),3);case 3:r=v.h;case 2:if(!(a=r))throw new xe(2,6,6001);for(Oi(e.l),k(v,4),e.J.clear(),o=a.getConfiguration(),s=o.audioCapabilities||[],l=o.videoCapabilities||[],d=c(s),u=d.next();!u.done;u=d.next())p=u.value,e.J.add(p.contentType.toLowerCase());for(h=c(l),u=h.next();!u.done;u=h.next())m=u.value,e.J.add(m.contentType.toLowerCase());if(n.length){var b=a.keySystem,y=i.get(a.keySystem),w=[],A=[],E=[],I=[],C=new Set;dr(y,w,E,A,I,C);var _=e.N?"persistent-license":"temporary";for(b={keySystem:b,licenseServerUri:w[0],distinctiveIdentifierRequired:y[0].distinctiveIdentifierRequired,persistentStateRequired:y[0].persistentStateRequired,sessionType:y[0].sessionType||_,audioRobustness:y[0].audioRobustness||"",videoRobustness:y[0].videoRobustness||"",serverCertificate:E[0],serverCertificateUri:A[0],initData:I,keyIds:C},w=(y=c(y)).next();!w.done;w=y.next())(w=w.value).distinctiveIdentifierRequired&&(b.distinctiveIdentifierRequired=w.distinctiveIdentifierRequired),w.persistentStateRequired&&(b.persistentStateRequired=w.persistentStateRequired);y=b}else y=a.keySystem,b=t.get(a.keySystem),w=[],A=[],E=[],I=[],C=new Set,dr(b.drmInfos,w,E,A,I,C),y={keySystem:y,licenseServerUri:w[0],distinctiveIdentifierRequired:"required"==b.distinctiveIdentifier,persistentStateRequired:"required"==b.persistentState,sessionType:b.sessionTypes[0]||"temporary",audioRobustness:(b.audioCapabilities?b.audioCapabilities[0].robustness:"")||"",videoRobustness:(b.videoCapabilities?b.videoCapabilities[0].robustness:"")||"",serverCertificate:E[0],serverCertificateUri:A[0],initData:I,keyIds:C};if(e.g=y,!e.g.licenseServerUri)throw new xe(2,6,6012,e.g.keySystem);return x(v,a.createMediaKeys(),6);case 6:return g=v.h,Oi(e.l),e.B=g,e.$=!0,x(v,Yi(e),7);case 7:Oi(e.l),T(v,0);break;case 4:if(f=S(v),Oi(e.l,f),e.g=null,e.J.clear(),f instanceof xe)throw f;throw new xe(2,6,6002,f.message)}}))}function nr(e,t){var n,i,r,a,o;return P((function(s){switch(s.g){case 1:try{n=e.B.createSession("persistent-license")}catch(t){return i=new xe(2,6,6005,t.message),e.m(i),s.return(Promise.reject(i))}return e.A.o(n,"message",(function(t){e.j&&e.h.delayLicenseRequestUntilPlayed&&e.j.paused&&!e.S?e.M.push(t):rr(e,t)})),e.A.o(n,"keystatuseschange",(function(t){return ar(e,t)})),r={initData:null,loaded:!1,ce:1/0,fb:null,type:"persistent-license"},e.i.set(n,r),k(s,2),x(s,n.load(t),4);case 4:return a=s.h,Oi(e.l),a?(r.loaded=!0,cr(e)&&e.C.resolve(),s.return(n)):(e.i.delete(n),e.m(new xe(2,6,6013)),s.return(Promise.resolve()));case 2:o=S(s),Oi(e.l,o),e.i.delete(n),e.m(new xe(2,6,6005,o.message));case 3:return s.return(Promise.resolve())}}))}function ir(e,t,n){return"skd"==t&&(t=n.serverCertificate,e=Vi(e,n=Fi(e),t)),e}function rr(e,t){var n,i,r,a,o,s,l,d,u,p,h,m;P((function(g){switch(g.g){case 1:return n=t.target,e.h.logLicenseExchange&&$t(t.message),i=e.i.get(n),r=e.g.licenseServerUri,a=e.h.advanced[e.g.keySystem],"individualization-request"==t.messageType&&a&&a.individualizationServer&&(r=a.individualizationServer),(o=Ci([r],e.h.retryParameters)).body=t.message,o.method="POST",o.licenseRequestType=t.messageType,o.sessionId=n.sessionId,Qi(e.g.keySystem)&&function(e){var t=Ut(e.body,!0,!0);if(t.includes("PlayReadyKeyMessage")){for(var n=c((t=(new DOMParser).parseFromString(t,"application/xml")).getElementsByTagName("HttpHeader")),i=n.next();!i.done;i=n.next())i=i.value,e.headers[i.getElementsByTagName("name")[0].textContent]=i.getElementsByTagName("value")[0].textContent;e.body=Wt(t.getElementsByTagName("Challenge")[0].textContent)}else e.headers["Content-Type"]="text/xml; charset=utf-8"}(o),s=Date.now(),k(g,2),x(g,e.G.Qb.request(2,o).promise,4);case 4:l=g.h,T(g,3);break;case 2:return d=S(g),u=new xe(2,6,6007,d),e.m(u),i&&i.fb&&i.fb.reject(u),g.return();case 3:return e.l.g?g.return():(e.K+=(Date.now()-s)/1e3,e.h.logLicenseExchange&&$t(l.data),k(g,5),x(g,n.update(l.data),7));case 7:T(g,6);break;case 5:return p=S(g),h=new xe(2,6,6008,p.message),e.m(h),i&&i.fb&&i.fb.reject(h),g.return();case 6:m=new V("drmsessionupdate"),e.G.onEvent(m),i&&(i.fb&&i.fb.resolve(),new mn((function(){i.loaded=!0,cr(e)&&e.C.resolve()})).R(hr)),w(g)}}))}function ar(e,t){var n=t.target,i=e.i.get(n),r=!1;
2n.keyStatuses.forEach((function(t,n){if("string"==typeof n){var a=n;n=t,t=a}if(Qi(e.g.keySystem)&&16==n.byteLength&&navigator.userAgent.match(/Edge?\//)){var o=(a=Nt(n)).getUint32(0,!0),s=a.getUint16(4,!0),l=a.getUint16(6,!0);a.setUint32(0,o,!1),a.setUint16(4,s,!1),a.setUint16(6,l,!1)}"status-pending"!=t&&(i.loaded=!0),"expired"==t&&(r=!0),a=Yt(n),e.ha.set(a,t)}));var a=n.expiration-Date.now();(0>a||r&&1e3>a)&&i&&!i.fb&&(e.i.delete(n),n.close().catch((function(){}))),cr(e)&&(e.C.resolve(),e.W.R(mr))}function or(e){var t;return P((function(n){return t=Array.from(e.i.entries()),e.i.clear(),x(n,Promise.all(t.map((function(t){var n=(t=c(t)).next().value,i=t.next().value;return P((function(t){return 1==t.g?(k(t,2),e.ea||e.F.includes(n.sessionId)||"persistent-license"!==i.type?x(t,function(e){var t;return P((function(n){return 1==n.g?(t=new Promise((function(e,t){new mn(t).R(pr)})),k(n,2),x(n,Promise.race([Promise.all([e.close(),e.closed]),t]),4)):2!=n.g?T(n,0):(S(n),void w(n))}))}(n),5):x(t,n.remove(),5)):2!=t.g?T(t,0):(S(t),void w(t))}))}))),0)}))}function sr(e,t){if(!e.length)return t;if(!t.length)return e;for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){r=r.value;for(var a={},o=c(t),s=o.next();!s.done;a={Va:a.Va},s=o.next())if(s=s.value,r.keySystem==s.keySystem){a.Va=[],a.Va=a.Va.concat(r.initData||[]),a.Va=a.Va.concat(s.initData||[]),a.Va=a.Va.filter(function(e){return function(t,n){return void 0===t.keyId||n===e.Va.findIndex((function(e){return e.keyId===t.keyId}))}}(a)),o=r.keyIds&&s.keyIds?new Set([].concat(d(r.keyIds),d(s.keyIds))):r.keyIds||s.keyIds,n.push({keySystem:r.keySystem,licenseServerUri:r.licenseServerUri||s.licenseServerUri,distinctiveIdentifierRequired:r.distinctiveIdentifierRequired||s.distinctiveIdentifierRequired,persistentStateRequired:r.persistentStateRequired||s.persistentStateRequired,videoRobustness:r.videoRobustness||s.videoRobustness,audioRobustness:r.audioRobustness||s.audioRobustness,serverCertificate:r.serverCertificate||s.serverCertificate,serverCertificateUri:r.serverCertificateUri||s.serverCertificateUri,initData:a.Va,keyIds:o});break}}return n}function lr(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[])}function cr(e){return function(e,t){for(var n=c(e),i=n.next();!i.done;i=n.next())if(!t(i.value))return!1;return!0}(e=e.i.values(),(function(e){return e.loaded}))}function dr(e,t,n,i,r,a){for(var o={},s=(e=c(e)).next();!s.done;o={Fa:o.Fa},s=e.next()){if(o.Fa=s.value,t.includes(o.Fa.licenseServerUri)||t.push(o.Fa.licenseServerUri),i.includes(o.Fa.serverCertificateUri)||i.push(o.Fa.serverCertificateUri),o.Fa.serverCertificate&&(n.some(function(e){return function(t){return It(t,e.Fa.serverCertificate)}}(o))||n.push(o.Fa.serverCertificate)),o.Fa.initData){s={};for(var l=c(o.Fa.initData),d=l.next();!d.done;s={Tc:s.Tc},d=l.next())s.Tc=d.value,r.some(function(e){return function(t){var n=e.Tc;return!(!t.keyId||t.keyId!=n.keyId)||t.initDataType==n.initDataType&&It(t.initData,n.initData)}}(s))||r.push(s.Tc)}if(o.Fa.keyIds)for(l=(s=c(o.Fa.keyIds)).next();!l.done;l=s.next())a.add(l.value)}}function ur(t,n,i){!t.keySystem||"org.w3.clearkey"==t.keySystem&&t.licenseServerUri||(n.size&&(n=n.get(t.keySystem)||"",t.licenseServerUri=n),t.keyIds||(t.keyIds=new Set),(i=i.get(t.keySystem))&&(t.distinctiveIdentifierRequired||(t.distinctiveIdentifierRequired=i.distinctiveIdentifierRequired),t.persistentStateRequired||(t.persistentStateRequired=i.persistentStateRequired),t.videoRobustness||(t.videoRobustness=i.videoRobustness),t.audioRobustness||(t.audioRobustness=i.audioRobustness),t.serverCertificate||(t.serverCertificate=i.serverCertificate),i.sessionType&&(t.sessionType=i.sessionType),t.serverCertificateUri||(t.serverCertificateUri=i.serverCertificateUri)),e.cast&&e.cast.__platform__&&"com.microsoft.playready"==t.keySystem&&(t.keySystem="com.chromecast.playready"))}F("shaka.util.FairPlayUtils",Ui),Ui.initDataTransform=Vi,Ui.defaultGetContentId=Fi,(i=Ki.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e){this.h=e},i.yc=function(t){var n,i=this;return P((function(r){if(1==r.g)return i.B?(i.j=t,i.A.Ia(i.j,"play",(function(){for(var e=c(i.M),t=e.next();!t.done;t=e.next())rr(i,t.value);i.S=!0,i.M=[]})),"webkitCurrentPlaybackTargetIsWireless"in i.j&&i.A.o(i.j,"webkitcurrentplaybacktargetiswirelesschanged",(function(){return or(i)})),(n=i.g.initData.find((function(e){return 0<e.initData.length})))||e.shakaMediaKeysPolyfill||i.F.length?x(r,Xi(i),2):r.D(2)):(i.A.Ia(t,"encrypted",(function(){i.m(new xe(2,6,6010))})),r.return());Ji(i),n||i.F.length||i.A.o(i.j,"encrypted",(function(e){return function(e,t){return P((function(n){if(1==n.g)return x(n,Xi(e),2);Zi(e,t.initDataType,jt(t.initData)),w(n)}))}(i,e)})),w(r)}))},i.Cc=function(){for(var e=1/0,t=this.i.keys(),n=(t=c(t)).next();!n.done;n=t.next())n=n.value,isNaN(n.expiration)||(e=Math.min(e,n.expiration));return e},i.fd=function(){return Hi(this.xa)};var pr=1,hr=5,mr=.5,gr=new Rt((function(){return _t(new Uint8Array([0]))}));function fr(){}function vr(e,t,n,i){var r,a,o,s;return P((function(l){if(1==l.g)return i&&(r=xr[i.toLowerCase()])?l.return(r):(a=yr(e))&&(o=wr[a])?l.return(o):i?l.D(2):x(l,br(e,t,n),3);if(2!=l.g&&(i=l.h)&&(s=xr[i]))return l.return(s);throw new xe(2,4,4e3,e)}))}function br(e,t,n){var i,r,a;return P((function(o){return 1==o.g?((i=Ci([e],n)).method="HEAD",x(o,t.request(0,i).promise,2)):(r=o.h,a=r.headers["content-type"],o.return(a?a.toLowerCase().split(";").shift():""))}))}function yr(e){return 1==(e=new oe(e).Ka.split("/").pop().split(".")).length?"":e.pop().toLowerCase()}F("shaka.media.ManifestParser",fr),fr.unregisterParserByMime=function(e){delete xr[e]},fr.registerParserByMime=function(e,t){xr[e]=t},fr.registerParserByExtension=function(e,t){wr[e]=t};var xr={},wr={};function kr(e,t){this.V=Nt(e),this.h=t==Tr,this.g=0}function Ar(){return new xe(2,3,3e3)}(i=kr.prototype).Da=function(){return this.g<this.V.byteLength},i.qa=function(){return this.g},i.gg=function(){return this.V.byteLength},i.ub=function(){try{var e=this.V.getUint8(this.g);return this.g+=1,e}catch(e){throw Ar()}},i.ie=function(){try{var e=this.V.getUint16(this.g,this.h);return this.g+=2,e}catch(e){throw Ar()}},i.P=function(){try{var e=this.V.getUint32(this.g,this.h);return this.g+=4,e}catch(e){throw Ar()}},i.rf=function(){try{var e=this.V.getInt32(this.g,this.h);return this.g+=4,e}catch(e){throw Ar()}},i.nc=function(){try{if(this.h)var e=this.V.getUint32(this.g,!0),t=this.V.getUint32(this.g+4,!0);else t=this.V.getUint32(this.g,!1),e=this.V.getUint32(this.g+4,!1)}catch(e){throw Ar()}if(2097151<t)throw new xe(2,3,3001);return this.g+=8,t*Math.pow(2,32)+e},i.Eb=function(e){if(this.g+e>this.V.byteLength)throw Ar();var t=jt(this.V,this.g,e);return this.g+=e,t},i.skip=function(e){if(this.g+e>this.V.byteLength)throw Ar();this.g+=e},i.$g=function(e){if(this.g<e)throw Ar();this.g-=e},i.seek=function(e){if(0>e||e>this.V.byteLength)throw Ar();this.g=e},i.Lc=function(){for(var e=this.g;this.Da()&&0!=this.V.getUint8(this.g);)this.g+=1;return e=jt(this.V,e,this.g-e),this.g+=1,Bt(e)},F("shaka.util.DataViewReader",kr),kr.prototype.readTerminatedString=kr.prototype.Lc,kr.prototype.seek=kr.prototype.seek,kr.prototype.rewind=kr.prototype.$g,kr.prototype.skip=kr.prototype.skip,kr.prototype.readBytes=kr.prototype.Eb,kr.prototype.readUint64=kr.prototype.nc,kr.prototype.readInt32=kr.prototype.rf,kr.prototype.readUint32=kr.prototype.P,kr.prototype.readUint16=kr.prototype.ie,kr.prototype.readUint8=kr.prototype.ub,kr.prototype.getLength=kr.prototype.gg,kr.prototype.getPosition=kr.prototype.qa,kr.prototype.hasMoreData=kr.prototype.Da;var Tr=1;function Sr(){this.i=[],this.h=[],this.g=!1}function Er(e){for(var t=Nr(e);e.reader.Da()&&!e.parser.g;)e.parser.rd(e.start+t,e.reader,e.partialOkay)}function Ir(e){for(var t=Nr(e),n=e.reader.P(),i=(n=c(ie(n))).next();!i.done&&(e.parser.rd(e.start+t,e.reader,e.partialOkay),!e.parser.g);i=n.next());}function Cr(e){return function(t){e(t.reader.Eb(t.reader.V.byteLength-t.reader.qa()))}}function _r(e){for(var t=0,n=(e=c(e)).next();!n.done;n=e.next())t=t<<8|n.value.charCodeAt(0);return t}function jr(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)}function Nr(e){return 8+(e.has64BitSize?8:0)+(null!=e.flags?4:0)}kr.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:Tr},(i=Sr.prototype).box=function(e,t){var n=_r(e);return this.i[n]=Lr,this.h[n]=t,this},i.Y=function(e,t){var n=_r(e);return this.i[n]=Pr,this.h[n]=t,this},i.stop=function(){this.g=!0},i.parse=function(e,t,n){for(e=new kr(e,0),this.g=!1;e.Da()&&!this.g;)this.rd(0,e,t,n)},i.rd=function(e,t,n,i){var r=t.qa();if(i&&r+8>t.V.byteLength)this.g=!0;else{var a=t.P(),o=t.P(),s=!1;switch(a){case 0:a=t.V.byteLength-r;break;case 1:if(i&&t.qa()+8>t.V.byteLength)return void(this.g=!0);a=t.nc(),s=!0}var l=this.h[o];if(l){var c=null,d=null;if(this.i[o]==Pr){if(i&&t.qa()+4>t.V.byteLength)return void(this.g=!0);c=(d=t.P())>>>24,d&=16777215}o=r+a,n&&o>t.V.byteLength&&(o=t.V.byteLength),i&&o>t.V.byteLength?this.g=!0:(i=o-t.qa(),l({parser:this,partialOkay:n||!1,version:c,flags:d,reader:t=new kr(t=0<i?t.Eb(i):new Uint8Array(0),0),size:a,start:r+e,has64BitSize:s}))}else t.skip(Math.min(r+a-t.qa(),t.V.byteLength-t.qa()))}},F("shaka.util.Mp4Parser",Sr),Sr.headerSize=Nr,Sr.typeToString=jr,Sr.allData=Cr,Sr.sampleDescription=Ir,Sr.children=Er,Sr.prototype.parseNext=Sr.prototype.rd,Sr.prototype.parse=Sr.prototype.parse,Sr.prototype.stop=Sr.prototype.stop,Sr.prototype.fullBox=Sr.prototype.Y,Sr.prototype.box=Sr.prototype.box;var Lr=0,Pr=1;function Dr(e,t,n,i,r){var a=Or.value(),o=e.subarray(n.start,n.start+n.size),s=Nt(o),l=new Uint8Array(n.size+a.byteLength);for(l.set(o,0),(o=Nt(l)).setUint32(4,r),l.set(a,n.size),r=s.getUint32(4),o.setUint32(n.size+16,r),Mr(l,0,l.byteLength),r=new 
2Uint8Array(e.byteLength+l.byteLength),n=xn("Xbox One")?n.start:n.start+n.size,a=e.subarray(n),r.set(e.subarray(0,n)),r.set(l,n),r.set(a,n+l.byteLength),i=(e=c(i)).next();!i.done;i=e.next())Mr(r,(i=i.value).start,i.size+l.byteLength);return l=Nt(r,t.start),t=Nr(t),e=l.getUint32(t),l.setUint32(t,e+1),r}function Mr(e,t,n){0!=(t=(e=Nt(e,t)).getUint32(0))&&(1==t?(e.setUint32(8,n>>32),e.setUint32(12,4294967295&n)):e.setUint32(0,n))}var Or=new Rt((function(){return new Uint8Array([0,0,0,80,115,105,110,102,0,0,0,12,102,114,109,97,0,0,0,0,0,0,0,20,115,99,104,109,0,0,0,0,99,101,110,99,0,1,0,0,0,0,0,40,115,99,104,105,0,0,0,32,116,101,110,99,0,0,0,0,0,0,1,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])}));function Rr(e,t,n,i,r){if(i>=r)return null;for(var a=-1,o=-1,s=0;s<n.length;s++)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){a=s;break}for(s=n.length-1;0<=s;s--)if(n[s].some((function(e){return null!=e&&""!=e.g.trim()}))){o=s;break}if(-1===a||-1===o)return null;for(var l=s=!1,c="white",d="black",u=zr(i,r,s,l,c,d);a<=o;a++){for(var p=n[a],h=-1,m=-1,g=0;g<p.length;g++)if(null!=p[g]&&""!==p[g].g.trim()){h=g;break}for(g=p.length-1;0<=g;g--)if(null!=p[g]&&""!==p[g].g.trim()){m=g;break}if(-1===h||-1===m)p=Br(i,r),e.nestedCues.push(p);else{for(;h<=m;h++)if(g=p[h]){var f=g.l,v=g.i,b=g.j,y=g.h;f==s&&v==l&&b==c&&y==d||(u.payload&&e.nestedCues.push(u),u=zr(i,r,f,v,b,y),s=f,l=v,c=b,d=y),u.payload+=g.g}else u.payload+=" ";u.payload&&e.nestedCues.push(u),a!==o&&(u=Br(i,r),e.nestedCues.push(u)),u=zr(i,r,s,l,c,d)}}return e.nestedCues.length?{cue:e,stream:t}:null}function zr(e,t,n,i,r,a){return e=new ot(e,t,""),n&&e.textDecoration.push("underline"),i&&(e.fontStyle="italic"),e.color=r,e.backgroundColor=a,e}function Br(e,t){var n=new ot(e,t,"");return n.lineBreak=!0,n}function Ur(e,t,n,i,r){this.g=e,this.l=t,this.i=n,this.h=i,this.j=r}function Fr(e,t){this.i=[],this.g=1,this.h=0,this.C=e,this.B=t,this.j=this.m=!1,this.l="white",this.A="black",qr(this)}function Vr(e,t,n){return Rr(new ot(t,n,""),"CC"+(e.C<<1|e.B+1),e.i,t,n)}function qr(e){Kr(e,0,15),e.g=1}function Hr(e,t,n){if(!(32>n||127<n)){var i="";switch(t){case $r:i=Jr.has(n)?Jr.get(n):String.fromCharCode(n);break;case Wr:i=Zr.get(n);break;case Xr:e.i[e.g].pop(),i=Qr.get(n);break;case Yr:e.i[e.g].pop(),i=ea.get(n)}i&&e.i[e.g].push(new Ur(i,e.m,e.j,e.A,e.l))}}function Gr(e,t,n,i){if(t>=n)for(--i;0<=i;i--)e.i[t+i]=e.i[n+i].map((function(e){return e}));else for(var r=0;r<i;r++)e.i[t+r]=e.i[n+r].map((function(e){return e}))}function Kr(e,t,n){for(var i=0;i<=n;i++)e.i[t+i]=[]}var $r=0,Wr=1,Xr=2,Yr=3,Jr=new Map([[39,"’"],[42,"á"],[92,"é"],[92,"é"],[94,"í"],[95,"ó"],[96,"ú"],[123,"ç"],[124,"÷"],[125,"Ñ"],[126,"ñ"],[127,"█"]]),Zr=new Map([[48,"®"],[49,"°"],[50,"½"],[51,"¿"],[52,"™"],[53,"¢"],[54,"£"],[55,"♪"],[56,"à"],[57,"⠀"],[58,"è"],[59,"â"],[60,"ê"],[61,"î"],[62,"ô"],[63,"û"]]),Qr=new Map([[32,"Á"],[33,"É"],[34,"Ó"],[35,"Ú"],[36,"Ü"],[37,"ü"],[38,"‘"],[39,"¡"],[40,"*"],[41,"'"],[42,"─"],[43,"©"],[44,"℠"],[45,"·"],[46,"“"],[47,"”"],[48,"À"],[49,"Â"],[50,"Ç"],[51,"È"],[52,"Ê"],[53,"Ë"],[54,"ë"],[55,"Î"],[56,"Ï"],[57,"ï"],[58,"Ô"],[59,"Ù"],[60,"ù"],[61,"Û"],[62,"«"],[63,"»"]]),ea=new Map([[32,"Ã"],[33,"ã"],[34,"Í"],[35,"Ì"],[36,"ì"],[37,"Ò"],[38,"ò"],[39,"Õ"],[40,"õ"],[41,"{"],[42,"}"],[43,"\\"],[44,"^"],[45,"_"],[46,"|"],[47,"~"],[48,"Ä"],[49,"ä"],[50,"Ö"],[51,"ö"],[52,"ß"],[53,"¥"],[54,"¤"],[55,"│"],[56,"Å"],[57,"å"],[58,"Ø"],[59,"ø"],[60,"┌"],[61,"┐"],[62,"└"],[63,"┘"]]);function ta(e,t){this.h=aa,this.A=new Fr(e,t),this.i=new Fr(e,t),this.l=new Fr(e,t),this.g=this.i,this.j=0,this.m=null}function na(e,t,n){e.g=e.i;var i=e.g,r=null;return e.h!==sa&&e.h!==la&&(r=Vr(i,e.j,n),(n=e.i).g=0<n.h?n.h:0,Kr(n,0,15),(n=e.l).g=0<n.h?n.h:0,Kr(n,0,15),i.g=15),e.h=sa,i.h=t,r}function ia(e){e.h=oa,e.g=e.l,e.g.h=0}function ra(e){$("Cea608DataChannel","CEA-608 text mode entered, but is unsupported"),e.g=e.A,e.h=la}var aa=0,oa=1,sa=3,la=4,ca="black green blue cyan red yellow magenta black".split(" "),da="white green blue cyan red yellow magenta white_italics".split(" ");function ua(){this.l=!1,this.F=this.H=0,this.G=ya,this.i=[],this.g=this.h=this.j=0,this.C=this.A=!1,this.B="white",this.m="black",pa(this)}function pa(e){e.i=[];for(var t=0;15>t;t++)e.i.push(ha())}function ha(){for(var e=[],t=0;42>t;t++)e.push(null);return e}function ma(e,t){ga(e)&&(e.i[e.h][e.g]=new Ur(t,e.C,e.A,e.m,e.B),e.g++)}function ga(e){var t=e.g<e.F&&0<=e.g;return e.h<e.H&&0<=e.h&&t}function fa(e,t,n){var i=new ot(e.j,t,"");return i.textAlign=e.G===va?"left":e.G===ba?"right":ct,(n=Rr(i,"svc"+n,e.i,e.j,t))&&(e.j=t),n}ua.prototype.isVisible=function(){return this.l};var va=0,ba=1,ya=2;function xa(){this.i=[],this.h=null,this.g=0}function wa(e,t){3===t.type?(e.g=2*(63&t.value)-1,e.h=[]):e.h&&(0<e.g&&(e.h.push(t),e.g--),0===e.g&&(e.i.push(new ka(e.h)),e.h=null,e.g=0))}function ka(e){this.g=0,this.h=e}function Aa(e){if(!e.Da())throw new xe(2,2,3e3);return e.h[e.g++]}function Ta(e){this.i=e,this.h=[null,null,null,null,null,null,null,null],this.g=null}function Sa(e,t,n,i){if(128<=n&&135>=n)i=7&n,e.h[i]&&(e.g=e.h[i]);else{if(136===n){n=Aa(t).value,t=null;for(var r=(n=c(Ea(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=fa(r,i,e.i)),pa(r);return t}
2if(137===n)for(t=Aa(t).value,n=(t=c(Ea(e,t))).next();!n.done;n=t.next())(n=e.h[n.value]).isVisible()||(n.j=i),n.l=!0;else{if(138===n){for(n=Aa(t).value,t=null,r=(n=c(Ea(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()&&(t=fa(r,i,e.i)),r.l=!1;return t}if(139===n){for(n=Aa(t).value,t=null,r=(n=c(Ea(e,n))).next();!r.done;r=n.next())(r=e.h[r.value]).isVisible()?t=fa(r,i,e.i):r.j=i,r.l=!r.l;return t}if(140===n)return Ia(e,t=Aa(t).value,i);if(143===n)return i=Ia(e,255,i),Ca(e),i;if(144===n)t.skip(1),i=Aa(t).value,e.g&&(e.g.A=0<(128&i),e.g.C=0<(64&i));else if(145===n)i=Aa(t).value,n=Aa(t).value,t.skip(1),e.g&&(t=_a((48&n)>>4,(12&n)>>2,3&n),e.g.B=_a((48&i)>>4,(12&i)>>2,3&i),e.g.m=t);else if(146===n)i=Aa(t).value,t=Aa(t).value,e.g&&((e=e.g).h=15&i,e.g=63&t);else if(151===n)t.skip(1),t.skip(1),i=Aa(t).value,t.skip(1),e.g&&(e.g.G=3&i);else if(152<=n&&159>=n){if(n=(15&n)-8,!(r=null!==e.h[n])){var a=new ua;a.j=i,e.h[n]=a}i=Aa(t).value,Aa(t),Aa(t),a=Aa(t).value;var o=Aa(t).value;t=Aa(t).value,r&&!(7&t)||((t=e.h[n]).h=0,t.g=0,t.C=!1,t.A=!1,t.B="white",t.m="black"),(t=e.h[n]).l=0<(32&i),t.H=1+(15&a),t.F=1+(63&o),e.g=e.h[n]}}}return null}ka.prototype.Da=function(){return this.g<this.h.length},ka.prototype.qa=function(){return this.g},ka.prototype.skip=function(e){if(this.g+e>this.h.length)throw new xe(2,2,3e3);this.g+=e};var Ea=function e(t,n){var i;return L(e,(function(e){return 1==e.g&&(i=0),5!=e.g?8>i?!(1&~n)&&t.h[i]?x(e,i,5):e.D(5):e.D(0):(n>>=1,i++,e.D(2))}))};function Ia(e,t,n){for(var i=null,r=(t=c(Ea(e,t))).next();!r.done;r=t.next()){r=r.value;var a=e.h[r];a.isVisible()&&(i=fa(a,n,e.i)),e.h[r]=null}return i}function Ca(e){e.g=null,e.h=[null,null,null,null,null,null,null,null]}function _a(e,t,n){var i={0:0,1:0,2:1,3:1};return Na[(e=i[e])<<2|(t=i[t])<<1|(n=i[n])]}var ja=new Map([[32," "],[33," "],[37,"…"],[42,"Š"],[44,"Œ"],[48,"█"],[49,"‘"],[50,"’"],[51,"“"],[52,"”"],[53,"•"],[57,"™"],[58,"š"],[60,"œ"],[61,"℠"],[63,"Ÿ"],[118,"⅛"],[119,"⅜"],[120,"⅝"],[121,"⅞"],[122,"│"],[123,"┐"],[124,"└"],[125,"─"],[126,"┘"],[127,"┌"]]),Na="black blue green cyan red magenta yellow white".split(" ");function La(){this.h=[],this.g=[],this.i=new xa,this.l=0,this.B=new Map([["CC1",new ta(0,0)],["CC2",new ta(0,1)],["CC3",new ta(1,0)],["CC4",new ta(1,1)]]),this.A=this.m=0,this.j=new Map,Pa(this)}function Pa(e){e.m=0,e.A=0;for(var t=(e=c(e.B.values())).next();!t.done;t=e.next())(t=t.value).h=2,t.g=t.i,t.m=null,qr(t.i),qr(t.l),qr(t.A)}function Da(e,t){var n=t.type;if(16==(112&t.Qa)){var i=t.Qa>>3&1;0===n?e.m=i:e.A=i}if(n=e.B.get("CC"+(n<<1|(n?e.A:e.m)+1)),255===t.Qa&&255===t.ob||!t.Qa&&!t.ob||!Oa(t.Qa)||!Oa(t.ob))return 45<=++e.l&&Pa(e),null;if(e.l=0,t.Qa&=127,t.ob&=127,!t.Qa&&!t.ob)return null;if(i=null,16==(112&t.Qa))e:{var r=t.Qa;if(i=t.ob,n.m===(r<<8|i))n.m=null;else if(n.m=r<<8|i,16==(240&r)&&64==(192&i)){r=[11,11,1,2,3,4,12,13,14,15,5,6,7,8,9,10][(7&r)<<1|i>>5&1];var a=(30&i)>>1,o="white",s=!1;if(7>a?o=da[a]:7===a&&(s=!0),i=!(1&~i),n.h!==la){if(a=n.g,n.h===sa&&r!==a.g){var l=1+r-a.h;Gr(a,l,1+a.g-a.h,a.h),Kr(a,0,l-1),Kr(a,r+1,15-r)}a.g=r,n.g.m=i,n.g.j=s,n.g.l=o,n.g.A="black"}}else if(17==(247&r)&&32==(240&i))n.g.m=!1,n.g.j=!1,n.g.l="white",Hr(n.g,$r,32),o=!1,"white_italics"===(r=da[(14&i)>>1])&&(r="white",o=!0),n.g.m=!(1&~i),n.g.j=o,n.g.l=r;else if(16==(247&r)&&32==(240&i)||23==(247&r)&&45==(255&i))o="black",!(7&r)&&(o=ca[(14&i)>>1]),n.g.A=o;else if(17==(247&r)&&48==(240&i))Hr(n.g,Wr,i);else if(18==(246&r)&&32==(224&i))Hr(n.g,1&r?Yr:Xr,i);else if(20==(246&r)&&32==(240&i)){switch(i=t.pts,r=null,t.ob){case 32:ia(n);break;case 33:(n=n.g).i[n.g].pop();break;case 37:r=na(n,2,i);break;case 38:r=na(n,3,i);break;case 39:r=na(n,4,i);break;case 40:Hr(n.g,$r,32);break;case 41:n.h=2,n.g=n.i,n.g.h=0,n.j=i;break;case 42:qr(n.A),ra(n);break;case 43:ra(n);break;case 44:r=n.i,o=null,n.h!==la&&(o=Vr(r,n.j,i)),Kr(r,0,15),r=o;break;case 45:r=n.g,n.h!==sa?r=null:(o=Vr(r,n.j,i),Gr(r,(s=r.g-r.h+1)-1,s,r.h),Kr(r,0,s-1),Kr(r,r.g,15-r.g),n.j=i,r=o);break;case 46:Kr(n.l,0,15);break;case 47:r=null,n.h!==la&&(r=Vr(n.i,n.j,i)),o=n.l,n.l=n.i,n.i=o,ia(n),n.j=i}i=r;break e}i=null}else r=t.ob,Hr(n.g,$r,t.Qa),Hr(n.g,$r,r);return i}function Ma(e,t){var n=[];try{for(;t.Da();){var i=Aa(t).value,r=(224&i)>>5,a=31&i;if(7===r&&0!=a&&(r=63&Aa(t).value),0!=r){e.j.has(r)||e.j.set(r,new Ta(r));for(var o=e.j.get(r),s=t.qa();t.qa()-s<a;){var l=Aa(r=t),c=l.value,d=l.pts;if(16===c)c=c<<16|Aa(r).value;if(0<=c&&31>=c){var u=d;if(o.g){var p=o.g;switch(r=null,c){case 8:!ga(p)||0>=p.g&&0>=p.h||(0>=p.g?(p.g=p.F-1,p.h--):p.g--,p.i[p.h][p.g]=null);break;case 13:if(p.isVisible()&&(r=fa(p,u,o.i)),p.h+1>=p.H){u=p;for(var h=0,m=1;15>m;m++,h++)u.i[h]=u.i[m];for(m=0;1>m;m++,h++)u.i[h]=ha()}else p.h++;p.g=0;break;case 14:p.isVisible()&&(r=fa(p,u,o.i)),p.i[p.h]=ha(),p.g=0;break;case 12:p.isVisible()&&(r=fa(p,u,o.i)),pa(p),(u=p).h=0,u.g=0}var g=r}else g=null}else if(128<=c&&159>=c)g=Sa(o,r,c,d);else{if(4096<=c&&4127>=c)8<=(u=255&c)&&15>=u?r.skip(1):16<=u&&23>=u?r.skip(2):24<=u&&31>=u&&r.skip(3);else if(4224<=c&&4255>=c)128<=(u=255&c)&&135>=u?r.skip(4):136<=u&&143>=u&&r.skip(5);else if(32<=c&&127>=c)r=c,o.g&&ma(o.g,127===r?"♪":String.fromCharCode(r));else if(160<=c&&255>=c)o.g&&ma(o.g,String.fromCharCode(c));else if(4128<=c&&4223>=c){if(r=255&c,o.g)if(ja.has(r)){var f=ja.get(r);ma(o.g,f)}else ma(o.g,"_")}else 4256<=c&&4351>=c&&o.g&&ma(o.g,160!=(255&c)?"_":"[CC]");g=null}(r=g)&&n.push(r)}}}}catch(e){if(!(e instanceof xe&&3e3===e.code))throw e;
2$("CEA708_INVALID_DATA","Buffer read out of bounds / invalid CEA-708 Data.")}return n}function Oa(e){for(var t=0;e;)t^=1&e,e>>=1;return 1===t}function Ra(){}var za=function e(t,n){var i,r,a,o;return L(e,(function(e){if(1==e.g){for(var t=n,s=0,l=0;l<t.length;)2==s&&3==t[l]?(s=0,(t=[].concat(d(t))).splice(l,1),t=new Uint8Array(t)):0==t[l]?s++:s=0,l++;i=t,r=0}if(4!=e.g){if(!(r<i.length))return e.D(0);for(a=0;255==i[r];)a+=255,r++;for(a+=i[r++],o=0;255==i[r];)o+=255,r++;return o+=i[r++],4!=a?e.D(4):x(e,i.subarray(r,r+o),4)}return r+=o,e.D(2)}))};function Ba(e,t){var n=null,i=null,r=e.P();return 1&t&&e.skip(8),2&t&&e.skip(4),8&t&&(n=e.P()),16&t&&(i=e.P()),{trackId:r,Xe:n,Rf:i}}function Ua(e,t){return{Ne:1==t?e.nc():e.P()}}function Fa(e,t){return 1==t?(e.skip(8),e.skip(8)):(e.skip(4),e.skip(4)),{timescale:e.P()}}function Va(e,t,n){var i=e.P(),r=[];1&n&&e.skip(4),4&n&&e.skip(4);for(var a=c(ie(i)),o=a.next();!o.done;o=a.next())o={me:null,sampleSize:null,ud:null},256&n&&(o.me=e.P()),512&n&&(o.sampleSize=e.P()),1024&n&&e.skip(4),2048&n&&(o.ud=0==t?e.P():e.rf()),r.push(o);return{Ni:i,uf:r}}function qa(){this.j=new Ra,this.i=new Map,this.h=this.g=0}function Ha(){this.h=new qa,this.g=new La}function Ga(e,t){for(var n=e.h.parse(t),i=(n=c(n)).next();!i.done;i=n.next()){var r=i.value,a=jt(r.Og);if(0<a.length&&(i=e.g,r=r.pts,181===(a=new kr(a,0)).ub()&&49===a.ie()&&1195456820===a.P()&&3===a.ub())){var o=a.ub();if(64&o){o&=31,a.skip(1);for(var s=0;s<o;s++){var l=a.ub(),u=(4&l)>>2,p=a.ub(),h=a.ub();u&&(0===(l&=3)||1===l?i.h.push({pts:r,type:l,Qa:p,ob:h,order:i.h.length}):(i.g.push({pts:r,type:l,value:p,order:i.g.length}),i.g.push({pts:r,type:2,value:h,order:i.g.length})))}}}}return function(e){function t(e,t){return e.pts-t.pts||e.order-t.order}var n=[];e.h.sort(t),e.g.sort(t);for(var i=c(e.h),r=i.next();!r.done;r=i.next())(r=Da(e,r.value))&&n.push(r);for(r=(i=c(e.g)).next();!r.done;r=i.next())wa(e.i,r.value);for(r=(i=c(e.i.i)).next();!r.done;r=i.next())r=Ma(e,r.value),n.push.apply(n,d(r));return e.i.i=[],e.h=[],e.g=[],n}(e.g)}function Ka(e){return!e||1==e.length&&1e-6>e.end(0)-e.start(0)?null:e.length?e.end(e.length-1):null}function $a(e,t,n){return n=void 0===n?0:n,!(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)||t>e.end(e.length-1))&&t+n>=e.start(0)}function Wa(e,t){if(!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0))return 0;for(var n=0,i=c(Xa(e)),r=i.next();!r.done;r=i.next()){var a=r.value;r=a.start,(a=a.end)>t&&(n+=a-Math.max(r,t))}return n}function Xa(e){if(!e)return[];for(var t=[],n=c(ie(e.length)),i=n.next();!i.done;i=n.next())i=i.value,t.push({start:e.start(i),end:e.end(i)});return t}function Ya(e,t,n,i){var r=this;this.j=e,this.l=n,this.h={},this.J={},this.g=null,this.K=i||function(){},this.i={},this.A=new Ri,this.B={},this.C=t,this.G=new Ot,this.m=function(e,t){var n=new MediaSource;return e.A.Ia(n,"sourceopen",(function(){URL.revokeObjectURL(e.H),t.resolve()})),e.H=uo(n),e.j.src=e.H,n}(this,this.G),this.F=new Mi((function(){return function(e){var t,n,i,r,a,o,s;return P((function(l){if(1==l.g){for(n in t=[],e.i)for(i=e.i[n],r=i[0],e.i[n]=i.slice(0,1),r&&t.push(r.p.catch(Ie)),a=c(i.slice(1)),o=a.next();!o.done;o=a.next())o.value.p.reject(new xe(2,7,7003,void 0));
2for(s in e.g&&t.push(e.g.destroy()),e.l&&t.push(e.l.destroy()),e.B)t.push(e.B[s].destroy());return x(l,Promise.all(t),2)}e.A&&(e.A.release(),e.A=null),e.j&&(e.j.removeAttribute("src"),e.j.load(),e.j=null),e.m=null,e.g=null,e.l=null,e.h={},e.B={},e.C=null,e.i={},w(l)}))}(r)})),this.H=""}function Ja(e,t,n){e.g||(e.g=new sn(e.l)),e=e.g,"application/cea-608"!=t&&"application/cea-708"!=t&&(e.j=_e(pn[t]),e.j.setSequenceMode?e.j.setSequenceMode(n):K('Text parsers should have a "setSequenceMode" method!'))}function Za(e){return!e.m||"ended"==e.m.readyState}function Qa(e,t){if(t==De)var n=e.g.g;else n=!(n=to(e,t))||1==n.length&&1e-6>n.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function eo(e,t){return t==De?e.g.h:Ka(to(e,t))}function to(e,t){try{return e.h[t].buffered}catch(e){return null}}function no(e,t,n,i,r,a,o,s){var l,d,u,p,h,m,g,f,v;return P((function(b){return 1==b.g?(l=Me,null!=i&&s&&t!=l.ma&&o&&(d=i,ao(e,t,(function(){var n=d;0>n&&(n+=.001),e.h[t].timestampOffset=n,ro(e,t)}))),t==l.ma?x(b,function(e,t,n,i){var r,a,o;return P((function(s){return 1==s.g?x(s,Promise.resolve(),2):e.j&&e.i?null==n||null==i?(e.j.parseInit(jt(t)),s.return()):(r={periodStart:e.C,segmentStart:n,segmentEnd:i},a=e.j.parseMedia(jt(t),r),o=a.filter((function(t){return t.startTime>=e.l&&t.startTime<e.m})),e.i.append(o),null==e.g&&(e.g=Math.max(n,e.l)),e.h=Math.min(i,e.m),void w(s)):s.return()}))}(e.g,n,i,r),0):e.B[t]?x(b,function(e,t){e.l=!0,e.h=new Ot,e.m=[],e.j=[],e.i=[];var n=jt(t);return e.g.push(n),e.g.flush(),e.l&&e.h.reject(new xe(2,3,3018)),e.h}(e.B[t],n),10):a?(e.g||Ja(e,"text/vtt",s||!1),null==i&&null==r?e.C.init(n):(u=Ga(e.C,n)).length&&(p=e.h[l.ib].timestampOffset,un(e.g,u,i,r,p)),n=co(e,n,i,t),x(b,ao(e,t,(function(){e.h[t].appendBuffer(n)})),0)):(n=co(e,n,i,t),x(b,ao(e,t,(function(){e.h[t].appendBuffer(n)})),0))):(h=b.h,e.g||Ja(e,"text/vtt",s||!1),h.metadata&&(m=e.h[t].timestampOffset,e.K(h.metadata,m,r)),h.captions&&h.captions.length&&(g=e.h[l.ib].timestampOffset,f=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())n=n.value,t.push({stream:n.stream,cue:new ot(n.startTime,n.endTime,n.text)});return t}(h.captions),un(e.g,f,i,r,g)),v=h.data,v=co(e,v,i,t),x(b,ao(e,t,(function(){e.h[t].appendBuffer(v)})),0))}))}function io(e,t){return P((function(n){return t==Me.ma?e.g?x(n,e.g.remove(0,1/0),0):n.return():x(n,ao(e,t,(function(){var n=e.m.duration;0>=n?ro(e,t):e.h[t].remove(0,n)})),0)}))}function ro(e,t){var n=e.i[t][0];n&&(n.p.resolve(),so(e,t))}function ao(e,t,n){return Oi(e.F),n={start:n,p:new Ot},e.i[t].push(n),1==e.i[t].length&&lo(e,t),n.p}function oo(e,t){var n,i,r,a,o;return P((function(s){switch(s.g){case 1:for(r in Oi(e.F),n=[],i={},e.h)i.uc=new Ot,a={start:function(e){return function(){return e.uc.resolve()}}(i),p:i.uc},e.i[r].push(a),n.push(i.uc),1==e.i[r].length&&a.start(),i={uc:i.uc};return k(s,2),x(s,Promise.all(n),4);case 4:T(s,3);break;case 2:throw S(s);case 3:try{t()}catch(e){throw new xe(2,3,3015,e)}finally{for(o in e.h)so(e,o)}w(s)}}))}function so(e,t){e.i[t].shift(),lo(e,t)}function lo(e,t){var n=e.i[t][0];if(n)try{n.start()}catch(i){"QuotaExceededError"==i.name?n.p.reject(new xe(2,3,3017,t)):n.p.reject(new xe(2,3,3015,i)),so(e,t)}}function co(e,t,n,i){var r=e.j.mediaKeys;return null==n&&r&&(vn()||xn("Xbox One"))&&"mp4"==e.J[i].split(";")[0].split("/")[1]&&(t=function(e){function t(){r=!0}function n(e){a.push(e),Er(e)}e=jt(e);var i,r=!1,a=[],o=[];if((new Sr).box("moov",n).box("trak",n).box("mdia",n).box("minf",n).box("stbl",n).Y("stsd",(function(e){i=e,a.push(e),Ir(e)})).Y("encv",t).Y("enca",t).Y("avc1",(function(e){o.push({box:e,Jc:1701733238})})).Y("avc3",(function(e){o.push({box:e,Jc:1701733238})})).Y("ac-3",(function(e){o.push({box:e,Jc:1701733217})})).Y("ec-3",(function(e){o.push({box:e,Jc:1701733217})})).Y("mp4a",(function(e){o.push({box:e,Jc:1701733217})})).parse(e),r)return e;if(0==o.length||!i)throw Yt(e),new xe(2,3,3019);o.reverse();for(var s=c(o),l=s.next();!l.done;l=s.next())l=l.value,e=Dr(e,i,l.box,a,l.Jc);return e}(t)),t}qa.prototype.init=function(e){var t=this,n=[],i=[];if((new Sr).box("moov",Er).box("mvex",Er).Y("trex",(function(e){var n=e.reader;n.skip(4),n.skip(4),e=n.P(),n=n.P(),t.g=e,t.h=n})).box("trak",Er).Y("tkhd",(function(e){var t=e.reader;1==e.version?(t.skip(8),t.skip(8)):(t.skip(4),t.skip(4)),e=t.P(),n.push(e)})).box("mdia",Er).Y("mdhd",(function(e){e=Fa(e.reader,e.version),i.push(e.timescale)})).parse(e,!0),!n.length||!i.length||n.length!=i.length)throw new xe(2,2,2010);
2n.forEach((function(e,n){t.i.set(e,i[n])}))},qa.prototype.parse=function(e){var t=this,n=[],i=this.g,r=this.h,a=[],o=null,s=9e4;return(new Sr).box("moof",Er).box("traf",Er).Y("trun",(function(e){a=Va(e.reader,e.version,e.flags).uf})).Y("tfhd",(function(e){e=Ba(e.reader,e.flags),i=e.Xe||t.g,r=e.Rf||t.h,e=e.trackId,t.i.has(e)&&(s=t.i.get(e))})).Y("tfdt",(function(e){o=Ua(e.reader,e.version).Ne})).box("mdat",(function(e){if(null===o)throw new xe(2,2,2010);e=e.reader;var l=o,d=s,u=i,p=r,h=a,m=0,g=p;for(h.length&&(g=h[0].sampleSize||p);e.Da();){var f=e.P();if(6==(31&e.ub())){var v=0;h.length>m&&(v=h[m].ud||0),v=(l+v)/d;for(var b=c(za(t.j,e.Eb(f-1))),y=b.next();!y.done;y=b.next())n.push({Og:y.value,pts:v})}else try{e.skip(f-1)}catch(e){break}0==(g-=f+4)&&(l=h.length>m?l+(h[m].me||u):l+u,m++,g=h.length>m&&h[m].sampleSize||p)}})).parse(e,!1),n},Ha.prototype.init=function(e){this.h.init(e)},(i=Ya.prototype).destroy=function(){return this.F.destroy()},i.init=function(e,t,n){n=void 0!==n&&n;var i,r,a,o,s,l,d,u=this;return P((function(p){if(1==p.g)return i=Me,x(p,u.G,2);for(r={},a=c(e.keys()),o=a.next();!o.done;r={Ha:r.Ha},o=a.next())r.Ha=o.value,s=e.get(r.Ha),l=nn(s.mimeType,s.codecs),r.Ha==i.ma?Ja(u,l,n):(!t&&MediaSource.isTypeSupported(l)||!Qt(l,r.Ha)||(u.B[r.Ha]=new Zt,l=tn(r.Ha,l)),d=u.m.addSourceBuffer(l),n&&(d.mode=po),u.A.o(d,"error",function(e){return function(){u.i[e.Ha][0].p.reject(new xe(2,3,3014,u.j.error?u.j.error.code:0))}}(r)),u.A.o(d,"updateend",function(e){return function(){return ro(u,e.Ha)}}(r)),u.h[r.Ha]=d,u.J[r.Ha]=l,u.i[r.Ha]=[]);w(p)}))},i.Bb=function(){var e={total:Xa(this.j.buffered),audio:Xa(to(this,"audio")),video:Xa(to(this,"video")),text:[]};if(this.g){var t=this.g.g,n=this.g.h;null!=t&&null!=n&&e.text.push({start:t,end:n})}return e},i.remove=function(e,t,n){var i=this;return P((function(r){return e==Me.ma?x(r,i.g.remove(t,n),0):x(r,ao(i,e,(function(){n<=t?ro(i,e):i.h[e].remove(t,n)})),0)}))},i.flush=function(e){var t=this;return P((function(n){return e==Me.ma?n.return():x(n,ao(t,e,(function(){t.j.currentTime-=.001,ro(t,e)})),0)}))},i.endOfStream=function(e){var t=this;return P((function(n){return x(n,oo(t,(function(){Za(t)||(e?t.m.endOfStream(e):t.m.endOfStream())})),0)}))},i.eb=function(e){var t=this;return P((function(n){return x(n,oo(t,(function(){t.m.duration=e})),0)}))},i.getDuration=function(){return this.m.duration};var uo=e.URL.createObjectURL,po="sequence",ho=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function mo(e,t,n,i){this.Ra=e,this.Ua=t,this.Ca=n,this.Xd=void 0===i?null:i}function go(e,t,n,i,r,a,o,s,l,c,d,u){c=void 0===c?[]:c,this.startTime=e,this.l=this.endTime=t,this.j=n,this.Ua=i,this.Ca=r,this.g=a,this.timestampOffset=o,this.appendWindowStart=s,this.appendWindowEnd=l,this.h=c,this.tilesLayout=void 0===d?"":d,this.i=void 0===u?null:u}function fo(e,t,n){this.j=e,this.sd=t,this.m=this.l=1/0,this.g=1,this.h=this.i=null,this.A=0,this.B=!0,this.C=0,this.F=void 0===n||n,this.G=0}function vo(e,t){this.j=e,this.m=yo(e),this.g=e.g.currentTime,this.l=Date.now()/1e3,this.h=!1,this.A=t,this.i=function(){}}function bo(e){this.g=e}function yo(e){if(e.g.paused||0==e.g.playbackRate||0==e.g.buffered.length)var t=!1;else e:{t=e.g.currentTime;for(var n=(e=c(Xa(e.g.buffered))).next();!n.done;n=e.next())if(!(t<(n=n.value).start-.1||t>n.end-.5)){t=!0;break e}t=!1}return t}function xo(e,t,n,i,r){var a=this;this.g=e,this.F=t,this.l=n,this.C=r,this.i=new Ri,this.B=!1,this.G=e.readyState,this.j=!1,this.h=i,this.A=!1,this.i.o(e,"waiting",(function(){return wo(a)})),this.m=new mn((function(){wo(a)})).ka(.25)}function wo(e){if(0!=e.g.readyState){if(e.g.seeking){if(!e.B)return}else e.B=!1;if(!e.g.paused||0==e.g.currentTime&&(e.g.autoplay||0!=e.g.currentTime)){var t;if(e.g.readyState!=e.G&&(e.j=!1,e.G=e.g.readyState),!(t=!e.h)){var n=(t=e.h).j,i=yo(n),r=n.g.currentTime,a=Date.now()/1e3;t.g==r&&t.m==i||(t.l=a,t.g=r,t.m=i,t.h=!1),(i=(r=a-t.l)>=t.A&&i&&!t.h)&&(t.i(t.g,r),t.h=!0,t.g=n.g.currentTime),t=!i}if(t){r=e.l.smallGapLimit;var o=e.g.currentTime;if(n=function(e,t,n){return!e||!e.length||1==e.length&&1e-6>e.end(0)-e.start(0)?null:0<=(e=Xa(e).findIndex((function(e,i,r){return e.start>t&&(0==i||r[i-1].end-t<=n)})))?e:null}(t=e.g.buffered,o,e.l.gapDetectionThreshold),!(null==n||0==n&&!e.A||(i=t.start(n),i>=e.F.pb()))){var s=i-o;r=s<=r,a=!1,.001>s||(r||e.j||(e.j=!0,(o=new V("largegap",o=(new Map).set("currentTime",o).set("gapSize",s))).c
2ancelable=!0,e.C(o),e.l.jumpLargeGaps&&!o.defaultPrevented&&(a=!0)),!r&&!a)||(0!=n&&t.end(n-1),e.g.currentTime=i)}}}}}function ko(e,t,n,i){t==HTMLMediaElement.HAVE_NOTHING||e.readyState>=t?i():(t=Ao.value().get(t),n.Ia(e,t,i))}mo.prototype.Fc=function(){return this.Ua},mo.prototype.Bc=function(){return this.Ca},F("shaka.media.InitSegmentReference",mo),mo.prototype.getEndByte=mo.prototype.Bc,mo.prototype.getStartByte=mo.prototype.Fc,(i=go.prototype).Ra=function(){return this.j()},i.sg=function(){return this.startTime},i.eg=function(){return this.endTime},i.Fc=function(){return this.Ua},i.Bc=function(){return this.Ca},i.zg=function(){return this.tilesLayout},i.yg=function(){return this.i},F("shaka.media.SegmentReference",go),go.prototype.getTileDuration=go.prototype.yg,go.prototype.getTilesLayout=go.prototype.zg,go.prototype.getEndByte=go.prototype.Bc,go.prototype.getStartByte=go.prototype.Fc,go.prototype.getEndTime=go.prototype.eg,go.prototype.getStartTime=go.prototype.sg,go.prototype.getUris=go.prototype.Ra,(i=fo.prototype).getDuration=function(){return this.l},i.mg=function(){return this.g},i.eb=function(e){this.l=e},i.qg=function(){return this.j},i.xf=function(e){this.A=e},i.Pc=function(e){this.B=e},i.ye=function(e){this.m=e},i.gh=function(e){this.sd=e},i.dg=function(){return this.sd},i.kc=function(e){if(0!=e.length){var t=e[e.length-1].endTime;this.ae(e[0].startTime),this.g=e.reduce((function(e,t){return Math.max(e,t.endTime-t.startTime)}),this.g),this.h=Math.max(this.h,t),null!=this.j&&this.F&&(this.j=(Date.now()+this.A)/1e3-this.h-this.g)}},i.ae=function(e){this.i=null==this.i?e:Math.min(this.i,e)},i.$d=function(e){this.g=Math.max(this.g,e)},i.offset=function(e){null!=this.i&&(this.i+=e),null!=this.h&&(this.h+=e)},i.T=function(){return 1/0==this.l&&!this.B},i.Nb=function(){return 1/0!=this.l&&!this.B},i.qb=function(){return Math.max(this.C,this.Kb()-this.m)},i.Af=function(e){this.C=e},i.Kb=function(){return this.T()||this.Nb()?Math.min(Math.max(0,(Date.now()+this.A)/1e3-this.g-this.j)+this.G,this.l):this.h||this.l},i.Ec=function(e){var t=Math.max(this.i,this.C);return 1/0==this.m?Math.ceil(1e3*t)/1e3:Math.max(t,Math.min(this.Kb()-this.m+e,this.pb()))},i.ec=function(){return this.Ec(0)},i.pb=function(){return Math.max(0,this.Kb()-(this.T()||this.Nb()?this.sd:0))},i.Ef=function(){return!(null==this.j||null!=this.h&&this.F)},i.wf=function(e){this.G=e},F("shaka.media.PresentationTimeline",fo),fo.prototype.setAvailabilityTimeOffset=fo.prototype.wf,fo.prototype.usingPresentationStartTime=fo.prototype.Ef,fo.prototype.getSeekRangeEnd=fo.prototype.pb,fo.prototype.getSeekRangeStart=fo.prototype.ec,fo.prototype.getSafeSeekRangeStart=fo.prototype.Ec,fo.prototype.getSegmentAvailabilityEnd=fo.prototype.Kb,fo.prototype.setUserSeekStart=fo.prototype.Af,fo.prototype.getSegmentAvailabilityStart=fo.prototype.qb,fo.prototype.isInProgress=fo.prototype.Nb,fo.prototype.isLive=fo.prototype.T,fo.prototype.offset=fo.prototype.offset,fo.prototype.notifyMaxSegmentDuration=fo.prototype.$d,fo.prototype.notifyMinSegmentStartTime=fo.prototype.ae,fo.prototype.notifySegments=fo.prototype.kc,fo.prototype.getDelay=fo.prototype.dg,fo.prototype.setDelay=fo.prototype.gh,fo.prototype.setSegmentAvailabilityDuration=fo.prototype.ye,fo.prototype.setStatic=fo.prototype.Pc,fo.prototype.setClockOffset=fo.prototype.xf,fo.prototype.getPresentationStartTime=fo.prototype.qg,fo.prototype.setDuration=fo.prototype.eb,fo.prototype.getMaxSegmentDuration=fo.prototype.mg,fo.prototype.getDuration=fo.prototype.getDuration,vo.prototype.release=function(){this.j=null,this.i=function(){}},xo.prototype.release=function(){this.i&&(this.i.release(),this.i=null),null!=this.m&&(this.m.stop(),this.m=null),this.h&&(this.h.release(),this.h=null),this.g=this.F=this.C=null},xo.prototype.ee=function(){this.A=!0,wo(this)};var Ao=new Rt((function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])}));function To(e,t,n){var i=this;this.g=e,this.l=t,this.j=n,this.m=!1,this.h=new Ri,this.i=new _o(e),ko(this.g,HTMLMediaElement.HAVE_METADATA,this.h,(function(){Io(i,i.j)}))}function So(e){return e.m?e.g.currentTime:e.j}function Eo(e,t){0<e.g.readyState?jo(e.i,t):ko(e.g,HTMLMediaElement.HAVE_METADATA,e.h,(function(){Io(e,e.j)}))}function Io(e,t){.001>Math.abs(e.g.currentTime-t)?Co(e):(e.h.Ia(e.g,"seeking",(function(){Co(e)})),jo(e.i,0==e.g.currentTime?t:e.g.currentTime))}function Co(e){e.m=!0,e.h.o(e.g,"seeking",(function(){return e.l()}))}function _o(e){var t=this;this.h=e,this.m=10,this.l=this.j=this.i=0,this.g=new mn((function(){0>=t.i||t.h.currentTime!=t.j?t.g.stop():(t.h.currentTime=t.l,t.i--)}))}function jo(e,t){e.j=e.h.currentTime,e.l=t,e.i=e.m,e.h.currentTime=t,e.g.ka(.1)}function No(e){var t=this;this.g=e,this.j=!1,this.h=null,this.i=new Ri,ko(this.g,HTMLMediaElement.HAVE_CURRENT_DATA,this.i,(function(){null==t.h||0==t.h?t.j=!0:(t.i.Ia(t.g,"seeking",(function(){t.j=!0})),t.g.currentTime=Math.max(0,t.g.currentTime+t.h))}))}function Lo(e,t,n,i,r,a){var o=this;this.i=e,this.g=t.presentationTimeline,this.H=t.minBufferTime||0,this.l=n,this.F=r,this.C=null,this.j=new xo(e,t.presentationTimeline,n,function(e,t){if(!t.stallEnabled)return null;var n=t.stallSkip,i=new vo(new bo(e),t.stallThreshold);return function(e,t){e.i=t}
2(i,(function(){n?e.currentTime+=n:(e.pause(),e.play())})),i}(e,n),a),this.h=new To(e,(function(){var e=o.j;e.B=!0,e.A=!1,e.j=!1;var t=So(o.h);return e=Do(o,t),.001<Math.abs(e-t)&&(t=Date.now()/1e3,!o.C||o.C<t-1)?(o.C=t,Eo(o.h,e),e=void 0):(o.F(),e=void 0),e}),function(e,t){return null==t?t=1/0>e.g.getDuration()?e.g.ec():e.g.pb():0>t&&(t=e.g.pb()+t),Po(e,Mo(e,t))}(this,i)),this.B=new mn((function(){if(0!=o.i.readyState&&!o.i.paused){var e=So(o.h),t=o.g.ec(),n=o.g.pb();3>n-t&&(t=n-3),e<t&&(e=Do(o,e),o.i.currentTime=e)}})).ka(.25)}function Po(e,t){var n=e.g.getDuration();return t>=n?n-e.l.durationBackoff:t}function Do(e,t){var n=Math.max(e.H,e.l.rebufferingGoal),i=e.l.safeSeekOffset,r=e.g.ec(),a=e.g.pb(),o=e.g.getDuration();3>a-r&&(r=a-3);var s=e.g.Ec(n),l=e.g.Ec(i);return n=e.g.Ec(n+i),t>=o?Po(e,t):t>a?a:t<r?$a(e.i.buffered,l)?l:n:t>=s||$a(e.i.buffered,t)?t:n}function Mo(e,t){var n=e.g.ec();return t<n||t>(n=e.g.pb())?n:t}function Oo(e){this.O=e,this.g=null,this.h=0,this.i=!1}function Ro(e,t,n){return new Oo([new go(e,e+t,(function(){return n}),0,null,null,e,e,e+t)])}function zo(e,t,n){this.i=e,this.h=t,this.g=n}function Bo(){Oo.call(this,[]),this.j=[]}function Uo(e){var t=this;this.g=e,this.j=!1,this.i=this.g.hd(),this.h=new mn((function(){t.g.pf(.25*t.i)}))}function Fo(e){e.h.stop();var t=e.j?0:e.i;if(0<=t)try{return void(e.g.hd()!=t&&e.g.we(t))}catch(e){}e.h.ka(.25),0!=e.g.hd()&&e.g.we(0)}function Vo(e){var t=this;this.h=e,this.g=new Set,this.i=new mn((function(){qo(t,!1)})).ka(.25)}function qo(e,t){for(var n=c(e.g),i=n.next();!i.done;i=n.next())i.value.j(e.h.currentTime,t)}function Ho(e){ee.call(this),this.g=new Map,this.h=e}function Go(e){ee.call(this);var t=this;this.g=new Set,this.i=e,this.h=new mn((function(){for(var e=t.i(),n=c(t.g),i=n.next();!i.done;i=n.next())(i=i.value).endTime<e.start&&(t.g.delete(i),i=new V("regionremove",new Map([["region",i]])),t.dispatchEvent(i))})).ka(2)}function Ko(e){ee.call(this);var t=this;this.i=e,this.g=new Map,this.l=[{Xb:null,Wb:Xo,Mb:function(e,n){return $o(t,"enter",e,n)}},{Xb:Wo,Wb:Xo,Mb:function(e,n){return $o(t,"enter",e,n)}},{Xb:Yo,Wb:Xo,Mb:function(e,n){return $o(t,"enter",e,n)}},{Xb:Xo,Wb:Wo,Mb:function(e,n){return $o(t,"exit",e,n)}},{Xb:Xo,Wb:Yo,Mb:function(e,n){return $o(t,"exit",e,n)}},{Xb:Wo,Wb:Yo,Mb:function(e,n){return $o(t,"skip",e,n)}},{Xb:Yo,Wb:Wo,Mb:function(e,n){return $o(t,"skip",e,n)}}],this.h=new Ri,this.h.o(this.i,"regionremove",(function(e){t.g.delete(e.region)}))}function $o(e,t,n,i){t=new V(t,new Map([["region",n],["seeking",i]])),e.dispatchEvent(t)}To.prototype.release=function(){this.h&&(this.h.release(),this.h=null),null!=this.i&&(this.i.release(),this.i=null),this.l=function(){},this.g=null},_o.prototype.release=function(){this.g&&(this.g.stop(),this.g=null),this.h=null},No.prototype.release=function(){this.i&&(this.i.release(),this.i=null),this.g=null},No.prototype.A=function(e){this.h=this.j?this.h:e},No.prototype.m=function(){return(this.j?this.g.currentTime:this.h)||0},No.prototype.G=function(){},Lo.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.j&&(this.j.release(),this.j=null),this.B&&(this.B.stop(),this.B=null),this.i=this.h=this.g=this.l=null,this.F=function(){}},Lo.prototype.A=function(e){Eo(this.h,e)},Lo.prototype.m=function(){var e=So(this.h);return 0<this.i.readyState&&!this.i.paused?Mo(this,e):e},Lo.prototype.G=function(){this.j.ee()},(i=Oo.prototype).destroy=function(){return ke("shaka.media.SegmentIndex","Please use release() instead of destroy()."),this.release(),Promise.resolve()},i.release=function(){this.i||(this.O=[],this.g&&this.g.stop(),this.g=null)},i.Ig=function(){this.i=!0},i.find=function(e){for(var t=this.O.length-1,n=t;0<=n;--n){var i=this.O[n],r=n<t?this.O[n+1].startTime:i.endTime;if(e>=i.startTime&&e<r)return n+this.h}return this.O.length&&e<this.O[0].startTime?this.h:null},i.get=function(e){return 0==this.O.length||0>(e-=this.h)||e>=this.O.length?null:this.O[e]},i.offset=function(e){if(!this.i)for(var t=c(this.O),n=t.next();!n.done;n=t.next())(n=n.value).startTime+=e,n.endTime+=e,n.timestampOffset+=e},i.ic=function(e){!this.i&&e.length&&(this.O=this.O.filter((function(t){return t.startTime<e[0].startTime})),this.O.push.apply(this.O,d(e)))},i.jc=function(e,t){var n=this;e=e.filter((function(e){return e.endTime>t&&(0==n.O.length||e.endTime>n.O[0].startTime)})),this.ic(e),this.Ib(t)},i.Ib=function(e){if(!this.i){var t=this.O.length;this.O=this.O.filter((function(t){return t.endTime>e})),this.h+=t-this.O.length}},i.Ab=function(e,t,n){if(n=void 0!==n&&n,!this.i){for(;this.O.length&&this.O[this.O.length-1].startTime>=t;)this.O.pop();for(;this.O.length&&this.O[0].endTime<=e;)this.O.shift(),n||this.h++;0!=this.O.length&&(e=this.O[this.O.length-1],this.O[this.O.length-1]=new go(e.startTime,t,e.j,e.U
2a,e.Ca,e.g,e.timestampOffset,e.appendWindowStart,e.appendWindowEnd,e.h,e.tilesLayout,e.i))}},i.wd=function(e,t){var n=this;this.i||(this.g&&this.g.stop(),this.g=new mn((function(){var e=t();e?n.O.push.apply(n.O,d(e)):(n.g.stop(),n.g=null)})),this.g.ka(e))},Oo.prototype[Symbol.iterator]=function(){return this.cc(0)},Oo.prototype.cc=function(e){var t=this.find(e);if(null==t)return null;t--;var n=this.get(t+1),i=-1;if(n&&0<n.h.length)for(var r=n.h.length-1;0<=r;--r){var a=n.h[r];if(e>=a.startTime&&e<a.endTime){t++,i=r-1;break}}return new zo(this,t,i)},F("shaka.media.SegmentIndex",Oo),Oo.forSingleSegment=Ro,Oo.prototype.getIteratorForTime=Oo.prototype.cc,Oo.prototype.updateEvery=Oo.prototype.wd,Oo.prototype.fit=Oo.prototype.Ab,Oo.prototype.evict=Oo.prototype.Ib,Oo.prototype.mergeAndEvict=Oo.prototype.jc,Oo.prototype.merge=Oo.prototype.ic,Oo.prototype.offset=Oo.prototype.offset,Oo.prototype.get=Oo.prototype.get,Oo.prototype.find=Oo.prototype.find,Oo.prototype.markImmutable=Oo.prototype.Ig,Oo.prototype.release=Oo.prototype.release,Oo.prototype.destroy=Oo.prototype.destroy,zo.prototype.seek=function(e){return ke("shaka.media.SegmentIterator","Please use SegmentIndex.getIteratorForTime instead of seek()."),(e=this.i.cc(e))?(this.h=e.h,this.g=e.g):(this.h=Number.MAX_VALUE,this.g=0),this.next().value},zo.prototype.current=function(){var e=this.i.get(this.h);return e&&0<e.h.length&&e.Ra().length&&this.g>=e.h.length&&(this.h++,this.g=0,e=this.i.get(this.h)),e&&0<e.h.length?e.h[this.g]:e},zo.prototype.next=function(){var e=this.i.get(this.h);return e&&0<e.h.length?(this.g++,e.Ra().length&&this.g==e.h.length&&(this.h++,this.g=0)):(this.h++,this.g=0),{value:e=this.current(),done:!e}},F("shaka.media.SegmentIterator",zo),zo.prototype.next=zo.prototype.next,zo.prototype.current=zo.prototype.current,zo.prototype.seek=zo.prototype.seek,f(Bo,Oo),(i=Bo.prototype).clone=function(){var e=new Bo;return e.j=this.j.slice(),e},i.release=function(){for(var e=c(this.j),t=e.next();!t.done;t=e.next())t.value.release();this.j=[]},i.find=function(e){for(var t=0,n=c(this.j),i=n.next();!i.done;i=n.next()){var r=(i=i.value).find(e);if(null!=r)return r+t;t+=i.h+i.O.length}return null},i.get=function(e){for(var t=0,n=c(this.j),i=n.next();!i.done;i=n.next()){var r=(i=i.value).get(e-t);if(r)return r;t+=i.h+i.O.length}return null},i.offset=function(){},i.ic=function(){},i.Ib=function(){},i.jc=function(){},i.Ab=function(){},i.wd=function(){},F("shaka.media.MetaSegmentIndex",Bo),Bo.prototype.updateEvery=Bo.prototype.wd,Bo.prototype.fit=Bo.prototype.Ab,Bo.prototype.mergeAndEvict=Bo.prototype.jc,Bo.prototype.evict=Bo.prototype.Ib,Bo.prototype.merge=Bo.prototype.ic,Bo.prototype.offset=Bo.prototype.offset,Bo.prototype.get=Bo.prototype.get,Bo.prototype.find=Bo.prototype.find,Bo.prototype.release=Bo.prototype.release,Uo.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null},Uo.prototype.set=function(e){this.i=e,Fo(this)},Uo.prototype.ed=function(){return this.g.ed()},Vo.prototype.release=function(){this.i.stop();for(var e=c(this.g),t=e.next();!t.done;t=e.next())t.value.release();this.g.clear()},f(Ho,ee),Ho.prototype.release=function(){this.g.clear(),ee.prototype.release.call(this)},Ho.prototype.j=function(e){for(var t=c(this.g.values()),n=t.next();!n.done;n=t.next()){e:{for(var i=(n=n.value).Kc,r=i.length-1;0<=r;r--){var a=i[r];if(a.position<=e){i=a.Xd;break e}}i=null}if((r=i)&&(r=!((r=n.Ve)===i||r&&i&&r.bandwidth==i.bandwidth&&r.audioSamplingRate==i.audioSamplingRate&&r.codecs==i.codecs&&r.contentType==i.contentType&&r.frameRate==i.frameRate&&r.height==i.height&&r.mimeType==i.mimeType&&r.channelsCount==i.channelsCount&&r.pixelAspectRatio==i.pixelAspectRatio&&r.width==i.width)),r)e:{if(r=e,a=i.contentType,(a=this.h()[a])&&0<a.length){var o=a[a.length-1].end;if(r>=a[0].start&&r<o){r=!0;break e}}r=!1}r&&(n.Ve=i,JSON.stringify(i),n=new V("qualitychange",new Map([["quality",i],["position",e]])),this.dispatchEvent(n))}},f(Go,ee),Go.prototype.release=function(){this.g.clear(),this.h.stop(),ee.prototype.release.call(this)},f(Ko,ee),Ko.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,ee.prototype.release.call(this)},Ko.prototype.j=function(e,t){for(var n=c(this.i.g),i=n.next();!i.done;i=n.next()){i=i.value;var r=this.g.get(i),a=e<i.startTime?Wo:e>i.endTime?Yo:Xo;this.g.set(i,a);for(var o=c(this.l),s=o.next();!s.done;s=o.next())(s=s.value).Xb==r&&s.Wb==a&&s.Mb(i,t)}};var Wo=1,Xo=2,Yo=3;function Jo(e,t,n,i,r){return e=Ci(e,i,r),0==t&&null==n||(e.headers.Range=n?"bytes="+t+"-"+n:"bytes="+t+"-"),e}function Zo(e,t){var n=this;this.g=t,this.m=e,this.h=null,this.C=1,this.A=this.l=null,this.i=new Map,this.F=!1,this.G=null,this.B=!1,this.j=new Mi((function(){return function(e){var t,n,i,r;
2return P((function(a){if(1==a.g){for(t=[],n=c(e.i.values()),i=n.next();!i.done;i=n.next())us(r=i.value),t.push(ps(r));return x(a,Promise.all(t),2)}e.i.clear(),e.g=null,e.m=null,e.h=null,w(a)}))}(n)}))}function Qo(e,t){var n=e.i.get("video");if(n){var i=n.stream;if(i)if(t){var r=i.trickModeVideo;r&&!n.Tb&&(ns(e,r,!1,0,!1),n.Tb=i)}else(i=n.Tb)&&(n.Tb=null,ns(e,i,!0,0,!1))}}function es(e,t,n,i,r){n=void 0!==n&&n,i=void 0===i?0:i,r=void 0!==r&&r,e.l=t,e.F&&(t.video&&ns(e,t.video,n,i,r),t.audio&&ns(e,t.audio,n,i,r))}function ts(e,t){e.A=t,e.F&&ns(e,t,!0,0,!1)}function ns(e,t,n,i,r){var a=e.i.get(t.type);a||t.type!=De?a&&(a.Tb&&(t.trickModeVideo?(a.Tb=t,t=t.trickModeVideo):a.Tb=null),a.stream!=t||r)&&(t.type==De&&Ja(e.g.U,nn(t.mimeType,t.codecs),e.m.sequenceMode),a.stream.closeSegmentIndex&&a.stream.closeSegmentIndex(),a.stream=t,a.va=null,n&&(a.zc?a.yd=!0:a.cb?(a.Vb=!0,a.$c=i,a.yd=!0):(us(a),cs(e,a,!0,i).catch((function(t){e.g&&e.g.onError(t)})))),function(e,t){var n,i;return P((function(r){if(1==r.g)return t.Ja?(n=t.stream,i=t.Ja,n.segmentIndex?r.D(2):x(r,n.createSegmentIndex(),2)):r.return();if(t.Ja!=i||t.stream!=n)return r.return();var a=e.g.gd(),o=eo(e.g.U,t.type),s=t.stream.segmentIndex.find(t.Sa?t.Sa.endTime:a),l=null==s?null:t.stream.segmentIndex.get(s);s=l&&l.Ca?l.Ca-l.Ua:null,l&&!s&&(s=(l.endTime-l.startTime)*(t.stream.bandwidth||0)/8),s?((l=l.g)&&(s+=(l.Ca?l.Ca-l.Ua:null)||0),a=8*s/(l=e.g.getBandwidthEstimate())<(o||0)-a-Math.max(e.m.minBufferTime||0,e.h.rebufferingGoal)||t.Ja.h.g>s):a=!1,a&&t.Ja.abort(),w(r)}))}(e,a).catch((function(t){e.g&&e.g.onError(t)}))):function(e,t){var n,i,r,a;P((function(o){switch(o.g){case 1:return n=Me,k(o,2),x(o,io(e.g.U,n.ma),4);case 4:T(o,3);break;case 2:i=S(o),e.g&&e.g.onError(i);case 3:r=nn(t.mimeType,t.codecs),Ja(e.g.U,r,e.m.sequenceMode),(e.g.U.l.isTextVisible()||e.h.alwaysStreamText)&&(a=rs(t),e.i.set(n.ma,a),ds(e,a,0)),w(o)}}))}(e,t)}function is(e,t){t.zc||t.Vb||(t.cb?(t.Vb=!0,t.$c=0):null==Qa(e.g.U,t.type)?null==t.gb&&ds(e,t,0):(us(t),cs(e,t,!1,0).catch((function(t){e.g&&e.g.onError(t)}))))}function rs(e){return{stream:e,type:e.type,va:null,Sa:null,md:null,Vd:null,Ud:null,Td:null,Tb:null,endOfStream:!1,cb:!1,gb:null,Vb:!1,$c:0,yd:!1,zc:!1,Mc:!0,je:!1,Gc:!1,Ja:null}}function as(t,n){var i,r,a,o,s;return P((function(l){switch(l.g){case 1:if(Oi(t.j),n.cb||null==n.gb||n.zc)return l.return();if(n.gb=null,!n.Vb){l.D(2);break}return x(l,cs(t,n,n.yd,n.$c),3);case 3:return l.return();case 2:if(n.stream.segmentIndex){l.D(4);break}return i=n.stream,x(l,n.stream.createSegmentIndex(),5);case 5:if(i!=n.stream)return i.closeSegmentIndex&&i.closeSegmentIndex(),null==n.gb&&ds(t,n,0),l.return();case 4:k(l,6),r=function(t,n){if(ss(n))return function(e,t){var n=eo(e,"video")||0;cn(e.g,t,n)}(t.g.U,n.stream.originalId||""),null;n.type==De&&function(e){e.g&&cn(e.g,"",0)}(t.g.U);var i=t.g.gd(),r=n.Sa?n.Sa.endTime:i,a=function(e,t,n){return t==De?null==(e=e.g).h||e.h<n?0:e.h-Math.max(n,e.g):Wa(e=to(e,t),n)}(t.g.U,n.type,i),o=Math.max(t.m.minBufferTime||0,t.h.rebufferingGoal,t.h.bufferingGoal)*t.C;if(1e-6>t.m.presentationTimeline.getDuration()-r)return n.endOfStream=!0,"video"==n.type&&(i=t.i.get(De))&&ss(i)&&(i.endOfStream=!0),null;if(n.endOfStream=!1,a>=o)return t.h.updateIntervalSeconds/2;if(a=eo(t.g.U,n.type),a=function(e,t,n,i){if(t.va)return t.va.current();if(t.Sa||i)return t.va=t.stream.segmentIndex.cc(t.Sa?t.Sa.endTime:i),t.va&&t.va.next().value;e=e.h.inaccurateManifestTolerance,i=Math.max(n-e,0);var r=null;return e&&(t.va=t.stream.segmentIndex.cc(i),r=t.va&&t.va.next().value),r||(t.va=t.stream.segmentIndex.cc(n),r=t.va&&t.va.next().value),r}(t,n,i,a),!a)return t.h.updateIntervalSeconds;o=1/0;for(var s=Array.from(t.i.values()),l=(s=c(s)).next();!l.done;l=s.next())ss(l=l.value)||l.va&&!l.va.current()||(o=Math.min(o,l.Sa?l.Sa.endTime:i));return r>=o+t.m.presentationTimeline.g?t.h.updateIntervalSeconds:(function(t,n,i,r){var a,o,s,l,c,d,u,p,h,m,g;return P((function(f){switch(f.g){case 1:return a=Me,o=n.stream,s=n.va,n.cb=!0,k(f,2),x(f,function(e,t,n){var i,r,a,o,s,l,c;return P((function(d){return i=[],r=Math.max(0,n.appendWindowStart-.1),a=n.appendWindowEnd+.01,(o=n.timestampOffset)==t.Vd&&r==t.Ud&&a==t.Td||(s=function(){var n;return P((function(i){if(1==i.g)return k(i,2),t.Ud=r,t.Td=a,t.Vd=o,x(i,function(e,t,n,i,r,a){return P((function(o){return t==Me.ma?(a||(e.g.C=n),function(e,t,n){e.l=t,e.m=n}(e.g,i,r),o.return()):x(o,Promise.all([ao(e,t,(function(){var n=e.h[t].appendWindowStart,i=e.h[t].appendWindowEnd;e.h[t].abort(),e.h[t].appendWindowStart=n,e.h[t].appendWindowEnd=i,ro(e,t)})),a?Promise.resolve():ao(e,t,(function(){var i=n;0>i&&(i+=.001),e.h[t].timestampOffset=i,ro(e,t)})),ao(e,t,(function(){e.h[t].appendWindowStart=0,e.h[t].appendWindowEnd=r,e.h[t].appendWindowStart=i,ro(e,t)}))]),0)}))}(e.g.U,t.type,o,r,a,e.m.sequenceMode),4);if(2!=i.g)return T(i,0);
2throw n=S(i),t.Ud=null,t.Td=null,t.Vd=null,n}))},i.push(s())),!function(e,t){return e&&t?e.Fc()==t.Fc()&&e.Bc()==t.Bc()&&at(e.Ra(),t.Ra()):e==t}(n.g,t.md)&&(t.md=n.g)&&(l=ls(e,t,n.g),c=function(){var n,i,r;return P((function(a){switch(a.g){case 1:return k(a,2),x(a,l,4);case 4:return n=a.h,Oi(e.j),i=t.stream.closedCaptions&&0<t.stream.closedCaptions.size,x(a,no(e.g.U,t.type,n,null,null,i),5);case 5:T(a,0);break;case 2:throw r=S(a),t.md=null,r}}))},e.g.Mg(n.startTime,n.g),i.push(c())),x(d,Promise.all(i),0)}))}(t,n,r),4);case 4:return Oi(t.j),t.B?f.return():(l="video/mp4"==o.mimeType||"audio/mp4"==o.mimeType,c=e.ReadableStream,t.h.lowLatencyMode&&c&&l?(u=new Uint8Array(0),p=function(e){var a,s,l;return P((function(c){return Oi(t.j),t.B?c.return():(u=function(e,t){var n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}(u,e),a=!1,s=0,(new Sr).box("mdat",(function(e){s=e.size+e.start,a=!0})).parse(u,!1,!0),a?(l=u.subarray(0,s),u=u.subarray(s),x(c,os(t,n,i,o,r,l),0)):c.D(0))}))},x(f,ls(t,n,r,p),6)):x(f,ls(t,n,r),7));case 7:return d=f.h,Oi(t.j),t.B?f.return():n.Vb?(n.cb=!1,ds(t,n,0),f.return()):x(f,os(t,n,i,o,r,d),6);case 6:if(Oi(t.j),t.B)return f.return();n.Sa=r,s.next(),n.cb=!1,n.je=!1,h=t.g.U.Bb(),m=h[n.type],JSON.stringify(m),n.Vb||t.g.ee(),ds(t,n,0),T(f,0);break;case 2:if(g=S(f),Oi(t.j,g),t.B)return f.return();if(n.cb=!1,7001==g.code)n.cb=!1,n.gb=null,ds(t,n,0),f.D(0);else if(n.type==a.ma&&t.h.ignoreTextStreamFailures)t.i.delete(a.ma),f.D(0);else if(3017==g.code)(function(e,t,n){if(!Array.from(e.i.values()).some((function(e){return e!=t&&e.je}))){var i=Math.round(100*e.C);if(20<i)e.C-=.2;else{if(!(4<i))return t.Gc=!0,e.B=!0,void e.g.onError(n);e.C-=.04}t.je=!0}ds(e,t,4)})(t,n,g),f.D(0);else{if(1001!=g.code||!g.data||404!=g.data[1])return n.Gc=!0,g.severity=2,x(f,hs(t,g),0);n.cb=!1,n.gb=null,ds(t,n,1),f.D(0)}}}))}(t,n,i,a).catch((function(){})),null)}(t,n),null!=r&&(ds(t,n,r),n.Gc=!1),T(l,7);break;case 6:return a=S(l),x(l,hs(t,a),8);case 8:return l.return();case 7:if(o=Array.from(t.i.values()),!t.F||!o.every((function(e){return e.endOfStream}))){l.D(0);break}return x(l,t.g.U.endOfStream(),10);case 10:Oi(t.j),0!=(s=t.g.U.getDuration())&&s<t.m.presentationTimeline.getDuration()&&t.m.presentationTimeline.eb(s),w(l)}}))}function os(e,t,n,i,r,a){var o,s;return P((function(l){return 1==l.g?(o=i.closedCaptions&&0<i.closedCaptions.size,(null!=i.emsgSchemeIdUris&&0<i.emsgSchemeIdUris.length||e.h.dispatchAllEmsgBoxes)&&(new Sr).Y("emsg",(function(t){var n=i.emsgSchemeIdUris;if(0===t.version)var a=t.reader.Lc(),o=t.reader.Lc(),s=t.reader.P(),l=t.reader.P(),c=t.reader.P(),d=t.reader.P(),u=r.startTime+l/s;else s=t.reader.P(),l=(u=t.reader.nc()/s+r.timestampOffset)-r.startTime,c=t.reader.P(),d=t.reader.P(),a=t.reader.Lc(),o=t.reader.Lc();t=t.reader.Eb(t.reader.V.byteLength-t.reader.qa()),(n&&n.includes(a)||e.h.dispatchAllEmsgBoxes)&&("urn:mpeg:dash:event:2012"==a?e.g.Ng():(n=(new Map).set("detail",{startTime:u,endTime:u+c/s,schemeIdUri:a,value:o,timescale:s,presentationTimeDelta:l,eventDuration:c,id:d,messageData:t}),n=new V(nc,n),e.g.onEvent(n)))})).parse(a),x(l,function(e,t,n){var i,r,a;return P((function(o){if(1==o.g)return i=Math.max(e.h.bufferBehind,e.m.presentationTimeline.g),null==(r=Qa(e.g.U,t.type))||.01>=(a=n-r-i)?o.return():x(o,e.g.U.remove(t.type,r,r+a),2);Oi(e.j),w(o)}))}(e,t,n),2)):3!=l.g?(Oi(e.j),s=t.Mc,t.Mc=!1,x(l,no(e.g.U,t.type,a,r.startTime,r.endTime,o,s,e.m.sequenceMode),3)):(Oi(e.j),void w(l))}))}function ss(e){return e&&e.type==De&&("application/cea-608"==e.stream.mimeType||"application/cea-708"==e.stream.mimeType)}function ls(e,t,n,i){var r,a,o,s,l;return P((function(c){return 1==c.g?(r=Li,a=Jo(n.Ra(),n.Ua,n.Ca,e.h.retryParameters,i),o=t.stream,e.g.modifySegmentRequest(a,{type:o.type,init:n instanceof mo,duration:n.endTime-n.startTime,mimeType:o.mimeType,codecs:o.codecs,bandwidth:o.bandwidth}),s=e.g.Qb.request(r,a),t.Ja=s,x(c,s.promise,2)):(l=c.h,t.Ja=null,c.return(l.data))}))}function cs(e,t,n,i){var r,a;return P((function(o){return 1==o.g?(t.Vb=!1,t.yd=!1,t.$c=0,t.zc=!0,t.Sa=null,t.md=null,t.va=null,i?(r=e.g.gd(),a=e.g.U.getDuration(),x(o,e.g.U.remove(t.type,r+i,a),3)):x(o,io(e.g.U,t.type),4)):3!=o.g?(Oi(e.j),n?x(o,e.g.U.flush(t.type),3):o.D(3)):(Oi(e.j),t.zc=!1,t.endOfStream=!1,ds(e,t,0),void w(o))}))}function ds(e,t,n){var i=t.type;(i!=De||e.i.has(i))&&(t.gb=new hn((function(){var n;return P((function(i){return 1==i.g?(k(i,2),x(i,as(e,t),4)):2!=i.g?T(i,0):(n=S(i),e.g&&e.g.onError(n),void w(i))}))})).R(n))}
2function us(e){null!=e.gb&&(e.gb.stop(),e.gb=null)}function ps(e){return P((function(t){return e.Ja?x(t,e.Ja.abort(),0):t.D(0)}))}function hs(e,t){return P((function(n){if(1==n.g)return x(n,gi(e.G),2);Oi(e.j),e.g.onError(t),t.handled||e.h.failureCallback(t),w(n)}))}function ms(e,t){var n=Wl(),i=this;this.j=t,this.i=e,this.l=n,this.A=null,this.m=[],this.h=this.g=null,this.C=Promise.resolve().then((function(){return function(e){return P((function(t){if(e.B.g)t=t.D(0);else{if(0==e.m.length||e.g&&!e.g.Lb)var n=!1;else{e.g&&(e.g.bb.Rb(),e.g=null);var i=(n=e.m.shift()).create(e.l);i?(n.bb.lc(),e.g={node:i.node,payload:i.payload,Lb:i.Lb,bb:n.bb}):n.bb.qd(),n=!0}n?n=Promise.resolve():e.g?n=function(e){var t,n;return P((function(i){switch(i.g){case 1:return e.i=e.j.og(e.i,e.l,e.g.node,e.g.payload),k(i,2),e.h=e.j.Sf(e.i,e.l,e.g.payload),x(i,e.h.promise,4);case 4:e.h=null,e.i==e.g.node&&(e.g.bb.od(),e.g=null),T(i,0);break;case 2:return 7001==(t=S(i)).code?e.g.bb.Rb():e.g.bb.onError(t),e.g=null,e.h=null,n=e,x(i,e.j.handleError(e.l,t),5);case 5:n.i=i.h,w(i)}}))}(e):(e.j.Lg(e.i),e.A=new Ot,n=e.A),t=x(t,n,1)}return t}))}(i)})),this.B=new Mi((function(){return function(e){var t,n;return P((function(i){if(1==i.g)return e.h&&e.h.abort(),fs(e),x(i,e.C,2);for(e.g&&e.g.bb.Rb(),t=c(e.m),n=t.next();!n.done;n=t.next())n.value.bb.Rb();e.g=null,e.m=[],e.j=null,w(i)}))}(i)}))}function gs(e,t){var n={lc:function(){},od:function(){},Rb:function(){},onError:function(){},qd:function(){},Mi:function(){}};return e.m.push({create:t,bb:n}),e.h&&e.h.abort(),fs(e),n}function fs(e){e.A&&(e.A.resolve(),e.A=null)}function vs(e){this.g=null;for(var t=c(Array.from(e.textTracks)),n=t.next();!n.done;n=t.next())(n=n.value).mode="disabled","Shaka Player TextTrack"==n.label&&(this.g=n);this.g||(this.g=e.addTextTrack("subtitles","Shaka Player TextTrack")),this.g.mode="hidden"}function bs(e){if(e.startTime>=e.endTime)return null;var t=new VTTCue(e.startTime,e.endTime,e.payload);t.lineAlign=e.lineAlign,t.positionAlign=e.positionAlign,e.size&&(t.size=e.size);try{t.align=e.textAlign}catch(e){}return"center"==e.textAlign&&"center"!=t.align&&(t.align="middle"),"vertical-lr"==e.writingMode?t.vertical="lr":"vertical-rl"==e.writingMode&&(t.vertical="rl"),1==e.lineInterpretation&&(t.snapToLines=!1),null!=e.line&&(t.line=e.line),null!=e.position&&(t.position=e.position),t}function ys(e,t){var n=e.mode;e.mode="showing"==n?"showing":"hidden";for(var i=c(Array.from(e.cues)),r=i.next();!r.done;r=i.next())(r=r.value)&&t(r)&&e.removeCue(r);e.mode=n}function xs(){}function ws(e){return document.createElement(e)}function ks(){return document.createElement("button")}function As(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function Ts(t,n){var i=this;this.j=!1,this.i=[],this.C=t,this.m=n,this.g=ws("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.m.appendChild(this.g),this.B=new mn((function(){Es(i)})).ka(.25),this.h=new Map,this.A=new Ri,this.A.o(document,"fullscreenchange",(function(){Es(i,!0)})),this.l=null,"ResizeObserver"in e&&(this.l=new ResizeObserver((function(){Es(i,!0)})),this.l.observe(this.g))}function Ss(e,t,n,i,r){for(var a=!1,o=[],s=[],l=(t=c(t)).next();!l.done;l=t.next()){l=l.value,r.push(l);var d=e.h.get(l),u=l.startTime<=i&&l.endTime>i,p=d?d.Ff:null;d&&(o.push(d.Ue),u||(a=!0,e.h.delete(l),d=null)),u&&(s.push(l),d||(Is(e,l,r),p=(d=e.h.get(l)).Ff,a=!0)),0<l.nestedCues.length&&p&&Ss(e,l.nestedCues,p,i,r),r.pop()}if(a){for(r=(i=c(o)).next();!r.done;r=i.next())n.removeChild(r.value);for(s.sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime-t.endTime})),l=(s=c(s)).next();!l.done;l=s.next())i=e.h.get(l.value),n.appendChild(i.Ue)}}function Es(e,t){if(e.g){var n=e.C.currentTime;if((!e.j||void 0!==t&&t)&&0<e.h.size&&(As(e.g),e.h.clear()),e.j){for(var i=new Map,r=c(e.h.keys()),a=r.next();!a.done;a=r.next())a=a.value,i.set(a,e.h.get(a));Ss(e,e.i,e.g,n,[])}}}function Is(e,t,n){var i=1<n.length,r=i?"span":"div";(t.lineBreak||t.spacer)&&(t.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),r="br"),i=!i&&0<t.nestedCues.length;var a=ws(r);"br"!=r&&function(e,t,n,i,r){var a=t.style,o=0==n.nestedCues.length,s=1<i.length;a.whiteSpace="pre-wrap";var l=n.payload.replace(/\s+$/g,(function(e){return" ".repeat(e.length)}));if(a.webkitTextStrokeColor=n.textStrokeColor,a.webkitTextStrokeWidth=n.textStrokeWidth,a.color=n.color,a.direction=n.direction,a.opacity=n.opacity,a.paddingLeft=Cs(n.linePadding,n,e.m),a.paddingRight=Cs(n.linePadding,n,e.m),n.backgroundImage)a.backgroundImage="url('"+n.backgroundImage+"')",a.backgroundRepeat="no-repeat",a.backgroundSize="contain",a.backgroundPosition="center";else{if(n.nestedCues.length)var c=t;else c=ws("span"),t.appendChild(c);n.border&&(c.style.border=n.border),r||((t=function(e,t){for(var n=e.length-1;0<=n;n--){var i=t(e[n]);if(i||0===i)return i}return null}(i,(function(e){return e.backgroundColor})))?c.style.backgroundColor=t:l&&(c.style.backgroundColor="rgba(0, 0, 0, 0.8)")),l&&(c.textContent=l)}s&&!i[i.length-1].isContainer?a.display="inline":(a.display="flex",a.flexDirection="column",a.alignItems="center",a.justifyContent="before"==n.displayAlign?"flex-start":"center"==n.displayAlign?"center":"flex-end"),o||(a.margin="0"),a.fontFamily=n.fontFamily,a.fontWeight=n.fontWeight.toString(),a.fontStyle=n.fontStyle,a.letterSpacing=n.letterSpacing,a.fontSize=Cs(n.fontSize,n,e.m),n.line?1==n.lineInterpretation&&(a.position="absolute",a.left="0",a.top="0",n.writingMode==mt?(a.width="100%",n.lineAlign==ft?a.top=n.line+"%":"end"==n.lineAlign&&(a.bottom=n.line+"%")):"vertical-lr"==n.writingMode?(a.height="100%",
2n.lineAlign==ft?a.left=n.line+"%":"end"==n.lineAlign&&(a.right=n.line+"%")):(a.height="100%",n.lineAlign==ft?a.right=n.line+"%":"end"==n.lineAlign&&(a.left=n.line+"%"))):n.region&&n.region.id&&(e=n.region.widthUnits==Tt?"%":"px",i=n.region.viewportAnchorUnits==Tt?"%":"px",a.height=n.region.height+(n.region.heightUnits==Tt?"%":"px"),a.width=n.region.width+e,a.position="absolute",a.top=n.region.viewportAnchorY+i,a.left=n.region.viewportAnchorX+i),a.lineHeight=n.lineHeight,n.position&&(n.writingMode==mt?a.paddingLeft=n.position:a.paddingTop=n.position),"line-left"==n.positionAlign?a.cssFloat="left":"line-right"==n.positionAlign&&(a.cssFloat="right"),a.textAlign=n.textAlign,a.textDecoration=n.textDecoration.join(" "),a.writingMode=n.writingMode,"writingMode"in document.documentElement.style&&a.writingMode==n.writingMode||(a.webkitWritingMode=n.writingMode),n.size&&(n.writingMode==mt?a.width=n.size+"%":a.height=n.size+"%")}(e,a,t,n,i),n=a,i&&((n=ws("span")).classList.add("shaka-text-wrapper"),n.style.backgroundColor=t.backgroundColor,a.appendChild(n)),e.h.set(t,{Ue:a,Ff:n})}function Cs(e,t,n){var i=(i=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(e))?{value:Number(i[1]),unit:i[2]}:null;if(!i)return e;var r=i.value;switch(i.unit){case"%":return r/100*n.clientHeight/t.cellResolution.rows+"px";case"c":return n.clientHeight*r/t.cellResolution.rows+"px";default:return e}}function _s(e,t){this.h=e,this.g=t,this.j="",this.A=void 0,this.i=!1,this.m=!0,this.l=!1}function js(e,t,n){try{if(e.g.enabled){var i={d:1e3*n.duration,st:e.h.T()?Hs:qs};i.ot=function(e){var t=e.type;if(e.init)return Us;if("video"==t)return e.codecs.includes(",")?Bs:zs;if("audio"==t)return Rs;if("text"==t)return"application/mp4"===e.mimeType?Vs:Fs}(n);var r=i.ot===zs||i.ot===Rs||i.ot===Bs||i.ot===Vs;r&&(i.bl=function(e,t){var n=e.h.Bb()[t];if(!n.length)return NaN;var i=e.h.cg();return(n=n.find((function(e){return e.start<=i&&e.end>=i})))?1e3*(n.end-i):NaN}(e,n.type)),n.bandwidth&&(i.br=n.bandwidth/1e3),r&&i.ot!==Vs&&(i.tb=function(e,t){var n=e.h.ab();if(!n.length)return NaN;for(var i=n[0],r=(n=c(n)).next();!r.done;r=n.next())"variant"===(r=r.value).type&&r.bandwidth>i.bandwidth&&(i=r);switch(t){case zs:return i.videoBandwidth||NaN;case Rs:return i.audioBandwidth||NaN;default:return i.bandwidth}}(e,i.ot)/1e3),Ps(e,t,i)}}catch(e){$("CMCD_SEGMENT_ERROR","Could not generate segment CMCD data.",e)}}function Ns(e,t){try{if(!e.g.enabled)return t;var n=Ls(e);return n.ot=Fs,n.su=!0,Ms(t,Ds(n))}catch(e){return $("CMCD_TEXT_TRACK_ERROR","Could not generate text track CMCD data.",e),t}}function Ls(t){return t.j||(t.j=t.g.sessionId||e.crypto.randomUUID()),{v:1,sf:t.A,sid:t.j,cid:t.g.contentId,mtp:t.h.getBandwidthEstimate()/1e3}}function Ps(e,t,n){n=void 0===n?{}:n;var i=void 0===i?e.g.useHeaders:i;if(e.g.enabled){Object.assign(n,Ls(e)),n.pr=e.h.Cb();var r=n.ot===zs||n.ot===Bs;if(e.l&&r&&(n.bs=!0,n.su=!0,e.l=!1),null==n.su&&(n.su=e.m),i)e=function(e){for(var t=Object.keys(e),n={},i=["Object","Request","Session","Status"],r=[{},{},{},{}],a={br:0,d:0,ot:0,tb:0,bl:1,dl:1,mtp:1,nor:1,nrr:1,su:1,cid:2,pr:2,sf:2,sid:2,st:2,v:2,bs:3,rtp:3},o=(t=c(t)).next();!o.done;o=t.next())o=o.value,r[null!=a[o]?a[o]:1][o]=e[o];for(e=0;e<r.length;e++)(a=Ds(r[e]))&&(n["CMCD-"+i[e]]=a);return n}(n),Object.keys(e).length&&Object.assign(t.headers,e);else{var a=Ds(n);a&&(t.uris=t.uris.map((function(e){return Ms(e,a)})))}}}function Ds(e){function t(e){return 100*n(e/100)}function n(e){return Math.round(e)}for(var i,r=[],a={br:n,d:n,bl:t,dl:t,mtp:t,nor:function(e){return encodeURIComponent(e)},rtp:t,tb:n},o=Object.keys(e||{}).sort(),s=(o=c(o)).next();!s.done;s=o.next()){var l=e[s=s.value];if(!(i=l,Number.isNaN(i)||null==i||""===i||!1===i||"v"===s&&1===l||"pr"==s&&1===l)){var d=a[s];d&&(l=d(l));var u;u="string"===(d=typeof l)&&"ot"!==s&&"sf"!==s&&"st"!==s?s+"="+JSON.stringify(l):"boolean"===d?s:"symbol"===d?s+"="+l.description:s+"="+l,r.push(u)}}return r.join(",")}function Ms(e,t){if(!t||e.includes("offline:"))return e;var n=new oe(e);return n.g.set("CMCD",t),n.toString()}Zo.prototype.destroy=function(){return this.j.destroy()},Zo.prototype.configure=function(e){this.h=e,this.G=new mi({maxAttempts:Math.max(e.retryParameters.maxAttempts,2),baseDelay:e.retryParameters.baseDelay,backoffFactor:e.retryParameters.backoffFactor,fuzzFactor:e.retryParameters.fuzzFactor,timeout:0,stallTimeout:0,connectionTimeout:0},!0)},Zo.prototype.start=function(){var e=this;return P((function(t){if(1==t.g)return x(t,function(e){var t,n,i,r,a,o,s,l,d,u;return P((function(p){if(1==p.g){if(t=Me,!e.l)throw new xe(2,5,5006);return n=new Map,i=new Set,e.l.audio&&(n.set(t.Gb,e.l.audio),i.add(e.l.audio)),e.l.video&&(n.set(t.ib,e.l.video),i.add(e.l.video)),e.A&&(n.set(t.ma,e.A),i.add(e.A)),r=e.g.U,a=e.h.forceTransmuxTS,x(p,r.init(n,a,e.m.sequenceMode),2)}Oi(e.j);var h=e.m.presentationTimeline.getDuration();for(1/0>h?e.g.U.eb(h):e.g.U.eb(Math.pow(2,32)),o=c(n.keys()),s=o.next();!s.done;s=o.next())l=s.value,d=n.get(l),e.i.has(l)||(u=rs(d),e.i.set(l,u),ds(e,u,0));w(p)}))}(e),2);Oi(e.j),e.F=!0,w(t)}))},Zo.prototype.Mc=function(){for(var e=this.g.gd(),t=this.h.smallGapLimit,n=c(this.i.keys()),i=n.next();!i.done;i=n.next()){var r=i.value;(i=this.i.get(r)).va=null;var a=this.g.U;if(r==De?a=null!=(a=a.g).g&&null!=a.h&&(e>=a.g&&e<a.h):a=$a(a=to(a,r),e,t),!a){if((null!=eo(this.g.U,r)||i.cb)&&is(this,i),i.Ja&&(i.Ja.abort(),i.Ja=null),r===De)for((r=this.g.U.C.g).l=0,r.h=[],r.g=[],(a=r.i).i=[],a.h=[],a.g=0,Pa(r),a=(r=c(r.j.values())
2).next();!a.done;a=r.next())Ca(a.value);i.Mc=!0}}},ms.prototype.destroy=function(){return this.B.destroy()},(i=vs.prototype).remove=function(e,t){return!!this.g&&(ys(this.g,(function(n){return n.startTime<t&&n.endTime>e})),!0)},i.append=function(e){function t(e){var n=[],i=700<=e.fontWeight,r="italic"==e.fontStyle,a=e.textDecoration.includes("underline");return i&&n.push("b"),r&&n.push("i"),a&&n.push("u"),i=n.reduce((function(e,t){return e+"<"+t+">"}),""),n=n.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.extern.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(t).join(""):i+e.payload+n}var n=e.map((function(e){if(e.nestedCues.length){var n=e.clone();return n.nestedCues=[],n.payload=t(e),n}return e})),i=[];e=this.g.cues?Array.from(this.g.cues):[];for(var r={},a=(n=c(n)).next();!a.done;r={Yb:r.Yb},a=n.next())r.Yb=a.value,e.some(function(e){return function(t){return t.startTime==e.Yb.startTime&&t.endTime==e.Yb.endTime&&t.text==e.Yb.payload}}(r))||(a=bs(r.Yb))&&i.push(a);for(r=(e=c(e=i.slice().sort((function(e,t){return e.startTime!=t.startTime?e.startTime-t.startTime:e.endTime!=t.endTime?e.endTime-t.startTime:"line"in VTTCue.prototype?i.indexOf(t)-i.indexOf(e):i.indexOf(e)-i.indexOf(t)})))).next();!r.done;r=e.next())this.g.addCue(r.value)},i.destroy=function(){return this.g&&(ys(this.g,(function(){return!0})),this.g.mode="disabled"),this.g=null,Promise.resolve()},i.isTextVisible=function(){return"showing"==this.g.mode},i.setTextVisibility=function(e){this.g.mode=e?"showing":"hidden"},F("shaka.text.SimpleTextDisplayer",vs),vs.prototype.setTextVisibility=vs.prototype.setTextVisibility,vs.prototype.isTextVisible=vs.prototype.isTextVisible,vs.prototype.destroy=vs.prototype.destroy,vs.prototype.append=vs.prototype.append,vs.prototype.remove=vs.prototype.remove,F("shaka.util.Dom",xs),xs.removeAllChildren=As,(i=Ts.prototype).append=function(e){for(var t=[].concat(d(this.i)),n={},i=(e=c(e)).next();!i.done;n={Qc:n.Qc},i=e.next())n.Qc=i.value,t.some(function(e){return function(t){return st(t,e.Qc)}}(n))||this.i.push(n.Qc);Es(this)},i.destroy=function(){this.m.removeChild(this.g),this.g=null,this.j=!1,this.i=[],this.B&&this.B.stop(),this.h.clear(),this.A&&(this.A.release(),this.A=null),this.l&&(this.l.disconnect(),this.l=null)},i.remove=function(e,t){if(!this.g)return!1;var n=this.i.length;return this.i=this.i.filter((function(n){return n.startTime<e||n.endTime>=t})),Es(this,n>this.i.length),!0},i.isTextVisible=function(){return this.j},i.setTextVisibility=function(e){this.j=e},F("shaka.text.UITextDisplayer",Ts),Ts.prototype.setTextVisibility=Ts.prototype.setTextVisibility,Ts.prototype.isTextVisible=Ts.prototype.isTextVisible,Ts.prototype.remove=Ts.prototype.remove,Ts.prototype.destroy=Ts.prototype.destroy,Ts.prototype.append=Ts.prototype.append,F("shaka.text.WebVttGenerator",(function(){}));var Os="m",Rs="a",zs="v",Bs="av",Us="i",Fs="c",Vs="tt",qs="v",Hs="l";function Gs(){}function Ks(e,t,n,i,r){var a,o=r in i,s=!0;for(a in t){var l=r+"."+a,c=o?i[r]:n[a];o||a in n?void 0===t[a]?void 0===c||o?delete e[a]:e[a]=ki(c):c.constructor==Object&&t[a]&&t[a].constructor==Object?(e[a]||(e[a]=ki(c)),l=Ks(e[a],t[a],c,i,l),s=s&&l):typeof t[a]!=typeof c||null==t[a]||"function"!=typeof t[a]&&t[a].constructor!=c.constructor?(G("Invalid config, wrong type for "+l),s=!1):("function"==typeof n[a]&&n[a].length!=t[a].length&&K("Unexpected number of arguments for "+l),e[a]=t[a]):(G("Invalid config, unrecognized key "+l),s=!1)}return s}function $s(e,t){for(var n={},i=n,r=0,a=0;!(0>(r=e.indexOf(".",r)));)0!=r&&"\\"==e[r-1]||(i[a=e.substring(a,r).replace(/\\\./g,".")]={},i=i[a],a=r+1),r+=1;return i[e.substring(a).replace(/\\\./g,".")]=t,n}function Ws(){}function Xs(){var e=1/0;navigator.connection&&navigator.connection.saveData&&(e=360);var t={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,initDataTransform:ir,logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[]},n={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,defaultPresentationDelay:0,dash:{clockSyncUri:"",ignoreDrmInfo:!1,disableXlinkProcessing:!1,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"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:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},manifestPreprocessor:function(e){return e}},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E"}},i={retryParameters:{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4},failureCallback:function(e){return[e]},rebufferingGoal:2,bufferingGoal:10,bufferBehind:30,ignoreTextStreamFailures:!1,alwaysStreamText:!1,startAtSegmentBoundary:!1,gapDetectionThreshold:.1,smallGapLimit:.5,jumpLargeGaps:!1,durationBackoff:1,forceTransmuxTS:!1,safeSeekOffset:5,stallEnabled:!0,stallThreshold:1,stallSkip:.1,useNativeHlsOnSafari:!0,inaccurateManifestTolerance:2,lowLatencyMode:!1,autoLowLatencyMode:!1,forceHTTPS:!1,preferNativeHls:!1,updateIntervalSeconds:1,dispatchAllEmsgBoxes:!1,observeQualityChanges:!1};(navigator.userAgent.match(/Edge\//)||vn()||xn("CrKey"))&&(i.gapDetectionThreshold=.5),(xn("Web0S")||vn()||xn("CrKey"))&&(i.stallSkip=0);var r={trackSelectionCallback:function(e){return P((function(t){return t.return(e)}))},downloadSizeCallback:function(e){var t;return P((function(n){return 1==n.g?navigator.storage&&navigator.storage.estimate?x(n,navigator.storage.estimate(),3):n.return(!0):(t=n.h,n.return(t.usage+e<.95*t.quota))}))},progressCallback:function(e,t){return[e,t]},usePersistentLicense:!0},a={drm:t,manifest:n,streaming:i,offline:r,abrFactory:function(){return new ti},abr:{enabled:!0,useNetworkInformation:!0,defaultBandwidthEstimate:1e6,switchInterval:8,bandwidthUpgradeTarget:.85,bandwidthDowngradeTarget:.95,restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:e,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},advanced:{minTotalBytes:128e3,minBytes:16e3,fastHalfLife:2,slowHalfLife:5}},preferredAudioLanguage:"",preferredTextLanguage:"",preferredVariantRole:"",preferredTextRole:"",preferredAudioChannelCount:2,preferredVideoCodecs:[],preferredAudioCodecs:[],preferForcedSubs:!1,preferredDecodingAttributes:[],restrictions:{minWidth:0,maxWidth:1/0,minHeight:0,maxHeight:1/0,minPixels:0,maxPixels:1/0,minFrameRate:0,maxFrameRate:1/0,minBandwidth:0,maxBandwidth:1/0},playRangeStart:0,playRangeEnd:1/0,textDisplayFactory:function(){return null},cmcd:{enabled:!1,sessionId:"",contentId:"",useHeaders:!1}};return r.trackSelectionCallback=function(e){return P((function(t){return t.return(function(e,t){var n=e.filter((function(e){return"variant"==e.type})),i=[],r=Ke(t,n.map((function(e){return e.language})));r&&(i=n.filter((function(e){return Fe(e.language)==r}))),0==i.length&&(i=n.filter((function(e){return e.primary}))),0==i.length&&(n.map((function(e){return e.language})),i=n);var a=i.filter((function(e){return e.height&&480>
2=e.height}));if(a.length&&(a.sort((function(e,t){return t.height-e.height})),i=a.filter((function(e){return e.height==a[0].height}))),n=[],i.length){var o=Math.floor(i.length/2);i.sort((function(e,t){return e.bandwidth-t.bandwidth})),n.push(i[o])}for(i=c(e),o=i.next();!o.done;o=i.next())(o=o.value).type!=De&&"image"!=o.type||n.push(o);return n}(e,a.preferredAudioLanguage))}))},a}function Ys(e,t,n){var i={".drm.servers":"",".drm.clearKeys":"",".drm.advanced":{distinctiveIdentifierRequired:!1,persistentStateRequired:!1,videoRobustness:"",audioRobustness:"",sessionType:"",serverCertificate:new Uint8Array(0),serverCertificateUri:"",individualizationServer:""}};return Ks(e,t,n||Xs(),i,"")}function Js(){this.g=null,this.h=[]}function Zs(e,t){if(null==e.g)e.g={timestamp:Date.now()/1e3,state:t,duration:0};else{var n=Date.now()/1e3;e.g.duration=n-e.g.timestamp,e.g.state!=t&&(e.h.push(e.g),e.g={timestamp:n,state:t,duration:0})}}function Qs(e,t){var n=0;e.g&&e.g.state==t&&(n+=e.g.duration);for(var i=c(e.h),r=i.next();!r.done;r=i.next())n+=(r=r.value).state==t?r.duration:0;return n}function el(){this.i=this.h=null,this.g=[]}function tl(e,t,n){e.i!=t&&(e.i=t,e.g.push({timestamp:Date.now()/1e3,id:t.id,type:"text",fromAdaptation:n,bandwidth:null}))}function nl(){this.A=this.B=this.H=this.F=this.m=this.j=this.G=this.l=this.i=this.J=this.K=this.M=this.C=this.N=NaN,this.g=new Js,this.h=new el}function il(t,n){ee.call(this);var i=this;this.l=Tc,this.Hb=this.g=null,this.ea=!1,this.m=new Ri,this.Wd=this.B=this.jb=this.i=this.kd=this.K=this.j=this.ha=this.W=this.ld=this.M=this.cd=this.J=this.Ya=this.G=this.N=this.A=this.H=null,this.Ge=1e9,this.h=yl(this),this.le={width:1/0,height:1/0},this.C=null,this.Ma=new ci(this.h.preferredAudioLanguage,this.h.preferredVariantRole,this.h.preferredAudioChannelCount),this.Na=this.h.preferredTextLanguage,this.hb=this.h.preferredTextRole,this.kb=this.h.preferForcedSubs,this.Zd=[],this.mb=null,n&&n(this),this.H=function(e){return new Ei((function(t,n){e.B&&e.B.segmentDownloaded(t,n)}),(function(t,n,i){t=(new Map).set("headers",t).set("request",n).set("requestType",i),e.dispatchEvent(rl(ec,t))}),(function(t,n,i,r){t=(new Map).set("request",t).set("error",n).set("httpResponseCode",i).set("aborted",r),e.dispatchEvent(rl(Ql,t))}))}(this),this.H.ue(this.h.streaming.forceHTTPS),this.F=null,jc&&(this.F=_e(jc)),this.m.o(e,"online",(function(){i.ke()})),this.S={name:"detach"},this.X={name:"attach"},this.aa={name:"unload"},this.Je={name:"manifest-parser"},this.ge={name:"manifest"},this.Oa={name:"media-source"},this.be={name:"drm-engine"},this.$={name:"load"},this.Le={name:"src-equals-drm-engine"},this.Za={name:"src-equals"};var r=new Map;r.set(this.X,(function(e,t){return xi(function(e,t,n){return null==t.I&&(t.I=n.I,e.m.o(t.I,"error",(function(){var t=Rl(e);t&&Ml(e,t)}))),e.g=t.I,Promise.resolve()}(i,e,t))})),r.set(this.S,(function(e){return e.I&&(i.m.La(e.I,"error"),e.I=null),i.F&&i.F.release(),i.g=null,xi(e=Promise.resolve())})),r.set(this.aa,(function(e){return xi(ol(i,e))})),r.set(this.Oa,(function(e){return e=function(e,t){var n,i,r,a;return P((function(o){if(1==o.g)return n=new Ha,i=e.h.textDisplayFactory,r=_e(i),e.fe=i,a=function(e,t,n,i){return new Ya(e,t,n,i)}(t.I,n,r,(function(t,n,i){for(var r=(t=c(t)).next();!r.done;r=t.next())if((r=r.value).data&&r.cueTime&&r.frames){for(var a=r.cueTime+n,o=i,s=c(r.frames),l=s.next();!l.done;l=s.next())sl(e,a,o,"ID3",l.value);e.F&&e.F.onHlsTimedMetadata(r,a)}})),x(o,a.G,2);e.N=a,w(o)}))}(i,e),xi(e)})),r.set(this.Je,(function(e,t){var n=function(e,t,n){var i,r,a,o;return P((function(s){if(1==s.g)return t.mimeType=n.mimeType,t.uri=n.uri,i=t.uri,r=e.H,e.jb=i,a=e,x(s,vr(i,r,e.h.manifest.retryParameters,t.mimeType),2);a.kd=s.h,e.K=_e(e.kd),o=ki(e.h.manifest),n.I&&"AUDIO"===n.I.nodeName&&(o.disableVideo=!0),e.K.configure(o),w(s)}))}(i,e,t);return xi(n)})),r.set(this.ge,(function(e){return function(e,t){var n=t.uri,i=e.H;e.ld=new Go((function(){return e.Ga()})),e.ld.addEventListener("regionadd",(function(t){t=t.region,Ol(e,fc,t),e.F&&e.F.onDashTimedMetadata(t)})),e.ha=null,e.h.streaming.observeQualityChanges&&(e.ha=new Ho((function(){return e.Bb()})),e.ha.addEventListener("qualitychange",(function(t){var n=t.quality;t=t.position,n=(new Map).set("mediaQuality",{bandwidth:n.bandwidth,audioSamplingRate:n.audioSamplingRate,codecs:n.co
2decs,contentType:n.contentType,frameRate:n.frameRate,height:n.height,mimeType:n.mimeType,channelsCount:n.channelsCount,pixelAspectRatio:n.pixelAspectRatio,width:n.width}).set("position",t),e.dispatchEvent(rl(lc,n))})));var r={networkingEngine:i,modifyManifestRequest:function(t,n){var i=e.W;try{i.g.enabled&&(i.A=n.format,Ps(i,t,{ot:Os,su:!i.i}))}catch(e){$("CMCD_MANIFEST_ERROR","Could not generate manifest CMCD data.",e)}},modifySegmentRequest:function(t,n){js(e.W,t,n)},filter:function(t){return xl(e,t)},makeTextStreamsForClosedCaptions:function(t){return function(e,t){for(var n=new Set,i=c(t.textStreams),r=i.next();!r.done;r=i.next())"application/cea-608"!=(r=r.value).mimeType&&"application/cea-708"!=r.mimeType||n.add(r.originalId);for(i=c(t.variants),r=i.next();!r.done;r=i.next())if((r=r.value.video)&&r.closedCaptions)for(var a=c(r.closedCaptions.keys()),o=a.next();!o.done;o=a.next())if(o=o.value,!n.has(o)){var s=o.startsWith("CC")?"application/cea-608":"application/cea-708",l=new Bo;s={id:e.Ge++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:l,mimeType:s,codecs:"",kind:"caption",encrypted:!1,drmInfos:[],keyIds:new Set,language:r.closedCaptions.get(o),label:null,type:De,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:r.roles,forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},t.textStreams.push(s),n.add(o)}}(e,t)},onTimelineRegionAdded:function(t){var n=e.ld;e:{for(var i=c(n.g),r=i.next();!r.done;r=i.next())if((r=r.value).schemeIdUri==t.schemeIdUri&&r.id==t.id&&r.startTime==t.startTime&&r.endTime==t.endTime){i=r;break e}i=null}null==i&&(n.g.add(t),t=new V("regionadd",new Map([["region",t]])),n.dispatchEvent(t))},onEvent:function(t){return e.dispatchEvent(t)},onError:function(t){return Ml(e,t)},isLowLatencyMode:function(){return e.h.streaming.lowLatencyMode},isAutoLowLatencyMode:function(){return e.h.streaming.autoLowLatencyMode},enableLowLatencyMode:function(){e.configure("streaming.lowLatencyMode",!0)}},a=Date.now()/1e3;return new fi(function(){var t,i,o,s;return P((function(l){if(1==l.g)return t=e,x(l,e.K.start(n,r),2);if(t.i=l.h,i=rl(sc),e.dispatchEvent(i),0==e.i.variants.length)throw new xe(2,4,4036);!function(e){function t(e){return e.video&&e.audio||e.video&&e.video.codecs.includes(",")}e.variants.some(t)&&(e.variants=e.variants.filter(t))}(e.i),o=Date.now()/1e3,s=o-a,e.C.G=s,w(l)}))}(),(function(){return e.K.stop()}))}(i,e)})),r.set(this.be,(function(e){return e=function(e,t){var n,i;return P((function(r){return 1==r.g?(n=Date.now()/1e3,i=!0,e.A=cl(e,{Qb:e.H,onError:function(t){Ml(e,t)},pd:function(t){zl(e,t)},onExpirationUpdated:function(t,n){Bl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==tc&&i&&(i=!1,e.C.j=Date.now()/1e3-n)}}),e.A.configure(e.h.drm),x(r,$i(e.A,e.i.variants,e.i.offlineSessionIds),2)):3!=r.g?x(r,e.A.yc(t.I),3):x(r,xl(e,e.i),0)}))}(i,e),xi(e)})),r.set(this.$,(function(e,t){return xi(function(e,t,n){var i,r,a,o,s,l,c,d,u,p;return P((function(h){switch(h.g){case 1:if(t.startTime=n.startTime,null!=e.mb&&(t.startTime=e.mb,e.mb=null),i=t.I,r=t.uri,e.jb=r,e.J=new Uo({hd:function(){return t.I.playbackRate},ed:function(){return t.I.defaultPlaybackRate},we:function(e){t.I.playbackRate=e},pf:function(e){t.I.currentTime+=e}}),a=function(){return Tl(e)},o=function(){return Al(e)},e.m.o(i,"playing",a),e.m.o(i,"pause",a),e.m.o(i,"ended",a),e.m.o(i,"ratechange",o),s=e.h.abrFactory,e.B&&e.Wd==s||(e.Wd=s,e.B=_e(s),"function"!=typeof e.B.playbackRateChanged&&(ke("AbrManager","Please use an AbrManager with playbackRateChanged function."),e.B.playbackRateChanged=function(){}),e.B.configure(e.h.abr)),e.Ma=new ci(e.h.preferredAudioLanguage,e.h.preferredVariantRole,e.h.preferredAudioChannelCount),e.Na=e.h.preferredTextLanguage,e.hb=e.h.preferredTextRole,e.kb=e.h.preferForcedSubs,Ul(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd),e.B.init((function(t,n,i){e.j&&t!=e.j.l&&Il(e,t,!0,void 0!==n&&n,void 0===i?0:i)})),e.G=function(e,t){return new Lo(e.g,e.i,e.h.streaming,t,(function(){e.Ya&&qo(e.Ya,!0),e.j&&e.j.Mc(),e.M&&ul(e)}),(function(t){return e.dispatchEvent(t)}))}(e,t.startTime),e.Ya=function(e){var t=new Ko(e.ld);t.addEventListener("enter",(function(t){Ol(e,vc,t.region)})),t.addEventListener("exit",(function(t){Ol(e,bc,t.region)}
2)),t.addEventListener("skip",(function(t){var n=t.region;t.seeking||(Ol(e,vc,n),Ol(e,bc,n))}));var n=new Vo(e.g);return n.g.add(t),e.ha&&n.g.add(e.ha),n}(e),l=Math.max(e.i.minBufferTime,e.h.streaming.rebufferingGoal),dl(e,l),Tn(e.i,e.h.preferredVideoCodecs,e.h.preferredAudioCodecs,e.h.preferredAudioChannelCount,e.h.preferredDecodingAttributes),e.j=function(e){return new Zo(e.i,{gd:function(){return e.G.m()},getBandwidthEstimate:function(){return e.B.getBandwidthEstimate()},modifySegmentRequest:function(t,n){js(e.W,t,n)},U:e.N,Qb:e.H,onError:function(t){return Ml(e,t)},onEvent:function(t){return e.dispatchEvent(t)},Ng:function(){e.K&&e.K.update&&e.K.update()},ee:function(){e.G&&e.G.G(),ul(e)},Mg:function(t,n){var i=n.Xd;i&&e.ha&&function(e,t,n){var i=function(e,t){var n=e.g.get(t);return n||(n={Kc:[],Ve:null,contentType:t},e.g.set(t,n)),n}(e,t.contentType);!function(e,t){var n=e.h()[t.contentType];if(n&&0<n.length){var i=n[0].start,r=n[n.length-1].end,a=t.Kc;t.Kc=a.filter((function(e,t){return!(e.position<=i&&t+1<a.length&&a[t+1].position<=i||e.position>=r)}))}else t.Kc=[]}(e,i),e={Xd:t,position:n},0<=(t=(i=i.Kc).findIndex((function(e){return e.position>=n})))?i.splice(t,i[t].position==n?1:0,e):i.push(e)}(e.ha,i,t)}})}(e),e.j.configure(e.h.streaming),e.l=Sc,e.dispatchEvent(rl(hc)),c=null,e.ab().find((function(e){return e.active}))){h.D(2);break}if(c=Sl(e)?e.B.chooseVariant():null,Il(e,c,!0,!1,0),!e.h.streaming.startAtSegmentBoundary){h.D(3);break}return d=e.G.m(),x(h,function(e,t){var n,i,r,a,o;return P((function(s){return 1==s.g?(n=e.audio,i=e.video,r=function(e,t){var n,i;return P((function(r){return 1==r.g?e?x(r,e.createSegmentIndex(),2):r.return(null):(n=e.segmentIndex[Symbol.iterator]().seek(t))?(i=n.startTime,r.return(i)):r.return(null)}))},x(s,r(n,t),2)):3!=s.g?(a=s.h,x(s,r(i,t),3)):null!=(o=s.h)&&null!=a?s.return(Math.max(o,a)):null!=o?s.return(o):null!=a?s.return(a):s.return(t)}))}(c,d),4);case 4:u=h.h,e.G.A(u);case 3:_l(e,null,On(c));case 2:return e.rb().find((function(e){return e.active}))||((p=Gn(e.i.textStreams,e.Na,e.hb,e.kb)[0]||null)&&tl(e.C.h,p,!0),c&&(p?(c.audio&&function(e,t,n){return e=Fe(e.h.preferredTextLanguage),t=Fe(t.language),n=Fe(n.language),ze(n,e)&&!ze(t,n)}(e,c.audio,p)&&(e.ea=!0),e.ea&&e.N.l.setTextVisibility(!0),Pl(e)):e.ea=!1),p&&(e.h.streaming.alwaysStreamText||e.Pb())&&ts(e.j,p)),x(h,e.j.start(),5);case 5:e.h.abr.enabled&&(e.B.enable(),Dl(e)),Dn(e.j?e.j.l:null,e.i),Vl(e.i),jl(e),Sl(e),e.i.variants.some((function(e){return e.primary})),e.m.Ia(i,"loadedmetadata",(function(){e.C.l=Date.now()/1e3-n.Be})),w(h)}}))}(i,e,t))})),r.set(this.Le,(function(e,t){var n=function(e,t,n){var i,r,a,o,s,l,c;return P((function(d){return 1==d.g?(i=Me,r=Date.now()/1e3,a=!0,e.A=cl(e,{Qb:e.H,onError:function(t){Ml(e,t)},pd:function(t){zl(e,t)},onExpirationUpdated:function(t,n){Bl(e,t,n)},onEvent:function(t){e.dispatchEvent(t),t.type==tc&&a&&(a=!1,e.C.j=Date.now()/1e3-r)}}),e.A.configure(e.h.drm),o=n.uri||"",s=yr(o),"application/x-mpegurl"==(l=Nc[s])&&bn()&&(l="application/vnd.apple.mpegurl"),l||(l="video/mp4"),c={id:0,language:"und",primary:!1,audio:null,video:{id:0,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:n.mimeType?n.mimeType.split(";")[0]:l,codecs:n.mimeType?on(n.mimeType):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",label:null,type:i.ib,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]},e.A.X=!0,x(d,$i(e.A,[c],[]),2)):x(d,e.A.yc(t.I),0)}))}(i,e,t);return xi(n)})),r.set(this.Za,(function(e,t){return function(e,t,n){function i(){return Tl(e)}t.uri=n.uri,t.startTime=n.startTime,e.jb=t.uri,e.G=new No(t.I),null!=t.startTime&&e.G.A(t.startTime),e.J=new Uo({hd:function(){return t.I.playbackRate},ed:function(){return t.I.defaultPlaybackRate},we:function(e){t.I.playbackRate=e},pf:function(e){t.I.currentTime+=e}}),dl(e,e.h.streaming.rebufferingGoal),e.m.o(t.I,"playing",i),e.m.o(t.I,"pause",i),e.m.o(t.I,"ended",i),e.m.o(t.I,"ratechange",(function(){return Al(e)})),"none"!=e.g.preload&&e.m.Ia(e.g,"loadedmetadata",(function(){e.C.l=Date.now()/1e3-n.Be})),e.g.audioTracks&&(e.m.o(e.g.audioTracks,"addtrack",(function(){return jl(e)})),e.m.o(e.g.audioTracks,"removetrack",(function(){return jl(e)})),e.m.o(e.g.audioTracks,"change",(function(){return jl(e)}))),e.g.textTracks&&(e.m.o(e.g.textTracks,"addtrack",(function(t){if(t.track)switch(t=t.track,t.kind){case"metadata":!function(e,t){"metadata"==t.kind&&(t.mode="hidden",e.m.o(t,"cuechange",(function(){if(t.activeCues)for(var n=c(t.activeCues),i=n.next();!i.done;i=n.next())i=i.value,sl(e,i.startTime,i.endTime,i.type,i.value),e.F&&e.F.onCueMetadataChange(i.value)})),new mn((function(){for(var t=function(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"==e.kind}))}(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Aa().R(.5))}(e,t);break;case"chapters":ll(e,t);break;default:jl(e)}})),e.m.o(e.g.textTracks,"removetrack",(function(){return jl(e)})),e.m.o(e.g.textTracks,"change",(function(){return jl(e)})));var r=yr(t.uri);t.I.src=function(e,t,n){try{if(!e.g.enabled)return t;var i=Ls(e);e:{switch(n){case"video/webm":case"video/mp4":var r=Bs;break e;case"application/x-mpegurl":r=Os;break e}r=void 0}return i.ot=r,i.su=!0,Ms(t,Ds(i))}catch(e){return $("CMCD_SRC_ERROR","Could not generate src CMCD data.",e),t}}(e.W,t.uri,Nc[r]),(vn()||xn("Web0S"))&&t.I.load(),e.l=Ec,e.dispatchEvent(rl(hc));var a=new Ot;ko(e.g,HTMLMediaElement.HAVE_METADATA,e.m,(function(){a.resolve()}));var o=!1;return e.Zd.push((function(){o=!0})),ko(e.g,HTMLMediaElement.HAVE_CURRENT_DATA,e.m,(function(){return P((function(t){return 1==t.g?o?t.return():(function(e){var t=e.h.preferredAudioLanguage;if(""!=t){e.vd(t);var n=e.h.preferredVariantRole;""!=n&&e.vd(t,n)}}(e),hl(e).find((function(e){return"disabled"!=e.mode}))?t.D(2):x(t,new Promise((function(t){e.m.Ia(e.g.textTracks,"change",t),new mn(t).R(1)})),2)):o?t.return():(function(e){var t=e.h.preferredTextLanguage,n=e.h.preferForcedSubs;if(""!=t){e.oe(t,"",n);var i=e.h.preferredTextRole;""!=i&&e.oe(t,i,n)}}(e),void w(t))}))})),e.g.error?a.reject(Rl(e)):"none"==e.g.preload&&(K('With <video preload="none">, the browser will not load anything until play() is called. We are unable to measure load latency in a meaningful way, and we cannot provide track info yet. Please do not use preload="none" with Shaka Player.'),a.resolve()),e.m.Ia(e.g,"error",(function(){a.reject(Rl(e))})),new fi(a,(function(){return a.reject(new xe(2,7,7001)),Promise.resolve()}))}(i,e,t)})),this.wa=new ms(this.S,{og:function(e,t,n,r){var a=null;return e==i.S&&(a=n==i.S?i.S:i.X),e==i.X&&(a=n==i.S||t.I!=r.I?i.S:n==i.X?i.X:n==i.Oa||n==i.$?i.Oa:n==i.Za?i.Le:null),e==i.Oa&&(a=n==i.$&&t.I==r.I?i.Je:i.aa),e==i.Je&&(a=$l(i.$,i.ge,i.aa,n,t,r)),e==i.ge&&(a=$l(i.$,i.be,i.aa,n,t,r)),e==i.be&&(a=$l(i.$,i.$,i.aa,n,t,r)),e==i.Le&&(a=n==i.Za&&t.I==r.I?i.Za:i.aa),e!=i.$&&e!=i.Za||(a=i.aa),e==i.aa&&(a=r.I&&t.I==r.I?i.X:i.S),a},Sf:function(e,t,n){return i.dispatchEvent(rl(dc,(new Map).set("state",e.name))),r.get(e)(t,n)},handleError:function(e){return P((function(t){return 1==t.g?x(t,ol(i,e),2):t.return(e.I?i.X:i.S)}))},Lg:function(e){i.dispatchEvent(rl(uc,(new Map).set("state",e.name)))}}),t&&this.yc(t,!0)}function rl(e,t){return new V(e,t)}function al(){if(e.Promise||K("A Promise implementation or polyfill is required"),e.TextDecoder&&e.TextEncoder||K("A TextDecoder/TextEncoder implementation or polyfill is required"),!(e.Promise&&e.Uint8Array&&e.TextDecoder&&e.TextEncoder&&Array.prototype.forEach)||xn("Trident/"))return!1;var t=yn();return!(t&&12>t||!(e.MediaKeys&&e.navigator&&e.navigator.requestMediaKeySystemAccess&&e.MediaKeySystemAccess&&e.MediaKeySystemAccess.prototype.getConfiguration))&&(!!gn()||fn("application/x-mpegurl"))}function ol(e,t){var n,i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:return e.l!=Ac&&(e.l=Tc),n=e.Zd.map((function(e){return e()})),e.Zd=[],x(p,Promise.all(n),2);
2case 2:if(e.dispatchEvent(rl(xc)),t.mimeType=null,t.startTime=null,t.uri=null,t.I&&(e.m.La(t.I,"loadedmetadata"),e.m.La(t.I,"playing"),e.m.La(t.I,"pause"),e.m.La(t.I,"ended"),e.m.La(t.I,"ratechange")),e.Ya&&(e.Ya.release(),e.Ya=null),e.cd&&(e.cd.stop(),e.cd=null),!e.K){p.D(3);break}return x(p,e.K.stop(),4);case 4:e.K=null,e.kd=null;case 3:if(!e.B){p.D(5);break}return x(p,e.B.stop(),5);case 5:if(!e.j){p.D(7);break}return x(p,e.j.destroy(),8);case 8:e.j=null;case 7:if(e.J&&(e.J.release(),e.J=null),e.G&&(e.G.release(),e.G=null),!e.N){p.D(9);break}return x(p,e.N.destroy(),10);case 10:e.N=null;case 9:if(e.F&&e.F.onAssetUnload(),!t.I||!t.I.src){p.D(11);break}return x(p,new Promise((function(e){return new mn(e).R(.1)})),12);case 12:for(t.I.removeAttribute("src"),t.I.load();t.I.lastChild;)t.I.removeChild(t.I.firstChild);case 11:if(!e.A){p.D(13);break}return x(p,e.A.destroy(),14);case 14:e.A=null;case 13:if(e.jb=null,e.M=null,e.i){for(i=c(e.i.variants),r=i.next();!r.done;r=i.next())for(a=r.value,o=c([a.audio,a.video]),s=o.next();!s.done;s=o.next())(l=s.value)&&l.segmentIndex&&l.segmentIndex.release();for(d=c(e.i.textStreams),s=d.next();!s.done;s=d.next())(u=s.value).segmentIndex&&u.segmentIndex.release()}e.i=null,e.C=new nl,e.fe=null,kl(e),w(p)}}))}function sl(e,t,n,i,r){t=(new Map).set("startTime",t).set("endTime",n).set("metadataType",i).set("payload",r),e.dispatchEvent(rl(cc,t))}function ll(e,t){t&&"chapters"==t.kind&&(t.mode="hidden",new mn((function(){for(var t=ml(e),n=(t=c(t)).next();!n.done;n=t.next())n.value.mode="hidden"})).Aa().R(.5))}function cl(e,t){return new Ki(t,e.h.drm.updateExpirationTime)}function dl(e,t){e.M=new di,e.M.g=pi,ui(e.M,t,Math.min(.5,t/2)),kl(e),e.cd=new mn((function(){ul(e)})).ka(.25)}function ul(e){switch(e.l){case Ec:if(e.g.ended)var t=!0;else{var n=Ka(e.g.buffered);t=null!=n&&n>=e.g.duration-1}break;case Sc:e:if(e.g.ended||Za(e.N))t=!0;else{if(e.i.presentationTimeline.T()){n=e.i.presentationTimeline.Kb();var i=Ka(e.g.buffered);if(null!=i&&i>=n){t=!0;break e}}t=!1}break;default:t=!1}i=Wa(e.g.buffered,e.g.currentTime);var r=t,a=(n=e.M).h.get(n.g);t=n.g,i=r||i>=a?hi:pi,n.g=i,t!=i&&kl(e)}function pl(e){if(e.K){var t=ki(e.h.manifest);e.g&&"AUDIO"===e.g.nodeName&&(t.disableVideo=!0),e.K.configure(t)}if(e.A&&e.A.configure(e.h.drm),e.j){e.j.configure(e.h.streaming);try{wl(e,e.i)}catch(t){Ml(e,t)}e.B&&Sl(e),!(t=e.j.l)||t.allowedByApplication&&t.allowedByKeySystem||El(e)}if(e.H&&e.H.ue(e.h.streaming.forceHTTPS),e.N&&(t=e.h.textDisplayFactory,e.fe!=t)){var n=_e(t),i=e.N,r=i.l;i.l=n,r&&(n.setTextVisibility(r.isTextVisible()),r.destroy()),i.g&&(i.g.i=n),e.fe=t,e.j&&((n=(t=e.j).i.get(De))&&ns(t,n.stream,!0,0,!0))}e.B&&(e.B.configure(e.h.abr),e.h.abr.enabled?e.B.enable():e.B.disable(),Dl(e)),e.M&&(t=e.h.streaming.rebufferingGoal,e.i&&(t=Math.max(t,e.i.minBufferTime)),ui(e.M,t,Math.min(.5,t/2))),e.i&&Ul(e.i.presentationTimeline,e.h.playRangeStart,e.h.playRangeEnd)}function hl(e){return Array.from(e.g.textTracks).filter((function(e){return"metadata"!=e.kind&&"chapters"!=e.kind&&"Shaka Player TextTrack"!=e.label}))}function ml(e){return Array.from(e.g.textTracks).filter((function(e){return"chapters"==e.kind}))}function gl(e,t){var n,i;return P((function(r){switch(r.g){case 1:return n=yr(t),(i=Lc[n])?r.return(i):(k(r,2),x(r,br(t,e.H,e.h.streaming.retryParameters),4));case 4:i=r.h,T(r,3);break;case 2:S(r);case 3:if(i)return r.return(i);throw new xe(1,2,2011,n)}}))}function fl(e,t,n,i,r,a,o){var s,l,c,d;return P((function(u){if(1==u.g)return"text/vtt"!=r||o.length?x(u,vl(e,t,e.H,e.h.streaming.retryParameters),3):u.D(2);2!=u.g&&(s=u.h,l=bl(e,s,r,o),c=new Blob([l],{type:"text/vtt"}),t=uo(c),r="text/vtt"),(d=document.createElement("track")).src=Ns(e.W,t),d.label=a,d.kind=i,d.srclang=n,e.g.getAttribute("crossorigin")||e.g.setAttribute("crossorigin","anonymous"),e.g.appendChild(d),w(u)}))}function vl(e,t,n,i){var r,a,o;return P((function(s){if(1==s.g){r=Li,(a=Ci([t],i)).method="GET";var l=e.W;try{l.g.enabled&&Ps(l,a,{ot:Fs,su:!0})}catch(e){$("CMCD_TEXT_ERROR","Could not generate text CMCD data.",e)}return x(s,n.request(r,a).promise,2)}return o=s.h,s.return(o.data)}))}function bl(e,t,n,i){var r=pn[n];if(r)return n=r(),e={periodStart:0,segmentStart:0,segmentEnd:e.g.duration},t=jt(t),function(e,t){function n(e){for(var n=e,i=c(t),r=i.next();!r.done;r=i.next())(r=r.value).end&&r.start<e&&(n+=r.end-r.start);return(10>(e=Math.floor(n/3600))?"0":"")+e+":"+(10>(i=Math.floor(n/60%60))?"0":"")+i+":"+(10>(r=Math.floor(n%60))?"0":"")+r+"."+(100>(n=Math.floor(1e3*n%1e3))?10>n?"00":"0":"")+n}function i(e){var t=[],n=700<=e.fontWeight,r="italic"==e.fontStyle,a=e.textDecoration.includes("underline");
2return n&&t.push("b"),r&&t.push("i"),a&&t.push("u"),n=t.reduce((function(e,t){return e+"<"+t+">"}),""),t=t.reduceRight((function(e,t){return e+"</"+t+">"}),""),e.lineBreak||e.spacer?(e.spacer&&ke("shaka.text.Cue","Please use lineBreak instead of spacer."),"\n"):e.nestedCues.length?e.nestedCues.map(i).join(""):n+e.payload+t}for(var r=e.map((function(e){if(e.nestedCues.length){var t=e.clone();return t.nestedCues=[],t.payload=i(e),t}return e})),a="WEBVTT\n\n",o=(r=c(r)).next();!o.done;o=r.next())a+=n((o=o.value).startTime)+" --\x3e "+n(o.endTime)+function(e){var t=[];switch(e.textAlign){case"left":t.push("align:left");break;case"right":t.push("align:right");break;case ct:t.push("align:middle");break;case"start":t.push("align:start");break;case"end":t.push("align:end")}switch(e.writingMode){case"vertical-lr":t.push("vertical:lr");break;case"vertical-rl":t.push("vertical:rl")}return t.length?" "+t.join(" "):""}(o)+"\n",a+=o.payload+"\n\n";return a}(t=n.parseMedia(t,e),i);throw new xe(2,2,2014,n)}function yl(e){var t=Xs();return t.streaming.failureCallback=function(t){e.T()&&[1001,1002,1003].includes(t.code)&&(t.severity=1,e.ke())},t.textDisplayFactory=function(){return e.Hb?new Ts(e.g,e.Hb):new vs(e.g)},t}function xl(e,t){return P((function(n){if(1==n.g)return x(n,function(e,t){return P((function(n){if(1==n.g)return x(n,Cn(e.j?e.j.l:null,t),2);Vl(t),w(n)}))}(e,t),2);wl(e,t),w(n)}))}function wl(e,t){if(e.l!=Ac){for(var n=e.h.restrictions,i=e.le,r=!1,a=c(t.variants),o=a.next();!o.done;o=a.next()){var s=(o=o.value).allowedByApplication;o.allowedByApplication=In(o,n,i),s!=o.allowedByApplication&&(r=!0)}if(r&&e.j&&jl(e),(n=e.A?e.A.g:null)&&e.A.B)for(r=(i=c(t.variants)).next();!r.done;r=i.next())for(a=(r=c(((r=r.value).video?r.video.drmInfos:[]).concat(r.audio?r.audio.drmInfos:[]))).next();!a.done;a=r.next())if((a=a.value).keySystem==n.keySystem)for(o=(a=c(a.initData||[])).next();!o.done;o=a.next())o=o.value,Zi(e.A,o.initDataType,o.initData);Fl(e,t)}}function kl(e){var t=e.Ic();if(e.C&&e.M&&e.G){var n=e.J;n.j=t,Fo(n),e.W&&(n=e.W,t||n.i||(n.i=!0),n.i&&t&&(n.l=!0),n.m=t),Tl(e)}t=(new Map).set("buffering",t),e.dispatchEvent(rl(Zl,t))}function Al(e){var t=e.g.playbackRate;0!=t&&(e.J&&e.J.set(t),t=rl(pc),e.dispatchEvent(t))}function Tl(e){if(e.C&&e.M){var t=e.C.g;e.M.g==pi?Zs(t,"buffering"):e.g.paused?Zs(t,"paused"):e.g.ended?Zs(t,"ended"):Zs(t,"playing")}}function Sl(e){try{Fl(e,e.i)}catch(t){return Ml(e,t),!1}var t=e.i.variants.filter((function(e){return qn(e)}));return t=e.Ma.create(t),e.B.setVariants(Array.from(t.values())),!0}function El(e){var t;(t=Sl(e)?e.B.chooseVariant():null)&&Il(e,t,!0,!0,0)}function Il(e,t,n,i,r){var a=e.j.l;if(t==a)i&&es(e.j,t,i,r,!0);else{var o=e.C.h;o.h!=t&&(o.h=t,o.g.push({timestamp:Date.now()/1e3,id:t.id,type:"variant",fromAdaptation:n,bandwidth:t.bandwidth})),es(e.j,t,i,r),i=null,a&&(i=On(a)),t=On(t),n?_l(e,i,t):Nl(e,i,t)}}function Cl(e,t){var n=Array.from(e.g.audioTracks).find((function(e){return e.enabled}));t.enabled=!0,t.id!==n.id&&(n.enabled=!1),Nl(e,n=Fn(n),Fn(t))}function _l(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),ql(e,t=rl(Jl,t))}function jl(e){ql(e,rl(yc))}function Nl(e,t,n){t=(new Map).set("oldTrack",t).set("newTrack",n),ql(e,t=rl(wc,t))}function Ll(e){ql(e,rl(mc))}function Pl(e){ql(e,rl(gc))}function Dl(e){var t=(new Map).set("newStatus",e.h.abr.enabled);ql(e,rl(Yl,t))}function Ml(e,t){if(e.l!=Ac){var n=rl(ic,(new Map).set("detail",t));e.dispatchEvent(n),n.defaultPrevented&&(t.handled=!0)}}function Ol(e,t,n){n=(new Map).set("detail",{schemeIdUri:n.schemeIdUri,value:n.value,startTime:n.startTime,endTime:n.endTime,id:n.id,eventElement:n.eventElement}),e.dispatchEvent(rl(t,n))}function Rl(e){if(!e.g.error)return null;var t=e.g.error.code;if(1==t)return null;var n=e.g.error.msExtendedCode;return n&&(0>n&&(n+=Math.pow(2,32)),n=n.toString(16)),new xe(2,3,3016,t,n,e.g.error.message)}function zl(e,t){if(e.j){var n=Object.keys(t),i=1==n.length&&"00"==n[0],r=!1;if(n.length)for(var a=(n=c(e.i.variants)).next();!a.done;a=n.next()){var o=[];(a=a.value).audio&&o.push(a.audio),a.video&&o.push(a.video);for(var s=(o=c(o)).next();!s.done;s=o.next()){var l=s.value;if(s=a.allowedByKeySystem,l.keyIds.size){a.allowedByKeySystem=!0;for(var d=(l=c(l.keyIds)).next();!d.done;d=l.next())d=d.value,d=t[i?"00":d],a.allowedByKeySystem=a.allowedByKeySystem&&!!d&&!Cc.includes(d)}s!=a.allowedByKeySystem&&(r=!0)}}r&&Sl(e),(i=e.j.l)&&!i.allowedByKeySystem&&El(e),r&&jl(e)}}function Bl(e,t,n){e.K&&e.K.onExpirationUpdated&&e.K.onExpirationUpdated(t,n),t=rl(rc),e.dispatchEvent(t)}function Ul(e,t,n){0<t&&(e.T()||e.Af(t)),n<(t=e.getDuration())&&(e.T()||e.eb(n))}function Fl(e,t){var n=e.A?e.A.fd():{},i=Object.keys(n);i=i.length&&"00"==i[0];for(var r=!1,a=!1,o=new Set,s=new Set,l=c(t.variants),d=l.next();!d.done;d=l.next()){var u=[];(d=d.value).audio&&u.push(d.audio),d.video&&u.push(d.video);for(var p=(u=c(u)).next();!p.done;p=u.next())if((p=p.value).keyIds.size)for(var h=(p=c(p.keyIds)).next();!h.done;h=p.next()){h=h.value;var m=n[i?"00":h];m?Cc.includes(m)&&s.add(m):o.add(h)}d.allowedByApplication?d.allowedByKeySystem&&(r=!0):a=!0}if(!r)throw new xe(2,4,4012,n={hasAppRestrictions:a,missingKeys:Array.from(o),restrictedKeyStatuses:Array.from(s)})}function Vl(e){if(!e.variants.some(qn))throw new xe(2,4,4032)}function ql(e,t){P((function(n){if(1==n.g)return x(n,Promise.resolve(),2);e.l!=Ac&&e.dispatchEvent(t),w(n)}))}function Hl(e){for(var t=new Set,n=(e=c(e)).next();!n.done;n=e.next())(n=n.value).language?t.add(Fe(n.language)):t.add("und");return t}function Gl(e){for(var t=new Map,n=new Map,i=(e=c(e)).next();!i.done;i=e.next()){var r="und",a=[];(i=i.value).language&&(r=Fe(i.language)),(a="variant"==i.type?i.audioRoles:i.roles)&&a.length||(a=[""]),t.has(r)||t.set(r,new Set);for(var o=(a=c(a)).next();!o.done;o=a.next())o=o.value,t.get(r).add(o),i.label&&(n.has(r)||n.set(r,new Map),n.get(r).set(o,i.label))}var s=[];return t.forEach((function(e,t){for(var i=c(e),r=i.next();!r.done;r=i.next()){r=r.value;var a=null;n.has(t)&&n.get(t).has(r)&&(a=n.get(t).get(r)),s.push({language:t,role:r,label:a})}})),s}function Kl(){return new xe(2,7,7e3)}
2function $l(e,t,n,i,r,a){return i==e&&r.I==a.I&&r.uri==a.uri&&r.mimeType==a.mimeType?t:n}function Wl(){return{I:null,mimeType:null,startTime:null,Be:NaN,uri:null}}function Xl(e){return new Promise((function(t,n){e.Rb=function(){return n(Kl())},e.od=function(){return t()},e.onError=function(e){return n(e)},e.qd=function(){return n(Kl())}}))}F("shaka.util.CmcdManager.StreamingFormat",{yh:"d",Nh:"h",ri:"s",ai:"o"}),F("shaka.util.ConfigUtils",Gs),Gs.convertToConfigObject=$s,Gs.mergeConfigObjects=Ks,F("shaka.util.PlayerConfiguration",Ws),Ws.mergeConfigObjects=Ys,f(il,ee),(i=il.prototype).destroy=function(){var e,t=this;return P((function(n){switch(n.g){case 1:return t.l==Ac?n.return():(t.l=Ac,e=gs(t.wa,(function(){return{node:t.S,payload:Wl(),Lb:!1}})),x(n,new Promise((function(t){e.lc=function(){},e.od=function(){t()},e.Rb=function(){t()},e.onError=function(){t()},e.qd=function(){t()}})),2));case 2:return x(n,t.wa.destroy(),3);case 3:if(t.m&&(t.m.release(),t.m=null),t.Wd=null,t.B=null,t.h=null,t.C=null,t.Hb=null,t.W=null,!t.H){n.D(4);break}return x(n,t.H.destroy(),5);case 5:t.H=null;case 4:ee.prototype.release.call(t),w(n)}}))},i.yc=function(e,t){if(t=void 0===t||t,this.l==Ac)return Promise.reject(Kl());var n=Wl();n.I=e,gn()||(t=!1);var i=t?this.Oa:this.X,r=gs(this.wa,(function(){return{node:i,payload:n,Lb:!1}}));return r.lc=function(){},Xl(r)},i.detach=function(){var e=this;if(this.l==Ac)return Promise.reject(Kl());var t=gs(this.wa,(function(){return{node:e.S,payload:Wl(),Lb:!1}}));return t.lc=function(){},Xl(t)},i.He=function(e){var t=this;if(e=void 0===e||e,this.l==Ac)return Promise.reject(Kl());gn()||(e=!1);var n=Wl(),i=gs(this.wa,(function(i){var r=i.I&&e?t.Oa:i.I?t.X:t.S;return n.I=i.I,{node:r,payload:n,Lb:!1}}));return i.lc=function(){},Xl(i)},i.mh=function(e){this.mb=e},i.load=function(e,t,n){var i=this;if(this.mb=null,this.l==Ac)return Promise.reject(Kl());this.dispatchEvent(rl(oc));var r=Wl();r.uri=e,r.Be=Date.now()/1e3,n&&(r.mimeType=n),void 0!==t&&(r.startTime=t);var a=function(e,t){if(!gn())return!0;var n=t.mimeType,i=t.uri||"";if(n||(n=yr(i),n=Nc[n]),n){if(""==(t.I||wn()).canPlayType(n))return!1;if(!gn()||!(n in xr)&&!(yr(i)in wr)||e.h.streaming.preferNativeHls)return!0;if(bn())return e.h.streaming.useNativeHlsOnSafari}return!1}(this,r)?this.Za:this.$,o=gs(this.wa,(function(e){return null==e.I?null:(r.I=e.I,{node:a,payload:r,Lb:!0})}));return this.C=new nl,this.W=function(e){return new _s({getBandwidthEstimate:function(){return e.B?e.B.getBandwidthEstimate():NaN},Bb:function(){return e.Bb()},cg:function(){return e.g?e.g.currentTime:0},ab:function(){return e.ab()},Cb:function(){return e.Cb()},T:function(){return e.T()}},e.h.cmcd)}(this),o.lc=function(){},new Promise((function(e,t){o.qd=function(){return t(new xe(2,7,7002))},o.od=function(){e(),i.dispatchEvent(rl(ac))},o.Rb=function(){return t(Kl())},o.onError=function(e){return t(e)}}))},i.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=$s(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),e.streaming&&e.streaming.lowLatencyMode&&(null==e.streaming.inaccurateManifestTolerance&&(e.streaming.inaccurateManifestTolerance=0),null==e.streaming.rebufferingGoal&&(e.streaming.rebufferingGoal=.01));var n=Ys(this.h,e,yl(this));return pl(this),n},i.getConfiguration=function(){var e=yl(this);return Ys(e,this.h,yl(this)),e},i.Vf=function(){if(this.g){var e=this.g.buffered.length;e=e?this.g.buffered.end(e-1):0;var t=this.getConfiguration().streaming.bufferingGoal;if(e>=(t=Math.min(this.g.currentTime+t,this.Ga().end)))return 1;if(!(e<=this.g.currentTime)&&e<t)return(e-this.g.currentTime)/(t-this.g.currentTime)}return 0},i.Yg=function(){for(var e in this.h)delete this.h[e];Ys(this.h,yl(this),yl(this)),pl(this)},i.df=function(){return this.l},i.ng=function(){return this.g},i.Dc=function(){return this.H},i.Pd=function(){return this.jb},i.dd=function(){return this.F?this.F:null},i.T=function(){return this.i?this.i.presentationTimeline.T():!(!this.g||!this.g.src)&&1/0==this.g.duration},i.Nb=function(){return!!this.i&&this.i.presentationTimeline.Nb()},i.jf=function(){if(this.i){var e=this.i.variants;return!!e.length&&!e[0].video}return!(!this.g||!this.g.src)&&(this.g.videoTracks?0==this.g.videoTracks.length:0==this.g.videoHeight)},i.Ga=function(){if(this.i){var e=this.i.presentationTimeline;return{start:e.ec(),end:e.pb()}}return this.g&&this.g.src&&(e=this.g.seekable).length?{start:e.start(0),end:e.end(e.length-1)}:{start:0,end:0}},i.Bg=function(){this.T()&&(this.g.currentTime=this.Ga().end)},i.keySystem=function(){var e=this.drmInfo();return e?e.keySystem:""},i.drmInfo=function(){return this.A?this.A.g:null},i.Cc=function(){return this.A?this.A.Cc():1/0},i.fd=function(){return this.A?this.A.fd():{}}
2,i.Ic=function(){return!!this.M&&this.M.g==pi},i.Cb=function(){return this.g?this.J?this.J.i:1:0},i.Fe=function(e){0==e?K("A trick play rate of 0 is unsupported!"):(this.g.paused&&this.g.play(),this.J.set(e),this.l==Sc&&(this.B.playbackRateChanged(e),Qo(this.j,1<Math.abs(e))))},i.Pe=function(){var e=this.J.ed();this.l==Ec&&this.J.set(e),this.l==Sc&&(this.J.set(e),this.B.playbackRateChanged(e),Qo(this.j,!1))},i.ab=function(){if(this.i){for(var e=this.j?this.j.l:null,t=[],n=0,i=c(this.i.variants),r=i.next();!r.done;r=i.next())if(qn(r=r.value)){var a=On(r);a.active=r==e,a.active||1==n||null==e||r.video!=e.video||r.audio!=e.audio||(a.active=!0),a.active&&n++,t.push(a)}return t}return this.g&&this.g.audioTracks?Array.from(this.g.audioTracks).map((function(e){return Fn(e)})):[]},i.rb=function(){if(this.i){for(var e=this.j?this.j.A:null,t=[],n=c(this.i.textStreams),i=n.next();!i.done;i=n.next()){var r=Rn(i=i.value);r.active=i==e,t.push(r)}return t}return this.g&&this.g.src&&this.g.textTracks?hl(this).map((function(e){return Un(e)})):[]},i.fg=function(){return this.i?this.i.imageStreams.map((function(e){return zn(e)})):[]},i.xg=function(e,t){var n,i,r,a,o,s,l,c,d,u,p,h,m,g,f,v,b,y,w=this;return P((function(k){return 1==k.g?w.i?(n=w.i.imageStreams.find((function(t){return t.id==e})))?n.segmentIndex?k.D(3):x(k,n.createSegmentIndex(),3):k.return(null):k.D(2):2!=k.g?null==(i=n.segmentIndex.find(t))?k.return(null):(r=n.segmentIndex.get(i),a=r.tilesLayout||n.tilesLayout,(o=/(\d+)x(\d+)/.exec(a))?(s=n.width||0,l=n.height||0,c=parseInt(o[1],10),d=parseInt(o[2],10),u=s/c,p=l/d,h=c*d,m=r.l-r.startTime,g=r.i||m/h,f=r.startTime,b=v=0,1<h&&(y=Math.floor((t-r.startTime)/g),f=r.startTime+y*g,v=y%c*u,b=Math.floor(y/c)*p),k.return({imageHeight:l,imageWidth:s,height:p,positionX:v,positionY:b,startTime:f,duration:g,uris:r.Ra(),width:u})):k.return(null)):k.return(null)}))},i.pe=function(e){if(this.i&&this.j){var t=this.i.textStreams.find((function(t){return t.id==e.id}));t&&t!=this.j.A&&(tl(this.C.h,t,!1),ts(this.j,t),Ll(this),this.Na=t.language)}else if(this.g&&this.g.src&&this.g.textTracks){for(var n=(t=c(t=hl(this))).next();!n.done;n=t.next())Bn(n=n.value)==e.id?n.mode=this.ea?"showing":"hidden":n.mode="disabled";Ll(this)}},i.qe=function(e,t,n){if(t=void 0!==t&&t,n=void 0===n?0:n,this.i&&this.j){this.h.abr.enabled&&K("Changing tracks while abr manager is enabled will likely result in the selected track being overriden. Consider disabling abr before calling selectVariantTrack().");var i=this.i.variants.find((function(t){return t.id==e.id}));i&&qn(i)&&(Il(this,i,!1,t,n),this.Ma=new li(i),Sl(this))}else if(this.g&&this.g.audioTracks)for(n=(t=c(t=Array.from(this.g.audioTracks))).next();!n.done;n=t.next())if(Bn(n=n.value)==e.id){Cl(this,n);break}},i.Uf=function(){return Gl(this.ab())},i.wg=function(){return Gl(this.rb())},i.Tf=function(){return Array.from(Hl(this.ab()))},i.vg=function(){return Array.from(Hl(this.rb()))},i.vd=function(e,t){if(this.i&&this.G){this.Ma=new ci(e,t||"",0,"");for(var n=function(e,t){return e.video||t.video?e.video&&t.video?Math.abs((e.video.height||0)-(t.video.height||0))+Math.abs((e.video.width||0)-(t.video.width||0)):1/0:0},i=this.j.l,r=this.Ma.create(this.i.variants),a=null,o=(r=c(r.values())).next();!o.done;o=r.next())o=o.value,(!a||n(a,i)>n(o,i))&&(a=o);a?(n=On(a),this.qe(n,!0)):El(this)}else if(this.g&&this.g.audioTracks){for(r=Array.from(this.g.audioTracks),n=Fe(e),a=i=null,o=(r=c(r)).next();!o.done;o=r.next()){var s=Fn(o=o.value);Fe(s.language)==n&&(i=o,t?s.roles.includes(t)&&(a=o):0==s.roles.length&&(a=o))}a?Cl(this,a):i&&Cl(this,i)}},i.oe=function(e,t,n){if(n=void 0!==n&&n,this.i&&this.G)this.Na=e,this.hb=t||"",this.kb=n,(e=Gn(this.i.textStreams,this.Na,this.hb,this.kb)[0]||null)&&e!=this.j.A&&(tl(this.C.h,e,!1),this.h.streaming.alwaysStreamText||this.Pb())&&(ts(this.j,e),Ll(this));else{var i=Fe(e);(e=this.rb().find((function(e){return Fe(e.language)==i&&(!t||e.roles.includes(t))&&e.forced==n})))&&this.pe(e)}},i.ah=function(e){if(this.i&&this.G){for(var t=null,n=c(this.i.variants),i=n.next();!i.done;i=n.next())if((i=i.value).audio.label==e){t=i;break}null!=t&&(this.Ma=new ci(t.language,"",0,e),El(this))}},i.Pb=function(){var e=this.ea;
2return this.N?this.N.l.isTextVisible():this.g&&this.g.src&&this.g.textTracks?hl(this).some((function(e){return"showing"==e.mode})):e},i.bf=function(){return this.g&&this.g.src&&this.g.textTracks?ml(this).map((function(e){return Un(e)})):[]},i.Xf=function(e){var t=Fe(e),n=ml(this).filter((function(e){return Fe(e.language)==t}));if(!n||!n.length)return[];e=[];for(var i=(n=c(n)).next();!i.done;i=n.next())if((i=i.value)&&i.cues)for(var r=(i=c(i.cues)).next();!r.done;r=i.next())r=r.value,e.push({title:r.text,startTime:r.startTime,endTime:r.endTime});return e},i.ze=function(e){if(e=!!e,this.ea!=e){if(this.ea=e,this.l==Sc)this.N.l.setTextVisibility(e),this.h.streaming.alwaysStreamText||(e?this.j.A||0<(e=Gn(this.i.textStreams,this.Na,this.hb,this.kb)).length&&(ts(this.j,e[0]),Ll(this)):function(e){var t=e.i.get(De);t&&(us(t),ps(t).catch((function(){})),e.i.delete(De)),e.A=null}(this.j));else if(this.g&&this.g.src&&this.g.textTracks)for(var t=hl(this),n=(t=c(t)).next();!n.done;n=t.next())"disabled"!=(n=n.value).mode&&(n.mode=e?"showing":"hidden");Pl(this)}},i.pg=function(){if(!this.T())return null;var e=this.wa.l,t=0;if(this.G)t=this.G.m();else if(e){if(null==e.startTime)return new Date;t=e.startTime}return this.i?new Date(1e3*(this.i.presentationTimeline.j+t)):this.g&&this.g.getStartDate?(e=this.g.getStartDate(),isNaN(e.getTime())?null:new Date(e.getTime()+1e3*t)):null},i.ef=function(){if(!this.T())return null;if(this.i)return new Date(1e3*this.i.presentationTimeline.j);if(this.g&&this.g.getStartDate){var e=this.g.getStartDate();return isNaN(e.getTime())?null:e}return null},i.Bb=function(){if(this.l==Sc)return this.N.Bb();var e={total:[],audio:[],video:[],text:[]};return this.l==Ec&&(e.total=Xa(this.g.buffered)),e},i.getStats=function(){if(this.l!=Sc&&this.l!=Ec)return{width:NaN,height:NaN,streamBandwidth:NaN,decodedFrames:NaN,droppedFrames:NaN,corruptedFrames:NaN,estimatedBandwidth:NaN,completionPercent:NaN,loadLatency:NaN,manifestTimeSeconds:NaN,drmTimeSeconds:NaN,playTime:NaN,pauseTime:NaN,bufferingTime:NaN,licenseTime:NaN,liveLatency:NaN,maxSegmentDuration:NaN,switchHistory:[],stateHistory:[]};Tl(this);var e=this.g,t=e.currentTime/e.duration;if(!isNaN(t)){var n=this.C;t=Math.round(100*t),n.i=isNaN(n.i)?t:Math.max(n.i,t)}e.getVideoPlaybackQuality&&(e=e.getVideoPlaybackQuality(),n=this.C,t=Number(e.totalVideoFrames),n.M=Number(e.droppedVideoFrames),n.K=t,this.C.J=Number(e.corruptedVideoFrames)),this.A?e=(e=this.A).K?e.K:NaN:e=NaN,this.C.m=e,this.l==Sc&&((e=this.j.l)&&(this.C.B=(this.J?this.J.i:1)*e.bandwidth),e&&e.video&&(n=this.C,t=e.video.height||NaN,n.N=e.video.width||NaN,n.C=t),this.T()&&(e=this.ef().valueOf()+1e3*this.Ga().end,this.C.F=(Date.now()-e)/1e3),this.i&&this.i.presentationTimeline&&(this.C.H=this.i.presentationTimeline.g),e=this.B.getBandwidthEstimate(),this.C.A=e);var i=this.C;e=i.N,n=i.C,t=i.B;for(var r=i.K,a=i.M,o=i.J,s=i.A,l=i.i,d=i.l,u=i.G,p=i.j,h=Qs(i.g,"playing"),m=Qs(i.g,"paused"),g=Qs(i.g,"buffering"),f=i.m,v=i.F,b=i.H,y=function(e){function t(e){return{timestamp:e.timestamp,state:e.state,duration:e.duration}}for(var n=[],i=c(e.h),r=i.next();!r.done;r=i.next())n.push(t(r.value));return e.g&&n.push(t(e.g)),n}(i.g),x=[],w=(i=c(i.h.g)).next();!w.done;w=i.next())w=w.value,x.push({timestamp:w.timestamp,id:w.id,type:w.type,fromAdaptation:w.fromAdaptation,bandwidth:w.bandwidth});return{width:e,height:n,streamBandwidth:t,decodedFrames:r,droppedFrames:a,corruptedFrames:o,estimatedBandwidth:s,completionPercent:l,loadLatency:d,manifestTimeSeconds:u,drmTimeSeconds:p,playTime:h,pauseTime:m,bufferingTime:g,licenseTime:f,liveLatency:v,maxSegmentDuration:b,stateHistory:y,switchHistory:x}},i.addTextTrack=function(e,t,n,i,r,a,o){if(o=void 0!==o&&o,ke("addTextTrack","Please use an addTextTrackAsync."),this.l!=Sc&&this.l!=Ec)throw new xe(1,7,7004);if(!i){var s=yr(e);if(!(i=Lc[s]))throw new xe(1,2,2011,s)}if(this.l==Ec){if("text/vtt"!=i)throw new xe(1,2,2013,i);if(o&&(n="forced"),(i=document.createElement("track")).src=Ns(this.W,e),i.label=a||"",i.kind=n,i.srclang=t,this.g.getAttribute("crossorigin")||this.g.setAttribute("crossorigin","anonymous"),this.g.appendChild(i),e=this.rb().find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return jl(this),e;throw new xe(1,2,2012)}if(1/0==(s=this.i.presentationTimeline.getDuration()))throw new xe(1,4,4033);if(!ln(nn((e={id:this.Ge++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ro(0,s,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:De,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}).mimeType,e.codecs)))throw new xe(2,2,2014,i);return this.i.textStreams.push(e),jl(this),Rn(e)},i.Kf=function(e,t,n,i,r,a,o){o=void 0!==o&&o;var s,l,c,d,u,p,h,m,g,f,v=this;return P((function(b){switch(b.g){case 1:if(v.l!=Sc&&v.l!=Ec)throw new xe(1,7,7004);if(i){b.D(2);break}return x(b,gl(v,e),3);case 3:i=b.h;case 2:if(s=[],v.F)try{s=v.F.getServerSideCuePoints()}catch(e){}if(v.l!=Ec){b.D(4);break}return o&&(n="forced"),x(b,fl(v,e,t,n,i,a||"",s),5);case 5:if(l=v.rb(),c=l.find((function(e){return e.language==t&&e.label==(a||"")&&e.kind==n})))return jl(v),b.return(c);throw new xe(1,2,2012);case 4:if(d=Me,1/0==(u=v.i.presentationTimeline.getDuration()))throw new xe(1,4,4033);if(!s.length){b.D(6);break}return x(b,vl(v,e,v.H,v.h.streaming.retryParameters),7);case 7:p=b.h,h=bl(v,p,i,s),m=new Blob([h],{type:"text/vtt"}),e=uo(m),i="text/vtt";case 6:if(g={id:v.Ge++,originalId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:Ro(0,u,[e]),mimeType:i||"",codecs:r||"",kind:n,encrypted:!1,drmInfos:[],keyIds:new Set,language:t,label:a||null,type:d.ma,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!!o,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null},f=nn(g.mimeType,g.codecs),!ln(f))throw new xe(2,2,2014,i);return v.i.textStreams.push(g),jl(v),b.return(Rn(g))}}))},i.Jf=function(e,t,n){var i,r,a,o,s,l,d,u=this;return P((function(p){switch(p.g){case 1:if(u.l!=Sc&&u.l!=Ec)throw new xe(1,7,7004);if(n){p.D(2);break}return x(p,gl(u,e),3);case 3:n=p.h;case 2:if(i=[],u.F)try{i=u.F.getServerSideCuePoints()}catch(e){}return x(p,fl(u,e,t,"chapters",n,"",i),4);case 4:if(r=u.bf(),a=r.find((function(e){return e.language==t}))){for(o=ml(u),s=c(o),l=s.next();!l.done;l=s.next())d=l.value,ll(u,d);return p.return(a)}throw new xe(1,2,2012)}}))},i.ve=function(e,t){this.le.width=e,this.le.height=t},i.ke=function(){if(this.l==Sc){var e=this.j;if(e.j.g)e=!1;else if(e.B)e=!1;else{for(var t=c(e.i.values()),n=t.next();!n.done;n=t.next())(n=n.value).Gc&&(n.Gc=!1,ds(e,n,.1));e=!0}}else e=!1;return e},i.kg=function(){return K("Shaka Player's internal Manifest structure is NOT covered by semantic versioning compatibility guarantees.  It may change at any time!  Please consider filing a feature request for whatever you use getManifest() for."),this.i},i.lg=function(){return this.kd},i.Ae=function(e){this.Hb=e},F("shaka.Player",il),il.prototype.setVideoContainer=il.prototype.Ae,il.prototype.getManifestParserFactory=il.prototype.lg,il.prototype.getManifest=il.prototype.kg,il.prototype.retryStreaming=il.prototype.ke,il.prototype.setMaxHardwareResolution=il.prototype.ve,il.prototype.addChapter
2sTrack=il.prototype.Jf,il.prototype.addTextTrackAsync=il.prototype.Kf,il.prototype.addTextTrack=il.prototype.addTextTrack,il.prototype.getStats=il.prototype.getStats,il.prototype.getBufferedInfo=il.prototype.Bb,il.prototype.getPresentationStartTimeAsDate=il.prototype.ef,il.prototype.getPlayheadTimeAsDate=il.prototype.pg,il.prototype.setTextTrackVisibility=il.prototype.ze,il.prototype.getChapters=il.prototype.Xf,il.prototype.getChaptersTracks=il.prototype.bf,il.prototype.isTextTrackVisible=il.prototype.Pb,il.prototype.selectVariantsByLabel=il.prototype.ah,il.prototype.selectTextLanguage=il.prototype.oe,il.prototype.selectAudioLanguage=il.prototype.vd,il.prototype.getTextLanguages=il.prototype.vg,il.prototype.getAudioLanguages=il.prototype.Tf,il.prototype.getTextLanguagesAndRoles=il.prototype.wg,il.prototype.getAudioLanguagesAndRoles=il.prototype.Uf,il.prototype.selectVariantTrack=il.prototype.qe,il.prototype.selectTextTrack=il.prototype.pe,il.prototype.getThumbnails=il.prototype.xg,il.prototype.getImageTracks=il.prototype.fg,il.prototype.getTextTracks=il.prototype.rb,il.prototype.getVariantTracks=il.prototype.ab,il.prototype.cancelTrickPlay=il.prototype.Pe,il.prototype.trickPlay=il.prototype.Fe,il.prototype.getPlaybackRate=il.prototype.Cb,il.prototype.isBuffering=il.prototype.Ic,il.prototype.getKeyStatuses=il.prototype.fd,il.prototype.getExpiration=il.prototype.Cc,il.prototype.drmInfo=il.prototype.drmInfo,il.prototype.keySystem=il.prototype.keySystem,il.prototype.goToLive=il.prototype.Bg,il.prototype.seekRange=il.prototype.Ga,il.prototype.isAudioOnly=il.prototype.jf,il.prototype.isInProgress=il.prototype.Nb,il.prototype.isLive=il.prototype.T,il.prototype.getAdManager=il.prototype.dd,il.prototype.getAssetUri=il.prototype.Pd,il.prototype.getNetworkingEngine=il.prototype.Dc,il.prototype.getMediaElement=il.prototype.ng,il.prototype.getLoadMode=il.prototype.df,il.prototype.resetConfiguration=il.prototype.Yg,il.prototype.getBufferFullness=il.prototype.Vf,il.prototype.getConfiguration=il.prototype.getConfiguration,il.prototype.configure=il.prototype.configure,il.prototype.load=il.prototype.load,il.prototype.updateStartTime=il.prototype.mh,il.prototype.unload=il.prototype.He,il.prototype.detach=il.prototype.detach,il.prototype.attach=il.prototype.yc,il.probeSupport=function(e){var t,n,i,r,a;return e=void 0===e||e,P((function(o){if(1==o.g)return t={},e?x(o,function(){var e,t,n,i,r,a;return P((function(o){return 1==o.g?(e="org.w3.clearkey com.widevine.alpha com.microsoft.playready com.microsoft.playready.recommendation com.apple.fps.3_0 com.apple.fps.2_0 com.apple.fps.1_0 com.apple.fps com.adobe.primetime".split(" "),n=[{videoCapabilities:t=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],persistentState:"required",sessionTypes:["persistent-license"]},{initDataTypes:["cenc"],videoCapabilities:t}],i=new Map,r=function(e){var t,r,a;return P((function(o){switch(o.g){case 1:if(k(o,2),"org.w3.clearkey"===e&&yn())throw Error("Unsupported keySystem");return x(o,navigator.requestMediaKeySystemAccess(e,n),4);case 4:return t=o.h,a=!!(r=t.getConfiguration().sessionTypes)&&r.includes("persistent-license"),xn("Tizen 3")&&(a=!1),i.set(e,{persistentState:a}),x(o,t.createMediaKeys(),5);case 5:T(o,0);break;case 2:S(o),i.set(e,null),w(o)}}))},a=e.map((function(e){return r(e)})),x(o,Promise.all(a),2)):o.return(Hi(i))}))}(),3):o.D(2);2!=o.g&&(t=o.h);var s={};if(gn()){for(var l in xr)s[l]=!0;for(var u in wr)s[u]=!0}l={mpd:"application/dash+xml",m3u8:"application/x-mpegurl",ism:"application/vnd.ms-sstr+xml"};for(var p=(u=c(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"])).next();!p.done;p=u.next())s[p=p.value]=gn()?!!xr[p]:fn(p);for(var h in l)s[h]=gn()?!!wr[h]:fn(l[h]);for(n=s,s={},l=(h=c(h='video/mp4; codecs="avc1.42E01E",video/mp4; codecs="avc3.42E01E",video/mp4; codecs="hev1.1.6.L93.90",video/mp4; codecs="hvc1.1.6.L93.90",video/mp4; codecs="hev1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="hvc1.2.4.L153.B0"; eotf="smpte2084",video/mp4; codecs="vp9",video/mp4; codecs="vp09.00.10.08",video/mp4; codecs="av01.0.01M.08",audio/mp4; codecs="mp4a.40.2",audio/mp4; codecs="ac-3",audio/mp4; codecs="ec-3",audio/mp4; codecs="opus",audio/mp4; codecs="flac",video/webm; codecs="vp8",video/webm; codecs="vp9",video/webm; codecs="vp09.00.10.08",audio/webm; codecs="vorbis",audio/webm; codecs="opus",video/mp2t; codecs="avc1.42E01E",video/mp2t; codecs="avc3.42E01E",video/mp2t; codecs="hvc1.1.6.L93.90",video/mp2t; codecs="mp4a.40.2",video/mp2t; codecs="ac-3",video/mp2t; codecs="ec-3",text/vtt,application/mp4; codecs="wvtt",application/ttml+xml,application/mp4; codecs="stpp"'.split(",").concat(d(ho)))).next();!l.done;
2l=h.next())s[l=l.value]=gn()?!!ln(l)||(MediaSource.isTypeSupported(l)||Qt(l)):fn(l),s[u=l.split(";")[0]]=s[u]||s[l];for(a in i={manifest:n,media:s,drm:t},r=_c)i[a]=r[a]();return o.return(i)}))},il.isBrowserSupported=al,il.setAdManagerFactory=function(e){jc=e},il.registerSupportPlugin=function(e,t){_c[e]=t},il.prototype.destroy=il.prototype.destroy;var Yl="abrstatuschanged",Jl="adaptation",Zl="buffering",Ql="downloadfailed",ec="downloadheadersreceived",tc="drmsessionupdate",nc="emsg",ic="error",rc="expirationupdated",ac="loaded",oc="loading",sc="manifestparsed",lc="mediaqualitychanged",cc="metadata",dc="onstatechange",uc="onstateidle",pc="ratechange",hc="streaming",mc="textchanged",gc="texttrackvisibility",fc="timelineregionadded",vc="timelineregionenter",bc="timelineregionexit",yc="trackschanged",xc="unloading",wc="variantchanged",kc={sh:Yl,uh:Jl,vh:Zl,Ah:Ql,Bh:ec,Ch:tc,Jh:nc,Error:ic,Kh:rc,Qh:"largegap",Rh:ac,Sh:oc,Wh:sc,Xh:lc,Metadata:cc,bi:dc,ci:uc,mi:pc,ti:"sessiondata",wi:hc,xi:mc,zi:gc,Ai:fc,Bi:vc,Ci:bc,Di:yc,Hi:xc,Ji:wc},Ac=0,Tc=1,Sc=2,Ec=3;il.LoadMode={DESTROYED:Ac,NOT_LOADED:Tc,MEDIA_SOURCE:Sc,SRC_EQUALS:Ec},il.version="v3.1.6-master-18-gd6bdf9a4";var Ic=["3","1"];Se=new function(e){this.g=e,this.i=Ae,this.h=Te}(new we(Number(Ic[0]),Number(Ic[1])));var Cc=["output-restricted","internal-error"],_c={},jc=null,Nc={mp4:"video/mp4",m4v:"video/mp4",m4a:"audio/mp4",webm:"video/webm",weba:"audio/webm",mkv:"video/webm",ts:"video/mp2t",ogv:"video/ogg",ogg:"audio/ogg",mpg:"video/mpeg",mpeg:"video/mpeg",m3u8:"application/x-mpegurl",mpd:"application/dash+xml",mp3:"audio/mpeg",aac:"audio/aac",flac:"audio/flac",wav:"audio/wav"},Lc={sbv:"text/x-subviewer",srt:"text/srt",vtt:"text/vtt",webvtt:"text/vtt",ttml:"application/ttml+xml",lrc:"application/x-subtitle-lrc",ssa:"text/x-ssa",ass:"text/x-ssa"};function Pc(){this.h=[],this.j=this.i=this.g=0}function Dc(e,t,n){var i=this;this.h=e,this.g=t,this.m=n,this.i=!1,this.l=this.g.getVolume(),this.j=new Ri,this.j.o(this.g,google.ima.AdEvent.Type.PAUSED,(function(){i.i=!0})),this.j.o(this.g,google.ima.AdEvent.Type.RESUMED,(function(){i.i=!1}))}function Mc(t,n,i,r){var a=this;this.A=t,this.i=n,this.B=null,this.C=NaN,this.j=r,this.m=null,this.h=new Ri,google.ima.settings.setLocale(i),(t=new google.ima.AdDisplayContainer(this.A,this.i)).initialize(),this.l=new google.ima.AdsLoader(t),this.l.getSettings().setPlayerType("shaka-player"),this.l.getSettings().setPlayerVersion("v3.1.6-master-18-gd6bdf9a4"),this.g=null,this.h.Ia(this.l,google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,(function(t){!function(t,n){t.j(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-t.C))),t.g=n.getAdsManager(t.i),t.j(new V("ima-ad-manager-loaded",(new Map).set("imaAdManager",t.g)));var i=t.g.getCuePoints();if(i.length){for(var r=[],a=(i=c(i)).next();!a.done;a=i.next())r.push({start:a.value,end:null});t.j(new V("ad-cue-points-changed",(new Map).set("cuepoints",r)))}!function(e){function t(t,n){var i=(new Map).set("originalEvent",t);e.j(new V(n,i))}e.h.o(e.g,google.ima.AdErrorEvent.Type.AD_ERROR,(function(t){Oc(e,t)})),e.h.o(e.g,google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,(function(t){zc(e,t)})),e.h.o(e.g,google.ima.AdEvent.Type.STARTED,(function(t){zc(e,t)})),e.h.o(e.g,google.ima.AdEvent.Type.FIRST_QUARTILE,(function(e){t(e,"ad-first-quartile")})),e.h.o(e.g,google.ima.AdEvent.Type.MIDPOINT,(function(e){t(e,"ad-midpoint")})),e.h.o(e.g,google.ima.AdEvent.Type.THIRD_QUARTILE,(function(e){t(e,"ad-third-quartile")})),e.h.o(e.g,google.ima.AdEvent.Type.COMPLETE,(function(e){t(e,"ad-complete")}
2)),e.h.o(e.g,google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,(function(t){Bc(e,t)})),e.h.o(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(t){Bc(e,t)})),e.h.o(e.g,google.ima.AdEvent.Type.SKIPPED,(function(e){t(e,"ad-skipped")})),e.h.o(e.g,google.ima.AdEvent.Type.VOLUME_CHANGED,(function(e){t(e,"ad-volume-changed")})),e.h.o(e.g,google.ima.AdEvent.Type.VOLUME_MUTED,(function(e){t(e,"ad-muted")})),e.h.o(e.g,google.ima.AdEvent.Type.PAUSED,(function(n){e.m.i=!0,t(n,"ad-paused")})),e.h.o(e.g,google.ima.AdEvent.Type.RESUMED,(function(n){e.m.i=!1,t(n,"ad-resumed")})),e.h.o(e.g,google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED,(function(e){t(e,"ad-skip-state-changed")})),e.h.o(e.g,google.ima.AdEvent.Type.CLICK,(function(e){t(e,"ad-clicked")})),e.h.o(e.g,google.ima.AdEvent.Type.AD_PROGRESS,(function(e){t(e,"ad-progress")})),e.h.o(e.g,google.ima.AdEvent.Type.AD_BUFFERING,(function(e){t(e,"ad-buffering")})),e.h.o(e.g,google.ima.AdEvent.Type.IMPRESSION,(function(e){t(e,"ad-impression")})),e.h.o(e.g,google.ima.AdEvent.Type.DURATION_CHANGE,(function(e){t(e,"ad-duration-changed")})),e.h.o(e.g,google.ima.AdEvent.Type.USER_CLOSE,(function(e){t(e,"ad-closed")})),e.h.o(e.g,google.ima.AdEvent.Type.LOADED,(function(e){t(e,"ad-loaded")})),e.h.o(e.g,google.ima.AdEvent.Type.ALL_ADS_COMPLETED,(function(e){t(e,"all-ads-completed")})),e.h.o(e.g,google.ima.AdEvent.Type.LINEAR_CHANGED,(function(e){t(e,"ad-linear-changed")})),e.h.o(e.g,google.ima.AdEvent.Type.AD_METADATA,(function(e){t(e,"ad-metadata")})),e.h.o(e.g,google.ima.AdEvent.Type.LOG,(function(e){t(e,"ad-recoverable-error")})),e.h.o(e.g,google.ima.AdEvent.Type.AD_BREAK_READY,(function(e){t(e,"ad-break-ready")})),e.h.o(e.g,google.ima.AdEvent.Type.INTERACTION,(function(e){t(e,"ad-interaction")}))}(t);try{t.g.init(t.i.offsetWidth,t.i.offsetHeight,Rc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL),t.h.o(t.i,"loadeddata",(function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,Rc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),"ResizeObserver"in e&&(t.B=new ResizeObserver((function(){t.g.resize(t.i.offsetWidth,t.i.offsetHeight,Rc(t)?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)})),t.B.observe(t.i)),t.g.start()}catch(e){Bc(t,null)}}(a,t)})),this.h.o(this.l,google.ima.AdErrorEvent.Type.AD_ERROR,(function(e){Oc(a,e)})),this.i.onended=function(){a.l.contentComplete()}}function Oc(e,t){t.getError(),Bc(e,null),e.j(new V("ad-cue-points-changed",(new Map).set("cuepoints",[])))}function Rc(e){return document.fullscreenEnabled?!!document.fullscreenElement:!!(e=e.i).webkitSupportsFullscreen&&e.webkitDisplayingFullscreen}function zc(e,t){var n=t.getAd();e.m=new Dc(n,e.g,e.i),n=(new Map).set("ad",e.m).set("sdkAdObject",n).set("originalEvent",t),e.j(new V("ad-started",n)),e.m.isLinear()&&(e.A.setAttribute("ad-active","true"),e.i.pause())}function Bc(e,t){e.j(new V("ad-stopped",(new Map).set("originalEvent",t))),e.m.isLinear()&&(e.A.removeAttribute("ad-active"),e.i.play())}function Uc(e,t){this.i=e,this.h=null,this.g=t}function Fc(e,t,n,i){var r=this;this.B=e,this.l=t,this.j=null,this.J=NaN,this.i=i,this.H=!1,this.C=this.m=this.A=null,this.F="",this.G=[],this.h=new Ri,(e=new google.ima.dai.api.UiSettings).setLocale(n),this.g=new google.ima.dai.api.StreamManager(this.l,this.B,e),this.i(new V("ima-stream-manager-loaded",(new Map).set("imaStreamManager",this.g))),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.LOADED,(function(e){!function(e,t){e.i(new V("ads-loaded",(new Map).set("loadTime",Date.now()/1e3-e.J)));var n=t.getStreamData().url;e.j.resolve(n),e.j=null,e.H||e.h.o(e.l,"seeked",(function(){var t=e.l.currentTime;if(0!=t){e.g.streamTimeForContentTime(t);var n=e.g.previousCuePointForStreamTime(t);n&&!n.played&&(e.A=t,e.l.currentTime=n.start)}}))}(r,e)})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.ERROR,(function(){r.F.length?r.j.resolve(r.F):r.j.reject("IMA Stream request returned an error and there was no backup asset uri provided."),r.j=null})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_STARTED,(function(){})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.STARTED,(function(e){e=e.getAd(),r.m=new Uc(e,r.l),r.C&&(r.m.h=r.C),r.i(new V("ad-started",(new Map).set("ad",r.m))),r.B.setAttribute("ad-active","true")})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_BREAK_ENDED,(function(){r.B.removeAttribute("ad-active");var e=r.l.currentTime;r.A&&r.A>e&&(r.l.currentTime=r.A,r.A=null)})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.AD_PROGRESS,(function(e){r.C=e.getStreamData().adProgressData,r.m&&(r.m.h=r.C)})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.FIRST_QUARTILE,(function(){r.i(new V("ad-first-quartile"))})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.MIDPOINT,(function(){r.i(new V("ad-mi
2dpoint"))})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.THIRD_QUARTILE,(function(){r.i(new V("ad-third-quartile"))})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.COMPLETE,(function(){r.i(new V("ad-complete")),r.i(new V("ad-stopped")),r.B.removeAttribute("ad-active"),r.m=null})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.SKIPPED,(function(){r.i(new V("ad-skipped")),r.i(new V("ad-stopped"))})),this.h.o(this.g,google.ima.dai.api.StreamEvent.Type.CUEPOINTS_CHANGED,(function(e){var t=e.getStreamData();e=[];for(var n=(t=c(t.cuepoints)).next();!n.done;n=t.next())n=n.value,e.push({start:n.start,end:n.end});r.G=e,r.i(new V("ad-cue-points-changed",(new Map).set("cuepoints",e)))}))}function Vc(){ee.call(this),this.g=this.i=null,this.h=new Pc,this.j=navigator.language}function qc(e){return JSON.stringify(e,(function(e,t){if("function"!=typeof t){if(t instanceof Event||t instanceof V){var n={};for(r in t){var i=t[r];i&&"object"==typeof i?"detail"==r&&(n[r]=i):r in Event||(n[r]=i)}return n}if(t instanceof Error){var r=new Set(["name","message","stack"]);for(n in t)r.add(n);for(n=(i=c(Object.getOwnPropertyNames(t))).next();!n.done;n=i.next())r.add(n.value);for(i={},n=(r=c(r)).next();!n.done;n=r.next())i[n=n.value]=t[n];r={__type__:"Error",contents:i}}else if(t instanceof TimeRanges)for(r={__type__:"TimeRanges",length:t.length,start:[],end:[]},i=(n=c(Xa(t))).next();!i.done;i=n.next()){var a=(i=i.value).end;r.start.push(i.start),r.end.push(a)}else r=t instanceof Uint8Array?{__type__:"Uint8Array",entries:Array.from(t)}:"number"==typeof t?isNaN(t)?"NaN":isFinite(t)?t:0>t?"-Infinity":"Infinity":t;return r}}))}function Hc(e){return JSON.parse(e,(function(e,t){if("NaN"==t)var n=NaN;else if("-Infinity"==t)n=-1/0;else if("Infinity"==t)n=1/0;else if(t&&"object"==typeof t&&"TimeRanges"==t.__type__)n=function(e){return{length:e.length,start:function(t){return e.start[t]},end:function(t){return e.end[t]}}}(t);else if(t&&"object"==typeof t&&"Uint8Array"==t.__type__)n=new Uint8Array(t.entries);else if(t&&"object"==typeof t&&"Error"==t.__type__){n=t.contents;var i,r=Error(n.message);for(i in n)r[i]=n[i];n=r}else n=t;return n}))}(i=Dc.prototype).getDuration=function(){return this.h.getDuration()},i.getMinSuggestedDuration=function(){return this.h.getMinSuggestedDuration()},i.getRemainingTime=function(){return this.g.getRemainingTime()},i.isPaused=function(){return this.i},i.isSkippable=function(){return 0<=this.h.getSkipTimeOffset()},i.getTimeUntilSkippable=function(){var e=this.h.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return this.g.getAdSkippableState()},i.skip=function(){return this.g.skip()},i.pause=function(){return this.g.pause()},i.play=function(){return this.g.resume()},i.getVolume=function(){return this.g.getVolume()},i.setVolume=function(e){return this.g.setVolume(e)},i.isMuted=function(){return 0==this.g.getVolume()},i.isLinear=function(){return this.h.isLinear()},i.resize=function(e,t){var n=!1,i=this.m;document.fullscreenEnabled?n=!!document.fullscreenElement:i.webkitSupportsFullscreen&&(n=i.webkitDisplayingFullscreen),this.g.resize(e,t,n?google.ima.ViewMode.FULLSCREEN:google.ima.ViewMode.NORMAL)},i.setMuted=function(e){e?(this.l=this.getVolume(),this.setVolume(0)):this.setVolume(this.l)},i.getSequenceLength=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.h.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.g=this.h=null},F("shaka.ads.ClientSideAd",Dc),Dc.prototype.release=Dc.prototype.release,Dc.prototype.getPositionInSequence=Dc.prototype.getPositionInSequence,Dc.prototype.getSequenceLength=Dc.prototype.getSequenceLength,Dc.prototype.setMuted=Dc.prototype.setMuted,Dc.prototype.resize=Dc.prototype.resize,Dc.prototype.isLinear=Dc.prototype.isLinear,Dc.prototype.isMuted=Dc.prototype.isMuted,Dc.prototype.setVolume=Dc.prototype.setVolume,Dc.prototype.getVolume=Dc.prototype.getVolume,Dc.prototype.play=Dc.prototype.play,Dc.prototype.pause=Dc.prototype.pause,Dc.prototype.skip=Dc.prototype.skip,Dc.prototype.canSkipNow=Dc.prototype.canSkipNow,Dc.prototype.getTimeUntilSkippable=Dc.prototype.getTimeUntilSkippable,Dc.prototype.isSkippable=Dc.prototype.isSkippable,Dc.prototype.isPaused=Dc.prototype.isPaused,Dc.prototype.getRemainingTime=Dc.prototype.getRemainingTime,Dc.prototype.getMinSuggestedDuration=Dc.prototype.getMinSuggestedDuration,Dc.prototype.getDuration=Dc.prototype.getDuration,Mc.prototype.stop=function(){this.g&&this.g.stop(),this.A&&As(this.A)},Mc.prototype.release=function(){this.stop(),this.B&&this.B.disconnect(),this.h&&this.h.release(),this.g&&this.g.destroy(),this.l.destroy()},(i=Uc.prototype).getDuration=function(){return this.h?this.h.duration:-1},i.getMinSuggestedDuration=function(){return this.getDuration()},i.getRemainingTime=function(){return this.h?this.h.duration-this.h.currentTime:-1},i.isPaused=function(){return this.g.paused},i.isSkippable=function(){return this.i.isSkippable()},i.getTimeUntilSkippable=function(){var e=this.i.getSkipTimeOffset();return e=this.getRemainingTime()-e,Math.max(e,0)},i.canSkipNow=function(){return 0==this.getTimeUntilSkippable()},i.skip=function(){this.g.currentTime+=this.getRemainingTime()},i.pause=function(){return this.g.pause()},i.play=function(){return this.g.play()},i.getVolume=function(){return this.g.volume},i.setVolume=function(e){this.g.volume=e},i.isMuted=function(){return this.g.muted},i.isLinear=function(){return!0},i.resize=function(){},i.setMuted=function(e){this.g.muted=e},i.getSequenceLength=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getTotalAds()},i.getPositionInSequence=function(){var e=this.i.getAdPodInfo();return null==e?1:e.getAdPosition()},i.release=function(){this.g=this.h=this.i=null},F("shaka.ads.ServerSideAd",Uc),Uc.prototype.release=Uc.prototype.release,Uc.prototype.getPositionInSequence=Uc.prototype.getPositionInSequence,Uc.prototype.getSequenceLength=Uc.prototype.getSequenceLength,Uc.prototype.setMuted=Uc.prototype.setMuted,Uc.prototype.resize=Uc.prototype.resize,Uc.prototype.isLinear=Uc.prototype.isLinear,Uc.prototype.isMuted=Uc.prototype.isMuted,Uc.prototype.setVolume=Uc.prototype.setVolume,Uc.prototype.getVolume=Uc.prototype.getVolume,Uc.prototype.play=Uc.prototype.play,Uc.prototype.pause=Uc.prototype.pause,Uc.prototype.skip=Uc.prototype.skip,Uc.prototype.canSkipNow=Uc.prototype.canSkipNow,Uc.prototype.getTimeUntilSkippable=Uc.prototype.getTimeUntilSkippable,Uc.prototype.isSkippable=Uc.prototype.isSkippable,Uc.prototype.isPaused=Uc.prototype.isPaused,Uc.prototype.getRemainingTime=Uc.prototype.getRemainingTime,Uc.prototype.getMinSuggestedDuration=Uc.prototype.getMinSuggestedDuration,Uc.prototype.getDuration=Uc.prototype.getDuration,Fc.prototype.stop=function(){this.F="",this.A=null,this.G=[]},Fc.prototype.release=function(){this.stop(),this.h&&this.h.release()},Fc.prototype.onCueMetadataChange=function(e){if(e.key&&e.data){var t={};t[e.key]=e.data,this.g.onTimedMetadata(t)}},f(Vc,ee),(i=Vc.prototype).setLocale=function(e){this.j=e},i.initClientSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.AdsLoader)throw new xe(2,10,1e4);this.i&&this.i.release(),this.i=new Mc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.h.h.push(e.loadTime);break;case"ad-started":i.h.g++;break;case"ad-complete":i.h.i++;break;case"ad-skipped":i.h.j++}i.dispatchEvent(e)}))},i.release=function(){this.i&&(this.i.release(),this.i=null),this.g&&(this.g.release(),this.g=null),ee.prototype.release.call(this)},i.onAssetUnload=function(){this.i&&this.i.stop(),this.g&&this.g.stop(),this.dispatchEvent(new V("ad-stopped")),this.h=new Pc},i.requestClientSideAds=function(e){if(!this.i)throw new xe(1,10,10001);var t=this.i;t.C=Date.now()/1e3,t.l.requestAds(e)},i.initServerSide=function(t,n){var i=this;if(!e.google||!google.ima||!google.ima.dai)throw new xe(2,10,10002);this.g&&this.g.release(),this.g=new Fc(t,n,this.j,(function(e){if(e&&e.type)switch(e.type){case"ads-loaded":i.h.h.push(e.loadTime);break;case"ad-started":i.h.g++;break;case"ad-complete":i.h.i++;break;case"ad-skipped":i.h.j++}i.dispatchEvent(e)}))},i.requestServerSideStream=function(e,t){if(t=void 0===t?"":t,!this.g)throw new xe(1,10,10003);e.adTagParameters||(e.adTagParameters={});var n=e.adTagParameters;(n.mpt||n.mpv)&&K('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.adTagParameters.mpt="shaka-player",e.adTagParameters.mpv="v3.1.6-master-18-gd6bdf9a4";var i=t;return(n=this.g).j?n=Promise.reject(new xe(1,10,10004)):(e instanceof google.ima.dai.api.LiveStreamRequest&&(n.H=!0),n.j=new Ot,n.g.requestStream(e),n.F=i||"",n.J=Date.now()/1e3,n=n.j),n},i.replaceServerSideAdTagParameters=function(e){if(!this.g)throw new xe(1,10,10003);(e.mpt||e.mpv)&&K('You have attempted to set "mpt" and/or "mpv" parameters of the ad tag. Please note that those parameters are used for Shaka adoption tracking and will be overriden.'),e.mpt="Shaka Player",e.mpv="v3.1.6-master-18-gd6bdf9a4",this.g.g.replaceAdTagParameters(e)},i.getServerSideCuePoints=function(){if(!this.g)throw new xe(1,10,10003);return this.g.G},i.getStats=function(){var e=this.h;return{loadTimes:e.h,started:e.g,playedCompletely:e.i,skipped:e.j}},i.onDashTimedMetadata=function(e){if(this.g&&"urn:google:dai:2018"==e.schemeIdUri){var t=e.schemeIdUri,n=e.eventElement?e.eventElement.getAttribute("messageData"):null;this.g.g.processMetadata(t,n,e.startTime)}},i.onHlsTimedMetadata=function(e,t){this.g&&this.g.g.processMetadata("ID3",e.data,t)},i.onCueMetadataChange=function(e){this.g&&this.g.onCueMetadataChange(e)},F("shaka.ads.AdManager",Vc),Vc.prototype.onCueMetadataChange=Vc.prototype.onCueMetadataChange,Vc.prototype.onHlsTimedMetadata=Vc.prototype.onHlsTimedMetadata,Vc.prototype.onDashTimedMetadata=Vc.prototype.onDashTimedMetadata,Vc.prototype.getStats=Vc.prototype.getStats,Vc.prototype.getServerSideCuePoints=Vc.prototype.getServerSideCuePoints,Vc.prototype.replaceServerSideAdTagParameters=Vc.prototype.replaceServerSideAdTagParameters,Vc.prototype.requestServerSideStream=Vc.prototype.requestServerSideStream,Vc.prototype.initServerSide=Vc.prototype.initServerSide,Vc.prototype.requestClientSideAds=Vc.prototype.requestClientSideAds,Vc.prototype.onAssetUnload=Vc.prototype.onAssetUnload,Vc.prototype.release=Vc.prototype.release,Vc.prototype.initClientSide=Vc.prototype.initClientSide,Vc.prototype.setLocale=Vc.prototype.setLocale,Vc.ADS_LOADED="ads-loaded",Vc.AD_STARTED="ad-started",Vc.AD_FIRST_QUARTILE="ad-first-quartile",Vc.AD_MIDPOINT="ad-midpoint",Vc.AD_THIRD_QUARTILE="ad-third-quartile",Vc.AD_COMPLETE="ad-complete",Vc.AD_STOPPED="ad-stopped",Vc.AD_SKIPPED="ad-skipped",Vc.AD_VOLUME_CHANGED="ad-volume-changed",Vc.AD_MUTED="ad-muted",Vc.AD_PAUSED="ad-paused",Vc.AD_RESUMED="ad-resumed",Vc.AD_SKIP_STATE_CHANGED="ad-skip-state-changed",Vc.CUEPOINTS_CHANGED="ad-cue-points-changed",Vc.IMA_AD_MANAGER_LOADED="ima-ad-manager-loaded",Vc.IMA_STREAM_MANAGER_LOADED="ima-stream-manager-loaded",Vc.AD_CLICKED="ad-clicked",Vc.AD_PROGRESS="ad-progress",Vc.AD_BUFFERING="ad-buffering",Vc.AD_IMPRESSION="ad-impression",Vc.AD_DURATION_CHANGED="ad-duration-changed",Vc.AD_CLOSED="ad-closed",Vc.AD_LOADED="ad-loaded",Vc.ALL_ADS_COMPLETED="all-ads-completed",Vc.AD_LINEAR_CHANGED="ad-linear-changed",Vc.AD_METADATA="ad-metadata",Vc.AD_RECOVERABLE_ERROR="ad-recoverable-error",Vc.AD_BREAK_READY="ad-break-ready",Vc.AD_INTERACTION="ad-interaction",jc=function(){return new Vc};var Gc="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),Kc="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),$c=["loop","playbackRate"],Wc=["pause","play"],Xc={getAssetUri:2,getAudioLanguages:4,getAudioLanguagesAndRoles:4,getBufferFullness:1,getBufferedInfo:2,getConfiguration:4,getExpiration:2,getKeyStatuses:2,getPlaybackRate:2,getTextLanguages:4,getTextLanguagesAndRoles:4,getTextTracks:2,getStats:5,getVariantTracks:2,getImageTracks:2,getThumbnails:2,isAudioOnly:10,isBuffering:1,isInProgress:1,isLive:10,isTextTrackVisible:1,keySystem:10,seekRange:1,getL
2oadMode:10},Yc={getPlayheadTimeAsDate:1,getPresentationStartTimeAsDate:20},Jc=[["getConfiguration","configure"]],Zc=[["isTextTrackVisible","setTextTrackVisibility"]],Qc="addChaptersTrack addTextTrack addTextTrackAsync cancelTrickPlay configure getChapters getChaptersTracks resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack selectVariantsByLabel setTextTrackVisibility trickPlay updateStartTime goToLive".split(" "),ed=["attach","detach","load","unload"];function td(e,t,n,i,r,a){var o=this;this.J=e,this.j=new mn(t),this.S=n,this.C=!1,this.B=i,this.H=r,this.M=a,this.h=this.m=!1,this.N="",this.A=null,this.F=function(){return od(o)},this.G=function(e,t){var n=Hc(t);switch(n.type){case"event":var i=n.targetName;n=q(n.event),o.B(i,n);break;case"update":for(var r in i=n.update)for(var a in n=o.g[r]||{},i[r])n[a]=i[r][a];o.C&&(o.S(),o.C=!1);break;case"asyncComplete":if(r=n.id,n=n.error,a=o.i[r],delete o.i[r],a)if(n){for(i in r=new xe(n.severity,n.category,n.code),n)r[i]=n[i];a.reject(r)}else a.resolve()}},this.g={video:{},player:{}},this.K=0,this.i={},this.l=null,pd.add(this)}function nd(e,t,n){ud=n,n.addUpdateListener(e.F),n.addMessageListener("urn:x-cast:com.google.shaka.v2",e.G),od(e),ld(e,{type:"init",initState:t,appData:e.A}),e.l.resolve()}function id(e,t){var n=8003;switch(t.code){case"cancel":n=8004;break;case"timeout":n=8005;break;case"receiver_unavailable":n=8006}e.l.reject(new xe(2,8,n,t))}function rd(e,t){var n=e.M();e.l=new Ot,e.C=!0,nd(e,n,t)}function ad(e){var t=ud;t.removeUpdateListener(e.F),t.removeMessageListener("urn:x-cast:com.google.shaka.v2",e.G)}function od(e){var t=!!ud&&"connected"==ud.status;if(e.h&&!t){for(var n in e.H(),e.g)e.g[n]={};sd(e)}e.h=t,e.N=t?ud.receiver.friendlyName:"",e.j.Aa()}function sd(e){for(var t in e.i){var n=e.i[t];delete e.i[t],n.reject(new xe(1,7,7e3))}}function ld(e,t){var n=qc(t),i=ud;try{i.sendMessage("urn:x-cast:com.google.shaka.v2",n,(function(){}),W)}catch(t){throw n=new xe(2,8,8005,t),i=new V("error",(new Map).set("detail",n)),e.B("player",i),e.ac(),n}}(i=td.prototype).destroy=function(){return pd.delete(this),sd(this),ud&&ad(this),this.j&&(this.j.stop(),this.j=null),this.H=this.B=null,this.h=this.m=!1,this.G=this.F=this.l=this.i=this.g=this.A=null,Promise.resolve()},i.sa=function(){return this.h},i.td=function(){return this.N},i.init=function(){if(this.J.length)if(e.chrome&&chrome.cast&&chrome.cast.isAvailable){this.m=!0,this.j.Aa();var t=new chrome.cast.SessionRequest(this.J);t=new chrome.cast.ApiConfig(t,(function(e){for(var t=c(pd),n=t.next();!n.done;n=t.next())rd(n.value,e)}),(function(e){for(var t=c(pd),n=t.next();!n.done;n=t.next())n=n.value,dd="available"==e,n.j.Aa()}),"origin_scoped"),chrome.cast.initialize(t,(function(){}),(function(){})),dd&&this.j.R(cd),(t=ud)&&t.status!=chrome.cast.SessionStatus.STOPPED?rd(this,t):ud=null}else e.__onGCastApiAvailable||(e.__onGCastApiAvailable=hd),e.__onGCastApiAvailable!=hd&&K("A global Cast SDK hook is already installed! Shaka Player will be unable to receive a notification when the Cast SDK is ready.")},i.re=function(e){this.A=e,this.h&&ld(this,{type:"appData",appData:this.A})},i.cast=function(e){var t=this;return P((function(n){if(!t.m)throw new xe(1,8,8e3);if(!dd)throw new xe(1,8,8001);if(t.h)throw new xe(1,8,8002);return t.l=new Ot,chrome.cast.requestSession((function(n){return nd(t,e,n)}),(function(e){return id(t,e)})),x(n,t.l,0)}))},i.ac=function(){if(this.h){if(sd(this),ud){ad(this);try{ud.stop((function(){}),(function(){}))}catch(e){}ud=null}od(this)}},i.get=function(e,t){var n=this;if("video"==e){if(Wc.includes(t))return function(){return n.tf.apply(n,[e,t].concat(d(D.apply(0,arguments))))}}else if("player"==e){if(Yc[t]&&!this.get("player","isLive")())return function(){};if(Qc.includes(t))return function(){return n.tf.apply(n,[e,t].concat(d(D.apply(0,arguments))))};if(ed.includes(t))return function(){return n.Vg.apply(n,[e,t].concat(d(D.apply(0,arguments))))};if(Xc[t])return function(){return n.g[e][t]}}return this.g[e][t]},i.set=function(e,t,n){this.g[e][t]=n,ld(this,{type:"set",targetName:e,property:t,value:n})},i.tf=function(e,t){ld(this,{type:"call",targetName:e,methodName:t,args:D.apply(2,arguments)})},i.Vg=function(e,t){var n=D.apply(2,arguments),i=new Ot,r=this.K.toString();this.K++,this.i[r]=i;try{ld(this,{type:"asyncCall",targetName:e,methodName:t,args:n,id:r})}catch(e){i.reject(e)}return i};var cd=.02,dd=!1,ud=null,pd=new Set;function hd(e){if(e)for(var t=(e=c(pd)).next();!t.done;
2t=e.next())t.value.init()}function md(e,t,n){ee.call(this);var i=this;this.i=e,this.h=t,this.m=this.A=this.j=this.B=this.l=null,this.F=n,this.C=new Map,this.g=new td(n,(function(){return vd(i)}),(function(){return bd(i)}),(function(e,t){return wd(i,e,t)}),(function(){return yd(i)}),(function(){return fd(i)})),function(e){e.g.init(),e.m=new Ri;for(var t=c(Gc),n=t.next();!n.done;n=t.next())e.m.o(e.i,n.value,(function(t){e.g.sa()||(t=q(t),e.j.dispatchEvent(t))}));for(var i in kc)e.m.o(e.h,kc[i],(function(t){e.g.sa()||e.A.dispatchEvent(t)}));for(var r in e.l={},t={},e.i)t.qc=r,Object.defineProperty(e.l,t.qc,{configurable:!1,enumerable:!0,get:function(t){return function(){return xd(e,t.qc)}}(t),set:function(t){return function(n){var i=t.qc;e.g.sa()?e.g.set("video",i,n):e.i[i]=n}}(t)}),t={qc:t.qc};e.B={},gd(e,(function(t){Object.defineProperty(e.B,t,{configurable:!1,enumerable:!0,get:function(){return function(e,t){if(e.C.has(t)&&(t=e.C.get(t)),"addEventListener"==t)return function(t,n,i){return e.A.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.A.removeEventListener(t,n,i)};if("getMediaElement"==t)return function(){return e.l};if("getSharedConfiguration"==t)return e.g.get("player","getConfiguration");if("getNetworkingEngine"==t)return function(){return e.h.Dc()};if("getDrmEngine"==t)return function(){return e.h.A};if("getAdManager"==t)return function(){return e.h.dd()};if("setVideoContainer"==t)return function(t){return e.h.Ae(t)};if(e.g.sa()){if("getManifest"==t||"drmInfo"==t)return function(){return K(t+"() does not work while casting!"),null};if("attach"==t||"detach"==t)return function(){return K(t+"() does not work while casting!"),Promise.resolve()}}return e.g.sa()&&0==Object.keys(e.g.g.video).length&&Xc[t]||!e.g.sa()?e.h[t].bind(e.h):e.g.get("player",t)}(e,t)}})})),function(e){var t=new Map;gd(e,(function(n,i){if(t.has(i)){var r=t.get(i);n.length<r.length?e.C.set(n,r):e.C.set(r,n)}else t.set(i,n)}))}(e),e.j=new ee,e.j.jd=e.l,e.A=new ee,e.A.jd=e.B}(this)}function gd(e,t){function n(e){return"constructor"!=e&&"function"==typeof i[e]&&!r.has(e)}var i=e.h,r=new Set;for(a in i)n(a)&&(r.add(a),t(a,i[a]));for(var a=Object.getPrototypeOf(i),o=Object.getPrototypeOf({});a&&a!=o;){for(var s=c(Object.getOwnPropertyNames(a)),l=s.next();!l.done;l=s.next())n(l=l.value)&&(r.add(l),t(l,i[l]));a=Object.getPrototypeOf(a)}}function fd(e){var t={video:{},player:{},playerAfterLoad:{},manifest:e.h.Pd(),startTime:null};e.i.pause();for(var n=c($c),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.i[i];for(e.i.ended||(t.startTime=e.i.currentTime),i=(n=c(Jc)).next();!i.done;i=n.next()){var r=i.value;i=r[1],r=e.h[r[0]](),t.player[i]=r}for(i=(n=c(Zc)).next();!i.done;i=n.next())i=(r=i.value)[1],r=e.h[r[0]](),t.playerAfterLoad[i]=r;return t}function vd(e){var t=new V("caststatuschanged");e.dispatchEvent(t)}function bd(e){var t=new V(e.l.paused?"pause":"play");e.j.dispatchEvent(t)}function yd(e){for(var t=c(Jc),n=t.next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}var r=e.g.get("player","getAssetUri")();n=e.g.get("video","ended"),t=Promise.resolve();var a=e.i.autoplay;i=null,n||(i=e.g.get("video","currentTime")),r&&(e.i.autoplay=!1,t=e.h.load(r,i));var o={};for(i=(n=c($c)).next();!i.done;i=n.next())i=i.value,o[i]=e.g.get("video",i);t.then((function(){if(e.i){for(var t=c($c),n=t.next();!n.done;n=t.next())n=n.value,e.i[n]=o[n];for(n=(t=c(Zc)).next();!n.done;n=t.next()){var i=n.value;n=i[1],i=e.g.get("player",i[0])(),e.h[n](i)}e.i.autoplay=a,r&&e.i.play()}}),(function(t){t=(new Map).set("detail",t),t=new V(ic,t),e.h.dispatchEvent(t)}))}function xd(e,t){if("addEventListener"==t)return function(t,n,i){return e.j.addEventListener(t,n,i)};if("removeEventListener"==t)return function(t,n,i){return e.j.removeEventListener(t,n,i)};if(e.g.sa()&&0==Object.keys(e.g.g.video).length){var n=e.i[t];if("function"!=typeof n)return n}return e.g.sa()?e.g.get("video",t):("function"==typeof(n=e.i[t])&&(n=n.bind(e.i)),n)}function wd(e,t,n){e.g.sa()&&("video"==t?e.j.dispatchEvent(n):"player"==t&&e.A.dispatchEvent(n))}function kd(e,t,n,i){ee.call(this);var r=this;this.g=e,this.h=t,this.j=new Ri,this.K={video:e,player:t},this.G=n||function(){},this.M=i||function(e){return e},this.i=null,this.H=!1,this.A=!0,this.m=0,this.F=!1,this.C=!0,this.B=this.l=null,this.J=new mn((function(){Ed(r)})),function(e){var t=cast.receiver.CastReceiverManager.getInstance();t.onSenderConnected=function(){return Ad(e)},t.onSenderDisconnected=function(){return Ad(e)},t.onSystemVolumeChanged=function(){var t=cast.receiver.CastReceiverManager.getInstance().getSystemVolume();t&&jd(e,{type:"update",update:{video:{volume:t.level,muted:t.muted}}},e.l),jd(e,{type:"event",targetName:"video",event:{type:"volumechange"}},e.l)},e.B=t.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.B.onMessage=function(t){return function(e,t){var n=Hc(t.data);switch(n.type){case"PLAY":e.g.play(),Nd(e);break;case"PAUSE":e.g.pause(),Nd(e);break;case"SEEK":var i=n.currentTime,r=n.resumeState;null!=i&&(e.g.currentTime=Number(i)),r&&"PLAYBACK_START"==r?(e.g.play(),Nd(e)):r&&"PLAYBACK_PAUSE"==r&&(e.g.pause(),Nd(e));break;case"STOP":e.h.He().then((function(){e.h&&Nd(e)}));break;case"GET_STATUS":Cd(e,Number(n.requestId));break;case"VOLUME":i=(r=n.volume).level,r=r.muted;var a=e.g.volume,o=e.g.muted;null!=i&&(e.g.volume=Number(i)),null!=r&&(e.g.muted=r),a==e.g.volume&&o==e.g.muted||Nd(e);break;case"LOAD":e.m=0,e.F=!1,e.C=!1,i=n.media,r=n.currentTime,a=e.M(i.
2contentId),o=n.autoplay||!0,e.G(i.customData),o&&(e.g.autoplay=!0),e.h.load(a,r).then((function(){e.h&&Cd(e)})).catch((function(t){var i="LOAD_FAILED";7==t.category&&7e3==t.code&&(i="LOAD_CANCELLED"),jd(e,{requestId:Number(n.requestId),type:i},e.B)}));break;default:jd(e,{requestId:Number(n.requestId),type:"INVALID_REQUEST",reason:"INVALID_COMMAND"},e.B)}}(e,t)},e.l=t.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.l.onMessage=function(t){return function(e,t){var n=Hc(t.data);switch(n.type){case"init":e.m=0,e.F=!1,e.C=!0,function(e,t,n){var i,r,a,o,s,l,c,d,u,p,h;P((function(m){switch(m.g){case 1:for(i in t.player)r=t.player[i],e.h[i](r);return e.G(n),a=e.g.autoplay,t.manifest?(e.g.autoplay=!1,k(m,5),x(m,e.h.load(t.manifest,t.startTime),7)):x(m,Promise.resolve(),3);case 7:T(m,3);break;case 5:return o=S(m),s=ic,l=(new Map).set("detail",o),c=new V(s,l),e.h&&e.h.dispatchEvent(c),m.return();case 3:if(!e.h)return m.return();for(d in t.video)u=t.video[d],e.g[d]=u;for(p in t.playerAfterLoad)h=t.playerAfterLoad[p],e.h[p](h);e.g.autoplay=a,t.manifest&&(e.g.play(),Nd(e)),w(m)}}))}(e,n.initState,n.appData),Ed(e);break;case"appData":e.G(n.appData);break;case"set":var i=n.targetName,r=n.property;if(n=n.value,"video"==i){var a=cast.receiver.CastReceiverManager.getInstance();if("volume"==r){a.setSystemVolumeLevel(n);break}if("muted"==r){a.setSystemVolumeMuted(n);break}}e.K[i][r]=n;break;case"call":(i=e.K[n.targetName])[n.methodName].apply(i,n.args);break;case"asyncCall":i=n.targetName,r=n.methodName,"player"==i&&"load"==r&&(e.m=0,e.F=!1);var o=n.id,s=t.senderId;n=(a=e.K[i])[r].apply(a,n.args),"player"==i&&"load"==r&&(n=n.then((function(){e.C=!0}))),n.then((function(){return _d(e,s,o,null)}),(function(t){return _d(e,s,o,t)}))}}(e,t)},t.start();for(var n=(t=c(Gc)).next();!n.done;n=t.next())e.j.o(e.g,n.value,(function(t){return Sd(e,"video",t)}));for(var i in kc)e.j.o(e.h,kc[i],(function(t){return Sd(e,"player",t)}));cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.h.ve(3840,2160):e.h.ve(1920,1080),e.j.o(e.g,"loadeddata",(function(){e.F=!0})),e.j.o(e.h,"loading",(function(){e.A=!1,Td(e)})),e.j.o(e.g,"playing",(function(){e.A=!1,Td(e)})),e.j.o(e.g,"pause",(function(){Td(e)})),e.j.o(e.h,"unloading",(function(){e.A=!0,Td(e)})),e.j.o(e.g,"ended",(function(){new mn((function(){e.g&&e.g.ended&&(e.A=!0,Td(e))})).R(Pd)}))}(this)}function Ad(e){e.m=0,e.C=!0,e.H=0!=cast.receiver.CastReceiverManager.getInstance().getSenders().length,Td(e)}function Td(e){var t;P((function(n){return 1==n.g?x(n,Promise.resolve(),2):e.h?(t=new V("caststatuschanged"),e.dispatchEvent(t),Id(e)||Nd(e),void w(n)):n.return()}))}function Sd(e,t,n){e.h&&(Ed(e),jd(e,{type:"event",targetName:t,event:n},e.l))}function Ed(e){e.J.R(Ld);for(var t={video:{},player:{}},n=c(Kc),i=n.next();!i.done;i=n.next())i=i.value,t.video[i]=e.g[i];if(e.h.T())for(var r in Yc)0==e.m%Yc[r]&&(t.player[r]=e.h[r]());for(var a in Xc)0==e.m%Xc[a]&&(t.player[a]=e.h[a]());(n=cast.receiver.CastReceiverManager.getInstance().getSystemVolume())&&(t.video.volume=n.level,t.video.muted=n.muted),e.F&&(e.m+=1),jd(e,{type:"update",update:t},e.l),Id(e)}function Id(e){return!(!e.C||!e.g.duration&&!e.h.T())&&(Cd(e),e.C=!1,!0)}function Cd(e,t){var n={contentId:e.h.Pd(),streamType:e.h.T()?"LIVE":"BUFFERED",contentType:""};e.h.T()||(n.duration=e.g.duration),e.i&&(n.metadata=e.i),Nd(e,void 0===t?0:t,n)}function _d(e,t,n,i){e.h&&jd(e,{type:"asyncComplete",id:n,error:i},e.l,t)}function jd(e,t,n,i){e.H&&(e=qc(t),i?n.getCastChannel(i).send(e):n.broadcast(e))}function Nd(e,t,n){n=void 0===n?null:n;var i={mediaSessionId:0,playbackRate:e.g.playbackRate,playerState:e.A?Dd:e.h.Ic()?Od:e.g.paused?Rd:Md,currentTime:e.g.currentTime,supportedMediaCommands:63,volume:{level:e.g.volume,muted:e.g.muted}};n&&(i.media=n),jd(e,{requestId:void 0===t?0:t,type:"MEDIA_STATUS",status:[i]},e.B)}f(md,ee),(i=md.prototype).destroy=function(e){return e&&this.g.ac(),this.m&&(this.m.release(),this.m=null),e=[],this.h&&(e.push(this.h.destroy()),this.h=null),this.g&&(e.push(this.g.destroy()),this.g=null),this.B=this.l=this.i=null,ee.prototype.release.call(this),Promise.all(e)},i.Db=function(){return this.l},i.dc=function(){return this.B},i.Oe=function(){return this.g.m&&dd},i.sa=function(){return this.g.sa()},i.td=function(){return this.g.td()},i.cast=function(){var e,t=this;return P((function(n){return 1==n.g?(e=fd(t),x(n,t.g.cast(e),2)):t.h?x(n,t.h.He(),0):n.return()}))},i.re=function(e){this.g.re(e)},i.Cf=function(){!function(e){if(e.h){var t=e.M();chrome.cast.requestSession((function(n){return nd(e,t,n)}),(function(t){return id(e,t)}))}}(this.g)},i.ac=function(){this.g.ac()},i.Se=function(e){var t=this;return P((function(n){if(1==n.g)return e==t.F?n.return():(t.F=e,t.g.ac(),x(n,t.g.destroy(),2));t.g=null,t.g=new td(e,(function(){return vd(t)}),(function(){return bd(t)}),(function(e,n){return wd(t,e,n)}),(function(){return yd(t)}),(function(){return fd(t)})),t.g.init(),w(n)}))},F("shaka.cast.CastProxy",md),md.prototype.changeReceiverId=md.prototype.Se,md.prototype.forceDisconnect=md.prototype.ac,md.prototype.suggestDisconnect=md.prototype.Cf,md.prototype.setAppData=md.prototype.re,md.prototype.cast=md.prototype.cast,md.prototype.receiverName=md.prototype.td,md.prototype.isCasting=md.prototype.sa,md.prototype.canCast=md.prototype.Oe,md.prototype.getPlayer=md.prototype.dc,md.prototype.getVideo=md.prototype.Db,md.prototype.destroy=md.prototype.destroy,f(kd,ee),(i=kd.prototype).isConnected=function(){return this.H},i.Eg=function(){return this.A},i.eh=function(e){this.i=e},i.Qf=function(){this.i=null},i.fh=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.title=e},i.dh=function(e){this.i||(this.i={metadataType:cast.receiver.media.MetadataType.GENERIC}),this.i.images=[{url:e}]},i.bh=function(e){this.i||(this.i={}),this.i.artist=e,this.i.metadataType=cast.receiver.media.MetadataType.MUSIC_TRACK},i.destroy=function(){var e,t=this;return P((function(n){if(1==n.g)return t.j&&(t.j.release(),t.j=null),e=[],t.h&&(e.push(t.h.destroy()),t.h=null),t.J&&(t.J.stop(),t.J=null),t.g=null,t.K=null,t.G=null,t.H=!1,t.A=!0,t.l=null,t.B=null,ee.prototype.release.call(t),x(n,Promise.all(e),2);cast.receiver.CastReceiverManager.getInstance().stop(),w(n)}))},F("shaka.cast.CastReceiver",kd),kd.prototype.destroy=kd.prototype.destroy,kd.prototype.setContentArtist=kd.prototype.bh,kd.prototype.setContentImage=kd.prototype.dh,kd.prototype.setContentTitle=kd.prototype.fh,kd.prototype.clearContentMetadata=kd.prototype.Qf,kd.prototype.setContentMetadata=kd.prototype.eh,kd.prototype.isIdle=kd.prototype.Eg,kd.prototype.isConnected=kd.prototype.isConnected;var Ld=.5,Pd=5,Dd="IDLE",Md="PLAYING",Od="BUFFERING",Rd="PAUSED";function zd(e){var t=this;this.g=[],this.h=[],this.data=[],(new Sr).box("moov",Er).Y("pssh",(function(e){if(!(1<e.version)){var n=jt(e.reader.V,-12,e.size);if(t.data.push(n),t.g.push(Yt(e.reader.Eb(16))),0<e.version){n=e.reader.P();for(var i=(n=c(ie(n))).next();!i.done;i=n.next())i=Yt(e.reader.Eb(16)),t.h.push(i)}}})).parse(e)}function Bd(e,t){var n=e.length,i=t.length+16+n,r=new Uint8Array(i),a=Nt(r),o=0;return a.setUint32(o,i),o+=4,a.setUint32(o,1886614376),o+=4,a.setUint32(o,0),o+=4,r.set(t,o),o+=t.length,a.setUint32(o,n),r.set(e,o+4),r}function Ud(e,t){var n=Vd(e,t);return 1!=n.length?null:n[0]}
2function Fd(e,t,n){return 1!=(e=qd(e,t,n)).length?null:e[0]}function Vd(e,t){return Array.from(e.childNodes).filter((function(e){return e instanceof Element&&e.tagName==t}))}function qd(e,t,n){return Array.from(e.childNodes).filter((function(e){return e instanceof Element&&e.localName==n&&e.namespaceURI==t}))}function Hd(e,t,n){return e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function Gd(e,t,n){for(var i=(t=c(t)).next();!i.done;i=t.next())if(i=i.value,e.hasAttributeNS(i,n))return e.getAttributeNS(i,n);return null}function Kd(e){return Array.from(e.childNodes).every($d)?e.textContent.trim():null}function $d(e){return e.nodeType==Node.TEXT_NODE||e.nodeType==Node.CDATA_SECTION_NODE}function Wd(e,t,n,i){i=void 0===i?null:i;var r=null;return null!=(e=e.getAttribute(t))&&(r=n(e)),null==r?i:r}function Xd(e){return e?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(e)&&(e+="Z"),e=Date.parse(e),isNaN(e)?null:Math.floor(e/1e3)):null}function Yd(e){return e&&(e=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$").exec(e))?(e=31536e3*Number(e[1]||null)+2592e3*Number(e[2]||null)+86400*Number(e[3]||null)+3600*Number(e[4]||null)+60*Number(e[5]||null)+Number(e[6]||null),isFinite(e)?e:null):null}function Jd(e){var t=/([0-9]+)-([0-9]+)/.exec(e);return t?(e=Number(t[1]),isFinite(e)?(t=Number(t[2]),isFinite(t)?{start:e,end:t}:null):null):null}function Zd(e){return 0==(e=Number(e))%1?e:null}function Qd(e){return 0==(e=Number(e))%1&&0<e?e:null}function eu(e){return 0==(e=Number(e))%1&&0<=e?e:null}function tu(e){return e=Number(e),isNaN(e)?null:e}function nu(e){var t,n=(t=e.match(/^(\d+)\/(\d+)$/))?Number(t[1])/Number(t[2]):Number(e);return isNaN(n)?null:n}function iu(e,t){var n=new DOMParser,i=null;try{i=n.parseFromString(e,"text/xml")}catch(e){return null}return!(n=i.documentElement)||n.getElementsByTagName("parsererror").length||i.documentElement.tagName!=t?null:n}function ru(e,t){try{return iu(Bt(e),t)}catch(e){return null}}function au(e,t,n){var i=function(e){for(var t=[],n=(e=c(e)).next();!n.done;n=e.next())(n=su(n.value))&&t.push(n);return t}(e),r=null;e=[];var a=[],o=new Set(i.map((function(e){return e.keyId})));if(o.delete(null),1<o.size)throw new xe(2,4,4010);if(t||(a=i.filter((function(e){return"urn:mpeg:dash:mp4protection:2011"!=e.vf||(r=e.init||r,!1)}))).length&&(e=function(e,t,n){for(var i=[],r=(t=c(t)).next();!r.done;r=t.next()){var a=n[(r=r.value).vf];if(a){var o;if(o=Fd(r.node,"urn:microsoft:playready","pro"))o=[{initData:Bd(o=Wt(o.textContent),new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149])),initDataType:"cenc",keyId:r.keyId}];else o=null;o=Ne(a,r.init||e||o),(a=cu.get(a))&&(o.licenseServerUri=a(r)),i.push(o)}}return i}(r,a,n),0==e.length&&(e=[Ne("",r)])),i.length&&(t||!a.length))for(e=[],n=(t=c(Object.values(n))).next();!n.done;n=t.next())"org.w3.clearkey"!=(n=n.value)&&e.push(Ne(n,r));if(o=Array.from(o)[0]||null)for(n=(t=c(e)).next();!n.done;n=t.next())for(i=(n=c(n.value.initData)).next();!i.done;i=n.next())i.value.keyId=o;return{We:o,Ki:r,drmInfos:e,$e:!0}}function ou(e){return(e=Fd(e.node,"urn:microsoft:playready","pro"))&&(e=function(e){var t=0,n=Nt(e),i=n.getUint32(t,!0);if(i!=e.byteLength)return[];e:{for(e=t+6,t=[];e<n.byteLength-1;){i=n.getUint16(e,!0),e+=2;var r=n.getUint16(e,!0);if(e+=2,1&r||r+e>n.byteLength){n=[];break e}var a=jt(n,e,r);t.push({type:i,value:a}),e+=r}n=t}return n}(e=Wt(e.textContent)).filter((function(e){return e.type===lu}))[0])&&(e=iu(e=Ut(e.value,!0),"WRMHEADER"))?function(e){for(var t=(e=c(e.getElementsByTagName("DATA"))).next();!t.done;t=e.next())for(var n=(t=c(t.value.childNodes)).next();!n.done;n=t.next())if((n=n.value)instanceof Element&&"LA_URL"==n.tagName)return n.textContent;return""}(e):""}function su(e){var t=e.getAttribute("schemeIdUri"),n=Hd(e,"urn:mpeg:cenc:2013","default_KID"),i=qd(e,"urn:mpeg:cenc:2013","pssh").map(Kd);if(!t)return null;if(t=t.toLowerCase(),n&&(n=n.replace(/-/g,"").toLowerCase()).includes(" "))throw new xe(2,4,4009);var r=[];try{r=i.map((function(e){return{initDataType:"cenc",initData:Wt(e),keyId:null}}))}catch(e){throw new xe(2,4,4007)}return{node:e,vf:t,keyId:n,init:0<r.length?r:null}}var lu=1,cu=(new Map).set("com.widevine.alpha",(function(e){return(e=Fd(e.node,"urn:microsoft","laurl"))&&e.getAttribute("licenseUrl")||""})).set("com.microsoft.playready",ou).set("com.microsoft.playready.recommendation",ou).set("com.microsoft.playready.softw
2are",ou).set("com.microsoft.playready.hardware",ou);function du(t,n,i,r,a){var o={RepresentationID:n,Number:i,Bandwidth:r,Time:a};return t.replace(/\$(RepresentationID|Number|Bandwidth|Time)?(?:%0([0-9]+)([diouxX]))?\$/g,(function(t,n,i,r){if("$$"==t)return"$";var a=o[n];if(null==a)return t;switch("RepresentationID"==n&&i&&(i=void 0),"Time"==n&&(a=Math.round(a)),r){case void 0:case"d":case"i":case"u":t=a.toString();break;case"o":t=a.toString(8);break;case"x":t=a.toString(16);break;case"X":t=a.toString(16).toUpperCase();break;default:t=a.toString()}return i=e.parseInt(i,10)||1,Array(Math.max(0,i-t.length)+1).join("0")+t}))}function uu(e,t){var n=pu(e,t,"timescale"),i=1;n&&(i=Qd(n)||1);var r=pu(e,t,"duration");n=Qd(r||""),"image"==e.L.contentType&&(n=tu(r||"")),n&&(n/=i);var a=pu(e,t,"startNumber");r=Number(pu(e,t,"presentationTimeOffset"))||0;var o=eu(a||"");null!=a&&null!=o||(o=1);var s=hu(e,t,"SegmentTimeline");if(a=null,s){a=i;var l=e.Z.duration||1/0,d=Vd(s,"S");s=[];for(var u=-r,p=(d=c(re(d))).next();!p.done;p=d.next()){var h=(p=p.value).item,m=p.next,g=Wd(h,"t",eu);p=Wd(h,"d",eu);var f=Wd(h,"r",Zd);if(null!=g&&(g-=r),!p)break;if(h=null!=g?g:u,0>(g=f||0))if(m){if(null==(m=Wd(m,"t",eu)))break;if(h>=m)break;g=Math.ceil((m-h)/p)-1}else{if(1/0==l)break;if(h/a>=l)break;g=Math.ceil((l*a-h)/p)-1}for(0<s.length&&h!=u&&(s[s.length-1].end=h/a),g=(m=c(ie(g+1))).next();!g.done;g=m.next())u=h+p,s.push({start:h/a,end:u/a,kh:h}),h=u}a=s}return{timescale:i,za:n,pc:o,vb:r/i||0,Ie:r,timeline:a}}function pu(e,t,n){return[t(e.L),t(e.Ba),t(e.ua)].filter(Ce).map((function(e){return e.getAttribute(n)})).reduce((function(e,t){return e||t}))}function hu(e,t,n){return[t(e.L),t(e.Ba),t(e.ua)].filter(Ce).map((function(e){return Ud(e,n)})).reduce((function(e,t){return e||t}))}function mu(e,t,n,i,r,a){if(a=void 0===a?0:a,Hd(e,"http://www.w3.org/1999/xlink","href")){var o=function(e,t,n,i,r,a){for(var o=Hd(e,"http://www.w3.org/1999/xlink","href"),s=Hd(e,"http://www.w3.org/1999/xlink","actuate")||"onRequest",l=c(Array.from(e.attributes)),d=l.next();!d.done;d=l.next())"http://www.w3.org/1999/xlink"==(d=d.value).namespaceURI&&e.removeAttributeNS(d.namespaceURI,d.localName);if(5<=a)return vi(new xe(2,4,4028));if("onLoad"!=s)return vi(new xe(2,4,4027));var u=je([i],[o]);return r.request(0,Ci(u,t)).oa((function(i){if(!(i=ru(i.data,e.tagName)))return vi(new xe(2,4,4001,o));for(;e.childNodes.length;)e.removeChild(e.childNodes[0]);for(;i.childNodes.length;){var s=i.childNodes[0];i.removeChild(s),e.appendChild(s)}for(s=(i=c(Array.from(i.attributes))).next();!s.done;s=i.next())e.setAttributeNode(s.value.cloneNode(!1));return mu(e,t,n,u[0],r,a+1)}))}(e,t,n,i,r,a);return n&&(o=o.oa(void 0,(function(){return mu(e,t,n,i,r,a)}))),o}o=[];for(var s=c(Array.from(e.childNodes)),l=s.next();!l.done;l=s.next())(l=l.value)instanceof Element&&("urn:mpeg:dash:resolve-to-zero:2013"==Hd(l,"http://www.w3.org/1999/xlink","href")?e.removeChild(l):"SegmentTimeline"!=l.tagName&&o.push(mu(l,t,n,i,r,a)));return wi(o).oa((function(){return e}))}function gu(e,t,n,i,r,a,o){var s,l=(new Sr).Y("sidx",(function(e){s=function(e,t,n,i,r,a,o){var s=[];o.reader.skip(4);var l=o.reader.P();if(0==l)throw new xe(2,3,3005);if(0==o.version)var d=o.reader.P(),u=o.reader.P();else d=o.reader.nc(),u=o.reader.nc();o.reader.skip(2);var p=o.reader.ie();for(e=e+o.size+u,p=c(ie(p)),u=p.next();!u.done;u=p.next()){var h=o.reader.P();u=(2147483648&h)>>>31,h&=2147483647;var m=o.reader.P();if(o.reader.skip(4),1==u)throw new xe(2,3,3006);s.push(new go(d/l+n,(d+m)/l+n,(function(){return a}),e,e+h-1,t,n,i,r)),d+=m,e+=h}return o.parser.stop(),s}(t,i,r,a,o,n,e)}));if(e&&l.parse(e),s)return s;throw new xe(2,3,3004)}function fu(e){this.h=Nt(e),this.g=new kr(this.h,0)}function vu(e){var t=bu(e);if(7<t.length)throw new xe(2,3,3002);for(var n=0,i=(t=c(t)).next();!i.done;i=t.next())n=256*n+i.value;t=bu(e);e:{for(var r=(i=c(yu)).next();!r.done;r=i.next())if(It(t,new Uint8Array(r.value))){i=!0;break e}i=!1}if(i)t=e.h.byteLength-e.g.qa();else{if(8==t.length&&224&t[1])throw new xe(2,3,3001);i=0;for(var a=(r=c(re(t))).next();!a.done;a=r.next()){var o=(a=a.value).item;i=0==a.ra?o&(1<<8-t.length)-1:256*i+o}t=i}return t=e.g.qa()+t<=e.h.byteLength?t:e.h.byteLength-e.g.qa(),i=Nt(e.h,e.g.qa(),t),e.g.skip(t),new xu(n,i)}function bu(e){var t=e.g.qa(),n=e.g.ub();if(0==n)throw new xe(2,3,3002);return n=8-Math.floor(Math.log2(n)),e.g.skip(n-1),jt(e.h,t,n)}fu.prototype.Da=function(){return this.g.Da()};var yu=[[255],[127,255],[63,255,255],[31,255,255,255],[15,255,255,255,255],[7,255,255,255,255,255],[3,255,255,255,255,255,255],[1,255,255,255,255,255,255,255]];function xu(e,t){this.id=e,this.g=t}function wu(e){if(8<e.g.byteLength)throw new xe(2,3,3002);if(8==e.g.byteLength&&224&e.g.getUint8(0))throw new xe(2,3,3001);for(var t=0,n=c(ie(e.g.byteLength)),i=n.next();!i.done;i=n.next())t=256*t+(i=e.g.getUint8(i.value));return t}function ku(e){var t=new fu(e.g);if(179!=(e=vu(t)).id)throw new xe(2,3,3013);if(e=wu(e),183!=(t=vu(t)).id)throw new xe(2,3,3012);t=new fu(t.g);for(var n=0;t.Da();){var i=vu(t);
2if(241==i.id){n=wu(i);break}}return{lh:e,Ug:n}}function Au(e,t){var n=hu(e,t,"Initialization");if(!n)return null;var i=e.L.Pa,r=n.getAttribute("sourceURL");r&&(i=je(e.L.Pa,[r])),r=0;var a=null;return(n=Wd(n,"range",Jd))&&(r=n.start,a=n.end),new mo((function(){return i}),r,a,_u(e))}function Tu(e,t){var n=Number(pu(e,Eu,"presentationTimeOffset"))||0,i=pu(e,Eu,"timescale"),r=1;i&&(r=Qd(i)||1);var a=n/r||0,o=Au(e,Eu);!function(e,t){if(Cu(e,t),!Iu(e))throw new xe(2,4,4002)}(e,o);var s=Ai(e);return{bc:function(){var e=hu(s,Eu,"RepresentationIndex"),n=s.L.Pa;return e&&(e=e.getAttribute("sourceURL"))&&(n=je(s.L.Pa,[e])),e=Iu(s),Su(s,t,o,n,e.start,e.end,a)}}}function Su(e,t,n,i,r,a,o){var s,l,c,d,u,p,h,m,g,f,v,b,y,w,k;return P((function(A){if(1==A.g)return s=e.presentationTimeline,l=!e.zb||!e.Z.lf,c=e.Z.start,d=e.Z.duration,u=e.L.mimeType.split("/")[1],h=null,m=[(p=t)(i,r,a),"webm"==u?p(n.Ra(),n.Ua,n.Ca):null],p=null,x(A,Promise.all(m),2);if(g=A.h,f=g[0],v=g[1]||null,null,y=c-o,w=c,k=d?c+d:1/0,"mp4"==u)var T=gu(f,r,i,n,y,w,k);else{if(440786851!=vu(T=new fu(v)).id)throw new xe(2,3,3008);var S=vu(T);if(408125543!=S.id)throw new xe(2,3,3009);T=S.g.byteOffset,S=new fu(S.g);for(var E=null;S.Da();){var I=vu(S);if(357149030==I.id){E=I;break}}if(!E)throw new xe(2,3,3010);for(E=new fu(E.g),I=1e6,S=null;E.Da();){var C=vu(E);if(2807729==C.id)I=wu(C);else if(17545==C.id)if(4==C.g.byteLength)S=C.g.getFloat32(0);else{if(8!=C.g.byteLength)throw new xe(2,3,3003);S=C.g.getFloat64(0)}}if(null==S)throw new xe(2,3,3011);if(S*=E=I/1e9,475249515!=(I=vu(new fu(f))).id)throw new xe(2,3,3007);T=function(e,t,n,i,r,a,o,s,l){function c(){return r}var d=[];e=new fu(e.g);for(var u=null,p=null;e.Da();){var h=vu(e);if(187==h.id){var m=ku(h);m&&(h=n*m.lh,m=t+m.Ug,null!=u&&d.push(new go(u+o,h+o,c,p,m-1,a,o,s,l)),u=h,p=m)}}return null!=u&&d.push(new go(u+o,i+o,c,p,null,a,o,s,l)),d}(I,T,E,S,i,n,y,w,k)}return b=T,s.kc(b),h=new Oo(b),l&&h.Ab(w,k,!0),A.return(h)}))}function Eu(e){return e.Nc}function Iu(e){var t=hu(e,Eu,"RepresentationIndex");return e=Jd((e=pu(e,Eu,"indexRange"))||""),t&&(e=Wd(t,"range",Jd,e)),e}function Cu(e,t){var n=e.L.mimeType.split("/")[1];if(e.L.contentType!=De&&"mp4"!=n&&"webm"!=n)throw new xe(2,4,4006);if("webm"==n&&!t)throw new xe(2,4,4005)}function _u(e){var t=e.L;return{bandwidth:e.bandwidth,audioSamplingRate:t.audioSamplingRate,codecs:t.codecs,contentType:t.contentType,frameRate:t.frameRate||null,height:t.height||null,mimeType:t.mimeType,channelsCount:t.nd,pixelAspectRatio:t.pixelAspectRatio||null,width:t.width||null}}function ju(e,t){var n=Au(e,Nu),i=function(e){var t=function(e){return[e.L.Fb,e.Ba.Fb,e.ua.Fb].filter(Ce).map((function(e){return Vd(e,"SegmentURL")})).reduce((function(e,t){return 0<e.length?e:t})).map((function(t){return t.getAttribute("indexRange")&&!e.hf&&(e.hf=!0),{Kg:t.getAttribute("media"),start:(t=Wd(t,"mediaRange",Jd,{start:0,end:null})).start,end:t.end}}))}(e);e=uu(e,Nu);var n=e.pc;0==n&&(n=1);var i=0;return e.za?i=e.za*(n-1):e.timeline&&0<e.timeline.length&&(i=e.timeline[0].start),{za:e.za,startTime:i,pc:n,vb:e.vb,timeline:e.timeline,hc:t}}(e);if(!i.za&&!i.timeline&&1<i.hc.length)throw new xe(2,4,4002);if(!i.za&&!e.Z.duration&&!i.timeline&&1==i.hc.length)throw new xe(2,4,4002);if(i.timeline&&0==i.timeline.length)throw new xe(2,4,4002);var r=null,a=null;e.ua.id&&e.L.id&&(a=t[e.ua.id+","+e.L.id])&&(r=a.segmentIndex);var o=function(e,t,n,i,r){var a=i.hc.length;i.timeline&&i.timeline.length!=i.hc.length&&(a=Math.min(i.timeline.length,i.hc.length));for(var o=e-i.vb,s=t?e+t:1/0,l=[],d=i.startTime,u={},p=(a=c(ie(a))).next();!p.done;u={Fd:u.Fd},p=a.next()){p=p.value;var h=i.hc[p];u.Fd=je(n,[h.Kg]);var m=void 0;m=null!=i.za?d+i.za:i.timeline?i.timeline[p].end:d+t,l.push(new go(e+d,e+m,function(e){return function(){return e.Fd}}(u),h.start,h.end,r,o,e,s)),d=m}return l}(e.Z.start,e.Z.duration,e.L.Pa,i,n);return n=!r,r?r.jc(o,e.presentationTimeline.qb()):r=new Oo(o),e.presentationTimeline.kc(o),e.zb&&e.Z.lf||r.Ab(e.Z.start,e.Z.duration?e.Z.start+e.Z.duration:1/0,n),a&&(a.segmentIndex=r),{bc:function(){return r&&0!=r.O.length||r.ic(o),Promise.resolve(r)}}}function Nu(e){return e.Fb}function Lu(e,t,n,i,r,a){var o=function(e){var t=pu(e,Pu,"initialization");if(!t)return null;var n=e.L.id,i=e.bandwidth||null,r=e.L.Pa;return new mo((function(){var e=du(t,n,null,i,null);return je(r,[e])}),0,null,_u(e))}(e),s=function(e){var t=uu(e,Pu),n=pu(e,Pu,"media");return e=pu(e,Pu,"index"),{za:t.za,timescale:t.timescale,pc:t.pc,vb:t.vb,Ie:t.Ie,timeline:t.timeline,Yd:n,Hc:e}}(e);!function(e){var t=e.Hc?1:0;if(t+=e.timeline?1:0,t+=e.za?1:0,0==t)throw new xe(2,4,4002);if(1!=t&&(e.Hc&&(e.timeline=null),e.za=null),!e.Hc&&!e.Yd)throw new xe(2,4,4002)}(s);var l=Ai(e);if(s.Hc)return Cu(e,o),{bc:function(){var e=du(s.Hc,l.L.id,null,l.bandwidth||null,
2null);return e=je(l.L.Pa,[e]),Su(l,t,o,e,0,null,s.vb)}};if(s.za)return i||(e.presentationTimeline.$d(s.za),e.presentationTimeline.ae(e.Z.start)),{bc:function(){return function(e,t,n,i,r){function a(e){var n=(e-m)*h,r=n+t.vb,a=n+d;return n=a+h,(a=new go(a,Math.min(n,s()),(function(){var t=du(f,b,e,v,r*g);return je(y,[t])}),0,null,i,x,d,s())).l=n,a}function o(){var e=[Math.max(l.qb(),d),Math.min(l.Kb(),s())].map((function(e){return e-d}));return[Math.ceil(e[0]/h),Math.ceil(e[1]/h)-1].map((function(e){return e+m}))}function s(){var e=null!=u&&r[u]||p;return e?d+e:1/0}var l=e.presentationTimeline,d=e.Z.start,u=e.ua.id,p=e.Z.duration,h=t.za,m=t.pc,g=t.timescale,f=t.Yd,v=e.bandwidth||null,b=e.L.id,y=e.L.Pa,x=d-t.vb,w=o();e=e.zb?Math.max(w[0],w[1]-n+1):w[0],w=w[1],n=[];for(var k=e;k<=w;++k){var A=a(k);n.push(A)}var T=new Oo(n);if(n=l.Kb()<s(),k=l.T(),n||k){var S=Math.max(e,w+1);T.wd(h,(function(){var e=l.qb();T.Ib(e);var t=c(o());t.next(),t=t.next().value;for(var n=[];S<=t;){var i=a(S);n.push(i),S++}return e>s()&&!n.length?null:n}))}return Promise.resolve(T)}(l,s,r,o,a)}};var d=null;i=i=null,e.ua.id&&e.L.id&&(i=n[i=e.ua.id+","+e.L.id])&&(d=i.segmentIndex);var u=function(e,t,n){var i=e.Z.start,r=e.Z.duration,a=i-t.vb;r=r?i+r:1/0;for(var o=[],s={},l=c(re(t.timeline)),d=l.next();!d.done;s={Ed:s.Ed,Id:s.Id,Ld:s.Ld,Bd:s.Bd,Nd:s.Nd,Cd:s.Cd},d=l.next()){var u=(d=d.value).item,p=u.start,h=u.kh;u=u.end,s.Ld=d.ra+t.pc,s.Nd=h+t.Ie,s.Id=e.L.id,s.Bd=e.bandwidth||null,s.Ed=t.Yd,s.Cd=e.L.Pa,o.push(new go(i+p,i+u,function(e){return function(){var t=du(e.Ed,e.Id,e.Ld,e.Bd||null,e.Nd);return je(e.Cd,[t]).map((function(e){return e.toString()}))}}(s),0,null,n,a,i,r))}return o}(l,s,o);n=e.Z.start;var p=e.Z.duration?e.Z.start+e.Z.duration:1/0,h=1/0!=p;return d?(h&&new Oo(u).Ab(n,p,!0),d.jc(u,e.presentationTimeline.qb())):d=new Oo(u),e.presentationTimeline.kc(u),h&&d.Ab(n,p),i&&e.zb&&(i.segmentIndex=d),{bc:function(){return d&&0!=d.O.length||d.ic(u),Promise.resolve(d)}}}function Pu(e){return e.Oc}function Du(){this.l=[],this.g=[],this.h=[],this.j=[],this.i=[],this.m=new Set}function Mu(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,k,A,T,S,E,I,C,_,j,N,L,D,M,O,R;return P((function(P){switch(P.g){case 1:if(i=Me,function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).Yc),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.channelsCount==s.channelsCount&&r.language==s.language&&r.bandwidth==s.bandwidth&&r.label==s.label&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&rt(r.roles,s.roles)&&r.audioSamplingRate==s.audioSamplingRate&&r.primary==s.primary&&(a=!0);a||n.push(r)}t.Yc=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).xd),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.width==s.width&&r.frameRate==s.frameRate&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&r.label==s.label&&rt(r.roles,s.roles)&&Gi(r.closedCaptions,s.closedCaptions)&&r.bandwidth==s.bandwidth&&(a=!0);a||n.push(r)}t.xd=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).textStreams),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.language==s.language&&r.label==s.label&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&rt(r.roles,s.roles)&&(a=!0);a||n.push(r)}t.textStreams=n}}(t),function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){for(var n=[],i=c((t=t.value).imageStreams),r=i.next();!r.done;r=i.next()){r=r.value;for(var a=!1,o=c(n),s=o.next();!s.done;s=o.next())s=s.value,r.id!=s.id&&r.width==s.width&&r.codecs==s.codecs&&r.mimeType==s.mimeType&&(a=!0);a||n.push(r)}t.imageStreams=n}}(t),!n&&1==t.length){r=t[0],e.g=r.Yc,e.h=r.xd,e.j=r.textStreams,e.i=r.imageStreams,P.D(2);break}for(a=-1,o=c(re(t)),s=o.next();!s.done;s=o.next())l=s.value,d=l.ra,u=l.item,e.m.has(u.id)||(e.m.add(u.id),-1==a&&(a=d));if(-1==a)return P.return();for(p=t.map((function(e){return e.Yc})),h=t.map((function(e){return e.xd})),m=t.map((function(e){return e.textStreams})),g=t.map((function(e){return e.imageStreams})),f=c(m),v=f.next();!v.done;v=f.next())v.value.push(ep(i.ma));for(b=c(g),y=b.next();!y.done;y=b.next())y.value.push(ep(i.xc));return x(P,Ru(e.g,p,a,Fu,qu),3);case 3:return x(P,Ru(e.h,h,a,Fu,qu),4);case 4:return x(P,Ru(e.j,m,a,Fu,qu),5);case 5:return x(P,Ru(e.i,g,a,Fu,qu),2);case 2:if(k=0,A=[],e.h.length&&e.g.length)for(_=c(e.g),j=_.next();!j.done;j=_.next())for(N=j.value,L=c(e.h),D=L.next();!D.done;D=L.next())M=D.value,O=sr(N.drmInfos,M.drmInfos),N.drmInfos.length&&M.drmInfos.length&&!O.length||(
2R=k++,A.push({id:R,language:N.language,primary:N.primary,audio:N,video:M,bandwidth:(N.bandwidth||0)+(M.bandwidth||0),drmInfos:O,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}));else for(T=e.h.concat(e.g),S=c(T),E=S.next();!E.done;E=S.next())I=E.value,C=k++,A.push({id:C,language:I.language,primary:I.primary,audio:I.type==i.Gb?I:null,video:I.type==i.ib?I:null,bandwidth:I.bandwidth||0,drmInfos:I.drmInfos,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});e.l=A,w(P)}}))}function Ou(e){var t,n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,k,A,T,S,E;return P((function(I){switch(I.g){case 1:if(t=Me,1==e.length)return I.return(e[0]);for(n=e.map((function(e){return e.filter((function(e){return e.type==t.Gb}))})),i=e.map((function(e){return e.filter((function(e){return e.type==t.ib}))})),r=e.map((function(e){return e.filter((function(e){return e.type==t.ma}))})),a=e.map((function(e){return e.filter((function(e){return e.type==t.xc}))})),o=c(r),s=o.next();!s.done;s=o.next())s.value.push(Qu(t.ma));for(l=c(a),d=l.next();!d.done;d=l.next())d.value.push(Qu(t.xc));return x(I,Ru([],n,0,Vu,Hu),2);case 2:return u=I.h,x(I,Ru([],i,0,Vu,Hu),3);case 3:return p=I.h,x(I,Ru([],r,0,Vu,Hu),4);case 4:return h=I.h,x(I,Ru([],a,0,Vu,Hu),5);case 5:if(m=I.h,g=0,p.length&&u.length)for(y=c(u),w=y.next();!w.done;w=y.next())for(k=w.value,A=c(p),T=A.next();!T.done;T=A.next())S=T.value,E=g++,S.variantIds.push(E),k.variantIds.push(E);else for(f=p.concat(u),v=c(f),b=v.next();!b.done;b=v.next())b.value.variantIds=[g++];return I.return(p.concat(u).concat(h).concat(m))}}))}function Ru(e,t,n,i,r){var a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,k,A,T,S,E,I,C;return P((function(_){switch(_.g){case 1:for(a=Me,o=[],s=c(re(t)),l=s.next();!l.done;l=s.next())d=l.value,u=d.ra,p=d.item,u>=n?o.push(new Set(p)):o.push(new Set);h=c(e),m=h.next();case 2:if(m.done){_.D(4);break}return x(_,function(e,t,n,i,r){return P((function(a){return 1==a.g?(Gu(t,e),e.matchedStreams?e.segmentIndex?x(a,zu(e,n),2):a.D(2):a.return(!1)):(Uu(e,n,i,r),a.return(!0))}))}(m.value,t,n,r,o),5);case 5:if(!_.h)throw new xe(2,4,4037);m=h.next(),_.D(2);break;case 4:for(g=c(o),f=g.next();!f.done;f=g.next())for(v=f.value,b=c(v),y=b.next();!y.done;y=b.next())w=y.value,(k=Bu(w,t,i,r,o))&&e.push(k);for(A=c(o),f=A.next();!f.done;f=A.next())for(T=f.value,S={},E=c(T),y=E.next();!y.done;S={yb:S.yb},y=E.next())if(S.yb=y.value,I=S.yb.type==a.ma&&!S.yb.language,C=S.yb.type==a.xc&&!S.yb.tilesLayout,!I&&!C&&e.some(function(e){return function(t){return t.mimeType==e.yb.mimeType&&an(t.codecs)==an(e.yb.codecs)}}(S)))throw new xe(2,4,4037);return _.return(e)}}))}function zu(e,t){var n,i,r,a,o,s,l,d,u,p;return P((function(h){if(1==h.g){for(n=[],i=e.matchedStreams,r=c(i),a=r.next();!a.done;a=r.next())o=a.value,n.push(o.createSegmentIndex()),o.trickModeVideo&&!o.trickModeVideo.segmentIndex&&n.push(o.trickModeVideo.createSegmentIndex());return x(h,Promise.all(n),2)}if(e.segmentIndex instanceof Bo)for(s=c(re(i)),l=s.next();!l.done;l=s.next())d=l.value,u=d.ra,(p=d.item).segmentIndex&&u>=t&&e.segmentIndex.j.push(p.segmentIndex);w(h)}))}function Bu(e,t,n,i,r){var a=n(e);return Gu(t,a),a.createSegmentIndex&&(a.createSegmentIndex=function(){return P((function(e){return a.segmentIndex?e.D(0):(a.segmentIndex=new Bo,x(e,zu(a,0),0))}))}),a.matchedStreams?(Uu(a,0,i,r),a):null}function Uu(e,t,n,i){for(var r=c(re(e.matchedStreams)),a=r.next();!a.done;a=r.next()){var o=a.value;if(a=o.ra,o=o.item,a>=t){n(e,o);var s=!0;"audio"==e.type&&0==qe(e.language,o.language)&&(s=!1),s&&i[a].delete(o)}}}function Fu(e){var t=Object.assign({},e);return t.originalId=null,t.createSegmentIndex=function(){return Promise.resolve()},t.closeSegmentIndex=function(){if(t.segmentIndex&&(t.segmentIndex.release(),t.segmentIndex=null),t.matchedStreams)for(var e=c(t.matchedStreams),n=e.next();!n.done;n=e.next())(n=n.value).segmentIndex&&(n.segmentIndex.release(),n.segmentIndex=null)},t.segmentIndex=null,t.emsgSchemeIdUris=[],t.keyIds=new Set,t.closedCaptions=null,t.trickModeVideo=null,t}function Vu(e){return(e=Object.assign({},e)).keyIds=new Set,e.segments=[],e.variantIds=[],e.closedCaptions=null,e}function qu(e,t){var n,i;e.roles=Array.from(new Set(e.roles.concat(t.roles))),t.emsgSchemeIdUris&&(e.emsgSchemeIdUris=Array.from(new Set(e.emsgSchemeIdUris.concat(t.emsgSchemeIdUris)))),e.keyIds=(n=e.keyIds,i=t.keyIds,new Set([].concat(d(n),d(i)))),null==e.originalId?e.originalId=t.originalId:e.originalId+=","+(t.originalId||"");var r=sr(e.drmInfos,t.drmInfos);if(t.drmInfos.length&&e.drmInfos.length&&!r.length)throw new xe(2,4,4038);if(e.drmInfos=r,e.encrypted=e.encrypted||t.encrypted,t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var a=(r=c(t.closedCaptions)).next();!a.done;a=r.next()){var o=c(a.value);a=o.next().value,o=o.next().value,e.closedCaptions.set(a,o)}}t.trickModeVideo?(e.trickModeVideo||(e.trickModeVideo=Fu(t.trickModeVideo),e.trickModeVideo.createSegmentIndex=function(){return e.trickModeVideo.segmentIndex=e.segmentIndex.clone(),Promise.resolve()}),qu(e.trickModeVideo,t.trickModeVideo)):e.trickModeVideo&&qu(e.trickModeVideo,t)}function Hu(e,t){e.roles=Array.from(new Set(e.roles.concat(t.roles)));var n=t.keyIds;
2if(n=new Set([].concat(d(e.keyIds),d(n))),e.keyIds=n,e.encrypted=e.encrypted&&t.encrypted,e.segments.push.apply(e.segments,d(t.segments)),t.closedCaptions){e.closedCaptions||(e.closedCaptions=new Map);for(var i=(n=c(t.closedCaptions)).next();!i.done;i=n.next()){var r=c(i.value);i=r.next().value,r=r.next().value,e.closedCaptions.set(i,r)}}}function Gu(e,t){for(var n=[],i=c(e),r=i.next();!r.done;r=i.next()){for(var a=t,o={audio:Ku,video:Ku,text:$u,image:Wu}[a.type],s={audio:Xu,video:Yu,text:Ju,image:Zu}[a.type],l=null,d=(r=c(r.value)).next();!d.done;d=r.next())!o(a,d=d.value)||l&&!s(a,l,d)||(l=d);if(!(a=l))return;n.push(a)}t.matchedStreams=n}function Ku(e,t){var n;if(!(n=t.mimeType!=e.mimeType||an(t.codecs)!=an(e.codecs))&&(n=e.drmInfos)){n=e.drmInfos;var i=t.drmInfos;n=!(!n.length||!i.length||0<sr(n,i).length)}return!n}function $u(e,t){return!!e.language&&(!t.language||0!=qe(e.language,t.language)&&t.kind==e.kind)}function Wu(e){return!!e.tilesLayout}function Xu(e,t,n){if(e.id==n.id)return!0;var i=qe(e.language,t.language),r=qe(e.language,n.language);return r>i||!(r<i)&&(!(t.primary||!n.primary)||!(t.primary&&!n.primary)&&(e.roles.length?(i=t.roles.filter((function(t){return e.roles.includes(t)})),(r=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length||!(r.length<i.length)&&n.roles.length<t.roles.length):!(n.roles.length||!t.roles.length)||!(n.roles.length&&!t.roles.length)&&((i=tp(e.channelsCount,t.channelsCount,n.channelsCount))==ip||i!=ap&&((i=tp(e.audioSamplingRate,t.audioSamplingRate,n.audioSamplingRate))==ip||i!=ap&&!(!e.bandwidth||np(e.bandwidth,t.bandwidth,n.bandwidth)!=ip)))))}function Yu(e,t,n){if(e.id==n.id)return!0;var i=tp(e.width*e.height,t.width*t.height,n.width*n.height);if(i==ip)return!0;if(i==ap)return!1;if(e.frameRate){if((i=tp(e.frameRate,t.frameRate,n.frameRate))==ip)return!0;if(i==ap)return!1}return!(!e.bandwidth||np(e.bandwidth,t.bandwidth,n.bandwidth)!=ip)}function Ju(e,t,n){if(e.id==n.id)return!0;var i=qe(e.language,t.language),r=qe(e.language,n.language);if(r>i)return!0;if(r<i)return!1;if(!t.primary&&n.primary)return!0;if(t.primary&&!n.primary)return!1;if(e.roles.length){if(i=t.roles.filter((function(t){return e.roles.includes(t)})),(r=n.roles.filter((function(t){return e.roles.includes(t)}))).length>i.length)return!0;if(r.length<i.length)return!1}else{if(!n.roles.length&&t.roles.length)return!0;if(n.roles.length&&!t.roles.length)return!1}return n.mimeType==e.mimeType&&n.codecs==e.codecs&&(t.mimeType!=e.mimeType||t.codecs!=e.codecs)}function Zu(e,t,n){return e.id==n.id||tp(e.width*e.height,t.width*t.height,n.width*n.height)==ip}function Qu(e){return{id:0,originalId:"",primary:!1,type:e,mimeType:"",codecs:"",language:"",label:null,width:null,height:null,encrypted:!1,keyIds:new Set,segments:[],variantIds:[],roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function ep(e){return{id:0,originalId:"",createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Oo([]),mimeType:"",codecs:"",encrypted:!1,drmInfos:[],keyIds:new Set,language:"",label:null,type:e,primary:!1,trickModeVideo:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null}}function tp(e,t,n){if(t==e&&e!=n)return ap;if(n==e&&e!=t)return ip;if(t>e){if(n<=e||n-e<t-e)return ip;if(n-e>t-e)return ap}else{if(n>e)return ap;if(e-n<e-t)return ip;if(e-n>e-t)return ap}return rp}
2function np(e,t,n){return t=Math.abs(e-t),(e=Math.abs(e-n))<t?ip:t<e?ap:rp}Du.prototype.release=function(){for(var e=c(this.g.concat(this.h,this.j,this.i)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();this.g=[],this.h=[],this.j=[],this.i=[],this.l=[]};var ip=1,rp=0,ap=-1;function op(){var e=this;this.h=this.g=null,this.m=[],this.i=null,this.J=1,this.l={},this.N={},this.j=new Du,this.H=0,this.K=new Qe(5),this.G=new mn((function(){!function(e){var t,n;P((function(i){switch(i.g){case 1:return t=0,k(i,2),x(i,sp(e),4);case 4:t=i.h,T(i,3);break;case 2:n=S(i),e.h&&(n.severity=1,e.h.onError(n));case 3:if(!e.h)return i.return();up(e,t),w(i)}}))}(e)})),this.A=new Ti,this.B=null,this.M=[],this.C=1/0,this.F=!1}function sp(e){var t,n,i,r,a,o,s;return P((function(l){return 1==l.g?(t=Ci(e.m,e.g.retryParameters),n=e.h.networkingEngine,e.h.modifyManifestRequest(t,{format:"d"}),i=Date.now(),r=n.request(0,t),Si(e.A,r),x(l,r.promise,2)):3!=l.g?(a=l.h,e.h?(a.uri&&!e.m.includes(a.uri)&&e.m.unshift(a.uri),x(l,function(e,t,n){var i,r,a,o;return P((function(s){if(1==s.g){if(!(i=ru(t,"MPD")))throw new xe(2,4,4001,n);return e.g.dash.disableXlinkProcessing?s.return(lp(e,i,n)):(r=e.g.dash.xlinkFailGracefully,a=mu(i,e.g.retryParameters,r,n,e.h.networkingEngine),Si(e.A,a),x(s,a.promise,2))}return o=s.h,s.return(lp(e,o,n))}))}(e,a.data,a.uri),3)):l.return(0)):(o=Date.now(),s=(o-i)/1e3,e.K.sample(1,s),l.return(s))}))}function lp(e,t,n){var i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,E,I,C,_,j,N,L,D,M,O,R,z;return P((function(B){switch(B.g){case 1:if((i=e.g.dash.manifestPreprocessor)&&i(t),r=[n],0<(a=Vd(t,"Location").map(Kd).filter(Ce)).length&&(o=je(r,a),r=e.m=o),s=Vd(t,"BaseURL"),l=s.map(Kd),d=je(r,l),u=0,s&&s.length&&(u=Wd(s[0],"availabilityTimeOffset",tu)||0),p=e.g.dash.ignoreMinBufferTime,h=0,p||(h=Wd(t,"minBufferTime",Yd)||0),e.H=Wd(t,"minimumUpdatePeriod",Yd,-1),m=Wd(t,"availabilityStartTime",Xd),g=Wd(t,"timeShiftBufferDepth",Yd),f=e.g.dash.ignoreSuggestedPresentationDelay,v=null,f||(v=Wd(t,"suggestedPresentationDelay",Yd)),b=e.g.dash.ignoreMaxSegmentDuration,y=null,b||(y=Wd(t,"maxSegmentDuration",Yd)),A=t.getAttribute("type")||"static",e.i)for(E=e.i.presentationTimeline,I=c(Object.values(e.l)),C=I.next();!C.done;C=I.next())(_=C.value).segmentIndex&&_.segmentIndex.Ib(E.qb());else j=e.g.defaultPresentationDelay||1.5*h,E=new fo(m,null!=v?v:j,e.g.dash.autoCorrectDrift);return E.Pc("static"==A),E.T()&&!isNaN(e.g.availabilityWindowOverride)&&(g=e.g.availabilityWindowOverride),null==g&&(g=1/0),E.ye(g),N=t.getAttribute("profiles")||"",L={zb:"static"!=A,presentationTimeline:E,ua:null,Z:null,Ba:null,L:null,bandwidth:0,hf:!1,$b:u,profiles:N.split(",")},D=function(e,t,n,i){var r=Wd(i,"mediaPresentationDuration",Yd),a=[],o=0;i=Vd(i,"Period");for(var s=c(re(i)),l=s.next();!l.done;l=s.next()){var d=l.value;l=d.ra;var u=d.item,p=d.next;d=Wd(u,"start",Yd,o);var h=u.id,m=Wd(u,"duration",Yd),g=null;if(p){var f=Wd(p,"start",Yd);null!=f&&(g=f-d)}else null!=r&&(g=r-d);if(null==g&&(g=m),!(null!==e.B&&null!==h&&null!==d&&d<e.B)||e.M.includes(h)||l+1==i.length){if(null!==d&&(null===e.B||d>e.B)&&(e.B=d),o=cp(e,t,n,{start:d,duration:g,node:u,lf:null==g||!p}),a.push(o),t.ua.id&&g&&(e.N[t.ua.id]=g),null==g){o=null;break}o=d+g}}return e.M=a.map((function(e){return e.id})),null!=r?{periods:a,duration:r,Ye:!1}:{periods:a,duration:o,Ye:!0}}(e,L,d,t),M=D.duration,O=D.periods,"static"!=A&&D.Ye||E.eb(M||1/0),e.C&&!e.F&&e.h.isAutoLowLatencyMode()&&(e.h.enableLowLatencyMode(),e.F=e.h.isLowLatencyMode()),e.F?E.wf(e.C):e.C&&K("Low-latency DASH live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details."),E.$d(y||1),x(B,Mu(e.j,O,L.zb),2);case 2:if(e.i){e.i.variants=e.j.l,e.i.textStreams=e.j.j.slice(),e.i.imageStreams=e.j.i,e.h.filter(e.i),B.D(3);break}if(e.i={presentationTimeline:E,variants:e.j.l,textStreams:e.j.j.slice(),imageStreams:e.j.i,offlineSessionIds:[],minBufferTime:h||0,sequenceMode:!1},!E.Ef()){B.D(3);break}return R=Vd(t,"UTCTiming"),x(B,function(e,t,n){var i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:i=n.map((function(e){return{scheme:e.getAttribute("schemeIdUri"),value:e.getAttribute("value")}})),r=e.g.dash.clockSyncUri,!i.length&&r&&i.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:r}),a=c(i),o=a.next();case 2:if(o.done){p.D(4);break}switch(s=o.value,k(p,5),l=s.scheme,d=s.value,l){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return p.D(7);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":return p.D(8);case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return u=Date.parse(d),p.return(isNaN(u)?0:u-Date.now());case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":K("NTP UTCTiming scheme is not supported");break;default:K("Unrecognized scheme in UTCTiming element",l)}p.D(9);break;case 7:return x(p,hp(e,t,d,"HEAD"),10);case 10:return p.return(p.h);case 8:return x(p,hp(e,t,d,"GET"),11);case 11:return p.return(p.h);case 9:T(p,3);break;case 5:S(p);case 3:o=a.next(),p.D(2);break;case 4:return K("A UTCTiming element should always be given in live manifests! This content may not play on clients with bad clocks!"),p.return(0)}}))}(e,d,R),5);case 5:if(z=B.h,!e.h)return B.return();E.xf(z);case 3:e.h.makeTextStreamsForClosedCaptions(e.i),w(B)}}))}function cp(e,t,n,i){t.ua=pp(i.node,null,n),t.Z=i,t.ua.$b=t.$b,t.ua.id||(t.ua.id="__shaka_period_"+i.start);var r=Vd(i.node,"EventStream");n=t.presentationTimeline.qb();for(var a=(r=c(r)).next();!a.done;
2a=r.next())mp(e,i.start,i.duration,a.value,n);if(n=Vd(i.node,"AdaptationSet").map((function(n){return function(e,t,n){function i(e){switch(e){case 1:case 6:case 13:case 14:case 15:return"SDR";case 16:return"PQ";case 18:return"HLG"}}t.Ba=pp(n,t.ua,null);var r,a=!1,o=Vd(n,"Role"),s=o.map((function(e){return e.getAttribute("value")})).filter(Ce),l=void 0,u=t.Ba.contentType==De;u&&(l="subtitle");for(var p=(o=c(o)).next();!p.done;p=o.next()){var h=(p=p.value).getAttribute("schemeIdUri");if(null==h||"urn:mpeg:dash:role:2011"==h)switch(p=p.getAttribute("value"),p){case"main":a=!0;break;case"caption":case"subtitle":l=p}}h=Vd(n,"EssentialProperty"),o=null,p=!1;for(var m=(h=c(h)).next();!m.done;m=h.next()){var g=(m=m.value).getAttribute("schemeIdUri");"http://dashif.org/guidelines/trickmode"==g?o=m.getAttribute("value"):"urn:mpeg:mpegB:cicp:TransferCharacteristics"==g?r=i(parseInt(m.getAttribute("value"),10)):p=!0}for(h=c(h=Vd(n,"SupplementalProperty")),m=h.next();!m.done;m=h.next())"urn:mpeg:mpegB:cicp:TransferCharacteristics"==(m=m.value).getAttribute("schemeIdUri")&&(r=i(parseInt(m.getAttribute("value"),10)));h=Vd(n,"Accessibility");var f=new Map;for(h=c(h),m=h.next();!m.done;m=h.next())if(g=m.value,m=g.getAttribute("schemeIdUri"),g=g.getAttribute("value"),"urn:scte:dash:cc:cea-608:2015"==m)if(m=1,null!=g)for(var v=c(g=g.split(";")),b=v.next();!b.done;b=v.next()){var y=b.value,k=b=void 0;y.includes("=")?(b=(y=y.split("="))[0].startsWith("CC")?y[0]:"CC"+y[0],k=y[1]||"und"):(b="CC"+m,2==g.length?m+=2:m++,k=y),f.set(b,Fe(k))}else f.set("CC1","und");else if("urn:scte:dash:cc:cea-708:2015"==m)if(m=1,null!=g)for(b=(g=c(g.split(";"))).next();!b.done;b=g.next())y=v=void 0,(b=b.value).includes("=")?(v="svc"+(b=b.split("="))[0],y=b[1].split(",")[0].split(":").pop()):(v="svc"+m,m++,y=b),f.set(v,Fe(y));else f.set("svc1","und");else"urn:mpeg:dash:role:2011"==m&&null!=g&&(s.push(g),"captions"==g&&(l="caption"));if(p)return null;p=Vd(n,"ContentProtection");var A=au(p,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),T=Fe(n.getAttribute("lang")||"und"),S=n.getAttribute("label");if((p=Vd(n,"Label"))&&p.length&&(p=p[0],p.textContent&&(S=p.textContent)),p=Vd(n,"Representation"),n=p.map((function(n){return(n=function(e,t,n,i,r,a,o,s,l,c){if(t.L=pp(c,t.Ba,null),e.C=Math.min(e.C,t.L.$b),!function(e){var t=e.Nc?1:0;return t+=e.Fb?1:0,t+=e.Oc?1:0,0==t?e.contentType==De||"application"==e.contentType:(1!=t&&(e.Nc&&(e.Fb=null),e.Oc=null),!0)}(t.L))return null;var d=t.Z.start;t.bandwidth=Wd(c,"bandwidth",Qd)||0;var u=t.L.contentType,p=u==De||"application"==u;u="image"==u;try{var h=function(t,n,i){return function(e,t,n,i){var r,a,o,s,l;return P((function(c){return 1==c.g?(r=Li,a=Jo(t,n,i,e.g.retryParameters),o=e.h.networkingEngine,s=o.request(r,a),Si(e.A,s),x(c,s.promise,2)):(l=c.h,c.return(l.data))}))}(e,t,n,i)};if(t.L.Nc)var m=Tu(t,h);else if(t.L.Fb)m=ju(t,e.l);else if(t.L.Oc)m=Lu(t,h,e.l,!!e.i,e.g.dash.initialSegmentLimit,e.N);else{var g=t.L.Pa,f=t.Z.duration||0;m={bc:function(){return Promise.resolve(Ro(d,f,g))}}}}catch(e){if((p||u)&&4002==e.code)return null;throw e}h=Vd(c,"ContentProtection"),h=function(e,t,n,i){var r=au(e,n,i);
2if(t.$e)e=1==t.drmInfos.length&&!t.drmInfos[0].keySystem,n=0==r.drmInfos.length,(0==t.drmInfos.length||e&&!n)&&(t.drmInfos=r.drmInfos),t.$e=!1;else if(0<r.drmInfos.length&&(t.drmInfos=t.drmInfos.filter((function(e){return r.drmInfos.some((function(t){return t.keySystem==e.keySystem}))})),0==t.drmInfos.length))throw new xe(2,4,4008);return r.We||t.We}(h,n,e.g.dash.ignoreDrmInfo,e.g.dash.keySystemsByURI),h=new Set(h?[h]:[]);var v=!1;Vd(c,"SupplementalProperty").some((function(e){return"tag:dolby.com,2018:dash:EC3_ExtensionType:2018"==e.getAttribute("schemeIdUri")&&"JOC"==e.getAttribute("value")}))&&(t.L.mimeType="audio/eac3-joc",v=!0);var b,y,k=!1;if(p&&(k=s.includes("forced_subtitle")||s.includes("forced-subtitle")),u&&((c=Vd(c,"EssentialProperty").find((function(e){return["http://dashif.org/thumbnail_tile","http://dashif.org/guidelines/thumbnail_tile"].includes(e.getAttribute("schemeIdUri"))})))&&(b=c.getAttribute("value")),!b))return null;c=t.L.codecs,t.profiles.includes("http://dashif.org/guidelines/dash-if-uhd#hevc-hdr-pq10")&&(c.includes("hvc1.2.4.L153.B0")||c.includes("hev1.2.4.L153.B0"))&&(y="PQ");var A=t.L.id?t.ua.id+","+t.L.id:"",T={id:e.J++,originalId:t.L.id,createSegmentIndex:function(){var n,i;return P((function(r){if(1==r.g)return(n=A&&t.zb&&e.l[A]?e.l[A]:T).segmentIndex?r.D(0):(i=n,x(r,m.bc(),3));i.segmentIndex=r.h,w(r)}))},closeSegmentIndex:function(){T.segmentIndex&&(T.segmentIndex.release(),T.segmentIndex=null)},segmentIndex:null,mimeType:t.L.mimeType,codecs:t.L.codecs,frameRate:t.L.frameRate,pixelAspectRatio:t.L.pixelAspectRatio,bandwidth:t.bandwidth,width:t.L.width,height:t.L.height,kind:i,encrypted:0<n.drmInfos.length,drmInfos:n.drmInfos,keyIds:h,language:r,label:a,type:t.Ba.contentType,primary:o,trickModeVideo:null,emsgSchemeIdUris:t.L.emsgSchemeIdUris,roles:s,forced:k,channelsCount:t.L.nd,audioSamplingRate:t.L.audioSamplingRate,spatialAudio:v,closedCaptions:l,hdr:y,tilesLayout:b,matchedStreams:[]};return A&&t.zb&&!e.l[A]&&(e.l[A]=T),T}(e,t,A,l,T,S,a,s,f,n))&&(n.hdr=n.hdr||r),n})).filter((function(e){return!!e})),0==n.length){if(o="image"==t.Ba.contentType,e.g.dash.ignoreEmptyAdaptationSet||u||o)return null;throw new xe(2,4,4003)}if(!t.Ba.contentType||"application"==t.Ba.contentType)for(t.Ba.contentType=gp(n[0].mimeType,n[0].codecs),u=c(n),h=u.next();!h.done;h=u.next())h.value.type=t.Ba.contentType;for(u=c(n),h=u.next();!h.done;h=u.next())for(h=h.value,m=c(A.drmInfos),g=m.next();!g.done;g=m.next())(g=g.value).keyIds=g.keyIds&&h.keyIds?new Set([].concat(d(g.keyIds),d(h.keyIds))):g.keyIds||h.keyIds;return u=p.map((function(e){return e.getAttribute("id")})).filter(Ce),{id:t.Ba.id||"__fake__"+e.J++,contentType:t.Ba.contentType,language:T,Li:a,streams:n,drmInfos:A.drmInfos,Ee:o,Xg:u}}(e,t,n)})).filter(Ce),t.zb){for(i=[],a=(r=c(n)).next();!a.done;a=r.next())for(var o=(a=c(a.value.Xg)).next();!o.done;o=a.next())i.push(o.value);if(i.length!=new Set(i).size)throw new xe(2,4,4018)}for(i=n.filter((function(e){return!e.Ee})),r=(n=c(n=n.filter((function(e){return e.Ee})))).next();!r.done;r=n.next()){a=(r=r.value).Ee.split(" ");for(var s=(o=c(i)).next();!s.done;s=o.next()){var l=s.value;if(a.includes(l.id)){s={};for(var u=(l=c(l.streams)).next();!u.done;s={Wc:s.Wc},u=l.next())s.Wc=u.value,s.Wc.trickModeVideo=r.streams.find(function(e){return function(t){return an(e.Wc.codecs)==an(t.codecs)}}(s))}}}if(r=e.g.disableAudio?[]:dp(i,"audio"),o=e.g.disableVideo?[]:dp(i,"video"),a=e.g.disableText?[]:dp(i,De),n=e.g.disableThumbnails?[]:dp(i,"image"),!o.length&&!r.length)throw new xe(2,4,4004);for(i=[],s=(r=c(r)).next();!s.done;s=r.next())i.push.apply(i,d(s.value.streams));for(r=[],s=(o=c(o)).next();!s.done;s=o.next())r.push.apply(r,d(s.value.streams));for(o=[],s=(a=c(a)).next();!s.done;s=a.next())o.push.apply(o,d(s.value.streams));for(a=[],s=(n=c(n)).next();!s.done;s=n.next())a.push.apply(a,d(s.value.streams));return{id:t.ua.id,Yc:i,xd:r,textStreams:o,imageStreams:a}}function dp(e,t){return e.filter((function(e){return e.contentType==t}))}function up(e,t){0>e.H||e.G.R(Math.max(3,e.H-t,et(e.K)))}function pp(e,t,n){t=t||{contentType:"",mimeType:"",codecs:"",emsgSchemeIdUris:[],frameRate:void 0,pixelAspectRatio:void 0,nd:null,audioSamplingRate:null,$b:0},n=n||t.Pa;for(var i=Vd(e,"BaseURL"),r=i.map(Kd),a=e.getAttribute("contentType")||t.contentType,o=e.getAttribute("mimeType")||t.mimeType,s=e.getAttribute("codecs")||t.codecs,l=Wd(e,"frameRate",nu)||t.frameRate,d=e.getAttribute("sar")||t.pixelAspectRatio,u=Vd(e,"InbandEventStream"),p=t.emsgSchemeIdUris.slice(),h=(u=c(u)).next();!h.done;h=u.next())h=h.value.getAttribute("schemeIdUri"),p.includes(h)||p.push(h);u=function(e){for(var t=(e=c(e)).next();!t.done;t=e.next()){var n=t.value;if((t=n.getAttribute("schemeIdUri"))&&(n=n.getAttribute("value")))switch(t){case"urn:mpeg:dash:outputChannelPositionList:2012":return n.trim().split(/ +/).length;
2case"urn:mpeg:dash:23003:3:audio_channel_configuration:2011":case"urn:dts:dash:audio_channel_configuration:2012":if(!(t=parseInt(n,10)))continue;return t;case"tag:dolby.com,2014:dash:audio_channel_configuration:2011":case"urn:dolby:dash:audio_channel_configuration:2011":if(!(t=parseInt(n,16)))continue;for(e=0;t;)1&t&&++e,t>>=1;return e;case"urn:mpeg:mpegB:cicp:ChannelConfiguration":if(t=[0,1,2,3,4,5,6,8,2,3,4,7,8,24,8,12,10,12,14,12,14],(n=parseInt(n,10))&&0<n&&n<t.length)return t[n]}}return null}(u=Vd(e,"AudioChannelConfiguration"))||t.nd,h=Wd(e,"audioSamplingRate",eu)||t.audioSamplingRate,a||(a=gp(o,s));var m=Ud(e,"SegmentBase"),g=Ud(e,"SegmentTemplate"),f=m&&Wd(m,"availabilityTimeOffset",tu)||0,v=g&&Wd(g,"availabilityTimeOffset",tu)||0;return i=i&&i.length&&Wd(i[0],"availabilityTimeOffset",tu)||0,i=t.$b+i+f+v,{Pa:je(n,r),Nc:m||t.Nc,Fb:Ud(e,"SegmentList")||t.Fb,Oc:g||t.Oc,width:Wd(e,"width",eu)||t.width,height:Wd(e,"height",eu)||t.height,contentType:a,mimeType:o,codecs:s,frameRate:l,pixelAspectRatio:d,emsgSchemeIdUris:p,id:e.getAttribute("id"),nd:u,audioSamplingRate:h,$b:i}}function hp(e,t,n,i){var r,a,o,s,l,c;return P((function(d){if(1==d.g)return r=je(t,[n]),(a=Ci(r,e.g.retryParameters)).method=i,o=e.h.networkingEngine.request(4,a),Si(e.A,o),x(d,o.promise,2);if(s=d.h,"HEAD"==i){if(!s.headers||!s.headers.date)return d.return(0);l=s.headers.date}else l=Bt(s.data);return c=Date.parse(l),isNaN(c)?d.return(0):d.return(c-Date.now())}))}function mp(e,t,n,i,r){for(var a=i.getAttribute("schemeIdUri")||"",o=i.getAttribute("value")||"",s=Wd(i,"timescale",eu)||1,l=(i=c(Vd(i,"Event"))).next();!l.done;l=i.next()){var d=Wd(l=l.value,"presentationTime",eu)||0,u=Wd(l,"duration",eu)||0;u=(d=d/s+t)+u/s,null!=n&&(d=Math.min(d,t+n),u=Math.min(u,t+n)),u<r||(l={schemeIdUri:a,value:o,startTime:d,endTime:u,id:l.getAttribute("id")||"",eventElement:l},e.h.onTimelineRegionAdded(l))}}function gp(e,t){return ln(nn(e,t))?De:e.split("/")[0]}function fp(e,t,n,i){this.g=e,this.type=t,this.ba=n,this.segments=i||null}function vp(e,t,n,i){this.id=e,this.name=t,this.g=n,this.value=void 0===i?null:i}function bp(e,t,n){return(e=e.getAttribute(t))?e.value:n||null}function yp(e,t){var n=e.getAttribute(t);if(!n)throw new xe(2,4,4023,t);return n.value}function xp(e,t,n){n=void 0===n?[]:n,this.ba=t,this.g=e,this.h=n}function wp(e,t){this.name=e,this.value=t}function kp(e,t){return e.filter((function(e){return e.name==t}))}function Ap(e,t){return e.filter((function(e){return yp(e,"TYPE")==t}))}function Tp(e,t){var n=kp(e,t);return n.length?n[0]:null}function Sp(e){var t=0;return t=void 0===t?0:t,(e=Tp(e,"EXT-X-MEDIA-SEQUENCE"))?Number(e.value):t}function Ep(e){this.h=e,this.g=0}function Ip(e){Cp(e,/[ \t]+/gm)}function Cp(e,t){t.lastIndex=e.g;var n=t.exec(e.h);return n=null==n?null:{position:n.index,length:n[0].length,results:n},e.g==e.h.length||null==n||n.position!=e.g?null:(e.g+=n.length,n.results)}function _p(e){return e.g==e.h.length?null:(e=Cp(e,/[^ \t\n]*/gm))?e[0]:null}function jp(){this.g=0}function Np(e,t,n){var i=(t=(t=Bt(t)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(i[0]))throw new xe(2,4,4015);t=0;for(var r=!0,a=c(i),o=a.next();!o.done;o=a.next())if(o=o.value,/^#(?!EXT)/m.test(o)||r)r=!1;else{if(o=Lp(e.g++,o),--e.g,Pp.includes(o.name)){t=1;break}"EXT-X-STREAM-INF"==o.name&&(r=!0)}a=[],r=!0;for(var s=(o=c(re(i))).next();!s.done;s=o.next()){var l=s.value;s=l.ra;var d=l.item;if(l=l.next,/^#(?!EXT)/m.test(d)||r)r=!1;else{if(d=Lp(e.g++,d),Dp.includes(d.name)){if(1!=t)throw new xe(2,4,4017);l=i.splice(s,i.length-s),i=n,r=[],o=[],s=[],d=null;for(var u=(l=c(l)).next();!u.done;u=l.next())u=u.value,/^(#EXT)/.test(u)?(u=Lp(e.g++,u),Pp.includes(u.name)?a.push(u):"EXT-X-MAP"==u.name?d=u:"EXT-X-PART"==u.name?s.push(u):"EXT-X-PRELOAD-HINT"==u.name?"PART"==bp(u,"TYPE")?s.push(u):"MAP"==bp(u,"TYPE")&&(u.name="EXT-X-MAP",d=u):o.push(u)):/^#(?!EXT)/m.test(u)||(u=je([i],[u.trim()])[0],d&&o.push(d),r.push(new xp(u,o,s)),o=[],s=[]);return s.length&&(d&&o.push(d),r.push(new xp("",o,s))),new fp(n,t,a,r)}a.push(d),"EXT-X-STREAM-INF"==d.name&&(d.g.push(new wp("URI",l)),r=!0)}}return new fp(n,t,a)}function Lp(e,t){var n=t.match(/^#(EXT[^:]*)(?::(.*))?$/);if(!n)throw new xe(2,4,4016,t);var i,r=n[1],a=n[2];if(n=[],a){var o;(o=Cp(a=new Ep(a),/^([^,=]+)(?:,|$)/g))&&(i=o[1]);
2for(var s=/([^=]+)=(?:"([^"]*)"|([^",]*))(?:,|$)/g;o=Cp(a,s);)n.push(new wp(o[1],o[2]||o[3])),Ip(a)}return new vp(e,r,n,i)}(i=op.prototype).configure=function(e){this.g=e},i.start=function(e,t){var n,i=this;return P((function(r){if(1==r.g)return i.F=t.isLowLatencyMode(),i.m=[e],i.h=t,x(r,sp(i),2);if(n=r.h,i.h&&up(i,n),!i.h)throw new xe(2,7,7001);return r.return(i.i)}))},i.stop=function(){for(var e=c(Object.values(this.l)),t=e.next();!t.done;t=e.next())(t=t.value).segmentIndex&&t.segmentIndex.release();return this.j&&this.j.release(),this.g=this.h=null,this.m=[],this.i=null,this.l={},this.j=null,null!=this.G&&(this.G.stop(),this.G=null),this.A.destroy()},i.update=function(){var e,t=this;return P((function(n){return 1==n.g?(k(n,2),x(n,sp(t),4)):2!=n.g?T(n,0):(e=S(n),t.h&&e?(t.h.onError(e),void w(n)):n.return())}))},i.onExpirationUpdated=function(){},F("shaka.dash.DashParser",op),wr.mpd=function(){return new op},xr["application/dash+xml"]=function(){return new op},xr["video/vnd.mpeg.dash.mpd"]=function(){return new op},vp.prototype.toString=function(){var e="#"+this.name,t=this.g?this.g.map((function(e){return e.name+"="+(isNaN(Number(e.value))?'"'+e.value+'"':e.value)})):[];return this.value&&t.unshift(this.value),0<t.length&&(e+=":"+t.join(",")),e},vp.prototype.getAttribute=function(e){var t=this.g.filter((function(t){return t.name==e}));return t.length?t[0]:null};var Pp="EXT-X-TARGETDURATION EXT-X-MEDIA-SEQUENCE EXT-X-DISCONTINUITY-SEQUENCE EXT-X-PLAYLIST-TYPE EXT-X-I-FRAMES-ONLY EXT-X-ENDLIST EXT-X-SERVER-CONTROL EXT-X-SKIP".split(" "),Dp="EXTINF EXT-X-BYTERANGE EXT-X-DISCONTINUITY EXT-X-PROGRAM-DATE-TIME EXT-X-KEY EXT-X-DATERANGE EXT-X-MAP".split(" ");function Mp(){}function Op(e){try{var t=Rp(e);return yi({uri:e,qf:e,data:t.data,headers:{"content-type":t.contentType}})}catch(e){return vi(e)}}function Rp(t){var n=t.split(":");if(2>n.length||"data"!=n[0])throw new xe(2,1,1004,t);if(2>(n=n.slice(1).join(":").split(",")).length)throw new xe(2,1,1004,t);var i=n[0];t=e.decodeURIComponent(n.slice(1).join(",")),n=i.split(";"),i=n[0];var r=!1;return 1<n.length&&"base64"==n[n.length-1]&&(r=!0,n.pop()),{data:r?Wt(t):Vt(t),contentType:i}}function zp(){var e=this;this.h=this.j=null,this.ea=1,this.A=new Map,this.C=new Map,this.aa=new Set,this.g=new Map,this.i=null,this.M="",this.W=new jp,this.xa=0,this.F=new mn((function(){!function(e){var t,n;P((function(i){return 1==i.g?e.j?(k(i,2),x(i,e.update(),4)):i.return():2!=i.g?(t=e.xa,e.F.R(t),T(i,0)):(n=S(i),e.j?(n.severity=1,e.j.onError(n),e.F.R(.1),void w(i)):i.return())}))}(e)})),this.l=nh,this.J=null,this.$=0,this.H=1/0,this.S=this.wa=0,this.G=new Ti,this.N=[],this.K=new Map,this.ha=!1,this.B=new Map,this.X=new Map,this.m=!1}function Bp(e,t){var n,i,r,a,o,s,l,c,d,u,p,h;return P((function(m){if(1==m.g)return n=ah,i=t.If,r=new oe(i),e.m&&t.Nf&&ce(r,new be("_HLS_skip=YES")),x(m,Jp(e,r.toString()),2);if(a=m.h,1!=(o=Np(e.W,a.data,a.uri)).type)throw new xe(2,4,4017);s=kp(o.ba,"EXT-X-DEFINE"),l=Up(e,s),c=t.stream,d=Xp(e,o,c.type,t.mf,l),c.segmentIndex.jc(d,e.i.qb()),d.length&&(u=Sp(o.ba),p=t.mf.get(u),c.segmentIndex.Ib(p)),h=d[d.length-1],Tp(o.ba,"EXT-X-ENDLIST")&&(Zp(e,n.Hf),e.i.eb(h.endTime)),w(m)}))}function Up(e,t){for(var n=new Map,i=c(t),r=i.next();!r.done;r=i.next()){var a=r.value;r=bp(a,"NAME");var o=bp(a,"VALUE");a=bp(a,"IMPORT"),r&&o&&n.set(r,o),a&&(r=e.A.get(a))&&n.set(a,r)}return n}function Fp(e,t){var n=[];e.h.disableVideo||n.push(e.h.hls.defaultVideoCodec),e.h.disableAudio||n.push(e.h.hls.defaultAudioCodec);var i=bp(t,"CODECS",n.join(",")).split(/\s*,\s*/);n=new Set;for(var r=[],a=(i=c(i)).next();!a.done;a=i.next()){var o=an(a=a.value);
2n.has(o)||(r.push(a),n.add(o))}return r}function Vp(e){return Fe(e=bp(e,"LANGUAGE")||"und")}function qp(e,t){var n,i,r,a,o,s,l,c,d,u,p,h,m;return P((function(g){if(1==g.g){n=yp(t,"GROUP-ID"),i="";var f=yp(t,"TYPE").toLowerCase();return"subtitles"==f&&(f=De),(r=f)!=De&&n&&e.B.has(n)&&(i=e.B.get(n)),a=Yp(yp(t,"URI"),e.A),e.g.has(a)?g.return(e.g.get(a)):(o=Vp(t),s=bp(t,"NAME"),l=bp(t,"DEFAULT"),c="YES"==l,f="audio"==r&&(f=bp(t,"CHANNELS"))?parseInt(f.split("/")[0],10):null,d=f,f="audio"==r&&(!!(f=bp(t,"CHANNELS"))&&f.includes("/JOC")),u=f,p=bp(t,"CHARACTERISTICS"),h=bp(t,"FORCED"),x(g,Hp(e,a,i,r,o,c,s,d,null,p,"YES"==h,u),2))}return m=g.h,e.C.has(n)?e.C.get(n).push(m):e.C.set(n,[m]),null==m?g.return(null):e.g.has(a)?g.return(e.g.get(a)):(e.g.set(a,m),g.return(m))}))}function Hp(e,t,n,i,r,a,o,s,l,u,p,h){var m,g,f,v,b,y,w,k,A,T,S,E,I,C,_,j,N,L,D,M,O,R,z,B,U,F,V,q,H,G,$,W,X,Y,J,Z,Q;return P((function(ee){if(1==ee.g)return m=je([e.M],[t])[0],x(ee,Jp(e,m),2);if(3!=ee.g){if(g=ee.h,m=g.uri,1!=(f=Np(e.W,g.data,m)).type)throw new xe(2,4,4017);return v=kp(f.ba,"EXT-X-DEFINE"),b=Up(e,v),function(e,t){var n=Tp(t.ba,"EXT-X-PLAYLIST-TYPE"),i=Tp(t.ba,"EXT-X-ENDLIST");if(i=n&&"VOD"==n.value||i,n=n&&"EVENT"==n.value&&!i,n=!i&&!n,i)Zp(e,nh);else{if(Zp(e,n?rh:ih),!(i=Tp(t.ba,"EXT-X-TARGETDURATION")))throw new xe(2,4,4024,"EXT-X-TARGETDURATION");i=Number(i.value),n=Tp(t.ba,"EXT-X-PART-INF"),e.m&&n?(e.wa=Number(yp(n,"PART-TARGET")),e.H=Math.min(e.wa,e.H),n=Tp(t.ba,"EXT-X-SERVER-CONTROL"),e.S=n?Number(yp(n,"PART-HOLD-BACK")):0):e.H=Math.min(i,e.H),e.$=Math.max(i,e.$)}}(e,f),x(ee,function(e,t,n,i,r){var a,o,s,l,c,d,u,p,h,m,g;return P((function(f){return 1==f.g?(a=Me,o=Li,s=Yp(i.segments[0].g,r),l=new oe(s),c=l.Ka.split(".").pop(),d=eh[t],(u=d[c])?f.return(u):t==a.ma?n&&"vtt"!=n&&"wvtt"!=n?f.return("application/mp4"):f.return("text/vtt"):t!=a.xc||n&&"jpeg"!=n?((p=Ci([s],e.h.retryParameters)).method="HEAD",x(f,Qp(e,p,o),2)):f.return("image/jpeg")):(h=f.h,(m=h.headers["content-type"])?f.return(m.split(";")[0]):(g=d.mp4,f.return(g)))}))}(e,i,n,f,b),3)}if(y=ee.h,w=[],f.segments)for(k=c(f.segments),A=k.next();!A.done;A=k.next())T=A.value,S=kp(T.ba,"EXT-X-KEY"),w.push.apply(w,d(S));for(E=!1,I=[],C=new Set,_=c(w),j=_.next();!j.done;j=_.next())if(N=j.value,"NONE"!=(L=yp(N,"METHOD"))){if(E=!0,"AES-128"==L)return e.ha=!0,ee.return(null);if(D=yp(N,"KEYFORMAT"),O=(M=th[D])?M(N,y):null){if(O.keyIds)for(R=c(O.keyIds),z=R.next();!z.done;z=R.next())B=z.value,C.add(B);I.push(O)}}if(E&&!I.length)throw new xe(2,4,4026);ho.includes(y)&&(n=""),U=new Map;try{F=Xp(e,f,i,U,b)}catch(e){if(4035==e.code)return K("Skipping unsupported HLS stream",y,t),ee.return(null);throw e}if(V=F[0].startTime,q=F[F.length-1].endTime,H=new Oo(F),G=i==De?"subtitle":void 0,$=[],u)for(W=c(u.split(",")),X=W.next();!X.done;X=W.next())Y=X.value,$.push(Y);return Z=!!(J=Tp(f.ba,"EXT-X-SERVER-CONTROL"))&&null!=J.getAttribute("CAN-SKIP-UNTIL"),Q={id:e.ea++,originalId:o,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:H,mimeType:y,codecs:n,kind:G,encrypted:E,drmInfos:I,keyIds:C,language:r,label:o,type:i,primary:a,trickModeVideo:null,emsgSchemeIdUris:null,frameRate:void 0,pixelAspectRatio:void 0,width:void 0,height:void 0,bandwidth:void 0,roles:$,forced:p,channelsCount:s,audioSamplingRate:null,spatialAudio:h,closedCaptions:l,hdr:void 0,tilesLayout:void 0},ee.return({stream:Q,Ke:t,If:m,nf:V,Jg:q,mf:U,Nf:Z})}))}function Gp(e,t){var n=0,i=null,r=bp(t,"BYTERANGE");return r&&(n=r.split("@"),i=Number(n[0]),i=(n=Number(n[1]))+i-1),new mo((function(){return[e]}),n,i)}function Kp(e,t,n,i,r,a,o,s){var l=i.ba,d=Yp(i.g,a),u=Tp(l,"EXTINF"),p=a=0,h=null;i.h.length&&!e.m&&K("Low-latency HLS live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.");var m=[];if(e.m&&i.h.length){e={};for(var g=(i=c(re(i.h))).next();!g.done;e={Gd:e.Gd},g=i.next()){var f=(g=g.value).ra;g=g.item;var v=0==f?n:m[m.length-1];f=0==f?r:v.endTime;var b=Number(bp(g,"DURATION"));b=f+b;var y=0,x=null;
2"EXT-X-PRELOAD-HINT"==g.name?y=(v=bp(g,"BYTERANGE-START"))?Number(v):0:(y=(v=c($p(v,y=bp(g,"BYTERANGE")))).next().value,x=v.next().value),g=bp(g,"URI"),e.Gd=je([o],[g])[0],m.push(new go(f,b,function(e){return function(){return[e.Gd]}}(e),y,x,t,0,0,1/0))}}else if(!u)throw new xe(2,4,4024,"EXTINF");return a=u?r+Number(u.value.split(",")[0]):m[m.length-1].endTime,(o=Tp(l,"EXT-X-BYTERANGE"))?(p=(h=c($p(n,o.value))).next().value,h=h.next().value):m.length&&(p=m[0].Ua,h=m[m.length-1].Ca),n="",o=null,"image"==s&&(n="1x1",s=Tp(l,"EXT-X-TILES"))&&(n=yp(s,"LAYOUT"),(s=bp(s,"DURATION"))&&(o=Number(s))),new go(r,a,(function(){return d.length?[d]:[]}),p,h,t,0,0,1/0,m,n,o)}function $p(e,t){var n=0,i=null;return t&&(n=t.split("@"),i=Number(n[0]),i=(n=n[1]?Number(n[1]):e.Ca+1)+i-1),[n,i]}function Wp(e){if(e.i){for(var t=c(e.N),n=t.next();!n.done;n=t.next())e.i.kc(n.value);e.N=[]}}function Xp(e,t,n,i,r){var a=t.segments,o=Sp(t.ba),s=Tp(t.ba,"EXT-X-SKIP"),l=o+(s=s?Number(bp(s,"SKIPPED-SEGMENTS")):0),d=0;e.l!=nh&&i.has(l)&&(d=i.get(l)),a[0].g.split("/").pop();for(var u=[],p=(a=c(re(a))).next();!p.done;p=a.next()){l=(p=p.value).ra,p=p.item;var h=u[u.length-1],m=0==l?d:h.endTime;l=o+s+l,i.set(l,m),l=e;var g=t.g,f=r,v=Tp(p.ba,"EXT-X-MAP");if(v)g=[f=Yp(je([g],[yp(v,"URI")])[0],f),bp(v,"BYTERANGE","")].join("-"),l.X.has(g)||(v=Gp(f,v),l.X.set(g,v)),l=l.X.get(g);else l=null;!e.m&&e.j.isAutoLowLatencyMode()&&(e.j.enableLowLatencyMode(),e.m=e.j.isLowLatencyMode()),p=Kp(e,l,h,p,m,r,t.g,n),u.push(p)}return u}function Yp(e,t){var n=String(e).replace(/%7B/g,"{").replace(/%7D/g,"}"),i=n.match(/{\$\w*}/g);if(i)for(var r=(i=c(i)).next();!r.done;r=i.next()){var a=(r=r.value).slice(2,r.length-1),o=t.get(a);if(!o)throw new xe(2,4,4039,a);n=n.replace(r,o)}return n}function Jp(e,t){var n=Ci([t],e.h.retryParameters);return e.j.modifyManifestRequest(n,{format:"h"}),Qp(e,n,0)}function Zp(e,t){e.l=t,e.i&&e.i.Pc(e.l==nh),e.l!=nh||e.F.stop()}function Qp(e,t,n){if(!e.G)throw new xe(2,7,7001);return t=e.j.networkingEngine.request(n,t),Si(e.G,t),t.promise}F("shaka.net.DataUriPlugin",Mp),Mp.parse=Op,Ii("data",Op),(i=zp.prototype).configure=function(e){this.h=e},i.start=function(e,t){var n,i,r=this;return P((function(a){return 1==a.g?(r.j=t,r.m=t.isLowLatencyMode(),x(a,Jp(r,e),2)):3!=a.g?(n=a.h,r.M=n.uri,x(a,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,T,E,I,C,_,j,N,L,D,M,O,R,z,B,U,F,q,H;return P((function(G){switch(G.g){case 1:if(0!=(n=Np(e.W,t,e.M)).type)throw new xe(2,4,4022);for(i=kp(n.ba,"EXT-X-DEFINE"),function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value;i=bp(r,"NAME"),r=bp(r,"VALUE"),i&&r&&(e.A.has(i)||e.A.set(i,r))}}(e,i),r=kp(n.ba,"EXT-X-MEDIA"),a=kp(n.ba,"EXT-X-STREAM-INF"),o=kp(n.ba,"EXT-X-IMAGE-STREAM-INF"),function(e,t){for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value,a=bp(r,"AUDIO");i=bp(r,"VIDEO");var o=bp(r,"SUBTITLES");if(r=Fp(e,r),o){var s=Pe(De,r);e.B.set(o,s),it(r,s)}a&&(o=Le("audio",r),e.B.set(a,o)),i&&(a=Le("video",r),e.B.set(i,a))}}(e,a),s=kp(n.ba,"EXT-X-SESSION-DATA"),l=c(s),d=l.next();!d.done;d=l.next())u=d.value,p=bp(u,"DATA-ID"),h=bp(u,"URI"),m=bp(u,"LANGUAGE"),g=bp(u,"VALUE"),f=(new Map).set("id",p),h&&f.set("uri",je([e.M],[h])[0]),m&&f.set("language",m),g&&f.set("value",g),v=new V("sessiondata",f),e.j&&e.j.onEvent(v);return x(G,function(e,t){var n;return P((function(i){return 1==i.g?(t=t.filter((function(e){var t=bp(e,"URI")||"";return"SUBTITLES"!=bp(e,"TYPE")&&""!=t})),t.length?x(i,qp(e,t[0]),2):i.D(2)):(n=t.slice(1).map((function(t){return qp(e,t)})),x(i,Promise.all(n),0))}))}(e,r),2);case 2:return function(e,t){for(var n=Ap(t,"CLOSED-CAPTIONS"),i=(n=c(n)).next();!i.done;i=n.next()){var r=i.value;i=Vp(r);var a=yp(r,"GROUP-ID");r=yp(r,"INSTREAM-ID"),e.K.get(a)||e.K.set(a,new Map),e.K.get(a).set(r,i)}}(e,r),x(G,function(e,t){var n,i,r;return P((function(a){return 1==a.g?(n=t.map((function(t){var n,i,r,a,o,s,l,d;return P((function(u){if(1==u.g)return n=bp(t,"FRAME-RATE"),i=Number(bp(t,"AVERAGE-BANDWIDTH"))||Number(yp(t,"BANDWIDTH")),r=bp(t,"RESOLUTION"),a=c(r?r.split("x"):[null,null]),o=a.next().value,s=a.next().value,l=bp(t,"VIDEO-RANGE"),x(u,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f;return P((function(v){if(1==v.g)return n=Me,i=Fp(e,t),r=bp(t,"AUDIO"),a=bp(t,"VIDEO"),s=(o=r||a)&&e.C.has(o)?e.C.get(o):[],l={audio:r?s:[],video:a?s:[]},u=!1,p=yp(t,"URI"),h=l.audio.find((function(e){return e&&e.Ke==p})),m=Pe(n.ib,i),(g=Pe(n.Gb,i))&&!m?d=n.Gb:!s.length&&g&&m?(d=n.ib,i=[[m,g].join()]):l.audio.length&&h?(d=n.Gb,u=!0):d=l.video.length?n.Gb:n.ib,u?v.D(2):x(v,function(e,t,n,i){var r,a,o,s;return P((function(l){if(1==l.g){if(r=Yp(yp(t,"URI"),e.A),e.g.has(r))return l.return(e.g.get(r));var c=bp(t,"CLOSED-CAPTIONS");return a="video"==i&&c&&"NONE"!=c?e.K.get(c):null,o=Le(i,n),x(l,Hp(e,r,o,i,"und",!1,null,null,a,null,!1,!1),2)}return null==(s=l.h)?l.return(null):e.g.has(r)?l.return(e.g.get(r)):(e.g.set(r,s),l.return(s))}))}(e,t,i,d),3);if(2!=v.g&&(f=v.h),f)l[f.stream.type]=[f];else if(null===f)return v.return(null);return function(e){for(var t=(e=c(e.audio.concat(e.video))).next();!t.done;t=e.next())if(t=t.value){var n=t.stream.codecs.split(",");n=n.filter((function(e){return"mp4a.40.34"!=e})),t.stream.codecs=n.join(",")}}(l),v.return(l)}))}(e,t),2);if(d=u.h){for(var p=u.return,h=d.audio,m=d.video,g=c(m),f=g.next();!f.done;f=g.next())(f=f.value.stream)&&(f.width=Number(o)||void 0,f.height=Number(s)||void 0,f.frameRate=Number(n)||void 0,f.hdr=l||void 0);for(g=e.h.disableAudio,h.length&&!g||(h=[null]),g=e.h.disableVideo,m.length&&!g||(m=[null]),g=[],f=(h=c(h)).next();!f.done;f=h.next()){f=f.value;for(var v=c(m),b=v.next();!b.done;b=v.next()){var y=b.value;b=f?f.stream:null;var w=y?y.stream:null,k=f?f.stream.drmInfos:null,A=y?y.stream.drmInfos:null;y=(y?y.Ke:"")+" - "+(f?f.Ke:""),b&&w&&k.length&&A.length&&!(0<sr(k,A).length)||e.aa.has(y)||(b={id:e.ea++,language:b?b.language:"und",primary:!!b&&b.primary||!!w&&w.primary,audio:b,video:w,bandwidth:i,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]}
2,g.push(b),e.aa.add(y))}}u=p.call(u,g)}else u=u.return([]);return u}))})),x(a,Promise.all(n),2)):(i=a.h,r=(r=i.reduce(Ee,[])).filter((function(e){return null!=e})),a.return(r))}))}(e,a),3);case 3:return b=G.h,x(G,function(e,t){var n,i,r,a,o,s,l,d,u,p,h;return P((function(m){if(1==m.g)return n=Ap(t,"SUBTITLES"),i=n.map((function(t){var n,i;return P((function(r){if(1==r.g)return e.h.disableText?r.return(null):(k(r,2),x(r,qp(e,t),4));if(2!=r.g)return n=r.h,r.return(n.stream);if(i=S(r),e.h.hls.ignoreTextStreamFailures)return r.return(null);throw i}))})),x(m,Promise.all(i),2);for(r=m.h,a=c(n),o=a.next();!o.done;o=a.next())if(s=o.value,l=yp(s,"GROUP-ID"),(d=e.B.get(l))&&(u=e.C.get(l)))for(p=c(u),h=p.next();!h.done;h=p.next())h.value.stream.codecs=d;return m.return(r.filter((function(e){return e})))}))}(e,r),4);case 4:return y=G.h,x(G,function(e,t){var n,i;return P((function(r){return 1==r.g?(n=t.map((function(t){var n,i;return P((function(r){if(1==r.g)return e.h.disableThumbnails?r.return(null):(k(r,2),x(r,function(e,t){var n,i,r,a,o,s,l,c,d,u;return P((function(p){return 1==p.g?(n=Yp(yp(t,"URI"),e.A),i=bp(t,"CODECS","jpeg")||"",e.g.has(n)?p.return(e.g.get(n)):(r=Vp(t),a=bp(t,"NAME"),o=bp(t,"CHARACTERISTICS"),x(p,Hp(e,n,i,"image",r,!1,a,null,
2null,o,!1,!1),2))):null==(s=p.h)?p.return(null):e.g.has(n)?p.return(e.g.get(n)):((l=bp(t,"RESOLUTION"))&&(c=s.stream.segmentIndex.get(0),(d=c.tilesLayout)&&(s.stream.width=Number(l.split("x")[0])*Number(d.split("x")[0]),s.stream.height=Number(l.split("x")[1])*Number(d.split("x")[1]))),(u=bp(t,"BANDWIDTH"))&&(s.stream.bandwidth=Number(u)),e.g.set(n,s),p.return(s))}))}(e,t),4));if(2!=r.g)return n=r.h,r.return(n.stream);if(i=S(r),e.h.hls.ignoreImageStreamFailures)return r.return(null);throw i}))})),x(r,Promise.all(n),2)):(i=r.h,r.return(i.filter((function(e){return e}))))}))}(e,o),5);case 5:if(A=G.h,!e.j)throw new xe(2,7,7001);if(e.ha&&0==b.length)throw new xe(2,4,4034);for(E=T=1/0,I=c(e.g.values()),C=I.next();!C.done;C=I.next())_=C.value,T=Math.min(T,_.nf),"text"!=_.stream.type&&(E=Math.min(E,_.Jg-_.nf));if(e.l!=nh?(e.i=new fo(0,e.h.defaultPresentationDelay?e.h.defaultPresentationDelay:e.S?e.S:3*e.$),e.i.Pc(!1)):(e.i=new fo(null,0),e.i.Pc(!0)),Wp(e),e.l!=nh)e.xa=e.H,j=ah,e.l==j.Me&&(N=e.i.sd,isNaN(e.h.availabilityWindowOverride)||(N=e.h.availabilityWindowOverride),e.i.ye(N));else for(e.i.eb(E),e.i.offset(-T),L=c(e.g.values()),C=L.next();!C.done;C=L.next())(D=C.value).stream.segmentIndex.offset(-T),D.stream.segmentIndex.Ab(0,E);for(e.N=[],M=[],O=c(b),R=O.next();!R.done;R=O.next())for(z=R.value,B=c([z.video,z.audio]),U=B.next();!U.done;U=B.next())(F=U.value)&&M.push(F);return x(G,Promise.all(M.map((function(e){return P((function(t){return x(t,e.createSegmentIndex(),0)}))}))),6);case 6:for(q=c(M),U=q.next();!U.done;U=q.next())H=U.value,e.N.push(H.segmentIndex.O);Wp(e),e.J={presentationTimeline:e.i,variants:b,textStreams:y,imageStreams:A,offlineSessionIds:[],minBufferTime:0,sequenceMode:!0},e.j.makeTextStreamsForClosedCaptions(e.J),w(G)}}))}(r,n.data),3)):(0<(i=r.xa)&&r.F.R(i),a.return(r.J))}))},i.stop=function(){this.F&&(this.F.stop(),this.F=null);var e=[];return this.G&&(e.push(this.G.destroy()),this.G=null),this.h=this.j=null,this.aa.clear(),this.J=null,this.g.clear(),this.C.clear(),this.B.clear(),this.A.clear(),Promise.all(e)},i.update=function(){var e,t,n,i=this;return P((function(r){if(1==r.g)return i.l==nh?r.return():(e=[],(t=Array.from(i.g.values())).length?x(r,Bp(i,t[0]),2):r.D(2));for(n=1;n<t.length;n++)e.push(Bp(i,t[n]));return x(r,Promise.all(e),0)}))},i.onExpirationUpdated=function(){},F("shaka.hls.HlsParser",zp);var eh={audio:{mp4:"audio/mp4",mp4a:"audio/mp4",m4s:"audio/mp4",m4i:"audio/mp4",m4a:"audio/mp4",m4f:"audio/mp4",cmfa:"audio/mp4",ts:"video/mp2t",aac:"audio/aac",ac3:"audio/ac3",ec3:"audio/ec3",mp3:"audio/mpeg"},video:{mp4:"video/mp4",mp4v:"video/mp4",m4s:"video/mp4",m4i:"video/mp4",m4v:"video/mp4",m4f:"video/mp4",cmfv:"video/mp4",ts:"video/mp2t"},text:{mp4:"application/mp4",m4s:"application/mp4",m4i:"application/mp4",m4f:"application/mp4",cmft:"application/mp4",vtt:"text/vtt",ttml:"application/ttml+xml"},image:{jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",webp:"image/webp",avif:"image/avif"}},th={"com.apple.streamingkeydelivery":function(t,n){if("video/mp2t"==n)throw new xe(2,4,4040);if(e.shakaMediaKeysPolyfill)throw new xe(2,4,4041);return Ne("com.apple.fps",[{initDataType:"sinf",initData:new Uint8Array(0)}])},"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":function(e){var t=yp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?(t=Ne("com.widevine.alpha",[{initDataType:"cenc",initData:t=jt((t=Rp(t=yp(e,"URI"))).data)}]),(e=bp(e,"KEYID"))&&(t.keyIds=new Set([e.toLowerCase().substr(2)])),t):null},"com.microsoft.playready":function(e){var t=yp(e,"METHOD");return["SAMPLE-AES","SAMPLE-AES-CTR"].includes(t)?Ne("com.microsoft.playready",[{initDataType:"cenc",initData:e=Bd(e=jt((e=Rp(e=yp(e,"URI"))).data),t=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]))}]):null}},nh="VOD",ih="EVENT",rh="LIVE",ah={Hf:nh,Fh:ih,Me:rh};function oh(e,t,n,i,r,a){if(200<=n&&299>=n&&202!=n)return{uri:r||i,qf:i,data:t,status:n,headers:e,fromCache:!!e["x-shaka-from-cache"]};r=null;try{r=Ft(t)}catch(e){}throw new xe(401==n||403==n?2:1,1,1001,i,n,r,e,a)}function sh(){}function lh(e,t,n,i,r){var a=new mh;
2qi(t.headers).forEach((function(e,t){a.append(t,e)}));var o=new ph,s={Qe:!1,Df:!1};if(e=function(e,t,n,i,r,a,o){var s,l,c,d,u,p,h,m,g,f,v,b;return P((function(y){switch(y.g){case 1:return s=uh,l=hh,p=u=0,h=Date.now(),k(y,2),x(y,s(e,n),4);case 4:return c=y.h,a(ch(c.headers)),m=c.clone().body.getReader(),f=(g=c.headers.get("Content-Length"))?parseInt(g,10):0,new l({start:function(e){function t(){var n,i;return P((function(a){switch(a.g){case 1:return k(a,2),x(a,m.read(),4);case 4:n=a.h,T(a,3);break;case 2:return S(a),a.return();case 3:if(n.done){a.D(5);break}if(u+=n.value.byteLength,!o){a.D(5);break}return x(a,o(n.value),5);case 5:(100<(i=Date.now())-h||n.done)&&(r(i-h,u-p,f-u),p=u,h=i),n.done?e.close():(e.enqueue(n.value),t()),w(a)}}))}t()}}),x(y,c.arrayBuffer(),5);case 5:d=y.h,T(y,3);break;case 2:if(v=S(y),i.Qe)throw new xe(1,1,7001,e,t);if(i.Df)throw new xe(1,1,1003,e,t);throw new xe(1,1,1002,e,v,t);case 3:return b=ch(c.headers),y.return(oh(b,d,c.status,e,c.url,t))}}))}(e,n,{body:t.body||void 0,headers:a,method:t.method,signal:o.signal,credentials:t.allowCrossSiteCredentials?"include":void 0},s,i,r,t.streamDataCallback),e=new fi(e,(function(){return s.Qe=!0,o.abort(),Promise.resolve()})),t=t.retryParameters.timeout){var l=new mn((function(){s.Df=!0,o.abort()}));l.R(t/1e3),e.finally((function(){l.stop()}))}return e}function ch(e){var t={};return e.forEach((function(e,n){t[n.trim()]=e})),t}function dh(){if(!e.ReadableStream)return!1;try{new ReadableStream({})}catch(e){return!1}return!(!e.fetch||!e.AbortController)}xn("Tizen 3")||xn("Tizen 2")||xn("Web0S")&&xn("Chrome/38.0.2125.122 Safari/537.36")||(wr.m3u8=function(){return new zp},xr["application/x-mpegurl"]=function(){return new zp},xr["application/vnd.apple.mpegurl"]=function(){return new zp}),F("shaka.net.HttpFetchPlugin",sh),sh.isSupported=dh,sh.parse=lh;var uh=e.fetch,ph=e.AbortController,hh=e.ReadableStream,mh=e.Headers;function gh(){}function fh(e,t,n,i,r){var a=new bh,o=Date.now(),s=0;return new fi(new Promise((function(l,c){a.open(t.method,e,!0),a.responseType="arraybuffer",a.timeout=t.retryParameters.timeout,a.withCredentials=t.allowCrossSiteCredentials,a.onabort=function(){c(new xe(1,1,7001,e,n))};var d=!1;for(var u in a.onreadystatechange=function(){if(2==a.readyState&&!d){var e=vh(a);r(e),d=!0}},a.onload=function(){var t=vh(a),i=a.response;try{var r=oh(t,i,a.status,e,a.responseURL,n);l(r)}catch(e){c(e)}},a.onerror=function(t){c(new xe(1,1,1002,e,t,n))},a.ontimeout=function(){c(new xe(1,1,1003,e,n))},a.onprogress=function(e){var t=Date.now();(100<t-o||e.lengthComputable&&e.loaded==e.total)&&(i(t-o,e.loaded-s,e.total-e.loaded),s=e.loaded,o=t)},t.headers)a.setRequestHeader(u.toLowerCase(),t.headers[u]);a.send(t.body)})),(function(){return a.abort(),Promise.resolve()}))}function vh(e){var t=e.getAllResponseHeaders().trim().split("\r\n");e={};for(var n=(t=c(t)).next();!n.done;n=t.next())e[(n=n.value.split(": "))[0].toLowerCase()]=n.slice(1).join(": ");return e}dh()&&(Ii("http",lh,2,!0),Ii("https",lh,2,!0),Ii("blob",lh,2,!0)),F("shaka.net.HttpXHRPlugin",gh),gh.parse=fh;var bh=e.XMLHttpRequest;function yh(e,t,n,i){this.g=e,this.i=t,this.groupId=n,this.h=i}function xh(e){return e.Ra().map((function(e){return"{"+encodeURI(e)+"}"})).join("")+":"+e.Ua+":"+e.Ca}function wh(e,t){return Jo(e.g.Ra(),e.g.Ua,e.g.Ca,t.streaming.retryParameters)}function kh(){this.h=this.j=this.i=0,this.g=new Map,this.l=0}function Ah(e,t){e.i+=t;var n=e.l;return e.l++,e.g.set(n,t),n}function Th(e){var t=this;this.A=e,this.h=new Map,this.i=new Mi((function(){return Sh(t).catch((function(){}))})),this.j=[],this.m=function(){},this.l=function(){},this.g=new kh}function Sh(e){var t=e.j.map((function(e){return e()}));return e.j=[],Promise.all(t)}function Eh(e,t,n,i,r,a){Oi(e.i);var o=(e.h.get(t)||Promise.resolve()).then((function(){var t,o,s,l,c,d,u;return P((function(p){if(1==p.g)return x(p,function(e,t){var n,i,r,a;return P((function(o){return 1==o.g?(n=Li,i=e.A.request(n,t),r=function(){return i.abort()},e.j.push(r),x(o,i.promise,2)):(a=o.h,it(e.j,r),o.return(a.data))}))}(e,n),2);if(t=p.h,e.i.g)throw new xe(2,9,7001);if(r)for(l in o=jt(t),(s=new zd(o)).data)c=Number(l),d=s.data[c],u=s.g[c],e.l(d,u);e.g.close(i,t.byteLength);var h=e.g;return e.m(0==h.i?0:h.j/h.i,e.g.h),p.return(a(t))}))}));e.h.set(t,o)}function Ih(e,t,n){Oi(e.i);var i=(e.h.get(t)||Promise.resolve()).then((function(){return P((function(e){return x(e,n(),0)}))}));e.h.set(t,i)}function Ch(e,t){var n=this;this.i=e,this.h=e.objectStore(t),this.g=new Ot,e.onabort=function(e){e.preventDefault(),n.g.reject()},e.onerror=function(e){e.preventDefault(),n.g.reject()},e.oncomplete=function(){n.g.resolve()}}function _h(e,t){return new Promise((function(n,i){var r=e.h.openCursor();r.onerror=i,r.onsuccess=function(){var e;return P((function(i){if(1==i.g)return null==r.result?(n(),i.return()):(e=r.result,x(i,t(e.key,e.value,e),2));e.continue(),w(i)}))}}))}function jh(e){this.h=e,this.g=[]}function Nh(e,t){return Lh(e,t,"readwrite")}
2function Lh(e,t,n){var i=new Ch(n=e.h.transaction([t],n),t);return e.g.push(i),i.promise().then((function(){it(e.g,i)}),(function(){it(e.g,i)})),i}function Ph(e,t,n){this.h=new jh(e),this.i=t,this.g=n}function Dh(e){return Promise.reject(new xe(2,9,9011,"Cannot add new value to "+e))}function Mh(e,t,n,i){t=(e=Nh(e.h,t)).store();for(var r={},a=(n=c(n)).next();!a.done;r={Uc:r.Uc},a=n.next())r.Uc=a.value,t.delete(r.Uc).onsuccess=function(e){return function(){return i(e.Uc)}}(r);return e.promise()}function Oh(e,t,n){var i,r,a,o,s,l,d;return P((function(u){if(1==u.g){for(i=Lh(e.h,t,"readonly"),r=i.store(),a={},o=[],s={},l=c(n),d=l.next();!d.done;s={vc:s.vc,rc:s.rc},d=l.next())s.rc=d.value,s.vc=r.get(s.rc),s.vc.onsuccess=function(e){return function(){null==e.vc.result&&o.push(e.rc),a[e.rc]=e.vc.result}}(s);return x(u,i.promise(),2)}if(o.length)throw new xe(2,9,9012,"Could not find values for "+o);return u.return(n.map((function(e){return a[e]})))}))}function Rh(e){this.g=new jh(e)}function zh(){this.g=new Map}function Bh(e){var t=null;
2if(e.g.forEach((function(e,n){e.getCells().forEach((function(e,i){e.hasFixedKeySpace()||t||(t={path:{Ta:n,na:i},na:e})}))})),t)return t;throw new xe(2,9,9013,"Could not find a cell that supports add-operations")}function Uh(e,t,n){if(!(e=e.g.get(t)))throw new xe(2,9,9013,"Could not find mechanism with name "+t);if(!(t=e.getCells().get(n)))throw new xe(2,9,9013,"Could not find cell with name "+n);return t}function Fh(e,t){Vh.set(e,t)}Ii("http",fh,1,!0),Ii("https",fh,1,!0),Ii("blob",fh,1,!0),kh.prototype.close=function(e,t){if(this.g.has(e)){var n=this.g.get(e);this.g.delete(e),this.j+=n,this.h+=t}},Th.prototype.destroy=function(){return this.i.destroy()},Ch.prototype.abort=function(){var e=this;return P((function(t){if(1==t.g){try{e.i.abort()}catch(e){}return k(t,2),x(t,e.g,4)}if(2!=t.g)return T(t,0);S(t),w(t)}))},Ch.prototype.store=function(){return this.h},Ch.prototype.promise=function(){return this.g},jh.prototype.destroy=function(){return Promise.all(this.g.map((function(e){return e.abort()})))},(i=Ph.prototype).destroy=function(){return this.h.destroy()},i.hasFixedKeySpace=function(){return!0},i.addSegments=function(){return Dh(this.i)},i.removeSegments=function(e,t){return Mh(this,this.i,e,t)},i.getSegments=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,Oh(n,n.i,e),2):(t=i.h,i.return(t.map((function(e){return n.Te(e)}))))}))},i.addManifests=function(){return Dh(this.g)},i.updateManifest=function(){return Promise.reject(new xe(2,9,9016,"Cannot modify values in "+this.g))},i.updateManifestExpiration=function(e,t){var n=Nh(this.h,this.g),i=n.store();return i.get(e).onsuccess=function(n){(n=n.target.result)&&(n.expiration=t,i.put(n,e))},n.promise()},i.removeManifests=function(e,t){return Mh(this,this.g,e,t)},i.getManifests=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,Oh(n,n.g,e),2):(t=i.h,i.return(Promise.all(t.map((function(e){return n.Ac(e)})))))}))},i.getAllManifests=function(){var e,t,n=this;return P((function(i){return 1==i.g?(e=Lh(n.h,n.g,"readonly"),t=new Map,x(i,_h(e,(function(e,i){var r;return P((function(a){if(1==a.g)return x(a,n.Ac(i),2);r=a.h,t.set(e,r),w(a)}))})),2)):3!=i.g?x(i,e.promise(),3):i.return(t)}))},i.Te=function(e){return e},i.Ac=function(e){return Promise.resolve(e)},i.add=function(e,t){var n,i,r,a,o,s,l,d=this;return P((function(u){if(1==u.g){for(n=Nh(d.h,e),i=n.store(),r=[],a={},o=c(t),s=o.next();!s.done;a={Vc:a.Vc},s=o.next())l=s.value,a.Vc=i.add(l),a.Vc.onsuccess=function(e){return function(){r.push(e.Vc.result)}}(a);return x(u,n.promise(),2)}return u.return(r)}))},Rh.prototype.destroy=function(){return this.g.destroy()},Rh.prototype.getAll=function(){var e,t,n=this;return P((function(i){return 1==i.g?(e=Lh(n.g,"session-ids","readonly"),t=[],x(i,_h(e,(function(e,n){t.push(n)})),2)):3!=i.g?x(i,e.promise(),3):i.return(t)}))},Rh.prototype.add=function(e){for(var t=Nh(this.g,"session-ids"),n=t.store(),i=(e=c(e)).next();!i.done;i=e.next())n.add(i.value);return t.promise()},Rh.prototype.remove=function(e){var t,n=this;return P((function(i){return 1==i.g?x(i,_h(t=Nh(n.g,"session-ids"),(function(t,n,i){e.includes(n.sessionId)&&i.delete()})),2):x(i,t.promise(),0)}))},zh.prototype.destroy=function(){for(var e=[],t=c(this.g.values()),n=t.next();!n.done;n=t.next())e.push(n.value.destroy());return this.g.clear(),Promise.all(e)},zh.prototype.init=function(){var e=this;Vh.forEach((function(t,n){var i=t();i&&e.g.set(n,i)}));for(var t=[],n=c(this.g.values()),i=n.next();!i.done;i=n.next())t.push(i.value.init());return Promise.all(t)},F("shaka.offline.StorageMuxer",zh),zh.unregister=function(e){Vh.delete(e)},zh.register=Fh,zh.prototype.destroy=zh.prototype.destroy;var Vh=new Map;function qh(){Ph.apply(this,arguments)}function Hh(e,t){!function(e){var t=e.streams.filter((function(e){return"audio"==e.contentType}));if(e=e.streams.filter((function(e){return"video"==e.contentType})),!t.every((function(e){return e.variantIds}))||!e.every((function(e){return e.variantIds}))){for(var n=c(t),i=n.next();!i.done;i=n.next())i.value.variantIds=[];for(i=(n=c(e)).next();!i.done;i=n.next())i.value.variantIds=[];if(n=0,e.length&&!t.length){var r=n++,a=c(e);for(i=a.next();!i.done;i=a.next())i.value.variantIds.push(r)}if(!e.length&&t.length)for(r=n++,i=(a=c(t)).next();!i.done;i=a.next())i.value.variantIds.push(r);if(e.length&&t.length)for(i=(t=c(t)).next();!i.done;i=t.next())for(i=i.value,a=(r=c(e)).next();!a.done;a=r.next()){a=a.value;var o=n++;i.variantIds.push(o),a.variantIds.push(o)}}}(e);for(var n=c(e.streams),i=n.next();!i.done;i=n.next());return e.streams.map((function(n){return function(e,t,n){var i=e.initSegmentUri?Gh(e.initSegmentUri):null,r=t+e.presentationTimeOffset,a=t+n;return{id:e.id,originalId:null,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:void 0,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,initSegmentKey:i,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(e){var n=Gh(e.uri);return{startTime:t+e.startTime,endTime:t+e.endTime,dataKey:n,initSegmentKey:i,appendWindowStart:t,appendWindowEnd:a,timestampOffset:r,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}(n,e.startTime,t)}))}function Gh(e){var t;if((t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(e))||(t=/^offline:segment\/([0-9]+)$/.exec(e)))return Number(t[1]);throw new xe(2,9,9004,"Could not parse uri "+e)}function Kh(){Ph.apply(this,arguments)}function $h(e,t,n){return{id:e.id,originalId:e.originalId,primary:e.primary,type:e.contentType,mimeType:e.mimeType,codecs:e.codecs,frameRate:e.frameRate,pixelAspectRatio:e.pixelAspectRatio,hdr:void 0,kind:e.kind,language:e.language,label:e.label,width:e.width,height:e.height,encrypted:e.encrypted,keyIds:new Set([e.keyId]),segments:e.segments.map((function(i){return{startTime:t+i.startTime,endTime:t+i.endTime,initSegmentKey:e.initSegmentKey,appendWindowStart:t,appendWindowEnd:n,timestampOffset:t-e.presentationTimeOffset,dataKey:i.dataKey,tilesLayout:""}})),variantIds:e.variantIds,roles:[],forced:!1,audioSamplingRate:null,channelsCount:null,spatialAudio:!1,closedCaptions:null,tilesLayout:void 0}}function Wh(){Ph.apply(this,arguments)}function Xh(){this.m=this.j=this.i=this.h=this.g=this.l=null}function Yh(e,t,n,i){this.g=e,this.i=t,this.h=n,this.l=i,this.j=["offline:",e,"/",t,"/",n,"/",i].join("")}function Jh(e){if(null==(e=/^offline:([a-z]+)\/([^/]+)\/([^/]+)\/([0-9]+)$/.exec(e)))return null;var t=e[1];if("manifest"!=t&&"segment"!=t)return null;var n=e[2];if(!n)return null;var i=e[3];return i&&null!=t?new Yh(t,n,i,Number(e[4])):null}function Zh(e,t){this.h=e,this.g=t}function Qh(e,t){var n=new fo(null,0);n.eb(t.duration);var i=t.streams.filter((function(e){return"audio"==e.type}
2)),r=t.streams.filter((function(e){return"video"==e.type}));i=function(e,t,n,i){for(var r=new Set,a=c(t),o=a.next();!o.done;o=a.next()){var s=c(o.value.variantIds);for(o=s.next();!o.done;o=s.next())r.add(o.value)}for(a=c(n),o=a.next();!o.done;o=a.next())for(s=c(o.value.variantIds),o=s.next();!o.done;o=s.next())r.add(o.value);for(a=new Map,r=c(r),o=r.next();!o.done;o=r.next())o=o.value,a.set(o,{id:o,language:"",primary:!1,audio:null,video:null,bandwidth:0,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]});for(t=c(t),r=t.next();!r.done;r=t.next())for(r=r.value,o=em(e,r,i),s=c(r.variantIds),r=s.next();!r.done;r=s.next())(r=a.get(r.value)).language=o.language,r.primary=r.primary||o.primary,r.audio=o;for(n=c(n),t=n.next();!t.done;t=n.next())for(r=t.value,t=em(e,r,i),o=c(r.variantIds),r=o.next();!r.done;r=o.next())(r=a.get(r.value)).primary=r.primary||t.primary,r.video=t;return a}(e,i,r,n),r=t.streams.filter((function(e){return e.type==De})).map((function(t){return em(e,t,n)}));var a=t.streams.filter((function(e){return"image"==e.type})).map((function(t){return em(e,t,n)})),o=t.drmInfo?[t.drmInfo]:[];if(t.drmInfo)for(var s=c(i.values()),l=s.next();!l.done;l=s.next())(l=l.value).audio&&l.audio.encrypted&&(l.audio.drmInfos=o),l.video&&l.video.encrypted&&(l.video.drmInfos=o);return{presentationTimeline:n,minBufferTime:2,offlineSessionIds:t.sessionIds,variants:Array.from(i.values()),textStreams:r,imageStreams:a,sequenceMode:t.sequenceMode||!1}}function em(e,t,n){var i=t.segments.map((function(t){return function(e,t){var n=new Yh("segment",e.h,e.g,t.dataKey);return new go(t.startTime,t.endTime,(function(){return[n.toString()]}),0,null,null!=t.initSegmentKey?function(e,t){var n=new Yh("segment",e.h,e.g,t);return new mo((function(){return[n.toString()]}),0,null)}(e,t.initSegmentKey):null,t.timestampOffset,t.appendWindowStart,t.appendWindowEnd,[],t.tilesLayout||"")}(e,t)}));return n.kc(i),{id:t.id,originalId:t.originalId,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:new Oo(i),mimeType:t.mimeType,codecs:t.codecs,width:t.width||void 0,height:t.height||void 0,frameRate:t.frameRate,pixelAspectRatio:t.pixelAspectRatio,hdr:t.hdr,kind:t.kind,encrypted:t.encrypted,drmInfos:[],keyIds:t.keyIds,language:t.language,label:t.label,type:t.type,primary:t.primary,trickModeVideo:null,emsgSchemeIdUris:null,roles:t.roles,forced:t.forced,channelsCount:t.channelsCount,audioSamplingRate:t.audioSamplingRate,spatialAudio:t.spatialAudio,closedCaptions:t.closedCaptions,tilesLayout:t.tilesLayout}}function tm(){this.g=null}function nm(){}function im(e){var t=Jh(e);return t&&"manifest"==t.g?e=yi(e={uri:e,qf:e,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}}):e=t&&"segment"==t.g?function(e,t){var n=new zh;return yi(void 0).oa((function(){return n.init()})).oa((function(){return Uh(n,t.Ta(),t.na())})).oa((function(e){return e.getSegments([t.key()])})).oa((function(e){return{uri:t,data:e[0].data,headers:{}}})).finally((function(){return n.destroy()}))}(t.key(),t):vi(new xe(2,1,9004,e)),e}function rm(e,t,n){var i,r,a,o,s,l;return P((function(d){switch(d.g){case 1:i=[];for(var u=[],p=c(n),h=p.next();!h.done;h=p.next()){h=h.value;for(var m=!1,g=c(u),f=g.next();!f.done;f=g.next())if(am((f=f.value).info,h)){f.sessionIds.push(h.sessionId),m=!0;break}m||u.push({info:h,sessionIds:[h.sessionId]})}r=c(u),a=r.next();case 2:if(a.done){d.D(4);break}return o=a.value,s=function(e,t,n){var i,r;return P((function(a){switch(a.g){case 1:return i=new Ki({Qb:t,onError:function(){},pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}}),k(a,2),i.configure(e),x(a,function(e,t,n,i,r,a){var o=new Map;return(r={audioCapabilities:r,videoCapabilities:a,distinctiveIdentifier:"optional",persistentState:"required",sessionTypes:["persistent-license"],label:t}).drmInfos=[{keySystem:t,licenseServerUri:n,distinctiveIdentifierRequired:!1,persistentStateRequired:!0,audioR
2obustness:"",videoRobustness:"",serverCertificate:i,serverCertificateUri:"",initData:null,keyIds:null}],o.set(t,r),tr(e,o,[])}(i,n.info.keySystem,n.info.licenseUri,n.info.serverCertificate,n.info.audioCapabilities,n.info.videoCapabilities),4);case 4:T(a,3);break;case 2:return S(a),x(a,i.destroy(),5);case 5:case 9:return a.return([]);case 3:return k(a,6),x(a,Yi(i),8);case 8:T(a,7);break;case 6:return S(a),x(a,i.destroy(),9);case 7:return r=[],x(a,Promise.all(n.sessionIds.map((function(e){return P((function(t){return 1==t.g?(k(t,2),x(t,function(e,t){var n,i,r;return P((function(a){return 1==a.g?x(a,nr(e,t),2):3!=a.g?(n=a.h)?(i=[],(r=e.i.get(n))&&(r.fb=new Ot,i.push(r.fb)),i.push(n.remove()),x(a,Promise.all(i),3)):a.return():(e.i.delete(n),void w(a))}))}(i,e),4)):2!=t.g?(r.push(e),T(t,0)):(S(t),void w(t))}))}))),10);case 10:return x(a,i.destroy(),11);case 11:return a.return(r)}}))}(e,t,o),x(d,s,5);case 5:l=d.h,i=i.concat(l),a=r.next(),d.D(2);break;case 4:return d.return(i)}}))}function am(e,t){function n(e,t){return e.robustness==t.robustness&&e.contentType==t.contentType}return e.keySystem==t.keySystem&&e.licenseUri==t.licenseUri&&rt(e.audioCapabilities,t.audioCapabilities,n)&&rt(e.videoCapabilities,t.videoCapabilities,n)}function om(e,t){var n=Qh(new Zh(e.Ta(),e.na()),t),i=t.appMetadata||{};return n=sm(n),{offlineUri:e.toString(),originalManifestUri:t.originalManifestUri,duration:t.duration,size:t.size,expiration:t.expiration,tracks:n,appMetadata:i,isIncomplete:t.isIncomplete||!1}}function sm(e){for(var t=[],n=function(e){return e.filter((function(e){return qn(e)}))}(e.variants),i=(n=c(n)).next();!i.done;i=n.next())t.push(On(i.value));for(n=(e=c(e.textStreams)).next();!n.done;n=e.next())t.push(Rn(n.value));return t}function lm(){this.g={}}function cm(e,t){var n=t.audio,i=t.video;
2if(n&&!i&&(e.g[n.id]=n.bandwidth||t.bandwidth),!n&&i&&(e.g[i.id]=i.bandwidth||t.bandwidth),n&&i){var r=n.bandwidth||393216,a=i.bandwidth||t.bandwidth-r;0>=a&&(a=t.bandwidth),e.g[n.id]=r,e.g[i.id]=a}}function dm(e,t){e.g[t.id]=t.bandwidth||2048}function um(e,t){var n=e.g[t];return null==n&&(n=0),n}function pm(){this.h=[],this.g=this.i=0}function hm(e){var t=this;if(e&&e.constructor!=il)throw new xe(2,9,9008);this.g=this.h=null,e?(this.h=e.h,this.g=e.Dc()):(this.h=Xs(),this.g=new Ei),this.i=[],this.j=[];var n=!e;this.l=new Mi((function(){var e,i,r,a,o;return P((function(s){switch(s.g){case 1:return x(s,Promise.all(t.j.map((function(e){return Sh(e)}))),2);case 2:for(e=function(){},i=[],r=c(t.i),a=r.next();!a.done;a=r.next())o=a.value,i.push(o.then(e,e));return x(s,Promise.all(i),3);case 3:if(!n){s.D(4);break}return x(s,t.g.destroy(),4);case 4:t.h=null,t.g=null,w(s)}}))}))}function mm(){if(gn())e:{for(var e=c(Vh.values()),t=e.next();!t.done;t=e.next())if(t=(t=t.value)()){t.destroy(),e=!0;break e}e=!1}else e=!1;return e}function gm(e){var t,n,i;return P((function(r){switch(r.g){case 1:return x(r,(t=new zh).init(),2);case 2:return x(r,Bh(t),3);case 3:return n=r.h,i=new Yh("manifest",n.path.Ta,n.path.na,e),x(r,t.destroy(),4);case 4:return x(r,(new hm).remove(i.toString()),0)}}))}function fm(e,t,n,i){var r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,w,A;return P((function(T){switch(T.g){case 1:return r=new zh,a=xh(t),o=!1,u=0,k(T,2,3),x(T,r.init(),5);case 5:return x(T,Bh(r),6);case 6:return x(T,(l=T.h).na.addSegments([n]),7);case 7:return p=T.h,s=p[0],i(),x(T,function(){var e,t=Im;return P((function(n){return 1==n.g?(e=++t.i,t.g?x(n,new Promise((function(n){t.h.push((function(){t.g=e,n()}))})),2):(t.g=e,n.D(2))):n.return(e)}))}(),8);case 8:return u=T.h,i(),x(T,l.na.getManifests([e]),9);case 9:for(h=T.h,i(),d=h[0],m=!0,g=c(d.streams),f=g.next();!f.done;f=g.next())for(v=f.value,b=c(v.segments),y=b.next();!y.done;y=b.next())(w=y.value).pendingSegmentRefId==a&&(w.dataKey=s,w.pendingSegmentRefId=void 0),w.pendingInitSegmentRefId==a&&(w.initSegmentKey=s,w.pendingInitSegmentRefId=void 0),w.pendingSegmentRefId&&(m=!1),w.pendingInitSegmentRefId&&(m=!1);return d.size+=n.data.byteLength,m&&(d.isIncomplete=!1),x(T,l.na.updateManifest(e,d),10);case 10:o=!0,i();case 3:return E(T),x(T,r.destroy(),11);case 11:Im.release(u),I(T,4);break;case 2:return A=S(T),x(T,gm(e),12);case 12:if(!l||o||!s){T.D(13);break}return x(T,l.na.removeSegments([s],(function(){})),13);case 13:throw A;case 4:return T.return(d)}}))}function vm(e){return e.variants.some((function(e){var t=e.audio&&e.audio.encrypted;return e.video&&e.video.encrypted||t}))}function bm(e){return e.variants.some((function(e){return(e.video?e.video.drmInfos:[]).concat(e.audio?e.audio.drmInfos:[]).some((function(e){return e.initData&&e.initData.length}))}))}function ym(e,t){for(var n=[],i=c(e.streams),r=i.next();!r.done;r=i.next())r=r.value,t&&"video"==r.type?n.push({contentType:nn(r.mimeType,r.codecs),robustness:e.drmInfo.videoRobustness}):t||"audio"!=r.type||n.push({contentType:nn(r.mimeType,r.codecs),robustness:e.drmInfo.audioRobustness});return n}function xm(e,t,n){return P((function(i){return x(i,function(e,t,n,i){var r,a,o;return P((function(s){return 1==s.g?i.drmInfo?(r=function(e){var t=Array.from(e.g.keys());if(!t.length)throw new xe(2,9,9e3,"No supported storage mechanisms found");return e.g.get(t[0]).getEmeSessionCell()}(n),a=i.sessionIds.map((function(e){return{sessionId:e,keySystem:i.drmInfo.keySystem,licenseUri:i.drmInfo.licenseServerUri,serverCertificate:i.drmInfo.serverCertificate,audioCapabilities:ym(i,!1),videoCapabilities:ym(i,!0)}})),x(s,rm(t,e,a),2)):s.return():3!=s.g?(o=s.h,x(s,r.remove(o),3)):x(s,r.add(a.filter((function(e){return!o.includes(e.sessionId)}))),0)}))}(e.g,e.h.drm,n,t),0)}))}function wm(e,t,n){function i(){}var r=function(e){for(var t=new Set,n=(e=c(e.streams)).next();!n.done;n=e.next())for(var i=(n=c(n.value.segments)).next();!i.done;i=n.next())null!=(i=i.value).initSegmentKey&&t.add(i.initSegmentKey),t.add(i.dataKey);return Array.from(t)}(n);return om(t,n),Promise.all([e.removeSegments(r,i),e.removeManifests([t.key()],i)])}function km(e,t,n,i,r){var a={id:i.id,originalId:i.originalId,primary:i.primary,type:i.type,mimeType:i.mimeType,codecs:i.codecs,frameRate:i.frameRate,pixelAspectRatio:i.pixelAspectRatio,hdr:i.hdr,kind:i.kind,language:i.language,label:i.label,width:i.width||null,height:i.height||null,encrypted:i.encrypted,keyIds:i.keyIds,segments:[],variantIds:[],roles:i.roles,forced:i.forced,channelsCount:i.channelsCount,audioSamplingRate:i.audioSamplingRate,spatialAudio:i.spatialAudio,closedCaptions:i.closedCaptions,tilesLayout:i.tilesLayout};return function(e,t,n){if(t=e.segmentIndex.find(t),null!=t)for(var i=e.segmentIndex.get(t);i;)n(i),i=e.segmentIndex.get(++t)}(i,n.presentationTimeline.qb(),(function(n){var o=xh(n),s=void 0;if(!r.has(o)){var l=n.endTime-n.startTime;l=um(t,i.id)*l,l=Ah(e.g,l),r.set(o,new yh(n,l,i.id,!1))}n.g&&(s=xh(n.g),r.has(s)||(l=.5*um(t,i.id),l=Ah(e.g,l),r.set(s,new yh(n.g,l,i.id,!0)))),a.segments.push({pendingInitSegmentRefId:s,initSegmentKey:s?0:null,startTime:n.startTime,endTime:n.endTime,appendWindowStart:n.appendWindowStart,appendWindowEnd:n.appendWindowEnd,timestampOffset:n.timestampOffset,tilesLayout:n.tilesLayout,pendingSegmentRefId:o,dataKey:0})})),a}function Am(e){if(e.l.g)throw new xe(2,9,7001)}function Tm(){if(!mm())throw new xe(2,9,9e3)}function Sm(e,t){return P((function(n){return 1==n.g?(e.i.push(t),A(n),x(n,t,4)):2!=n.g?n.return(n.h):(E(n),it(e.i,t),I(n,0))}))}function Em(e){for(var t=new Set,n=c(e.textStreams),i=n.next();!i.done;i=n.next())t.add(i.value);for(i=(n=c(e.imageStreams)).next();!i.done;i=n.next())t.add(i.value);
2for(n=(e=c(e.variants)).next();!n.done;n=e.next())(n=n.value).audio&&t.add(n.audio),n.video&&t.add(n.video);return t}f(qh,Ph),qh.prototype.updateManifestExpiration=function(e,t){var n,i,r,a=this;return P((function(o){return n=Nh(a.h,a.g),i=n.store(),r=new Ot,i.get(e).onsuccess=function(n){(n=n.target.result)?(n.expiration=t,i.put(n),r.resolve()):r.reject(new xe(2,9,9012,"Could not find values for "+e))},x(o,Promise.all([n.promise(),r]),0)}))},qh.prototype.Ac=function(e){var t,n,i,r,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n)i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,r=i-e.periods[n].startTime,a=Hh(e.periods[n],r),t.push(a);return x(s,Ou(t),2)}return o=s.h,s.return({creationTime:0,originalManifestUri:e.originalManifestUri,duration:e.duration,size:e.size,expiration:null==e.expiration?1/0:e.expiration,streams:o,sessionIds:e.sessionIds,drmInfo:e.drmInfo,appMetadata:e.appMetadata,sequenceMode:!1})}))},qh.prototype.Te=function(e){return{data:e.data}},f(Kh,Ph),Kh.prototype.Ac=function(e){var t,n,i,r,a,o;return P((function(s){if(1==s.g){for(t=[],n=0;n<e.periods.length;++n){i=n==e.periods.length-1?e.duration:e.periods[n+1].startTime,r=i-e.periods[n].startTime;for(var l=e.periods[n],d=[],u=c(l.streams),p=u.next();!p.done;p=u.next())0!=(p=p.value).variantIds.length&&d.push($h(p,l.startTime,l.startTime+r));a=d,t.push(a)}return x(s,Ou(t),2)}return o=s.h,s.return({appMetadata:e.appMetadata,creationTime:0,drmInfo:e.drmInfo,duration:e.duration,expiration:null==e.expiration?1/0:e.expiration,originalManifestUri:e.originalManifestUri,sessionIds:e.sessionIds,size:e.size,streams:o,sequenceMode:!1})}))},f(Wh,Ph),(i=Wh.prototype).hasFixedKeySpace=function(){return!1},i.addSegments=function(e){return this.add(this.i,e)},i.addManifests=function(e){return this.add(this.g,e)},i.updateManifest=function(e,t){return function(e,t,n){var i=(e=Nh(e.h,e.g)).store();return i.get(t).onsuccess=function(){i.put(n,t)},e.promise()}(this,e,t)},i.Ac=function(e){return null==e.expiration&&(e.expiration=1/0),Promise.resolve(e)},(i=Xh.prototype).init=function(){var t=this,n=new Ot,i=e.indexedDB.open("shaka_offline_db",5);return i.onsuccess=function(){var e=i.result;t.l=e;var r=e.objectStoreNames;r=r.contains("manifest")&&r.contains("segment")?new qh(e,"segment","manifest"):null,t.g=r,r=(r=e.objectStoreNames).contains("manifest-v2")&&r.contains("segment-v2")?new Kh(e,"segment-v2","manifest-v2"):null,t.h=r,r=(r=e.objectStoreNames).contains("manifest-v3")&&r.contains("segment-v3")?new Kh(e,"segment-v3","manifest-v3"):null,t.i=r,r=(r=e.objectStoreNames).contains("manifest-v5")&&r.contains("segment-v5")?new Wh(e,"segment-v5","manifest-v5"):null,t.j=r,e=e.objectStoreNames.contains("session-ids")?new Rh(e):null,t.m=e,n.resolve()},i.onupgradeneeded=function(){for(var e=i.result,t=c(["segment-v5","manifest-v5","session-ids"]),n=t.next();!n.done;n=t.next())n=n.value,e.objectStoreNames.contains(n)||e.createObjectStore(n,{autoIncrement:!0})},i.onerror=function(e){n.reject(new xe(2,9,9001,i.error)),e.preventDefault()},n},i.destroy=function(){var e=this;return P((function(t){switch(t.g){case 1:if(!e.g){t.D(2);break}return x(t,e.g.destroy(),2);case 2:if(!e.h){t.D(4);break}return x(t,e.h.destroy(),4);case 4:if(!e.i){t.D(6);break}return x(t,e.i.destroy(),6);case 6:if(!e.j){t.D(8);break}return x(t,e.j.destroy(),8);case 8:if(!e.m){t.D(10);break}return x(t,e.m.destroy(),10);case 10:e.l&&e.l.close(),w(t)}}))},i.getCells=function(){var e=new Map;return this.g&&e.set("v1",this.g),this.h&&e.set("v2",this.h),this.i&&e.set("v3",this.i),this.j&&e.set("v5",this.j),e},i.getEmeSessionCell=function(){return this.m},i.erase=function(){var t=this;return P((function(n){switch(n.g){case 1:if(!t.g){n.D(2);break}return x(n,t.g.destroy(),2);case 2:if(!t.h){n.D(4);break}return x(n,t.h.destroy(),4);case 4:if(!t.i){n.D(6);break}return x(n,t.i.destroy(),6);case 6:if(!t.j){n.D(8);break}return x(n,t.j.destroy(),8);case 8:return t.l&&t.l.close(),x(n,function(){var t=new Ot,n=e.indexedDB.deleteDatabase("shaka_offline_db");return n.onblocked=function(){},n.onsuccess=function(){t.resolve()},n.onerror=function(e){t.reject(new xe(2,9,9001,n.error)),e.preventDefault()},t}(),10);case 10:return t.l=null,t.g=null,t.h=null,t.i=null,t.j=null,x(n,t.init(),0)}}))},Fh("idb",(function(){return xn("CrKey")||!e.indexedDB?null:new Xh})),Yh.prototype.Ta=function(){return this.i},Yh.prototype.na=function(){return this.h},Yh.prototype.key=function(){return this.l},Yh.prototype.toString=function(){return this.j},(i=tm.prototype).configure=function(){},i.start=function(e,t){var n,i,r,a,o,s,l=this;return P((function(c){switch(c.g){case 1:if(n=Jh(e),l.g=n,null==n||"manifest"!=n.g)throw new xe(2,1,9004,e);return i=new zh,A(c),x(c,i.init(),4);case 4:return x(c,Uh(i,n.Ta(),n.na()),5);case 5:return x(c,c.h.getManifests([n.key()]),6);case 6:return r=c.h,a=r[0],o=new Zh(n.Ta(),n.na()),s=Qh(o,a),t.makeTextStreamsForClosedCaptions(s),c.return(s);case 2:return E(c),x(c,i.destroy(),7);case 7:I(c,0)}}))},i.stop=function(){return Promise.resolve()},i.update=function(){},i.onExpirationUpdated=function(e,t){var n,i,r,a,o,s,l,c=this;return P((function(d){switch(d.g){case 1:return n=c.g,i=new zh,k(d,2,3),x(d,i.init(),5);case 5:return x(d,Uh(i,n.Ta(),n.na()),6);case 6:return x(d,(r=d.h).getManifests([n.key()]),7);case 7:if(a=d.h,o=a[0],s=o.sessionIds.includes(e),l=null==o.expiration||o.expiration>t,!s||!l){d.D(3);break}return x(d,r.updateManifestExpiration(n.key(),t),3);case 3:return E(d),x(d,i.destroy(),10);case 10:I(d,0);break;case 2:S(d),d.D(3)}}))},xr["application/x-offline-manifest"]=function(){return new tm},F("shaka.offline.OfflineScheme",nm),nm.plugin=im,Ii("offline",im),pm.prototype.release=function(e){e==this.g&&(this.g=0,0<this.h.length&&this.h.shift()())},(i=hm.prototype).destroy=function(){return this.l.destroy()},i.configure=function(e,t){return 2==arguments.length&&"string"==typeof e&&(e=$s(e,t)),e.manifest&&e.manifest.dash&&"defaultPresentationDelay"in e.manifest.dash&&(ke("manifest.dash.defaultPresentationDelay configuration","Please Use manifest.defaultPresentationDelay instead."),e.manifest.defaultPresentationDelay=e.manifest.dash.defaultPresentationDelay,delete e.manifest.dash.defaultPresentationDelay),Ys(this.h,e)},i.getConfiguration=function(){var e=Xs();return Ys(e,this.h,Xs()),e},i.Dc=function(){return this.g},i.store=function(e,t,n){var i=this,r=this.getConfiguration(),a=new Th(this.g);this.j.push(a),t=function(e,t,n,i,r,a){var o,s,l,d,u,p,h,m,g,f,v,b,y;return P((function(A){switch(A.g){case 1:return Tm(),s=o=null,l=new zh,p=u=d=null,k(A,2,3),x(A,i(),5);case 5:return o=A.h,x(A,function(e,t,n,i){var r,a,o,s,l;return P((function(c){if(1==c.g)return r=null,a=e.g,o={networkingEngine:a,modifyManifestRequest:function(){},modifySegmentRequest:function(){},filter:function(){return Promise.resolve()},makeTextStreamsForClosedCaptions:function(){},onTimelineRegionAdded:function(){},onEvent:function(){},onError:function(e){r=e},isLowLatencyMode:function(){return!1},isAutoLowLatencyMode:function(){return!1},enableLowLatencyMode:function(){}},n.configure(i.manifest),Am(e),x(c,n.start(t,o),2);if(3!=c.g)return s=c.h,Am(e),l=Em(s),x(c,Promise.all(te(l,(function(e){return e.createSegmentIndex()}))),3);if(Am(e),r)throw r;return c.return(s)}))}(e,t,o,r),6);case 6:if(h=A.h,Am(e),!(!h.presentationTimeline.T()&&!h.presentationTimeline.Nb()))throw new xe(2,9,9005,t);return x(A,function(e,t,n,i){var r;
2return P((function(a){switch(a.g){case 1:return(r=new Ki({Qb:e.g,onError:n,pd:function(){},onExpirationUpdated:function(){},onEvent:function(){}})).configure(i.drm),x(a,function(e,t,n){return e.ea=!0,e.F=[],e.N=n,Wi(e,t)}(r,t.variants,i.offline.usePersistentLicense),2);case 2:return x(a,Yi(r),3);case 3:return x(a,Ji(r),4);case 4:return a.return(r)}}))}(e,h,(function(e){p=p||e}),r),7);case 7:if(s=A.h,Am(e),p)throw p;return x(A,function(e,t){var n,i,r,a,o,s,l,d,u,p,h,m,g,f,v,b,y,A,E,I,C,_,j,N,L,D,M,O;return P((function(P){switch(P.g){case 1:return n={width:1/0,height:1/0},function(e,t,n){e.variants=e.variants.filter((function(e){return In(e,t,n)}))}(e,t.restrictions,n),x(P,_n(e,t.offline.usePersistentLicense),2);case 2:for(i=[],r=t.preferredAudioChannelCount,a=t.preferredDecodingAttributes,o=t.preferredVideoCodecs,s=t.preferredAudioCodecs,Tn(e,o,s,r,a),l=c(e.variants),d=l.next();!d.done;d=l.next())u=d.value,i.push(On(u));for(p=c(e.textStreams),h=p.next();!h.done;h=p.next())m=h.value,i.push(Rn(m));for(g=c(e.imageStreams),f=g.next();!f.done;f=g.next())v=f.value,i.push(zn(v));return x(P,t.offline.trackSelectionCallback(i),3);case 3:for(b=P.h,y=e.presentationTimeline.getDuration(),A=0,E=c(b),I=E.next();!I.done;I=E.next())C=I.value,_=C.bandwidth*y/8,A+=_;return k(P,4),x(P,t.offline.downloadSizeCallback(A),6);case 6:if(!P.h)throw new xe(2,9,9014);T(P,5);break;case 4:if((j=S(P))instanceof xe)throw j;throw new xe(2,9,9015);case 5:for(N=new Set,L=new Set,D=new Set,M=c(b),I=M.next();!I.done;I=M.next())"variant"==(O=I.value).type&&N.add(O.id),"text"==O.type&&L.add(O.id),"image"==O.type&&D.add(O.id);e.variants=e.variants.filter((function(e){return N.has(e.id)})),e.textStreams=e.textStreams.filter((function(e){return L.has(e.id)})),e.imageStreams=e.imageStreams.filter((function(e){return D.has(e.id)})),function(e){e.variants.map((function(e){return e.video}));var t=new Set(e.variants.map((function(e){return e.audio})));e=e.textStreams;for(var n=c(t),i=n.next();!i.done;i=n.next())for(var r=(i=c(t)).next();!r.done;r=i.next());for(t=c(e),n=t.next();!n.done;n=t.next())for(n=c(e),i=n.next();!i.done;i=n.next());}(e),w(P)}}))}(h,r),8);case 8:return x(A,l.init(),9);case 9:return Am(e),x(A,Bh(l),10);case 10:return d=A.h,Am(e),m=function(e,t,n,i,r,a){var o=function(e,t,n){return{offlineUri:null,originalManifestUri:e,duration:t.presentationTimeline.getDuration(),size:0,expiration:1/0,tracks:t=sm(t),appMetadata:n,isIncomplete:!1}}(n,t,i),s=r.offline.progressCallback;!function(e,t,n){e.m=t,e.l=n}(a,(function(e,t){o.size=t,s(o,e)}),(function(t,n){l&&r.offline.usePersistentLicense&&d==n&&Zi(e,"cenc",t)}));var l=vm(t)&&!bm(t),d=null;l&&(d=Cm.get(e.g.keySystem));for(var u=new lm,p=c(t.textStreams),h=p.next();!h.done;h=p.next())u.g[h.value.id]=52;for(p=c(t.imageStreams),h=p.next();!h.done;h=p.next())dm(u,h.value);for(h=c(t.variants),p=h.next();!p.done;p=h.next())cm(u,p.value);return u=function(e,t,n){for(var i=new Map,r=Em(n),a=new Map,o=(r=c(r)).next();!o.done;o=r.next()){var s=km(e,t,n,o=o.value,i);a.set(o.id,s)}for(e=c(n.variants),t=e.next();!t.done;t=e.next())(t=t.value).audio&&a.get(t.audio.id).variantIds.push(t.id),t.video&&a.get(t.video.id).variantIds.push(t.id);return{streams:Array.from(a.values()),Ce:Array.from(i.values())}}(a,u,t),a=u.streams,u=u.Ce,h=e.g,p=r.offline.usePersistentLicense,h&&p&&(h.initData=[]),{Hg:{creationTime:Date.now(),originalManifestUri:n,duration:t.presentationTimeline.getDuration(),size:0,expiration:e.Cc(),streams:a,sessionIds:p?er(e):[],drmInfo:h,appMetadata:i,isIncomplete:!0,sequenceMode:t.sequenceMode},Ce:u}}(s,h,t,n,r,a),g=m.Hg,f=m.Ce,x(A,d.na.addManifests([g]),11);case 11:if(v=A.h,Am(e),u=v[0],Am(e),p)throw p;return x(A,function(e,t,n,i,r,a,o,s,l){var d,u;return P((function(p){switch(p.g){case 1:if(d=function(t,d){var u,p,h,m,g,f,v,b;return P((function(y){if(1==y.g){for(u=function(){Am(e)},p={},h=c(t),m=h.next();!m.done;p={Rc:p.Rc,wb:p.wb},m=h.next())p.wb=m.value,p.Rc=void 0,g=wh(p.wb,a),f=p.wb.i,v=p.wb.h,b=function(e){return function(t){return e.Rc=t,Promise.resolve()}}(p),Eh(r,p.wb.groupId,g,f,v,b),Ih(r,p.wb.groupId,function(e){return function(){var t;return P((function(r){if(1==r.g)return t=e.wb.g,x(r,fm(n,t,{data:e.Rc},u),2);i=r.h||i,w(r)}))}}(p));return x(y,function(e){return P((function(t){return 1==t.g?x(t,Promise.all(e.h.values()),2):t.return(e.g.h)}))}(r),2)}return d?(Am(e),function(e,t,n,i){if(t.expiration=n.Cc(),n=er(n),t.sessionIds=i.offline.usePersistentLicense?n:[],vm(e)&&i.offline.usePersistentLicense&&!n.length)throw new xe(2,9,9007)}(s,i,l,a),x(y,o.updateManifest(n,i),0)):y.D(0)}))},u=!1,!vm(s)||!u||bm(s)){p.D(2);break}return x(p,d(t.filter((function(e){return e.h})),!0),3);case 3:Am(e),t=t.filter((function(e){return!e.h}));case 2:if(u){p.D(0);break}return x(p,d(t,!1),5);case 5:Am(e),w(p)}}))}(e,f,u,g,a,r,d.na,h,s),12);case 12:return Am(e),b=new Yh("manifest",d.path.Ta,d.path.na,u),A.return(om(b,g));case 3:return E(A),x(A,l.destroy(),13);case 13:if(!o){A.D(14);break}return x(A,o.stop(),14);case 14:if(!s){A.D(16);break}return x(A,s.destroy(),16);case 16:I(A,0);break;case 2:if(y=S(A),null==u){A.D(18);break}return x(A,gm(u),18);case 18:throw p||y}}))}(this,e,t||{},(function(){var t;return P((function(a){return 1==a.g?x(a,vr(e,i.g,r.manifest.retryParameters,n||null),2):(t=a.h,a.return(_e(t)))}))}),r,a);var o=new fi(t,(function(){return Sh(a)}));return o.finally((function(){it(i.j,a)})),o.then=function(e){return ke("shaka.offline.Storage.store.then","Storage operations now return a shaka.util.AbortableOperation, rather than a promise.  Please update to conform to this new API; you can use the |chain| method instead."),o.promise.then(e)},function(e,t){var n=t.promise;return e.i.push(n),t.finally((function(){it(e.i,n)}))}(this,o)},i.ug=function(){return ke("shaka.offline.Storage.getStoreInProgress","Multiple concurrent downloads are now supported."),!1},i.remove=function(e){return Sm(this,function(e,t){var n,i,r,a,o,s;return P((function(l){switch(l.g){case 1:if(Tm(),null==(n=Jh(t))||"manifest"!=n.g)throw new xe(2,9,9004,t);return i=n,r=new zh,A(l),x(l,r.init(),4);case 4:return x(l,Uh(r,i.Ta(),i.na()),5);case 5:return x(l,(a=l.h).getManifests([i.key()]),6);case 6:return o=l.h,s=o[0],x(l,Promise.all([xm(e,s,r),wm(a,i,s)]),2);case 2:return E(l),x(l,r.destroy(),8);case 8:I(l,0)}}))}(this,e))},i.Wg=function(){return Sm(this,function(e){var t,n,i,r,a,o,s,l,d,u;return P((function(p){switch(p.g){case 1:return Tm(),t=e.g,n=e.h.drm,i=new zh,r=!1,A(p),x(p,i.init(),4);case 4:a=[],function(e,t){e.g.forEach((function(e){t(e.getEmeSessionCell())}))}(i,(function(e){return a.push(e)})),o=c(a),s=o.next();case 5:if(s.done){p.D(2);break}return x(p,(l=s.value).getAll(),8);case 8:return d=p.h,x(p,rm(n,t,d),9);case 9:return u=p.h,x(p,l.remove(u),10);case 10:u.length!=d.length&&(r=!0),s=o.next(),p.D(5);break;case 2:return E(p),x(p,i.destroy(),11);case 11:I(p,3);break;case 3:return p.return(!r)}}))}(this))},i.list=function(){return Sm(this,P((function(i){switch(i.g){case 1:return Tm(),e=[],t=new zh,A(i),x(i,t.init(),4);case 4:return n=Promise.resolve(),function(e,t){e.g.forEach((function(e,n){e.getCells().forEac
2h((function(e,i){t({Ta:n,na:i},e)}))}))}(t,(function(t,i){n=n.then((function(){return P((function(n){if(1==n.g)return x(n,i.getAllManifests(),2);n.h.forEach((function(n,i){var r=om(new Yh("manifest",t.Ta,t.na,i),n);e.push(r)})),w(n)}))}))})),x(i,n,2);case 2:return E(i),x(i,t.destroy(),6);case 6:I(i,3);break;case 3:return i.return(e)}})));var e,t,n},F("shaka.offline.Storage",hm),hm.deleteAll=function(){var e;return P((function(t){return 1==t.g?(e=new zh,A(t),x(t,function(e){var t,n;return P((function(i){return 1==i.g?(t=Array.from(e.g.values()),(n=0<t.length)||Vh.forEach((function(e){(e=e())&&t.push(e)})),x(i,Promise.all(t.map((function(e){return e.erase()}))),2)):n?i.D(0):x(i,Promise.all(t.map((function(e){return e.destroy()}))),0)}))}(e),2)):5!=t.g?(E(t),x(t,e.destroy(),5)):I(t,0)}))},hm.prototype.list=hm.prototype.list,hm.prototype.removeEmeSessions=hm.prototype.Wg,hm.prototype.remove=hm.prototype.remove,hm.prototype.getStoreInProgress=hm.prototype.ug,hm.prototype.store=hm.prototype.store,hm.prototype.getNetworkingEngine=hm.prototype.Dc,hm.prototype.getConfiguration=hm.prototype.getConfiguration,hm.prototype.configure=hm.prototype.configure,hm.prototype.destroy=hm.prototype.destroy,hm.support=mm;var Im=new pm,Cm=(new Map).set("org.w3.clearkey","1077efecc0b24d02ace33c1e52e2fb4b").set("com.widevine.alpha","edef8ba979d64acea3c827dcd51d21ed").set("com.microsoft.playready","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.recommendation","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.software","9a04f07998404286ab92e65be0885f95").set("com.microsoft.playready.hardware","9a04f07998404286ab92e65be0885f95").set("com.adobe.primetime","f239e769efa348509c16a903c6932efb");function _m(){}function jm(){for(var e=c(Lm),t=e.next();!t.done;t=e.next()){t=t.value;try{t.Mf()}catch(e){K("Error installing polyfill!",e)}}}function Nm(e,t){for(var n={priority:t||0,Mf:e},i=c(re(Lm)),r=i.next();!r.done;r=i.next()){var a=(r=r.value).ra;if(r.item.priority<n.priority)return void Lm.splice(a,0,n)}Lm.push(n)}_c.offline=mm,F("shaka.polyfill",_m),_m.register=Nm,_m.installAll=jm;var Lm=[];function Pm(){}function Dm(){if(!Object.getOwnPropertyDescriptor(Element.prototype,"ariaHidden"))for(var e=c(["ariaHidden","ariaLabel","ariaPressed","ariaSelected"]),t=e.next();!t.done;t=e.next())Mm(t.value)}function Mm(e){var t="aria-"+e.toLowerCase().replace(/^aria/,"");Object.defineProperty(Element.prototype,e,{get:function(){return this.getAttribute(t)},set:function(e){null==e||null==e?this.removeAttribute(t):this.setAttribute(t,e)}})}function Om(){}function Rm(){Sv()}function zm(){}function Bm(){if(e.Document){var t=Element.prototype;t.requestFullscreen=t.requestFullscreen||t.mozRequestFullScreen||t.msRequestFullscreen||t.webkitRequestFullscreen,(t=Document.prototype).exitFullscreen=t.exitFullscreen||t.mozCancelFullScreen||t.msExitFullscreen||t.webkitCancelFullScreen,"fullscreenElement"in document||(Object.defineProperty(document,"fullscreenElement",{get:function(){return document.mozFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement||document.webkitFullscreenElement}}),Object.defineProperty(document,"fullscreenEnabled",{get:function(){return document.mozFullScreenEnabled||document.msFullscreenEnabled||document.webkitFullscreenEnabled}})),document.addEventListener("webkitfullscreenchange",Um),document.addEventListener("webkitfullscreenerror",Um),document.addEventListener("mozfullscreenchange",Um),document.addEventListener("mozfullscreenerror",Um),document.addEventListener("MSFullscreenChange",Um),document.addEventListener("MSFullscreenError",Um)}}function Um(e){var t=e.type.replace(/^(webkit|moz|MS)/,"").toLowerCase(),n=document.createEvent("Event");n.initEvent(t,e.bubbles,e.cancelable),e.target.dispatchEvent(n)}function Fm(){}function Vm(){}function qm(){}function Hm(){(xn("CrKey")||bn()||xn("PlayStation 5")||!navigator.mediaCapabilities)&&(navigator.mediaCapabilities||(navigator.mediaCapabilities={}),Km=navigator.mediaCapabilities,navigator.mediaCapabilities.decodingInfo=Gm)}function Gm(e){var t,n,i,r,a,o,s,l,c,d,u,p;return P((function(h){switch(h.g){case 1:if(t={supported:!1,powerEfficient:!0,smooth:!0,keySystemAccess:null,configuration:e},!e)return h.return(t);if("media-source"==e.type){if(!gn()||e.video&&(n=e.video.contentType,!MediaSource.isTypeSupp
2orted(n))||e.audio&&(i=e.audio.contentType,!MediaSource.isTypeSupported(i)))return h.return(t)}else{if("file"!=e.type)return h.return(t);if(e.video&&(r=e.video.contentType,!fn(r))||e.audio&&(a=e.audio.contentType,!fn(a)))return h.return(t)}return e.keySystemConfiguration?(o=e.keySystemConfiguration,s=[],l=[],o.audio&&(c={robustness:o.audio.robustness||"",contentType:e.audio.contentType},s.push(c)),o.video&&(d={robustness:o.video.robustness||"",contentType:e.video.contentType},l.push(d)),u={initDataTypes:[o.initDataType],distinctiveIdentifier:o.distinctiveIdentifier,persistentState:o.persistentState,sessionTypes:o.sessionTypes},s.length&&(u.audioCapabilities=s),l.length&&(u.videoCapabilities=l),k(h,3),x(h,navigator.requestMediaKeySystemAccess(o.keySystem,[u]),5)):(t.supported=!0,h.return(Promise.resolve(t)));case 5:p=h.h,T(h,4);break;case 3:S(h);case 4:p&&(t.supported=!0,t.keySystemAccess=p);case 2:return h.return(t)}}))}_m.Aria=Pm,Pm.install=Dm,Nm(Dm),_m.EncryptionScheme=Om,Om.install=Rm,Nm(Rm,-2),_m.Fullscreen=zm,zm.install=Bm,Nm(Bm),_m.MathRound=Fm,Fm.install=Vm,Nm(Vm),_m.MediaCapabilities=qm,qm.install=Hm;var Km=null;function $m(){}function Wm(){var t=yn();e.MediaSource&&(e.cast&&cast.__platform__&&cast.__platform__.canDisplayType?function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */);return n.shift(),n.some((function(e){return e.startsWith("codecs=")}))?cast.__platform__.canDisplayType(t):e(t)}}():t?(function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"mp2t"!=t.split(/ *; */)[0].split("/")[1].toLowerCase()&&e(t)}}(),12>=t?(Xm(),function(){var e=SourceBuffer.prototype.remove;SourceBuffer.prototype.remove=function(t,n){return e.call(this,t,n-.001)}}()):Xm()):(xn("Tizen 2")||xn("Tizen 3")||xn("Tizen 4"))&&function(){var e=MediaSource.isTypeSupported;MediaSource.isTypeSupported=function(t){return"opus"!=an(t)&&e(t)}}()),e.MediaSource&&MediaSource.isTypeSupported('video/webm; codecs="vp9"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.00.10.08"')&&function(){var e=MediaSource.isTypeSupported;xn("Web0S")||(MediaSource.isTypeSupported=function(t){var n=t.split(/ *; */),i=n.findIndex((function(e){return e.startsWith("codecs=")}));if(0>i)return e(t);var r=n[i].replace("codecs=","").replace(/"/g,"").split(/\s*,\s*/),a=r.findIndex((function(e){return e.startsWith("vp09")}));return 0<=a&&(r[a]="vp9",n[i]='codecs="'+r.join(",")+'"',t=n.join("; ")),e(t)})}()}function Xm(){var e=MediaSource.prototype.addSourceBuffer;MediaSource.prototype.addSourceBuffer=function(){var t=e.apply(this,D.apply(0,arguments));return t.abort=function(){},t}}function Ym(){}function Jm(){screen.orientation||null!=e.orientation&&function(){function t(){switch(e.orientation){case-90:n.type="landscape-secondary",n.angle=270;break;case 0:n.type="portrait-primary",n.angle=0;break;case 90:n.type="landscape-primary",n.angle=90;break;case 180:n.type="portrait-secondary",n.angle=180}}var n=new Zm;screen.orientation=n,t(),e.addEventListener("orientationchange",(function(){t();var e=new V("change");n.dispatchEvent(e)}))}()}function Zm(){ee.call(this),this.type="",this.angle=0}function Qm(){}function eg(){if(e.HTMLVideoElement&&e.WebKitMediaKeys){var t=yn();navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration&&t&&14<=t||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=ng,e.MediaKeys=ag,e.MediaKeySystemAccess=rg,navigator.requestMediaKeySystemAccess=tg,e.shakaMediaKeysPolyfill=!0)}}function tg(e,t){try{var n=new rg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function ng(e){var t=this.mediaKeys;return t&&t!=e&&og(t,null),delete this.mediaKeys,(this.mediaKeys=e)?og(e,this):Promise.resolve()}function ig(e){if(Nt(e=jt(e.initData)).getUint32(0,!0)+4!=e.byteLength)throw new RangeError("Malformed FairPlay init data");e=Vt(e=Ut(e.subarray(4),!0));var t=new Event("encrypted");t.initDataType="skd",t.initData=_t(e),this.dispatchEvent(t)}function rg(e,t){if(this.keySystem=e,e.startsWith("com.apple.fps"))for(var n=c(t),i=n.next();!i.done;i=n.next()){var r=i.value;if("required"==r.persistentState)i=null;else{i={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:r.initDataTypes,sessionTypes:["temporary"],label:r.label};var a=!1,o=!1;if(r.audioCapabilities)for(var s=c(r.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(a=!0,WebKitMediaKeys.isTypeSupp
2orted(this.keySystem,l.contentType.split(";")[0])&&(i.audioCapabilities.push(l),o=!0));if(r.videoCapabilities)for(l=(r=c(r.videoCapabilities)).next();!l.done;l=r.next())(s=l.value).contentType&&(a=!0,WebKitMediaKeys.isTypeSupported(this.keySystem,s.contentType.split(";")[0])&&(i.videoCapabilities.push(s),o=!0));a||(o=WebKitMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),i=o?i:null}if(i)return void(this.g=i)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function ag(e){this.h=new WebKitMediaKeys(e),this.g=new Ri}function og(e,t){if(e.g.Sb(),!t)return Promise.resolve();e.g.o(t,"webkitneedkey",ig);try{return ko(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.webkitSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function sg(e){ee.call(this),this.i=null,this.l=e,this.h=this.g=null,this.j=new Ri,this.sessionId="",this.expiration=NaN,this.closed=new Ot,this.keyStatuses=new cg}function lg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new V("keystatuseschange"),e.dispatchEvent(n)}function cg(){this.size=0,this.g=void 0}function dg(){}function ug(){!e.HTMLVideoElement||!e.MSMediaKeys||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,e.MediaKeys=fg,e.MediaKeySystemAccess=mg,navigator.requestMediaKeySystemAccess=pg,HTMLMediaElement.prototype.setMediaKeys=gg,e.shakaMediaKeysPolyfill=!0)}function pg(e,t){try{var n=new mg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function hg(e){if(e.initData){var t=new CustomEvent("encrypted");t.initDataType="cenc",t.initData=_t(function(e){if(!e)return e;var t=new zd(e);if(1>=t.data.length)return e;e=[];for(var n={},i=(t=c(t.data)).next();!i.done;n={Sc:n.Sc},i=t.next())n.Sc=i.value,e.some(function(e){return function(t){return It(t,e.Sc)}}(n))||e.push(n.Sc);return Jt.apply(Gt,d(e))}(e.initData)),this.dispatchEvent(t)}}function mg(e,t){this.keySystem=e;for(var n=!1,i=c(t),r=i.next();!r.done;r=i.next()){var a={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(r=r.value).initDataTypes,sessionTypes:["temporary"],label:r.label},o=!1;if(r.audioCapabilities)for(var s=c(r.audioCapabilities),l=s.next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(a.audioCapabilities.push(l),n=!0));if(r.videoCapabilities)for(l=(s=c(r.videoCapabilities)).next();!l.done;l=s.next())(l=l.value).contentType&&(o=!0,MSMediaKeys.isTypeSupported(this.keySystem,l.contentType.split(";")[0])&&(a.videoCapabilities.push(l),n=!0));if(o||(n=MSMediaKeys.isTypeSupported(this.keySystem,"video/mp4")),"required"==r.persistentState&&(n=!1),n)return void(this.g=a)}throw(n=Error("Unsupported keySystem")).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function gg(e){var t=this.mediaKeys;return t&&t!=e&&vg(t,null),delete this.mediaKeys,(this.mediaKeys=e)?vg(e,this):Promise.resolve()}function fg(e){this.h=new MSMediaKeys(e),this.g=new Ri}function vg(e,t){if(e.g.Sb(),!t)return Promise.resolve();e.g.o(t,"msneedkey",hg);try{return ko(t,HTMLMediaElement.HAVE_METADATA,e.g,(function(){t.msSetMediaKeys(e.h)})),Promise.resolve()}catch(e){return Promise.reject(e)}}function bg(e){ee.call(this),this.i=null,this.l=e,this.h=this.g=null,this.j=new Ri,this.sessionId="",this.expiration=NaN,this.closed=new Ot,this.keyStatuses=new xg}function yg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new V("keystatuseschange"),e.dispatchEvent(n)}function xg(){this.size=0,this.g=void 0}function wg(){}function kg(){!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration||(navigator.requestMediaKeySystemAccess=Ag,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Tg,e.MediaKeys=Sg,e.MediaKeySystemAccess=Eg,e.shakaMediaKeysPolyfill=!0)}function Ag(){return Promise.reject(Error("The key system specified is not supported."))}function Tg(e){return null==e?Promise.resolve():Promise.reject(Error("MediaKeys not supported."))}function Sg(){throw new TypeError("Illegal constructor.")}function Eg(){throw this.keySystem="",new TypeError("Illegal constructor.")}function Ig(){}function Cg(){if(!(!e.HTMLVideoElement||navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration)){if
2(HTMLMediaElement.prototype.webkitGenerateKeyRequest)Fg="webkit";else if(!HTMLMediaElement.prototype.generateKeyRequest)return;navigator.requestMediaKeySystemAccess=jg,delete HTMLMediaElement.prototype.mediaKeys,HTMLMediaElement.prototype.mediaKeys=null,HTMLMediaElement.prototype.setMediaKeys=Ng,e.MediaKeys=Pg,e.MediaKeySystemAccess=Lg,e.shakaMediaKeysPolyfill=!0}}function _g(e){return Fg?Fg+e.charAt(0).toUpperCase()+e.slice(1):e}function jg(e,t){try{var n=new Lg(e,t);return Promise.resolve(n)}catch(e){return Promise.reject(e)}}function Ng(e){var t=this.mediaKeys;return t&&t!=e&&Dg(t,null),delete this.mediaKeys,(this.mediaKeys=e)&&Dg(e,this),Promise.resolve()}function Lg(e,t){this.g=this.keySystem=e;var n=!1;"org.w3.clearkey"==e&&(this.g="webkit-org.w3.clearkey",n=!1);var i=!1,r=document.getElementsByTagName("video");r=r.length?r[0]:document.createElement("video");for(var a=c(t),o=a.next();!o.done;o=a.next()){var s={audioCapabilities:[],videoCapabilities:[],persistentState:"optional",distinctiveIdentifier:"optional",initDataTypes:(o=o.value).initDataTypes,sessionTypes:["temporary"],label:o.label},l=!1;if(o.audioCapabilities)for(var d=c(o.audioCapabilities),u=d.next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,r.canPlayType(u.contentType.split(";")[0],this.g)&&(s.audioCapabilities.push(u),i=!0));if(o.videoCapabilities)for(u=(d=c(o.videoCapabilities)).next();!u.done;u=d.next())(u=u.value).contentType&&(l=!0,r.canPlayType(u.contentType,this.g)&&(s.videoCapabilities.push(u),i=!0));if(l||(i=r.canPlayType("video/mp4",this.g)||r.canPlayType("video/webm",this.g)),"required"==o.persistentState&&(n?(s.persistentState="required",s.sessionTypes=["persistent-license"]):i=!1),i)return void(this.h=s)}throw n="Unsupported keySystem","org.w3.clearkey"!=e&&"com.widevine.alpha"!=e||(n="None of the requested configurations were supported."),(n=Error(n)).name="NotSupportedError",n.code=DOMException.NOT_SUPPORTED_ERR,n}function Pg(e){this.l=e,this.h=null,this.g=new Ri,this.i=[],this.j=new Map}function Dg(e,t){e.h=t,e.g.Sb();var n=Fg;t&&(e.g.o(t,n+"needkey",(function(t){var n=new CustomEvent("encrypted");n.initDataType="cenc",n.initData=_t(t.initData),e.h.dispatchEvent(n)})),e.g.o(t,n+"keymessage",(function(t){var n=Mg(e,t.sessionId);n&&(t=new V("message",t=(new Map).set("messageType",null==n.keyStatuses.g?"licenserequest":"licenserenewal").set("message",t.message)),n.h&&(n.h.resolve(),n.h=null),n.dispatchEvent(t))})),e.g.o(t,n+"keyadded",(function(t){(t=Mg(e,t.sessionId))&&(Bg(t,"usable"),t.g&&t.g.resolve(),t.g=null)})),e.g.o(t,n+"keyerror",(function(t){var n=Mg(e,t.sessionId);n&&n.handleError(t)})))}function Mg(e,t){var n=e.j.get(t);return n||((n=e.i.shift())?(n.sessionId=t,e.j.set(t,n),n):null)}function Og(e,t,n){ee.call(this),this.j=e,this.m=!1,this.g=this.h=null,this.i=t,this.l=n,this.sessionId="",this.expiration=NaN,this.closed=new Ot,this.keyStatuses=new Ug}function Rg(e,t,n){if(e.m)return Promise.reject(Error("The session is already initialized."));e.m=!0;try{if("persistent-license"==e.l)if(n)var i=jt(Vt("LOAD_SESSION|"+n));else{var r=Vt("PERSISTENT|");i=Jt(r,t)}else i=jt(t)}catch(e){return Promise.reject(e)}e.h=new Ot;var a=_g("generateKeyRequest");try{e.j[a](e.i,i)}catch(t){if("InvalidStateError"!=t.name)return e.h=null,Promise.reject(t);new mn((function(){try{e.j[a](e.i,i)}catch(t){e.h.reject(t),e.h=null}})).R(.01)}return e.h}function zg(e,t,n){if(e.g)e.g.then((function(){return zg(e,t,n)})).catch((function(){return zg(e,t,n)}));else{if(e.g=t,"webkit-org.w3.clearkey"==e.i){var i=Bt(n),r=JSON.parse(i);"oct"!=r.keys[0].kty&&(e.g.reject(Error("Response is not a valid JSON Web Key Set.")),e.g=null),i=Wt(r.keys[0].k),r=Wt(r.keys[0].kid)}else i=jt(n),r=null;var a=_g("addKey");try{e.j[a](e.i,i,r,e.sessionId)}catch(t){e.g.reject(t),e.g=null}}}function Bg(e,t){var n=e.keyStatuses;n.size=null==t?0:1,n.g=t,n=new V("keystatuseschange"),e.dispatchEvent(n)}function Ug(){this.size=0,this.g=void 0}qm.originalMcap=Km,Nm(Hm,-1),_m.MediaSource=$m,$m.install=Wm,Nm(Wm),_m.Orientation=Ym,Ym.install=Jm,f(Zm,ee),Zm.prototype.lock=function(e){function t(e){return screen.lockOrientation?screen.lockOrientation(e):screen.mozLockOrientation?screen.mozLockOrientation(e):!!screen.msLockOrientation&&screen.msLockOrientation(e)}var n=!1;switch(e){case"natural":n=t("default");break;case"any":n=!0,this.unlock();break;default:n=t(e)}return n?Promise.resolve():((e=Error("screen.orientation.lock() is not available on this device")).name="NotSupportedError",e.code=DOMException.NOT_SUPPORTED_ERR,Promise.reject(e))},Zm.prototype.unlock=function(){screen.unlockOrientation?screen.unlockOrientation():screen.mozUnlockOrientation?screen.mozUnlockOrientation():screen.msUnlockOrientation&&screen.msUnlockOrientation()},Nm(Jm),_m.PatchedMediaKeysApple=Qm,Qm.install=eg,rg.prototype.createMediaKeys=function(){var e=new ag(this.keySystem);return Promise.resolve(e)},rg.prototype.getConfiguration=function(){return this.g},ag.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new sg(this.h,e)},ag.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(sg,ee),(i=sg.prototype).generateRequest=function(e,t){var n=this;this.g=new Ot;try{var i=this.l.createSession("video/mp4",jt(t));this.i=i,this.sessionId=i.sessionId||"",this.j.o(this.i,"webkitkeymessage",(function(e){n.g&&(n.g.resolve(),n.g=null),e=new V("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",_t(e.message))),n.dispatchEvent(e)})),this.j.o(i,"webkitkeyadded",(function(){n.h&&(lg(n,"usable"),n.h.resolve(),n.h=null)})),this.j.o(i,"webkitkeyerror",(function(){var e=Error("EME PatchedMediaKeysApple key error");
2if(e.errorCode=n.i.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.h)n.h.reject(e),n.h=null;else switch(n.i.error.code){case WebKitMediaKeyError.MEDIA_KEYERR_OUTPUT:case WebKitMediaKeyError.MEDIA_KEYERR_HARDWARECHANGE:lg(n,"output-not-allowed");break;default:lg(n,"internal-error")}})),lg(this,"status-pending")}catch(e){this.g.reject(e)}return this.g},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.h=new Ot;try{this.i.update(jt(e))}catch(e){this.h.reject(e)}return this.h},i.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=cg.prototype).forEach=function(e){this.g&&e(this.g,gr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=gr.value();return!(!this.g||!It(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},Nm(eg),_m.PatchedMediaKeysMs=dg,dg.install=ug,mg.prototype.createMediaKeys=function(){var e=new fg(this.keySystem);return Promise.resolve(e)},mg.prototype.getConfiguration=function(){return this.g},fg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary"))throw new TypeError("Session type "+e+" is unsupported on this platform.");return new bg(this.h,e)},fg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(bg,ee),(i=bg.prototype).generateRequest=function(e,t){var n=this;this.g=new Ot;try{this.i=this.l.createSession("video/mp4",jt(t),null),this.j.o(this.i,"mskeymessage",(function(e){n.g&&(n.g.resolve(),n.g=null),e=new V("message",e=(new Map).set("messageType",null==n.keyStatuses.g?"license-request":"license-renewal").set("message",_t(e.message))),n.dispatchEvent(e)})),this.j.o(this.i,"mskeyadded",(function(){n.g?(yg(n,"usable"),n.g.resolve(),n.g=null):n.h&&(yg(n,"usable"),n.h.resolve(),n.h=null)})),this.j.o(this.i,"mskeyerror",(function(){var e=Error("EME PatchedMediaKeysMs key error");if(e.errorCode=n.i.error,null!=n.g)n.g.reject(e),n.g=null;else if(null!=n.h)n.h.reject(e),n.h=null;else switch(n.i.error.code){case MSMediaKeyError.MS_MEDIA_KEYERR_OUTPUT:case MSMediaKeyError.MS_MEDIA_KEYERR_HARDWARECHANGE:yg(n,"output-not-allowed");break;default:yg(n,"internal-error")}})),yg(this,"status-pending")}catch(e){this.g.reject(e)}return this.g},i.load=function(){return Promise.reject(Error("MediaKeySession.load not yet supported"))},i.update=function(e){this.h=new Ot;try{this.i.update(jt(e))}catch(e){this.h.reject(e)}return this.h},i.close=function(){try{this.i.close(),this.closed.resolve(),this.j.Sb()}catch(e){this.closed.reject(e)}return this.closed},i.remove=function(){return Promise.reject(Error("MediaKeySession.remove is only applicable for persistent licenses, which are not supported on this platform"))},(i=xg.prototype).forEach=function(e){this.g&&e(this.g,gr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=gr.value();return!(!this.g||!It(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){},Nm(ug),_m.PatchedMediaKeysNop=wg,wg.install=kg,Sg.prototype.createSession=function(){},Sg.prototype.setServerCertificate=function(){},Eg.prototype.getConfiguration=function(){},Eg.prototype.createMediaKeys=function(){},Nm(kg,-10),_m.PatchedMediaKeysWebkit=Ig,Ig.install=Cg,Lg.prototype.createMediaKeys=function(){var e=new Pg(this.g);return Promise.resolve(e)},Lg.prototype.getConfiguration=function(){return this.h},Pg.prototype.createSession=function(e){if("temporary"!=(e=e||"temporary")&&"persistent-license"!=e)throw new TypeError("Session type "+e+" is unsupported on this platform.");var t=this.h||document.createElement("video");return t.src||(t.src="about:blank"),e=new Og(t,this.l,e),this.i.push(e),e},Pg.prototype.setServerCertificate=function(){return Promise.resolve(!1)},f(Og,ee),(i=Og.prototype).handleError=function(e){var t=Error("EME v0.1b key error"),n=e.errorCode;n.systemCode=e.systemCode,t.errorCode=n,!e.sessionId&&this.h?(45==e.systemCode&&(t.message="Unsupported session type."),this.h.reject(t),this.h=null):e.sessionId&&this.g?(this.g.reject(t),this.g=null):(t=e.systemCode,e.errorCode.code==MediaKeyError.MEDIA_KEYERR_OUTPUT?Bg(this,"output-restricted"):Bg(this,1==t?"expired":"internal-error"))},i.generateRequest=function(e,t){return Rg(this,t,null)},i.load=function(e){return"persistent-license"==this.l?Rg(this,null,e):Prom
2ise.reject(Error("Not a persistent session."))},i.update=function(e){var t=new Ot;return zg(this,t,e),t},i.close=function(){if("persistent-license"!=this.l){if(!this.sessionId)return this.closed.reject(Error("The session is not callable.")),this.closed;var e=_g("cancelKeyRequest");try{this.j[e](this.i,this.sessionId)}catch(e){}}return this.closed.resolve(),this.closed},i.remove=function(){return"persistent-license"!=this.l?Promise.reject(Error("Not a persistent session.")):this.close()},(i=Ug.prototype).forEach=function(e){this.g&&e(this.g,gr.value())},i.get=function(e){if(this.has(e))return this.g},i.has=function(e){var t=gr.value();return!(!this.g||!It(e,t))},i.entries=function(){},i.keys=function(){},i.values=function(){};var Fg="";function Vg(){}function qg(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;t.requestPictureInPicture&&document.exitPictureInPicture||!t.webkitSupportsPresentationMode||(document.pictureInPictureEnabled=!0,document.pictureInPictureElement=null,t.requestPictureInPicture=Gg,Object.defineProperty(t,"disablePictureInPicture",{get:$g,set:Wg,enumerable:!0,configurable:!0}),document.exitPictureInPicture=Kg,document.addEventListener("webkitpresentationmodechanged",Hg,!0))}}function Hg(e){if("picture-in-picture"==(e=e.target).webkitPresentationMode){document.pictureInPictureElement=e;var t=new Event("enterpictureinpicture");e.dispatchEvent(t)}else document.pictureInPictureElement==e&&(document.pictureInPictureElement=null),t=new Event("leavepictureinpicture"),e.dispatchEvent(t)}function Gg(){return this.webkitSupportsPresentationMode("picture-in-picture")?(this.webkitSetPresentationMode("picture-in-picture"),document.pictureInPictureElement=this,Promise.resolve()):Promise.reject(Error("PiP not allowed by video element"))}function Kg(){var e=document.pictureInPictureElement;return e?(e.webkitSetPresentationMode("inline"),document.pictureInPictureElement=null,Promise.resolve()):Promise.reject(Error("No picture in picture element found"))}function $g(){return!!this.hasAttribute("disablePictureInPicture")||!this.webkitSupportsPresentationMode("picture-in-picture")}function Wg(e){e?this.setAttribute("disablePictureInPicture",""):this.removeAttribute("disablePictureInPicture")}function Xg(){}function Yg(){e.crypto&&("randomUUID"in e.crypto||(e.crypto.randomUUID=Jg))}function Jg(){var e=URL.createObjectURL(new Blob),t=e.toString();return URL.revokeObjectURL(e),t.substr(t.lastIndexOf("/")+1)}function Zg(){}function Qg(){navigator.storage&&navigator.storage.estimate||!navigator.webkitTemporaryStorage||!navigator.webkitTemporaryStorage.queryUsageAndQuota||("storage"in navigator||(navigator.storage={}),navigator.storage.estimate=ef)}function ef(){return new Promise((function(e,t){navigator.webkitTemporaryStorage.queryUsageAndQuota((function(t,n){e({usage:t,quota:n})}),t)}))}function tf(){}function nf(){if(e.HTMLMediaElement){var t=HTMLMediaElement.prototype.play;HTMLMediaElement.prototype.play=function(){var e=t.apply(this);return e&&e.catch((function(){})),e}}}function rf(){}function af(){if(e.HTMLVideoElement){var t=HTMLVideoElement.prototype;!t.getVideoPlaybackQuality&&"webkitDroppedFrameCount"in t&&(t.getVideoPlaybackQuality=of)}}function of(){return{droppedVideoFrames:this.webkitDroppedFrameCount,totalVideoFrames:this.webkitDecodedFrameCount,corruptedVideoFrames:0,creationTime:NaN,totalFrameDelay:0}}function sf(){}function lf(){if(!e.VTTCue&&e.TextTrackCue){var t=null,n=TextTrackCue.length;if(3==n)t=cf;else if(6==n)t=df;else{try{var i=!!cf(1,2,"")}catch(e){i=!1}i&&(t=cf)}t&&(e.VTTCue=function(e,n,i){return t(e,n,i)})}}function cf(t,n,i){return new e.TextTrackCue(t,n,i)}function df(t,n,i){return new e.TextTrackCue(t+"-"+n+"-"+i,t,n,i)}function uf(){}Nm(Cg),_m.PiPWebkit=Vg,Vg.install=qg,Nm(qg),_m.RandomUUID=Xg,Xg.install=Yg,Nm(Yg),_m.StorageEstimate=Zg,Zg.install=Qg,Nm(Qg),_m.VideoPlayPromise=tf,tf.install=nf,Nm(nf),_m.VideoPlaybackQuality=rf,rf.install=af,Nm(af),_m.VTTCue=sf,sf.install=lf,Nm(lf),uf.prototype.parseInit=function(){},uf.prototype.setSequenceMode=function(){},uf.prototype.parseMedia=function(e,t){for(var n=null,i=[],r=Bt(e).split(/\r?\n/),a=(r=c(r)).next();!a.done;a=r.next())if((a=a.value)&&!/^\s+$/.test(a)&&(a=pf.exec(a))){var o=hf.exec(a[1]);a=new ot(o=60*parseInt(o[1],10)+parseFloat(o[2].replace(",",".")),t.segmentEnd?t.segmentEnd:o+2,a[2]),n&&(n.endTime=o,i.push(n)),n=a}return n&&i.push(n),i},F("shaka.text.LrcTextParser",uf),uf.prototype.parseMedia=uf.prototype.parseMedia,uf.prototype.setSequenceMode=uf.prototype.setSequenceMode,uf.prototype.parseInit=uf.prototype.parseInit;var pf=/^\[(\d{1,2}:\d{1,2}(?:[.,]\d{1,3})?)\](.*)/,hf=/^(\d+):(\d{1,2}(?:[.,]\d{1,3})?)$/;function mf(){}function gf(e,t,n,i,r,a,o,s,l,d,u){var p=e.parentNode;if(e.nodeType==Node.COMMENT_NODE)return null;if(e.nodeType==Node.TEXT_NODE){if(!u)return null;var h=document.createElement("span");h.textContent=e.textContent}else h=e;for(var m=null,g=c(Ff),f=g.next();!f.done&&!(m=wf(h,"backgroundImage",i,"#",f.value)[0]);f=g.next());if(g=u,("p"==e.nodeName||m)&&(u=!0),s="default"==(h.getAttribute("xml:space")||(s?"default":"preserve")),e=[],!(f=Array.from(h.childNodes).every((function(e){return e.no
2deType==Node.TEXT_NODE}))))for(var v=c(h.childNodes),b=v.next();!b.done;b=v.next())(b=gf(b.value,t,n,i,r,a,o,s,l,h,u))&&e.push(b);i=null!=d,v=/\S/.test(h.textContent);var y=h.hasAttribute("begin")||h.hasAttribute("end")||h.hasAttribute("dur");if(!(y||v||"br"==h.tagName||0!=e.length||i&&!s))return null;for(v=(b=Af(h,n)).start,b=b.end;p&&p.nodeType==Node.ELEMENT_NODE&&"tt"!=p.tagName;)v=(b=kf(p,n,v,b)).start,b=b.end,p=p.parentNode;if(null==v&&(v=0),v+=t,b=null==b?1/0:b+t,!y&&0<e.length)for(v=1/0,b=0,n=(t=c(e)).next();!n.done;n=t.next())n=n.value,v=Math.min(v,n.startTime),b=Math.max(b,n.endTime);if("br"==h.tagName)return(r=new ot(v,b,"")).lineBreak=!0,r;if(t="",f&&(t=h.textContent,s&&(t=(t=t.trim()).replace(/\s+/g," "))),(t=new ot(v,b,t)).nestedCues=e,u||(t.isContainer=!0),l&&(t.cellResolution=l),l=wf(h,"region",a,"")[0],h.hasAttribute("region")&&l&&l.getAttribute("xml:id")){var x=l.getAttribute("xml:id");t.region=o.filter((function(e){return e.id==x}))[0]}return o=l,d&&i&&!h.getAttribute("region")&&!h.getAttribute("style")&&(o=wf(d,"region",a,"")[0]),function(e,t,n,i,r,a,o){a=a||o,"rtl"==vf(t,n,r,"direction",a)&&(e.direction="rtl"),o=vf(t,n,r,"writingMode",a),"tb"==o||"tblr"==o?e.writingMode="vertical-lr":"tbrl"==o?e.writingMode="vertical-rl":"rltb"==o||"rl"==o?e.direction="rtl":o&&(e.direction=ht),(o=vf(t,n,r,"textAlign",!0))?(e.positionAlign=zf[o],e.lineAlign=Rf[o],e.textAlign=dt[o.toUpperCase()]):e.textAlign="start",(o=vf(t,n,r,"displayAlign",!0))&&(e.displayAlign=pt[o.toUpperCase()]);(o=vf(t,n,r,"color",a))&&(e.color=o);(o=vf(t,n,r,"backgroundColor",a))&&(e.backgroundColor=o);(o=vf(t,n,r,"border",a))&&(e.border=o);(o=vf(t,n,r,"fontFamily",a))&&(e.fontFamily=o);(o=vf(t,n,r,"fontWeight",a))&&"bold"==o&&(e.fontWeight=700),o=vf(t,n,r,"wrapOption",a),e.wrapLine=!o||"noWrap"!=o,(o=vf(t,n,r,"lineHeight",a))&&o.match(_f)&&(e.lineHeight=o),(o=vf(t,n,r,"fontSize",a))&&(o.match(_f)||o.match(Cf))&&(e.fontSize=o),(o=vf(t,n,r,"fontStyle",a))&&(e.fontStyle=kt[o.toUpperCase()]);if(i){o=i.getAttribute("imageType")||i.getAttribute("imagetype");var s=i.getAttribute("encoding");i=i.textContent.trim(),"PNG"==o&&"Base64"==s&&i&&(e.backgroundImage="data:image/png;base64,"+i)}(i=vf(t,n,r,"textOutline",a))&&(i=i.split(" "),i[0].match(_f)?e.textStrokeColor=e.color:(e.textStrokeColor=i[0],i.shift()),i[0]&&i[0].match(_f)?e.textStrokeWidth=i[0]:e.textStrokeColor="");(i=vf(t,n,r,"letterSpacing",a))&&i.match(_f)&&(e.letterSpacing=i),(i=vf(t,n,r,"linePadding",a))&&i.match(_f)&&(e.linePadding=i),(a=vf(t,n,r,"opacity",a))&&(e.opacity=parseFloat(a));(n=bf(n,r,"textDecoration"))&&ff(e,n),(t=yf(t,r,"textDecoration"))&&ff(e,t)}(t,h,o,m,r,g,0==e.length),t}function ff(e,t){for(var n=c(t.split(" ")),i=n.next();!i.done;i=n.next())switch(i.value){case"underline":e.textDecoration.includes("underline")||e.textDecoration.push("underline");break;case"noUnderline":e.textDecoration.includes("underline")&&it(e.textDecoration,"underline");break;case"lineThrough":e.textDecoration.includes("lineThrough")||e.textDecoration.push("lineThrough");break;case"noLineThrough":e.textDecoration.includes("lineThrough")&&it(e.textDecoration,"lineThrough");break;case"overline":e.textDecoration.includes("overline")||e.textDecoration.push("overline");break;case"noOverline":e.textDecoration.includes("overline")&&it(e.textDecoration,"overline")}}function vf(e,t,n,i,r){return r=void 0===r||r,(e=yf(e,n,i))?e:r?bf(t,n,i):null}function bf(e,t,n){if(!e)return null;var i=Gd(e,Uf,n);return i||xf(e,t,n)}function yf(e,t,n){var i=Gd(e,Uf,n);return i||xf(e,t,n)}function xf(e,t,n){e=wf(e,"style",t,"");for(var i=null,r=0;r<e.length;r++){var a=Hd(e[r],"urn:ebu:tt:style",n);a||(a=Gd(e[r],Uf,n)),a||(a=yf(e[r],t,n)),a&&(i=a)}return i}function wf(e,t,n,i,r){var a=[];if(!e||1>n.length)return a;var o=e;for(e=null;o&&!(e=r?Hd(o,r,t):o.getAttribute(t))&&(o=o.parentNode)instanceof Element;);if(t=e)for(r=(t=c(t.split(" "))).next();!r.done;r=t.next())for(r=r.value,o=(e=c(n)).next();!o.done;o=e.next())if(i+(o=o.value).getAttribute("xml:id")==r){a.push(o);break}return a}function kf(e,t,n,i){return e=Af(e,t),null==n?n=e.start:null!=e.start&&(n+=e.start),null==i?i=e.end:null!=e.start&&(i+=e.start),{start:n,end:i}}function Af(e,t){var n=Tf(e.getAttribute("begin"),t),i=Tf(e.getAttribute("end"),t),r=Tf(e.getAttribute("dur"),t);return null==i&&null!=r&&(i=n+r),{start:n,end:i}}function Tf(e,t){var n=null;if(Nf.test(e)){n=Nf.exec(e);var i=Number(n[1]),r=Number(n[2]),a=Number(n[3]),o=Number(n[4]);n=(a+=(o+=(Number(n[5])||0)/t.h)/t.frameRate)+60*r+3600*i}else if(Lf.test(e))n=Sf(Lf,e);else if(Pf.test(e))n=Sf(Pf,e);else if(Df.test(e))n=Df.exec(e),n=Number(n[1])/t.frameRate;else if(Mf.test(e))n=Mf.exec(e),n=Number(n[1])/t.g;else if(Of.test(e))n=Sf(Of,e);else if(e)throw new xe(2,2,2001,"Could not parse cue time range in TTML");return n}function Sf(e,t){var n=e.exec(t);return null==n||""==n[0]?null:(Number(n[4])||0)/1e3+(Number(n[3])||0)+60*(Number(n[2])||0)+3600*(Number(n[1])||0)}function Ef(e,t,n,i){this.frameRate=Number(e)||30,this.h=Number(t)||1,this.g=Number(i),0==this.g&&(this.g=e?this.frameRate*this.h:1),n&&(e=/^(\d+) (\d+)$/g.exec(n))&&(this.frameRate*=Number(e[1])/Number(e[2]))}pn["application/x-subtitle-lrc"]=function(){return new uf},mf.prototype.parseInit=function(){},mf.prototype.setSequenceMode=function(){},mf.prototype.parseMedia=function(e,t){var n=Bt(e),i=[],r=new DOMParser,a=null;if(""==n)return i;try{a=r.parseFromString(n,"text/xml")}catch(e){throw new xe(2,2,2005,"Failed to parse TTML.")}if(a){if(n=a.getElementsByTagName("parsererror")[0])throw new xe(2,2,2005,n.textContent);var o=a.getElementsByTagName("tt")[0];if(!o)throw new xe(2,2,2005,"TTML does not contain <tt> tag.");if(!(a=o.getElementsByTagName("body")[0]))return[];var s=Gd(o,Bf,"frameRate"),l=Gd(o,Bf,"subFrameRate"),d=Gd(o,Bf,"frameRateMultiplier"),u=Gd(o,Bf,"tickRate"),p=Gd(o,Bf,"cellResolution");if(n=o.getAttribute("xml:space")||"default",r=Gd(o,Uf,"extent"),"default"!=n&&"preserve"!=n)throw new xe(2,2,2005,"Invalid xml:space value: "+n);n="default"==n,s=new Ef(s,l,d,u),p=p&&(p=/^(\d+) (\d+)$/.exec(p))?{columns:parseInt(p[1],10),rows:parseInt(p[2],10)}:null,l=(l=o.getElementsByTagName("metadata")[0])?function(e){return Array.from(e.childNodes).filter((function(e){return e instanceof Element}))}(l):[],d=Array.from(o.getElementsByTagName("style")),u=[];for(var h=c(o=Array.from(o.getElementsByTagName("region"))),m=h.next();!m.done;m=h.next()){var g=m.value;m=new At;var f=g.getAttribute("xml:id");if(f){m.id=f;var v,b,y=null;r&&(y=If.exec(r)||jf.exec(r)),f=y?Number(y[1]):null,y=y?Number(y[2]):null,(v=bf(g,d,"extent"))&&(null!=(v=(b=If.exec(v))||jf.exec(v))&&(m.width=Number(v[1]),m.height=Number(v[2]),b||(null!=f&&(m.width=100*m.width/f),null!=y&&(m.height=100*m.height/y)),m.widthUnits=b||null!=f?Tt:0,m.heightUnits=b||null!=y?Tt:0)),(g=bf(g,d,"origin"))&&(null!=(v=(b=If.exec(g))||jf.exec(g))&&(m.viewportAnchorX=Number(v[1]),m.viewportAnchorY=Number(v[2]),b||(null!=y&&(m.viewportAnchorY=100*m.viewportAnchorY/y),null!=f&&(m.viewportAnchorX=100*m.viewportAnchorX/f)),m.viewportAnchorUnits=b||null!=f?Tt:0))}else m=null;m&&u.push(m)}if(Vd(a,"p").length)throw new xe(2,2,2001,"<p> can only be inside <div> in TTML");for(h=(r=c(Vd(a,"div"))).next();!h.done;h=r.next())if(Vd(h.value,"span").length)throw new xe(2,2,2001,"<span> can only be inside <p> in TTML");(a=gf(a,t.periodStart,s,l,d,o,u,n,p,null,!1))&&i.push(a)}return i},F("shaka.text.TtmlTextParser",mf),mf.prototype.parseMedia=mf.prototype.parseMedia,mf.prototype.setSequenceMode=mf.prototype.setSequenceMode,mf.prototype.parseInit=mf.prototype.parseInit;var If=/^(\d{1,2}(?:\.\d+)?|100(?:\.0+)?)% (\d{1,2}(?:\.\d+)?|100(?:\.0+)?)%$/,Cf=/^(\d{1,2}(?:\.\d+)?|100)%$/,_f=/^(\d+px|\d+em|\d*\.?\d+c)$/,jf=/^(\d+)px (\d+)px$/,Nf=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,Lf=/^(?:(\d{2,}):)?(\d{2}):(\d{2})$/,Pf=/^(?:(\d{2,}):)?(\d{2}):(\d{2}\.\d{2,})$/,Df=/^(\d*(?:\.\d*)?)f$/,Mf=/^(\d*(?:\.\d*)?)t$/,Of=RegExp("^(?:(\\d*(?:\\.\\d*)?)h)?(?:(\\d*(?:\\.\\d*)?)m)?(?:(\\d*(?:\\.\\d*)?)s)?(?:(\\d*(?:\\.\\d*)?)ms)?$"),Rf={left:ft,center:"center",right:"end",start:ft,end:"end"},zf={left:"line-left",center:"center",right:"line-right"},Bf=["http://www.w3.org/ns/ttml#parameter","http://www.w3.org/2006/10/ttaf1#parameter"],Uf=["http://www.w3.org/ns/ttml#styling","http://www.w3.org/2006/10/ttaf1#styling"],Ff=["http://www.smpte-ra.org/schemas/2052-1/2010/smpte-tt","http://www.smpte-ra.org/schemas/2052-1/2013/smpte-tt"];function Vf(){this.g=new mf}function qf(){this.g=!1}function Hf(e){for(var t=c(Object.entries(bt)),n=t.next();!n.done;n=t.next()){var i=c(n.value);n=i.next().value,i=i.next().value;var r=new ot(0,0,"");r.color=i,e.set(n,r)}for(n=(t=c(Object.entries(yt))).next();!n.done;n=t.next())n=(i=c(n.value)).next().value,i=i.next().value,(r=new ot(0,0,"")).backgroundColor=i,e.set(n,r)}function Gf(e,t,n){0===n.size&&Hf(n),e=function(e){for(var t=[],n=-1,i="",r=0;r<e.length;r++)if("/"===e[r]){var a=e.indexOf(">",r);if(a<=r)return e;a=e.substring(r+1,a);var o=t.pop();if(!a||!o)return e;if(o===a)i+="/"+a+">";else{if(!o.startsWith("c.")||"c"!==a)return e;i+="/"+o+">"}r+=a.length+1}else"<"===e[r]?n=r+1:">"===e[r]&&0<n&&(t.push(e.substr(n,r-n)),n=-1),i+=e[r];return i}(e);var i=iu("<span>"+e+"</span>","span");if(i){var r=[];if(1==(i=i.childNodes).length){var a=i[0];if(a.nodeType==Node.TEXT_NODE||a.nodeType==Node.CDATA_SECTION_NODE)return void(t.payload=e)}for(i=(e=c(i)).next();!i.done;i=e.next())$f(i.value,t,r,n);t.nestedCues=r}else t.payload=e}function Kf(e,t){return e&&0<e.length?e:t}function $f(e,t,n,i){var r=t.clone();if(e.nodeType===Node.ELEMENT_NODE&&e.nodeName)for(var a=c(e.nodeName.split(/[ .]+/)),o=a.next();!o.done;o=a.next()){if(o=o.value,i.has(o)){var s=i.get(o);s&&(r.backgroundColor=Kf(s.backgroundColor,r.backgroundColor),r.color=Kf(s.color,r.color),r.fontFamily=Kf(s.fontFamily,r.fontFamily),r.fontSize=Kf(s.fontSize,r.fontSize),r.fontWeight=s.fontWeight,r.fontStyle=s.fontStyle,r.opacity=s.opacity,r.wrapLine=s.wrapLine)}switch(o){case"b":r.fontWeight=700;break;case"i":r.fontStyle="italic";break;case"u":r.textDecoration.push("underline")}}if($d(e))for(a=!0,i=c(e.textContent.split("\n")),e=i.next();!e.done;e=i.next())e=e.value,a||((a=t.clone()).lineBreak=!0,n.push(a)),0<e.length&&((a=r.clone()).payload=e,n.push(a)),a=!1;else for(e=(t=c(e.childNodes)).next();!e.done;e=t.next())$f(e.value,r,n,i)}function Wf(e,t,n){var i;(i=/^align:(start|middle|center|end|left|right)$/.exec(t))?(t=i[1],e.textAlign="middle"==t?ct:dt[t.toUpperCase()]):(i=/^vertical:(lr|rl)$/.exec(t))?e.writingMode="lr"==i[1]?"vertical-lr":"vertical-rl":(i=/^size:([\d.]+)%$/.exec(t))?e.size=Number(i[1]):(i=/^position:([\d.]+)%(?:,(line-left|line-right|center|start|end))?$/.exec(t))?(e.position=Number(i[1]),i[2]&&(t=i[2],e.positionAlign="line-left"==t||"start"==t?"line-left":"line-right"==t||"end"==t?"line-right":"center")):(i=/^regi
2on:(.*)$/.exec(t))?(t=function(e,t){var n=e.filter((function(e){return e.id==t}));return n.length?n[0]:null}(n,i[1]))&&(e.region=t):(n=/^line:([\d.]+)%(?:,(start|end|center))?$/.exec(t))?(e.lineInterpretation=1,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()])):(n=/^line:(-?\d+)(?:,(start|end|center))?$/.exec(t))&&(e.lineInterpretation=gt,e.line=Number(n[1]),n[2]&&(e.lineAlign=vt[n[2].toUpperCase()]))}function Xf(e){if(null==(e=Cp(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function Yf(){this.g=null}function Jf(e,t,n){var i,r,a;return(new Sr).box("payl",Cr((function(e){i=Bt(e)}))).box("iden",Cr((function(e){r=Bt(e)}))).box("sttg",Cr((function(e){a=Bt(e)}))).parse(e),i?function(e,t,n,i,r){if(i=new ot(i,r,""),Gf(e,i,new Map),t&&(i.id=t),n)for(e=new Ep(n),t=_p(e);t;)Wf(i,t,[]),Ip(e),t=_p(e);return i}(i,r,a,t,n):null}function Zf(){}function Qf(e){if(null==(e=Cp(e,/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g)))return null;var t=Number(e[2]),n=Number(e[3]);return 59<t||59<n?null:Number(e[4])/1e3+n+60*t+3600*(Number(e[1])||0)}function ev(){this.g=new qf}function tv(e){var t="WEBVTT\n\n";if(""==e)return t;for(var n=(e=c((e=(e=e.replace(/\r+/g,"")).trim()).split("\n\n"))).next();!n.done;n=e.next())(n=n.value.split(/\n/))[0].match(/\d+/)&&n.shift(),n[0]=n[0].replace(/,/g,"."),t+=n.join("\n")+"\n\n";return t}function nv(){}function iv(e,t){var n=t.Fontname;if(n&&(e.fontFamily=n),(n=t.Fontsize)&&(e.fontSize=n+"px"),(n=t.PrimaryColour)&&(n=rv(n))&&(e.color=n),(n=t.BackColour)&&(n=rv(n))&&(e.backgroundColor=n),t.Bold&&(e.fontWeight=700),t.Italic&&(e.fontStyle="italic"),t.Underline&&e.textDecoration.push("underline"),(n=t.Spacing)&&(e.letterSpacing=n+"px"),n=t.Alignment)switch(parseInt(n,10)){case 1:e.displayAlign=ut,e.textAlign="start";break;case 2:e.displayAlign=ut,e.textAlign=ct;break;case 3:e.displayAlign=ut,e.textAlign="end";break;case 5:e.displayAlign="before",e.textAlign="start";break;case 6:e.displayAlign="before",e.textAlign=ct;break;case 7:e.displayAlign="before",e.textAlign="end";break;case 9:e.displayAlign="center",e.textAlign="start";break;case 10:e.displayAlign="center",e.textAlign=ct;break;case 11:e.displayAlign="center",e.textAlign="end"}(n=t.AlphaLevel)&&(e.opacity=parseFloat(n))}function rv(e){return 0<=(e=parseInt(e.replace("&H",""),16))?"rgba("+(255&e)+","+(e>>8&255)+","+(e>>16&255)+","+(e>>24&255^255)/255+")":null}function av(e){return 3600*((e=uv.exec(e))[1]?parseInt(e[1].replace(":",""),10):0)+60*parseInt(e[2],10)+parseFloat(e[3])}pn["application/ttml+xml"]=function(){return new mf},Vf.prototype.parseInit=function(e){var t=!1;if((new Sr).box("moov",Er).box("trak",Er).box("mdia",Er).box("minf",Er).box("stbl",Er).Y("stsd",Ir).box("stpp",(function(e){t=!0,e.parser.stop()})).parse(e),!t)throw new xe(2,2,2007)},Vf.prototype.setSequenceMode=function(){},Vf.prototype.parseMedia=function(e,t){var n=this,i=!1,r=[];if((new Sr).box("mdat",Cr((function(e){i=!0,r=r.concat(n.g.parseMedia(e,t))}))).parse(e,!1),!i)throw new xe(2,2,2007);return r},F("shaka.text.Mp4TtmlParser",Vf),Vf.prototype.parseMedia=Vf.prototype.parseMedia,Vf.prototype.setSequenceMode=Vf.prototype.setSequenceMode,Vf.prototype.parseInit=Vf.prototype.parseInit,pn['application/mp4; codecs="stpp"']=function(){return new Vf},pn['application/mp4; codecs="stpp.ttml"']=function(){return new Vf},pn['application/mp4; codecs="stpp.ttml.im1t"']=function(){return new Vf},pn['application/mp4; codecs="stpp.TTML.im1t"']=function(){return new Vf},qf.prototype.parseInit=function(){},qf.prototype.setSequenceMode=function(e){this.g=e},qf.prototype.parseMedia=function(e,t){var n=Bt(e),i=(n=n.replace(/\r\n|\r(?=[^\n]|$)/gm,"\n")).split(/\n{2,}/m);if(!/^WEBVTT($|[ \t\n])/m.test(i[0]))throw new xe(2,2,2e3);if(n=t.periodStart,i[0].includes("X-TIMESTAMP-MAP")&&!this.g){var r=i[0].match(/LOCAL:((?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{3}))/m),a=i[0].match(/MPEGTS:(\d+)/m);if(r&&a){if(null==(n=Xf(new Ep(r[1]))))throw new xe(2,2,2e3);for(a=Number(a[1]),r=t.segmentStart;95443.7176888889<=r;)r-=95443.7176888889,a+=8589934592;n=t.periodStart+a/9e4-n}}a=[];for(var o=(r=c(i[0].split("\n"))).next();!o.done;o=r.next())if(o=o.value,/^Region:/.test(o)){o=new Ep(o);var s=new At;_p(o),Ip(o);for(var l=_p(o);l;){var d=s,u=l;(l=/^id=(.*)$/.exec(u))?d.id=l[1]:(l=/^width=(\d{1,2}|100)%$/.exec(u))?d.width=Number(l[1]):(l=/^lines=(\d+)$/.exec(u))?(d.height=Number(l[1]),d.heightUnits=2):(l=/^regionanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.regionAnchorX=Number(l[1]),d.regionAnchorY=Number(l[2])):(l=/^viewportanchor=(\d{1,2}|100)%,(\d{1,2}|100)%$/.exec(u))?(d.viewportAnchorX=Number(l[1]),d.viewportAnchorY=Number(l[2])):/^scroll=up$/.exec(u)&&(d.scroll="up"),Ip(o),l=_p(o)}a.push(s)}for(Hf(r=new Map),o=[],s=(i=c(i.slice(1))).next();!s.done;s=i.next()){if((1!=(s=s.value.split("\n")).length||s[0])&&!/^NOTE($|[ \t])/.test(s[0])&&"STYLE"==s[0]&&s[1].includes("::cue")){d="global",(l=s[1].match(/\((.*)\)/))&&(d=l.pop()),l=s.slice(2,-1),s[1].includes("}")&&(u=/\{(.*?)\}/.exec(s[1]))&&(l=u[1].split(";")),u=new ot(0,0,"");for(var p=!1,h=0;h<l.length;h++){var m=/^\s*([^:]+):\s*(.*)/.exec(l[h]);if(m){var g=m[2].trim().replace(";","");switch(m[1].trim()){case"background-color":p=!0,u.backgroundColor=g;break;case"color":p=!0,u.color=g;break;case"font-family":p=!0,u.fontFamily=g;break;case"font-size":p=!0,u.fontSize=g;break;case"font-weight":700<=parseInt(g,10)&&(p=!0,u.fontWeight=700);break;case"font-style":switch(g){case"normal":p=!0,u.fontStyle=wt;break;case"italic":p=!0,u.fontStyle="italic";break;case"oblique":p=!0,u.fontStyle="oblique"}break;case"opacity":p=!0,u.opacity=parseFloat(g);break;case"white-space":p=!0,u.wrapLine="noWrap"!=g}}}p&&r.set(d,u)}if(h=n,1==s.length&&!s[0]||/^NOTE($|[ \t])/.test(s[0])||"STYLE"==s[0])s=null;
2else{if(d=null,s[0].includes("--\x3e")||(d=s[0],s.splice(0,1)),u=Xf(l=new Ep(s[0])),m=Cp(l,/[ \t]+--\x3e[ \t]+/g),p=Xf(l),null==u||null==m||null==p)throw new xe(2,2,2001,"Could not parse cue time range in WebVTT");for(u+=h,p+=h,h=s.slice(1).join("\n").trim(),r.has("global")?((s=r.get("global").clone()).startTime=u,s.endTime=p,s.payload=""):s=new ot(u,p,""),Gf(h,s,r),Ip(l),u=_p(l);u;)Wf(s,u,a),Ip(l),u=_p(l);null!=d&&(s.id=d)}s&&o.push(s)}return o},F("shaka.text.VttTextParser",qf),qf.prototype.parseMedia=qf.prototype.parseMedia,qf.prototype.setSequenceMode=qf.prototype.setSequenceMode,qf.prototype.parseInit=qf.prototype.parseInit,pn["text/vtt"]=function(){return new qf},pn['text/vtt; codecs="vtt"']=function(){return new qf},pn['text/vtt; codecs="wvtt"']=function(){return new qf},Yf.prototype.parseInit=function(e){var t=this,n=!1;if((new Sr).box("moov",Er).box("trak",Er).box("mdia",Er).Y("mdhd",(function(e){e=Fa(e.reader,e.version),t.g=e.timescale})).box("minf",Er).box("stbl",Er).Y("stsd",Ir).box("wvtt",(function(){n=!0})).parse(e),!this.g)throw new xe(2,2,2008);if(!n)throw new xe(2,2,2008)},Yf.prototype.setSequenceMode=function(){},Yf.prototype.parseMedia=function(e,t){if(!this.g)throw new xe(2,2,2008);var n,i=0,r=[],a=[],o=!1,s=!1,l=!1,d=null;if((new Sr).box("moof",Er).box("traf",Er).Y("tfdt",(function(e){o=!0,i=Ua(e.reader,e.version).Ne})).Y("tfhd",(function(e){d=Ba(e.reader,e.flags).Xe})).Y("trun",(function(e){s=!0,r=Va(e.reader,e.version,e.flags).uf})).box("mdat",Cr((function(e){l=!0,n=e}))).parse(e,!1),!l&&!o&&!s)throw new xe(2,2,2008);for(var u=i,p=new kr(n,0),h=c(r),m=h.next();!m.done;m=h.next()){var g=(m=m.value).me||d,f=m.ud?i+m.ud:u;u=f+(g||0);var v=0;do{var b=p.P();v+=b;var y=null;"vttc"==jr(p.P())?8<b&&(y=p.Eb(b-8)):p.skip(b-8),g&&y&&(b=Jf(y,t.periodStart+f/this.g,t.periodStart+u/this.g),a.push(b))}while(m.sampleSize&&v<m.sampleSize)}return a.filter(Ce)},F("shaka.text.Mp4VttParser",Yf),Yf.prototype.parseMedia=Yf.prototype.parseMedia,Yf.prototype.setSequenceMode=Yf.prototype.setSequenceMode,Yf.prototype.parseInit=Yf.prototype.parseInit,pn['application/mp4; codecs="wvtt"']=function(){return new Yf},Zf.prototype.parseInit=function(){},Zf.prototype.setSequenceMode=function(){},Zf.prototype.parseMedia=function(e){var t=Bt(e).replace(/\r+/g,"");if(e=[],""==(t=t.trim()))return e;for(var n=(t=c(t.split("\n\n"))).next();!n.done;n=t.next()){var i=new Ep((n=n.value.split("\n"))[0]),r=Qf(i),a=Cp(i,/,/g);if(i=Qf(i),null==r||null==a||null==i)throw new xe(2,2,2001,"Could not parse cue time range in SubViewer");e.push(new ot(r,i,n.slice(1).join("\n").trim()))}return e},F("shaka.text.SbvTextParser",Zf),Zf.prototype.parseMedia=Zf.prototype.parseMedia,Zf.prototype.setSequenceMode=Zf.prototype.setSequenceMode,Zf.prototype.parseInit=Zf.prototype.parseInit,pn["text/x-subviewer"]=function(){return new Zf},ev.prototype.parseInit=function(){},ev.prototype.setSequenceMode=function(){},ev.prototype.parseMedia=function(e,t){var n=Bt(e);return n=jt(Vt(n=tv(n))),this.g.parseMedia(n,t)},F("shaka.text.SrtTextParser",ev),ev.srt2webvtt=tv,ev.prototype.parseMedia=ev.prototype.parseMedia,ev.prototype.setSequenceMode=ev.prototype.setSequenceMode,ev.prototype.parseInit=ev.prototype.parseInit,pn["text/srt"]=function(){return new ev},nv.prototype.parseInit=function(){},nv.prototype.setSequenceMode=function(){},nv.prototype.parseMedia=function(e){for(var t="",n="",i=(e=c(e=Bt(e).split(/\r?\n\s*\r?\n/))).next();!i.done;i=e.next()){var r=lv.exec(i.value);r&&(i=r[1],r=r[2],"V4 Styles"==i||"V4+ Styles"==i?t=r:"Events"==i&&(n=r))}e=[],i=null;for(var a=(t=c(t.split(/\r?\n/))).next();!a.done;a=t.next())if(r=a.value,!/^\s*;/.test(r)&&(a=cv.exec(r)))if(r=a[1].trim(),a=a[2].trim(),"Format"==r)i=a.split(dv);else if("Style"==r){r=a.split(dv),a={};for(var o=0;o<i.length&&o<r.length;o++)a[i[o]]=r[o];e.push(a)}for(i=[],t=null,r={},a=(n=c(n.split(/\r?\n/))).next();!a.done;r={Md:r.Md},a=n.next())if(a=a.value,!/^\s*;/.test(a)&&(o=cv.exec(a)))if(a=o[1].trim(),o=o[2].trim(),"Format"==a)t=o.split(dv);else if("Dialogue"==a){o=o.split(dv),a={};for(var s=0;s<t.length&&s<o.length;s++)a[t[s]]=o[s];o=new ot(s=av(a.Start),av(a.End),o.slice(t.length-1).join(",").replace(/\\N/g,"\n").replace(/\{[^}]+\}
2/g,"")),r.Md=a.Style,(a=e.find(function(e){return function(t){return t.Name==e.Md}}(r)))&&iv(o,a),i.push(o)}return i},F("shaka.text.SsaTextParser",nv),nv.prototype.parseMedia=nv.prototype.parseMedia,nv.prototype.setSequenceMode=nv.prototype.setSequenceMode,nv.prototype.parseInit=nv.prototype.parseInit;var ov,sv,lv=/^\s*\[([^\]]+)\]\r?\n([\s\S]*)/,cv=/^\s*([^:]+):\s*(.*)/,dv=/\s*,\s*/,uv=/^(\d+:)?(\d{1,2}):(\d{1,2}(?:[.]\d{1,3})?)?$/;function pv(){}function hv(){ov?console.debug("EmeEncryptionSchemePolyfill: Already installed."):navigator.requestMediaKeySystemAccess&&MediaKeySystemAccess.prototype.getConfiguration?(ov=navigator.requestMediaKeySystemAccess,console.debug("EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.requestMediaKeySystemAccess=mv):console.debug("EmeEncryptionSchemePolyfill: EME not found")}function mv(e,t){var n,i=this;return P((function(r){return 1==r.g?(console.assert(i==navigator,'bad "this" for requestMediaKeySystemAccess'),x(r,ov.call(i,e,t),2)):Av(n=r.h)?(console.debug("EmeEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.requestMediaKeySystemAccess=ov,r.return(n)):(console.debug("EmeEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.requestMediaKeySystemAccess=gv,r.return(gv.call(i,e,t)))}))}function gv(e,t){var n,i,r,a,o,s,l,d,u,p,h=this;return P((function(m){if(1==m.g){for(console.assert(h==navigator,'bad "this" for requestMediaKeySystemAccess'),n=kv(e),i=[],r=c(t),a=r.next();!a.done;a=r.next())o=a.value,s=fv(o.videoCapabilities,n),l=fv(o.audioCapabilities,n),o.videoCapabilities&&o.videoCapabilities.length&&!s.length||o.audioCapabilities&&o.audioCapabilities.length&&!l.length||((d=Object.assign({},o)).videoCapabilities=s,d.audioCapabilities=l,i.push(d));if(!i.length)throw(u=Error("Unsupported keySystem or supportedConfigurations.")).name="NotSupportedError",u.code=DOMException.NOT_SUPPORTED_ERR,u;return x(m,ov.call(h,e,i),2)}return p=m.h,m.return(new wv(p,n))}))}function fv(e,t){return e?e.filter((function(e){return!e.encryptionScheme||e.encryptionScheme==t})):e}function vv(){}function bv(){sv?console.debug("McEncryptionSchemePolyfill: Already installed."):navigator.mediaCapabilities?(sv=navigator.mediaCapabilities.decodingInfo,console.debug("McEncryptionSchemePolyfill: Waiting to detect encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=yv):console.debug("McEncryptionSchemePolyfill: MediaCapabilities not found")}function yv(e){var t,n,i=this;return P((function(r){return 1==r.g?(console.assert(i==navigator.mediaCapabilities,'bad "this" for decodingInfo'),x(r,sv.call(i,e),2)):(t=r.h,e.keySystemConfiguration?(n=t.keySystemAccess)&&Av(n)?(console.debug("McEncryptionSchemePolyfill: Native encryptionScheme support found."),navigator.mediaCapabilities.decodingInfo=sv,r.return(t)):(console.debug("McEncryptionSchemePolyfill: No native encryptionScheme support found. Patching encryptionScheme support."),navigator.mediaCapabilities.decodingInfo=xv,r.return(xv.call(i,e))):r.return(t))}))}function xv(e){var t,n,i,r,a,o,s,l,c,d=this;return P((function(u){switch(u.g){case 1:return console.assert(d==navigator.mediaCapabilities,'bad "this" for decodingInfo'),t=null,e.keySystemConfiguration&&(n=e.keySystemConfiguration,i=n.keySystem,r=n.audio&&n.audio.encryptionScheme,a=n.video&&n.video.encryptionScheme,t=kv(i),o={powerEfficient:!1,smooth:!1,supported:!1,keySystemAccess:null,configuration:e},r&&r!=t||a&&a!=t)?u.return(o):x(u,sv.call(d,e),2);case 2:if((s=u.h).keySystemAccess){s.keySystemAccess=new wv(s.keySystemAccess,t),u.D(3);break}if(!e.keySystemConfiguration){u.D(3);break}var p=e.keySystemConfiguration,h=[],m=[];return p.audio&&h.push({robustness:p.audio.robustness||"",contentType:e.audio.contentType}),p.video&&m.push({robustness:p.video.robustness||"",contentType:e.video.contentType}),p={initDataTypes:p.initDataType?[p.initDataType]:[],distinctiveIdentifier:p.distinctiveIdentifier,persistentState:p.persistentState,sessionTypes:p.sessionTypes},h.length&&(p.audioCapabilities=h),m.length&&(p.videoCapabilities=m),l=p,c=s,x(u,navigator.requestMediaKeySystemAccess(e.keySystemConfiguration.keySystem,[l]),5);case 5:c.keySystemAccess=u.h;case 3:return u.return(s)}}))}function wv(e,t){this.h=e,this.g=t,this.keySystem=e.keySystem}function kv(e){return e.startsWith("com.widevine")||e.startsWith("com.microsoft")||e.startsWith("com.adobe")||e.startsWith("org.w3")?"cenc":e.startsWith("com.apple")?"cbcs-1-9":(console.warn("EmeEncryptionSchemePolyfill: Unknown key system:",e,"Please contribute!"),null)}function Av(e){var t=(e=e.getConfiguration()).audioCapabilities&&e.audioCapabilities[0];return!(!(e=e.videoCapabilities&&e.videoCapabilities[0]||t)||void 0===e.encryptionScheme)}function Tv(){}function Sv(){hv(),bv()}pn["text/x-ssa"]=function(){return new nv},F("EmeEncryptionSchemePolyfill",pv),pv.install=hv,F("McEncryptionSchemePolyfill",vv),vv.
2install=bv,wv.prototype.getConfiguration=function(){var e=this.h.getConfiguration();if(e.videoCapabilities)for(var t=c(e.videoCapabilities),n=t.next();!n.done;n=t.next())n.value.encryptionScheme=this.g;if(e.audioCapabilities)for(n=(t=c(e.audioCapabilities)).next();!n.done;n=t.next())n.value.encryptionScheme=this.g;return e},wv.prototype.createMediaKeys=function(){return this.h.createMediaKeys()},F("EncryptionSchemePolyfills",Tv),Tv.install=Sv,void 0!==n&&n.exports&&(n.exports=Tv);for(var Ev={ach:{s:"Lwo",u:"Acholi"},ady:{s:"Адыгэбзэ",u:"Adyghe"},af:{s:"Afrikaans",u:"Afrikaans"},"af-NA":{s:"Afrikaans (Namibia)",u:"Afrikaans (Namibia)"},"af-ZA":{s:"Afrikaans (South Africa)",u:"Afrikaans (South Africa)"},ak:{s:"Tɕɥi",u:"Akan"},ar:{s:"العربية",u:"Arabic"},"ar-AR":{s:"العربية",u:"Arabic"},"ar-MA":{s:"العربية",u:"Arabic (Morocco)"},"ar-SA":{s:"العربية (السعودية)",u:"Arabic (Saudi Arabia)"},"ay-BO":{s:"Aymar aru",u:"Aymara"},az:{s:"Azərbaycan dili",u:"Azerbaijani"},"az-AZ":{s:"Azərbaycan dili",u:"Azerbaijani"},"be-BY":{s:"Беларуская",u:"Belarusian"},bg:{s:"Български",u:"Bulgarian"},"bg-BG":{s:"Български",u:"Bulgarian"},bn:{s:"বাংলা",u:"Bengali"},"bn-IN":{s:"বাংলা (ভারত)",u:"Bengali (India)"},"bn-BD":{s:"বাংলা(বাংলাদেশ)",u:"Bengali (Bangladesh)"},"bs-BA":{s:"Bosanski",u:"Bosnian"},ca:{s:"Català",u:"Catalan"},"ca-ES":{s:"Català",u:"Catalan"},cak:{s:"Maya Kaqchikel",u:"Kaqchikel"},"ck-US":{s:"ᏣᎳᎩ (tsalagi)",u:"Cherokee"},cs:{s:"Čeština",u:"Czech"},"cs-CZ":{s:"Čeština",u:"Czech"},cy:{s:"Cymraeg",u:"Welsh"},"cy-GB":{s:"Cymraeg",u:"Welsh"},da:{s:"Dansk",u:"Danish"},"da-DK":{s:"Dansk",u:"Danish"},de:{s:"Deutsch",u:"German"},"de-AT":{s:"Deutsch (Österreich)",u:"German (Austria)"},"de-DE":{s:"Deutsch (Deutschland)",u:"German (Germany)"},"de-CH":{s:"Deutsch (Schweiz)",u:"German (Switzerland)"},dsb:{s:"Dolnoserbšćina",u:"Lower Sorbian"},el:{s:"Ελληνικά",u:"Greek"},"el-GR":{s:"Ελληνικά",u:"Greek (Greece)"},en:{s:"English",u:"English"},"en-GB":{s:"English (UK)",u:"English (UK)"},"en-AU":{s:"English (Australia)",u:"English (Australia)"},"en-CA":{s:"English (Canada)",u:"English (Canada)"},"en-IE":{s:"English (Ireland)",u:"English (Ireland)"},"en-IN":{s:"English (India)",u:"English (India)"},"en-PI":{s:"English (Pirate)",u:"English (Pirate)"},"en-UD":{s:"English (Upside Down)",u:"English (Upside Down)"},"en-US":{s:"English (US)",u:"English (US)"},"en-ZA":{s:"English (South Africa)",u:"English (South Africa)"},"en@pirate":{s:"English (Pirate)",u:"English (Pirate)"},eo:{s:"Esperanto",u:"Esperanto"},"eo-EO":{s:"Esperanto",u:"Esperanto"},es:{s:"Español",u:"Spanish"},"es-AR":{s:"Español (Argentine)",u:"Spanish (Argentina)"},"es-419":{s:"Español (Latinoamérica)",u:"Spanish (Latin America)"},"es-CL":{s:"Español (Chile)",u:"Spanish (Chile)"},"es-CO":{s:"Español (Colombia)",u:"Spanish (Colombia)"},"es-EC":{s:"Español (Ecuador)",u:"Spanish (Ecuador)"},"es-ES":{s:"Español (España)",u:"Spanish (Spain)"},"es-LA":{s:"Español (Latinoamérica)",u:"Spanish (Latin America)"},"es-NI":{s:"Español (Nicaragua)",u:"Spanish (Nicaragua)"},"es-MX":{s:"Español (México)",u:"Spanish (Mexico)"},"es-US":{s:"Español (Estados Unidos)",u:"Spanish (United States)"},"es-VE":{s:"Español (Venezuela)",u:"Spanish (Venezuela)"},et:{s:"eesti keel",u:"Estonian"},"et-EE":{s:"Eesti (Estonia)",u:"Estonian (Estonia)"},eu:{s:"Euskara",u:"Basque"},"eu-ES":{s:"Euskara",u:"Basque"},fa:{s:"فارسی",u:"Persian"},"fa-IR":{s:"فارسی",u:"Persian"},"fb-LT":{s:"Leet Speak",u:"Leet"},ff:{s:"Fulah",u:"Fulah"},fi:{s:"Suomi",u:"Finnish"},"fi-FI":{s:"Suomi",u:"Finnish"},"fo-FO":{s:"Føroyskt",u:"Faroese"},fr:{s:"Français",u:"French"},"fr-CA":{s:"Français (Canada)",u:"French (Canada)"},"fr-FR":{s:"Français (France)",u:"French (France)"},"fr-BE":{s:"Français (Belgique)",u:"French (Belgium)"},"fr-CH":{s:"Français (Suisse)",u:"French (Switzerland)"},"fy-NL":{s:"Frysk",u:"Frisian (West)"},ga:{s:"Gaeilge",u:"Irish"},"ga-IE":{s:"Gaeilge (Gaelic)",u:"Irish (Gaelic)"},gl:{s:"Galego",u:"Galician"},"gl-ES":{s:"Galego",u:"Galician"},"gn-PY":{s:"Avañe'ẽ",u:"Guarani"},"gu-IN":{s:"ગુજરાતી",u:"Gujarati"},"gx-GR":{s:"Ἑλληνική ἀρχαία",u:"Classical Greek"},he:{s:"עברית‏",u:"Hebrew"},"he-IL":{s:"עברית‏",u:"Hebrew"},hi:{s:"हिन्दी",u:"Hindi"},"hi-IN":{s:"हिन्दी",u:"Hindi"},hr:{s:"Hrvatski",u:"Croatian"},"hr-HR":{s:"Hrvatski",u:"Croatian"},hsb:{s:"Hornjoserbšćina",u:"Upper Sorbian"},ht:{s:"Kreyòl",u:"Haitian Creole"},hu:{s:"Magyar",u:"Hungarian"},"hu-HU":{s:"Magyar",u:"Hungarian"},"hy-AM":{s:"Հայերեն",u:"Armenian"},id:{s:"Bahasa Indonesia",u:"Indonesian"},"id-ID":{s:"Bahasa Indonesia",u:"Indonesian"},is:{s:"Íslenska",u:"Icelandic"},"is-IS":{s:"Íslenska (Iceland)",u:"Icelandic (Iceland)"},it:{s:"Italiano",u:"Italian"},"it-IT":{s:"Italiano",u:"Italian"},ja:{s:"日本語",u:"Japanese"},"ja-JP":{s:"日本語",u:"Japanese"},"jv-ID":{s:"Basa Jawa",u:"Javanese"},"ka-GE":{s:"ქართული",u:"Georgian"},"kk-KZ":{s:"Қазақша",u:"Kazakh"},km:{s:"ភាសាខ្មែរ",u:"Khmer"},"km-KH":{s:"ភាសាខ្មែរ",u:"Khmer"},kab:{s:"Taqbaylit",u:"Kabyle"},kn:{s:"ಕನ್ನಡ",u:"Kannada"},"kn-IN":{s:"ಕನ್ನಡ (India)",u:"Kannada (India)"},ko:{s:"한국어",u:"Korean"},"ko-KR":{s:"한국어 (韩国)",u:"Korean (Korea)"},ku:{s:"Kurdî",u:"Kurdish"},"ku-TR":{s:"Kurdî",u:"Kurdish"},la:{s:"Latin",u:"Latin"},"la-VA":{s:"Latin",u:"Latin"},lb:{s:"Lëtzebuergesch",u:"Luxembourgish"},"li-NL":{s:"Lèmbörgs",u:"Limburgish"},lt:{s:"Lietuvių",u:"Lithuanian"},"lt-LT":{s:"Lietuvių",u:"Lithuanian"},lv:{s:"Latviešu",u:"Latvian"},"lv-LV":{s:"Latviešu",u:"Latvian"},mai:{s:"मैथिली, মৈথিলী",u:"Maithili"},"mg-MG":{s:"Malagasy",u:"Malagasy"},mk:{s:"Македонски",u:"Macedonian"},"mk-MK":{s:"Македонски (Македонски)",u:"Macedonian (Macedonian)"},ml:{s:"മലയാളം",u:"Malayalam"},"ml-IN":{s:"മലയാളം",u:"Malayalam"},"mn-MN":{s:"Монгол",u:"Mongolian"},mr:{s:"मराठी",u:"Marathi"},"mr-IN":{s:"मराठी",u:"Marathi"},ms:{s:"Bahasa Melayu",u:"Malay"},"ms-MY":{s:"Bahasa Melayu",u:"Malay"},mt:{s:"Malti",u:"Maltese"},"mt-MT":{s:"Malti",u:"Maltese"},my:{s:"ဗမာစကာ",u:"Burmese"},nb:{s:"Norsk (bokmål)",u:"Norwegian (bokmal)"},"nb-NO":{s:"Norsk (bokmål)",u:"Norwegian (bokmal)"},ne:{s:"नेपाली",u:"Nepali"}
2,"ne-NP":{s:"नेपाली",u:"Nepali"},nl:{s:"Nederlands",u:"Dutch"},"nl-BE":{s:"Nederlands (België)",u:"Dutch (Belgium)"},"nl-NL":{s:"Nederlands (Nederland)",u:"Dutch (Netherlands)"},"nn-NO":{s:"Norsk (nynorsk)",u:"Norwegian (nynorsk)"},no:{s:"Norsk",u:"Norwegian"},oc:{s:"Occitan",u:"Occitan"},"or-IN":{s:"ଓଡ଼ିଆ",u:"Oriya"},pa:{s:"ਪੰਜਾਬੀ",u:"Punjabi"},"pa-IN":{s:"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",u:"Punjabi (India)"},pl:{s:"Polski",u:"Polish"},"pl-PL":{s:"Polski",u:"Polish"},"ps-AF":{s:"پښتو",u:"Pashto"},pt:{s:"Português",u:"Portuguese"},"pt-BR":{s:"Português (Brasil)",u:"Portuguese (Brazil)"},"pt-PT":{s:"Português (Portugal)",u:"Portuguese (Portugal)"},"qu-PE":{s:"Qhichwa",u:"Quechua"},"rm-CH":{s:"Rumantsch",u:"Romansh"},ro:{s:"Română",u:"Romanian"},"ro-RO":{s:"Română",u:"Romanian"},ru:{s:"Русский",u:"Russian"},"ru-RU":{s:"Русский",u:"Russian"},"sa-IN":{s:"संस्कृतम्",u:"Sanskrit"},"se-NO":{s:"Davvisámegiella",u:"Northern Sámi"},"si-LK":{s:"පළාත",u:"Sinhala (Sri Lanka)"},sk:{s:"Slovenčina",u:"Slovak"},"sk-SK":{s:"Slovenčina (Slovakia)",u:"Slovak (Slovakia)"},sl:{s:"Slovenščina",u:"Slovenian"},"sl-SI":{s:"Slovenščina",u:"Slovenian"},"so-SO":{s:"Soomaaliga",u:"Somali"},sq:{s:"Shqip",u:"Albanian"},"sq-AL":{s:"Shqip",u:"Albanian"},sr:{s:"Српски",u:"Serbian"},"sr-RS":{s:"Српски (Serbia)",u:"Serbian (Serbia)"},su:{s:"Basa Sunda",u:"Sundanese"},sv:{s:"Svenska",u:"Swedish"},"sv-SE":{s:"Svenska",u:"Swedish"},sw:{s:"Kiswahili",u:"Swahili"},"sw-KE":{s:"Kiswahili",u:"Swahili (Kenya)"},ta:{s:"தமிழ்",u:"Tamil"},"ta-IN":{s:"தமிழ்",u:"Tamil"},te:{s:"తెలుగు",u:"Telugu"},"te-IN":{s:"తెలుగు",u:"Telugu"},tg:{s:"забо́ни тоҷикӣ́",u:"Tajik"},"tg-TJ":{s:"тоҷикӣ",u:"Tajik"},th:{s:"ภาษาไทย",u:"Thai"},"th-TH":{s:"ภาษาไทย (ประเทศไทย)",u:"Thai (Thailand)"},tl:{s:"Filipino",u:"Filipino"},"tl-PH":{s:"Filipino",u:"Filipino"},tlh:{s:"tlhIngan-Hol",u:"Klingon"},tr:{s:"Türkçe",u:"Turkish"},"tr-TR":{s:"Türkçe",u:"Turkish"},"tt-RU":{s:"татарча",u:"Tatar"},uk:{s:"Українська",u:"Ukrainian"},"uk-UA":{s:"Українська",u:"Ukrainian"},ur:{s:"اردو",u:"Urdu"},"ur-PK":{s:"اردو",u:"Urdu"},uz:{s:"O'zbek",u:"Uzbek"},"uz-UZ":{s:"O'zbek",u:"Uzbek"},vi:{s:"Tiếng Việt",u:"Vietnamese"},"vi-VN":{s:"Tiếng Việt",u:"Vietnamese"},"xh-ZA":{s:"isiXhosa",u:"Xhosa"},yi:{s:"ייִדיש",u:"Yiddish"},"yi-DE":{s:"ייִדיש (German)",u:"Yiddish (German)"},zh:{s:"中文",u:"Chinese"},"zh-HANS":{s:"中文简体",u:"Chinese Simplified"},"zh-HANT":{s:"中文繁體",u:"Chinese Traditional"},"zh-CN":{s:"中文(中国)",u:"Chinese Simplified (China)"},"zh-HK":{s:"中文(香港)",u:"Chinese Traditional (Hong Kong)"},"zh-SG":{s:"中文(新加坡)",u:"Chinese Simplified (Singapore)"},"zh-TW":{s:"中文(台灣)",u:"Chinese Traditional (Taiwan)"},"zu-ZA":{s:"isiZulu",u:"Zulu"}},Iv=c(Object.keys(Ev)),Cv=Iv.next();!Cv.done;Cv=Iv.next()){var _v=Cv.value;Ev[_v.toLowerCase()]=Ev[_v]}function jv(e,t){var n=this;this.parent=e,this.controls=t,this.eventManager=new Ri,this.localization=this.controls.Na,this.player=this.controls.dc(),this.video=this.controls.Db(),this.adManager=this.player.dd(),this.ad=t.getAd(),this.eventManager.o(this.adManager,"ad-started",(function(e){n.ad=e.ad})),this.eventManager.o(this.adManager,"ad-stopped",(function(){n.ad=null}))}function Nv(e){return Lv(e,"shaka-back-to-overflow-button")}function Lv(e,t){var n=e.getElementsByClassName(t);return n.length?n[0]:null}function Pv(e){e&&(e=Lv(e,"shaka-chosen-item"))&&e.parentElement.focus()}function Dv(){var e=ws("i");return e.classList.add("material-icons-round"),e.classList.add("shaka-chosen-item"),e.textContent="done",e.ariaHidden="true",e}function Mv(e,t){e&&(t?e.classList.remove("shaka-hidden"):e.classList.add("shaka-hidden"))}function Ov(e,t){var n=Math.floor(e/3600),i=Math.floor(e/60%60),r=Math.floor(e%60);return 10>r&&(r="0"+r),r=i+":"+r,t&&(10>i&&(r="0"+r),r=n+":"+r),r}function Rv(e,t){jv.call(this,e,t);var n=this;this.i=ws("div"),this.i.classList.add("shaka-ad-counter"),this.parent.appendChild(this.i),this.h=ws("span"),this.h.classList.add("shaka-ad-counter-span"),this.i.appendChild(this.h),this.g=new mn((function(){var e=Math.round(n.ad.getRemainingTime()),t=n.ad.getDuration();-1!=e&&-1!=t&&(0<e?(e=Ov(t-e,!1)+" / "+Ov(t,!1),1<n.ad.getSequenceLength()?n.h.textContent=e:(t=n.localization.resolve("AD_TIME"),n.h.textContent=t.replace("[AD_TIME]",e))):(n.g.stop(),n.h.textContent=""))})),this.eventManager.o(this.localization,"locale-updated",(function(){})),this.eventManager.o(this.localization,"locale-changed",(function(){})),this.eventManager.o(this.adManager,"ad-started",(function(){n.g.Aa(),n.g.ka(.5)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){n.g.stop(),n.h.textContent=""})),this.ad&&(this.g.Aa(),this.g.ka(.5))}function zv(e,t){jv.call(this,e,t);var n=this;this.g=ws("div"),this.g.classList.add("shaka-ad-position"),Mv(this.g,!1),this.parent.appendChild(this.g),this.h=ws("span"),this.h.classList.add("shaka-ad-position-span"),this.g.appendChild(this.h),this.eventManager.o(this.localization,"locale-updated",(function(){n.ad&&Bv(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){n.ad&&Bv(n)})),this.eventManager.o(this.adManager,"ad-started",(function(){Bv(n)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){n.h.textContent="",Mv(n.g,!1)})),this.ad&&Bv(this)}function Bv(e){var t=e.ad.getSequenceLength();if(1<t){var n=e.ad.getPositionInSequence();e.h.textContent=e.localization.resolve("AD_PROGRESS").replace("[AD_ON]",String(n)).replace("[NUM_ADS]",String(t)),Mv(e.g,!0)}}function Uv(e,t){jv.call(this,e,t);var n=this;this.button=ks(),this.parent.appendChild(this.button),this.eventManager.o(this.localization,"locale-updated",(function(){n.g()})),this.eventManager.o(this.localization,"locale-changed",(function(){n.g()})),this.eventManager.o(this.video,"play",(function(){n.g(),n.h()})),this.eventManager.o(this.video,"pause",(function(){n.g(),n.h()})),this.eventManager.o(this.video,"seeking",(function(){n.g(),n.h()})),this.eventManager.o(this.adManager,"ad-paused",(function(){n.g(),n.h()})),this.eventManager.o(this.adManager,"ad-resumed",(function(){n.g(),n.h()})),this.eventManager.o(this.adManager,"ad-started",(function(){n.g(),n.h()})),this.eventManager.o(this.button,"click",(function(){n.ad&&n.ad.isLinear()?ib(n.controls):nb(n.controls)})),this.ad&&(this.g(),this.h())}function Fv(e,t){Uv.call(this,e,t),this.button.classList.add("shaka-play-button"),this.button.classList.add("shaka-no-propagation"),this.h(),this.g()}function Vv(t,n){jv.call(this,t,n);var i=this;this.j=this.controls.i,this.h=this.controls.g,this.i=[],this.g=ws("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-context-menu"),this.g.classList.add("shaka-hidden"),this.h.appendChild(this.g),this.eventManager.o(this.h,"contextmenu",(function(e){if(i.g.classList.contains("shaka-hidden")){e.preventDefault();var t=i.h.getBoundingClientRect();i.g.style.left=e.clientX-t.left+"px",i.g.style.top=e.clientY-t.top+"px",Mv(i.g,!0)}else Mv(i.g,!1)})),this.eventManager.o(e,"click",(function(){Mv(i.g,!1)})),function(e){for(var t=c(e.j.contextMenuElements),n=t.next();!n.done;n=t.next()){n=n.value;var i=Hv.get(n);i?e.i.push(i.create(e.g,e.controls)):K("Unrecognized context menu element:",n)}}(this)}function qv(e,t){Hv.set(e,t)}jv.prototype.release=function(){this.eventManager.release(),this.ad=this.adManager=this.video=this.player=this.localization=this.eventManager=this.controls=this.parent=null},F("shaka.ui.Element",jv),jv.prototype.release=jv.prototype.release,f(Rv,jv),Rv.prototype.release=function(){this.g.stop(),this.g=null,jv.prototype.release.call(this)},F("shaka.ui.AdCounter",Rv),f(zv,jv),F("shaka.ui.AdPosition",zv),f(Uv,jv),Uv.prototype.isPaused=function(){if(this.ad&&this.ad.isLinear())var e=this.ad.isPaused();else e=(e=this.controls).B.paused&&!e.$;return e},Uv.prototype.g=function(){},Uv.prototype.h=function(){},F("shaka.ui.PlayButton",Uv),f(Fv,Uv),Fv.prototype.h=function(){this.isPaused()?this.button.setAttribute("icon","play"):this.button.setAttribute("icon","pause")},Fv.prototype.g=function(){var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)},F("shaka.ui.BigPlayButton",Fv),f(Vv,jv),Vv.prototype.release=function(){this.h=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],jv.prototype.release.call(this)},F("shaka.ui.ContextMenu",Vv),Vv.registerElement=qv;var Hv=new Map;function Gv(e,t,n,i){jv.call(this,e,t);var r=this;this.container=ws("div"),this.container.classList.add("shaka-range-container"),this.container.classList.add.apply(this.container.classList,d(n)),this.g=!1,this.bar=document.createElement("input"),this.l=new mn((function(){r.onChangeEnd(),r.g=!1})),this.bar.classList.add("shaka-range-element"),this.bar.classList.add.apply(this.bar.classList,d(i)),this.bar.type="range",this.bar.step="any",this.bar.min="0",this.bar.max="1",this.bar.value="0",this.container.appendChild(this.bar),this.parent.appendChild(this.container),this.eventManager.o(this.bar,"mousedown",(function(){r.controls.Ob()&&(r.g=!0,r.onCh
2angeStart())})),this.eventManager.o(this.bar,"touchstart",(function(e){r.controls.Ob()&&(r.g=!0,Kv(r,e),r.onChangeStart())})),this.eventManager.o(this.bar,"input",(function(){r.onChange()})),this.eventManager.o(this.bar,"touchmove",(function(e){r.g&&(Kv(r,e),r.onChange())})),this.eventManager.o(this.bar,"touchend",(function(e){r.g&&(r.g=!1,Kv(r,e),r.onChangeEnd())})),this.eventManager.o(this.bar,"mouseup",(function(){r.g&&(r.g=!1,r.onChangeEnd())}))}function Kv(e,t){t.preventDefault();var n=t.changedTouches[0],i=e.bar.getBoundingClientRect(),r=parseFloat(e.bar.min),a=parseFloat(e.bar.max);(n=r+(a-r)/i.width*(n.clientX-i.left))<r?n=r:n>a&&(n=a),e.bar.value=n}function $v(e,t){Gv.call(this,e,t,["shaka-seek-bar-container"],["shaka-seek-bar","shaka-no-propagation","shaka-show-controls-on-mouse-over"]);var n=this;this.j=ws("div"),this.j.classList.add("shaka-ad-markers"),this.container.insertBefore(this.j,this.container.childNodes[0]),this.m=this.controls.i,this.h=new mn((function(){n.video.currentTime=n.getValue()})),this.A=new mn((function(){Wv(n)})),this.B=!1,this.i=[],this.eventManager.o(this.localization,"locale-updated",(function(){return Jv(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){return Jv(n)})),this.eventManager.o(this.adManager,"ad-started",(function(){Yv(n)||Mv(n.container,!1)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){Yv(n)&&Mv(n.container,!0)})),this.eventManager.o(this.adManager,"ad-cue-points-changed",(function(e){n.i=e.cuepoints,Xv(n)})),this.eventManager.o(this.player,"unloading",(function(){n.i=[],Xv(n)})),this.setValue(this.video.currentTime),this.update(),Jv(this),this.ad&&Mv(this.container,!1)}function Wv(e){if(e.i.length){for(var t=e.player.Ga(),n=t.end-t.start,i=["to right"],r=[],a=e.m.seekBarColors.adBreaks,o=!1,s=c(e.i),l=s.next();!l.done;l=s.next())if(-1!=(l=l.value).start||l.end||(o=!0),l.start>=t.start&&l.start<t.end&&!(l.end&&l.end>t.end)){var d=(l.start-t.start)/n||0,u=d+.01;l.end&&(u=(l.end-t.start)/n||0),r.push({start:d,end:u})}for(l=(t=c(r)).next();!l.done;l=t.next())n=l.value,i.push("transparent "+100*n.start+"%"),i.push(a+" "+100*n.start+"%"),i.push(a+" "+100*n.end+"%"),i.push("transparent "+100*n.end+"%");o&&(i.push("transparent 99%"),i.push(a+" 99%")),e.j.style.background="linear-gradient("+i.join(",")+")"}else e.j.style.background="transparent"}function Xv(e){Wv(e);var t=e.player.Ga();t=t.end-t.start,e.player.T()&&5<t&&e.A.ka(1)}function Yv(e){var t=e.player.Ga();return t=t.end-t.start,!(e.player.T()&&5>t)&&(null==e.ad||!e.ad.isLinear())}function Jv(e){e.bar.ariaLabel=e.localization.resolve("SEEK")}function Zv(){}function Qv(t,n,i,r){ee.call(this);var a=this;this.W=!0,this.i=r,this.C=new md(i,t,this.i.castReceiverAppId),this.jb=!0,this.B=this.C.Db(),this.A=i,this.F=this.C.dc(),this.Ma=t,this.j=n,this.Ya=this.F.dd(),this.m=this.l=null,this.$=!1,this.G=[],this.Hb=[],this.mb=!1,this.aa=new mn((function(){a.j.style.cursor="none",a.mb=!1,ab(a)})),this.ha=new mn((function(){a.g.removeAttribute("shown"),a.J.R(2)})),this.J=new mn((function(){for(var e=c(a.G),t=e.next();!t.done;t=e.next())Mv(t.value,!1)})),this.Oa=new mn((function(){a.Ob()&&db(a)})),this.K=null,this.H=[],this.Na=function(){var e=new We("en");return e.ia("ar",new Map([["AD_DURATION","مدة الإعلان"],["AD_PROGRESS","الإعلان [AD_ON] من [NUM_ADS]"],["AD_TIME","الإعلان: [AD_TIME]"],["AUTO_QUALITY","تلقائي"],["BACK","رجوع"],["CAPTIONS","الترجمة والشرح"],["CAST","إرسال..."],["ENTER_LOOP_MODE","تكرار الفيديو الحالي"],["ENTER_PICTURE_IN_PICTURE",'الدخول في وضع "نافذة ضمن نافذة"'],["EXIT_FULL_SCREEN","إنهاء وضع ملء الشاشة"],["EXIT_LOOP_MODE","إيقاف تكرار الفيديو الحالي"],["EXIT_PICTURE_IN_PICTURE",'الخروج من وضع "نافذة ضمن نافذة"'],["FAST_FORWARD","تقديم سريع"],["FULL_SCREEN","ملء الشاشة"],["LANGUAGE","اللغة"],["LIVE","مباشر"],["LOOP","تكرار"],["MORE_SETTINGS","مزيد من الإعدادات"],["MULTIPLE_LANGUAGES","لغات متعددة"],["MUTE","كتم الصوت"],["NOT_APPLICABLE","غير سارٍ"],["OF
2F","إيقاف"],["ON","تشغيل"],["PAUSE","إيقاف مؤقت"],["PICTURE_IN_PICTURE","نافذة ضمن النافذة"],["PLAY","التشغيل"],["PLAYBACK_RATE","سرعة التشغيل"],["RESOLUTION","درجة الدقة"],["REWIND","ترجيع"],["SEEK","البحث بالتمرير"],["SKIP_AD","تخطّي الإعلان"],["SKIP_TO_LIVE","الانتقال إلى بث مباشر"],["UNDETERMINED_LANGUAGE","غير محدد"],["UNMUTE","إعادة الصوت"],["UNRECOGNIZED_LANGUAGE","غير معروف"],["VOLUME","مستوى الصوت"]])),e.ia("de",new Map([["AD_DURATION","Dauer der Werbeanzeige"],["AD_PROGRESS","Werbung [AD_ON] von [NUM_ADS]"],["AD_TIME","Werbeanzeige: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Zurück"],["CAPTIONS","Untertitel"],["CAST","Streamen..."],["ENTER_LOOP_MODE","In Endlosschleife spielen"],["ENTER_PICTURE_IN_PICTURE","Bild-im-Bild-Modus aktivieren"],["EXIT_FULL_SCREEN","Vollbildmodus beenden"],["EXIT_LOOP_MODE","Endlosschleife stoppen"],["EXIT_PICTURE_IN_PICTURE","Bild-im-Bild-Modus beenden"],["FAST_FORWARD","Vorspulen"],["FULL_SCREEN","Vollbildmodus"],["LANGUAGE","Sprache"],["LIVE","Live"],["LOOP","Sc
2hleife"],["MORE_SETTINGS","Weitere Einstellungen"],["MULTIPLE_LANGUAGES","Mehrere Sprachen"],["MUTE","Stummschalten"],["NOT_APPLICABLE","Nicht zutreffend"],["OFF","Aus"],["ON","Ein"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Bild im Bild"],["PLAY","Wiedergabe"],["PLAYBACK_RATE","Geschwindigkeit"],["RESOLUTION","Auflösung"],["REWIND","Zurückspulen"],["SEEK","Suche"],["SKIP_AD","Überspringen"],["SKIP_TO_LIVE","Zum Live-Videostream wechseln"],["UNDETERMINED_LANGUAGE","Unbestimmt"],["UNMUTE","Stummschaltung aufheben"],["UNRECOGNIZED_LANGUAGE","Unbekannt"],["VOLUME","Lautstärke"]])),e.ia("en",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AIRPLAY","AirPlay"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter Picture-in-Picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit Picture-in-Picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["REPLAY","Replay"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip Ad"],["SKIP_TO_LIVE","Skip ahead to live"],["STATISTICS","Statistics"],["SUBTITLE_FORCED","Forced"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognized"],["VOLUME","Volume"]])),e.ia("en-GB",new Map([["AD_DURATION","Ad duration"],["AD_PROGRESS","Ad [AD_ON] of [NUM_ADS]"],["AD_TIME","Ad: [AD_TIME]"],["AUTO_QUALITY","Auto"],["BACK","Back"],["CAPTIONS","Captions"],["CAST","Cast..."],["ENTER_LOOP_MODE","Loop the current video"],["ENTER_PICTURE_IN_PICTURE","Enter picture-in-picture"],["EXIT_FULL_SCREEN","Exit full screen"],["EXIT_LOOP_MODE","Stop looping the current video"],["EXIT_PICTURE_IN_PICTURE","Exit picture-in-picture"],["FAST_FORWARD","Fast-forward"],["FULL_SCREEN","Full screen"],["LANGUAGE","Language"],["LIVE","Live"],["LOOP","Loop"],["MORE_SETTINGS","More settings"],["MULTIPLE_LANGUAGES","Multiple languages"],["MUTE","Mute"],["NOT_APPLICABLE","Not applicable"],["OFF","Off"],["ON","On"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Play"],["PLAYBACK_RATE","Playback speed"],["RESOLUTION","Resolution"],["REWIND","Rewind"],["SEEK","Seek"],["SKIP_AD","Skip ad"],["SKIP_TO_LIVE","Skip ahead to live"],["UNDETERMINED_LANGUAGE","Undetermined"],["UNMUTE","Unmute"],["UNRECOGNIZED_LANGUAGE","Unrecognised"],["VOLUME","volume"]])),e.ia("es",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Enviar..."],["ENTER_LOOP_MODE","Reproducir en bucle el vídeo actual"],["ENTER_PICTURE_IN_PICTURE","Activar el modo imagen en imagen"],["EXIT_FULL_SCREEN","Salir del modo de pantalla completa"],["EXIT_LOOP_MODE","Dejar de reproducir en bucle el vídeo actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo imagen en imagen"],["FAST_FORWARD","Avanzar rápidamente"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Reproducir en bucle"],["MORE_SETTINGS","Más ajustes"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Imagen en imagen"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Rebobinar"],["SEEK","Buscar"],["SKIP_AD","Saltar anuncio"],["SKIP_TO_LIVE","Ir al vídeo en directo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Activar sonido"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ia("es-419",new Map([["AD_DURATION","Duración del anuncio"],["AD_PROGRESS","Anuncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anuncio: [AD_TIME]"],["AUTO_QUALITY","Automático"],["BACK","Atrás"],["CAPTIONS","Subtítulos"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir indefinidamente el video actual"],["ENTER_PICTURE_IN_PICTURE","Ingresar al modo de pantalla en pantalla"],["EXIT_FULL_SCREEN","Salir de pantalla completa"],["EXIT_LOOP_MODE","Detener la repetición indefinida del video actual"],["EXIT_PICTURE_IN_PICTURE","Salir del modo de pantalla en pantalla"],["FAST_FORWARD","Avanzar"],["FULL_SCREEN","Pantalla completa"],["LANGUAGE","Idioma"],["LIVE","En directo"],["LOOP","Repetir indefinidamente"],["MORE_SETTINGS","Más opciones de configuración"],["MULTIPLE_LANGUAGES","Varios idiomas"],["MUTE","Silenciar"],["NOT_APPLICABLE","No aplicable"],["OFF","Desactivado"],["ON","Activado"],["PAUSE","Detener"],["PICTURE_IN_PICTURE","Pantalla en pantalla"],["PLAY","Reproducir"],["PLAYBACK_RATE","Velocidad de reproducción"],["RESOLUTION","Resolución"],["REWIND","Retroceder"],["SEEK","Buscar"],["SKIP_AD","Omitir anuncio"],["SKIP_TO_LIVE","Adelantar hasta la transmisión en vivo"],["SUBTITLE_FORCED","Forzado"],["UNDETERMINED_LANGUAGE","Sin especificar"],["UNMUTE","Dejar de silenciar"],["UNRECOGNIZED_LANGUAGE","No reconocida"],["VOLUME","Volumen"]])),e.ia("fr",new Map([["AD_DURATION","Durée de l'annonce"],["AD_PROGRESS","Annonce [AD_ON] sur
2 [NUM_ADS]"],["AD_TIME","Annonce : [AD_TIME]"],["AUTO_QUALITY","Automatique"],["BACK","Retour"],["CAPTIONS","Sous-titres"],["CAST","Caster…"],["ENTER_LOOP_MODE","Lire en boucle la vidéo en cours"],["ENTER_PICTURE_IN_PICTURE","Utiliser le mode Picture-in-Picture"],["EXIT_FULL_SCREEN","Quitter le mode plein écran"],["EXIT_LOOP_MODE","Arrêter la lecture en boucle de la vidéo en cours"],["EXIT_PICTURE_IN_PICTURE","Quitter le mode PIP (Picture-in-picture)"],["FAST_FORWARD","Avance rapide"],["FULL_SCREEN","Plein écran"],["LANGUAGE","Langue"],["LIVE","En direct"],["LOOP","Répéter"],["MORE_SETTINGS","Plus de paramètres"],["MULTIPLE_LANGUAGES","Plusieurs langues"],["MUTE","Couper le son"],["NOT_APPLICABLE","Non applicable"],["OFF","Désactivée"],["ON","Activée"],["PAUSE","Pause"],["PICTURE_IN_PICTURE","Picture-in-Picture"],["PLAY","Visionner"],["PLAYBACK_RATE","Vitesse de lecture"],["RESOLUTION","Résolution"],["REWIND","Retour arrière"],["SEEK","Chercher"],["SKIP_AD","Passer l'annonce"],["SKIP_TO_LIVE","Accéder à la partie la plus récente du direct"],["UNDETERMINED_LANGUAGE","Langue indéterminée"],["UNMUTE","Réactiver le son"],["UNRECOGNIZED_LANGUAGE","Non reconnu"],["VOLUME","Volume"]])),e.ia("it",new Map([["AD_DURATION","Durata dell'annuncio"],["AD_PROGRESS","Annuncio [AD_ON] di [NUM_ADS]"],["AD_TIME","Annuncio: [AD_TIME]"],["AUTO_QUALITY","Automatica"],["BACK","Indietro"],["CAPTIONS","Sottotitoli"],["CAST","Trasmetti..."],["ENTER_LOOP_MODE","Riproduci in loop il video corrente"],["ENTER_PICTURE_IN_PICTURE","Attiva Picture in picture"],["EXIT_FULL_SCREEN","Esci da schermo intero"],["EXIT_LOOP_MODE","Interrompi riproduzione in loop del video corrente"],["EXIT_PICTURE_IN_PICTURE","Esci da Picture in picture"],["FAST_FORWARD","Avanti veloce"],["FULL_SCREEN","Schermo intero"],["LANGUAGE","Lingua"],["LIVE","Dal vivo"],["LOOP","Riproduci in loop"],["MORE_SETTINGS","Altre impostazioni"],["MULTIPLE_LANGUAGES","Più lingue"],["MUTE","Disattiva audio"],["NOT_APPLICABLE","Non applicabile"],["OFF","Disattivo"],["ON","Attivo"],["PAUSE","Metti in pausa"],["PICTURE_IN_PICTURE","Picture in picture"],["PLAY","Riproduci"],["PLAYBACK_RATE","Velocità di riproduzione"],["RESOLUTION","Risoluzione"],["REWIND","Riavvolgi"],["SEEK","Cerca"],["SKIP_AD","Salta annuncio"],["SKIP_TO_LIVE","Passa alla trasmissione dal vivo"],["UNDETERMINED_LANGUAGE","Indeterminata"],["UNMUTE","Riattiva audio"],["UNRECOGNIZED_LANGUAGE","Non riconosciuto"],["VOLUME","Volume"]])),e.ia("ja",new Map([["AD_DURATION","広告再生時間"],["AD_PROGRESS","[AD_ON] 番目の広告(全 [NUM_ADS] 個)"],["AD_TIME","広告: [AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","戻る"],["CAPTIONS","字幕"],["CAST","キャスト..."],["ENTER_LOOP_MODE","現在の動画をループ再生"],["ENTER_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを開始"],["EXIT_FULL_SCREEN","全画面表示を終了"],["EXIT_LOOP_MODE","現在の動画のループ再生を停止"],["EXIT_PICTURE_IN_PICTURE","ピクチャー イン ピクチャーを終了"],["FAST_FORWARD","早送り"],["FULL_SCREEN","全画面表示"],["LANGUAGE","言語"],["LIVE","ライブ"],["LOOP","ループ"],["MORE_SETTINGS","詳細設定"],["MULTIPLE_LANGUAGES","多言語"],["MUTE","ミュート"],["NOT_APPLICABLE","該当なし"],["OFF","オフ"],["ON","オン"],["PAUSE","一時停止"],["PICTURE_IN_PICTURE","ピクチャー イン ピクチャー"],["PLAY","再生"],["PLAYBACK_RATE","再生速度"],["RESOLUTION","解像度"],["REWIND","巻き戻し"],["SEEK","シーク再生"],["SKIP_AD","広告をスキップ"],["SKIP_TO_LIVE","ライブ配信までスキップ"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","ミュートを解除"],["UNRECOGNIZED_LANGUAGE","不明"],["VOLUME","音量"]])),e.ia("ko",new Map([["AD_DURATION","광고 기간"],["AD_PROGRESS","광고 [AD_ON]/[NUM_ADS]"],["AD_TIME","광고: [AD_TIME]"],["AUTO_QUALITY","자동"],["BACK","뒤로"],["CAPTIONS","자막"],["CAST","전송..."],["ENTER_LOOP_MODE","현재 동영상 반복 재생"],["ENTER_PICTURE_IN_PICTURE","PIP 모드 시작"],["EXIT_FULL_SCREEN","전체화면 닫기"],["EXIT_LOOP_MODE","현재 동영상 반복 재생 중지"],["EXIT_PICTURE_IN_PICTURE","PIP 모드 종료"],["FAST_FORWARD","빨리 감기"],["FULL_SCREEN","전체화면"],["LANGUAGE","언어"],["LIVE","실시간"],["LOOP","반복 재생"],["MORE_SETTINGS","설정 더보기"],["MULTIPLE_LANGUAGES","여러 언어"],["MUTE","음소거"],["NOT_APPLICABLE","해당 사항 없음"],["OFF","사용 안함"],["ON","사용"],["PAUSE","일시중지"],["PICTURE_IN_PICTURE","PIP 모드"],["PLAY","재생"],["PLAYBACK_RATE","재생 속ë
2„"],["RESOLUTION","해상도"],["REWIND","되감기"],["SEEK","찾기"],["SKIP_AD","광고 건너뛰기"],["SKIP_TO_LIVE","라이브 동영상으로 건너뛰기"],["UNDETERMINED_LANGUAGE","미정"],["UNMUTE","음소거 해제"],["UNRECOGNIZED_LANGUAGE","알 수 없음"],["VOLUME","볼륨"]])),e.ia("nl",new Map([["AD_DURATION","Advertentieduur"],["AD_PROGRESS","Advertentie [AD_ON] van [NUM_ADS]"],["AD_TIME","Advertentie: [AD_TIME]"],["AUTO_QUALITY","Automatisch"],["BACK","Terug"],["CAPTIONS","Ondertiteling"],["CAST","Casten..."],["ENTER_LOOP_MODE","De huidige video lussen"],["ENTER_PICTURE_IN_PICTURE","Scherm-in-scherm openen"],["EXIT_FULL_SCREEN","Volledig scherm sluiten"],["EXIT_LOOP_MODE","De huidige video niet meer lussen"],["EXIT_PICTURE_IN_PICTURE","Scherm-in-scherm afsluiten"],["FAST_FORWARD","Vooruitspoelen"],["FULL_SCREEN","Volledig scherm"],["LANGUAGE","Taal"],["LIVE","Live"],["LOOP","Lussen"],["MORE_SETTINGS","Meer instellingen"],["MULTIPLE_LANGUAGES","Meerdere talen"],["MUTE","Dempen"],["NOT_APPLICABLE","Niet van toepassing"],["OFF","Uit"],["ON","Aan"],["PAUSE","Onderbreken"],["PICTURE_IN_PICTURE","Scherm-in-scherm"],["PLAY","Afspelen"],["PLAYBACK_RATE","Afspeelsnelheid"],["RESOLUTION","Resolutie"],["REWIND","Terugspoelen"],["SEEK","Zoeken"],["SKIP_AD","Advertentie overslaan"],["SKIP_TO_LIVE","Doorgaan naar live"],["UNDETERMINED_LANGUAGE","Onbepaald"],["UNMUTE","Dempen opheffen"],["UNRECOGNIZED_LANGUAGE","Onbekend"],["VOLUME","Volume"]])),e.ia("pl",new Map([["AD_DURATION","Czas trwania reklamy"],["AD_PROGRESS","Reklama [AD_ON] z [NUM_ADS]"],["AD_TIME","Reklama: [AD_TIME]"],["AUTO_QUALITY","Automatycznie"],["BACK","Wstecz"],["CAPTIONS","Napisy"],["CAST","Przesyłaj..."],["ENTER_LOOP_MODE","Odtwarzaj bieżący film w pętli"],["ENTER_PICTURE_IN_PICTURE","Włącz tryb obrazu w obrazie"],["EXIT_FULL_SCREEN","Zamknij pełny ekran"],["EXIT_LOOP_MODE","Wyłącz odtwarzanie bieżącego filmu w pętli"],["EXIT_PICTURE_IN_PICTURE","Wyłącz tryb obrazu w obrazie"],["FAST_FORWARD","Przewiń do przodu"],["FULL_SCREEN","Pełny ekran"],["LANGUAGE","Język"],["LIVE","Na żywo"],["LOOP","Odtwarzaj w pętli"],["MORE_SETTINGS","Więcej ustawień"],["MULTIPLE_LANGUAGES","Wiele języków"],["MUTE","Wycisz"],["NOT_APPLICABLE","Nie dotyczy"],["OFF","Wyłączone"],["ON","Włączone"],["PAUSE","Wstrzymaj"],["PICTURE_IN_PICTURE","Obraz w obrazie"],["PLAY","Odtwórz"],["PLAYBACK_RATE","Szybkość odtwarzania"],["RESOLUTION","Rozdzielczość"],["REWIND","Przewiń do tyłu"],["SEEK","Szukaj"],["SKIP_AD","Pomiń reklamę"],["SKIP_TO_LIVE","Przejdź do transmisji na żywo"],["UNDETERMINED_LANGUAGE","Nie określono"],["UNMUTE","Wyłącz wyciszenie"],["UNRECOGNIZED_LANGUAGE","Nierozpoznany"],["VOLUME","Głośność"]])),e.ia("pt-BR",new Map([["AD_DURATION","Duração do anúncio"],["AD_PROGRESS","Anúncio [AD_ON] de [NUM_ADS]"],["AD_TIME","Anúncio: [AD_TIME]"],["AUTO_QUALITY","Automática"],["BACK","Voltar"],["CAPTIONS","Legendas"],["CAST","Transmitir..."],["ENTER_LOOP_MODE","Repetir o vídeo atual"],["ENTER_PICTURE_IN_PICTURE","Entrar no modo picture-in-picture"],["EXIT_FULL_SCREEN","Sair do modo tela cheia"],["EXIT_LOOP_MODE","Parar repetição do vídeo atual"],["EXIT_PICTURE_IN_PICTURE","Sair de picture-in-picture"],["FAST_FORWARD","Avançar"],["FULL_SCREEN","Tela cheia"],["LANGUAGE","Idioma"],["LIVE","Ao vivo"],["LOOP","Repetir"],["MORE_SETTINGS","Mais definições"],["MULTIPLE_LANGUAGES","Vários idiomas"],["MUTE","Desativar som"],["NOT_APPLICABLE","Não relevante"],["OFF","Desativado"],["ON","Ativado"],["PAUSE","Pausar"],["PICTURE_IN_PICTURE","Picture-in-picture"],["PLAY","Reproduzir"],["PLAYBACK_RATE","Velocidade da reprodução"],["RESOLUTION","Resolução"],["REWIND","Retroceder"],["SEEK","Procurar"],["SKIP_AD","Pular anúncio"],["SKIP_TO_LIVE","Pular para transmissão ao vivo"],["UNDETERMINED_LANGUAGE","Indeterminado"],["UNMUTE","Ativar som"],["UNRECOGNIZED_LANGUAGE","Não reconhecido"],["VOLUME","Volume"]])),e.ia("ru",new Map([["AD_DURATION","Продолжительность рекламы"],["AD_PROGRESS","Реклама [AD_ON] из [NUM_ADS]"],["AD_TIME","Реклама: [AD_TIME]"],["AUTO_QUALITY","Авто"],["BACK","Назад"],["CAPTIONS","Субтитры"],["CAST","Транслировать..."],["ENTER_LOOP_MODE","Зациклить текущее видео"],["ENTER_PICTURE_IN_PICTURE",'Перейти в режим "Картинка в картинке"'],["EXIT_FULL_SCREEN","Обычный режим"],["EXIT_LOOP_MODE","Отменить зацикливание текущего видео"],["EXIT_PICTURE_IN_PICTURE",'Выйти из режима "Картинка в картинке"'],["FAST_FORWARD","Перемотка вперед"],["FULL_SCREEN","Полноэкранный режим"],["LANGUAGE","Язык"],["LIVE","Прямой эфир"],["LOOP","Зациклить"],["MORE_SETTINGS","Дополнительные настройки"],["MULTIPLE_LANGUAGES","Несколько языков"],["MUTE","Отключить звук"],["NOT_APPLICABLE","Неприменимо"],["OFF","Выкл."],["ON","Вкл."],["PAUSE","Пауза"],["PICTURE_IN_PICTURE","Картинка в картинке"],["PLAY","Воспроизвести"],["PLAYBACK_RATE","Скорость воспроизведения"],["RESOLUTION","Разрешение"],["REWIND","Перемотать назад"],["SEEK","Перемотка"],["SKIP_AD","Пропустить"],["SKIP_TO_LIVE","Пропустить и перейти Ð
2º прямой трансляции"],["UNDETERMINED_LANGUAGE","Не указано"],["UNMUTE","Включить звук"],["UNRECOGNIZED_LANGUAGE","Не распознано"],["VOLUME","Громкость"]])),e.ia("th",new Map([["AD_DURATION","ระยะเวลาโฆษณา"],["AD_PROGRESS","โฆษณา [AD_ON] จาก [NUM_ADS] รายการ"],["AD_TIME","โฆษณา: [AD_TIME]"],["AUTO_QUALITY","อัตโนมัติ"],["BACK","กลับ"],["CAPTIONS","คำบรรยาย"],["CAST","แคสต์..."],["ENTER_LOOP_MODE","วนซ้ำวิดีโอปัจจุบัน"],["ENTER_PICTURE_IN_PICTURE","เข้าสู่การแสดงภาพซ้อนภาพ"],["EXIT_FULL_SCREEN","ออกจากการแสดงแบบเต็มหน้าจอ"],["EXIT_LOOP_MODE","หยุดวนซ้ำวิดีโอปัจจุบัน"],["EXIT_PICTURE_IN_PICTURE","ออกจากการแสดงภาพซ้อนภาพ"],["FAST_FORWARD","กรอไปข้างหน้า"],["FULL_SCREEN","เต็มหน้าจอ"],["LANGUAGE","ภาษา"],["LIVE","สด"],["LOOP","ลูป"],["MORE_SETTINGS","การตั้งค่าเพิ่มเติม"],["MULTIPLE_LANGUAGES","หลายภาษา"],["MUTE","ปิดเสียง"],["NOT_APPLICABLE","ไม่เกี่ยวข้อง"],["OFF","ปิด"],["ON","เปิด"],["PAUSE","หยุดชั่วคราว"],["PICTURE_IN_PICTURE","การแสดงภาพซ้อนภาพ"],["PLAY","เล่น"],["PLAYBACK_RATE","ความเร็วในการเล่น"],["RESOLUTION","ความละเอียด"],["REWIND","กรอกลับ"],["SEEK","ค้นหา"],["SKIP_AD","ข้ามโฆษณา"],["SKIP_TO_LIVE","ข้ามไปที่การถ่ายทอดสด"],["UNDETERMINED_LANGUAGE","ไม่กำหนด"],["UNMUTE","เปิดเสียง"],["UNRECOGNIZED_LANGUAGE","ที่ไม่รู้จัก"],["VOLUME","ระดับเสียง"]])),e.ia("tr",new Map([["AD_DURATION","Reklam süresi"],["AD_PROGRESS","[AD_ON]/[NUM_ADS] reklam"],["AD_TIME","Reklam: [AD_TIME]"],["AUTO_QUALITY","Otomatik"],["BACK","Geri"],["CAPTIONS","Altyazılar"],["CAST","Yayınla..."],["ENTER_LOOP_MODE","Mevcut videoyu döngüye al"],["ENTER_PICTURE_IN_PICTURE","Pencere içinde Pencere moduna gir"],["EXIT_FULL_SCREEN","Tam ekrandan çık"],["EXIT_LOOP_MODE","Mevcut videonun döngüsünü durdur"],["EXIT_PICTURE_IN_PICTURE","Pencere İçinde Pencereden Çık"],["FAST_FORWARD","İleri sar"],["FULL_SCREEN","Tam ekran"],["LANGUAGE","Dil"],["LIVE","Canlı"],["LOOP","Döngü"],["MORE_SETTINGS","Daha fazla ayar"],["MULTIPLE_LANGUAGES","Birden çok dil"],["MUTE","Sesi kapat"],["NOT_APPLICABLE","Geçerli değil"],["OFF","Kapalı"],["ON","Açık"],["PAUSE","Duraklat"],["PICTURE_IN_PICTURE","Pencere İçinde Pencere"],["PLAY","Oynat"],["PLAYBACK_RATE","Çalma hızı"],["RESOLUTION","Çözünürlük"],["REWIND","Geri sar"],["SEEK","Ara"],["SKIP_AD","Reklamı Atla"],["SKIP_TO_LIVE","Canlı yayına atla"],["UNDETERMINED_LANGUAGE","Belirsiz"],["UNMUTE","Sesi aç"],["UNRECOGNIZED_LANGUAGE","Tanınmayan"],["VOLUME","Ses"]])),e.ia("zh",new Map([["AD_DURATION","广告持续时间"],["AD_PROGRESS","广告 [AD_ON]/[NUM_ADS]"],["AD_TIME","广告:[AD_TIME]"],["AUTO_QUALITY","自动"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投射…"],["ENTER_LOOP_MODE","循环播放当前视频"],["ENTER_PICTURE_IN_PICTURE","进入“画中画”模式"],["EXIT_FULL_SCREEN","退出全屏模式"],["EXIT_LOOP_MODE","停止循环播放当前视频"],["EXIT_PICTURE_IN_PICTURE","退出“画中画”模式"],["FAST_FORWARD","快进"],["FULL_SCREEN","全屏"],["LANGUAGE","语言"],["LIVE","直播"],["LOOP","循环播放"],["MORE_SETTINGS","更多设置"],["MULTIPLE_LANGUAGES","多种语言"],["MUTE","静音"],["NOT_APPLICABLE","不适用"],["OFF","关闭"],["ON","开启"],["PAUSE","暂停"],["PICTURE_IN_PICTURE","画中画"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","分辨率"],["REWIND","快退"],["SEEK","进度"],["SKIP_AD","跳过广告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","未确定"],["UNMUTE","取消静音"],["UNRECOGNIZED_LANGUAGE","无法识别"],["VOLUME","音量"]])),e.ia("zh-TW",new Map([["AD_DURATION","廣告長度"],["AD_PROGRESS","廣告 [AD_ON]/[NUM_ADS]"],["AD_TIME","廣告:[AD_TIME]"],["AUTO_QUALITY","自動"],["BACK","返回"],["CAPTIONS","字幕"],["CAST","投放..."],["ENTER_LOOP_MODE","循環播放目前的影片"],["ENTER_PICTURE_IN_PICTURE","進入子母畫面"],["EXIT_FULL_SCREEN","退出全螢幕模式"],["EXIT_LOOP_MODE","停止循環播放目前的影片"],["EXIT_PICTURE_IN_PICTURE","離開子母畫面"],["FAST_FORWARD","快轉"],["FULL_SCREEN","全螢幕"],["LANGUAGE","語言"],["LIVE","直播"],["LOOP","循環播放"],["MORE_SETTINGS","顯示更多設定"],["MULTIPLE_LANGUAGES","多種語言"],["MUTE","靜音"],["NOT_APPLICABLE","不適用"],["OFF","關閉"],["ON","開啟"],["PAUSE","暫停"],["PICTURE_IN_PICTURE","子母畫面"],["PLAY","播放"],["PLAYBACK_RATE","播放速度"],["RESOLUTION","解析度"],["REWIND","倒轉"],["SEEK","搜尋"],["SKIP_AD","略過廣告"],["SKIP_TO_LIVE","跳至当前直播"],["UNDETERMINED_LANGUAGE","不明"],["UNMUTE","取消靜音"],["UNRECOGNIZED_LANGUAGE","無法辨識"],["VOLUME","音量"]])),e.Re(navigator.languages||[]),e}(),this.h=new Ri,this.configure(this.i),function(t){t.h.o(t.F,"buffering",(function(){t.W&&Mv(t.ea,t.F.Ic())})),t.W&&Mv(t.ea,t.F.Ic()),t.h.o(e,"keydown",(function(n){!function(t,n){t.wa.add(n.key);var i=t.Xc();"Tab"==n.key&&(t.g.classList.add("shaka-keyboard-navigation"),ab(t),t.h.o(e,"mousedown",(function(){t.h.La(e,"mousedown")}))),"Escape"==n.key&&t.J.Aa(),i&&t.wa.has("Tab")&&function(e,t){var n=e.G.filter((function(e){return!e.classList.contains("shaka-hidden")}));if(n.length){var i=n[0];if(i.childNodes.length){for(n=i.firstElementChild;n&&n.classList.contains("shaka-hidden");)n=n.nextElementSibling;for(i=i.lastElementChild;i&&i.classList.contains("shaka-hidden");)i=i.previousElementSibling;var r=document.activeElement;e.wa.has("Shift")?r==n&&(t.preventDefault(),i.focus()):r==i&&(t.preventDefault(),n.focus())}}}(t,n)}(t,n)})),t.h.o(e,"click",(function(){return t.fc()})),t.h.o(t,"submenuopen",(function(){t.fc()})),t.h.o(t.B,"play",(function(){ab(t)})),t.h.o(t.B,"pause",(function(){ab(t)})),t.h.o(t.j,"mousemove",(function(e){rb(t,e)})),t.h.o(t.j,"touchmove",(function(e){rb(t,e)}),{passive:!0}),t.h.o(t.j,"touchend",(function(e){rb(t,e)}),{passive:!0}),t.h.o(t.j,"mouseleave",(function(){t.K||t.aa.Aa()})),t.h.o(t.C,"caststatuschanged",(function(){lb(t)})),t.h.o(t.j,"keydown",(function(e){var n=document.activeElement,i=!(!n||!n.classList)&&n.classList.contains("shaka-volume-bar"),r=n&&n.classList&&n.classList.contains("shaka-seek-bar");if(t.g.contains(n)&&rb(t,e),t.i.enableKeyboardPlaybackControls)switch(e.key){case"ArrowLeft":t.m&&!i&&(e.preventDefault(),cb(t,t.m.getValue()-5));break;case"ArrowRight":t.m&&!i&&(e.preventDefault(),cb(t,t.m.getValue()+5));break;case"Home":t.m&&cb(t,t.F.Ga().start);break;case"End":t.m&&cb(t,t.F.Ga().end);break;case" ":r&&sb(t)}})),t.h.o(t.j,"keyup",(function(e){t.wa.delete(e.key)})),t.h.o(t.Ya,"ad-started",(function(e){t.l=e.ad,t.Bf()})),t.h.o(t.Ya,"ad-stopped",(function(){t.l=null,t.gf()})),screen.orientation&&t.h.o(screen.orientation,"change",(function(){return P((function(e){return x(e,function(e){return P((function(t){return e.B&&0!=e.B.readyState&&!e.C.sa()&&e.i.enableFullscreenOnRotation?screen.orientation.type.includes("landscape")&&!document.fullscreenElement?x(t,e.
2j.requestFullscreen({navigationUI:"hide"}),0):screen.orientation.type.includes("portrait")&&document.fullscreenElement?x(t,document.exitFullscreen(),0):t.D(0):t.return()}))}(t),0)}))})),t.h.o(document,"fullscreenchange",(function(){t.l&&t.l.resize(t.A.offsetWidth,t.A.offsetHeight)}))}(this),this.wa=new Set,lb(this),this.Oa.ka(.125),this.h.o(this.Na,"locale-changed",(function(e){a.Ya.setLocale(e.locales[0])}))}function eb(e){for(var t=c(e.H),n=t.next();!n.done;n=t.next())n.value.release();e.H=[]}function tb(e,t){ub.set(e,t)}function nb(e){e.W&&e.B.duration&&(e.F.Pe(),e.B.paused&&!e.$?e.B.play():e.B.pause())}function ib(e){e.l&&e.l.isPaused()?e.l.play():e.l&&e.l.pause()}function rb(e,t){"mousemove"==t.type&&(e.g.classList.remove("shaka-keyboard-navigation"),ab(e)),"touchstart"==t.type||"touchmove"==t.type||"touchend"==t.type||"keyup"==t.type?e.K=Date.now():e.K+1e3<Date.now()&&(e.K=null),e.K&&"mousemove"==t.type||(e.j.style.cursor="",e.mb=!0,e.J.stop(),e.Ob()||(db(e),ab(e)),e.aa.stop(),"touchend"!=t.type&&"keyup"!=t.type&&e.K||e.aa.R(3))}function ab(t){var n=!!t.l&&t.l.isPaused(),i=t.B.paused&&!t.$,r=t.g.classList.contains("shaka-keyboard-navigation");n||(!t.l||!t.l.isLinear())&&i||t.mb||r||function(t){return!!e.matchMedia("hover: hover").matches&&t.Hb.some((function(e){return e.matches(":hover")}))}(t)?(db(t),t.g.setAttribute("shown","true"),t.ha.stop()):t.ha.R(t.i.fadeDelay)}function ob(e){e.W&&(e.Xc()?e.J.Aa():e.i.singleClickForPlayAndPause&&sb(e))}function sb(e){e.l&&e.l.isLinear()?ib(e):nb(e)}function lb(e){var t=e.C.sa();e.dispatchEvent(new V("caststatuschanged",(new Map).set("newStatus",t))),t?e.g.setAttribute("casting","true"):e.g.removeAttribute("casting")}function cb(e,t){e.m.changeTo(t),e.Ob()&&db(e)}function db(e){if(e.m)if(e.m.setValue(e.B.currentTime),e.m.update(),e.m.isShowing())for(var t=c(e.G),n=t.next();!n.done;n=t.next())n.value.classList.remove("shaka-low-position");else for(n=(t=c(e.G)).next();!n.done;n=t.next())n.value.classList.add("shaka-low-position");e.dispatchEvent(new V("timeandseekrangeupdated"))}f(Gv,jv),(i=Gv.prototype).release=function(){this.l&&(this.l.stop(),this.l=null),jv.prototype.release.call(this)},i.setRange=function(e,t){this.bar.min=e,this.bar.max=t},i.onChangeStart=function(){},i.onChange=function(){},i.onChangeEnd=function(){},i.changeTo=function(e){this.g||(this.g=!0,this.onChangeStart());var t=parseFloat(this.bar.min),n=parseFloat(this.bar.max);this.bar.value=e>n?n:e<t?t:e,this.onChange(),this.l.R(.5)},i.getValue=function(){return parseFloat(this.bar.value)},i.setValue=function(e){this.g||(this.bar.value=e)},F("shaka.ui.RangeElement",Gv),Gv.prototype.setValue=Gv.prototype.setValue,Gv.prototype.getValue=Gv.prototype.getValue,Gv.prototype.changeTo=Gv.prototype.changeTo,Gv.prototype.onChangeEnd=Gv.prototype.onChangeEnd,Gv.prototype.onChange=Gv.prototype.onChange,Gv.prototype.onChangeStart=Gv.prototype.onChangeStart,Gv.prototype.setRange=Gv.prototype.setRange,f($v,Gv),(i=$v.prototype).release=function(){this.h&&(this.h.stop(),this.h=null,this.A.stop(),this.A=null),Gv.prototype.release.call(this)},i.onChangeStart=function(){this.B=!this.video.paused,this.controls.xe(!0),this.video.pause()},i.onChange=function(){this.video.duration&&(this.update(),this.h.R(.125))},i.onChangeEnd=function(){this.h.Aa(),this.controls.xe(!1),this.B&&this.video.play()},i.isShowing=function(){return!this.container.classList.contains("shaka-hidden")},i.update=function(){var e=this.m.seekBarColors,t=this.getValue(),n=this.video.buffered.length,i=n?this.video.buffered.start(0):0,r=n?this.video.buffered.end(n-1):0,a=this.player.Ga(),o=a.end-a.start;this.setRange(a.start,a.end),Yv(this)?(Mv(this.container,!0),0==n?this.container.style.background=e.base:(n=(Math.max(i,a.start)-a.start)/o||0,r=(Math.min(r,a.end)-a.start)/o||0,t=(Math.min(Math.max(t,a.start),a.end)-a.start)/o||0,this.container.style.background="linear-gradient("+["to right",(this.m.showUnbufferedStart?e.base:e.played)+" "+100*n+"%",e.played+" "+100*n+"%",e.played+" "+100*t+"%",e.buffered+" "+100*t+"%",e.buffered+" "+100*r+"%",e.base+" "+100*r+"%"].join()+")")):Mv(this.container,!1)},F("shaka.ui.SeekBar",$v),Zv.prototype.create=function(e,t){return new $v(e,t)},$v.Factory=Zv,f(Qv,ee),(i=Qv.prototype).destroy=function(){var e=this;return P((function(t){switch(t.g){case 1:if(document.pictureInPictureElement!=e.A){t.D(2);break}return x(t,document.exitPictureInPicture(),2);case 2:if(e.h&&(e.h.release(),e.h=null),e.aa&&(e.aa.stop(),e.aa=null),e.ha&&(e.ha.stop(),e.ha=null),e.J&&(e.J.stop(),e.J=null),e.Oa&&(e.Oa.stop(),e.Oa=null),eb(e),e.g&&(e.j.removeChild(e.g),e.g=null),!e.C){t.D(4);break}return x(t,e.C.destroy(),5);case 5:e.C=null;case 4:if(!e.Ma){t.D(6);break}return x(t,e.Ma.destroy(),7);case 7:e.Ma=null;case 6:e.F=null,e.A=null,e.B=null,e.Na=null,e.wa.clear(),ee.prototype.release.call(e),w(t)}}))},i.Lf=function(e){this.jb=e,lb(this)},i.Gg=function(){ab(this)},i.configure=function(e){this.i=e,this.C.Se(e.castReceiverAppId),this.m&&(this.m=null),this.hb&&(this.hb=null),this.Za&&(this.Za=null),this.g?(As(this.g),eb(this)):(function(e){e.g=ws("div"),e.g.classList.add("shaka-controls-container"),e.j.appendChild(e.g),e.j.setAttribute("shaka-controls","true"),e.h.o(e.g,"touchstart",(function(t){e.B.duration&&(e.Ob()?e.K=Date.now():(rb(e,t),t.preventDefault()))}),{passive:!1}),e.h.o(e.g,"click",(function(){ob(e)})),e.h.o(e.g,"dblclick",(function(){e.i.doubleClickForFullscreen&&e.Rd()&&e.De()}))}(this),function(e){e.S=ws("div"),e.S.classList.add("shaka-client-side-a
2d-container"),Mv(e.S,!1),e.h.o(e.S,"click",(function(){ob(e)})),e.j.appendChild(e.S)}(this)),this.j.classList.add("shaka-video-container"),this.A.classList.add("shaka-video"),function(e){var t=ws("div");t.classList.add("shaka-scrim-container"),e.g.appendChild(t)}(this),this.i.addBigPlayButton&&function(e){var t=ws("div");t.classList.add("shaka-play-button-container"),e.g.appendChild(t),e.hb=new Fv(t,e),e.H.push(e.hb)}(this),this.i.customContextMenu&&(this.Za=new Vv(this.X,this),this.H.push(this.Za)),this.ea||function(e){e.ea=ws("div"),e.ea.classList.add("shaka-spinner-container"),e.j.appendChild(e.ea);var t=ws("div");t.classList.add("shaka-spinner"),e.ea.appendChild(t),e=document.createElementNS("http://www.w3.org/2000/svg","svg"),e.classList.add("shaka-spinner-svg"),e.setAttribute("viewBox","0 0 30 30"),t.appendChild(e),t=document.createElementNS("http://www.w3.org/2000/svg","circle"),t.classList.add("shaka-spinner-path"),t.setAttribute("cx","15"),t.setAttribute("cy","15"),t.setAttribute("r","14.5"),t.setAttribute("fill","none"),t.setAttribute("stroke-width","1"),t.setAttribute("stroke-miterlimit","10"),e.appendChild(t)}(this),this.kb=ws("div"),this.kb.classList.add("shaka-server-side-ad-container"),this.g.appendChild(this.kb),function(e){e.N=ws("div"),e.N.classList.add("shaka-bottom-controls"),e.N.classList.add("shaka-no-propagation"),e.g.appendChild(e.N),e.h.o(e.N,"click",(function(t){t.target.closest(".shaka-overflow-button")||e.fc()})),function(e){e.M=ws("div"),e.M.classList.add("shaka-ad-controls");var t=null!=e.l&&e.l.isLinear();Mv(e.M,t),e.N.appendChild(e.M),t=new zv(e.M,e),e.H.push(t),t=new Rv(e.M,e),e.H.push(t)}(e),e.X=ws("div"),e.X.classList.add("shaka-controls-button-panel"),e.X.classList.add("shaka-show-controls-on-mouse-over"),e.i.enableTooltips&&e.X.classList.add("shaka-tooltips-on"),e.N.appendChild(e.X);for(var t={},n=c(e.i.controlPanelElements),i=n.next();!i.done;t={sc:t.sc},i=n.next())i=i.value,ub.get(i)?("function"!=typeof(i=ub.get(i).create(e.X,e)).release&&(ke("shaka.extern.IUIElement","Please update UI elements to have a release() method."),t.sc=i,t.sc.release=function(e){return function(){e.sc.destroy&&e.sc.destroy()}}(t)),e.H.push(i)):K("Unrecognized control panel element requested:",i)}(this),this.G=Array.from(this.j.getElementsByClassName("shaka-settings-menu")),this.G.push.apply(this.G,d(Array.from(this.j.getElementsByClassName("shaka-overflow-menu")))),function(e){if(e.i.addSeekBar)e.m=pb.create(e.N,e),e.H.push(e.m);else for(var t=(e=c(e.G)).next();!t.done;t=e.next())t.value.classList.add("shaka-low-position")}(this),this.Hb=Array.from(this.j.getElementsByClassName("shaka-show-controls-on-mouse-over")),ab(this);for(var t=(e=c(this.j.getElementsByClassName("shaka-no-propagation"))).next();!t.done;t=e.next()){t=t.value;var n=function(e){return e.stopPropagation()};this.h.o(t,"click",n),this.h.o(t,"dblclick",n)}},i.se=function(e){(this.W=e)?(this.j.setAttribute("shaka-controls","true"),this.A.tabIndex=-1,this.A.controls=!1):this.j.removeAttribute("shaka-controls"),ab(this)},i.yf=function(e){this.A.controls=e,this.A.tabIndex=e?0:-1,e&&this.se(!1)},i.getAd=function(){return this.l},i.Wf=function(){return this.C},i.jg=function(){return this.Na},i.Ag=function(){return this.j},i.Db=function(){return this.B},i.ig=function(){return this.A},i.dc=function(){return this.F},i.hg=function(){return this.Ma},i.ag=function(){return this.g},i.rg=function(){return this.kb},i.Yf=function(){return this.S},i.Zf=function(){return this.i},i.Fg=function(){return this.$},i.xe=function(e){this.$=e},i.Dg=function(){return this.jb},i.cf=function(){return this.m?this.m.getValue():this.B.currentTime},i.zf=function(e){this.K=e},i.Xc=function(){return this.G.some((function(e){return!e.classList.contains("shaka-hidden")}))},i.fc=function(){this.J.Aa()},i.Rd=function(){return!(!document.fullscreenEnabled&&!this.A.webkitSupportsFullscreen)},i.Qd=function(){if(document.fullscreenEnabled)return!!document.fullscreenElement;var e=this.A;return!!e.webkitSupportsFullscreen&&e.webkitDisplayingFullscreen},i.De=function(){var e,t,n=this;return P((function(i){switch(i.g){case 1:if(!document.fullscreenEnabled){(e=n.A).webkitSupportsFullscreen&&(e.webkitDisplayingFullscreen?e.webkitExitFullscreen():e.webkitEnterFullscreen()),i.D(0);break}if(document.fullscreenElement)return screen.orientation&&screen.orientation.unlock(),x(i,document.exitFullscreen(),0);if(k(i,5),!document.pictureInPictureElement){i.D(7);break}return x(i,document.exitPictureInPicture(),7);case 7:return x(i,n.j.requestFullscreen({navigationUI:"hide"}),9);
2case 9:if(!n.i.forceLandscapeOnFullscreen||!screen.orientation){i.D(10);break}return k(i,11),x(i,screen.orientation.lock("landscape"),13);case 13:T(i,10,5);break;case 11:S(i,5);case 10:T(i,0);break;case 5:t=S(i),n.dispatchEvent(new V("error",(new Map).set("detail",t))),i.D(0)}}))},i.Bf=function(){Mv(this.M,!0),Mv(this.S,!0),this.g.setAttribute("ad-active","true")},i.gf=function(){Mv(this.M,!1),Mv(this.S,!1),this.g.removeAttribute("ad-active")},i.Ob=function(){return!!this.W&&(null!=this.g.getAttribute("shown")||null!=this.g.getAttribute("casting"))},F("shaka.ui.Controls",Qv),Qv.prototype.isOpaque=Qv.prototype.Ob,Qv.prototype.hideAdUI=Qv.prototype.gf,Qv.prototype.showAdUI=Qv.prototype.Bf,Qv.prototype.toggleFullScreen=Qv.prototype.De,Qv.prototype.isFullScreenEnabled=Qv.prototype.Qd,Qv.prototype.isFullScreenSupported=Qv.prototype.Rd,Qv.prototype.hideSettingsMenus=Qv.prototype.fc,Qv.prototype.anySettingsMenusAreOpen=Qv.prototype.Xc,Qv.prototype.setLastTouchEventTime=Qv.prototype.zf,Qv.prototype.getDisplayTime=Qv.prototype.cf,Qv.prototype.isCastAllowed=Qv.prototype.Dg,Qv.prototype.setSeeking=Qv.prototype.xe,Qv.prototype.isSeeking=Qv.prototype.Fg,Qv.prototype.getConfig=Qv.prototype.Zf,Qv.prototype.getClientSideAdContainer=Qv.prototype.Yf,Qv.prototype.getServerSideAdContainer=Qv.prototype.rg,Qv.prototype.getControlsContainer=Qv.prototype.ag,Qv.prototype.getLocalPlayer=Qv.prototype.hg,Qv.prototype.getPlayer=Qv.prototype.dc,Qv.prototype.getLocalVideo=Qv.prototype.ig,Qv.prototype.getVideo=Qv.prototype.Db,Qv.prototype.getVideoContainer=Qv.prototype.Ag,Qv.prototype.getLocalization=Qv.prototype.jg,Qv.prototype.getCastProxy=Qv.prototype.Wf,Qv.prototype.getAd=Qv.prototype.getAd,Qv.prototype.setEnabledNativeControls=Qv.prototype.yf,Qv.prototype.setEnabledShakaControls=Qv.prototype.se,Qv.prototype.configure=Qv.prototype.configure,Qv.prototype.loadComplete=Qv.prototype.Gg,Qv.prototype.allowCast=Qv.prototype.Lf,Qv.registerSeekBar=function(e){pb=e},Qv.registerElement=tb,Qv.prototype.destroy=Qv.prototype.destroy;var ub=new Map,pb=new Zv;function hb(e,t){jv.call(this,e,t);var n=this;this.l=this.controls.i,this.j=this.controls.g,this.i=[],this.g=ks(),this.g.classList.add("shaka-overflow-menu-button"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.g.textContent="more_vert",this.parent.appendChild(this.g),this.h=ws("div"),this.h.classList.add("shaka-overflow-menu"),this.h.classList.add("shaka-no-propagation"),this.h.classList.add("shaka-show-controls-on-mouse-over"),this.h.classList.add("shaka-hidden"),this.j.appendChild(this.h),function(e){for(var t=c(e.l.overflowMenuButtons),n=t.next();!n.done;n=t.next())n=n.value,vb.get(n)?(n=vb.get(n),e.i.push(n.create(e.h,e.controls))):K("Unrecognized overflow menu element requested:",n)}(this),this.eventManager.o(this.localization,"locale-updated",(function(){gb(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){gb(n)})),this.eventManager.o(this.adManager,"ad-started",(function(){n.ad&&n.ad.isLinear()&&Mv(n.g,!1)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){Mv(n.g,!0)})),this.eventManager.o(this.controls,"submenuopen",(function(){Mv(n.h,!1)})),this.eventManager.o(this.h,"touchstart",(function(e){n.controls.zf(Date.now()),e.stopPropagation()})),this.eventManager.o(this.g,"click",(function(){!function(e){if(e.controls.Xc())e.controls.fc();else{Mv(e.h,!0),ab(e.controls);var t=function(e){return 0==e.classList.contains("shaka-hidden")};(function(e,t){for(var n=c(e),i=n.next();!i.done;i=n.next())if(t(i.value))return!0;return!1})(e.h.childNodes,t)&&ne(e.h.childNodes,t)[0].focus()}}(n)})),gb(this),this.ad&&this.ad.isLinear()&&Mv(this.g,!1)}function mb(e,t){vb.set(e,t)}function gb(e){e.g.ariaLabel=e.localization.resolve("MORE_SETTINGS")}function fb(){}f(hb,jv),hb.prototype.release=function(){this.j=null;for(var e=c(this.i),t=e.next();!t.done;t=e.next())t.value.release();this.i=[],jv.prototype.release.call(this)},F("shaka.ui.OverflowMenu",hb),hb.registerElement=mb,fb.prototype.create=function(e,t){return new hb(e,t)},tb("overflow_menu",new fb);var vb=new Map;function bb(t,n){jv.call(this,t,n);var i=this;this.g=ks(),this.g.classList.add("shaka-airplay-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.h=ws("i"),this.h.classList.add("material-icons-round"),this.h.textContent="airplay",this.g.appendChild(this.h),e.WebKitPlaybackTargetAvailabilityEvent||this.g.classList.add("shaka-hidden");var r=ws("label");r.classList.add("shaka-overflow-button-label"),r.classList.add("shaka-overflow-menu-only"),this.j=ws("span"),r.appendChild(this.j),this.i=ws("span"),this.i.classList.add("shaka-current-selection-span"),r.appendChild(this.i),this.g.appendChild(r),this.parent.appendChild(this.g),xb(this),yb(this),this.eventManager.o(this.localization,"locale-updated",(function(){xb(i)})),this.eventManager.o(this.localization,"locale-changed",(function(){xb(i)})),this.eventManager.o(this.g,"click",(function(){i.controls.Db().webkitShowPlaybackTargetPicker()})),r=this.controls.Db(),this.eventManager.o(r,"webkitplaybacktargetavailabilitychanged",(function(e){var t=i.player.df()==Ec;Mv(i.g,"available"==e.availability&&t)})),this.eventManager.o(r,"webkitcurrentplaybacktargetiswirelesschanged",(function(){yb(i)}))}function yb(e){var t=e.controls.Db();e.g.ariaPressed=t&&t.webkitCurrentPlaybackTargetIsWireless?"true":"false"}function xb(e){e.g.ariaLabel=e.localization.resolve("AIRPLAY"),e.j.textContent=e.localization.resolve("AIRPLAY")}function wb(){}function kb(e,t,n){this.i=e,this.h=Ab(this),t.dataset.shakaPlayerContainer="",t.ui=this,this.Sd()&&t.classList.add("shaka-mobile"),this.g=new Qv(e,t,n,this.h),this.configure({}),n.controls||e.Ae(t),t.ui=this,n.ui=this}function Ab(t){var n={controlPanelElements:"play_pause time_and_duration spacer mute volume fullscreen overflow_menu".split(" "),overflowMenuButtons:"captions quality language picture_in_picture cast playback_rate".split(" "),statisticsList:"width height corruptedFrames decodedFrames droppedFrames drmTimeSeconds licenseTime liveLatency loadLatency bufferingTime manifestTimeSeconds estimatedBandwidth streamBandwidth maxSegmentDuration pauseTime playTime completionPercent".split(" "),contextMenuElements:["loop","picture_in_picture","statistics"],playbackRates:[.5,.75,1,1.25,1.5,1.75,2],fastForwardRates:[2,4,8,1],rewindRates:[-1,-2,-4,-8],addSeekBar:!0,addBigPlayButton:!1,customContextMenu:!1,castReceiverAppId:"",clearBufferOnQualityChange:!0,showUnbufferedStart:!1,seekBarColors:{base:"rgba(255, 255, 255, 0.3)",buffered:"rgba(255, 255, 255, 0.54)",played:"rgb(255, 255, 255)",adBreaks:"rgb(255, 204, 0)"},volumeBarColors:{base:"rgba(255, 255, 255, 0.54)",level:"rgb(255, 255, 255)"},trackLabelFormat:Ib,fadeDelay:0,doubleClickForFullscreen:!0,singleClickForPlayAndPause:!0,enableKeyboardPlaybackControls:!0,enableFullscreenOnRotation:!0,forceLandscapeOnFullscreen:!0,enableTooltips:!1};return e.WebKitPlaybackTargetAvailabilityEvent&&n.overflowMenuButtons.push("airplay"),t.Sd()&&(n.addBigPlayButton=!0,n.controlPanelElements=n.controlPanelElements.filter((function(e){return"play_pause"!=e&&"volume"!=e}))),n}function Tb(){var e,t,n,i,r,a,o,s,l,d,u,p;return P((function(h){switch(h.g){case 1:if(jm(),!al())return Sb("shaka-ui-load-failed",Cb),h.return();if(e=document.querySelectorAll("[data-shaka-player-container]"),!(t=document.querySelectorAll("[data-shaka-player]")).length&&!e.length){h.D(2);break}if(t.length&&!e.length){for(n=c(t),i=n.next();!i.done;i=n.next())(r=i.value).ui||(a=document.createElement("div"),r.parentElement.replaceChild(a,r),a.appendChild(r),Eb(a,r));h.D(2);break}o=c(e),s=o.next();case 4:if(s.done){h.D(2);break}if((l=s.value).ui){h.D(5);break}for(d=null,u=c(t),i=u.next();!i.done;i=u.next())if((p=i.value).parentElement==l){d=p;break}return d||((d=document.createElement("video")).setAttribute("playsinline",""),l.appendChild(d)),k(h,7),x(h,Eb(l,d),9);case 9:T(h,5);break;case 7:return S(h),Sb("shaka-ui-load-failed",_b),h.return();case 5:s=o.next(),h.D(4);break;case 2:Sb("shaka-ui-loaded"),w(h)}}))}function Sb(e,t){var n=null;null!=t&&(n={reasonCode:t}),n=new CustomEvent(e,{detail:n}),document.dispatchEvent(n)}function Eb(e,t){var n,i,r,a,o,s,l,d;return P((function(u){switch(u.g){case 1:n=new il(t),i=new kb(n,e,t),r="",e.dataset&&e.dataset.shakaPlayerCastReceiverId?r=e.dataset.shakaPlayerCastReceiverId:t.dataset&&t.dataset.shakaPlayerCastReceiverId&&(r=t.dataset.shakaPlayerCastReceiverId),r.length&&i.configure({castReceiverAppId:r}),t.controls&&i.g.yf(!0),(a=t.getAttribute("src"))&&((o=document.createElement("source")).setAttribute("src",a),t.appendChild(o),t.removeAttribute("src")),s=c(t.querySelectorAll("source")),l=s.next();case 2:if(l.done){u.D(0);break}return d=l.value,k(u,5),x(u,i.g.dc().load(d.getAttribute("src")),7);case 7:u.D(0);break;case 5:S(u);case 3:l=s.next(),u.D(2)}}))}f(bb,jv),F("shaka.ui.AirPlayButton",bb),wb.prototype.create=function(e,t){return new bb(e,t)},mb("airplay",new wb),tb("airplay",new wb),(i=kb.prototype).destroy=function(){var e=this;return P((function(t){return 1==t.g?e.g?x(t,e.g.destroy(),2):t.D(2):4!=t.g?(e.g=null,e.i?x(t,e.i.destroy(),4):t.D(4)):(e.i=null,void w(t))}))},i.Sd=function(){return!!/(?:iPhone|iPad|iPod|Android)/.test(navigator.userAgent)||bn()&&1<navigator.maxTouchPoints},i.getConfiguration=function(){var e=Ab(this);return Ks(e,this.h,Ab(this),{},""),e},i.configure=function(e,t){2==arguments.length&&"string"==typeof e&&(e=$s(e,t)),Ks(this.h,e,Ab(this),{},""),this.h.castReceiverAppId&&!this.h.overflowMenuButtons.includes("cast")&&this.h.overflowMenuButtons.push("cast"),this.g.configure(this.h),this.g.dis
2patchEvent(new V("uiupdated"))},i.$f=function(){return this.g},i.hh=function(e){this.g.se(e)},F("shaka.ui.Overlay",kb),kb.prototype.setEnabled=kb.prototype.hh,kb.prototype.getControls=kb.prototype.$f,kb.prototype.configure=kb.prototype.configure,kb.prototype.getConfiguration=kb.prototype.getConfiguration,kb.prototype.isMobile=kb.prototype.Sd,kb.prototype.destroy=kb.prototype.destroy;var Ib=0;kb.TrackLabelFormat={LANGUAGE:Ib,ROLE:1,LANGUAGE_ROLE:2,LABEL:3};var Cb=0,_b=1;function jb(e,t,n,i,r,a,o){function s(e,t){return e+": "+t}function l(e){return"variant"==e.type?e.audioRoles?e.audioRoles.join(", "):void 0:e.roles.join(", ")}var d=e.find((function(e){return 1==e.active})),u=Nv(t);As(t),t.appendChild(u),u=new Map;for(var p=c(e),h=p.next();!h.done;h=p.next())h=h.value,u.has(h.language)||u.set(h.language,new Set),u.get(h.language).add(l(h));for(u=new Set,d=d?s(d.language,l(d)):"",p={},h=(e=c(e)).next();!h.done;p={Wa:p.Wa},h=e.next()){p.Wa=h.value,h=p.Wa.language;var m=p.Wa.forced,g=a.resolve(Ze.Gf),f=l(p.Wa),v=s(h,f);if(!u.has(v)){u.add(v);var b=ks();b.addEventListener("click",function(e){return function(){n(e.Wa)}}(p));var y=ws("span");switch(b.appendChild(y),y.textContent=Nb(h,a),o){case Ib:m&&(y.textContent+=" ("+g+")");break;case 1:f?y.textContent=f:(K("Track #"+p.Wa.id+" does not have a role, but the UI is configured to only show role."),y.textContent="?"),m&&(y.textContent+=" ("+g+")");break;case 2:f&&(y.textContent+=": "+f),m&&(y.textContent+=" ("+g+")");break;case 3:p.Wa.label?y.textContent=p.Wa.label:(K("Track #"+p.Wa.id+" does not have a label, but the UI is configured to only show labels."),y.textContent="?")}i&&v==d&&(b.appendChild(Dv()),y.classList.add("shaka-chosen-item"),b.ariaSelected="true",r.textContent=y.textContent),t.appendChild(b)}}}function Nb(e,t){if(!e&&!t)return"";switch(e){case"mul":return t.resolve("MULTIPLE_LANGUAGES");case"und":return t.resolve("UNDETERMINED_LANGUAGE");case"zxx":return t.resolve("NOT_APPLICABLE")}var n=He(e);return e in Ev?Ev[e].s:n in Ev?Ev[n].s+" ("+e+")":t.resolve("UNRECOGNIZED_LANGUAGE")+" ("+e+")"}function Lb(e,t,n){jv.call(this,e,t);var i=this;!function(e,t){e.button=ks(),e.button.classList.add("shaka-overflow-button"),e.icon=ws("i"),e.icon.classList.add("material-icons-round"),e.icon.textContent=t,e.button.appendChild(e.icon);var n=ws("label");n.classList.add("shaka-overflow-button-label"),n.classList.add("shaka-overflow-menu-only"),e.nameSpan=ws("span"),n.appendChild(e.nameSpan),e.currentSelection=ws("span"),e.currentSelection.classList.add("shaka-current-selection-span"),n.appendChild(e.currentSelection),e.button.appendChild(n),e.parent.appendChild(e.button)}(this,n),function(e){e.menu=ws("div"),e.menu.classList.add("shaka-no-propagation"),e.menu.classList.add("shaka-show-controls-on-mouse-over"),e.menu.classList.add("shaka-settings-menu"),e.menu.classList.add("shaka-hidden"),e.backButton=ks(),e.backButton.classList.add("shaka-back-to-overflow-button"),e.menu.appendChild(e.backButton),e.eventManager.o(e.backButton,"click",(function(){e.controls.fc()}));var t=ws("i");t.classList.add("material-icons-round"),t.textContent="close",e.backButton.appendChild(t),e.backSpan=ws("span"),e.backButton.appendChild(e.backSpan),e.controls.g.appendChild(e.menu)}(this),function(e){e.parent.classList.contains("shaka-overflow-menu")&&(e.backButton.firstChild.textContent="arrow_back",e.eventManager.o(e.backButton,"click",(function(){Mv(e.parent,!0),e.parent.childNodes[0].focus(),ab(e.controls)})))}(this),this.eventManager.o(this.button,"click",(function(){i.menu.classList.contains("shaka-hidden")?(i.controls.dispatchEvent(new V("submenuopen")),Mv(i.menu,!0),Pv(i.menu)):Mv(i.menu,!1)}))}function Pb(e,t){Lb.call(this,e,t,"language");var n=this;this.button.classList.add("shaka-language-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-audio-languages"),this.eventManager.o(this.localization,"locale-updated",(function(){Mb(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){Mb(n)})),this.eventManager.o(this.player,"trackschanged",(function(){var e=0<n.player.ab().length;Mv(n.button,e),Db(n)})),this.eventManager.o(this.player,"variantchanged",(function(){Db(n)})),Mb(this),Db(this)}function Db(e){jb(e.player.ab(),e.menu,(function(t){e.player.vd(t.language,t.roles[0])}),!0,e.currentSelection,e.localization,e.controls.i.trackLabelFormat),Pv(e.menu),e.controls.dispatchEvent(new V("languageselectionupdated")),e.button.setAttribute("shaka-status",e.currentSelection.innerText)}function Mb(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("LANGUAGE"),e.nameSpan.textContent=e.localization.resolve("LANGUAGE"),e.backSpan.textContent=e.localization.resolve("LANGUAGE")}function Ob(){}function Rb(e,t){jv.call(this,e,t);var n=this;this.h=this.controls.C,this.g=ks(),this.g.classList.add("shaka-cast-button"),this.g.classList.add("shaka-tooltip"),this.g.ariaPressed="false",this.i=ws("i"),this.i.classList.add("material-icons-round"),this.i.textContent="cast",this.g.appendChild(this.i);var i=ws("label");i.classList.add("shaka-overflow-button-label"),i.classList.add("shaka-overflow-menu-only"),this.l=ws("span"),i.appendChild(this.l),this.j=ws("span"),this.j.classList.add("shaka-current-selection-span"),i.appendChild(this.j),this.g.appendChild(i),this.parent.appendChild(this.g),Ub(this),zb(this),this.eventManager.o(this.localization,"locale-updated",(function(){Ub(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){Ub(n)})),this.eventManager.o(this.g,"click",(function(){!function(e){var t;P((function(n){return 1==n.g?e.h.sa()?(e.h.Cf(),n.D(0)):(k(n,3),e.g.disabled=!0,x(n,e.h.cast(),5)):3!=n.g?(e.g.disabled=!1,T(n,
20)):(t=S(n),e.g.disabled=!1,8004!=t.code&&e.controls.dispatchEvent(new V("error",(new Map).set("detail",t))),void w(n))}))}(n)})),this.eventManager.o(this.controls,"caststatuschanged",(function(){zb(n)}))}function zb(e){var t=e.h.Oe()&&e.controls.jb,n=e.h.sa();Mv(e.g,t),e.i.textContent=n?"cast_connected":"cast",t&&(e.g.ariaPressed=n?"true":"false"),Bb(e)}function Bb(e){e.j.textContent=e.h.sa()?e.h.td():e.localization.resolve("OFF")}function Ub(e){e.g.ariaLabel=e.localization.resolve("CAST"),e.l.textContent=e.localization.resolve("CAST"),Bb(e)}function Fb(){}function Vb(e,t){jv.call(this,e,t);var n=this;this.g=ks(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-fast-forward-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status","1x"),this.g.textContent="fast_forward",this.parent.appendChild(this.g),qb(this),this.h=this.controls.i.fastForwardRates,this.eventManager.o(this.localization,"locale-updated",(function(){qb(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){qb(n)})),this.eventManager.o(this.g,"click",(function(){if(n.video.duration){var e=n.h.indexOf(n.player.Cb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Fe(e),n.g.setAttribute("shaka-status",e+"x")}}))}function qb(e){e.g.ariaLabel=e.localization.resolve("FAST_FORWARD")}function Hb(){}function Gb(e,t){jv.call(this,e,t);var n=this;this.h=this.controls.A,this.g=ks(),this.g.classList.add("shaka-fullscreen-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),Kb(this),this.g.textContent="fullscreen",this.parent.appendChild(this.g),$b(this),this.eventManager.o(this.localization,"locale-updated",(function(){$b(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){$b(n)})),this.eventManager.o(this.g,"click",(function(){return P((function(e){return x(e,n.controls.De(),0)}))})),this.eventManager.o(document,"fullscreenchange",(function(){n.g.textContent=n.controls.Qd()?"fullscreen_exit":"fullscreen",$b(n)})),this.eventManager.o(this.h,"loadedmetadata",(function(){Kb(n)})),this.eventManager.o(this.h,"loadeddata",(function(){Kb(n)}))}function Kb(e){e.controls.Rd()?e.g.classList.remove("shaka-hidden"):e.g.classList.add("shaka-hidden")}function $b(e){e.g.ariaLabel=e.localization.resolve(e.controls.Qd()?"EXIT_FULL_SCREEN":"FULL_SCREEN")}function Wb(){}function Xb(e,t){jv.call(this,e,t);var n=this;this.g=ks(),this.g.classList.add("shaka-loop-button"),this.g.classList.add("shaka-tooltip"),this.i=ws("i"),this.i.classList.add("material-icons-round"),this.i.textContent="repeat",this.g.appendChild(this.i);var i=ws("label");i.classList.add("shaka-overflow-button-label"),i.classList.add("shaka-overflow-menu-only"),this.j=ws("span"),this.j.textContent=this.localization.resolve("LOOP"),i.appendChild(this.j),this.l=ws("span"),this.l.classList.add("shaka-current-selection-span"),i.appendChild(this.l),this.g.appendChild(i),Yb(this),this.parent.appendChild(this.g),this.eventManager.o(this.localization,"locale-updated",(function(){Yb(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){Yb(n)})),this.eventManager.o(this.g,"click",(function(){n.video.loop=!n.video.loop,n.h.Aa(),n.h.ka(1)})),this.m=this.video.loop,this.h=new mn((function(){n.m!=n.video.loop&&(Yb(n),n.m=n.video.loop)})),this.h.ka(1)}function Yb(e){e.j.textContent=e.localization.resolve("LOOP"),e.l.textContent=e.localization.resolve(e.video.loop?"ON":"OFF"),e.i.textContent=e.video.loop?"repeat_on":"repeat",e.g.ariaLabel=e.localization.resolve(e.video.loop?"EXIT_LOOP_MODE":"ENTER_LOOP_MODE")}function Jb(){}function Zb(e,t){jv.call(this,e,t);var n=this;this.g=ks(),this.g.classList.add("shaka-mute-button"),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-tooltip"),this.parent.appendChild(this.g),Qb(this),ey(this),this.eventManager.o(this.localization,"locale-updated",(function(){Qb(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){Qb(n)})),this.eventManager.o(this.g,"click",(function(){n.ad&&n.ad.isLinear()?n.ad.setMuted(!n.ad.isMuted()):n.video.muted=!n.video.muted})),this.eventManager.o(this.video,"volumechange",(function(){Qb(n),ey(n)})),this.eventManager.o(this.adManager,"ad-volume-changed",(function(){Qb(n),ey(n)})),this.eventManager.o(this.adManager,"ad-muted",(function(){Qb(n),ey(n)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){n.ad=null,Qb(n),ey(n)}))}
2function Qb(e){var t=e.ad?e.ad.isMuted()?"UNMUTE":"MUTE":e.video.muted?"UNMUTE":"MUTE";e.g.ariaLabel=e.localization.resolve(t)}function ey(e){var t=e.ad?e.ad.isMuted()?"volume_off":"volume_up":e.video.muted?"volume_off":"volume_up";e.g.textContent=t}function ty(){}function ny(e,t){jv.call(this,e,t);var n=this;this.l=this.controls.A,this.g=ks(),this.g.classList.add("shaka-pip-button"),this.g.classList.add("shaka-tooltip"),this.i=ws("i"),this.i.classList.add("material-icons-round"),this.i.textContent="picture_in_picture_alt",this.g.appendChild(this.i);var i=ws("label");i.classList.add("shaka-overflow-button-label"),i.classList.add("shaka-overflow-menu-only"),this.j=ws("span"),this.j.textContent=this.localization.resolve("PICTURE_IN_PICTURE"),i.appendChild(this.j),this.h=ws("span"),this.h.classList.add("shaka-current-selection-span"),i.appendChild(this.h),this.g.appendChild(i),iy(this),this.parent.appendChild(this.g),document.pictureInPictureEnabled&&!this.video.disablePictureInPicture||Mv(this.g,!1),this.eventManager.o(this.localization,"locale-updated",(function(){iy(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){iy(n)})),this.eventManager.o(this.g,"click",(function(){!function(e){var t;P((function(n){return 1==n.g?(k(n,2),document.pictureInPictureElement?x(n,document.exitPictureInPicture(),5):(document.fullscreenElement&&document.exitFullscreen(),x(n,e.video.requestPictureInPicture(),5))):2!=n.g?T(n,0):(t=S(n),e.controls.dispatchEvent(new V("error",(new Map).set("detail",t))),void w(n))}))}(n)})),this.eventManager.o(this.l,"enterpictureinpicture",(function(){n.i.textContent="branding_watermark",n.g.ariaLabel=n.localization.resolve("EXIT_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("ON")})),this.eventManager.o(this.l,"leavepictureinpicture",(function(){n.i.textContent="picture_in_picture_alt",n.g.ariaLabel=n.localization.resolve("ENTER_PICTURE_IN_PICTURE"),n.h.textContent=n.localization.resolve("OFF")})),this.eventManager.o(this.controls,"caststatuschanged",(function(e){e.newStatus?document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Mv(n.g,!1):document.pictureInPictureEnabled&&!n.video.disablePictureInPicture&&Mv(n.g,!0)})),this.eventManager.o(this.player,"trackschanged",(function(){!function(e){P((function(t){return!document.pictureInPictureEnabled||e.video.disablePictureInPicture?(Mv(e.g,!1),t.D(0)):e.player&&e.player.jf()?(Mv(e.g,!1),document.pictureInPictureElement?x(t,document.exitPictureInPicture(),0):t.D(0)):(Mv(e.g,!0),t.D(0))}))}(n)}))}function iy(e){e.j.textContent=e.localization.resolve("PICTURE_IN_PICTURE"),e.g.ariaLabel=e.localization.resolve(document.pictureInPictureElement?"EXIT_PICTURE_IN_PICTURE":"ENTER_PICTURE_IN_PICTURE"),e.h.textContent=e.localization.resolve(document.pictureInPictureElement?"ON":"OFF")}function ry(){}function ay(e,t){Lb.call(this,e,t,"slow_motion_video");var n=this;this.button.classList.add("shaka-playbackrate-button"),this.menu.classList.add("shaka-playback-rates"),this.button.classList.add("shaka-tooltip-status"),this.eventManager.o(this.localization,"locale-updated",(function(){oy(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){oy(n)})),this.eventManager.o(this.player,"ratechange",(function(){sy(n,n.player.Cb())})),this.g=new Map(this.controls.i.playbackRates.map((function(e){return[e+"x",e]}))),oy(this),function(e){for(var t={},n=c(e.g.keys()),i=n.next();!i.done;t={tc:t.tc},i=n.next()){t.tc=i.value,i=ks();var r=ws("span");r.textContent=t.tc,i.appendChild(r),e.eventManager.o(i,"click",function(t){return function(){e.video.playbackRate=e.g.get(t.tc),e.video.defaultPlaybackRate=e.g.get(t.tc)}}(t)),e.menu.appendChild(i)}Pv(e.menu)}(this),sy(this,this.player.Cb())}function oy(e){e.backButton.ariaLabel=e.localization.resolve("BACK"),e.button.ariaLabel=e.localization.resolve("PLAYBACK_RATE"),e.nameSpan.textContent=e.localization.resolve("PLAYBACK_RATE"),e.backSpan.textContent=e.localization.resolve("PLAYBACK_RATE")}function sy(e,t){var n=Lv(e.menu,"material-icons-round shaka-chosen-item");if(n){var i=n.parentElement;i.removeAttribute("aria-selected"),i.getElementsByTagName("span")[0].classList.remove("shaka-chosen-item"),i.removeChild(n)}(n=Array.from(e.menu.querySelectorAll("span")).find((function(n){return e.g.get(n.textContent)==t})))&&((i=n.parentElement).appendChild(Dv()),i.ariaSelected="true",n.classList.add("shaka-chosen-item")),e.currentSelection.textContent=t+"x",e.button.setAttribute("shaka-status",t+"x")}function ly(){}function cy(e,t){jv.call(this,e,t);var n=this;this.g=ks(),this.g.classList.add("shaka-current-time"),dy(this,"0:00"),this.parent.appendChild(this.g),this.eventManager.o(this.g,"click",(function(){n.player.T()&&(n.video.currentTime=n.player.Ga().end)})),this.eventManager.o(this.controls,"timeandseekrangeupdated",(function(){var e=n.controls.$,t=n.controls.cf(),i=n.video.duration,r=n.player.Ga(),a=r.end-r.start;n.player.T()?(i=3600<=a,1<=(t=Math.max(0,Math.floor(r.end-t)))||e?(dy(n,"- "+Ov(t,i)),n.g.disabled=!1):(dy(n,n.localization.resolve("LIVE")),n.g.disabled=!0)):(t=Ov(t,e=3600<=i),i&&(t+=" / "+Ov(i,e)),dy(n,t),n.g.disabled=!0)})),this.eventManager.o(this.player,"trackschanged",(function(){n.player.T()&&(n.g.ariaLabel=n.localization.resolve("SKIP_TO_LIVE"))}))}function dy(e,t){t!=e.g.textContent&&(e.g.textContent=t)}function uy(){}function py(e,t){Lb.call(this,e,t,"settings");var n=this;this.button.classList.add("shaka-resolution-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-resolutions"),this.eventManager.o(this.localization,"locale-updated",(function(){my(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){my(n)})),this.eventManager.o(this.player,"variantchanged",(function(){hy(n)})),this.eventManager.o(this.player,"trackschanged",(function(){hy(n)})),this.eventManager.o(this.player,"abrstatuschanged",(function(){hy(n)})),hy(this),my(this)}function hy(e){var t=e.player.ab();if(t.length&&!t[0].height)Mv(e.menu,!1),Mv(e.button,!1);else{Mv(e.button,!0),t.sort((function(e,t){return t.height-e.height}));var n=t.find((function(e){return e.active}));n&&(t=t.filter((function(e){return e.language==n.language&&e.channelsCount==n.channelsCount}))),t=t.filter((function(e,n){return t.findIndex((function(t){return t.height==e.height}))==n}));var i=Nv(e.menu);As(e.menu),e.menu.appendChild(i),i=e.player.getConfiguration().abr.enabled;for(var r={},a=c(t),o=a.next();!o.done;r={wc:r.wc},o=a.next()){r.wc=o.value,(o=ks()).classList.add("explicit-resolution"),e.eventManager.o(o,"click",function(t){return function(){var n=t.
2wc;e.player.configure({abr:{enabled:!1}}),e.player.qe(n,e.controls.i.clearBufferOnQualityChange)}}(r));var s=ws("span");s.textContent=r.wc.height+"p",o.appendChild(s),i||r.wc!=n||(o.ariaSelected="true",o.appendChild(Dv()),s.classList.add("shaka-chosen-item"),e.currentSelection.textContent=s.textContent),e.menu.appendChild(o)}(r=ks()).classList.add("shaka-enable-abr-button"),e.eventManager.o(r,"click",(function(){e.player.configure({abr:{enabled:!0}}),hy(e)})),e.g=ws("span"),e.g.classList.add("shaka-auto-span"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),r.appendChild(e.g),i&&(r.ariaSelected="true",r.appendChild(Dv()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),e.menu.appendChild(r),Pv(e.menu),e.controls.dispatchEvent(new V("resolutionselectionupdated"))}}function my(e){e.button.ariaLabel=e.localization.resolve("RESOLUTION"),e.backButton.ariaLabel=e.localization.resolve("RESOLUTION"),e.backSpan.textContent=e.localization.resolve("RESOLUTION"),e.nameSpan.textContent=e.localization.resolve("RESOLUTION"),e.g.textContent=e.localization.resolve("AUTO_QUALITY"),e.player.getConfiguration().abr.enabled&&(e.currentSelection.textContent=e.localization.resolve("AUTO_QUALITY"))}function gy(){}function fy(e,t){jv.call(this,e,t);var n=this;this.g=ks(),this.g.classList.add("material-icons-round"),this.g.classList.add("shaka-rewind-button"),this.g.classList.add("shaka-tooltip-status"),this.g.setAttribute("shaka-status",this.localization.resolve("OFF")),this.g.textContent="fast_rewind",this.parent.appendChild(this.g),vy(this),this.h=this.controls.i.rewindRates,this.eventManager.o(this.localization,"locale-updated",(function(){vy(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){vy(n)})),this.eventManager.o(this.g,"click",(function(){if(n.video.duration){var e=n.h.indexOf(n.player.Cb())+1;e=e!=n.h.length?n.h[e]:n.h[0],n.player.Fe(e),n.g.setAttribute("shaka-status",e+"x")}}))}function vy(e){e.g.ariaLabel=e.localization.resolve("REWIND")}function by(){}function yy(e,t){jv.call(this,e,t);var n=this;this.j=ws("div"),this.j.classList.add("shaka-skip-ad-container"),this.parent.appendChild(this.j),this.h=ws("div"),this.h.classList.add("shaka-skip-ad-counter"),Mv(this.h,!1),this.j.appendChild(this.h),this.g=ks(),this.g.classList.add("shaka-skip-ad-button"),this.g.disabled=!0,Mv(this.g,!1),this.g.classList.add("shaka-no-propagation"),this.j.appendChild(this.g),xy(this),this.i=new mn((function(){var e=Math.round(n.ad.getTimeUntilSkippable());0<e?n.h.textContent=e:(n.i.stop(),Mv(n.h,!1))})),this.eventManager.o(this.localization,"locale-updated",(function(){xy(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){xy(n)})),this.eventManager.o(this.adManager,"ad-started",(function(){wy(n)})),this.eventManager.o(this.adManager,"ad-skip-state-changed",(function(){n.ad.canSkipNow()&&(n.g.disabled=!1,n.i.stop(),Mv(n.h,!1))})),this.eventManager.o(this.adManager,"ad-stopped",(function(){n.i.stop(),n.g.disabled=!0,Mv(n.g,!1),Mv(n.h,!1)})),this.eventManager.o(this.g,"click",(function(){n.ad.skip()})),this.ad&&wy(this)}function xy(e){e.g.textContent=e.localization.resolve("SKIP_AD")}function wy(e){e.ad.isSkippable()&&(Mv(e.g,!0),Mv(e.h,!0),e.h.textContent="",e.i.Aa(),e.i.ka(.5))}function ky(e,t){Uv.call(this,e,t),this.button.classList.add("shaka-small-play-button"),this.button.classList.add("material-icons-round"),this.button.classList.add("shaka-tooltip"),this.h(),this.g()}function Ay(){}function Ty(e,t){jv.call(this,e,t);var n=ws("div");n.classList.add("shaka-spacer"),n.ariaHidden="true",this.parent.appendChild(n)}function Sy(){}function Ey(e,t){function n(e){return Ov(s.h[e],!1)+" (m)"}function i(e){return Math.round(s.h[e]/1e3)+" (kbits/s)"}function r(e){return s.h[e].toFixed(2)+" (s)"}function a(e){return s.h[e]+" (frames)"}function o(e){return s.h[e]+" (px)"}jv.call(this,e,t);var s=this;this.i=ks(),this.i.classList.add("shaka-statistics-button"),this.j=ws("i"),this.j.classList.add("material-icons-round"),this.j.textContent="insert_chart_outlined",this.i.appendChild(this.j);var l=ws("label");l.classList.add("shaka-overflow-button-label"),this.A=ws("span"),l.a
2ppendChild(this.A),this.m=ws("span"),this.m.classList.add("shaka-current-selection-span"),l.appendChild(this.m),this.i.appendChild(l),this.parent.appendChild(this.i),this.g=ws("div"),this.g.classList.add("shaka-no-propagation"),this.g.classList.add("shaka-show-controls-on-mouse-over"),this.g.classList.add("shaka-statistics-container"),this.g.classList.add("shaka-hidden"),this.controls.g.appendChild(this.g),this.F=[],this.G=["stateHistory","switchHistory"],this.h=this.player.getStats(),this.B={},this.C={width:o,height:o,completionPercent:function(e){return s.h[e]+" (%)"},bufferingTime:r,drmTimeSeconds:r,licenseTime:r,liveLatency:r,loadLatency:r,manifestTimeSeconds:r,estimatedBandwidth:i,streamBandwidth:i,maxSegmentDuration:n,pauseTime:n,playTime:n,corruptedFrames:a,decodedFrames:a,droppedFrames:a},this.l=new mn((function(){s.h=s.player.getStats();for(var e=c(s.F),t=e.next();!t.done;t=e.next())t=t.value,s.B[t].textContent=s.C[t](t)})),Iy(this),function(e){for(var t=c(e.controls.i.statisticsList),n=t.next();!n.done;n=t.next())if((n=n.value)in e.h&&!e.G.includes(n)){var i=e.g,r=i.appendChild,a=e,o=ws("div"),s=ws("label");s.textContent=n+":",o.appendChild(s),(s=ws("span")).textContent=a.C[n](n),o.appendChild(s),a.B[n]=s,r.call(i,o),e.F.push(n)}else K("Unrecognized statistic element:",n)}(this),this.eventManager.o(this.localization,"locale-updated",(function(){Iy(s)})),this.eventManager.o(this.localization,"locale-changed",(function(){Iy(s)})),this.eventManager.o(this.i,"click",(function(){Mv(s.parent,!1),s.g.classList.contains("shaka-hidden")?(s.j.textContent="insert_chart",s.l.ka(.1),Mv(s.g,!0)):(s.j.textContent="insert_chart_outlined",s.l.stop(),Mv(s.g,!1)),Iy(s)}))}function Iy(e){e.A.textContent=e.localization.resolve("STATISTICS"),e.i.ariaLabel=e.localization.resolve("STATISTICS"),e.m.textContent=e.localization.resolve(e.g.classList.contains("shaka-hidden")?"OFF":"ON")}function Cy(){}function _y(e,t){Lb.call(this,e,t,"closed_caption");var n=this;this.button.classList.add("shaka-caption-button"),this.button.classList.add("shaka-tooltip-status"),this.menu.classList.add("shaka-text-languages"),this.player&&this.player.Pb()?this.button.ariaPressed="true":this.button.ariaPressed="false",function(e){var t=ks();t.ariaSelected="true",e.menu.appendChild(t),t.appendChild(Dv()),e.g=ws("span"),e.g.classList.add("shaka-auto-span"),t.appendChild(e.g)}(this),this.eventManager.o(this.localization,"locale-updated",(function(){Ly(n),Ny(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){Ly(n),Ny(n)})),this.eventManager.o(this.player,"texttrackvisibility",(function(){jy(n),Ny(n)})),this.eventManager.o(this.player,"textchanged",(function(){Ny(n)})),this.eventManager.o(this.player,"trackschanged",(function(){Py(n)})),jy(this),Ly(this),Ny(this),Py(this)}function jy(e){e.player.Pb()?(e.icon.textContent="closed_caption_disabled",e.button.ariaPressed="true"):(e.icon.textContent="closed_caption",e.button.ariaPressed="false"),e.controls.dispatchEvent(new V("captionselectionupdated"))}function Ny(e){var t=e.player.rb();jb(t,e.menu,(function(t){return function(e,t){return P((function(n){return e.player.pe(t),x(n,e.player.ze(!0),0)}))}(e,t)}),e.player.Pb(),e.currentSelection,e.localization,e.controls.i.trackLabelFormat),(t=ks()).classList.add("shaka-turn-captions-off-button"),e.eventManager.o(t,"click",(function(){e.player.ze(!1),Ny(e)})),t.appendChild(e.g),e.menu.appendChild(t),e.player.Pb()||(t.ariaSelected="true",t.appendChild(Dv()),e.g.classList.add("shaka-chosen-item"),e.currentSelection.textContent=e.localization.resolve("OFF")),e.button.setAttribute("shaka-status",e.currentSelection.textContent),Pv(e.menu),e.controls.dispatchEvent(new V("captionselectionupdated"))}function Ly(e){e.button.ariaLabel=e.localization.resolve("CAPTIONS"),e.backButton.ariaLabel=e.localization.resolve("BACK"),e.nameSpan.textContent=e.localization.resolve("CAPTIONS"),e.backSpan.textContent=e.localization.resolve("CAPTIONS"),e.g.textContent=e.localization.resolve("OFF")}function Py(e){var t=0<e.player.rb().length;Mv(e.button,t),Ny(e)}function Dy(){}function My(e,t){Gv.call(this,e,t,["shaka-volume-bar-container"],["shaka-volume-bar"]);var n=this;this.h=this.controls.i,this.eventManager.o(this.video,"volumechange",(function(){return Oy(n)})),this.eventManager.o(this.adManager,"ad-volume-changed",(function(){return Ry(n)})),this.eventManager.o(this.adManager,"ad-muted",(function(){return Ry(n)})),this.eventManager.o(this.adManager,"ad-stopped",(function(){return Oy(n)})),this.eventManager.o(this.localization,"locale-updated",(function(){return By(n)})),this.eventManager.o(this.localization,"locale-changed",(function(){return By(n)})),Oy(this),By(this),this.ad&&this.onChange()}function Oy(e){e.video.muted?e.setValue(0):e.setValue(e.video.volume),zy(e)}function Ry(e){var t=e.ad.getVolume();e.setValue(t),zy(e)}function zy(e){var t=e.h.volumeBarColors,n=["to right"];
2n.push(t.level+100*e.getValue()+"%"),n.push(t.base+100*e.getValue()+"%"),n.push(t.base+"100%"),e.container.style.background="linear-gradient("+n.join(",")+")"}function By(e){e.bar.ariaLabel=e.localization.resolve("VOLUME")}function Uy(){}kb.FailReasonCode={NO_BROWSER_SUPPORT:Cb,PLAYER_FAILED_TO_LOAD:_b},"complete"==document.readyState?P((function(e){if(1==e.g)return x(e,Promise.resolve(),2);Tb(),w(e)})):e.addEventListener("load",Tb),f(Lb,jv),F("shaka.ui.SettingsMenu",Lb),f(Pb,Lb),F("shaka.ui.AudioLanguageSelection",Pb),Ob.prototype.create=function(e,t){return new Pb(e,t)},mb("language",new Ob),tb("language",new Ob),f(Rb,jv),F("shaka.ui.CastButton",Rb),Fb.prototype.create=function(e,t){return new Rb(e,t)},mb("cast",new Fb),tb("cast",new Fb),f(Vb,jv),F("shaka.ui.FastForwardButton",Vb),Hb.prototype.create=function(e,t){return new Vb(e,t)},tb("fast_forward",new Hb),f(Gb,jv),F("shaka.ui.FullscreenButton",Gb),Wb.prototype.create=function(e,t){return new Gb(e,t)},tb("fullscreen",new Wb),f(Xb,jv),Xb.prototype.release=function(){this.h.stop(),this.h=null,jv.prototype.release.call(this)},F("shaka.ui.LoopButton",Xb),Jb.prototype.create=function(e,t){return new Xb(e,t)},mb("loop",new Jb),tb("loop",new Jb),qv("loop",new Jb),f(Zb,jv),F("shaka.ui.MuteButton",Zb),ty.prototype.create=function(e,t){return new Zb(e,t)},tb("mute",new ty),f(ny,jv),F("shaka.ui.PipButton",ny),ry.prototype.create=function(e,t){return new ny(e,t)},mb("picture_in_picture",new ry),tb("picture_in_picture",new ry),qv("picture_in_picture",new ry),f(ay,Lb),F("shaka.ui.PlaybackRateSelection",ay),ly.prototype.create=function(e,t){return new ay(e,t)},mb("playback_rate",new ly),tb("playback_rate",new ly),f(cy,jv),F("shaka.ui.PresentationTimeTracker",cy),uy.prototype.create=function(e,t){return new cy(e,t)},tb("time_and_duration",new uy),f(py,Lb),F("shaka.ui.ResolutionSelection",py),gy.prototype.create=function(e,t){return new py(e,t)},mb("quality",new gy),tb("quality",new gy),f(fy,jv),F("shaka.ui.RewindButton",fy),by.prototype.create=function(e,t){return new fy(e,t)},tb("rewind",new by),f(yy,jv),yy.prototype.release=function(){this.i.stop(),this.i=null,jv.prototype.release.call(this)},F("shaka.ui.SkipAdButton",yy),f(ky,Uv),ky.prototype.h=function(){this.button.textContent=this.video.ended?"replay":this.isPaused()?"play_arrow":"pause"},ky.prototype.g=function(){if(this.video.ended)this.button.ariaLabel=this.localization.resolve("REPLAY");else{var e=this.isPaused()?"PLAY":"PAUSE";this.button.ariaLabel=this.localization.resolve(e)}},F("shaka.ui.SmallPlayButton",ky),Ay.prototype.create=function(e,t){return new ky(e,t)},tb("play_pause",new Ay),f(Ty,jv),F("shaka.ui.Spacer",Ty),Sy.prototype.create=function(e,t){return new Ty(e,t)},tb("spacer",new Sy),f(Ey,jv),Ey.prototype.release=function(){this.l.stop(),this.l=null,jv.prototype.release.call(this)},F("shaka.ui.StatisticsButton",Ey),Cy.prototype.create=function(e,t){return new Ey(e,t)},mb("statistics",new Cy),qv("statistics",new Cy),f(_y,Lb),F("shaka.ui.TextSelection",_y),Dy.prototype.create=function(e,t){return new _y(e,t)},mb("captions",new Dy),tb("captions",new Dy),f(My,Gv),My.prototype.onChange=function(){this.ad&&this.ad.isLinear()?this.ad.setVolume(this.getValue()):(this.video.volume=this.getValue(),this.video.muted=0==this.video.volume)},F("shaka.ui.VolumeBar",My),Uy.prototype.create=function(e,t){return new My(e,t)},tb("volume",new Uy)}.call(i,e,e,void 0),i.shaka)t[r]=i.shaka[r]}()},74187(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".sortable-list-item {\n  -webkit-touch-callout: none;\n  -webkit-user-select: none; /* Safari */ /* IE 10+ */\n  user-select: none;\n}\n",""]);const s=o},20604(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".error {\n\n    display: flex;\n\n    width: 100%;\n\n    max-width: 28rem;\n\n    background-color: var(--surface);\n\n    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    border-radius: 0.25rem;\n\n    pointer-events: auto\n}\n\n.error__copy-wrapper {\n\n    width: 0px;\n\n    flex: 1 1 0%;\n\n    padding: 1rem\n}\n\n.error__copy {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    font-weight: 700;\n\n    color: var(--text)\n}\n\n.error__close {\n\n    display: flex\n}\n\n.error__close-icon {\n\n    width: 100%;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    padding: 1rem;\n\n    border-width: 1px;\n\n    border-color: transparent;\n\n    color: var(--text-subdued);\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    border-radius: 0px;\n\n    border-top-right-radius: 0.5rem;\n\n    border-bottom-right-radius: 0.5rem\n}\n\n.error__close-icon:hover {\n\n    color: var(--text-strong)\n}\n",""]);const s=o},86924(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".pagination {\n\n    display: flex;\n\n    flex-direction: column-reverse;\n\n    align-items: center;\n\n    gap: 0.5rem\n}\n\n.pagination-wrapper {\n\n    display: flex\n}\n\n.current-page {\n\n    pointer-events: none;\n\n    background-color: var(--surface-subdued) !important;\n\n    color: var(--text-strong)\n}\n\n.page-number--arrow {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center\n}\n\n.page-number--inactive {\n\n    color: var(--text-subdued)\n}\n\n.pagination-total {\n\n    text-align: center;\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued)\n}\n\n.pagination--loading {\n\n    pointer-events: none;\n\n    opacity: 0.6\n}\n\n.pagination--dots {\n\n    margin: auto\n}",""]);const s=o},18894(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".spinner-wrapper {\n\n    margin: auto;\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: center\n}\n\n.spinner {\n\n    position: relative;\n\n    margin: auto;\n\n    display: flex;\n\n    height: 2.5rem;\n\n    width: 2.5rem;\n\n    margin-top: 1rem;\n\n    margin-bottom: 1rem\n}\n\n.spinner-label {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem\n}\n\n@keyframes pulse {\n\n    50% {\n\n        opacity: .5\n    }\n}\n\n.spinner-label {\n\n    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite\n}\n\n.spinner--small {\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    margin-top: 0px;\n\n    margin-bottom: 0px\n}\n\n.spinner > svg {\n\n    fill: var(--attraction)\n}\n\n@keyframes spin {\n\n    to {\n\n        transform: rotate(360deg)\n    }\n}\n\n.spinner > svg {\n\n    animation: spin 1s linear infinite\n}\n",""]);const s=o},15813(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".badge {\n\n    display: inline-block;\n\n    padding-left: 0.5rem;\n\n    padding-right: 0.5rem;\n\n    padding-top: 0.125rem;\n\n    padding-bottom: 0.125rem;\n\n    color: var(--text-strong);\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    font-weight: 400;\n\n    border-radius: 0.25rem\n}\n\n.badge span {\n\n    display: flex;\n\n    align-items: center\n}\n\n.badge .icon {\n\n    height: 1rem;\n\n    width: 1rem;\n\n    margin-left: 0px;\n\n    margin-right: 0.25rem\n}\n\n.badge--success {\n\n    background-color: var(--surface-information)\n}\n\n.badge--brand {\n\n    background-color: var(--surface-subdued)\n}\n\n.badge--error {\n\n    background-color: var(--surface-critical)\n}\n\n.badge--vip, .badge--plus {\n\n    background-color: var(--surface-warning)\n}\n\n.badge--demo {\n\n    background-color: var(--surface-success);\n\n    color: var(--text-strong)\n}\n\n.badge--demo:is(.dark *) {\n\n    --tw-text-opacity: 1;\n\n    color: rgb(0 0 0 / var(--tw-text-opacity))\n}\n\n.badge--default {\n\n    background-color: var(--surface-subdued)\n}\n\n.course-detail-overview__table .badge--default {\n\n    border-width: 1px;\n\n    border-color: var(--border-color)\n}\n",""]);const s=o},69793(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".bookCover {\n    height: 100%;\n    align-items: flex-start;\n}\n\n.bookCover--sm {\n    font-size: 0.4rem;\n    line-height: 0.5rem;\n}\n\n.bookCover img {\n    height: 100%;\n    object-fit: contain;\n    object-position: bottom;\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n",""]);const s=o},74041(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".brand {\n\n    height: 100%;\n\n    display: flex\n}\n\n.brand--delta {\n\n    margin-top: 0.75rem;\n\n    width: 3.5rem\n}\n\n.product {\n\n    color: currentColor;\n\n    height: 100%;\n\n    display: flex;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem\n}\n\n.product > svg {\n\n    position: relative;\n\n    top: 7px\n}\n",""]);const s=o},45043(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".button {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  padding-left: 1rem;\n  padding-right: 1rem;\n  gap: 0.75rem;\n  background-color: var(--surface);\n  border-width: 1px;\n  border-color: var(--border-color);\n  color: var(--text-strong);\n  font-weight: 700;\n  line-height: 1.25rem;\n  border-radius: 0.25rem;\n  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 200ms;\n  white-space: nowrap;\n}.button:hover {\n  border-color: var(--border-focus-color);\n  background-color: var(--surface-subdued);\n}.button:focus {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n  --tw-ring-color: var(--focus-outline);\n  position: relative;\n  z-index: 10;\n}.button:disabled {\n  pointer-events: none;\n  opacity: 0.5;\n}\n\n.button--start {\n  justify-content: flex-start;\n}\n\n.button--end {\n  justify-content: flex-end;\n}\n\n.button--between {\n  justify-content: space-between;\n}\n\n.button--hovered {\n  border-color: var(--interactive-hovered);\n  background-color: var(--surface-subdued);\n}\n\n.button--primary,\nbutton.button--primary {\n  --text-strong: #ffffff;\n  color: var(--text-strong);\n  background-color: var(--interactive);\n  border-color: var(--border-accent-color);\n}\n\n.button--primary:hover,\nbutton.button--primary:hover {\n  background-color: var(--interactive-hovered);\n}\n\n.button--secondary {\n  background-color: var(--surface);\n  border-color: var(--border-color);\n  color: var(--text-link);\n}\n\n.button--highlighted {\n  background-color: var(--attraction) !important;\n}\n\n@media (min-width: 1024px) {.button--highlighted:hover {\n    background-color: var(--surface) !important;\n    color: var(--text) !important;\n  }\n}\n\n.button--highlighted {\n  color: var(--surface) !important;\n}\n\n.button--buy {\n  background-color: var(--attraction);\n  color: var(--surface);\n}\n\n.button--buy:hover {\n  background-color: var(--surface);\n  color: var(--text);\n}\n\n.button--plain,\nbutton.button--plain {\n  border-color: transparent;\n  border-style: none;\n  background-color: transparent;\n  color: var(--text-strong);\n}\n\n.button--plain:hover,\nbutton.button--plain:hover {\n  color: var(--text-strong);\n  background-color: var(--surface-subdued);\n  border-color: transparent;\n}\n\n/* Destructive helper class */\n.button--destructive {\n  border-color: var(--text-critical);\n  color: var(--text-critical);\n}\n.button--destructive:hover {\n  background-color: var(--surface-critical);\n  color: var(--text-critical);\n}\n\n.button--plain.button--destructive {\n  color: var(--text-critical);\n}\n\n.button--plain.button--destructive:hover {\n  background-color: var(--surface-critical);\n  color: var(--text-critical);\n}\n\n.button svg {\n  width: 1.25rem;\n}\n\n.button svg::first-letter {\n  height: 1.25rem;\n}\n\n.button svg {\n  min-height: 20px;\n  min-width: 20px;\n}\n\n.button--icon {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n\n.button--icon svg {\n  height: 1.25rem;\n  width: 1.25rem;\n}\n\n.button--primary.button--icon svg {\n  fill: #ffffff;\n}\n\n.button--icon .icon {\n  margin-right: 0px;\n}\n\n.button--sm {\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n}\n\n.button--sm svg {\n  height: 1rem;\n  width: 1rem;\n}\n\n.button--lg {\n  font-size: 1.25rem;\n  line-height: 1.75rem;\n  padding-left: 1.5rem;\n  padding-right: 1.5rem;\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n}\n\n.button--lg svg {\n  height: 1.5rem;\n  width: 1.5rem;\n}\n\n.button--icon-only {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n  border-width: 0px;\n}\n\n.button--icon-only.button--plain {\n  border-radius: 0.25rem;\n}\n\n.button--icon-only svg {\n  margin-left: 0px;\n  height: 1.5rem;\n  width: 1.5rem;\n}\n\n.button--icon-only.button--sm {\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n}\n\n.button--icon-only.button--sm svg {\n  height: 1.25rem;\n  width: 1.25rem;\n  margin-left: 0px;\n}\n\n.button--reverse {\n  flex-direction: row-reverse;\n}\n\n.button:disabled {\n  cursor: default;\n}\n",""]);const s=o},65089(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".card {display: flex;flex-direction: column;justify-content: space-between;margin-left: auto;margin-right: auto\n}@media (min-width: 1024px) {.card {max-width: 42rem\n    }\n}.card {padding: 1rem\n}@media (min-width: 1024px) {.card {padding: 1.5rem\n    }\n}.card {background-color: var(--surface);--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}.card:is(.dark *) {border-width: 1px;border-color: var(--border-color)\n}.card {text-align: left;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;color: var(--text)\n}\n\n.card__title {font-size: 1.5rem;font-weight: 700;line-height: 1.5rem;color: var(--text-strong);margin-top: 1.25rem;padding-bottom: 1.5rem;border-bottom-width: 1px;border-color: var(--border-color)\n}\n\n.card__title--noBorder {border-bottom-width: 0px\n}\n\n.card__subtitle {font-size: 1.5rem;line-height: 2rem;font-weight: 700;color: var(--text-strong);line-height: 1.375\n}\n\n.card__body--image {display: flex;flex-direction: column;align-items: flex-end\n}\n\n@media (min-width: 640px) {.card__body--image {flex-direction: row\n    }\n}\n\n.card__body--image {gap: 1.5rem;padding-top: 1.5rem\n}\n\n.card__cta {margin-top: 1rem;display: flex;justify-content: flex-end\n}\n",""]);const s=o},10148(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".app-checkbox {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    position: relative;\n    overflow: hidden;\n    cursor: pointer;\n}\n\n.app-checkbox--disabled {\n    cursor: not-allowed;\n}\n\n.app-checkbox__wrapper {\n    position: relative;\n    height: 1.75rem;\n    width: 2.25rem;\n    display: block;\n}\n\n.app-checkbox__input {\n    position: absolute;\n    width: 1px;\n    height: 1px;\n    padding: 0;\n    margin: -1px;\n    overflow: hidden;\n    clip: rect(0, 0, 0, 0);\n    white-space: nowrap;\n    border-width: 0;\n}\n\n.app-checkbox__input:disabled {\n    cursor: not-allowed;\n}\n\n.app-checkbox__input:focus + .app-checkbox__checkbox {\n    outline: 2px solid transparent;\n    outline-offset: 2px;\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n    --tw-ring-color: var(--focus-outline);\n}\n\n.app-checkbox__input--intermediate + .app-checkbox__checkbox,\n.app-checkbox__input--checked + .app-checkbox__checkbox {\n    --text-strong: #ffffff;\n    color: var(--text-strong);\n    border-color: var(--border-accent-color);\n    background-color: var(--primary);\n}\n\n.app-checkbox__checkbox {\n    position: absolute;\n    top: 50%;\n    left: 50%;\n    --tw-translate-x: -50%;\n    --tw-translate-y: -50%;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n    height: 1.5rem;\n    width: 1.5rem;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    border-width: 2px;\n    border-color: var(--border-color);\n    background-color: var(--surface);\n    border-radius: 0.25rem;\n}\n\n.app-checkbox__checkbox:hover {\n    border-color: var(--border-accent-color);\n}\n\n.app-checkbox__checkbox--checked,\n.app-checkbox__input--intermediate {\n    background-color: var(--primary);\n}\n\n.app-checkbox__input--eksdi__solution .app-checkbox__input--checked + .app-checkbox__checkbox {\n    border-color: var(--text-subdued);\n    background-color: var(--text-subdued);\n}\n\n.app-checkbox__input--eksdi__solution .app-checkbox__input--checked + .app-checkbox__checkbox:hover {\n    border-color: var(--text-subdued);\n}\n\n.app-checkbox__input--eksdi__no-interaction:hover {\n    cursor: default;\n}\n\n.app-checkbox__input--eksdi__no-interaction > * .app-checkbox__checkbox:hover {\n    border-color: var(--border-color);\n}
2\n\n.app-checkbox__input--eksdi__correct .app-checkbox__input--checked + .app-checkbox__checkbox {\n    color: var(--text-strong);\n    border-color: var(--text-success);\n    background-color: var(--text-success);\n}\n\n.app-checkbox__input--eksdi__wrong .app-checkbox__input--checked + .app-checkbox__checkbox {\n    color: var(--text-strong);\n    border-color: var(--text-critical);\n    background-color: var(--text-critical);\n}\n\n.app-checkbox__input + .app-checkbox__checkbox--disabled-checked {\n    border-color: var(--text-subdued);\n    background-color: var(--text-subdued);\n}\n\n.app-checkbox__input + .app-checkbox__checkbox--disabled-checked:hover {\n    border-color: var(--text-subdued);\n}\n\n.app-checkbox__input + .app-checkbox__checkbox--disabled {\n    border-color: var(--text-subdued);\n}\n\n.app-checkbox__input + .app-checkbox__checkbox--disabled:hover {\n    border-color: var(--text-subdued);\n}\n",""]);const s=o},30912(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".combobox {\n\n    position: relative;\n\n    display: flex;\n\n    align-items: center;\n\n    background-color: var(--surface)\n}\n\n.combobox--lg {\n\n    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.combobox--lg:focus-within {\n\n    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);\n\n    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.combobox--no-shadow {\n\n    --tw-shadow: 0 0 #0000;\n\n    --tw-shadow-colored: 0 0 #0000;\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.combobox--no-shadow:focus-within {\n\n    --tw-shadow: 0 0 #0000;\n\n    --tw-shadow-colored: 0 0 #0000;\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.combobox--lg .input {\n\n    width: 100%\n}\n\n.combobox--lg .combobox__input {\n\n    height: auto;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem;\n\n    padding-left: 3rem;\n\n    padding-right: 3rem;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem\n}\n\n.combobox--lg .input__input-wrapper {\n\n    border-width: 2px;\n\n    height: auto\n}\n\n.combobox__input--withIcon {\n\n    padding-left: 3rem\n}\n\n.combobox__icon {\n\n    pointer-events: none;\n\n    position: absolute;\n\n    top: 0px;\n\n    bottom: 0px;\n\n    left: 0px;\n\n    display: flex;\n\n    align-items: center;\n\n    padding-left: 1rem\n}\n\n.combobox__icon .icon {\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    flex-shrink: 0\n}\n\n.combobox__options {\n\n    position: absolute;\n\n    top: 4rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    width: 100%;\n\n    overflow: auto;\n\n    background-color: var(--surface);\n\n    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    max-height: 15rem;\n\n    z-index: 10\n}\n\n.combobox__option {\n\n    position: relative;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem;\n\n    text-align: left;\n\n    cursor: default;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms;\n\n    -webkit-user-select: none;\n\n            user-select: none\n}\n\n.combobox__option:hover {\n\n    cursor: pointer;\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-link)\n}\n\n.combobox__option--active {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-link)\n}\n\n.combobox__reset {\n\n    position: absolute;\n\n    right: 0px;\n\n    fill: var(--text-subdued);\n\n    opacity: 0.8\n}\n\n.combobox__reset:hover {\n\n    opacity: 1\n}\n\n@media (min-width: 768px) {\n\n    .resource-list-header__search .combobox__reset {\n\n        position: relative;\n\n        margin-left: -3rem\n    }\n}\n\n.combobox--lg .combobox__reset {\n\n    right: 0.75rem\n}\n",""]);const s=o},22389(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.dropdown-menu__button {\n    white-space: normal;\n}\n\n\n.dropdown-menu__button[data-state="open"] .icon {\n    --tw-rotate: 180deg;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.dropdown-menu__content {\n    background-color: var(--surface);\n    border-width: 1px;\n    border-color: var(--border-color);\n    border-radius: 0.25rem;\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n    padding: 0.5rem;\n}\n\n.dropdown-menu__seperator {\n    height: 1px;\n    background-color: var(--border-color);\n}\n\n.dropdown-menu__item {\n    max-width: 90vw;\n    min-width: 12.5rem;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    padding-top: 0.75rem;\n    padding-bottom: 0.75rem;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    transition-property: all;\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    transition-duration: 200ms;\n    color: var(--text);\n}\n\n.dropdown-menu__item:hover {\n    cursor: pointer;\n    background-color: var(--surface-subdued);\n}\n\n.dropdown-menu__item .icon {\n    height: 1.25rem;\n    width: 1.25rem;\n    margin-right: 0px;\n}\n\n.dropdown-menu__element button {\n    width: 100%;\n    font-weight: 400;\n}\n\n.dropdown-menu__item button {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    padding-top: 0.75rem;\n    padding-bottom: 0.75rem;\n    padding-left: 1.5rem;\n    padding-right: 1.5rem;\n    width: 100%;\n    flex: 1 1 0%;\n    color: var(--text-strong);\n    background-color: var(--surface);\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    transition-duration: 200ms;\n}\n\n.dropdown-menu__item button:hover {\n    color: var(--text-link);\n}\n\n.dropdown-menu__element .spinner {\n    display: flex;\n    align-items: center;\n    justify-content: flex-start;\n    margin-top: 0.75rem;\n    margin-bottom: 0.75rem;\n    flex: 1 1 0%;\n}\n\n.viewMoreTools .icon__src > path {\n    fill: var(--surface);\n}\n',""]);const s=o},71725(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".empty-list-teaser {\n\n    text-align: center;\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: center;\n\n    padding-left: 1.5rem;\n\n    padding-right: 1.5rem;\n\n    padding-bottom: 2rem;\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-strong)\n}\n\n.empty-list-teaser__body .icon {\n\n    display: inline\n}\n\n.empty-list-teaser__body svg {\n\n    width: 1rem;\n\n    display: inline-flex;\n\n    align-self: center\n}\n\n.empty-list-teaser a:not(.button) {\n\n    margin-left: 0.25rem;\n\n    margin-right: 0.25rem;\n\n    color: var(--text-link)\n}\n\n.empty-list-teaser__body {\n\n    margin-bottom: 1rem\n}\n",""]);const s=o},3157(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".icon {\n\n    display: block;\n\n    max-height: 100%;\n\n    max-width: 100%;\n\n    margin: auto\n}\n\n.icon__src {\n\n    position: relative;\n\n    display: block;\n\n    width: 100%;\n\n    max-height: 100%\n}\n\n.icon__src:not(.transparent) > * {\n\n    fill: currentColor\n}\n\n.icon__src.none > * {\n\n    fill: none\n}\n\n.icon__placeholder {\n\n    display: block;\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    background-color: var(--surface-subdued)\n}\n",""]);const s=o},8675(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".info-box__container {\n\n    width: 100%;\n\n    margin-left: auto;\n\n    margin-right: auto;\n\n    margin-top: env(safe-area-inset-top)\n}\n\n.info-box {\n\n    position: relative;\n\n    display: flex\n}\n\n@media (min-width: 640px) {\n\n    .info-box {\n\n        flex-direction: row\n    }\n}\n\n.info-box {\n\n    padding: 1rem;\n\n    gap: 1rem;\n\n    background-color: var(--surface-information);\n\n    border-radius: 0.25rem;\n\n    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    height: 100%\n}\n\n.centered {\n\n    justify-content: center\n}\n\n.warning {\n\n    background-color: var(--surface-warning)\n}\n\n.info {\n\n    background-color: var(--surface-information)\n}\n\n.toast {\n\n    margin-right: auto;\n\n    margin-left: 0px;\n\n    margin-bottom: calc(4rem - 20px);\n\n    width: calc(100vw - 40px)\n}\n\n@media (min-width: 768px) {\n\n    .toast {\n\n        margin-bottom: 0px;\n\n        width: 24rem\n    }\n}\n\n.toast--full {\n\n    width: calc(100vw - 40px);\n\n    max-width: 100%\n}\n\n.info-box a {\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline;\n\n    text-decoration-thickness: 1px;\n\n    text-underline-offset: 4px\n}\n\n.info-box__copy {\n\n    flex: 1 1 0%;\n\n    margin-top: auto;\n\n    margin-bottom: auto;\n\n    color: var(--text-strong);\n\n    height: 100%\n}\n\n@media (min-width: 640px) {\n\n    .info-box__copy + .info-box__opt {\n\n        padding-right: 3rem\n    }\n}\n\n.info-box__opt {\n\n    margin-top: 1rem;\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.info-box__icon > .icon {\n\n    height: 2rem;\n\n    width: 2rem;\n\n    color: var(--text-strong);\n\n    margin-left: 0px\n}\n\n.info-box__close-rect {\n\n    float: right;\n\n    height: 3rem;\n\n    width: 3rem\n}\n\n.info-box__button {\n\n    position: absolute;\n\n    right: 1rem;\n\n    top: 1rem\n}\n\n.info-box__button:focus {\n\n    position: absolute\n}\n\n.toast .info-box__copy {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between\n}\n\n.toast .info-box__close-rect {\n\n    display: none\n}\n\n.toast .info-box__button {\n\n    position: relative;\n\n    right: auto;\n\n    top: auto\n}\n",""]);const s=o},6109(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.input {\n    width: 100%;\n}\n\n.input--error .input__inputGroup {\n    border-color: var(--text-critical);\n}\n\n.input__input {\n    display: block;\n    padding-top: 0.75rem;\n    padding-bottom: 0.75rem;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    width: 100%;\n    background-color: var(--surface);\n    border-radius: 0.25rem;\n    line-height: 1.25rem;\n    color: var(--text-strong);\n    -webkit-appearance: none;\n            appearance: none;\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    transition-duration: 200ms;\n}\n\n.input__input::placeholder {\n    color: var(--text-subdued);\n}\n\n.input__input:hover {\n    background-color: var(--surface-subdued);\n    border-color: var(--border-color);\n}\n\n.input__input:focus {\n    background-color: var(--surface);\n    outline: 2px solid transparent;\n    outline-offset: 2px;\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n    --tw-ring-color: var(--focus-outline);\n}\n\n.input__input[type="search"]::-webkit-search-cancel-button {\n    -webkit-appearance: none;\n            appearance: none;\n}\n\n.input__input--hidden-arrow {\n    -moz-appearance: textfield;\n    text-align: center;\n}\n\n.input__input--hidden-arrow::-webkit-outer-spin-button,\n.input__input--hidden-arrow::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n            appearance: none;\n    margin: 0px;\n}\n\n.input__inputGroup {\n    border-radius: 0.25rem;\n    display: flex;\n    width: 100%;\n    background-color: var(--surface);\n    border-width: 1px;\n    border-color: var(--border-color);\n}\n\n.input__label {\n    display: flex;\n    justify-content: space-between;\n    width: 100%;\n    margin-bottom: 0.25rem;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    color: var(--text);\n}\n\n.input__prefix {\n    position: relative;\n    display: flex;\n    align-items: center;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    background-color: var(--surface-subdued);\n    border-right-width: 1px;\n    border-color: var(--border-color);\n    white-space: nowrap;\n}\n\n.input__helpText {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n    margin-top: 0.5rem;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    color: var(--text);\n}\n\n.input__helpText a {\n    -webkit-text-decoration-line: underline;\n            text-decoration-line: underline;\n    text-decoration-thickness: 1px;\n    text-underline-offset: 4px;\n}\n\n.input__helpText .icon {\n    height: 1rem;\n    width: 1rem;\n    margin: 0px;\n}\n',""]);const s=o},10858(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".modal-dialog {\n\n    position: fixed;\n\n    inset: 0px;\n\n    overflow-y: auto\n}\n\n.modal-dialog__content {\n\n    position: fixed;\n\n    width: 100%;\n\n    bottom: 0px;\n\n    right: 0px;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    height: 100%\n}\n\n.modal-dialog__overlay {\n\n    position: fixed;\n\n    inset: 0px;\n\n    background-color: var(--backdrop);\n\n    --tw-backdrop-blur: blur(8px);\n\n    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n\n    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n\n    height: 100vh\n}\n\n.modal-dialog__body {\n\n    width: 100%;\n\n    max-width: 28rem\n}\n\n@media (min-width: 768px) {\n\n    .modal-dialog__body {\n\n        max-width: 700px\n    }\n}\n\n.modal-dialog__body {\n\n    max-height: 95%;\n\n    overflow: auto;\n\n    margin-left: auto;\n\n    margin-right: auto;\n\n    background-color: var(--surface);\n\n    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.modal-dialog__body:is(.dark *) {\n\n    border-width: 2px;\n\n    border-color: var(--border-color)\n}\n\n.modal-dialog__body {\n\n    text-align: left;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.modal-dialog__header {\n\n    display: flex;\n\n    justify-content: space-between;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.modal-dialog__header--prompt {\n\n    display: flex;\n\n    justify-content: center;\n\n    border-bottom-width: 0px\n}\n\n.modal-dialog__title {\n\n    font-size: 1.5rem;\n\n    font-weight: 700;\n\n    line-height: 1.5rem;\n\n    color: var(--text-strong);\n\n    padding-top: 22px;\n\n    padding-bottom: 22px;\n\n    padding-left: 1.5rem\n}\n\n.modal-dialog__title--prompt {\n\n    padding-left: 1.5rem;\n\n    padding-right: 1.5rem;\n\n    padding-top: 2rem;\n\n    padding-bottom: 1.5rem\n}\n\n.modal-dialog__header-actions {\n\n    margin: 0.75rem\n}\n\n.modal-dialog__text {\n\n    margin: 1.5rem;\n\n    color: var(--text)\n}\n\n.modal-dialog__text--prompt {\n\n    margin-top: 0px\n}\n\n.modal-dialog__buttons {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: space-between;\n\n    gap: 0.5rem;\n\n    margin-left: 1.5rem;\n\n    margin-right: 1.5rem;\n\n    padding-bottom: 2rem\n}\n\n.modal-dialog__buttons > .input {\n\n    flex: 1 1 0%\n}\n",""]);const s=o},83793(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".page-footer {width: 100%;display: flex;flex-direction: column;align-items: flex-start;justify-content: space-between\n}@media (min-width: 640px) {.page-footer {flex-direction: row\n    }\n}.page-footer {gap: 0.5rem;margin-left: auto;margin-right: auto;margin-bottom: env(safe-area-inset-bottom);padding: 0.75rem;padding-bottom: 5rem\n}@media (min-width: 768px) {.page-footer {padding-bottom: 0.75rem\n    }\n}.page-footer {border-top-width: 1px;border-color: var(--border-color);background-color: var(--surface)\n}\n\n.page-footer__menu {display: flex;flex-wrap: wrap;column-gap: 1rem;row-gap: 0px\n}\n",""]);const s=o},91901(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.page-header {\n    padding-top: env(safe-area-inset-top);\n    width: 100%;\n    display: flex;\n    flex-direction: column;\n    gap: 1rem;\n}@media (min-width: 640px) {.page-header {\n        flex-direction: row;\n    }\n}.page-header {\n    align-items: center;\n    justify-content: space-between;\n    margin-left: auto;\n    margin-right: auto;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    padding-bottom: 0.5rem;\n}@media (min-width: 1024px) {.page-header {\n        padding-left: 2rem;\n        padding-right: 2rem;\n    }\n}.page-header {\n    border-bottom-width: 1px;\n    border-color: var(--border-color);\n}@media (min-width: 768px) {.page-header {\n        border-width: 0px;\n    }\n}.page-header {\n    background-color: var(--primary);\n    color: var(--text-strong);\n}\n\n@media (min-width: 640px) {.page-header .page-header__brand {\n        width: 17rem;\n    }\n}\n\n.page-header__block {\n    display: flex;
2\n    align-items: center;\n    width: 100%;\n    flex: 1 1 0%;\n}\n\n.page-header__actions {\n    display: flex;\n    flex-wrap: wrap;\n    justify-content: flex-end;\n    gap: 0.5rem;\n    margin-left: auto;\n}\n\n.page-header__actions > .selectors {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n}\n\n.page-header > #login {\n    width: 100%;\n}\n\n@media (min-width: 640px) {.page-header > #login {\n        width: auto;\n    }\n}\n\n.page-header > #login {\n    margin-top: 0.75rem;\n}\n\n@media (min-width: 768px) {.page-header > #login {\n        margin-top: 1rem;\n    }\n}\n\n.page-header > #logout {\n    display: none;\n}\n\n.page-header__actions > * > .button:not(.button--secondary),\n.page-header__actions > .dropdown-menu__button,\n.page-header__actions > * > .account-menu > .button,\n.page-header__actions > * > .select > .button--plain {\n    --text-strong: #ffffff;\n}\n\n.page-header__actions > * > .button:not(.button--secondary):hover,\n.page-header__actions > .dropdown-menu__button:hover,\n.page-header__actions > * > .account-menu > .button:hover,\n.page-header__actions > * > .select > .button--plain:hover {\n    background-color: var(--interactive-hovered);\n}\n\n.page-header .button--secondary {\n    flex: 1 1 0%;\n}\n\n@media (min-width: 640px) {.page-header .button--secondary {\n        flex: none;\n    }\n}\n\n.page-header__actions .button[aria-expanded="true"] {\n    --text-strong: currentColor;\n}\n\n.page-header__actions > * > .button svg > *,\n.page-header__actions > * > .account-menu > .button svg > * {\n    fill: currentColor;\n}\n\n.page-header__brand {\n    --text-strong: #ffffff;\n    display: flex;\n    gap: 1rem;\n    height: 3.5rem;\n}\n\n@media (min-width: 768px) {.page-header__brand {\n        height: 4rem;\n    }\n}\n\n.page-header__brand {\n    color: var(--text-strong);\n}\n\n.page-header--compact {\n    padding-top: 0.5rem;\n    padding-bottom: 0.5rem;\n}\n',""]);const s=o},60055(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".pageTitle, .pageTitle-with-cover {padding-top: 1rem;padding-bottom: 2rem\n}@media (min-width: 1024px) {.pageTitle, .pageTitle-with-cover {padding-top: 4rem\n    }\n}@media (min-width: 1280px) {.pageTitle, .pageTitle-with-cover {padding-top: 4rem\n    }\n}.pageTitle, .pageTitle-with-cover {display: flex;flex-direction: column;gap: 1rem\n}@media (min-width: 640px) {.pageTitle, .pageTitle-with-cover {flex-direction: row;gap: 2rem\n    }\n}\n\n.pageTitle h1, .pageTitle-with-cover {padding-top: 1rem;padding-bottom: 1rem\n}\n\n.pageTitle p {font-size: 1.25rem;line-height: 1.75rem\n}\n\n@media (min-width: 768px) {.pageTitle-with-cover p {font-size: 1.25rem;line-height: 1.75rem\n    }\n}\n\n.pageTitle figure, .pageTitle-with-cover figure {width: 100%;max-width: 50%\n}\n\n@media (min-width: 640px) {.pageTitle figure, .pageTitle-with-cover figure {max-width: 25%\n    }\n}\n\n.pageTitle figure, .pageTitle-with-cover figure {margin-top: 1rem\n}\n\n.pageTitle-with-cover .heading-1 {font-size: 1.5rem;line-height: 1.75rem;padding-top: 0.5rem;padding-bottom: 0.5rem\n}\n\n@media (min-width: 768px) {.pageTitle-with-cover .heading-1 {padding-bottom: 2rem;padding-top: 3.5rem\n    }\n}\n\n@media (min-width: 640px) {.pageTitle-with-cover .heading-1 {font-size: 2.5rem;line-height: 2.5rem\n    }\n}\n\n@media (min-width: 768px) {.pageTitle-with-cover .heading-1 {font-size: 3rem;line-height: 1\n    }\n}\n\n.title__container {display: flex;flex-direction: column;gap: 2rem\n}\n\n@media (min-width: 768px) {.title__container {flex-direction: row\n    }\n}\n\n.title__container {flex: 1 1 0%\n}\n\n.title {flex: 1 1 0%\n}\n\n.actions {display: flex;align-items: flex-start;justify-content: flex-end;gap: 0.5rem\n}\n\n.actions > .button--primary {flex: 1 1 0%\n}\n\n@media (min-width: 640px) {.actions > .button--primary {flex: none\n    }\n}\n\n.actions:empty {display: none\n}\n",""]);const s=o},39077(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".page {width: 100%;max-width: 100vw;margin-left: auto;margin-right: auto;padding-left: 1rem;padding-right: 1rem;padding-bottom: 4rem\n}@media (min-width: 1024px) {.page {padding-left: 2rem;padding-right: 2rem\n    }\n}.page {background-color: var(--surface)\n}\n\n.page--noSpacing {padding: 0px\n}\n\n.page--grow {flex-grow: 1\n}\n\n/* fullscreen context */\n.isFullscreen .page {max-width: none;height: 100vh\n}\n",""]);const s=o},3645(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".pager__container {\n  display: flex;\n  flex-direction: column;\n}\n\n.pager {\n  display: flex;\n  align-items: center;\n}\n\n.pager__error {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n  margin-top: 0.5rem;\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n}\n\n.pager__error .icon {\n  height: 1rem;\n  width: 1rem;\n}\n\n@media (min-width: 640px) {\n\n  .pager__page-input {\n    width: 61px;\n  }\n}\n\n.pager__page-input {\n  padding: 0.75rem;\n}\n\n@media (min-width: 640px) {\n\n  .pager__page-input-error {\n    width: 61px;\n  }\n}\n\n.pager__page-input-error {\n  background-color: var(--surface-warning);\n}\n\n.pager__page-input-error[type=number] {\n  -moz-appearance: textfield;\n}\n\n.pager__page-input[type=number] {\n  -moz-appearance: textfield;\n}\n",""]);const s=o},88629(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".popover {\n    border-radius: 0.25rem;\n    background-color: var(--surface);\n    max-height: 100vh;\n    overflow-x: auto\n}\n",""]);const s=o},37365(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".radiogroup {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.625rem\n}\n\n.radiogroup__item-wrapper {\n\n    display: flex;\n\n    align-items: center\n}\n\n.radiogroup__item {\n\n    height: 20px;\n\n    width: 20px;\n\n    border-radius: 9999px;\n\n    background-color: var(--surface);\n\n    --tw-shadow: 0 0 0 2px;
2\n\n    --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    --tw-shadow-color: #000;\n\n    --tw-shadow: var(--tw-shadow-colored);\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px\n}\n\n.radiogroup__item:hover {\n\n    background-color: var(--primary)\n}\n\n.radiogroup__item:is(.dark *) {\n\n    --tw-shadow-color: white;\n\n    --tw-shadow: var(--tw-shadow-colored)\n}\n\n.radiogroup__item {\n\n    cursor: pointer\n}\n\n.radiogroup__item[data-state=checked] {\n\n    background-color: var(--primary);\n\n    --tw-shadow-color: var(--primary);\n\n    --tw-shadow: var(--tw-shadow-colored)\n}\n\n\n.radiogroup__indicator {\n\n    position: relative;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    height: 100%;\n\n    width: 100%;\n\n    --tw-shadow: 0 0 #0000;\n\n    --tw-shadow-colored: 0 0 #0000;\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow);\n\n    border-radius: 9999px;\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n\n    --tw-ring-offset-width: 2px\n}\n\n\n.radiogroup__indicator:focus {\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n\n    --tw-ring-color: var(--focus-outline)\n}\n\n\n.radiogroup__indicator::after {\n\n    display: block;\n\n    height: 0.5rem;\n\n    width: 0.5rem;\n\n    border-radius: 9999px;\n\n    background-color: var(--surface);\n\n    --tw-content: '';\n\n    content: var(--tw-content)\n}\n\n.radiogroup__label {\n\n    padding-left: 0.75rem;\n\n    line-height: 1;\n\n    color: var(--text)\n}\n",""]);const s=o},81333(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".resource-list__wrapper {\n\n    min-height: 50px\n}\n\n.resource-list {\n\n    margin-bottom: 1rem\n}\n\n.resource-list__item > a {\n\n    display: block\n}\n\n.resource-list__item > a:focus {\n\n    z-index: 10;\n\n    border-left-width: 4px;\n\n    border-left-color: var(--border-accent-color);\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px;\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n    --tw-ring-color: var(--focus-outline)\n}\n\n.resource-list-title {\n\n    padding: 1rem;\n\n    margin-left: -1rem;\n\n    margin-right: -1rem\n}\n\n@media (min-width: 640px) {\n\n    .resource-list-title {\n\n        margin-left: 0px;\n\n        margin-right: 0px\n    }\n}\n\n.resource-list-title {\n\n    background-color: var(--surface);\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.resource-list-title__link {\n\n    color: var(--text-link);\n\n    font-weight: 700;\n\n    font-size: 20px;\n\n    line-height: 24px\n}\n\n.resource-item {\n\n    position: relative;\n\n    display: flex;\n\n    align-items: flex-start;\n\n    gap: 1rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem\n}\n\n@media (min-width: 640px) {\n\n    .resource-item {\n\n        margin-left: auto;\n\n        margin-right: auto\n    }\n}\n\n.resource-item {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n    --tw-ring-inset: inset;\n\n    --tw-ring-color: transparent;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 200ms;\n\n    cursor: pointer\n}\n\n.resource-item:hover {\n\n    background-color: var(--surface-subdued);\n\n    border-left-width: 4px;\n\n    border-left-color: var(--border-accent-color)\n}\n\n.resource-item--disabled {\n\n    pointer-events: none;\n\n    opacity: 0.6\n}\n\n.resource-item__copy {\n\n    flex: 1 1 0%;\n\n    text-align: left;\n\n    padding-right: 1rem\n}\n\n.resource-item__title {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: flex-start\n}\n\n@media (min-width: 768px) {\n\n    .resource-item__title {\n\n        flex-direction: row;\n\n        align-items: center\n    }\n}\n\n.resource-item__title {\n\n    gap: 0.5rem;\n\n    margin-bottom: 0.5rem;\n\n    color: var(--text-link);\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700\n}\n\n.resource-item__description {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued)\n}\n\n.resource-item__link {\n\n    word-break: break-all;\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued)\n}\n\n.resource-item__note {\n\n    margin-top: 0.5rem\n}\n\n.resource-item__type {\n\n    background-color: var(--surface-subdued);\n\n    border-radius: 0.25rem\n}\n\n.resource-item__highlighted {\n\n    font-weight: 700\n}\n\n.resource-item__features {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: center\n}\n\n@media (min-width: 768px) {\n\n    .resource-item__features {\n\n        justify-content: flex-end\n    }\n}\n\n.resource-item__features {\n\n    gap: 0.5rem;\n\n    margin: auto\n}\n\n.resource-item__icon-wrapper {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center\n}\n\n.resource-item__icon-wrapper--offline {\n\n    background-color: var(--surface-information)\n}\n\n.resource-item__icon-wrapper--checkbox {\n\n    background-color: transparent\n}\n\n.resource-item__icon {\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    fill: currentColor;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms\n}\n\n.group:hover .resource-item__icon {\n\n    --tw-scale-x: 1.25;\n\n    --tw-scale-y: 1.25;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.resource-item__icon > * {\n\n    fill: currentColor\n}\n\n.resource-item--disabled {\n\n    opacity: 0.6;\n\n    pointer-events: none\n}\n\n.resource-list-title__title {\n\n    font-size: 20px;\n\n    line-height: 24px;\n\n    font-weight: 700;\n\n    color: var(--text-strong)\n}\n\n.resource-list-title__description {\n\n    color: var(--text-subdued)\n}\n\n.stack {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 0.5rem\n}\n\n.stack.scrollable {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 0.5rem;\n\n    overflow-x: auto;\n\n    max-width: 100vw;\n\n    padding-bottom: 0.5rem\n}\n\n\n.resource-list-header {\n\n    margin-left: -1rem;\n\n    margin-right: -1rem;\n\n    margin-bottom: 1rem\n}\n\n\n@media (min-width: 640px) {\n\n    .resource-list-header {\n\n        margin-left: 0px;\n\n        margin-right: 0px\n    }\n}\n\n\n.resource-list-header {\n\n    border-top-width: 1px;\n\n    border-bottom-width: 1px;\n\n    border-color: transparent\n}
2\n\n.resource-list-header--bulk {\n\n    position: -webkit-sticky;\n\n    position: sticky;\n\n    top: 0px;\n\n    padding-top: env(safe-area-inset-top);\n\n    z-index: 10;\n\n    border-color: var(--border-color);\n\n    background-color: var(--surface-subdued)\n}\n\n.resource-list-header__search,\n.resource-list-header__search .input {\n\n    width: 100%\n}\n\n@media (min-width: 1024px) {\n\n    .resource-list-header__search,\n.resource-list-header__search .input {\n\n        width: auto\n    }\n}\n\n.resource-list-header__actions {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: flex-start;\n\n    gap: 0.5rem;\n\n    margin-bottom: -0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    overflow-x: auto;\n\n    max-width: 100vw\n}\n\n.resource-list-header__bulk-checkbox {\n\n    display: flex;\n\n    align-items: center;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem\n}\n\n.resource-list-header__list-filters {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: stretch;\n\n    justify-content: flex-start\n}\n\n@media (min-width: 640px) {\n\n    .resource-list-header__list-filters {\n\n        flex-direction: row;\n\n        flex-wrap: wrap;\n\n        align-items: center\n    }\n}\n\n.resource-list-header__list-filters {\n\n    gap: 0.5rem;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem\n}\n\n/* Bulk actions related */\n\n.resource-list-header__bulk-checkbox + .resource-list-header__list-filters {\n\n    padding-top: 0px\n}\n\n@media (min-width: 640px) {\n\n    .resource-list-header .resource-item__icon-wrapper--checkbox {\n\n        margin-right: 1rem\n    }\n}\n\n.resource-list-header .resource-list-header__bulk-checkbox {\n\n    justify-content: space-between\n}\n\n.resource-list-header .resource-item__icon-wrapper--checkbox .app-checkbox {\n\n    flex: 1 1 0%;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem\n}\n",""]);const s=o},48605(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".separator {position: relative;display: flex\n}.separator::after {position: absolute;flex: 1 1 0%;--tw-content: '';content: var(--tw-content);background-color: var(--border-color)\n}\n\n.separator--horizontal {height: 1px;width: 100%;flex-direction: column;margin-top: 0.5rem;margin-bottom: 0.5rem\n}\n\n.separator--horizontal::after {left: 0.5rem;right: 0.5rem;content: var(--tw-content);top: 0px;bottom: 0px\n}\n\n.separator--vertical {height: 100%;width: 1px\n}\n\n.separator--vertical::after {top: 0.5rem;bottom: 0.5rem;content: var(--tw-content);left: 0px;right: 0px\n}\n",""]);const s=o},59115(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".switch {\n\n    position: relative;\n\n    display: grid;\n\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n\n    overflow: hidden;\n\n    border-radius: 9999px;\n\n    background-color: var(--surface);\n\n    padding: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.switch-slider {\n\n    background-color: var(--primary);\n\n    position: absolute;\n\n    top: 0.25rem;\n\n    left: 0.25rem;\n\n    bottom: 0.25rem;\n\n    width: calc(50% - 4px);\n\n    border-radius: 9999px;\n\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    transition-property: transform;\n\n    transition-duration: 300ms;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)\n}\n\n.switch-button {\n\n    z-index: 10;\n\n    width: 100%;\n\n    min-width: 0px;\n\n    border-radius: 9999px;\n\n    border-width: 0px;\n\n    transition-property: color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 300ms;\n\n    font-weight: 700\n}\n",""]);const s=o},18131(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".tabs{\n\nborder-bottom-width: 1px;\n\nborder-color: var(--border-color);\n\nmargin-bottom: 2rem}\n\n.tabs ul{\n\ndisplay: flex;\n\nalign-items: center;\n\nmargin-bottom: -1px;\n\noverflow: auto}\n\n.tabs a{\n\nposition: relative;\n\nwhite-space: nowrap;\n\nfont-weight: 700;\n\npadding-left: 0.75rem;\n\npadding-right: 0.75rem;\n\npadding-top: 1rem;\n\npadding-bottom: 1rem;\n\ndisplay: inline-flex;\n\ntransition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ntransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\ntransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ntransition-duration: 150ms;\n\nborder-bottom-width: 1px;\n\nborder-color: var(--border-color)}\n\n.tabs a:hover{\n\nborder-color: var(--border-focus-color);\n\nbackground-color: var(--surface-subdued)}\n\n.tabs a:focus{\n\noutline: 2px solid transparent;\n\noutline-offset: 2px;\n\n--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\nbox-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n--tw-ring-color: var(--focus-outline)}\n\n.tabs a{\n\ncursor: pointer}\n\n.tabs div{\n\nposition: relative;\n\nwhite-space: nowrap;\n\nfont-weight: 700;\n\npadding-left: 0.75rem;\n\npadding-right: 0.75rem;\n\npadding-top: 1rem;\n\npadding-bottom: 1rem;\n\ndisplay: inline-flex;\n\ntransition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ntransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\ntransition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\ntransition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\ntransition-duration: 150ms;\n\nborder-bottom-width: 1px;\n\nborder-color: var(--border-color);\n\ncursor: default}\n\n.tab--asset{\n\nborder-bottom-width: 1px;\n\nborder-color: var(--border-color);\n\ncolor: var(--text);\n\npadding: 0.5rem}\n\n@media (min-width: 768px){\n\n.tab--asset{\n\npadding: 1rem}}\n\n.tab--asset{\n\nfont-weight: 700;\n\ncolor: var(--text-strong)}\n\n@media (min-width: 1024px){\n\n.tab--asset{\n\nfont-size: 20px;\n\nline-height: 24px}}\n\n.tab--asset{\n\nmargin-bottom: -1px}\n\n@media (min-width: 768px){\n\n.tab--asset--minimized{\n\nfont-size: 1rem;\n\nline-height: 1.5rem}}\n\n.tab--asset--minimized{\n\npadding: 0.5rem}\n\n.tabs a.active-tab, .active-tab--asset{\n\ncolor: var(--text-link);\n\nborder-bottom-width: 1px;\n\nborder-color: var(--border-accent-color)}\n\n/* currently unused as mobile variant */\n{/*\n.tabs__select {\n    @apply block;\n    @apply w-full;\n    @apply rounded-md;\n    @apply border;\n    @apply py-2 pl-3 pr-10;\n    @apply text-base;\n    @apply focus:outline-none focus:ring focus:ring-focusOutline;\n}\n*/}\n",""]);const s=o},91162(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".small-sub-title {\n    -webkit-text-decoration-line: underline;\n            text-decoration-line: underline\n}\n",""]);const s=o},88990(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".account-menu {\n\n    display: flex;\n\n    align-items: center;\n\n    position: relative;\n\n    text-align: left\n}\n\n.account-menu__dialog {\n\n    position: absolute;\n\n    right: 0px;\n\n    top: 0px;\n\n    z-index: 40\n}\n\n.account-menu__content {\n\n    margin-left: auto;\n\n    width: 16rem;\n\n    color: var(--text-strong);\n\n    background-color: var(--surface);\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    border-radius: 0.25rem;\n\n    --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.account-menu__item {\n\n    display: block;\n\n    padding-left: 0.25rem;\n\n    padding-right: 0.25rem;\n\n    padding-top: 0.25rem;\n\n    padding-bottom: 0.25rem\n}\n\n.account-menu__item .icon {\n\n    margin-right: 0px\n}\n\n.account-menu__separator {\n\n    display: block;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.account-menu__item.inline {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem\n}\n\n.account-menu__item.inline > * {\n}\n\n.account-menu__item--auth > .button {\n\n    width: 100%\n}\n\n.account-menu__header {\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    padding-left: 1rem;\n\n    padding-right: 0.5rem;\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: space-between;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.header__actions {\n\n    display: flex;\n\n    flex-direction: row-reverse;\n\n    gap: 0.5rem\n}\n\n.settings__group {\n\n    margin-top: 2rem\n}\n\n@media (min-width: 640px) {\n\n    .settings__group dl {\n\n        display: grid;\n\n        grid-template-columns: repeat(3, minmax(0, 1fr))\n    }\n}\n\n.settings__item {\n\n    margin-left: -1rem;\n\n    margin-right: -1rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem\n}\n\n@media (min-width: 640px) {\n\n    .settings__item {\n\n        margin-left: 0px;\n\n        margin-right: 0px\n    }\n}\n\ndt.settings__item {\n\n    padding-bottom: 0px\n}\n\n@media (min-width: 640px) {\n\n    dt.settings__item {\n\n        padding-top: 1.5rem;\n\n        padding-bottom: 1.5rem;\n\n        border-bottom-width: 1px;\n\n        border-color: var(--border-color)\n    }\n}\n\n.settings__item-list__entry {\n\n    display: flex;\n\n    flex-wrap: wrap;\n\n    align-items: center\n}\n\n@media (min-width: 640px) {\n\n    .settings__item-list__entry {\n\n        grid-column: span 2 / span 2\n    }\n}\n\ndd.settings__item {\n\n    display: flex;\n\n    flex-wrap: wrap;\n\n    align-items: center\n}\n\n@media (min-width: 640px) {\n\n    dd.settings__item {\n\n        grid-column: span 2 / span 2\n    }\n}\n\ndd.settings__item {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding-top: 0px\n}\n\n@media (min-width: 640px) {\n\n    dd.settings__item {\n\n        padding-top: 0.5rem;\n\n        padding-bottom: 0.5rem\n    }\n}\n\ndd.settings__item.settings__item-list {\n\n    flex-direction: column;\n\n    align-items: flex-start;\n\n    gap: 1rem\n}\n\n.settings__item-value {\n\n    flex-grow: 1;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem;\n\n    font-weight: 700\n}\n\n.settings__item-action {\n\n    flex-shrink: 0;\n\n    margin-left: auto;\n\n    margin-top: 0.5rem\n}\n\n@media (min-width: 640px) {\n\n    .settings__item-action {\n\n        margin-left: 1rem;\n\n        margin-top: 0px\n    }\n}\n",""]);const s=o},27134(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".agb {\n\n    max-width: 48rem\n}\n\n.agb__link {\n\n    color: var(--text-link);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline;\n\n    text-underline-offset: 4px\n}\n\n.agb__section {\n\n    margin-bottom: 1rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.agb__list {\n\n    list-style-type: decimal;\n\n    margin-left: 1rem;\n\n    list-style-position: outside\n}\n\n.agb__list li {\n\n    margin-bottom: 1rem\n}\n\n.agb__list li::marker {\n\n    font-weight: 700\n}\n\n.agb__list li h3, .agb__list li h4 {\n\n    display: contents;\n\n    font-weight: 700\n}
2\n\n.agb__list--dots {\n\n    margin-left: 1rem;\n\n    list-style-type: disc\n}\n",""]);const s=o},3990(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".ai-teaser {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center\n}\n\n.ai-teaser__button:focus {\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px;\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)\n}\n\n.ai-teaser__button {\n\n    background-color: transparent\n}\n",""]);const s=o},74334(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".app-body {\n    display: flex;\n}@media (min-width: 768px) {.app-body {\n        flex-direction: row;\n    }\n}.app-body {\n    flex: 1 1 0%;\n    color: var(--text);\n}\n\n.app-body > div {\n    will-change: width;\n}\n\n.app-body__mobile-profile {\n    display: block;\n}\n\n@media (min-width: 768px) {.app-body__mobile-profile {\n        display: none;\n    }\n}\n",""]);const s=o},17257(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".app-drawer-aside {\n    position: fixed;\n    inset: 0px;\n    padding-top: env(safe-area-inset-top);\n}@media (min-width: 640px) {.app-drawer-aside {\n        margin-left: 0px;\n    }\n}@media (min-width: 1280px) {.app-drawer-aside {\n        position: relative;\n    }\n}.app-drawer-aside {\n    border-color: var(--border-color);\n}@media (min-width: 768px) {.app-drawer-aside {\n        border-left-width: 1px;\n    }\n}.app-drawer-aside {\n    overflow: hidden;\n}@media (min-width: 1280px) {.app-drawer-aside {\n        overflow: visible;\n    }\n}.app-drawer-aside {\n    overflow-x: hidden;\n    height: 100%;\n}\n\n.app-drawer-aside__backdrop {\n    position: fixed;\n    inset: 0px;\n}\n\n@media (min-width: 1280px) {.app-drawer-aside__backdrop {\n        display: none;\n    }\n}\n\n.app-drawer-aside--open {\n    display: block;\n    width: 100%;\n}\n\n@media (min-width: 1280px) {.app-drawer-aside--open {\n        max-width: 24rem;\n    }\n}\n\n.app-drawer-aside--open {\n    min-width: -webkit-fit-content;\n    min-width: fit-content;\n}\n\n.app-drawer__content {\n    /* left-16 because 64px is the width of the navigation */\n    position: absolute;\n    top: 0px;\n    bottom: 0px;\n}\n\n@media (min-width: 768px) {.app-drawer__content {\n        left: 4rem;\n    }\n}\n\n@media (min-width: 1280px) {.app-drawer__content {\n        position: relative;\n        left: 0px;\n    }\n}\n\n.app-drawer__content {\n    margin-left: auto;\n    padding-top: env(safe-area-inset-top);\n    padding-bottom: env(safe-area-inset-bottom);\n    height: 100%;\n    min-height: 91vh;\n    /* width is important for offline manager position! */\n    width: 100%;\n}\n\n@media (min-width: 768px) {.app-drawer__content {\n        width: 24rem;\n    }\n}\n\n.app-drawer__content {\n    background-color: var(--surface-subdued);\n    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
2\n    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n@media (min-width: 768px) {.app-drawer__content {\n        --tw-shadow: 0 0 #0000;\n        --tw-shadow-colored: 0 0 #0000;\n        box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n    }\n}\n\n.app-drawer__content {\n    overflow: hidden;\n    display: flex;\n    flex-direction: row;\n}\n\n.app-drawer__content-scroll {\n    overflow-y: auto;\n}\n\n@media (min-width: 1280px) {.app-drawer__content-scroll {\n        overflow: visible;\n    }\n}\n\n.app-drawer__content-scroll {\n    overscroll-behavior: none;\n    width: 100%;\n}\n\n.aside__header {\n    padding-top: env(safe-area-inset-top);\n    z-index: 10;\n    top: 0px;\n}\n\n@media (min-width: 1280px) {.aside__header {\n        position: -webkit-sticky;\n        position: sticky;\n    }\n}\n\n.aside__header {\n    margin-left: auto;\n    padding-top: 1rem;\n    padding-bottom: 1rem;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    background-color: var(--surface-subdued);\n}\n\n.aside__content {\n    padding-left: 1rem;\n    padding-right: 1rem;\n    padding-top: env(safe-area-inset-top);\n    padding-bottom: env(safe-area-inset-bottom);\n    /* on bigger screens the image is fixed too and only the table of contents is scrollable */\n}\n\n@media (min-width: 1280px) {.aside__content {\n        position: -webkit-sticky;\n        position: sticky;\n        max-height: 65vh;\n        overflow-y: auto;\n        overscroll-behavior: contain;\n    }\n}\n\n.aside_tabs {\n    z-index: 10;\n    position: -webkit-sticky;\n    position: sticky;\n    top: 0px;\n    background-color: var(--surface-subdued);\n    border-bottom-width: 1px;\n    border-color: var(--border-color);\n    margin-left: 1rem;\n    margin-right: 1rem;\n    margin-bottom: 1rem;\n}\n\n.aside__button {\n    border-width: 1px;\n    width: 1.5rem;\n    background-color: var(--border-color) !important;\n    align-items: flex-start;\n    border-radius: 0px;\n    padding: 0px;\n}\n\n.aside__button:focus {\n    border-color: var(--focus-outline) !important;\n}\n",""]);const s=o},9657(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".app-drawer {padding-left: env(safe-area-inset-left);display: none;flex-direction: column;align-items: center\n}@media (min-width: 768px) {.app-drawer {display: flex\n    }\n}.app-drawer {position: -webkit-sticky;position: sticky;top: 0px;height: 100vh;border-right-width: 1px;border-color: var(--border-color);background-color: var(--surface)\n}\n\n.app-drawer__title {padding-left: 1.5rem;padding-top: 1.5rem;font-size: 1.5rem;line-height: 2rem;font-weight: 600\n}\n\n.app-drawer__header {display: flex;justify-content: space-between;padding-left: 1rem;padding-right: 1rem;padding-top: 1rem\n}\n\n.app-drawer__nav {display: flex;flex: 1 1 0%;flex-direction: column;align-items: center;justify-content: center;padding-left: 0.5rem;padding-right: 0.5rem;gap: 1rem;width: 100%;min-width: 4rem\n}\n",""]);const s=o},83511(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,"\n.app__nav {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: center;\n\n    justify-content: center;\n\n    gap: 1rem\n}\n\n.app__nav > * {\n\n    width: 100%;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    opacity: 0.9;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms\n}\n\n.app__nav > *:hover {\n\n    opacity: 1\n}\n\n.app__nav .active {\n\n    opacity: 1\n}\n\n.app__nav > * > svg {\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    fill: var(--text-strong)\n}\n\n.app__nav > .active > svg {\n\n    fill: var(--text-link)\n}\n",""]);const s=o},3452(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".language-switcher__wrapper {\n\n    color: var(--text-strong)\n}\n\n.language-switcher--active {\n\n    font-weight: 700\n}",""]);const s=o},74658(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".mobile-nav {padding-bottom: env(safe-area-inset-bottom);display: flex;justify-content: space-evenly\n}@media (min-width: 768px) {.mobile-nav {display: none\n    }\n}.mobile-nav {width: 100%;position: fixed;bottom: 0px;background-color: var(--surface);border-top-width: 1px;border-color: var(--border-color);z-index: 50\n}\n\n.mobile-nav > .app__nav {display: flex;flex-direction: row;width: 100%;padding: 0.5rem\n}\n\n.mobile-nav--dau > .app__nav {padding: 0px\n}\n\n.mobile-nav > .app__nav > * {flex: 1 1 0%\n}\n",""]);const s=o},67649(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".pwa-install-prompt {position: fixed;left: 0.5rem;right: 0.5rem;bottom: 4rem;z-index: 20;margin-bottom: env(safe-area-inset-bottom)\n}@media (min-width: 640px) {.pwa-install-prompt {bottom: 0.5rem\n    }\n}.pwa-install-prompt {margin: auto\n}\n\n.pwa-install-prompt__wrapper {max-width: 17.5rem;padding: 1rem;background-color: var(--surface);border-width: 1px;border-color: var(--border-color);color: var(--text-strong);border-radius: 0.25rem;--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);transition-property: all;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 200ms\n}\n\n.pwa-install-prompt p {margin-bottom: 1rem\n}\n\n.prompt__actions {display: flex;gap: 0.5rem\n}\n\n.prompt__actions button:last-of-type {flex: 1 1 0%;justify-content: center\n}\n",""]);const s=o},23765(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".asset-menu__content{\n    background-color: var(--surface);\n    @applyborder border-borderColor;\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.asset-menu__seperator{\n    height: 1px;\n    background-color: var(--border-color)\n}\n\n.asset-menu__item{\n    flex: none;\n    color: var(--text-strong);\n    background-color: var(--surface);\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    transition-duration: 200ms\n}\n\n.asset-menu__item:hover{\n    color: var(--text-link)\n}\n\n.asset-menu__item--bookmark{\n    font-weight: 400\n}\n\n.asset-menu__item--sub{\n    color: var(--text-subdued)\n}\n\n.asset-menu__new-playlist-input{\n    width: 18rem;\n    display: flex;\n    flex-direction: column;\n    margin-left: -0.5rem;\n    margin-right: -0.5rem;\n    margin-bottom: -0.5rem;\n    margin-top: 0.5rem;\n    padding-left: 0.5rem;\n    padding-right: 0.5rem;\n    padding-top: 0.75rem;\n    padding-bottom: 0.75rem;\n    background-color: var(--surface-subdued)\n}\n\n.asset-menu__back-to-menu-button{\n    display: flex;\n    align-items: center;\n    gap: 1rem\n}\n\n.asset-menu__back-to-menu-button__text{\n    flex: 1 1 0%;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    color: var(--text-subdued)\n}\n",""]);const s=o},6674(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'\n.asset-player-dialog {\n    max-height: 100vh;\n    position: relative;\n    max-height: -webkit-fill-available;\n    height: auto;\n    width: 100%;\n}\n\n.asset-player-dialog--minimized {\n    width: 100%;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player-dialog--minimized {\n        width: 380px;\n    }\n}\n\n.asset-player-dialog--minimized {\n    right: 0px;\n    margin-right: 0px;\n    margin-left: auto;\n}\n\n.asset-player-dialog--scroll {\n    overflow-y: auto;\n}\n\n.asset-player-dialog__shadow {\n    --tw-shadow: 0px 16px 56px 0px rgba(32,33,35,0.5);
2\n    --tw-shadow-colored: 0px 16px 56px 0px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.asset-player-dialog__shadow--minimized {\n    --tw-shadow: 0px 16px 56px 0px rgba(32,33,35,0.5);\n    --tw-shadow-colored: 0px 16px 56px 0px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.asset-player-dialog__shadow--exercise {\n    --tw-shadow: 0 0 #0000;\n    --tw-shadow-colored: 0 0 #0000;\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n    min-height: 100vh;\n    display: flex;\n    flex-direction: column;\n}\n\n@supports(max-height: 100dvh) {\n    .asset-player-dialog {\n        max-height: 100dvh;\n    }\n}\n\n.asset-player-dialog__overlay {\n    position: fixed;\n    inset: 0px;\n    background-color: var(--backdrop);\n    --tw-backdrop-blur: blur(8px);\n    -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n    backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n\n.asset-player {\n    max-height: 100vh;\n    background-color: var(--surface);\n    display: flex;\n    flex-direction: column;\n    margin-left: auto;\n    margin-right: auto;\n    position: relative;\n    padding-top: env(safe-area-inset-top);\n    padding-right: env(safe-area-inset-right);\n    padding-bottom: env(safe-area-inset-bottom);\n    padding-left: env(safe-area-inset-left);\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized {\n        height: auto;\n    }\n}\n\n.asset-player--exercise {\n    min-height: 100vh;\n}\n\n.asset-player__content {\n    display: flex;\n    flex: 1 1 0%;\n    background-color: var(--surface);\n}\n\n.asset-player__iframe {\n    flex: 1 1 0%;\n    min-height: 90vh;\n    width: 100%;\n}\n\n.asset-player__actions {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n}\n\n.asset-player__stored-icon {\n    margin-left: 0.5rem;\n    margin-right: 1rem;\n    padding-left: 0.5rem;\n    padding-right: 0.5rem;\n    padding-top: 0.25rem;\n    padding-bottom: 0.25rem;\n    background-color: var(--surface-information);\n    font-size: 0.75rem;\n    line-height: 1rem;\n    font-weight: 400;\n    border-radius: 9999px;\n}\n\n.asset-player__offline-media {\n    margin-right: 0.5rem;\n}\n\n.asset-player__header {\n    display: flex;\n    flex-direction: column;\n    padding: 1rem;\n    color: var(--text);\n    background-color: var(--surface);\n    border-bottom-width: 1px;\n    border-color: var(--border-color);\n}\n\n.asset-player__header-top {\n    width: 100%;\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n}\n\n.asset-player--exercise .asset-player__header-top,\n.asset-player--exercise--minimized .asset-player__header-top {\n    max-width: 1024px;\n}\n\n@media (min-width: 1024px) {\n\n    .asset-player--exercise .asset-player__header-top,\n.asset-player--exercise--minimized .asset-player__header-top {\n        margin-left: auto;\n        margin-right: auto;\n    }\n}\n\n.asset-player__format {\n    display: flex;\n    flex: 1 1 0%;\n    flex-wrap: wrap;\n    column-gap: 0.5rem;\n    font-weight: 700;\n}\n\n.asset-player__headings {\n    padding-left: 1.5rem;\n    padding-right: 1.5rem;\n    padding-top: 1rem;\n    padding-bottom: 1.5rem;\n}\n\n.asset-player__next {\n    padding-left: 1.5rem;\n    padding-right: 1.5rem;\n    padding-top: 2rem;\n    font-weight: 700;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized .shaka-player--video {\n        display: block;\n    }\n}
2\n\n.asset-player--minimized .player-controls__playback {\n    display: none;\n}\n\n.asset-player--minimized .progress {\n    position: relative;\n    bottom: 0px;\n}\n\n.shaka-player__video-wrapper {\n    padding-bottom: 0.5rem;\n}\n\n.asset-player--minimized .shaka-player--video .shaka-player__video-wrapper {\n    width: 100px;\n    min-width: 100px;\n    padding-bottom: 0px;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized .shaka-player--video .shaka-player__video-wrapper {\n        width: auto;\n        min-width: auto;\n        padding-bottom: 0.5rem;\n    }\n}\n\n.asset-player--minimized .player-controls__control-wrapper {\n    display: none;\n    flex-shrink: 1;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized .player-controls__control-wrapper {\n        display: block;\n    }\n}\n\n.player-mobile--minimized {\n    display: flex;\n    justify-content: space-between;\n    gap: 0.25rem;\n    width: 100%;\n}\n\n.asset-player--minimized .slider progress[value] {\n    height: 4px;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized .slider progress[value] {\n        height: 0.5rem;\n    }\n}\n\n.asset-player--minimized .slider input[type="range"], .asset-player--minimized .slider input[type="range"]::-webkit-slider-thumb {\n    display: none;\n}\n\n@media (min-width: 768px) {\n\n    .asset-player--minimized .slider input[type="range"], .asset-player--minimized .slider input[type="range"]::-webkit-slider-thumb {\n        display: block;\n    }\n}\n\n.asset-breadcrumbs {\n    display: flex;\n    gap: 0.25rem;\n    align-self: flex-start;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n}\n\n@media (min-width: 1280px) {\n\n    .asset-breadcrumbs {\n        align-self: center;\n    }\n}\n\n.asset-breadcrumbs a {\n    color: var(--text-link);\n}\n\n.asset-breadcrumbs .icon {\n    height: 1rem;\n    width: 1rem;\n}\n\n.asset-player--inline {\n    position: relative;\n    z-index: 20;\n}\n',""]);const s=o},79398(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,"button.play-button {\n    --surface-subdued: var(--text-strong);\n    --text: var(--surface);\n    position: relative;\n    height: 3.5rem;\n    width: 3.5rem;\n}@media (min-width: 768px) {button.play-button {\n        height: 5rem;\n        width: 5rem;\n    }\n}button.play-button {\n    display: flex;\n    flex-shrink: 0;\n    align-items: center;\n    justify-content: center;\n    border-radius: 9999px;\n    color: var(--text);\n    background-color: var(--surface-subdued);\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    transition-duration: 150ms;\n}@media (min-width: 768px) {button.play-button:hover {\n        background-color: var(--interactive-hovered);\n    }\n}button.play-button:focus {\n    outline: 2px solid transparent;\n    outline-offset: 2px;\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n    --tw-ring-color: var(--focus-outline);\n}\n\nbutton.play-button--small {\n    height: 3.5rem;\n    width: 3.5rem;\n}\n\n.play-button svg {\n    height: 2.25rem;\n    width: 2.25rem;\n}\n\n.play-button__icon-wrapper {\n    position: absolute;\n    inset: -0.75rem;\n}\n\n@media (min-width: 768px) {.play-button__icon-wrapper {\n        display: none;\n    }\n}\n\n.play-button--small > svg {\n    height: 1rem;\n    width: 1rem;\n}\n",""]);const s=o},84075(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,"",""]);const s=o},15484(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".page-list-tabs {\n\n    display: flex;\n\n    justify-content: space-between;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.page-lists {\n\n    overflow-y: auto\n}\n\n.tab--asset:hover {\n\n    cursor: pointer\n}\n\n.asset-list-entry {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.5rem;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding: 0.5rem;\n\n    color: var(--text)\n}\n\n@media (min-width: 1024px) {\n\n    .asset-list-entry {\n\n        padding-left: 1rem;\n\n        padding-right: 1rem\n    }\n}\n\n.asset-list-entry--current {\n\n    border-left-width: 4px;\n\n    border-left-color: var(--border-accent-color);\n\n    background-color: var(--surface-information)\n}\n\n.asset-list-entry--clickable:hover, .asset-list-entry--clickable:focus {\n\n    cursor: pointer;\n\n    border-left-width: 4px;\n\n    border-left-color: var(--border-accent-color);\n\n    background-color: var(--surface-subdued)\n}\n\n.asset-list-entry--current .asset-list-entry__title,\n.asset-list-entry--clickable:hover .asset-list-entry__title,\n.asset-list-entry--clickable:focus .asset-list-entry__title {\n\n    color: var(--text-strong)\n}\n\n.asset-list-entry__description {\n\n    color: var(--text-subdued)\n}\n\n.asset-list-entry--current .asset-list-entry__description,\n.asset-list-entry--clickable:hover .asset-list-entry__description,\n.asset-list-entry--clickable:focus .asset-list-entry__description {\n\n    color: var(--text)\n}\n",""]);const s=o},26128(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.player__controls {\n    margin-bottom: env(safe-area-inset-bottom);\n    position: -webkit-sticky;\n    position: sticky;\n    left: 0px;\n    right: 0px;\n    bottom: 0px;\n    width: 100%;\n    gap: 1.5rem;\n    background-color: var(--surface);\n}\n\n.player__wrapper {\n    display: flex;\n    flex-direction: column;\n}\n\n.player__wrapper--minimized {\n    display: flex;\n    flex-direction: row;\n}\n\n@media (min-width: 768px) {\n\n    .player__wrapper--minimized {\n        flex-direction: column;\n    }\n}\n\n.shaka-player--audio .shaka-scrim-container {\n    background-color: var(--surface-subdued);\n}\n\n.shaka-player--audio .shaka-video-container .material-icons-round {\n    color: var(--text-strong);\n}\n\n.shaka-player--audio .shaka-video-container .shaka-current-time {\n    color: var(--text-strong);\n}\n\n.shaka-player--audio .shaka-controls-button-panel button {\n    color: var(--text-strong);\n}\n\n.shaka-player-container {\n    background-color: var(--surface);\n    width: 100%;\n    color: var(--text);\n    fill: var(--text);\n    padding: 0.5rem;\n}\n\n.shaka-player-container video {\n    aspect-ratio: 16 / 9;\n    width: 100%;\n    max-width: 850px;\n    margin: auto;\n    max-height: calc(100vh - 240px);\n}\n\n.shaka-player-controls {\n    margin-top: 0.5rem;\n    display: flex;\n    align-items: center;\n}\n\n@media (min-width: 768px) {\n\n    .shaka-player-controls {\n        align-items: flex-end;\n    }\n}\n\n.shaka-player__progress {\n    position: relative;\n    margin-left: 0.25rem;\n    margin-right: 0.25rem;\n    display: flex;\n    flex-grow: 1;\n}\n\n.shaka-player__progress progress {\n    width: 100%;\n}\n\n.shaka-player__volume-input {\n    width: 6.5rem;\n}\n\n.shaka-player__control {\n    margin-left: 0.25rem;\n    margin-right: 0.25rem;\n    color: var(--text);\n}\n\n.shaka-player__play-button {\n    margin-right: 1rem;\n    color: var(--text);\n}\n\n.shaka-player__backward {\n    margin-left: 0px;\n}\n\n.shaka-player__time {\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n}\n\n.shaka-player__play-button svg {\n    height: 1.25rem;\n    width: 1.25rem;\n}\n\n@media (min-width: 768px) {\n\n    .shaka-player__play-button svg {\n        height: 5rem;\n        width: 5rem;\n    }\n}\n\n.shaka-player__controls {\n    display: flex;\n    flex-grow: 1;
2\n    align-items: center;\n}\n\n.shaka-player-container--fullscreen video {\n    width: 100%;\n    max-width: none;\n    max-height: calc(100vh - 150px);\n}\n\n.shaka-player-container--full-width-video video {\n    max-width: none;\n}\n\n.seek {\n    position: relative;\n}\n\n.shaka-player__progress input[type="range"] {\n    -webkit-appearance: none;\n    position: absolute;\n    top: 50%;\n    left: 0;\n    transform: translateY(-50%);\n    margin-right: 15px;\n    width: 100%;\n    height: 8px;\n    background: transparent;\n    border-radius: 5px;\n  }\n\n.shaka-player__progress input[type="range"]::-webkit-slider-thumb {\n    height: 16px;\n    width: 4px;\n    border-radius: 4px;\n    background: #006688;\n    cursor: pointer;\n    -webkit-transition: background .3s ease-in-out;\n    transition: background .3s ease-in-out;\n    border-left: 1px solid white;\n  }\n\n.shaka-player__progress input[type=range]::-webkit-slider-runnable-track {\n    -webkit-appearance: none;\n    box-shadow: none;\n    border: none;\n    background: transparent;\n  }\n\n\n.shaka-player__progress progress {\n    color: lightblue;\n  }\n\n.shaka-player__progress progress::-moz-progress-bar {\n    background: lightcolor;\n  }\n\n .shaka-player__progress progress::-webkit-progress-value {\n    background: #006688;\n  }\n\n.shaka-player__progress progress::-webkit-progress-bar {\n    background: #F6F6F7;\n  }\n\n.playback-button {\n    white-space: nowrap;\n}\n\n.playback-button + div {\n    z-index: 10 !important;\n}\n\n.player-controls__rewind {\n    display: flex;\n    flex: none;\n    align-items: center;\n    gap: 1rem;\n}\n\n.player-controls__bar {\n    display: flex;\n    justify-content: space-between;\n    gap: 0.5rem;\n}\n\n@media (min-width: 640px) {\n\n    .player-controls__bar {\n        gap: 1.5rem;\n    }\n}\n\n.player-controls__playback {\n    display: flex;\n    align-items: center;\n    gap: 0.25rem;\n}\n\n.player-controls__control-wrapper {\n    display: flex;\n    flex-direction: column;\n    gap: 0.75rem;\n    overflow: hidden;\n    padding: 0.25rem;\n}\n\n.player-controls__title {\n    margin-bottom: 1rem;\n    display: block;\n    font-weight: 700;\n    line-height: 1.5rem;\n    color: currentColor;\n}\n\n@media (min-width: 768px) {\n\n    .player-controls__title {\n        text-align: left;\n        font-size: 20px;\n        line-height: 24px;\n    }\n}\n\n.player-controls__controls-right-wrapper {\n    display: flex;\n    align-items: center;\n    gap: 0.25rem;\n}\n\n.player-controls__title-slider-wrapper {\n    display: flex;\n    flex-grow: 1;\n}\n\n.player-controls__wrapper {\n    display: flex;\n    gap: 1.25rem;\n}\n\n@media (min-width: 768px) {\n\n    .player-controls__wrapper {\n        flex-grow: 1;\n        align-items: center;\n    }\n\n    .player-controls__wrapper--minimized {\n        gap: 0px;\n    }\n}\n\n.player-controls__play-buttons {\n    display: flex;\n    flex-direction: row;\n    align-items: center;\n}\n\n@media (min-width: 768px) {\n\n    .player-controls__play-buttons {\n        gap: 0.5rem;\n    }\n}\n\n.video-task-button .icon {\n    border-radius: 0.25rem;\n    background-color: var(--attraction);\n    padding: 0.5rem;\n    color: var(--surface);\n}\n',""]);const s=o},73528(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.progress {\n    position: relative;\n    touch-action: none;\n    align-items: center;\n    display: flex;\n    gap: 1rem;\n    flex: 1 1 0%;\n}\n\n.slider {\n    position: relative;\n    display: flex;\n    flex-grow: 1;\n}\n\n.slider progress {\n    width: 100%;\n    background-color: var(--surface-subdued);\n}\n\n.slider input[type="range"] {\n    -webkit-appearance: none;\n            appearance: none;\n    position: absolute;\n    top: 50%;\n    left: 0;\n    transform: translateY(-50%);\n    height: 1.5rem;\n    width: 100%;\n    border-radius: 0.25rem;\n    background-color: transparent;\n}\n\n.slider input[type="range"]::-webkit-slider-thumb {\n    -webkit-appearance: none;\n            appearance: none;\n    height: 1rem;\n    width: 0.5rem;\n    border-radius: 0.25rem;\n    background: #006688;\n    cursor: pointer;\n    -webkit-transition: background .3s ease-in-out;\n    transition: background .3s ease-in-out;\n    border-left: 1px solid white;\n}\n\n.slider input[type=range]::-webkit-slider-runnable-track {\n    -webkit-appearance: none;\n            appearance: none;\n    --tw-shadow: 0 0 #0000;\n    --tw-shadow-colored: 0 0 #0000;\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow);\n    border-width: 0px;\n    background-color: transparent;\n}\n\n.slider input[type="range"]::-moz-range-thumb {\n    height: 1rem;\n    width: 0.5rem;\n    border-radius: 0.25rem;\n    background: #006688;\n    cursor: pointer;\n    -moz-transition: background .3s ease-in-out;\n    transition: background .3s ease-in-out;\n    border: none;\n    border-left: 1px solid white;\n}\n\n.slider input[type=range]::-moz-range-track {\n    --tw-shadow: 0 0 #0000;\n    --tw-shadow-colored: 0 0 #0000;\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n    border-width: 0px;\n    background-color: transparent;\n}\n\n.slider progress {\n    color: var(--text-strong);\n}\n\n.slider progress::-moz-progress-bar {\n    background-color: var(--surface-subdued);\n  background: #006688;\n}\n\n.slider progress::-webkit-progress-value {\n    background: #006688;\n}\n\n.slider progress::-webkit-progress-bar {\n    background-color: var(--surface-subdued);\n}\n\n\n.slider__time {\n    display: flex;\n    align-items: center;\n    gap: 0.5rem;\n}\n\n.slider__task-marker {\n    pointer-events: auto;\n    position: absolute;\n    cursor: pointer;\n    border-radius: 9999px;\n    padding: 0px;\n    top: 50%;\n    width: 1.3rem;\n    height: 1.3rem;\n    transform: translate(-50%, -50%);\n    transition: width 0.15s ease, height 0.15s ease;\n}\n\n.slider__task-marker:hover {\n    width: 1.6rem;\n    height: 1.6rem;\n}\n\n.slider__task-marker--submitted {\n    background-color: var(--attraction);\n    border: 1px solid white;\n}\n\n.slider__task-marker--unsubmitted {\n    background: white;\n    border: 2px solid grey;\n}\n',""]);const s=o},30715(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".lesson-player {\n\n display: flex;\n\n flex-direction: column;\n\n flex: 1 1 0%;\n\n background-color: var(--surface)\n}\n\n.lesson-player section {\n\n flex: 1 1 0%\n}\n\n.lesson-player .exercise-header,\n.lesson-player .help,\n.lesson-player .lesson-wrapper__exercise,\n.lesson-player .lesson-wrapper__submit,\n.lesson-player .warning-container {\n\n max-width: 1024px\n}\n\n@media (min-width: 1024px) {\n\n .lesson-player .exercise-header,\n.lesson-player .help,\n.lesson-player .lesson-wrapper__exercise,\n.lesson-player .lesson-wrapper__submit,\n.lesson-player .warning-container {\n\n  width: 100%\n }\n}\n\n.lesson-player .exercise-header,\n.lesson-player .help,\n.lesson-player .lesson-wrapper__exercise,\n.lesson-player .lesson-wrapper__submit,\n.lesson-player .warning-container { /*if max. width changes, change IMAGE_BREAK_POINT as well*/\n}\n\n@media (min-width: 1024px) {\n\n .lesson-player .exercise-header,\n.lesson-player .help,\n.lesson-player .lesson-wrapper__exercise,\n.lesson-player .lesson-wrapper__submit,\n.lesson-player .warning-container {\n\n  margin-left: auto;\n\n  margin-right: auto;\n\n  padding-left: 0px;\n\n  padding-right: 0px\n }\n}\n",""]);const s=o},42082(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".selftest-player .lesson-wrapper {\n\n    padding-bottom: 1rem\n}\n\n.selftest-player__navigation {\n\n    width: 100%;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 1rem;\n\n    border-top-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.selftest-player__navigation-buttons {\n\n    max-width: 1024px\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player__navigation-buttons {\n\n        margin-left: auto;\n\n        margin-right: auto\n    }\n}\n\n.selftest-player__navigation-buttons {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: flex-end;\n\n    gap: 1rem\n}\n\n.selftest-player-page {\n\n    background-color: var(--surface-subdued);\n\n    height: 100%;\n\n    width: 100%;\n\n    flex: 1 1 0%;\n\n    color: var(--text);\n\n    padding-left: 0.5rem;\n\n    padding-right: 0.5rem\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player-page {\n\n        padding-left: 0px;\n\n        padding-right: 0px\n    }\n}
2\n\n.selftest-player-start {\n\n    width: 100%;\n\n    max-width: 1024px\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player-start {\n\n        margin-left: auto;\n\n        margin-right: auto\n    }\n}\n\n.selftest-player-start {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player-start {\n\n        gap: 2rem\n    }\n}\n\n.selftest-player-start {\n\n    padding-top: 2.5rem;\n\n    padding-bottom: 2.5rem\n}\n\n.selftest-player-start__text, .selftest-player-result__text {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.selftest-player-result {\n\n    width: 100%;\n\n    max-width: 1024px\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player-result {\n\n        margin-left: auto;\n\n        margin-right: auto\n    }\n}\n\n.selftest-player-result {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n@media (min-width: 1024px) {\n\n    .selftest-player-result {\n\n        gap: 2rem\n    }\n}\n\n.selftest-player-result {\n\n    padding-top: 2.5rem;\n\n    padding-bottom: 2.5rem\n}\n\n.selftest-player-result__values {\n\n    color: var(--text);\n\n    background-color: var(--surface-information);\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: center;\n\n    justify-content: center;\n\n    gap: 1rem;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem\n}\n\n.selftest-player-result__buttons {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.5rem\n}\n",""]);const s=o},53962(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".pdf-page {\n    background-color: var(--surface);\n    display: flex;\n    flex: 1 1 0%;\n    flex-direction: column;\n    align-items: center;\n    max-height: 90vh;\n    min-height: 90vh;\n    color: var(--text);\n\n}\n\n.pdf-page .react-transform-wrapper {\n    height: 100%;\n    max-height: calc(100vh - 211px);\n\n}\n\n.pdf-page .react-transform-component {\n    cursor: grab;\n\n}\n\n@media only screen and (min-width: 640px) {\n    .pdf-page .react-transform-wrapper {\n        max-height: calc(100vh - 155px);\n    }\n\n}\n\n.pdf-tools__wrapper {\n    width: 100%;\n    position: relative;\n    background-color: var(--surface);\n\n}\n\n.pdf-tools {\n    display: flex;\n    flex-direction: column;\n    align-items: center;\n    justify-content: space-between;\n    gap: 0.5rem;\n\n}\n\n@media (min-width: 640px) {\n\n    .pdf-tools {\n        flex-direction: row;\n\n    }\n\n}\n\n.pdf-tools {\n    padding-top: 0.75rem;\n    padding-bottom: 0.75rem;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    margin-left: 0px;\n    margin-right: 0px;\n    border-top-width: 1px;\n    border-bottom-width: 1px;\n    border-color: var(--border-color);\n    overflow: auto;\n\n}\n\n.pdf-document-wrapper {\n    height: 100%;\n    width: 100%;\n    display: flex;\n    flex-grow: 1;\n    justify-content: center;\n    overflow: hidden;\n    position: relative;\n    background-color: var(--surface-subdued);\n\n}\n\n.pdf-document-wrapper--skeleton {\n    padding: 1.5rem;\n\n}\n\n.pdf-document-wrapper .react-transform-wrapper {\n    overflow: visible;\n\n}\n\n.pdf-document {\n    display: flex;\n\n}\n\nmark {\n    background-color: var(--surface-warning);\n    color: transparent;\n    opacity: 0.5;\n\n}\n\nmark.higlighted {\n    background-color: var(--progress);\n\n}\n\n.pdf-document--double {\n    display: grid;\n    grid-template-columns: repeat(2, minmax(0, 1fr));\n\n}\n\n.pdf-tools-right {\n    display: flex;\n    justify-content: flex-end;\n    gap: 0.75rem;\n\n}\n\n.pdf-tools-right__menu {\n  max-height: var(--radix-dropdown-menu-content-available-height);\n}\n\n\n.pdf-tools svg > * {\n    fill: currentColor;\n\n}\n\n.pdf-download {\n    display: flex;\n\n}\n",""]);const s=o},96520(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".pinch-component {\n    position: absolute;\n    display: flex;\n    width: 100%;\n    justify-content: center\n}",""]);const s=o},66951(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".player-wrapper {\n\n    position: fixed;\n\n    bottom: 0px;\n\n    right: 0px;\n\n    z-index: 450;\n\n    margin-left: auto;\n\n    margin-right: auto;\n\n    pointer-events: auto\n}\n\n.player-wrapper--full {\n\n    left: 0px;\n\n    width: 100%\n}\n\n.player-wrapper--minimized {\n\n    bottom: 4rem\n}\n\n@media (min-width: 768px) {\n\n    .player-wrapper--minimized {\n\n        bottom: 0px\n    }\n}\n\n.player-wrapper--minimized {\n\n    width: 100%\n}\n\n@media (min-width: 768px) {\n\n    .player-wrapper--minimized {\n\n        width: auto\n    }\n}\n",""]);const s=o},74758(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".product__no-assets {\n    margin-top: 2rem;\n}\n\n.product__download-audios {\n    margin-top: 1rem;\n    display: flex;\n    flex-direction: row;\n}\n\n@media (min-width: 640px) {\n\n    .product__download-audios {\n        margin-left: 1rem;\n        margin-right: 1rem;\n    }\n}\n\n.product-body__input {\n    position: relative;\n    display: flex;\n}\n\n.product-body__input .input__helpText {\n    position: absolute;\n}\n\n@media (min-width: 640px) {\n\n    .product-body__page-input {\n        width: 61px;\n    }\n}\n\n.product-body__page-input::-webkit-outer-spin-button, .product-body__page-input::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n    margin: 0;\n}\n\n.product-body__page-input[type=number] {\n    -moz-appearance: textfield;\n}\n\n.augmented__header {\n    background-color: var(--surface-subdued);\n    padding: 0.75rem;\n}\n\n@media (min-width: 1024px) {\n\n    .augmented__header {\n        padding: 2rem;\n    }\n}\n\n.augmented__header {\n    display: grid;\n}\n\n@media (min-width: 1024px) {\n\n    .augmented__header {\n        grid-template-columns: repeat(3, minmax(0, 1fr));\n    }\n}\n",""]);const s=o},61146(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".page-navigation {\n    padding-bottom: 1rem\n}\n",""]);const s=o},93292(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,"\n.bookmark {\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    transition-property: all;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 200ms\n}\n\n.bookmark:hover {\n\n    --tw-scale-x: 1.1;\n\n    --tw-scale-y: 1.1;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.bookmark--marked {\n\n    color: var(--attraction) !important\n}\n",""]);const s=o},51283(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.consent-dialog__body {width: 80%;max-width: -webkit-fit-content;max-width: fit-content;margin-left: auto;margin-right: auto;padding: 1rem\n}@media (min-width: 1024px) {.consent-dialog__body {padding: 1.5rem\n    }\n}.consent-dialog__body {background-color: var(--surface);--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}.consent-dialog__body:is(.dark *) {border-width: 2px;border-color: var(--border-color)\n}.consent-dialog__body {text-align: left;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));display: flex;flex-direction: column;max-height: calc(100vh - 70px);overflow-y: auto\n}\n\n.consent-dialog__configure-section {margin-top: 0.5rem;margin-bottom: 0.5rem\n}\n\n.consent-dialog__configure-sections {margin-top: 2rem;color: var(--text)\n}\n\n.consent-dialog__configure-section span {font-weight: 700\n}\n\n.consent-dialog__text {margin-top: 2rem !important\n}\n\n.consent-dialog__consent-infos {margin-top: 1rem\n}\n\n.consent-dialog__link {color: var(--text-link);-webkit-text-decoration-line: underline;text-decoration-line: underline;text-underline-offset: 2px\n}\n\n.consent-dialog__buttons {flex-direction: column\n}\n\n@media (min-width: 768px) {.consent-dialog__buttons {flex-direction: row;align-items: flex-start\n    }\n}\n\n.consent-dialog__buttons {align-items: stretch !important;justify-content: flex-end !important\n}\n\n.consent-dialog__configure-checkboxes {display: flex;gap: 1rem;flex-wrap: wrap;margin-bottom: 0.5rem\n}\n\n.consent-info-display__title {display: flex;align-items: center;gap: 1rem;margin: 0.25rem;padding: 0.75rem\n}\n\n.consent-info-display__title-text {text-align: left;color: var(--text)\n}\n\n.consent-info-display__title-icon {transition-property: transform;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 300ms\n}\n\n.group[data-state="open"] .consent-info-display__title-icon {--tw-rotate: 180deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.consent-info-display__title-icon {height: 1.5rem;width: 1.5rem;color: var(--text)\n}\n\n.consent-info-display__body {margin-bottom: 0.5rem;background-color: var(--surface-information);padding: 1rem;color: var(--text);margin-left: 0.25rem;margin-right: 0.25rem;margin-top: 0.25rem\n}\n\n.consent-info-display__title .button {margin: 0.25rem\n}\n',""]);const s=o},36354(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".course-page__content {\n\n    margin-top: 2rem;\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.course-page__content > li {\n\n    margin-left: -1rem;\n\n    margin-right: -1rem\n}\n\n.course-item {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    width: 100%;\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    padding-top: 0.25rem;\n\n    padding-bottom: 0.25rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem\n}\n\n.course-item__wrapper {\n\n    width: 100%;\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .course-item__wrapper {\n\n        padding-top: 1.25rem;\n\n        padding-bottom: 1.25rem\n    }\n}\n\n.course-item__wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between;\n\n    gap: 0.5rem\n}\n\n@media (min-width: 768px) {\n\n    .course-item__wrapper {\n\n        flex-direction: row;\n\n        align-items: flex-end\n    }\n}\n\n.course-item__wrapper-title {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 0.5rem\n}\n\n.course-item__wrapper-title a {\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms;\n\n    text-decoration-thickness: 1px;\n\n    text-underline-offset: 8px\n}\n\n.course-item__wrapper-title a:hover {\n\n    color: var(--text-link);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline\n}\n\n.create-course-input__actions {\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.course-item__title {\n\n    font-size: 20px;\n\n    line-height: 24px;\n\n    font-weight: 700\n}\n\n@media (min-width: 768px) {\n\n    .course-item__title {\n\n        font-size: 1.5rem;\n\n        line-height: 1.75rem\n    }\n}\n\n.course-share__title {\n\n    margin-top: 0.75rem;\n\n    margin-bottom: 0.75rem;\n\n    font-size: 1.125rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    color: var(--text-strong)\n}\n\n.course-share__wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.course-share__link-text {\n\n    display: flex;\n\n    overflow: hidden;\n\n    text-overflow: ellipsis;\n\n    color: var(--text)\n}\n\n.course-share__buttons {\n\n    width: 100%;\n\n    display: flex;\n\n    gap: 0.5rem;\n\n    margin-top: 1rem\n}\n\n.course-share__info-text {\n\n    overflow: hidden;\n\n    text-overflow: ellipsis;\n\n    color: var(--text)\n}\n\n.create-course-input {\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.course-invite-modal {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.course-invite-modal__name-input {\n\n    display: flex;\n\n    flex-direction: row;\n\n    flex-wrap: wrap;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    column-gap: 1rem;\n\n    row-gap: 0.5rem\n}\n\n.course-invite-modal__name-input .settings__item-action {\n\n    margin: 0px;\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    justify-content: flex-end\n}\n\n.course-invite-modal__name-input .settings__item-action > div {\n\n    flex-direction: row !important\n}\n",""]);const s=o},7974(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".course-detail__title-edit {\n  align-items: flex-end;\n  padding-bottom: 1.5rem;\n  padding-top: 3.5rem;\n}@media (min-width: 768px) {.course-detail__title-edit {\n    padding-bottom: 2rem;\n  }\n}\n\n.course-detail__author {\n  margin-bottom: 0.5rem;\n  font-size: 1.25rem;\n  line-height: 1.75rem;\n  color: var(--text-strong);\n}\n\n.course-detail__creation {\n  margin-bottom: 2rem;\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n  color: var(--text-strong);\n}\n\n.course-detail-page > .page > * {\n  padding-left: 1rem;\n  padding-right: 1rem;\n}\n\n@media (min-width: 1024px) {.course-detail-page > .page > * {\n    padding-left: 2rem;\n    padding-right: 2rem;\n  }\n}\n\n.course-detail__tabs .tabs {\n  margin-bottom: 0px;\n}\n\n.course-detail-overview, .course-detail__members, .course-detail__books {\n  padding-top: 2rem;\n  padding-bottom: 4rem;\n}\n\n.course-detail-overview {\n  padding-right: 0px !important;\n}\n\n.course-detail__member-item {\n  width: 100%;\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n  display: flex;\n  justify-content: space-between;\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n}\n\n.course-detail__member-name, .course-detail__book-title {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n\n/* add books to course */\n\n.course-detail__book-item {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n\n@media (min-width: 640px) {.course-detail__book-item {\n    flex-direction: column;\n    align-items: flex-start;\n  }\n}\n\n.course-add-books-modal {\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n}\n\n@media (min-width: 768px) {.course-add-books-modal {\n    gap: 2rem;\n  }\n}\n\n.course-add-books-modal {\n  min-height: 0px;\n}\n\n.course-add-books__search {\n  display: flex;\n  width: 100%;\n  gap: 0.5rem;\n}\n\n.course-add-books__list {\n  overflow-y: auto;\n}\n\n.modal-dialog__body--book-list {\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n}\n\n.modal-dialog__body--book-list .modal-dialog__text {\n  display: flex;\n  flex-direction: column;\n  flex-grow: 1;\n  min-height: 0px;\n}\n\n.course-add-books__item {\n  display: flex;\n  align-items: center;\n  gap: 1rem;\n  flex: 1 1 0%;\n  padding: 1rem;\n  margin-left: -1rem;\n}\n\n@media (min-width: 640px) {.course-add-books__item {\n    margin-left: 0px;\n    margin-right: 0px;\n  }\n}\n\n.course-add-books__item {\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n  --tw-ring-inset: inset;\n  --tw-ring-color: transparent;\n  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 200ms;\n}\n\n.course-add-books__item-cover {\n  display: flex;\n  min-width: -webkit-fit-content;\n  min-width: fit-content;\n  align-items: flex-start;\n  justify-content: center;\n  background-color: var(--surface-subdued);\n}\n\n.course-add-books__item-text {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n\n.course-add-books__actions {\n  width: 100%;\n  display: flex;\n  justify-content: flex-end;\n  gap: 1rem;\n  margin-top: 0.5rem;\n}\n\n/* overview table */\n\n.course-detail-overview {\n  color: var(--text);\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  background-color: var(--surface-subdued);\n}\n\n.course-detail-overview__header {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 0.5rem;\n  padding-right: 1rem;\n}\n\n@media (min-width: 1024px) {.course-detail-overview__header {\n    padding-right: 2rem;\n  }\n}\n\n.course-detail-overview__header-navigation {\n  display: flex;\n  flex-direction: column;\n  align-items: flex-start;\n  justify-content: space-between;\n  gap: 1rem;\n}\n\n@media (min-width: 1024px) {.course-detail-overview__header-navigation {\n    flex-direction: row;\n  }\n}\n\n.course-detail-overview__header-filter {\n  display: flex;\n  flex-direction: row;\n  align-items: flex-start;\n  column-gap: 2rem;\n  flex-wrap: wrap;\n}\n\n.course-detail-overview__header-percentages {\n  display: flex;\n  flex-direction: row;\n  gap: 1rem;\n  white-space: nowrap;\n}\n\n@media (min-width: 768px) {.course-detail-overview__header-percentages {\n    gap: 2.5rem;\n  }\n}\n\n.course-detail-overview__header-percentage {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 0.25rem;\n}\n\n.course-detail-overview__header-book {\n  display: flex;\n  flex-direction: column;\n  gap: 0.5rem;\n}\n\n.course-detail-overview__header-book-action {\n  display: flex;\n  flex-direction: row;\n  justify-content: space-between;\n  gap: 0.5rem;\n}\n\n.course-detail-overview__header-book-action > .dropdown-menu__button {\n  width: -webkit-fill-available;\n  width: -moz-available;\n  width: stretch;\n}\n\n.course-detail-overview__content {\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n  overflow-x: auto;\n  background-color: var(--surface);\n  max-height: 80vh;\n  overflow-y: auto;\n  scrollbar-width: none; /* Firefox */\n  -ms-overflow-style: none; /* IE and Edge */\n}\n\n.course-detail-overview__content::-webkit-scrollbar {\n  display: none; /* Chrome, Safari and Opera */\n}\n\n.course-detail-overview__table thead {\n  position: -webkit-sticky;\n  position: sticky;\n  top: 0px;\n  z-index: 10;\n}\n\n.course-detail-overview__table {\n  border-collapse: separate;\n  border-spacing: 0;\n  width: 100%;\n  table-layout: fixed;\n}\n\n.course-detail-overview__table thead > * {\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n  z-index: 11;\n  background-color: var(--surface);\n}\n\n.course-detail-overview__no-data-info {\n  margin-left: auto;\n  margin-right: auto;\n  margin-top: 2rem;\n  margin-bottom: 2rem;\n  width: -webkit-fit-content;\n  width: fit-content;\n  text-align: center;\n  font-weight: 700;\n  position: -webkit-sticky;\n  position: sticky;\n  left: 0px;\n}\n\n.course-detail-overview__table tbody tr {\n  height: 5rem;\n}\n\n.course-table__cell {\n  padding: 1rem;\n  text-align: center;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n}\n\n.course-table__header-cell {\n  width: 5rem !important;\n  min-width: 5rem !important;\n  max-width: 5rem !important;\n}\n\n@media (min-width: 768px) {.course-table__header-cell {\n    width: 150px !important;\n    min-width: 150px !important;\n    max-width: 150px !important;\n  }\n}\n\n.course-table__header-cell {\n  overflow: hidden;\n}\n\n.course-table__cell--sticky {\n  position: -webkit-sticky;\n  position: sticky;\n  left: 0px;\n  text-align: left;\n  font-weight: 700;\n  width: 10rem;\n  min-width: 10rem;\n  max-width: 10rem;\n}\n\n@media (min-width: 768px) {.course-table__cell--sticky {\n    width: 16rem;\n    min-width: 16rem;\n    max-width: 16rem;\n  }\n}\n\n.course-table__cell--sticky {\n  z-index: 1;\n  background-color: var(--surface);\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.course-table__header > * {\n  background-color: var(--blue-5);\n}\n\n.course-table__header > *:is(.dark *) {\n  color: var(--surface);\n}\n\n.course-table__header-member {\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n  gap: 0.125rem;\n  text-align: center;\n  font-size: 0.75rem;\n  line-height: 1rem;\n  position: relative;\n}\n\n.course-table__average-cell {\n  background-color: var(--blue-10);\n  font-weight: 700;\n}\n\n.course-table__average-cell:is(.dark *) {\n  color: var(--surface);\n}\n\n.course-table__average-cell {\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.course-table__cell-two--sticky {\n  background-color: var(--surface);\n}\n\n.course-table__average-cell, .course-table__cell-two--sticky {\n  width: 5rem;\n  min-width: 5rem;\n  max-width: 5rem;\n}\n\n@media (min-width: 768px) {.course-table__average-cell, .course-table__cell-two--sticky {\n    width: 16rem;\n    min-width: 16rem;\n    max-width: 16rem;\n  }\n}\n\n.course-table__average-cell, .course-table__cell-two--sticky {\n  position: -webkit-sticky;\n  position: sticky;\n  left: 10rem;\n}\n\n@media (min-width: 768px) {.course-table__average-cell, .course-table__cell-two--sticky {\n    left: 16rem;\n  }\n}\n\n.course-table__average-cell, .course-table__cell-two--sticky {\n  z-index: 1;\n}\n\n.course-table__completed-icon {\n  height: 1.25rem;\n  width: 1.25rem;\n  color: var(--text-success);\n}\n\n.course-table__accordion-icon {\n  display: inline-block;\n  height: 1rem;\n  width: 1rem;\n  min-width: 1rem;\n  transition-property: transform;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 200ms;\n}\n\n.course-table__chapter-title {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n}\n\n.course-table__chapter-title-text {\n  font-weight: 700;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n}\n\n.course-table__chapter-element-title {\n  display: flex;\n  flex-direction: column;\n  gap: 0.25rem;\n}\n\n.course-table__chapter-element-title-text {\n  display: flex;\n  flex-direction: row;\n  flex-wrap: nowrap;\n}\n\n.course-table__highlighted-row td {\n  z-index: 2 !important;\n  --tw-shadow: inset 0 2px 0 0 var(--primary),inset 0 -2px 0 0 var(--primary) !important;
2\n  --tw-shadow-colored: inset 0 2px 0 0 var(--tw-shadow-color), inset 0 -2px 0 0 var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n\n.course-table__highlighted-row td:first-child {\n  --tw-shadow: inset 2px 2px 0 0 var(--primary),inset 0 -2px 0 0 var(--primary) !important;\n  --tw-shadow-colored: inset 2px 2px 0 0 var(--tw-shadow-color), inset 0 -2px 0 0 var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n\n.course-table__highlighted-row td:last-child {\n  --tw-shadow: inset -2px 2px 0 0 var(--primary),inset 0 -2px 0 0 var(--primary) !important;\n  --tw-shadow-colored: inset -2px 2px 0 0 var(--tw-shadow-color), inset 0 -2px 0 0 var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n\n.course-table__highlighted-cell {\n  z-index: 2 !important;\n  --tw-shadow: inset 2px 0 0 0 var(--primary),inset -2px 0 0 0 var(--primary) !important;
2\n  --tw-shadow-colored: inset 2px 0 0 0 var(--tw-shadow-color), inset -2px 0 0 0 var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n\n.course-table__highlighted-header-cell {\n  z-index: 2 !important;\n  --tw-shadow: inset 2px 2px 0 0 var(--primary),inset -2px 0 0 0 var(--primary),inset 0 2px 0 0 var(--primary) !important;\n  --tw-shadow-colored: inset 2px 2px 0 0 var(--tw-shadow-color), inset -2px 0 0 0 var(--tw-shadow-color), inset 0 2px 0 0 var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n",""]);const s=o},28934(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".last-augmented-section {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.last-augmented-container {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.last-augmented-item {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 1rem;\n\n    flex: 1 1 0%;\n\n    padding: 1rem;\n\n    margin-left: -1rem;\n\n    margin-right: -1rem\n}\n\n@media (min-width: 640px) {\n\n    .last-augmented-item {\n\n        margin-left: 0px;\n\n        margin-right: 0px\n    }\n}\n\n.last-augmented-item {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n    --tw-ring-inset: inset;\n\n    --tw-ring-color: transparent;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 200ms;\n\n    cursor: pointer\n}\n\n.last-augmented-item:hover {\n\n    background-color: var(--surface-subdued)\n}\n\n.last-augmented-item:focus {\n\n    z-index: 10;\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px;\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n    --tw-ring-color: var(--focus-outline)\n}\n\n.last-augmented-item__title {\n\n    color: var(--text-link);\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    width: 77vw\n}\n\n@media (min-width: 768px) {\n\n    .last-augmented-item__title {\n\n        width: 30vw\n    }\n}\n\n@media (min-width: 1024px) {\n\n    .last-augmented-item__title {\n\n        width: 33vw\n    }\n}\n\n.last-augmented-item__title {\n\n    overflow-wrap: break-word\n}\n\n.last-augmented-item__isbn {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued)\n}\n\n.last-augmented-item__icon-wrapper {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: center;\n\n    background-color: var(--surface-subdued)\n}\n\n.last-augmented-item__icon-wrapper > .icon,\n.last-augmented-item__icon-wrapper > figure {\n\n    height: 1.75rem;\n\n    width: 1.75rem;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms\n}\n\n.group:hover .last-augmented-item__icon-wrapper > .icon,.group:hover \n.last-augmented-item__icon-wrapper > figure {\n\n    --tw-scale-x: 1.25;\n\n    --tw-scale-y: 1.25;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.last-augmented-item__icon-wrapper > figure {\n\n    height: auto\n}\n\n.dashboard-teaser-container {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.dashboard-teaser-text {\n\n    margin-bottom: 1rem;\n\n    margin-top: 0.5rem\n}\n\n.dashboard__card-wrapper {\n\n    gap: 2rem\n}\n\n@media (min-width: 1024px) {\n\n    .dashboard__card-wrapper {\n\n        display: flex\n    }\n}\n\n.dashboard__card-wrapper {\n\n    margin-top: 1rem;\n\n    margin-bottom: 1rem\n}\n\n@media (min-width: 1024px) {\n\n    .dashboard__card-wrapper {\n\n        margin-top: 4rem;\n\n        margin-bottom: 4rem\n    }\n}\n\n.dashboard__card-wrapper .card {\n\n    margin-bottom: 1rem;\n\n    flex: 1 1 0%\n}\n\n@media (min-width: 1024px) {\n\n    .dashboard__card-wrapper .card {\n\n        margin-bottom: 0px\n    }\n}\n\n.dashboard__search-wrapper {\n\n    flex: 1 1 0%;\n\n    background-color: var(--surface-subdued);\n\n    border-radius: 0.5rem;\n\n    padding: 1.5rem;\n\n    padding-top: 1.25rem;\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.dashboard__search-wrapper--title {\n\n    margin-bottom: 0.75rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    font-size: 1.5rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    color: var(--text)\n}\n\n.dashboard__search-wrapper--text {\n\n    margin-bottom: 0.75rem;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-strong)\n}\n\n.dashboard__teaser {\n\n    margin-left: auto;\n\n    margin-top: 4rem;\n\n    margin-right: 2rem\n}\n\n@media (min-width: 1024px) {\n\n    .dashboard__teaser {\n\n        margin-top: 4rem;\n\n        margin-left: 1rem\n    }\n}\n\n.dashboard__box-wrapper {\n\n    display: grid;\n\n    grid-template-columns: repeat(1, minmax(0, 1fr));\n\n    gap: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .dashboard__box-wrapper {\n\n        grid-template-columns: repeat(2, minmax(0, 1fr))\n    }\n}\n\n.dashboard__search-wrapper .search__wrapper {\n\n    margin-bottom: 0px\n}\n",""]);const s=o},92174(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".custom-color-picker {\n\n    background-color: var(--surface);\n\n    color: var(--text-strong);\n\n    margin-top: -0.125rem;\n\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    border-bottom-right-radius: 0.25rem;\n\n    border-bottom-left-radius: 0.25rem;\n\n    border-top-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.custom-color-picker--reversed {\n\n    margin-bottom: 1px;\n\n    margin-top: 0px\n}\n\n.custom-color-picker .chrome-picker {\n\n    width: 100% !important;\n\n    --tw-shadow: 0 0 #0000 !important;\n\n    --tw-shadow-colored: 0 0 #0000 !important;\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n\n    margin: auto\n}\n\n.chrome-picker input {\n\n    background-color: var(--surface) !important;\n\n    color: var(--text) !important\n}\n\n.custom-color-picker__stroke {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    padding-top: 0.375rem;\n\n    padding-bottom: 0.375rem\n}\n\n.custom-color-picker__stroke-input {\n\n    display: flex;\n\n    gap: 0.25rem\n}\n\n.custom-color-picker__stroke-input .input {\n\n    width: 4rem\n}\n",""]);const s=o},17931(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".page-header__block--dau { align-items: center; display: flex; justify-content: space-between;\n}@media (min-width: 1024px) {.page-header__block--dau { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));\n }\n}.page-header__block--dau { /* edition is centered on bigger screens */ width: 100%;\n}\n\n@media (min-width: 1024px) {.page-header__edition-tabs { grid-column: span 4 / span 4; grid-column-start: 5;\n }\n}\n\n.page-header__edition-tabs { /* edition is centered on bigger screens */\n}\n\n@media (min-width: 1024px) {.page-header__block--dau .page-header__actions { grid-column-start: 9; grid-column-end: 13; width: 100%;\n }\n}\n\n.page-header__block--dau .selectors { gap: 0px;\n}\n\n.page-header__block--dau .page-header__actions button { padding: 0.5rem;\n}\n\n@media (min-width: 640px) {.page-header__block--dau .page-header__actions button { padding: 0.75rem;\n }\n}\n\n.page-header:has(> .page-header__block--dau) { padding-left: 1rem; padding-right: 0px;\n}\n\n@media (min-width: 1024px) {.page-header:has(> .page-header__block--dau) { padding-left: 0px; padding-right: 0px;\n }\n}\n",""]);const s=o},8339(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".dau-pdf-page {\n\n    background-color: var(--surface);\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    flex-direction: column;\n\n    align-items: center;\n\n    color: var(--text)\n}\n\n.dau-pdf-tools {\n\n    width: 100%;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    row-gap: 0.125rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem\n}\n\n@media (min-width: 768px) {\n\n    .dau-pdf-tools {\n\n        padding-left: 0px;\n\n        padding-right: 0px;\n\n        padding-top: 0.125rem;\n\n        padding-bottom: 0.125rem\n    }\n}\n\n.dau-pdf-tools {\n\n    overflow: auto\n}\n\n.dau-version-tools {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: flex-end;\n\n    column-gap: 0.75rem;\n\n    flex-wrap: wrap;\n\n    width: 100%\n}\n\n@media (min-width: 1024px) {\n\n    .dau-version-tools {\n\n        width: auto\n    }\n}\n\n.dau-pdf-document-wrapper, .dau-pdf-document-slider {\n\n    height: 100%;\n\n    width: 100%;\n\n    background-color: var(--surface-subdued);\n\n    display: flex;\n\n    flex-grow: 1;\n\n    justify-content: center;\n\n    position: relative;\n\n    overflow: hidden;\n\n    min-height: vh80\n}\n\n.dau-pdf-document-wrapper .react-transform-wrapper {\n\n    overflow: visible\n}\n\n.dau-pdf-document {\n\n    display: flex\n}\n\nmark {\n\n    background-color: var(--surface-warning);\n\n    color: transparent;\n\n    opacity: 0.5\n}\n\nmark.higlighted {\n\n    background-color: var(--progress)\n}\n\n.dau-pdf-document--double {\n\n    display: flex\n}\n\n.dau-pdf-tools svg > * {\n\n    fill: currentColor\n}\n\n/* special styling because icon is different (from other agency) */\n.dau-pdf-tools .dau-version-icon svg > * {\n\n    fill: transparent !important;\n\n    stroke: var(--text) !important\n}\n\n.dau-pdf-download {\n\n    display: flex\n}\n\n/* dau-text-layer only exists if tool is translate*/\n.dau-text-layer :is(span, br) {\n\n    cursor: text !important;\n\n    -webkit-user-select: text !important;\n\n            user-select: text !important\n}\n\n.dau-text-layer {\n\n    cursor: default !important\n}\n\n.textLayer, .textLayer :is(span, br), .dau-stage {\n\n    cursor: grab;\n\n    -webkit-user-select: none;\n\n            user-select: none\n}\n",""]);const s=o},45201(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".dau-search {position: relative;width: 100%\n}@media (min-width: 768px) {.dau-search {width: auto\n    }\n}\n\n.dau-search__icon-wrapper {position: absolute;left: 1.25rem;top: 50%;height: 1.25rem;width: 1.25rem;--tw-translate-y: -50%;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.dau-search__input {padding-left: 3rem\n}\n\n@media (min-width: 640px) {.dau-search__input {padding-right: 8rem\n    }\n}\n\n.dau-search__input::placeholder {overflow: visible\n}\n\n.dau-search__result-count-wrapper {position: absolute;top: 0px;right: 0px;display: flex;align-items: center;justify-content: center;margin-right: 0.25rem;height: 100%\n}\n\n.dau-search__result-count {display: flex;align-items: center;border-right-width: 1px;border-color: var(--border-color);padding-right: 1rem\n}\n\n.dau-search__result-count--empty {display: flex;align-items: center;padding-right: 1rem\n}\n",""]);const s=o},17185(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".edition-tabs {\n  display: flex;\n  flex-direction: row;\n  align-items: center\n}@media (min-width: 640px) {.edition-tabs {\n    gap: 0.5rem\n  }\n}.edition-tabs {\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n  padding: 0.125rem;\n  margin-left: auto;\n  margin-right: auto;\n  width: -webkit-fit-content;\n  width: fit-content;\n  background-color: var(--surface)\n}\n\n.edition-tab {\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow)\n}\n\n.edition-tab:focus {\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000)\n}\n\n.edition-tab {\n  font-size: 0.75rem;\n  line-height: 1rem\n}\n\n@media (min-width: 640px) {.edition-tab {\n    font-size: 0.875rem;\n    line-height: 1.25rem\n  }\n}\n\n.edition-tab {\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n  padding-top: 0.25rem;\n  padding-bottom: 0.25rem\n}\n\n@media (min-width: 640px) {.edition-tab {\n    padding-left: 0.75rem;\n    padding-right: 0.75rem;\n    padding-top: 0.25rem;\n    padding-bottom: 0.25rem\n  }\n}\n\n.edition-tab {\n  white-space: normal;\n  word-break: break-word\n}\n\n.eksdi-tabs {\n  grid-row-start: 1\n}\n\n@media (min-width: 768px) {.eksdi-tabs {\n    grid-column: span 3 / span 3;\n    grid-row: auto\n  }\n}\n",""]);const s=o},25384(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".collapsible-edit {\n  position: fixed;\n  z-index: 20;\n}\n\n.collapsible-edit [data-radix-popper-content-wrapper] {\n  z-index: 999 !important;\n  left: -4px !important;\n}\n\n@media (min-width: 640px) {\n\n  .collapsible-edit [data-radix-popper-content-wrapper] {\n    left: -8px !important;\n  }\n}\n\n/* 240px is the height from asset button to top */\n.asset-buttons [data-radix-popper-content-wrapper] {\n  max-height: calc(100vh - 240px) !important;\n  min-width: -webkit-min-content !important;\n  min-width: min-content !important;\n  overflow-y: auto !important;\n  left: -4px !important;\n}\n@media (min-width: 640px) {\n\n  .asset-buttons [data-radix-popper-content-wrapper] {\n    left: 1px !important;\n  }\n}\n\n/* 260px is the height from asset button to top */\n.asset-buttons__mobile [data-radix-popper-content-wrapper] {\n  max-height: calc(100vh - 260px) !important;\n  width: 66.666667% !important;\n  min-width: -webkit-min-content !important;\n  min-width: min-content !important;\n  overflow-y: auto !important;\n}\n\n.dau-edit-tools--desktop {\n  height: inherit;\n  position: absolute;\n}\n\n.dau-edit-tools--mobile {\n  border-radius: 0.25rem;\n  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.dau-edit-tools__collapsible--desktop {\n  display: flex;\n  height: 100%;\n  flex-direction: column-reverse;\n  align-items: center;\n}\n\n.dau-edit-tools__content {\n  display: flex;\n  height: 100%;\n  flex-direction: column;\n  justify-content: space-between;\n}\n\n.asset-buttons__mobile {\n  display: flex;\n  flex-direction: column;\n}\n\n@media (min-width: 640px) {\n\n  .asset-buttons__mobile {\n    position: fixed;\n    z-index: 10;\n    margin-top: 0.5rem;\n  }\n}\n\n.asset-buttons {\n  position: fixed;\n  margin-top: 0.5rem;\n}\n",""]);const s=o},18(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".dau-page__header {\n  flex-wrap: wrap;\n  align-items: center;\n  justify-content: space-between;\n}@media (min-width: 640px) {.dau-page__header {\n    display: flex;\n  }\n}.dau-page__header {\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  padding-left: 1rem;\n  padding-right: 1rem;\n}@media (min-width: 1024px) {.dau-page__header {\n    padding-left: 2rem;\n    padding-right: 2rem;\n  }\n}.dau-page__header {\n  display: none;\n}@media (min-width: 640px) {.dau-page__header {\n    display: flex;\n  }\n}.dau-page__header {\n  gap: 0.5rem;\n}\n\n.dau-page__header-actions {\n  display: flex;\n  margin-left: auto;\n}\n\n.dau-page__player {\n  background-color: var(--surface-subdued);\n  height: 100%;\n}\n\n.dau-page__header-button-wrapper {\n  display: flex;\n  margin-left: 0.75rem;\n  width: 100%;\n}\n\n@media (min-width: 640px) {.dau-page__header-button-wrapper {\n    width: auto;\n  }\n}\n\n@media (min-width: 1280px) {.dau-page__header-button-wrapper {\n    display: none;\n  }\n}\n\n.dau-edit-menu__portal {\n  display: flex;\n  flex-direction: column;\n  position: absolute;\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n  z-index: 30;\n}\n\n.dau-edit-menu {\n  display: flex;\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n  border-radius: 0.25rem;\n  align-items: center;\n  gap: 0.5rem;\n  padding: 0.5rem;\n  background-color: var(--surface);\n}\n\n.dau-edit-menu__delete {\n  color: var(--text-critical);\n}\n\n.pdf-tools__dau-tools {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: flex-end;\n  gap: 0.5rem;\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n\n@media (min-width: 768px) {.pdf-tools__dau-tools {\n    margin-top: 0.5rem;\n  }\n}\n\n.pdf-tools__dau-tools {\n  border-radius: 0.25rem;\n  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);\n  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow);\n  height: 70px;\n  width: 100%;\n  background-color: var(--surface);\n  position: absolute;\n  z-index: 21;\n}\n\n.pdf-tools__dau-tools--version {\n  justify-content: flex-end;\n  padding-top: 0.625rem;\n  padding-bottom: 0.625rem;\n}\n\n.dau-pdf-tools__wrapper {\n  width: 100%;\n  bottom: auto;\n  background-color: var(--surface);\n  border-top-width: 1px;\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n}\n\n@media (min-width: 768px) {.dau-pdf-tools__wrapper {\n    padding-top: 0.5rem;\n    padding-bottom: 0.5rem;\n  }\n}\n\n.dau-pdf-tools__wrapper--uhb {\n  bottom: 0px;\n}\n\n.pdf-tools__version {\n  font-size: 0.875rem;\n  line-height: 1.25rem;\n  display: flex;\n  align-items: center;\n  gap: 0.25rem;\n}\n\n/* \"...\" after 3 rows */\n.pdf-tools__version-dropdown span:first-of-type {\n  display: -webkit-box;\n  -webkit-line-clamp: 3;\n  -webkit-box-orient: vertical;\n  text-overflow: ellipsis;\n  overflow: hidden;\n}\n\n.pdf-tools__version-dropdown {\n  display: flex;\n  align-items: center;\n  gap: 0.5rem;\n}\n\n.dau-note__portal {\n  display: flex;\n  flex-direction: column;\n  position: fixed;\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.dau-note {\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n  border-radius: 0.25rem;\n  padding: 0.5rem;\n  background-color: var(--surface);\n}\n\n.dau-note__buttons {\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n}\n\n.dau-note__delete {\n  color: var(--text-critical);\n}\n\n.dau-note textarea {\n  background-color: var(--surface);\n  border-color: var(--border-color);\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n  padding-top: 0.5rem;\n  padding-bottom: 0.5rem;\n  border-width: 1px;\n}\n\n.dau-layout-radioGroup {\n\n}\n\n.dau-layout-radioGroup__form {\n  display: flex;\n}\n\n.dau-layout-radioGroup__form-label {\n  margin-right: 1rem;\n  font-weight: 700;\n}\n\n\n.dau-layout-radioGroup__root {\n  display: flex;\n  flex-direction: row;\n  gap: 1.5rem;\n}\n\n.dau-layout-radioGroup__item-wrapper {\n  display: flex;\n  align-items: center;\n}\n\n.dau-layout-radioGroup__item {\n  width: 1.5rem;\n  height: 1.5rem;\n  border-radius: 9999px;\n  border-width: 2px;\n  border-color: var(--text-strong);\n  background-color: var(--surface) !important;\n}\n\n.dau-layout-radioGroup__item:hover {\n  border-color: var(--border-accent-color);\n}\n\n.dau-layout-radioGroup__item--selected {\n  background-color: var(--primary) !important;\n  border-color: var(--primary);\n}\n\n.dau-layout-radioGroup__label {\n  margin-left: 0.75rem;\n  cursor: pointer;\n}\n\n.dau-layout-radioGroup__indicator {\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  height: 100%;\n  position: relative;\n}\n\n.dau-layout-radioGroup__indicator::after {\n  display: block;\n  width: 0.5rem;\n  height: 0.5rem;\n  border-radius: 9999px;\n  background-color: var(--surface);\n  --tw-content: '';\n  content: var(--tw-content);\n}\n\n.dau-stage {\n  position: absolute;\n  top: 0px;\n}\n\n.dau-tools__trigger + div {\n  z-index: 10 !important;\n}\n\n.pdf-tools-mobile {\n  margin: 0.5rem;\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n  width: 100%;\n}\n\n.tool-group {\n  background-color: var(--surface);\n  display: flex;\n  align-items: center;\n  gap: 0.25rem;\n  border-radius: 0.25rem;\n}\n\n.button-group > .dropdown-menu__button {\n  border-color: transparent;\n}\n\n.button-group > .dropdown-menu__button > .icon {\n  display: none;\n}\n",""]);const s=o},76004(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".dau-penTool {\n  width: 100%;\n  padding: 1rem}\n\n@media (min-width: 768px) {\n\n  .dau-penTool__label {\n    margin-bottom: 0.5rem}}\n\n.dau-penTool__box {\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between}\n\n.dau-penTool__colorPicker {\n  margin-top: 0.5rem;\n  display: flex;\n  justify-content: center}\n\n.divider {\n  display: block;\n  height: 1rem;\n  width: 1rem;\n  border-radius: 9999px}\n\n.dau-penTool__range-slider {\n  accent-color: var(--interactive);\n  margin-right: 0.5rem;\n  flex-grow: 1}\n\n.dau-penTool__range {\n  height: auto;\n  width: 100%;\n  text-align: center}\n\n.dau-penTool__box .input {\n  width: 3.5rem}\n\n.dau-edit-menu {\n  margin-top: 0.5rem;\n  display: flex;\n  justify-content: space-between}\n\n.dau-penTool__box button.add {\n  border-radius: 9999px;\n  border-width: 1px;\n  border-style: solid;\n  border-color: var(--border-color)}\n\n.dau-penTool__box button.add svg {\n  margin: -10px;\n  padding: 3px;\n}\n\n.dau-penTool button .icon svg {\n  width: 30px;\n  height: 30px;\n}\n",""]);const s=o},1062(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".font-config {\n    margin-top: 1px;\n    border-radius: 0.25rem;\n    background-color: var(--surface);\n    padding: 0.5rem;\n    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);\n    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}",""]);const s=o},60283(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".drawing-layer {\n  height: 100%;\n  width: 100%;\n}\n\n.drawing-layer > div {\n  height: 100%;\n  width: 100%;\n  position: relative;\n}\n\n.dau-page__player .pdf-page {\n  max-height: 100%;\n}\n\n.chrome-picker {\n  width: 100% !important;\n}",""]);const s=o},15705(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".learning-progress-modal .modal-dialog__body {max-width: 100%\n}@media (min-width: 640px) {.learning-progress-modal .modal-dialog__body {max-width: 91%\n    }\n}.learning-progress-modal .modal-dialog__body {overflow: hidden\n}\n\n.learning-progress-modal__loading {display: flex;align-items: center;justify-content: center;width: 100%\n}\n\n@media (min-width: 640px) {.learning-progress-modal__loading {max-width: 91%\n    }\n}\n\n@media (min-width: 1280px) {.learning-progress-modal__loading {max-width: 1200px\n    }\n}\n\n.learning-progress-modal__loading {height: calc(95vh - 130px);position: absolute;background-color: var(--surface);z-index: 1\n}\n\n.learning-progress-modal .read-pages-info .modal-dialog__body {width: 100%;max-width: 28rem\n}\n\n@media (min-width: 768px) {.learning-progress-modal .read-pages-info .modal-dialog__body {max-width: 700px\n    }\n}\n\n.learning-progress-modal .modal-dialog__text {margin: 0px;overflow-y: auto;flex: 1 1 0%;touch-action: auto;overscroll-behavior: contain\n}\n\n.learn-progress-element__icon--dau {height: 1.5rem;width: 1.5rem\n}\n\n.learning-progress-modal__header {display: flex;flex-direction: row;align-items: flex-end;justify-content: space-between;column-gap: 1rem\n}\n\n@media (min-width: 768px) {.learning-progress-modal__header {column-gap: 2rem\n    }\n}\n\n.learning-progress-modal__header {flex-wrap: wrap\n}\n\n@media (min-width: 1280px) {.learning-progress-modal__header {flex-wrap: nowrap\n    }\n}\n\n.learning-progress-modal__header {outline: 2px solid transparent;outline-offset: 2px\n}\n\n.learning-progress-glossar {display: flex;flex-direction: row;gap: 1rem;flex-wrap: wrap\n}\n\n@media (min-width: 1280px) {.learning-progress-glossar {flex-wrap: nowrap\n    }\n}\n\n.learning-progress-glossar {font-size: 0.75rem;line-height: 1rem;align-items: center;padding-bottom: 0.375rem\n}\n\n.learning-progress-glossar__circle {display: flex;flex-direction: row;gap: 0.5rem\n}\n\n.learning-progress-glossar__col {display: flex;flex-direction: column\n}\n\n.learning-progress-glossar__content {display: flex;flex-direction: row;align-items: center;gap: 0.25rem\n}\n\n.learning-progress-glossar__content__line {height: 0.25rem;width: 1rem\n}\n\n.learning-progress-filter {display: flex;flex-direction: column;column-gap: 0.5rem\n}\n\n.learning-progress-filter__title {display: flex;flex-direction: row;align-items: center;justify-content: space-between\n}\n\n.learning-progress-filter__title .dropdown-menu__item {font-size: 1rem;line-height: 1.5rem\n}\n\n.learning-progress-filter__form {display: flex;flex-direction: row;gap: 0.5rem\n}\n\n@media (min-width: 768px) {.learning-progress-filter__form {gap: 1rem\n    }\n}\n\n.learning-progress-filter__form {flex-wrap: wrap\n}\n\n@media (min-width: 768px) {.learning-progress-filter__form {flex-wrap: nowrap\n    }\n}\n\n.learning-progress-filter__form {font-size: 0.875rem;line-height: 1.25rem\n}\n\n.learning-progress-filter__form .icon__src {position: static\n}\n\n.chapter-elements {border-bottom-width: 2px;border-color: var(--border-color)\n}\n\n.chapter-element__title {font-size: 1.25rem;line-height: 1.75rem;font-weight: 700\n}\n\n.topic-element--disabled, .chapter-element--disabled {cursor: default !important;background-color: var(--surface-subdued) !important;color: var(--text-subdued) !important\n}\n",""]);const s=o},17912(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".iqbuddy-teaser__text-wrapper {\n\n    display: grid;\n\n    grid-template-columns: repeat(1, minmax(0, 1fr));\n\n    gap: 1.5rem;\n\n    padding-bottom: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .iqbuddy-teaser__text-wrapper {\n\n        grid-template-columns: repeat(2, minmax(0, 1fr))\n    }\n}\n\n.iqbuddy-teaser__text {\n\n    padding-bottom: 0.5rem;\n\n    font-weight: 700\n}\n\n.iqbuddy-teaser__commercial-cat {\n\n    margin-top: 0.25rem;\n\n    margin-bottom: 0.25rem;\n\n    display: flex\n}\n\n.iqbuddy-teaser__button-wrapper {\n\n    margin-top: 1.25rem;\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.iqbuddy-teaser__image-wrapper {\n\n    width: 200px\n}\n\n@media (min-width: 640px) {\n\n    .iqbuddy-teaser__image-wrapper {\n\n        width: auto\n    }\n}\n\n.modal-dialog__title {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem\n}\n",""]);const s=o},58454(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".collection-dropdown {\n\n    max-height: 50vh;\n\n    max-width: 310px;\n\n    color: var(--text-link)\n}\n\n.collection-container {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    gap: 0.5rem\n}\n\n.iqbuddy-popover {\n\n    background-color: var(--surface);\n\n    color: var(--text);\n\n    --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    border-radius: 0.25rem;\n\n    z-index: 80;\n\n    width: 360px;\n\n    overflow-x: auto\n}\n\n.iqbuddy-popover-title {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.iqbuddy-popover-content {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 2rem;\n\n    padding: 1rem;\n\n    padding-top: 0px\n}\n\n.iqbuddy-popover-content-translation {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.iqbuddy-popover-content-translation-box {\n\n    display: flex;\n\n    flex-direction: column;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem\n}\n\n.iqbuddy-select__trigger {\n\n    display: inline-flex;\n\n    border-radius: 0.25rem;\n\n    background-color: var(--surface);\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-link)\n}\n\n.iqbuddy-select__trigger-icon {\n\n    margin-left: 0.5rem;\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-link)\n}\n\n.iqbuddy-select__content {\n\n    z-index: 80\n}\n\n.iqbuddy-select__viewport {\n\n    cursor: pointer;\n\n    -webkit-user-select: none;\n\n            user-select: none;\n\n    border-radius: 0.375rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    background-color: var(--surface)\n}\n\n.iqbuddy-select__viewport-scroll {\n\n    max-height: 18rem;\n\n    overflow: auto;\n\n    padding: 0.5rem\n}\n\n.iqbuddy-app-teaser__link {\n\n    display: flex;\n\n    flex-direction: row;\n\n    flex-wrap: wrap;\n\n    justify-content: space-around;\n\n    gap: 4rem\n}\n\n.iqbuddy-app-teaser__link-box {\n\n    display: flex;\n\n    width: 100%;\n\n    max-width: 9rem;\n\n    flex-direction: column;\n\n    align-items: center;\n\n    gap: 0.5rem\n}\n\n.iqbuddy-app-teaser__link-box img {\n\n    height: auto;\n\n    width: 100%\n}\n",""]);const s=o},92811(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".scroll-bar{\n  display: flex;\n  flex-direction: column;\n  align-items: center;\n}\n\n.scroll-bar--bottom{\n  bottom: 0px;\n  top: auto;\n  z-index: 10;\n}\n\n.resizable{\n  --tw-bg-opacity: 1;\n  background-color: rgb(0 0 0 / var(--tw-bg-opacity));\n  width: 100%;\n  height: 6.5rem;\n}\n\n.draggable{\n  position: absolute;\n  bottom: 0px;\n  left: 50%;\n  --tw-translate-x: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n  color: var(--surface);\n  cursor: grab;\n  margin-bottom: 1rem;\n}\n\n.draggable--bottom{\n  top: 0px;\n  bottom: auto;\n  margin-top: 1rem;\n  margin-bottom: auto;\n}\n\n.shutter__config{\n  top: 100%;\n  z-index: 40;\n  display: flex;\n  align-items: center;\n  gap: 0.25rem;\n  background-color: var(--surface);\n  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n  border-radius: 0.25rem;\n  padding: 1px;\n}\n.drawingTool button .icon svg{\n  width: 30px;\n  height: 30px;\n}\n\n.shutter__config > label{\n  margin-left: 0.75rem;\n}\n",""]);const s=o},35604(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.accordion-root {\n\n    cursor: pointer;\n\n    border-radius: 0.25rem;\n\n    background-color: var(--surface)\n}\n\n.accordion-item {\n\n    margin-top: 1px;\n\n    overflow: hidden\n}\n\n.accordion-item:first-child {\n\n    margin-top: 0px;\n\n    border-top-left-radius: 0.25rem;\n\n    border-top-right-radius: 0.25rem\n}\n\n.accordion-item:last-child {\n\n    border-bottom-right-radius: 0.25rem;\n\n    border-bottom-left-radius: 0.25rem\n}\n\n.accordion-header {\n\n    display: flex;\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.accordion-header:hover {\n\n    border-color: var(--border-focus-color);\n\n    background-color: var(--surface-subdued)\n}\n\n.accordion-content {\n\n    overflow: hidden;\n\n    color: var(--text)\n}\n\n.accordion-content:hover {\n\n    background-color: var(--surface-subdued)\n}\n\n.accordion-trigger {\n\n    display: flex;\n\n    height: 44px;\n\n    flex: 1 1 0%;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    padding-left: 1.25rem;\n\n    padding-right: 1.25rem;\n\n    font-weight: 700;\n\n    line-height: 1\n}\n\n.accordion-trigger-icon {\n\n    height: 1rem;\n\n    width: 1rem;\n\n    flex-shrink: 1;\n\n    transition-property: transform;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 300ms\n}\n\n.group[data-state="open"] .accordion-trigger-icon {\n\n    --tw-rotate: 180deg;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n',""]);const s=o},12084(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".dau-page-navigation {\n\n    padding-bottom: 1rem\n}\n\n.dau-page-navigation__asset-list {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.dau-page-navigation__item {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    background-color: var(--surface);\n\n    display: flex;\n\n    text-align: left;\n\n    width: 100%\n}\n\n.dau-page-navigation__item__text {\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    font-weight: 700;\n\n    display: flex\n}\n\n.dau-page-navigation__asset {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    gap: 0.5rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    padding-right: 0.75rem;\n\n    padding-left: 3rem;\n\n    border-top-width: 1px;\n\n    border-color: var(--border-color);\n\n    width: 100%\n}\n\n.dau-page-navigation__asset:hover {\n\n    background-color: var(--surface-subdued)\n}\n\n.dau-page-navigation__asset:first-child {\n\n    border-top-width: 0px\n}\n\n.dau-page-navigation__asset--disabled {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-subdued);\n\n    cursor: default\n}\n\n.dau-page-navigation__asset--disabled .dau-page-navigation__asset__title {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-subdued)\n}\n\n.dau-page-navigation__asset__title {\n\n    display: flex;\n\n    justify-content: space-between;\n\n    gap: 0.5rem;\n\n    color: var(--text-strong)\n}\n\n.dau-page-navigation__item__icon {\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    fill: var(--text-strong);\n\n    margin-left: 0px;\n\n    margin-right: 0.75rem\n}\n\n.dau-page-navigation__item__icon > * {\n\n    fill: currentColor\n}\n\n.dau-page-navigation__asset--none {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued);\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    padding-bottom: 0.5rem\n}\n\n.dau-page-navigation-asset--active {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-link)\n}\n\n.dau-page-navigation__asset__radios {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem;\n\n    margin-left: 1rem;\n\n    margin-right: 1rem;\n\n    margin-bottom: 1.5rem\n}\n\n.dau-page-navigation__eksdi {\n\n    font-weight: 400;\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    gap: 1rem;\n\n    width: 100%;\n\n    max-width: 20rem;\n\n    padding: 0px\n}\n\n@media (min-width: 768px) {\n\n    .dau-page-navigation__eksdi {\n\n        padding-top: 0.5rem;\n\n        padding-bottom: 0.5rem\n    }\n}\n\n.dau-page-navigation__eksdi:hover {\n\n    cursor: pointer\n}\n\n.dau-page-navigation__eksdi-link {\n\n    color: var(--text-link);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline;\n\n    text-underline-offset: 4px\n}\n",""]);const s=o},13228(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".dau-config__text {\n\n    margin-bottom: 1.5rem\n}\n\n.dau-config__dropdown + div {\n\n    z-index: 10 !important\n}",""]);const s=o},7550(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".discover-page {\n\n    margin-top: 3.5rem\n}\n\n.discover-search {\n\n    flex-grow: 1\n}\n\n.search__wrapper {\n\n    margin-bottom: 3rem\n}\n\n.discover-page__section {\n\n    margin-bottom: 1rem\n}\n\n.discover-page__filter {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n@media (min-width: 640px) {\n\n    .discover-page__filter {\n\n        flex-direction: row;\n\n        gap: 1rem\n    }\n}\n\n.discover-page__items {\n\n    display: grid;\n\n    grid-template-columns: repeat(1, minmax(0, 1fr));\n\n    gap: 1rem\n}\n\n@media (min-width: 640px) {\n\n    .discover-page__items {\n\n        grid-template-columns: repeat(2, minmax(0, 1fr))\n    }\n}\n\n@media (min-width: 768px) {\n\n    .discover-page__items {\n\n        grid-template-columns: repeat(3, minmax(0, 1fr))\n    }\n}\n\n@media (min-width: 1024px) {\n\n    .discover-page__items {\n\n        grid-template-columns: repeat(4, minmax(0, 1fr))\n    }\n}\n\n@media (min-width: 1280px) {\n\n    .discover-page__items {\n\n        grid-template-columns: repeat(5, minmax(0, 1fr))\n    }\n}\n\n.discover-page__items {\n\n    padding-top: 1.5rem;\n\n    padding-bottom: 1.5rem\n}\n\n.discover-item {\n\n    position: relative;\n\n    grid-column: span 1 / span 1;\n\n    gap: 0.25rem;\n\n    display: flex\n}\n\n@media (min-width: 640px) {\n\n    .discover-item {\n\n        flex-direction: column\n    }\n}\n\n.discover-page__more-item:hover {\n\n    background-color: transparent\n}\n\n.discover-page__more-item > * {\n\n    flex: 1 1 0%\n}\n\n.discover-item__img-wrapper {\n\n    width: 10rem;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms\n}\n\n@media (min-width: 768px) {\n\n    .group:hover .discover-item__img-wrapper {\n\n        --tw-scale-x: 1.1;\n\n        --tw-scale-y: 1.1;\n\n        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n    }\n}\n\n.discover-item__img {\n\n    max-height: 100%;\n\n    width: 100%;\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms\n}\n\n.group:hover .discover-item__img {\n\n    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
2\n\n    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.discover-item__block {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.discover-item__block > :not([hidden]) ~ :not([hidden]) {\n\n    --tw-space-y-reverse: 0;\n\n    margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));\n\n    margin-bottom: calc(0.5rem * var(--tw-space-y-reverse))\n}\n\n.discover-item__block {\n\n    padding-top: 1rem;\n\n    padding-bottom: 1rem;\n\n    width: 100%\n}\n\n.discover-item__actions {\n\n    display: flex;\n\n    justify-content: flex-end\n}\n\n@media (min-width: 640px) {\n\n    .discover-item__actions {\n\n        justify-content: center\n    }\n}\n\n.discover-item__description {\n\n    color: var(--text)\n}\n\n.discover-item__title {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between\n}\n\n.discover-item__meta {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem\n}\n\n.discover-item__img-wrapper--placeholder {\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between;\n\n    background-color: var(--surface-information);\n\n    --tw-bg-opacity: 0.6;\n\n    height: 100%;\n\n    aspect-ratio: 4 / 5\n}\n\n.discover-item__img-wrapper--placeholder p {\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    padding-top: 2rem;\n\n    padding-bottom: 2rem;\n\n    font-weight: 700\n}\n\n.discover-item__img-wrapper--placeholder .icon {\n\n    align-self: flex-end;\n\n    margin-bottom: 1rem;\n\n    margin-right: 1rem;\n\n    height: 2rem;\n\n    width: 2rem\n}\n",""]);const s=o},35899(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".search__wrapper {\n\n    display: flex;\n\n    justify-content: space-between;\n\n    gap: 0.5rem\n}\n\n.search__facets-wrapper {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between\n}\n\n.search__facet-wrapper {\n\n    display: flex\n}",""]);const s=o},55608(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".eksdi-page__navigation {display: grid;grid-auto-rows: -webkit-max-content;grid-auto-rows: max-content\n}@media (min-width: 768px) {.eksdi-page__navigation {grid-template-columns: repeat(5, minmax(0, 1fr));grid-template-rows: repeat(1, minmax(0, 1fr))\n    }\n}.eksdi-page__navigation {border-bottom-width: 1px;border-color: var(--border-color);background-color: var(--surface);padding-left: 1rem;padding-right: 1rem;padding-top: 0.5rem;padding-bottom: 0.5rem\n}@media (min-width: 768px) {.eksdi-page__navigation {padding-left: 2rem;padding-right: 2rem\n    }\n}.eksdi-page__navigation {align-items: center\n}\n\n.eksdi-page__navigation-row {grid-column-start: auto\n}\n\n@media (min-width: 768px) {.eksdi-page__navigation-row {grid-column-start: 1\n    }\n}\n\n.eksdi-page__navigation-row {display: flex;flex-direction: row;align-items: center;justify-content: space-between;width: 100%\n}\n",""]);const s=o},15912(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".answerBox {\n  display: inline-flex;\n  align-items: center;\n  justify-content: space-between;\n  border-radius: 0.25rem;\n  border-width: 2px;\n  padding-top: 1px;\n  padding-bottom: 1px;\n  vertical-align: bottom;\n  line-height: 2.25rem\n}\n\n.answerBox--correct {\n  border-color: var(--text-success);\n  color: var(--text-success)\n}\n\n.answerBox--incorrect {\n  border-color: var(--text-critical);\n  color: var(--text-critical)\n}\n\n.answerBox__noAnswer {\n  display: flex;\n  min-width: 8rem;\n  align-items: center;\n  gap: 0.5rem\n}\n\n.answerBox__icon {\n  margin-left: 0.5rem;\n  margin-right: auto;\n  height: 1.25rem;\n  width: 1.25rem\n}\n\n.answerBox__label {\n  flex-grow: 1;\n  padding: 0px;\n  color: var(--text)\n}\n\n.answerBox__label--noAnswer {\n  padding-left: 0.75rem;\n  padding-right: 0.75rem;\n  padding-top: 18px;\n  padding-bottom: 18px\n}\n\n.singleCharacter .answerBox__label--noAnswer {\n  padding-left: 0px !important;\n  padding-right: 0px !important\n}\n\n.answerBox__icon--noAnswer {\n  margin: 0px !important\n}\n\n.noAnswer {\n  line-height: 2.25rem;\n  color: var(--text);\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  gap: 0.5rem;\n  border-radius: 0.25rem;\n  border-width: 2px;\n  border-color: var(--text-critical);\n  padding-top: 1px;\n  padding-bottom: 1px;\n  padding-left: 0.25rem;\n  padding-right: 0.25rem;\n  width: -webkit-fit-content;\n  width: fit-content\n}\n",""]);const s=o},91485(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".eksdi-asset__link {display: flex;flex-direction: row;gap: 0.5rem;padding: 0.5rem\n}@media (min-width: 1024px) {.eksdi-asset__link {padding-left: 1rem;padding-right: 1rem\n    }\n}.eksdi-asset__link {color: var(--text);border-bottom-width: 1px;border-color: var(--border-color);max-width: 80vw;cursor: pointer\n}.eksdi-asset__link:hover {background-color: var(--surface-subdued)\n}\n\n.eksdi-asset__link--active {background-color: var(--surface-information)\n}\n",""]);const s=o},43942(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".gap-match-droppable {position: -webkit-sticky;position: sticky;top: -0.125rem;z-index: 10;display: flex;overflow-x: auto;border-radius: 0.5rem;background-color: var(--surface);--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow)\n}@media (min-width: 768px) {.gap-match-droppable {flex-direction: column\n    }\n}.gap-match-droppable {height: auto !important\n}\n\n.gap-match-droppable__title {margin-top: auto;margin-bottom: auto;padding: 1rem;font-size: 20px;line-height: 24px;font-weight: 700\n}\n\n@media (min-width: 1024px) {.gap-match-droppable__title {padding-bottom: 0px\n    }\n}\n\n.gap-match-droppable__words {display: flex;align-content: flex-start;align-items: center;gap: 0.75rem\n}\n\n@media (min-width: 768px) {.gap-match-droppable__words {flex-wrap: wrap\n    }\n}\n\n.gap-match-droppable__words {min-height: 74px;padding: 1rem\n}\n\n@media (min-width: 768px) {.gap-match-droppable__words {overflow: hidden\n    }\n}\n\n.droppable {height: 100%;border-radius: 0.25rem\n}\n",""]);const s=o},86626(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".gapOption {\n\n    font-size: 1.25rem;\n\n    line-height: 2.5rem;\n\n    background-color: var(--surface);\n\n    color: var(--interactive);\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    font-weight: 700;\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    -webkit-user-select: none;\n\n            user-select: none;\n\n    display: inline-flex;\n\n    align-items: center;\n\n    gap: 0.75rem;\n\n    height: 100%\n}\n\n.gapOption__disabled {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-subdued)\n}\n\n.gapOption__active {\n\n    position: absolute;\n\n    z-index: 50;\n\n    background-color: var(--interactive-hovered);\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem;\n\n    color: var(--border-color);\n\n    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.gapOption__active:hover:is(.dark *) {\n\n    color: var(--text)\n}\n\n.gapOption__NotActive:hover {\n\n    background-color: var(--surface-subdued) !important\n}\n\n.gapOption__NotActive:hover:is(.dark *) {\n\n    color: var(--text-subdued) !important\n}\n\n.gapOption__line {\n\n    height: auto\n}\n\n@media (min-width: 768px) {\n\n    .gapOption__line {\n\n        height: 100%\n    }\n}\n\n.gapOption__line {\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem;\n\n    text-align: left;\n\n    line-height: 1.75rem;\n\n    position: relative\n}\n\n.gapOption__line::before {\n\n    position: absolute;\n\n    right: 50%;\n\n    bottom: calc(100% + 1px);\n\n    height: 100%;\n\n    width: 2rem;\n\n    --tw-translate-x: 50%;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n    border-right-width: 24px;\n\n    border-left-width: 24px;\n\n    border-bottom-width: 8px;\n\n    border-left-color: transparent;\n\n    border-right-color: transparent;\n\n    border-bottom-color: var(--border-color);\n\n    --tw-content: '';\n\n    content: var(--tw-content)\n}\n\n.gapOption__line::after {\n\n    position: absolute;\n\n    right: 50%;\n\n    bottom: 100%;\n\n    height: 100%;\n\n    width: 2rem;\n\n    --tw-translate-x: 50%;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n    border-right-width: 24px;\n\n    border-left-width: 24px;\n\n    border-bottom-width: 8px;\n\n    border-left-color: transparent;\n\n    border-right-color: transparent;\n\n    --tw-content: '';\n\n    content: var(--tw-content)\n}\n\n@media (min-width: 768px) {\n\n    .gapOption__line--desktop::before {\n\n        left: -31px;\n\n        top: 0px;\n\n        bottom: 0px;\n\n        --tw-translate-x: 0px;\n\n        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n        border-bottom-width: 24px;\n\n        border-top-width: 24px;\n\n        border-left-width: 0px;\n\n        border-right-width: 17px;\n\n        border-top-color: transparent;\n\n        border-bottom-color: transparent;\n\n        content: var(--tw-content);\n\n        border-right-color: var(--border-color)\n    }\n\n    .gapOption__line--desktop::after {\n\n        left: -30px;\n\n        top: 0px;\n\n        bottom: 0px;\n\n        --tw-translate-x: 0px;\n\n        transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n        border-bottom-width: 24px;\n\n        border-top-width: 24px;\n\n        border-left-width: 0px;\n\n        border-right-width: 17px;\n\n        content: var(--tw-content) !important;\n\n        border-top-color: transparent !important;\n\n        border-bottom-color: transparent !important\n    }\n}\n\n.gapOption__line--active::after {\n\n    content: var(--tw-content);\n\n    border-bottom-color: var(--interactive-hovered)\n}\n\n.gapOption__line--active:hover:is(.dark *) {\n\n    color: var(--text)\n}\n\n@media (min-width: 768px) {\n\n    .gapOption__line--active::after {\n\n        content: var(--tw-content);\n\n        border-right-color: var(--interactive-hovered)\n    }\n}\n\n.gapOption__line--NotActive::after {\n\n    content: var(--tw-content);\n\n    border-bottom-color: var(--surface)\n}\n\n@media (min-width: 768px) {\n\n    .gapOption__line--NotActive::after {\n\n        content: var(--tw-content) !important;\n\n        border-right-color: var(--surface) !important\n    }\n}\n\n.gapOption__line--NotActive:hover {\n\n    background-color: var(--surface-subdued)\n}\n\n.gapOption__line--NotActive:hover:is(.dark *) {\n\n    color: var(--text-subdued)\n}\n",""]);const s=o},36023(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".solution {\n\n    display: inline-flex\n}\n\n.solution__text {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-subdued);\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    margin-left: 0.25rem;\n\n    margin-right: 0.25rem;\n\n    font-weight: 700;\n\n    font-size: 1.25rem;\n\n    line-height: 2.5rem\n}\n\n.alternative-solution {\n\n    border-radius: 0.5rem;\n\n    background-color: var(--surface-information);\n\n    margin: 0.25rem;\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    line-height: 1.5\n}\n\n.alternative-solution > ul {\n\n    list-style-type: none !important;\n\n    padding: 0px !important\n}\n",""]);const s=o},68918(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".help-container {\n\n    border-radius: 0.5rem;\n\n    background-color: var(--surface-information);\n\n    padding: 1.5rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.help-title {\n\n    font-size: 1.5rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700\n}\n\n.help-text {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 400;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.help-close-button {\n\n    margin-top: -0.5rem;\n\n    margin-right: -0.5rem\n}\n",""]);const s=o},62318(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".eksdi-input {\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n  background-color: var(--surface);\n  color: var(--text);\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n}\n\n.eksdi-input--text:focus {\n  height: 42px;\n  border-width: 2px;\n  border-color: var(--focus-outline);\n}\n\n.eksdi-input--text {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n}\n\n.eksdi-input--text:-webkit-autofill {\n  -webkit-box-shadow: 0 0 0px 1000px var(--surface) inset;\n  -webkit-text-fill-color: var(--text);\n}\n\n.eksdi-input-text--hidden {\n  position: absolute;\n  left: -9999px;\n  display: inline-block;\n  visibility: hidden;\n}\n\ninput {\n  color-scheme: dark;\n}\n\n.eksdi-input--single_character_gap {\n  width: 1.5rem;\n  padding: 0px;\n  text-align: center;\n  margin-left: 0px;\n  margin-right: 0px;\n}\n\n.eksdi-input--long_gap {\n  min-width: 288px;\n  margin-left: 0.25rem;\n  margin-right: 0.25rem;\n  flex: 1 1 0%;\n}\n\n.eksdi-input--short_gap {\n  min-width: 9rem;\n  margin-left: 0.25rem;\n  margin-right: 0.25rem;\n}\n",""]);const s=o},40954(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".conversation-icon .icon {\n  height: 1.5rem;\n  width: 1.5rem;\n}\n\n.conversation-icon svg * {\n  fill: var(--text) !important;\n}\n\n.conversation-icon--interactive svg * {\n  fill: var(--interactive) !important;\n}\n",""]);const s=o},96559(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".reading-text__button {\n\n    width: 100%;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: flex-end\n}\n\n.reading-tex__button-text {\n\n    color: var(--text)\n}\n\n.reading-text__box {\n\n    background-color: var(--surface-subdued);\n\n    border-radius: 0.5rem;\n\n    padding: 1.5rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem;\n\n    max-height: 24rem;\n\n    min-height: 9rem;\n\n    overflow-y: auto;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 400\n}\n",""]);const s=o},9999(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".eksdi-table__wrapper {\n  display: block;\n  padding-top: 1.5rem;\n  color: var(--text);\n}\n\n.eksdi-table__scroll {\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n  overflow-x: auto;\n  background-color: var(--surface);\n}\n\n.eksdi-table__table {\n  border-collapse: separate;\n  border-spacing: 0;\n  width: 100%;\n  table-layout: fixed;\n}
2\n\n.eksdi-table__caption {\n  caption-side: top;\n  padding: 1rem;\n  text-align: left;\n  font-weight: 700;\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n}\n\n.eksdi-table__cell {\n  padding: 1rem;\n  text-align: left;\n  vertical-align: top;\n  border-bottom-width: 1px;\n  border-color: var(--border-color);\n}\n\n.eksdi-table__cell--header {\n  background-color: var(--blue-5);\n  font-weight: 700;\n}\n\n.eksdi-table__cell--header:is(.dark *) {\n  color: var(--surface);\n}\n\n.eksdi-table__table tbody tr:last-child .eksdi-table__cell {\n  border-bottom-width: 0px;\n}\n",""]);const s=o},64534(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".exercise-header ol, .lesson-wrapper ol {\n\n    list-style-type: decimal !important;\n\n    padding-left: 1.25rem\n}\n\n.exercise-header ul, .lesson-wrapper ul {\n\n    list-style-type: disc !important;\n\n    padding-left: 1.25rem\n}\n\n.emChildIsItalic > em {\n\n    font-style: italic !important\n}\n\n.exercise-heading {\n\n    display: block;\n\n    padding: 0px;\n\n    padding-top: 2.25rem\n}\n\n/* don't add a padding top if it is the first child in a reading box or help box*/\n.reading-text__box > .exercise-heading:first-child,\n.help-text > .exercise-heading:first-child,\n.eksdi-exercise-question > .exercise-heading:first-child {\n\n    padding-top: 0px\n}\n",""]);const s=o},24322(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".warning-container {\n\n    width: -webkit-fit-content;\n\n    width: fit-content;\n\n    margin-top: 0.5rem;\n\n    border-radius: 0.5rem;\n\n    background-color: var(--surface-critical);\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: space-between\n}\n\n.warning-text {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    gap: 1rem;\n\n    color: var(--text);\n\n    padding: 1.5rem\n}\n\n.warning-close-button {\n\n    padding: 1rem\n}\n",""]);const s=o},63020(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".lesson-wrapper {color: var(--text);background-color: var(--surface-subdued);padding: 2rem\n}@media (min-width: 1024px) {.lesson-wrapper {padding-left: 2.5rem;padding-right: 2.5rem\n    }\n}\n\n.help__button {width: 100%;display: flex;align-items: center;justify-content: flex-end\n}\n\n.help__button-text {color: var(--text)\n}\n\n.lesson-wrapper__exercise {width: 100%;display: flex;flex-direction: column;gap: 1rem;font-size: 1.25rem;line-height: 1.75rem;font-weight: 400\n}\n\n.lesson-wrapper__submit {display: flex;flex-direction: row;align-items: flex-start;justify-content: flex-end;margin-top: 1rem;gap: 1rem;border-top-width: 1px;border-color: var(--border-color);padding-top: 1rem\n}\n\n.lesson-wrapper__submit_col {flex-direction: column\n}\n\n.lesson-wrapper__submit--attempt {padding-left: 1rem;padding-right: 1rem;padding-top: 0.75rem;padding-bottom: 0.75rem\n}\n\n.lesson-bar {font-size: 0.875rem;line-height: 1.25rem;padding-left: 1rem;padding-right: 1rem;padding-top: 0.5rem;padding-bottom: 0.5rem\n}\n\n@media (min-width: 768px) {.lesson-bar {padding-top: 1rem;padding-bottom: 0.25rem\n    }\n}\n\n@media (min-width: 1024px) {.lesson-bar {padding-left: 2rem;padding-right: 2rem\n    }\n}\n\n.lesson-bar {border-bottom-width: 1px;border-color: var(--border-color);font-weight: 700;display: grid;grid-auto-rows: -webkit-max-content;grid-auto-rows: max-content\n}\n\n@media (min-width: 768px) {.lesson-bar {grid-template-columns: repeat(5, minmax(0, 1fr));grid-template-rows: repeat(1, minmax(0, 1fr))\n    }\n}\n\n.lesson-navigation {width: 100%;display: flex;flex-direction: row;justify-content: space-between;grid-column-start: auto\n}\n\n@media (min-width: 768px) {.lesson-navigation {grid-column-start: 1\n    }\n}\n\n.lesson-pagination {display: flex;align-items: center;gap: 0.5rem\n}\n\n.lesson-info {grid-column-start: auto\n}\n\n@media (min-width: 768px) {.lesson-info {grid-column-start: 5\n    }\n}\n\n.lesson-info {display: flex;flex-direction: column\n}\n\n@media (min-width: 1024px) {.lesson-info {flex-direction: row;align-items: center;gap: 0.75rem\n    }\n}\n\n.lesson-info {width: 100%\n}\n\n.lesson-info__progress-text {display: none\n}\n\n@media (min-width: 768px) {.lesson-info__progress-text {display: block\n    }\n}\n\n.lesson-info__progress {flex: 1 1 0%\n}\n\n.exercise-header {width: 100%;color: var(--text);padding-left: 2rem;padding-right: 2rem;padding-top: 1.5rem;padding-bottom: 1.5rem\n}\n\n@media (min-width: 1024px) {.exercise-header {padding-left: 2.5rem;padding-right: 2.5rem\n    }\n}\n\n.exercise-header {background-color: var(--surface);display: flex;flex-direction: row;align-items: flex-end;
2gap: 1.5rem\n}\n\n.exercise-header__content {display: flex;flex-direction: column;gap: 0.5rem;flex: 1 1 0%\n}\n\n.exercise-header__title {display: flex;flex-direction: row;gap: 0.25rem;margin-bottom: 1rem;color: var(--text-subdued)\n}\n\n@media (min-width: 768px) {.exercise-header__title {margin-bottom: 0.5rem\n    }\n}\n\n.exercise-header__assets-buttons {display: flex;flex-direction: row;gap: 0.5rem\n}\n\n.eksdi-result {color: var(--text);background-color: var(--surface-information);display: flex;flex-direction: column;align-items: center;justify-content: center;gap: 1rem\n}\n\n.eksdi-result__percentage {font-weight: 700;color: var(--text-strong);font-size: 2.5rem;line-height: 2.5rem;padding: 0px;padding-top: 2.5rem\n}\n\n.eksdi-result__openQuestion {text-align: center;font-weight: 700;color: var(--text-strong);font-size: 2rem;line-height: 2rem;padding: 0px;padding-top: 2.5rem\n}\n\n.eksdi-result__text {font-size: 1.25rem;line-height: 1.75rem\n}\n\n.eksdi-result__buttons {width: 100%;display: flex;flex-direction: row;justify-content: center;flex-wrap: wrap-reverse;gap: 1rem;padding: 2rem;padding-top: 0px\n}\n\n.eksdi-exercise-question {font-size: 1.25rem;line-height: 1.75rem;display: flex;flex-direction: column;gap: 0.5rem\n}\n\n.eksdi-progress progress[value] {color: var(--attraction)\n}\n\n.eksdi-progress progress::-moz-progress-bar,\n.eksdi-progress progress::-moz-progress-bar {background-color: var(--attraction)\n}\n\n.eksdi-progress progress[value]::-webkit-progress-value {background-color: var(--attraction)\n}\n\n",""]);const s=o},31671(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".gap-match-lesson {\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.gap-match-entry {\n\n    line-height: 2.5rem;\n\n    display: flex;\n\n    align-items: baseline;\n\n    gap: 0.5rem\n}\n",""]);const s=o},99919(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".graphic-gap-match__gaps {\n\n    display: flex;\n\n    flex-wrap: wrap;\n\n    align-items: flex-end;\n\n    gap: 2rem\n}\n\n@media (min-width: 768px) {\n\n    .graphic-gap-match__gaps {\n\n        columns: 2\n    }\n}\n\n.graphic-gap-match-entry {\n\n    display: flex;\n\n    align-items: flex-end\n}\n\n.graphic-gap-match-entry__number {\n\n    margin-right: 0.75rem\n}\n\n.empty-line {\n\n    position: relative;\n\n    margin-left: 0.5rem;\n\n    margin-right: 0.5rem;\n\n    display: inline-block;\n\n    width: 11rem\n}\n",""]);const s=o},93427(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".inline-choice {\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.inline-choice__line {\n\n    display: flex;\n\n    align-items: baseline;\n\n    gap: 0.5rem\n}\n\n.inline-choice__gap {\n\n    display: inline-flex\n}\n\n.inline-choice__gap--result {\n\n    font-weight: 700\n}\n\n.inline-choice-task-gap {\n\n    display: inline-flex;\n\n    vertical-align: middle;\n\n    min-width: 150px;\n\n    padding: 0.125rem\n}\n\n.inline-choice-answer-box {\n\n    margin: 0.125rem;\n\n    line-height: 2rem !important;\n\n    padding-top: 0.125rem !important;\n\n    padding-bottom: 0.25rem !important;\n\n    vertical-align: middle !important\n}\n\n.inline-choice-answer-box .answerBox__label--noAnswer {\n\n    padding-top: 1rem !important;\n\n    padding-bottom: 1rem !important\n}\n\n.select-entry__trigger {\n\n    width: 100%;\n\n    min-width: 150px;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 400;\n\n    background-color: var(--surface) !important;\n\n    padding-top: 0.375rem;\n\n    padding-bottom: 0.375rem;\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    display: inline-flex;\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    color: var(--interactive)\n}\n\n.select-entry__trigger--empty {\n\n    display: block;\n\n    text-align: right\n}\n\n.select-entry__trigger-icon {\n\n    margin-left: auto\n}\n\n.select-entry__trigger-icon--chevron {\n\n    margin-left: 0.75rem;\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    display: inline-block;\n\n    vertical-align: middle\n}\n\n.select-entry__trigger-icon--chevron > * {\n\n    fill: var(--text)\n}\n\n.select-entry__item {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 400;\n\n    color: var(--interactive)\n}\n\n.select-entry__item:hover {\n\n    border-color: var(--interactive-hovered);\n\n    background-color: var(--surface-subdued);\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px\n}\n\n.select-entry__viewport {\n\n    background-color: var(--surface);\n\n    border-radius: 0.5rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    font-weight: 700;\n\n    width: 100%;\n\n    cursor: pointer;\n\n    -webkit-user-select: none;\n\n            user-select: none\n}\n",""]);const s=o},70797(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".line-match-lesson {\n\n flex: 1 1 0%\n}\n\n.line-match__header {\n\n display: grid;\n\n grid-auto-flow: row;\n\n align-items: center\n}\n\n@media (min-width: 768px) {\n\n .line-match__header {\n\n  grid-auto-columns: minmax(0, 1fr);\n\n  grid-auto-flow: column\n }\n}\n\n.line-match__header {\n\n margin-bottom: 1rem;\n\n font-weight: 700\n}\n\n.line-match__entries-container {\n\n display: flex;\n\n flex-direction: column;\n\n justify-content: center\n}\n\n@media (min-width: 768px) {\n\n .line-match__entries-container {\n\n  flex-basis: 66.666667%\n }\n}\n\n@media (min-width: 1024px) {\n\n .line-match__entries-container {\n\n  flex-basis: 50%\n }\n}\n\n@media (min-width: 768px) {\n\n .line-match__entries-container {\n\n  width: -webkit-fit-content;\n\n  width: fit-content\n }\n}\n\n.line-match__entries {\n\n margin-bottom: 1.5rem\n}\n\n.line-match__entries>*:not(:last-child) {\n\n margin-bottom: 2.5rem\n}\n\n@media (min-width: 768px) {\n\n .line-match__entries>*:not(:last-child) {\n\n  margin-bottom: 2rem\n }\n}\n\n.line-match-entry {\n\n display: grid;\n\n grid-auto-flow: row;\n\n align-items: center;\n\n color: var(--text)\n}\n\n@media (min-width: 768px) {\n\n .line-match-entry {\n\n  grid-auto-columns: minmax(0, 1fr);\n\n  grid-auto-flow: column\n }\n}\n\n.line-match-entry__value--desktop {\n\n display: none;\n\n flex: 1 1 0%;\n\n align-items: center\n}\n\n@media (min-width: 768px) {\n\n .line-match-entry__value--desktop {\n\n  display: flex\n }\n}\n\n.line-match-entry__value--desktop {\n\n border-radius: 0.25rem;\n\n border-width: 1px;\n\n border-right-width: 0px;\n\n border-color: var(--border-color);\n\n padding: 0.75rem;\n\n padding-right: 2rem;\n\n height: 100%;\n\n width: 100%;\n\n background-color: var(--surface);\n\n position: relative;\n\n -webkit-user-select: none;\n\n         user-select: none\n}\n\n.line-match-entry__value--desktop::after {\n\n position: absolute;\n\n right: 0px;\n\n bottom: 0px;\n\n height: 100%;\n\n width: 2rem;\n\n border-bottom-width: 24px;\n\n border-top-width: 24px;\n\n border-right-width: 17px;\n\n border-top-color: transparent;\n\n border-bottom-color: transparent;\n\n border-right-color: var(--surface-subdued);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.line-match-entry__value--desktop::before {\n\n position: absolute;\n\n right: 1px;\n\n bottom: 0px;\n\n height: 100%;\n\n width: 2rem;\n\n border-bottom-width: 24px;\n\n border-top-width: 24px;\n\n border-right-width: 17px;\n\n border-top-color: transparent;\n\n border-bottom-color: transparent;\n\n border-right-color: var(--border-color);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.line-match-entry__value--mobile {\n\n flex: 1 1 0%\n}\n\n@media (min-width: 768px) {\n\n .line-match-entry__value--mobile {\n\n  display: none\n }\n}\n\n.line-match-entry__value--mobile {\n\n border-radius: 0.25rem;\n\n border-width: 1px;\n\n border-color: var(--border-color);\n\n padding: 0.75rem;\n\n padding-bottom: 1.25rem;\n\n padding-right: 2rem;\n\n background-color: var(--surface);\n\n position: relative;\n\n -webkit-user-select: none;\n\n         user-select: none\n}\n\n.line-match-entry__value--mobile::after {\n\n position: absolute;\n\n right: 50%;\n\n bottom: -1px;\n\n height: 100%;\n\n width: 2rem;\n\n --tw-translate-x: 50%;\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n border-right-width: 24px;\n\n border-left-width: 24px;\n\n border-bottom-width: 8px;\n\n border-left-color: transparent;\n\n border-right-color: transparent;\n\n border-bottom-color: var(--surface-subdued);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.line-match-entry__value--mobile::before {\n\n position: absolute;\n\n right: 50%;\n\n bottom: 0px;\n\n height: 100%;\n\n width: 2rem;\n\n --tw-translate-x: 50%;\n\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n\n border-right-width: 24px;\n\n border-left-width: 24px;\n\n border-bottom-width: 8px;\n\n border-left-color: transparent;\n\n border-right-color: transparent;\n\n border-bottom-color: var(--border-color);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.puzzle__content {\n\n display: flex;\n\n flex-direction: row;\n\n align-items: center;\n\n justify-content: space-between\n}\n\n.puzzle-desktop {\n\n display: none;\n\n place-self: start\n}\n\n@media (min-width: 768px) {\n\n .puzzle-desktop {\n\n  display: block\n }\n}\n\n.puzzle-desktop {\n\n border-width: 1px;\n\n border-left-width: 0px;\n\n border-color: var(--border-color);\n\n padding-left: 1.25rem;\n\n height: 100%;\n\n width: 100%;\n\n background-color: var(--surface);\n\n font-size: 1.25rem;\n\n line-height: 1.75rem;\n\n font-weight: 700;\n\n position: relative;\n\n -webkit-user-select: none;\n\n         user-select: none\n}\n\n.puzzle-desktop::after {\n\n position: absolute;\n\n left: -29px;\n\n bottom: 0px;\n\n height: 100%;\n\n width: 2rem;\n\n border-bottom-width: 24px;\n\n border-top-width: 24px;\n\n border-right-width: 17px;\n\n border-top-color: transparent;\n\n border-bottom-color: transparent;\n\n border-right-color: var(--surface);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.puzzle-desktop::before {\n\n position: absolute;\n\n left: -30px;\n\n bottom: 0px;\n\n height: 100%;\n\n width: 2rem;\n\n border-bottom-width: 24px;\n\n border-top-width: 24px;\n\n border-right-width: 17px;\n\n border-top-color: transparent;\n\n border-bottom-color: transparent;\n\n border-right-color: var(--border-color);\n\n --tw-content: '';\n\n content: var(--tw-content)\n}\n\n.puzzle-desktop__content {\n\n height: 100%\n}\n\n.puzzle-desktop--correct {\n\n border-color: var(--text-success)\n}\n\n.puzzle-desktop--correct::before {\n\n content: var(--tw-content);\n\n border-right-color: var(--text-success)\n}\n\n.puzzle-desktop--incorrect {\n\n border-color: var(--text-critical)\n}\n\n.puzzle-desktop--incorrect::before {\n\n content: var(--tw-content);\n\n border-right-color: var(--text-critical)\n}\n\n.puzzle--not-assigned {\n\n margin-top: 1rem\n}\n\n@media (min-width: 768px) {\n\n .puzzle--not-assigned {\n\n  margin-top: 0px;\n\n  margin-left: 1.5rem\n }\n\n .puzzle-mobile {\n\n  display: none\n }\n}\n\n.puzzle-mobile {\n\n border-color: var(--border-color);\n\n padding: 0.75rem;\n\n padding-left: 1.25rem;\n\n width: 100%;\n\n background-color: var(--surface)\n}\n\n.puzzle-mobile::after {\n\n content: var(--tw-content);\n\n color: var(--surface)\n}\n\n.puzzle-mobile::before {\n\n border-bottom-color: var(--border-color);\n\n content: var(--tw-content);\n\n color: var(--surface)\n}\n\n.puzzle-mobile__content {\n\n height: 100%;\n\n width: 100%\n}\n\n.puzzle-mobile--correct {\n\n border-color: var(--text-success)\n}\n\n.puzzle-mobile--correct::before {\n\n content: var(--tw-content);\n\n border-bottom-color: var(--text-success)\n}\n\n.puzzle-mobile--incorrect {\n\n border-color: var(--text-critical)\n}\n\n.puzzle-mobile--incorrect::before {\n\n content: var(--tw-content);\n\n border-bottom-color: var(--text-critical)\n}\n\n.puzzle--solution {\n\n background-color: var(--surface-subdued);\n\n color: var(--text-subdued);\n\n font-size: 1.25rem;\n\n line-height: 2.5rem\n}\n\n.puzzle-desktop--solution::after {\n\n content: var(--tw-content);\n\n border-right-color: var(--surface-subdued)\n}\n\n.puzzle-desktop--solution { /*  to color the puzzle connector part */\n}\n\n.puzzle-mobile--solution::after {\n\n content: var(--tw-content);\n\n border-bottom-color: var(--surface-subdued)\n}\n\n.puzzle-mobile--solution { /*  to color the puzzle connector part */\n}\n\n.line-match-entry__puzzle-solution {\n\n display: flex;\n\n flex-wrap: wrap;\n\n align-items: center\n}\n\n@media (min-width: 768px) {\n\n .line-match-entry__puzzle-solution {\n\n  flex-wrap: nowrap;\n\n  margin-left: -0.5rem;\n\n  margin-right: -0.5rem\n }\n}\n\n.line-match-entry__puzzle-solution {\n\n height: 100%\n}\n\n.puzzle-dnd__droppable {\n\n display: flex;\n\n width: 100%;\n\n align-items: center\n}\n\n@media (min-width: 768px) {\n\n .puzzle-dnd__droppable {\n\n  width: calc(100% + 1rem);\n\n  place-self: start\n }\n}\n\n.puzzle-dnd__droppable--not-assigned {\n\n margin-top: 1rem\n}\n\n@media (min-width: 768px) {\n\n .puzzle-dnd__droppable--not-assigned {\n\n  margin-top: 0px;\n\n  margin-left: 1.5rem\n }\n}\n\n.puzzle-dnd__draggable {\n\n margin-left: auto;\n\n margin-right: auto;\n\n height: 100%;\n\n width: 100%\n}\n\n@media (min-width: 768px) {\n\n .puzzle-dnd__draggable {\n\n  margin-left: -0.5rem;\n\n  margin-right: -0.5rem;\n\n  place-self: start\n }\n}\n\n.puzzle-dnd__draggable--assigned {\n\n margin-bottom: 1rem\n}\n\n@media (min-width: 768px) {\n\n .puzzle-dnd__draggable--assigned {\n\n  margin-bottom: 0px;\n\n  padding-right: 1.5rem\n }\n}\n",""]);const s=o}
2,44467(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".multiple-choice-lesson {\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1.5rem\n}\n\n.multiple-select__container {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem;\n\n    border-style: dotted;\n\n    border-color: var(--border-color);\n\n    padding-bottom: 1.5rem\n}\n\n.multiple-select__container:not(:last-child) {\n\n    border-bottom-width: 2px\n}\n\n.multiple-select {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.25rem\n}\n\n.multiple-select__checkboxes {\n\n    display: flex\n}\n\n.multiple-select__checkbox-label {\n\n    cursor: pointer;\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.25rem;\n\n    color: var(--text)\n}\n\n.multiple-select__checkbox-label--conversation {\n\n    display: inline-flex;\n\n    align-items: baseline;\n\n    gap: 0.5rem\n}\n\n.multiple-select__checkbox-label--solution {\n\n    cursor: default;\n\n    color: var(--text-subdued)\n}\n\n.multiple-select__checkbox-label--no-interaction:hover {\n\n    cursor: default\n}\n\n.multiple-select__example-solution-icon {\n\n    margin-left: 0.5rem;\n\n    margin-right: 0.5rem\n}\n",""]);const s=o},38029(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".multi-match__droppable{\n  position: -webkit-sticky;\n  position: sticky;\n  top: -0.125rem;\n  z-index: 10;\n  overflow-x: auto;\n  display: flex;\n}@media (min-width: 768px){.multi-match__droppable{\n    flex-direction: column;\n  }\n}.multi-match__droppable{\n  background-color: var(--surface);\n  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n  border-radius: 0.5rem;\n  margin-left: -1rem;\n  margin-right: -1rem;\n  margin-bottom: auto;\n  margin-top: 1rem;\n}@media (min-width: 1024px){.multi-match__droppable{\n    width: 18rem;\n    max-width: 24rem;\n  }\n}\n\n.sequence-match__heading{\n  padding: 1rem;\n}\n\n.sequence-match__heading--single{\n  padding-left: 0px;\n}\n\n.sequence-match__heading--matches-box{\n  padding: 0px;\n}\n\n.multi-match__matches{\n  display: flex;\n  flex: 1 1 0%;\n  gap: 0.5rem;\n  padding-top: 1rem;\n  padding-bottom: 1rem;\n}\n\n.multi-match__matches--no-sequence{\n  flex-direction: column;\n}\n\n@media (min-width: 640px){.multi-match__matches--no-sequence{\n    gap: 1.5rem;\n  }\n}\n\n@media (min-width: 768px){.multi-match__matches--no-sequence{\n    flex-direction: row;\n    gap: 3rem;\n  }\n}\n\n.multi-match__matches--no-sequence{\n  height: 100%;\n  overflow-x: auto;\n  width: 100%;\n  max-width: 100%;\n}\n\n.multi-match__matches--sequence{\n  flex-direction: column;\n}\n\n.matches-box{\n  width: 100%;\n  background-color: var(--surface);\n  padding: 1rem;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n  min-width: -webkit-min-content;\n  min-width: min-content;\n}\n\n.matches-box-droppable{\n  display: flex;\n  flex-direction: row;\n  flex-wrap: wrap;\n  align-items: flex-start;\n  gap: 1rem;\n}\n\n@media (min-width: 768px){.matches-box-droppable{\n    flex-direction: column;\n    flex-wrap: nowrap;\n  }\n}\n\n.matches-box-droppable{\n  min-height: 7rem;\n}\n\n.sequence-single-match{\n  display: flex;\n  gap: 1rem;\n}\n\n.sequence-single-match--padding{\n  padding-top: 0.5rem;\n  padding-bottom: 1rem;\n}\n\n.sequence-single-match--col{\n  height: 100%;\n  min-height: 7rem;\n  flex-direction: column;\n  padding-top: 0.5rem;\n  padding-bottom: 1.5rem;\n}\n\n.sequence-single-match--row{\n  flex-direction: row;\n  align-items: center;\n}\n\n.sequence-single-match--row__border{\n  display: flex;\n  justify-content: space-between;\n  border-bottom-width: 1px;\n  border-style: dashed;\n  border-color: var(--border-color);\n}\n\n.multi-match-entry{\n  display: flex;\n  align-items: center;\n}\n\n.multi-match-entry__entry--submitted{\n  display: flex;\n  align-items: center;\n  font-weight: 700;\n}\n\n.multi-match-entry__entry--empty{\n  height: 42px;\n  width: 11rem;\n  position: relative;\n  display: inline-block;\n  background-color: var(--surface);\n  border-radius: 0.25rem;\n  border-width: 1px;\n  border-color: var(--border-color);\n}\n\n.noData{\n  padding-top: 18px;\n  padding-bottom: 18px;\n}\n",""]);const s=o},31539(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".sequence-option__text {\n  background-color: var(--surface);\n  padding-left: 1rem;\n  padding-right: 1rem;\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n  -webkit-user-select: none;\n          user-select: none;\n  border-radius: 4px 0px 0px 4px;\n  border-width: 1px;\n  border-color: var(--border-color);\n}\n\n.sequence-option__text--solution {\n  background-color: var(--surface-subdued);\n  color: var(--text-subdued);\n}\n\n.sequence-option__text--solution svg * {\n  fill: var(--text-subdued) !important;\n}\n\n.sequence-list {\n  display: flex;\n  width: 100%;\n  flex-direction: column;\n  gap: 0.75rem;\n}\n\n.sequence-list ul {\n  padding-left: 0px !important;\n}\n\n.sequence-box--submitted {\n  display: flex;\n  width: 100%;\n  align-items: center;\n  padding-left: 1rem;\n  padding-right: 1rem;\n  padding-top: 0.75rem;\n  padding-bottom: 0.75rem;\n}\n\n.sequence-option-text {\n  color: var(--text);\n  display: flex;\n  flex: 1 1 0%;\n  align-items: baseline;\n}\n\n.sequence-option-text--interactive {\n  color: var(--interactive);\n}\n\n.sequence-option-text__partner {\n  padding-right: 0.75rem;\n  color: var(--text-subdued);\n}\n",""]);const s=o},49667(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".single-choice-lesson {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1.5rem;\n\n    width: 100%\n}\n\n.single-entry {\n\n    border-style: dotted;\n\n    border-color: var(--border-color);\n\n    padding-bottom: 1.5rem\n}\n\n.single-entry:not(:last-child) {\n\n    border-bottom-width: 2px\n}\n\n.single-entry-content {\n\n    width: 100%\n}\n\n.single-entry-content__value {\n\n    margin-bottom: 0.5rem;\n\n    -webkit-hyphens: auto;\n\n            hyphens: auto\n}\n\n.single-select {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.single-select__radio-group {\n\n    display: flex;\n\n    width: 100%;\n\n    flex-direction: column;\n\n    gap: 0.25rem\n}\n\n.single-select__result-box {\n\n    margin-left: auto\n}\n\n.select-item--task {\n\n    padding: 0.25rem\n}\n\n.radio-item__container {\n\n    display: flex;\n\n    align-items: center;\n\n    padding: 0.25rem\n}\n\n.radio-item {\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    background-color: var(--surface);\n\n    border-radius: 9999px;\n\n    border-width: 2px;\n\n    border-color: var(--border-color)\n}\n\n.radio-item:hover {\n\n    border-color: var(--border-accent-color)\n}\n\n.radio-item:focus {\n\n    outline: 2px solid transparent;\n\n    outline-offset: 2px;\n\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n\n    --tw-ring-color: var(--focus-outline)\n}\n\n.radio-item--selected {\n\n    border-color: var(--primary);\n\n    background-color: var(--primary)\n}\n\n.radio-item--no-interaction:hover {\n\n    border-color: var(--border-color)\n}\n\n.radio-item--correct {\n\n    border-color: var(--text-success);\n\n    background-color: var(--text-success)\n}\n\n.radio-item--correct:hover {\n\n    border-color: var(--text-success)\n}\n\n.radio-item--incorrect {\n\n    border-color: var(--text-critical);\n\n    background-color: var(--text-critical)\n}\n\n.radio-item--incorrect:hover {\n\n    border-color: var(--text-critical)\n}\n\n.radio-item--solution-selected {\n\n    border-color: var(--text-subdued);\n\n    background-color: var(--text-subdued)\n}\n\n.radio-item--solution-selected:hover {\n\n    border-color: var(--text-subdued)\n}\n\n.radio-item__label {\n\n    cursor: pointer;\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.25rem;\n\n    color: var(--text)\n}\n\n.radio-item__text--conversation {\n\n    display: inline-flex;\n\n    align-items: baseline;\n\n    gap: 0.5rem\n}\n\n.radio-item__label--no-interaction:hover {\n\n    cursor: default\n}\n\n.radio-item__label--solution-selected {\n\n    color: var(--text-subdued)\n}\n\n",""]);const s=o},10998(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".audio-recorder-lesson {\n\n    display: flex;\n\n    width: 100%;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.audio-recorder {\n\n    background-color: var(--surface-information);\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: center;\n\n    width: 100%\n}\n\n@media (min-width: 1024px) {\n\n    .audio-recorder {\n\n        width: 50%\n    }\n}\n\n.audio-recorder {\n\n    padding: 1.5rem\n}\n\n.audio-recorder__animation {\n\n    margin-bottom: 1rem;\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    gap: 1rem\n}\n\n.audio-recorder__buttons {\n\n    display: flex;\n\n    justify-content: center\n}\n\n.audio-recorder__time, .custom-audio-player__time {\n\n    white-space: nowrap;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    color: var(--text)\n}\n\n.audio-recorder__player-buttons {\n\n    margin-top: 1rem;\n\n    margin-bottom: 1rem;\n\n    display: flex;\n\n    justify-content: flex-start;\n\n    gap: 1rem\n}\n\n.custom-audio-player {\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    gap: 1rem\n}\n",""]);const s=o},27004(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.custom-audio-player input[type="range"] {\n  width: 100%;\n  cursor: pointer;\n  color: var(--primary);\n  --thumb-height: 20px;\n  --track-height: 8px;\n  --track-color: var(--surface-subdued);\n  --clip-edges: 0px;\n}\n\n.custom-audio-player input[type="range"].win10-thumb {\n  color: var(--text);\n  --thumb-height: 20px;\n  --thumb-width: 4px;\n  --clip-edges: 0px;\n}\n\n/* === range commons === */\n.custom-audio-player input[type="range"] {\n  position: relative;\n  background-color: transparent;\n  overflow: hidden;\n}\n\n/* === WebKit specific styles === */\n.custom-audio-player input[type="range"],\n.custom-audio-player input[type="range"]::-webkit-slider-runnable-track,\n.custom-audio-player input[type="range"]::-webkit-slider-thumb {\n  -webkit-appearance: none;\n  -webkit-transition: all ease 100ms;\n  transition: all ease 100ms;\n  height: 1.25rem;\n}\n\n.custom-audio-player input[type="range"]::-webkit-slider-runnable-track,\n.custom-audio-player input[type="range"]::-webkit-slider-thumb {\n  position: relative;\n}\n\n.custom-audio-player input[type="range"]::-webkit-slider-thumb {\n  --clip-top: calc((var(--thumb-height) - var(--track-height)) * 0.5);\n  --clip-bottom: calc(var(--thumb-height) - var(--clip-top));\n  --clip-further: calc(100% + 1px);\n  --box-fill: -4px 0 0 100vmax currentColor;\n  background: black linear-gradient(var(--text) 0 0) no-repeat scroll left center;\n  background-color: var(--text);\n  box-shadow: var(--box-fill);\n  height: 1.25rem;\n  width: 0.25rem;\n\n  -webkit-clip-path: polygon(\n    100% -1px,\n    var(--clip-edges) -1px,\n    0 var(--clip-top),\n    -100vmax var(--clip-top),\n    -100vmax var(--clip-bottom),\n    0 var(--clip-bottom),\n    var(--clip-edges) 100%,\n    var(--clip-further) var(--clip-further)\n  );\n\n          clip-path: polygon(\n    100% -1px,\n    var(--clip-edges) -1px,\n    0 var(--clip-top),\n    -100vmax var(--clip-top),\n    -100vmax var(--clip-bottom),\n    0 var(--clip-bottom),\n    var(--clip-edges) 100%,\n    var(--clip-further) var(--clip-further)\n  );\n}\n\n.custom-audio-player input[type="range"]::-webkit-slider-runnable-track {\n  background: linear-gradient(var(--track-color) 0 0) scroll no-repeat center /\n\t\t100% calc(var(--track-height) + 1px);\n}\n\n/* === Firefox specific styles === */\n.custom-audio-player input[type="range"],\n.custom-audio-player input[type="range"]::-moz-range-track,\n.custom-audio-player input[type="range"]::-moz-range-thumb {\n  appearance: none;\n  -moz-transition: all ease 100ms;\n  transition: all ease 100ms;\n  height: var(--thumb-height);\n}\n\n.custom-audio-player input[type="range"]::-moz-range-track,\n.custom-audio-player input[type="range"]::-moz-range-thumb,\n.custom-audio-player input[type="range"]::-moz-range-progress {\n  background-color: transparent;\n}\n\n.custom-audio-player input[type="range"]::-moz-range-thumb {\n  background-color: var(--text);\n  height: 1.25rem;\n  width: 0.25rem;\n  border-radius: 0px;\n  border-width: 1px;\n  border-color: var(--text);\n}\n\n.custom-audio-player input[type="range"]::-moz-range-track {\n  width: 100%;\n  background-color: var(--surface-subdued);\n}\n\n.custom-audio-player input[type="range"]::-moz-range-progress {\n  appearance: none;\n  background: currentColor;\n  transition-delay: 30ms;\n}\n\n.custom-audio-player input[type="range"]::-moz-range-track,\n.custom-audio-player input[type="range"]::-moz-range-progress {\n  height: calc(var(--track-height) + 1px);\n}\n',""]);const s=o},1510(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".openQuestionTaskWrapper {\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  gap: 1rem;\n}\n\n.openQuestionInputWrapper {\n  width: 100%;\n  flex: 6;\n}\n\n.feedbackWrapper {\n  width: 100%;\n  display: flex;\n  flex-direction: column;\n  flex: 4;\n}\n\n.feedbackLanguageSelect {\n  display: flex;\n  gap: 0.5rem;\n  margin-bottom: 1rem;\n}\n\n.feedbackMarkdown {\n  display: flex;\n  flex-direction: column;\n  gap: 0.75rem;\n}\n\n.feedbackMarkdown li > p {\n  display: inline;\n}\n\n.feedbackMarkdown p {\n  white-space: pre-wrap;\n}\n\n.feedbackMarkdown hr {\n  border-top-width: 2px;\n  border-style: dotted;\n  border-color: var(--border-color);\n}\n\n.feedbackMarkdown__paragraph p:not(:first-child) {\n  padding-top: 0.5rem;\n  border-top-width: 2px;\n  border-style: dotted;\n  border-color: var(--border-color);\n}\n\n.feedbackMarkdown__paragraph hr + p {\n  padding-top: 0px !important;\n  border-width: 0px !important;\n}\n\n.feedbackMarkdown ol {\n  list-style: decimal inside;\n}\n\n.feedbackMarkdown ul {\n  list-style: inside;\n}\n\n.feedbackMarkdown ol li .feedbackMarkdown p {\n  display: inline;\n}\n\n.feedbackTabs {\n  width: 100%;\n  position: relative;\n  white-space: nowrap;\n  font-weight: 700;\n  display: inline-flex;\n  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n}\n\n.feedbackTabs:hover {\n  border-color: var(--border-focus-color);\n  background-color: var(--surface-subdued);\n}\n\n.feedbackTabs:focus {\n  outline: 2px solid transparent;\n  outline-offset: 2px;\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);\n  --tw-ring-color: var(--focus-outline);\n}\n\n.feedbackTabs {\n  margin-bottom: 0.625rem;\n}\n\n.active-tab {\n  color: var(--text-link);\n  border-bottom-width: 1px;\n  border-color: var(--border-accent-color);\n}\n\n.feedbackDisplay {\n  overflow-x: hidden;\n  overflow-wrap: break-word;\n}\n\n.feedbackTabs .tabs-without-links {\n  width: 100%;\n}\n\n.open-question-textarea {\n  padding: 0px;\n  padding-left: 1rem;\n  padding-right: 1rem;\n}\n\n.open-question-textarea:hover {\n  background-color: transparent;\n}\n\n.open-question-textarea {\n  line-height: 2rem;\n}\n\n.open-question-textarea--example-solution {\n  line-height: 2rem;\n  margin-top: 0.25rem;\n}\n",""]);const s=o},51157(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".text-gap-entries {\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.text-gap-entry {\n\n    line-height: 2.5rem;\n\n    display: flex;\n\n    width: 100%;\n\n    flex-wrap: wrap;\n\n    row-gap: 0.125rem;\n\n    column-gap: 0.25rem\n}\n\n.text-gap-entry__text {\n\n    width: 100%;\n\n    max-width: -webkit-max-content;\n\n    max-width: max-content;\n\n    overflow-wrap: break-word\n}\n",""]);const s=o},17607(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".text-select-lesson {\n\n    width: 100%\n}\n\n.text-value__text {\n\n    display: flex;\n\n    align-items: baseline;\n\n    justify-content: space-between;\n\n    gap: 0.25rem;\n\n    width: 100%;\n\n    padding-bottom: 0.5rem\n}\n\n.text-value {\n\n    padding-bottom: 1.25rem\n}\n\n.word-popover__content {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: flex-end\n}\n\n@media (min-width: 640px) {\n\n    .word-popover__content {\n\n        align-items: center\n    }\n}\n\n.word-popover__content {\n\n    gap: 0.5rem;\n\n    margin-left: 1rem;\n\n    margin-right: 1rem;\n\n    max-width: 100vw\n}\n\n.word-popover__word {\n\n    background-color: var(--surface);\n\n    padding: 0.5rem;\n\n    display: flex;\n\n    flex-direction: row;\n\n    overflow-x: auto;\n\n    max-width: 100vw\n}\n\n.word-popover__letter {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-strong);\n\n    padding: 0.75rem\n}\n\n.text-select--selected {\n\n    background-color: var(--focus-outline) !important\n}\n\n.text-select--example-solution {\n\n    opacity: 1 !important;\n\n    background-color: var(--border-color) !important\n}\n\n.highlighted-text-container {\n\n    width: 100%\n}\n\n.highlighted-text {\n\n    font-size: 1.5rem;\n\n    line-height: 2rem;\n\n    font-weight: 700;\n\n    color: var(--interactive)\n}\n\n.highlighted-text--correct {\n\n    color: var(--text-success)\n}\n\n.highlighted-text--wrong {\n\n    color: var(--text-critical)\n}\n\n.highlighted-text--solution {\n\n    color: var(--text-subdued);\n\n    cursor: default\n}\n\n.clickable-word:hover {\n\n    cursor: pointer\n}\n\n.clickable-word {\n\n    display: inline-flex;\n\n    flex-wrap: wrap;\n\n    align-items: baseline\n}\n\n.phrase-group {\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--interactive);\n\n    padding: 0.25rem\n}\n\n.phrase-group--solution {\n\n    border-color: var(--text-subdued)\n}\n",""]);const s=o},63378(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".eksdi-navigation__info { display: flex; flex-direction: column; font-size: 0.875rem; line-height: 1.25rem;\n}\n\n.eksdi-navigation__info-top { display: flex; flex-direction: row; justify-content: space-between;\n}\n\n.eksdi-navigation__info-progress { width: 100%; display: flex; flex-direction: row; align-items: center; gap: 0.5rem;\n}\n\n.eksdi-navigation__info-progress progress[value] { background-color: var(--surface); --tw-shadow: 0 0 #0000; --tw-shadow-colored: 0 0 #0000; box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-sha
2dow);\n}\n\n.eksdi-navigation__info-progress progress[value]::-webkit-progress-bar { /* Chrome, Safari, Opera */ background-color: var(--surface);\n}\n\n.eksdi-navigation__info-progress progress[value]::-moz-progress-bar { /* Firefox */ background-color: var(--attraction);\n}\n\n.eksdi-navigation__overview-link { color: var(--text-link); -webkit-text-decoration-line: underline; text-decoration-line: underline; text-underline-offset: 4px;\n}\n",""]);const s=o},30457(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.eksdi-overview {\n\n    padding-left: 2rem;\n\n    padding-right: 2rem;\n\n    padding-top: 1.5rem;\n\n    padding-bottom: 1.5rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 2rem\n}\n\n.continue-lesson {\n\n    width: 100%;\n\n    gap: 1rem;\n\n    border-radius: 0.375rem;\n\n    background-color: var(--surface-information);\n\n    padding: 1.5rem\n}\n\n.continue-lesson__info {\n\n    overflow-wrap: break-word;\n\n    font-weight: 700;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-link)\n}\n\n.continue-lesson__title, .learn-progress__title {\n\n    font-weight: 700;\n\n    color: var(--text-strong);\n\n    font-size: 1.5rem;\n\n    line-height: 1.75rem;\n\n    line-height: 1.375;\n\n    padding-bottom: 1rem\n}\n\n.continue-lesson__button {\n\n    margin-top: 1.5rem;\n\n    display: flex;\n\n    justify-content: flex-end\n}\n\n.learn-progress {\n\n    border-radius: 0.375rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding: 1.5rem;\n\n    width: 100%\n}\n\n.learn-progress__content {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem;\n\n    width: 100%\n}\n\n.learn-progress__content-elements {\n\n    display: flex;\n\n    flex-direction: column;\n\n    flex-wrap: wrap;\n\n    justify-content: space-between;\n\n    gap: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .learn-progress__content-elements {\n\n        justify-content: flex-start\n    }\n}\n\n.learn-progress-element {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.5rem\n}\n\n.learn-progress-element__icon {\n\n    height: 2.25rem;\n\n    width: 2.25rem;\n\n    font-weight: 700\n}\n\n.learn-progress-element__icon-circle {\n\n    padding: 0.25rem;\n\n    border-radius: 9999px;\n\n    border-width: 2px\n}\n\n.learn-progress-element__progress {\n\n    font-weight: 700\n}\n\n.chapter-progress {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.chapter-progress__tabs {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    margin-bottom: 1rem;\n\n    width: 100%\n}\n\n.chapter-progress__box {\n\n    border-radius: 0.375rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding: 0.5rem\n}\n\n@media (min-width: 768px) {\n\n    .chapter-progress__box {\n\n        padding: 2rem\n    }\n}\n\n.chapter-element {\n\n    background-color: var(--surface);\n\n    padding: 0.75rem;\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    gap: 0.25rem;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    cursor: pointer\n}\n\n.chapter-element > .icon {\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    margin: 0px\n}\n\n.chapter-info {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    gap: 0.75rem\n}\n\n.chapter-info__text {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.25rem\n}\n\n.chapter-info__title-with-badge {\n\n    display: flex;\n\n    flex-direction: row;\n\n    flex-wrap: wrap;\n\n    column-gap: 1rem\n}\n\n.chapter-info__badges {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.25rem\n}\n\n.chapter-info__badges-badge {\n\n    display: flex;\n\n    align-items: center\n}\n\n.chapter-info__title {\n\n    font-weight: 700;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-link)\n}\n\n.chapter-info__accordion-icon {\n\n    transition-property: transform;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 300ms\n}\n\n.group[data-state="open"] .chapter-info__accordion-icon {\n\n    --tw-rotate: 180deg;\n\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.chapter-info__title--didactic-unit {\n\n    font-size: 1rem;\n\n    line-height: 1.5rem\n}\n\n.chapter-info__description {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    font-weight: 400;\n\n    color: var(--text-subdued)\n}\n\n.module-element {\n\n    padding: 0.75rem !important;\n\n    padding-left: 30px !important\n}\n\n@media (min-width: 640px) {\n\n    .module-element {\n\n        padding-left: 68px !important\n    }\n}\n\n.module-element {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.task_group-element {\n\n    padding: 0.75rem !important;\n\n    padding-left: 38px !important\n}\n\n@media (min-width: 640px) {\n\n    .task_group-element {\n\n        padding-left: 6rem !important\n    }\n}\n\n.task_group-element {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.didactic_unit-element {\n\n    padding: 0.75rem !important;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.topic-element {\n\n    background-color: var(--surface);\n\n    padding: 0.75rem;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.module-element--small {\n\n    padding: 0.75rem !important;\n\n    padding-left: 30px !important\n}\n\n.task_group-element--small {\n\n    padding: 0.75rem !important;\n\n    padding-left: 38px !important\n}\n\n.topic-element--insertion {\n\n    padding-left: 56px !important\n}\n\n@media (min-width: 640px) {\n\n    .topic-element--insertion {\n\n        padding-left: 8rem !important\n    }\n}\n\n.topic-element--insertion-small {\n\n    padding-left: 46px !important\n}\n\n.topic-element--didactic-insertion {\n\n    padding-left: 62px !important\n}\n\n@media (min-width: 640px) {\n\n    .topic-element--didactic-insertion {\n\n        padding-left: 9rem !important\n    }\n}\n\n.topic-element--didactic-insertion-small {\n\n    padding-left: 52px !important\n}\n\n.topic-element--active {\n\n    background-color: var(--surface-information) !important\n}\n\n.topic-info {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 0.75rem\n}\n\n.topic-info__circle {\n\n    border-radius: 9999px;\n\n    border-width: 2px;\n\n    margin: 0px;\n\n    height: 1.5rem !important;\n\n    width: 1.5rem !important;\n\n    padding: 0.125rem\n}
2\n\n.topic-info__circle--empty {\n\n    border-color: var(--surface-subdued)\n}\n\n.topic-info__circle--done {\n\n    border-color: var(--attraction)\n}\n\n.topic-info__title {\n\n    font-weight: 700;\n\n    color: var(--text-link)\n}\n\n\n',""]);const s=o},21907(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".progress-circle {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    height: 2rem;\n\n    width: 2rem;\n\n    border-radius: 9999px;\n\n    font-size: 0.75rem;\n\n    line-height: 1rem;\n\n    aspect-ratio: 1 / 1\n}\n\n.progress-circle__white-circle {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: center;\n\n    height: 1.5rem;\n\n    width: 1.5rem;\n\n    background-color: var(--surface);\n\n    border-radius: 9999px;\n\n    border-width: 1px;\n\n    border-color: var(--surface);\n\n    aspect-ratio: 1 / 1\n}\n\n.progress-circle__inner {\n\n    height: 1rem;\n\n    width: 1rem;\n\n    aspect-ratio: 1 / 1\n}\n\n.progress-circle__white-circle--inner {\n\n    height: 0.5rem;\n\n    width: 0.5rem;\n\n    aspect-ratio: 1 / 1\n}\n\n/* larger double circle */\n.progress-circle--lg {\n\n    height: 2.5rem;\n\n    width: 2.5rem\n}\n\n.progress-circle__white-circle--lg {\n\n    height: 2rem;\n\n    width: 2rem\n}\n\n.progress-circle__inner--lg {\n\n    height: 1.5rem;\n\n    width: 1.5rem\n}\n\n.progress-circle__white-circle--inner--lg {\n\n    height: 1rem;\n\n    width: 1rem\n}\n",""]);const s=o},39082(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".star-rating {\n\n    display: flex;\n\n    flex-direction: row\n}\n\n.star {\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between\n}\n\n.star-icon {\n\n    color: var(--attraction)\n}\n",""]);const s=o},10072(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".license-admin {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n.license-admin__table {\n\n    display: flex;\n\n    flex-direction: row;\n\n    flex-wrap: nowrap;\n\n    gap: 1rem\n}\n\n.license-admin__table__column {\n\n    flex: 1 1 0%\n}\n\n.license-admin__form {\n\n    max-width: 48rem;\n\n    flex-wrap: wrap\n}\n\n@media (min-width: 640px) {\n\n    .license-admin__form {\n\n        flex-wrap: nowrap\n    }\n}\n\n.license-admin__form {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.5rem;\n\n    align-items: flex-end\n}\n\n.license-admin__buttons {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 2rem;\n\n    width: 100%\n}\n\n@media (min-width: 640px) {\n\n    .license-admin__buttons {\n\n        width: auto\n    }\n}\n\n.license-admin__buttons {\n\n    justify-content: space-between\n}\n\n@media (min-width: 640px) {\n\n    .license-admin__buttons {\n\n        justify-content: flex-start\n    }\n}\n\n.license-entitlement__json {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: baseline\n}\n",""]);const s=o},33119(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'.license-card {background-color: var(--surface-warning);padding-left: 1rem;padding-right: 1rem;padding-top: 0.75rem;padding-bottom: 0.75rem\n}@media (min-width: 1024px) {.license-card {padding-left: 1.5rem;padding-right: 1.5rem\n    }\n}.license-card {border-radius: 0.5rem\n}\n\n.license-card__title {margin-bottom: 0.75rem;padding-top: 0.5rem;padding-bottom: 0.5rem;font-size: 1.5rem;line-height: 1.75rem;font-weight: 700;color: var(--text)\n}\n\n.license-card__title--accordion {font-size: 20px !important;line-height: 24px !important;font-weight: 700;color: var(--text);display: flex;flex-direction: row;gap: 0.75rem\n}\n\n.license-card__text {font-size: 1.25rem;line-height: 1.75rem;color: var(--text-strong);margin-bottom: 0.75rem\n}\n\n.license-card__text--accordion {margin-top: 1rem;margin-bottom: 1rem\n}\n\n.license-accordion__teaser {padding-left: 0px;padding-right: 0px\n}\n\n.license-accordion__teaser .license-card__text {font-size: 0.875rem !important;line-height: 1.25rem !important\n}\n\n.license-input {display: flex;flex-direction: column;align-items: flex-end;
2gap: 0.75rem\n}\n\n@media (min-width: 640px) {.license-input {flex-direction: row;align-items: flex-start\n    }\n}\n\n.license-input__input {display: flex;width: 100%;justify-content: space-between\n}\n\n.license-input__input a {color: var(--text-link)\n}\n\n.license-card__accordion-item {transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms\n}\n\n.license-card__trigger {display: flex;text-align: left;width: 100%\n}\n\n.license-card__trigger:hover {cursor: pointer\n}\n\n.license-card__trigger > .icon {margin: 0px;height: 1.5rem;width: 1.5rem;padding: 0px\n}\n\n.license-card__chevron {height: 1.5rem;width: 1.5rem;margin: 0px\n}\n\n[data-state="open"] .license-card__chevron {--tw-rotate: 180deg;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transition-property: transform;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 300ms\n}\n\n.license-card__trigger-header {display: flex;justify-content: space-between;width: 100%\n}\n\n.license-modal__button-group {margin-top: 2rem;display: flex;justify-content: flex-end;gap: 0.5rem\n}\n\n.license-modal__card-container {max-height: 60vh;overflow: auto\n}\n\n@media (min-width: 768px) {.license-modal__card-container {max-height: 70vh\n    }\n}\n\n.license-modal__mainText {margin-bottom: 1rem;font-size: 20px;line-height: 24px;color: var(--text)\n}\n\n@media (min-width: 768px) {.license-modal__mainText {margin-bottom: 1.5rem;font-size: 1.5rem;line-height: 1.75rem\n    }\n}\n\n.license-sub-content-item {display: flex;align-items: center;gap: 1rem;flex: 1 1 0%;padding: 1rem;margin-left: -1rem\n}\n\n@media (min-width: 640px) {.license-sub-content-item {margin-left: 0px;margin-right: 0px\n    }\n}\n\n.license-sub-content-item {border-bottom-width: 1px;border-color: var(--border-color);--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-sha
2dow, 0 0 #0000);--tw-ring-inset: inset;--tw-ring-color: transparent;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 200ms\n}\n\n.license-sub-content-item:hover {background-color: var(--surface-subdued)\n}\n\n.license-sub-content-item__title {color: var(--text-link);font-size: 1.25rem;line-height: 1.75rem;font-weight: 700;overflow-wrap: break-word\n}\n\n.license-sub-content-item__isbn {font-size: 0.75rem;line-height: 1rem;color: var(--text-subdued)\n}\n\n@media (min-width: 640px) {.license-sub-content-item__isbn {font-size: 0.875rem;line-height: 1.25rem\n    }\n}\n\n.license-sub-content-item__icon-wrapper {display: flex;min-width: -webkit-fit-content;min-width: fit-content;align-items: flex-start;justify-content: center;background-color: var(--surface-subdued)\n}\n\n.license-sub-content-item__icon-wrapper > .icon,\n.license-sub-content-item__icon-wrapper > figure {height: 1.75rem;width: 1.75rem;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms\n}\n\n.group:hover .license-sub-content-item__icon-wrapper > .icon,.group:hover \n.license-sub-content-item__icon-wrapper > figure {--tw-scale-x: 1.25;--tw-scale-y: 1.25;transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.license-sub-content-item__icon-wrapper > figure {height: auto\n}\n',""]);const s=o},12105(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".upCommercial_content_demo__link {\n\n    color: var(--interactive);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline\n}\n\n.upCommercial_content_category {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.625rem\n}\n\n.upCommercial_content_category .icon__src {\n\n    width: auto\n}\n",""]);const s=o},70731(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".max-product {display: flex;flex-direction: column;gap: 2rem\n}@media (min-width: 1024px) {.max-product {flex-direction: row\n    }\n}.max-product {padding-top: 2rem;padding-bottom: 2rem\n}\n\n@media (min-width: 1024px) {.max-product__header {max-width: 400px\n    }\n}\n\n.max-product__header .pageTitle-with-cover .heading-1 {padding: 0px\n}\n",""]);const s=o},50514(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".max-product-editions {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 2rem;\n\n    width: 100%\n}\n\n.max-product-editions--augmented {\n\n    background-color: var(--surface-subdued)\n}\n\n.max-product-editions--plus {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem;\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding: 1rem\n}\n\n.max-product-edition__box {\n\n    border-radius: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color);\n\n    padding: 1rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between;\n\n    gap: 0.75rem\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__box {\
2n\n        gap: 0.5rem;\n\n        gap: 0px\n    }\n}\n\n.max-product-edition__box--digital {\n\n    border-width: 0px;\n\n    padding: 0px\n}\n\n.max-product-edition__main {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__main {\n\n        flex-direction: row;\n\n        gap: 1rem\n    }\n}\n\n.max-product-edition__content {\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between;\n\n    gap: 0.75rem\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__content {\n\n        gap: 1rem\n    }\n}\n\n.max-product-edition__info {\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.max-product-edition__info--header {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: space-between\n}\n\n.max-product-edition__buy-now-link--license-check {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--interactive);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__buy-now-link--license-check {\n\n        white-space: nowrap\n    }\n}\n\n.max-product-edition__buy-now-link {\n\n    font-weight: 700;\n\n    color: var(--interactive)\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__buy-now-link {\n\n        white-space: nowrap\n    }\n}\n\n.max-product-edition__buy-now-link {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center\n}\n\n.max-product-edition__buy-edition-link {\n\n    display: flex;\n\n    flex-direction: row;\n\n    gap: 0.5rem;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    margin-top: 0.75rem\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__buy-edition-link {\n\n        margin-top: 0px\n    }\n}\n\n.max-product-edition__demo-link {\n\n    white-space: normal;\n\n    text-align: start;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    padding-left: 0px;\n\n    padding-right: 0px;\n\n    padding-top: 0px;\n\n    padding-bottom: 0px\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__demo-link {\n\n        padding-top: 0.5rem;\n\n        padding-bottom: 0.5rem\n    }\n}\n\n.max-product-edition__demo-link {\n\n    width: -webkit-fit-content;\n\n    width: fit-content\n}\n\n.max-product-edition__demo-link:hover {\n\n    background-color: transparent !important\n}\n\n.max-product-edition__demo-link {\n\n    color: var(--text-link) !important\n}\n\n.max-product-edition__show-more {\n\n    color: var(--text-link)\n}\n\n.max-product-edition__show-more:hover {\n\n    cursor: pointer\n}\n\n@media (min-width: 768px) {\n\n    .max-product-edition__show-more {\n\n        font-size: 0.875rem;\n\n        line-height: 1.25rem\n    }\n}\n\n.max-product-edition__show-more {\n\n    width: -webkit-fit-content;\n\n    width: fit-content\n}\n\n.max-product-edition__title {\n\n    font-size: 20px;\n\n    line-height: 24px;\n\n    font-weight: 700\n}\n\n@media (min-width: 640px) {\n\n    .max-product-edition__title {\n\n        font-size: 1.5rem;\n\n        line-height: 1.75rem\n    }\n}\n\n.max-product-edition__header {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.max-prod-edition__buttons {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n@media (min-width: 768px) {\n\n    .max-prod-edition__buttons {\n\n        width: -webkit-fit-content;\n\n        width: fit-content\n    }\n\n    .max-prod-edition__buttons-row {\n\n        flex-direction: row;\n\n        flex-wrap: wrap\n    }\n}\n\n",""]);const s=o},28296(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,'\n.offline-manager {\n    position: relative;\n    margin-left: auto;\n    margin-right: auto;\n    display: flex;\n    justify-content: flex-end;\n    position: fixed;\n    right: 0px;\n    bottom: 4rem\n}\n@media (min-width: 768px) {\n    .offline-manager {\n        bottom: 1rem\n    }\n}\n\n.offline-manager--hidden {\n    display: none\n}\n\n@media (min-width: 768px) {\n    .offline-manager--drawer-open {\n        padding-right: 24rem\n    }\n}\n\n.offline-manager__wrapper {\n    width: 100%\n}\n\n@media (min-width: 768px) {\n    .offline-manager__wrapper {\n        width: 24rem\n    }\n}\n\n.offline-manager__wrapper {\n    margin-left: 1rem;\n    margin-right: 1rem;\n    background-color: var(--surface-subdued);\n    border-radius: 0.25rem;\n    --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
2\n    --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\n.offline-manager__button {\n    display: flex;\n    align-items: center;\n    gap: 1rem;\n    width: 100%;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    padding-top: 1rem;\n    padding-bottom: 1rem;\n    text-align: left;\n    border-bottom-width: 1px;\n    border-color: var(--border-color);\n    background-color: var(--surface-subdued)\n}\n\n.offline-manager__button:focus {\n    outline: 2px solid transparent;\n    outline-offset: 2px;\n    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);\n    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);\n    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);\n    --tw-ring-color: var(--focus-outline)\n}\n\n.offline-manager__button[data-state=open] {\n    background-color: var(--surface)\n}\n\n.offline-manager__button-copy-wrapper {\n    display: flex;\n    flex: 1 1 0%;\n    align-items: center;\n    justify-content: space-between\n}\n\n.offline-manager__button-copy {\n    font-size: 1.25rem;\n    line-height: 1.75rem;\n    font-weight: 700;\n    color: var(--text)\n}\n\n.offline-manager__warning {\n    height: 1.5rem;\n    width: 1.5rem;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    color: var(--text-warning)\n}\n\n.offline-manager__button .icon {\n    height: 1.5rem;\n    width: 1.5rem\n}\n\n[data-state="open"] .offline-manager__button-icon .icon {\n    --tw-rotate: 180deg;\n    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n\n.offline-manager__content {\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    color: var(--text-subdued);\n    max-height: 50vh;\n    overflow-y: auto\n}\n\n.offline-manager__abort-button {\n    padding: 1rem\n}\n\n.offline-asset {\n    display: flex;\n    align-items: flex-start;\n    gap: 1rem;\n    padding-top: 0.5rem;\n    padding-bottom: 0.5rem;\n    padding-left: 1rem;\n    padding-right: 1rem;\n    background-color: var(--surface);\n    border-bottom-width: 1px;\n    border-color: var(--border-color)\n}\n\n.offline-asset:last-child {\n    border-width: 0px\n}\n\n.offline-asset--hidden {\n    display: none\n}\n\n.offline-asset__icon-wrapper {\n    margin-right: 0.5rem;\n    display: flex;\n    height: 3.5rem;\n    width: 3.5rem;\n    align-items: center;\n    justify-content: center;\n    border-radius: 9999px;\n    background-color: var(--surface-subdued)\n}\n\n.offline-asset__icon-wrapper--cached {\n    background-color: var(--surface-information)\n}\n\n.offline-asset__icon-wrapper--failure {\n    background-color: var(--surface-warning)\n}\n\n.offline-asset__icon {\n    color: var(--text);\n    height: 1.25rem;\n    width: 1.25rem\n}\n\n.offline-asset__content {\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n    flex: 1 1 0%\n}\n\n.offline-asset__title-wrapper {\n    display: flex;\n    flex-direction: column;\n    align-items: flex-start\n}\n\n.offline-asset__title {\n    font-size: 1rem;\n    line-height: 1.5rem;\n    color: var(--text-strong)\n}\n\n.offline-asset__progress-wrapper {\n    margin-top: 0.5rem;\n    margin-bottom: 0.5rem;\n    display: flex;\n    align-items: center;\n    gap: 0.5rem\n}\n\n.offline-asset__progress-wrapper:empty {\n    display: none\n}\n\n.offline-asset__progress {\n    flex: 1 1 0%\n}\n\n.offline-asset__cache-state {\n    flex: 1 1 0%;\n    color: var(--text-subdued)\n}\n\n.offline-asset__actions {\n    display: flex;\n    gap: 0.25rem\n}\n\nprogress[value] {\n    -webkit-appearance: none;\n            appearance: none;\n    border-width: 0px;\n    height: 0.5rem;\n    width: 100%;\n    background-color: var(--surface-subdued);\n    border-radius: 9999px;\n    --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);
2\n    --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n    position: relative;\n    margin: 0px\n}\n\nprogress[value]::-webkit-progress-bar {\n    background-color: var(--surface-subdued);\n    border-radius: 9999px;\n    --tw-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);\n    --tw-shadow-colored: inset 0 2px 4px 0 var(--tw-shadow-color);\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n\nprogress[value]::-webkit-progress-value {\n    position: relative;\n    height: 0.5rem;\n    border-radius: 9999px\n}\n',""]);const s=o},61790(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".offline-download {display: flex;justify-items: end;transition-property: all;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 300ms\n}.offline-download:hover {fill: var(--primary);color: var(--text-link)\n}\n\n.offline-download .spinner {padding-top: 0.75rem;padding-bottom: 0.75rem;padding-left: 1.5rem;padding-right: 1.5rem\n}\n\n.offline-download .offline-remove {display: flex;align-items: center\n}\n\n.offline-download .offline-remove .icon {height: 1.25rem;width: 1.25rem\n}\n\n.offline-content-item {position: relative;display: flex;align-items: center;justify-content: center;margin-bottom: 0.5rem;padding-left: 0.75rem;border-width: 2px;border-color: transparent;cursor: pointer\n}\n\n.offline-content-item > .resource-item {pointer-events: none;margin-bottom: 0px\n}\n\n",""]);const s=o},93412(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,"#dau-zoom {\n\n    flex-direction: row\n}\n\n#pdf-zoom {\n\n    --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
2\n\n    --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n\n    position: fixed;\n\n    z-index: 10\n}\n\n.pdf-zoom__select {\n\n    gap: 0px;\n\n    border-width: 0px;\n\n    font-weight: 400\n}\n\n\n.pdf-zoom__select--dau {\n\n    display: flex;\n\n    flex-direction: row;\n\n    align-items: center;\n\n    white-space: nowrap;\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem\n}\n",""]);const s=o},35584(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".custom-playlist-entry__media-item {display: flex;flex-grow: 1;align-items: center;justify-content: space-between;padding-top: 1rem;padding-bottom: 1rem;padding-left: 1rem;padding-right: 0.5rem;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 200ms;border-width: 2px;border-color: transparent\n}.custom-playlist-entry__media-item:hover {border-color: var(--border-focus-color)\n}\n\n.custom-playlist-entry__icon-wrapper {flex-grow: 1;display: flex;align-items: center;justify-content: space-between;padding-top: 1rem;padding-bottom: 1rem;padding-left: 1rem;padding-right: 0.5rem;transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 200ms;border-width: 2px;border-color: var(--border-color)\n}\n\n.custom-playlist-entry__icon-wrapper:hover {border-color: var(--border-focus-color)\n}\n\n@media (min-width: 768px) {.custom-playlist-entry__text-content {margin-left: 4.5rem\n    }\n}\n\n.playlist-entry {position: relative;display: flex;align-items: center;background-color: var(--surface)\n}\n\n.playlist-entry > *:first-child {flex-grow: 1\n}\n\n.playlist-entry .resource-item {width: 100%;flex-grow: 1;padding-right: 3.75rem\n}\n\n.playlist-entry-edit {padding: 1rem;margin-bottom: 2rem;width: 100%;border-width: 1px;border-color: var(--border-color);background-color: var(--surface-subdued)\n}\n\n.playlist-entry-edit__form {display: flex;flex-direction: column;gap: 1rem\n}\n\n.playlist-entry-edit__form-inputs {display: flex;flex-direction: column;gap: 1rem\n}\n\n.playlist-entry-edit__form-buttons {display: flex;align-items: center;justify-content: flex-end;gap: 1rem\n}\n\n/* Drag and Drop */\n\n.reorder-buttons {display: flex;flex-direction: column;position: absolute;right: 1rem\n}\n\n.reorder-buttons__button--disabled {opacity: 0.5\n}\n\n.reorder-buttons button {background-color: var(--surface);padding-left: 0.5rem;padding-right: 0.5rem;padding-top: 2.25px;padding-bottom: 2.25px;transition-property: all;transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);transition-duration: 150ms\n}\n\n.reorder-buttons button:hover {background-color: var(--surface-subdued)\n}\n\n.reorder-buttons button {border-top-left-radius: 0.25rem;border-top-right-radius: 0.25rem;border-width: 1px;border-color: var(--border-color)\n}\n\n.reorder-buttons button:first-of-type {margin-bottom: -1px\n}\n\n.reorder-buttons svg {height: 1.25rem;width: 1.25rem\n}\n",""]);const s=o},10027(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".sortable-list {\n\n    display: flex;\n\n    list-style-type: none;\n\n    flex-direction: column;\n\n    padding: 0px\n}\n\n.sortable-list .playlist-entry {\n\n    width: 100%\n}\n\n.sortable-item {\n\n    list-style-type: none\n}\n\n.sortable-list__overlay {\n\n    --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);\n\n    --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);\n\n    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)\n}\n",""]);const s=o},30384(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".playlist-page__title-wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: flex-start;\n\n    justify-content: space-between\n}\n\n@media (min-width: 768px) {\n\n    .playlist-page__title-wrapper {\n\n        flex-direction: row;\n\n        align-items: flex-end\n    }\n}\n\n.playlist-page__content {\n\n    margin-top: 2rem;\n\n    width: 100%;\n\n    display: flex;\n\n    flex-direction: column\n}\n\n.playlist-page__content > li {\n\n    margin-left: -1rem;\n\n    margin-right: -1rem\n}\n\n\n.playlist-accordion__header {\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    padding-top: 0.25rem;\n\n    padding-bottom: 0.25rem;\n\n    padding-left: 1rem;\n\n    padding-right: 1rem;\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.playlist-header {\n\n    display: flex;\n\n    flex: 1 1 0%;\n\n    align-items: center;\n\n    justify-content: space-between;\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem\n}\n\n@media (min-width: 768px) {\n\n    .playlist-header {\n\n        padding-top: 1rem;\n\n        padding-bottom: 1rem\n    }\n}\n\n.playlist-header__title-wrapper {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    gap: 0.5rem\n}\n\n.playlist-header__title-wrapper a {\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms;\n\n    text-decoration-thickness: 1px;\n\n    text-underline-offset: 8px\n}\n\n.playlist-header__title-wrapper a:hover {\n\n    color: var(--text-link);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline\n}\n\n.playlist-header__block {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: flex-start;\n\n    gap: 1rem\n}\n\n.playlist-header__title {\n\n    display: flex;\n\n    align-items: center;\n\n    font-size: 20px;\n\n    line-height: 24px;\n\n    font-weight: 700\n}\n\n@media (min-width: 768px) {\n\n    .playlist-header__title {\n\n        font-size: 1.5rem;\n\n        line-height: 1.75rem\n    }\n}\n\n.playlist-header__title {\n\n    padding-top: 0.25rem\n}\n\n.playlist-header__meta {\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.playlist-header__author {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    font-weight: 400;\n\n    color: var(--text-subdued)\n}\n\n.playlist-share__link {\n\n    display: flex\n}\n\n.playlist-share__warning {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-warning);\n\n    margin-bottom: 2rem\n}\n\n.playlist-share__share-wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.playlist-share__buttons {\n\n    display: flex;\n\n    flex-direction: row-reverse;\n\n    gap: 0.5rem;\n\n    margin-top: 1rem\n}\n\n.playlist-share__buttons .button--primary {\n\n    flex: 1 1 0%\n}\n\n.playlist-share__link {\n\n    overflow: hidden;\n\n    text-overflow: ellipsis;\n\n    color: var(--text)\n}\n\n.playlist-share__link-input {\n\n    display: none\n}\n\n.playlist-details__title-edit {\n\n    display: flex;\n\n    align-items: center;\n\n    padding-bottom: 1.5rem;\n\n    padding-top: 3.5rem\n}\n\n@media (min-width: 768px) {\n\n    .playlist-details__title-edit {\n\n        padding-bottom: 2rem\n    }\n}\n\n.playlist-details__title-wrapper {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: space-between\n}\n\n.playlist-details__author {\n\n    margin-bottom: 0.5rem;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-strong)\n}\n\n.playlist-details__list-actions {\n\n    padding-top: 1.25rem;\n\n    padding-bottom: 1.25rem\n}\n\n.playlist-details__creation {\n\n    margin-bottom: 2rem;\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-strong)\n}\n\n.create-playlist-input {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n@media (min-width: 768px) {\n\n    .create-playlist-input {\n\n        flex-direction: row;\n\n        align-items: flex-end\n    }\n}\n\n.create-playlist-input {\n\n    flex: 1 1 0%;\n\n    gap: 0.5rem\n}\n\n.create-playlist-input__actions {\n\n    display: flex;\n\n    gap: 0.5rem;\n\n    width: 100%\n}\n\n@media (min-width: 768px) {\n\n    .create-playlist-input__actions {\n\n        width: auto\n    }\n}\n",""]);const s=o},60174(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".privacy {\n\n    max-width: 48rem\n}\n\n.privacy__section {\n\n    margin-bottom: 2rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 0.5rem\n}\n\n.privacy__section ol li {\n\n    padding-left: 0.5rem\n}\n\n.privacy__section ol li p {\n\n    padding-left: 0.5rem\n}\n\n.privacy__link {\n\n    color: var(--text-link);\n\n    -webkit-text-decoration-line: underline;\n\n            text-decoration-line: underline;\n\n    text-underline-offset: 4px\n}\n\n.privacy__table {\n\n    table-layout: fixed;\n\n    overflow: scroll;\n\n    margin-bottom: 1rem\n}\n\n.privacy__table td {\n\n    padding: 0.25rem;\n\n    border-width: 1px;\n\n    border-color: var(--border-color)\n}\n\n.privacy__table--top td {\n\n    vertical-align: top\n}\n\n.privacy__table--top th {\n\n    vertical-align: top\n}\n\n.privacy__list--ordered {\n\n    list-style-position: inside;\n\n    list-style-type: decimal\n}\n",""]);const s=o},77486(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".product__pons {\n\n    padding-top: 0.75rem;\n\n    padding-bottom: 0.75rem\n}\n\n.product__pons-link {\n\n    display: flex;\n\n    align-items: center;\n\n    gap: 0.5rem;\n\n    color: var(--text-link);\n\n    font-weight: 700\n}\n\n.product__pons-link > .icon {\n\n    height: 1.25rem;\n\n    width: 1.25rem;\n\n    margin-left: 0px\n}\n\n.product-navigation__header {\n\n    display: flex;\n\n    align-items: flex-start;\n\n    justify-content: space-between;\n\n    gap: 0.5rem\n}\n\n.product-site-asset {\n\n    border-bottom-width: 1px;\n\n    border-color: var(--border-color);\n\n    transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n\n    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n\n    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n\n    transition-duration: 150ms;\n\n    background-color: var(--surface)\n}\n\n.product-site-asset--active {\n\n    background-color: var(--surface-subdued);\n\n    color: var(--text-link)\n}\n\n.product-site-asset > .icon {\n\n    height: 1.5rem;\n\n    width: 1.5rem\n}\n\n.product-site-asset__assets {\n\n    font-size: 0.875rem;\n\n    line-height: 1.25rem;\n\n    color: var(--text-subdued)\n}\n\n.product-site-asset__copy {\n\n    flex: 1 1 0%;\n\n    padding-left: 0.75rem;\n\n    padding-right: 0.75rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    border-left-width: 2px;\n\n    border-color: transparent\n}\n\n.product-site-asset__copy:hover {\n\n    cursor: pointer\n}\n\n.product-site-asset__title {\n\n    color: var(--text-link);\n\n    font-weight: 700\n}",""]);const s=o},57662(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".shaka-small-play-button {\n    margin-right: auto;\n    margin-left: 0px\n}",""]);const s=o},52993(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());o.push([e.id,".uhb-teaser__text-wrapper {\n\n    display: grid;\n\n    grid-template-columns: repeat(1, minmax(0, 1fr));\n\n    gap: 1.5rem;\n\n    padding-bottom: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .uhb-teaser__text-wrapper {\n\n        grid-template-columns: repeat(2, minmax(0, 1fr))\n    }\n}\n\n.uhb-teaser__text {\n\n    padding-bottom: 0.5rem;\n\n    font-weight: 700\n}\n\n.uhb-teaser__commercial-cat {\n\n    margin-top: 0.25rem;\n\n    margin-bottom: 0.25rem;\n\n    display: flex\n}\n\n.uhb-teaser__button-wrapper {\n\n    margin-top: 1.25rem;\n\n    display: flex;\n\n    gap: 0.5rem\n}\n\n.uhb-teaser__image-wrapper {\n\n    width: 200px\n}\n\n@media (min-width: 640px) {\n\n    .uhb-teaser__image-wrapper {\n\n        width: auto\n    }\n}\n\n.modal-dialog__title {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem\n}\n",""]);const s=o},16454(e,t,n){n.d(t,{A:()=>s});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a)()(r());
2o.push([e.id,".welcome__header-wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    align-items: flex-start\n}\n\n@media (min-width: 768px) {\n\n    .welcome__header-wrapper {\n\n        flex-direction: row\n    }\n}\n\n.welcome__header-wrapper > div {\n\n    flex: 1 1 0%\n}\n\n.welcome__text {\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem\n}\n\n.welcome-actions {\n\n    display: flex;\n\n    align-items: center;\n\n    justify-content: flex-start;\n\n    gap: 1rem;\n\n    margin-top: 2rem;\n\n    margin-bottom: 3rem\n}\n\n.welcome-actions a {\n\n    display: inline-block\n}\n\n.welcome-page__search .search__wrapper {\n\n    margin-bottom: 0px;\n\n    flex-grow: 1\n}\n\n.welcome-page__search {\n\n    flex: 1 1 0%\n}\n\n\n.welcome__search-wrapper {\n\n    background-color: var(--surface-subdued);\n\n    border-radius: 0.5rem;\n\n    padding: 1.5rem;\n\n    padding-top: 1.25rem;\n\n    padding-bottom: 1.25rem;\n\n    display: flex;\n\n    flex-direction: column;\n\n    justify-content: space-between\n}\n\n.welcome__search-wrapper input:placeholder-shown {\n\n    text-overflow: ellipsis\n}\n\n.welcome__search-wrapper input:focus::placeholder {\n\n    font-size: 1rem;\n\n    line-height: 1.5rem\n}\n\n@media (min-width: 640px) {\n\n    .welcome__search-wrapper input:focus::placeholder {\n\n        font-size: 1.25rem;\n\n        line-height: 1.75rem\n    }\n}\n\n.welcome__search-img-wrapper {\n\n    display: flex;\n\n    flex-direction: column\n}\n\n@media (min-width: 768px) {\n\n    .welcome__search-img-wrapper {\n\n        flex-direction: row\n    }\n}\n\n.welcome__search-img-search {\n\n    flex-grow: 1\n}\n\n.welcome__search-img-wrapper .welcome__teaser {\n\n    margin-left: auto;\n\n    margin-top: 4rem;\n\n    margin-right: 2rem;\n\n    max-width: 300px\n}\n\n@media (min-width: 1024px) {\n\n    .welcome__search-img-wrapper .welcome__teaser {\n\n        margin-top: 0px;\n\n        margin-left: 4rem\n    }\n}\n\n.welcome__search-wrapper--title {\n\n    margin-bottom: 0.75rem;\n\n    padding-top: 0.5rem;\n\n    padding-bottom: 0.5rem;\n\n    font-size: 1.5rem;\n\n    line-height: 1.75rem;\n\n    font-weight: 700;\n\n    color: var(--text)\n}\n\n.welcome__search-wrapper--text {\n\n    margin-bottom: 0.75rem;\n\n    font-size: 1.25rem;\n\n    line-height: 1.75rem;\n\n    color: var(--text-strong)\n}\n\n.welcome__teaser {\n\n    margin-left: auto;\n\n    margin-top: 4rem;\n\n    margin-right: 2rem\n}\n\n@media (min-width: 1024px) {\n\n    .welcome__teaser {\n\n        margin-top: 4rem;\n\n        margin-left: 1rem\n    }\n}\n\n.welcome__box-wrapper {\n\n    display: flex;\n\n    flex-direction: column;\n\n    gap: 1rem\n}\n\n@media (min-width: 768px) {\n\n    .welcome__box-wrapper {\n\n        flex-direction: row\n    }\n}\n\n.welcome__box-wrapper > div {\n\n    flex: 1 1 0%\n}\n",""]);const s=o},34772(e,t,n){n.d(t,{A:()=>A});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a),s=n(51761),l=n(75886),c=n.n(l),d=new URL(n(52739),n.b),u=new URL(n(25609),n.b),p=new URL(n(31005),n.b),h=new URL(n(4533),n.b),m=new URL(n(89304),n.b),g=new URL(n(94312),n.b),f=o()(r());f.i(s.A);var v=c()(d),b=c()(u),y=c()(p),x=c()(h),w=c()(m),k=c()(g);f.push([e.id,`/*\n! tailwindcss v3.4.11 | MIT License | https://tailwindcss.com\n*//*\n1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)\n2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)\n*/\n\n*,\n::before,\n::after {\n  box-sizing: border-box; /* 1 */\n  border-width: 0; /* 2 */\n  border-style: solid; /* 2 */\n  border-color: currentColor; /* 2 */\n}\n\n::before,\n::after {\n  --tw-content: '';\n}\n\n/*\n1. Use a consistent sensible line-height in all browsers.\n2. Prevent adjustments of font size after orientation changes in iOS.\n3. Use a more readable tab size.\n4. Use the user's configured \`sans\` font-family by default.\n5. Use the user's configured \`sans\` font-feature-settings by default.\n6. Use the user's configured \`sans\` font-variation-settings by default.\n7. Disable tap highlights on iOS\n*/\n\nhtml,\n:host {\n  line-height: 1.5; /* 1 */\n  -webkit-text-size-adjust: 100%; /* 2 */ /* 3 */\n  tab-size: 4; /* 3 */\n  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */\n  font-feature-settings: normal; /* 5 */\n  font-variation-settings: normal; /* 6 */\n  -webkit-tap-highlight-color: transparent; /* 7 */\n}\n\n/*\n1. Remove the margin in all browsers.\n2. Inherit line-height from \`html\` so users can set them as a class directly on the \`html\` element.\n*/\n\nbody {\n  margin: 0; /* 1 */\n  line-height: inherit; /* 2 */\n}\n\n/*\n1. Add the correct height in Firefox.\n2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)\n3. Ensure horizontal rules are visible by default.\n*/\n\nhr {\n  height: 0; /* 1 */\n  color: inherit; /* 2 */\n  border-top-width: 1px; /* 3 */\n}\n\n/*\nAdd the correct text decoration in Chrome, Edge, and Safari.\n*/\n\nabbr:where([title]) {\n  -webkit-text-decoration: underline dotted;\n          text-decoration: underline dotted;\n}\n\n/*\nRemove the default font size and weight for headings.\n*/\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n  font-size: inherit;\n  font-weight: inherit;\n}\n\n/*\nReset links to optimize for opt-in styling instead of opt-out.\n*/\n\na {\n  color: inherit;\n  text-decoration: inherit;\n}\n\n/*\nAdd the correct font weight in Edge and Safari.\n*/\n\nb,\nstrong {\n  font-weight: bolder;\n}\n\n/*\n1. Use the user's configured \`mono\` font-family by default.\n2. Use the user's configured \`mono\` font-feature-settings by default.\n3. Use the user's configured \`mono\` font-variation-settings by default.\n4. Correct the odd \`em\` font sizing in all browsers.\n*/\n\ncode,\nkbd,\nsamp,\npre {\n  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */\n  font-feature-settings: normal; /* 2 */\n  font-variation-settings: normal; /* 3 */\n  font-size: 1em; /* 4 */\n}\n\n/*\nAdd the correct font size in all browsers.\n*/\n\nsmall {\n  font-size: 80%;\n}\n\n/*\nPrevent \`sub\` and \`sup\` elements from affecting the line height in all browsers.\n*/\n\nsub,\nsup {\n  font-size: 75%;\n  line-height: 0;\n  position: relative;\n  vertical-align: baseline;\n}\n\nsub {\n  bottom: -0.25em;
2\n}\n\nsup {\n  top: -0.5em;\n}\n\n/*\n1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)\n2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)\n3. Remove gaps between table borders by default.\n*/\n\ntable {\n  text-indent: 0; /* 1 */\n  border-color: inherit; /* 2 */\n  border-collapse: collapse; /* 3 */\n}\n\n/*\n1. Change the font styles in all browsers.\n2. Remove the margin in Firefox and Safari.\n3. Remove default padding in all browsers.\n*/\n\nbutton,\ninput,\noptgroup,\nselect,\ntextarea {\n  font-family: inherit; /* 1 */\n  font-feature-settings: inherit; /* 1 */\n  font-variation-settings: inherit; /* 1 */\n  font-size: 100%; /* 1 */\n  font-weight: inherit; /* 1 */\n  line-height: inherit; /* 1 */\n  letter-spacing: inherit; /* 1 */\n  color: inherit; /* 1 */\n  margin: 0; /* 2 */\n  padding: 0; /* 3 */\n}\n\n/*\nRemove the inheritance of text transform in Edge and Firefox.\n*/\n\nbutton,\nselect {\n  text-transform: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Remove default button styles.\n*/\n\nbutton,\ninput:where([type='button']),\ninput:where([type='reset']),\ninput:where([type='submit']) {\n  -webkit-appearance: button; /* 1 */\n  background-color: transparent; /* 2 */\n  background-image: none; /* 2 */\n}\n\n/*\nUse the modern Firefox focus style for all focusable elements.\n*/\n\n:-moz-focusring {\n  outline: auto;\n}\n\n/*\nRemove the additional \`:invalid\` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)\n*/\n\n:-moz-ui-invalid {\n  box-shadow: none;\n}\n\n/*\nAdd the correct vertical alignment in Chrome and Firefox.\n*/\n\nprogress {\n  vertical-align: baseline;\n}\n\n/*\nCorrect the cursor style of increment and decrement buttons in Safari.\n*/\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n  height: auto;\n}\n\n/*\n1. Correct the odd appearance in Chrome and Safari.\n2. Correct the outline style in Safari.\n*/\n\n[type='search'] {\n  -webkit-appearance: textfield; /* 1 */\n  outline-offset: -2px; /* 2 */\n}\n\n/*\nRemove the inner padding in Chrome and Safari on macOS.\n*/\n\n::-webkit-search-decoration {\n  -webkit-appearance: none;\n}\n\n/*\n1. Correct the inability to style clickable types in iOS and Safari.\n2. Change font properties to \`inherit\` in Safari.\n*/\n\n::-webkit-file-upload-button {\n  -webkit-appearance: button; /* 1 */\n  font: inherit; /* 2 */\n}\n\n/*\nAdd the correct display in Chrome and Safari.\n*/\n\nsummary {\n  display: list-item;\n}\n\n/*\nRemoves the default spacing and border for appropriate elements.\n*/\n\nblockquote,\ndl,\ndd,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\nhr,\nfigure,\np,\npre {\n  margin: 0;\n}\n\nfieldset {\n  margin: 0;\n  padding: 0;\n}\n\nlegend {\n  padding: 0;\n}\n\nol,\nul,\nmenu {\n  list-style: none;\n  margin: 0;\n  padding: 0;\n}\n\n/*\nReset default styling for dialogs.\n*/\ndialog {\n  padding: 0;\n}\n\n/*\nPrevent resizing textareas horizontally by default.\n*/\n\ntextarea {\n  resize: vertical;\n}\n\n/*\n1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)\n2. Set the default placeholder color to the user's configured gray 400 color.\n*/\n\ninput::placeholder,\ntextarea::placeholder {\n  opacity: 1; /* 1 */\n  color: #9ca3af; /* 2 */\n}\n\n/*\nSet the default cursor for buttons.\n*/\n\nbutton,\n[role="button"] {\n  cursor: pointer;\n}\n\n/*\nMake sure disabled buttons don't get the pointer cursor.\n*/\n:disabled {\n  cursor: default;\n}\n\n/*\n1. Make replaced elements \`display: block\` by default. (https://github.com/mozdevs/cssremedy/issues/14)\n2. Add \`vertical-align: middle\` to align replaced elements more sensibly by default. (https://github.com/je
2nsimmons/cssremedy/issues/14#issuecomment-634934210)\n   This can trigger a poorly considered lint error in some tools but is included by design.\n*/\n\nimg,\nsvg,\nvideo,\ncanvas,\naudio,\niframe,\nembed,\nobject {\n  display: block; /* 1 */\n  vertical-align: middle; /* 2 */\n}\n\n/*\nConstrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)\n*/\n\nimg,\nvideo {\n  max-width: 100%;\n  height: auto;\n}\n\n/* Make elements with the HTML hidden attribute stay hidden by default */\n[hidden] {\n  display: none;\n}\n  :root {\n    --primary: #006688;\n    --attraction: #ff6600;\n    --branding: #ff0000;\n    /* UI colors */\n    --text: #3c4141;\n    --text-strong: #111212;\n    --text-subdued: #767676;\n    --text-link: #025777;\n    --text-warning: #906a00;\n    --text-critical: #d72c0d;\n    --text-success: #02743D;\n    --surface: #fff;\n    --surface-subdued: #f7f7f7;\n    --surface-warning: #ffe9bc;\n    --surface-critical: #ffeceb;\n    --surface-information: #dceff5;\n    --surface-success: #f2fffA;\n    --border-color: #dedede;\n    --border-focus-color: var(--text-strong);\n    --border-accent-color: var(--text-link);\n    --focus-outline: #c7e3ff;\n    --interactive: var(--primary);\n    --interactive-hovered: #025777;\n    --backdrop: rgba(0,0,0,0.5);\n    --progress: #FF6600;\n    --marker-yellow: rgba(251,243,10,0.5);\n    --marker-orange: rgba(251,161,10,0.5);\n    --marker-green: rgba(10,251,58,0.5);\n    --draw-black: #000000;\n    --draw-blue: #2040f3;\n    --draw-red: #E91E63;\n    --orange: #EC671C;\n    --blue-5: #F6FDFF;\n    --blue-10: #E6F9FF;\n    --blue-15: #D2F4FF;\n    color-scheme: light dark;\n  }\n  /* Dark mode */\n  html.\\!dark {\n    --text: #e7e7e7 !important;\n    --text-strong: #fff !important;\n    --text-subdued: #777 !important;\n    --text-link: #40A7CE !important;\n    --surface: #000 !important;\n    --surface-subdued: #242424 !important;\n    --surface-warning: #4c250f !important;\n    --surface-critical: #4c250f !important;\n    --surface-information: #022938 !important;\n    --border-color: #555 !important;\n    --border-color-focus: #343434 !important;\n  }\n  html.dark {\n    --text: #e7e7e7;\n    --text-strong: #fff;\n    --text-subdued: #777;\n    --text-link: #40A7CE;\n    --surface: #000;\n    --surface-subdued: #242424;\n    --surface-warning: #4c250f;\n    --surface-critical: #4c250f;\n    --surface-information: #022938;\n    --border-color: #555;\n    --border-color-focus: #343434;\n  }\n\n*, ::before, ::after{\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n\n::backdrop{\n  --tw-border-spacing-x: 0;\n  --tw-border-spacing-y: 0;\n  --tw-translate-x: 0;\n  --tw-translate-y: 0;\n  --tw-rotate: 0;\n  --tw-skew-x: 0;\n  --tw-skew-y: 0;\n  --tw-scale-x: 1;\n  --tw-scale-y: 1;\n  --tw-pan-x:  ;\n  --tw-pan-y:  ;\n  --tw-pinch-zoom:  ;\n  --tw-scroll-snap-strictness: proximity;\n  --tw-gradient-from-position:  ;
2\n  --tw-gradient-via-position:  ;\n  --tw-gradient-to-position:  ;\n  --tw-ordinal:  ;\n  --tw-slashed-zero:  ;\n  --tw-numeric-figure:  ;\n  --tw-numeric-spacing:  ;\n  --tw-numeric-fraction:  ;\n  --tw-ring-inset:  ;\n  --tw-ring-offset-width: 0px;\n  --tw-ring-offset-color: #fff;\n  --tw-ring-color: rgb(59 130 246 / 0.5);\n  --tw-ring-offset-shadow: 0 0 #0000;\n  --tw-ring-shadow: 0 0 #0000;\n  --tw-shadow: 0 0 #0000;\n  --tw-shadow-colored: 0 0 #0000;\n  --tw-blur:  ;\n  --tw-brightness:  ;\n  --tw-contrast:  ;\n  --tw-grayscale:  ;\n  --tw-hue-rotate:  ;\n  --tw-invert:  ;\n  --tw-saturate:  ;\n  --tw-sepia:  ;\n  --tw-drop-shadow:  ;\n  --tw-backdrop-blur:  ;\n  --tw-backdrop-brightness:  ;\n  --tw-backdrop-contrast:  ;\n  --tw-backdrop-grayscale:  ;\n  --tw-backdrop-hue-rotate:  ;\n  --tw-backdrop-invert:  ;\n  --tw-backdrop-opacity:  ;\n  --tw-backdrop-saturate:  ;\n  --tw-backdrop-sepia:  ;\n  --tw-contain-size:  ;\n  --tw-contain-layout:  ;\n  --tw-contain-paint:  ;\n  --tw-contain-style:  ;\n}\n.container{\n  width: 100%;\n}\n@media (min-width: 640px){\n\n  .container{\n    max-width: 640px;\n  }\n}\n@media (min-width: 768px){\n\n  .container{\n    max-width: 768px;\n  }\n}\n@media (min-width: 1024px){\n\n  .container{\n    max-width: 1024px;\n  }\n}\n@media (min-width: 1280px){\n\n  .container{\n    max-width: 1280px;\n  }\n}\n@media (min-width: 1400px){\n\n  .container{\n    max-width: 1400px;\n  }\n}\n@media (min-width: 1536px){\n\n  .container{\n    max-width: 1536px;\n  }\n}\n.sr-only{\n  position: absolute !important;\n  width: 1px !important;\n  height: 1px !important;\n  padding: 0 !important;\n  margin: -1px !important;\n  overflow: hidden !important;\n  clip: rect(0, 0, 0, 0) !important;\n  white-space: nowrap !important;\n  border-width: 0 !important;\n}\n.pointer-events-none{\n  pointer-events: none !important;\n}\n.visible{\n  visibility: visible !important;\n}\n.invisible{\n  visibility: hidden !important;\n}\n.static{\n  position: static !important;\n}\n.fixed{\n  position: fixed !important;\n}\n.absolute{\n  position: absolute !important;\n}\n.relative{\n  position: relative !important;\n}\n.sticky{\n  position: -webkit-sticky !important;\n  position: sticky !important;\n}\n.inset-0{\n  inset: 0px !important;\n}\n.inset-x-0{\n  left: 0px !important;\n  right: 0px !important;\n}\n.inset-y-0{\n  top: 0px !important;\n  bottom: 0px !important;\n}\n.bottom-0{\n  bottom: 0px !important;\n}\n.left-0{\n  left: 0px !important;\n}\n.left-1\\/2{\n  left: 50% !important;\n}\n.right-0{\n  right: 0px !important;\n}\n.right-\\[5px\\]{\n  right: 5px !important;\n}\n.top-0{\n  top: 0px !important;\n}\n.top-1\\/2{\n  top: 50% !important;\n}\n.top-4{\n  top: 1rem !important;\n}\n.top-\\[5px\\]{\n  top: 5px !important;\n}\n.z-10{\n  z-index: 10 !important;\n}\n.z-20{\n  z-index: 20 !important;\n}\n.z-30{\n  z-index: 30 !important;\n}\n.z-50{\n  z-index: 50 !important;\n}\n.z-\\[15\\]{\n  z-index: 15 !important;\n}\n.z-\\[260\\]{\n  z-index: 260 !important;\n}\n.z-\\[300\\]{\n  z-index: 300 !important;\n}\n.z-\\[450\\]{\n  z-index: 450 !important;\n}\n.z-\\[51\\]{\n  z-index: 51 !important;\n}\n.col-start-auto{\n  grid-column-start: auto !important;\n}\n.float-right{\n  float: right !important;\n}\n.m-0{\n  margin: 0px !important;\n}\n.m-1{\n  margin: 0.25rem !important;\n}\n.m-4{\n  margin: 1rem !important;\n}\n.mx-0{\n  margin-left: 0px !important;\n  margin-right: 0px !important;\n}\n.mx-1{\n  margin-left: 0.25rem !important;\n  margin-right: 0.25rem !important;\n}\n.mx-10{\n  margin-left: 2.5rem !important;\n  margin-right: 2.5rem !important;\n}\n.mx-2{\n  margin-left: 0.5rem !important;\n  margin-right: 0.5rem !important;\n}\n.mx-6{\n  margin-left: 1.5rem !important;\n  margin-right: 1.5rem !important;\n}\n.mx-auto{\n  margin-left: auto !important;\n  margin-right: auto !important;\n}\n.my-0{\n  margin-top: 0px !important;\n  margin-bottom: 0px !important;\n}\n.my-16{\n  margin-top: 4rem !important;\n  margin-bottom: 4rem !important;\n}\n.my-3{\n  margin-top: 0.75rem !important;\n  margin-bottom: 0.75rem !important;\n}\n.my-4{\n  margin-top: 1rem !important;\n  margin-bottom: 1rem !important;\n}\n.mb-0{\n  margin-bottom: 0px !important;\n}\n.mb-0\\.5{\n  margin-bottom: 0.125rem !important;\n}\n.mb-2{\n  margin-bottom: 0.5rem !important;\n}\n.mb-3{\n  margin-bottom: 0.75rem !important;\n}\n.mb-4{\n  margin-bottom: 1rem !important;\n}\n.mb-5{\n  margin-bottom: 1.25rem !important;\n}\n.mb-6{\n  margin-bottom: 1.5rem !important;\n}\n.mb-8{\n  margin-bottom: 2rem !important;\n}\n.mb-\\[-4px\\]{\n  margin-bottom: -4px !important;\n}\n.ml-0{\n  margin-left: 0px !important;\n}\n.ml-12{\n  margin-left: 3rem !important;\n}\n.ml-2{\n  margin-left: 0.5rem !important;\n}\n.ml-3{\n  margin-left: 0.75rem !important;\n}\n.ml-4{\n  margin-left: 1rem !important;\n}\n.ml-auto{\n  margin-left: auto !important;\n}\n.mr-0{\n  margin-right: 0px !important;\n}\n.mr-2{\n  margin-right: 0.5rem !important;\n}\n.mr-3{\n  margin-right: 0.75rem !important;\n}\n.mt-0{\n  margin-top: 0px !important;\n}\n.mt-1{\n  margin-top: 0.25rem !important;\n}\n.mt-12{\n  margin-top: 3rem !important;\n}\n.mt-2{\n  margin-top: 0.5rem !important;\n}\n.mt-4{\n  margin-top: 1rem !important;\n}\n.mt-6{\n  margin-top: 1.5rem !important;\n}\n.mt-8{\n  margin-top: 2rem !important;\n}\n.block{\n  display: block !important;\n}\n.inline-block{\n  display: inline-block !important;\n}\n.inline{\n  display: inline !important;\n}\n.flex{\n  display: flex !important;\n}\n.inline-flex{\n  display: inline-flex !important;\n}\n.table{\n  display: table !important;\n}\n.grid{\n  display: grid !important;\n}\n.contents{\n  display: contents !important;\n}\n.hidden{\n  display: none !important;\n}\n.aspect-square{\n  aspect-ratio: 1 / 1 !important;\n}\n.h-0{\n  height: 0px !important;\n}\n.h-1{\n  height: 0.25rem !important;\n}\n.h-10{\n  height: 2.5rem !important;\n}\n.h-14{\n  height: 3.5rem !important;\n}\n.h-2\\.5{\n  height: 0.625rem !important;\n}\n.h-20{\n  height: 5rem !important;\n}\n.h-3{\n  height: 0.75rem !important;\n}\n.h-4{\n  height: 1rem !important;\n}\n.h-44{\n  height: 11rem !important;\n}\n.h-5{\n  height: 1.25rem !important;\n}\n.h-6{\n  height: 1.5rem !important;\n}\n.h-7{\n  height: 1.75rem !important;\n}\n.h-8{\n  height: 2rem !important;\n}\n.h-9{\n  height: 2.25rem !important;\n}\n.h-\\[35\\%\\]{\n  height: 35% !important;\n}\n.h-\\[50\\%\\]{\n  height: 50% !important;\n}\n.h-\\[57px\\]{\n  height: 57px !important;\n}\n.h-\\[75\\%\\]{\n  height: 75% !important;\n}\n.h-\\[90vh\\]{\n  height: 90vh !important;\n}\n.h-\\[99vh\\]{\n  height: 99vh !important;\n}\n.h-auto{\n  height: auto !important;\n}\n.h-fit{\n  height: -webkit-fit-content !important;\n  height: fit-content !important;\n}\n.h-full{\n  height: 100% !important;\n}\n.h-px{\n  height: 1px !important;\n}\n.max-h-\\[300px\\]{\n  max-height: 300px !important;\n}\n.max-h-\\[400px\\]{\n  max-height: 400px !important;\n}\n.max-h-\\[50vh\\]{\n  max-height: 50vh !important;\n}\n.max-h-screen{\n  max-height: 100vh !important;\n}\n.\\!w-auto{\n  width: auto !important;\n}\n.w-1\\/2{\n  width: 50% !important;\n}\n.w-10{\n  width: 2.5rem !important;\n}\n.w-11\\/12{\n  width: 91.666667% !important;\n}\n.w-14{\n  width: 3.5rem !important;\n}\n.w-16{\n  width: 4rem !important;\n}\n.w-2\\/3{\n  width: 66.666667% !important;\n}\n.w-20{\n  width: 5rem !important;\n}\n.w-24{\n  width: 6rem !important;\n}\n.w-26{\n  width: 6.5rem !important;\n}\n.w-3\\/4{\n  width: 75% !important;\n}\n.w-32{\n  width: 8rem !important;\n}\n.w-4{\n  width: 1rem !important;\n}\n.w-5{\n  width: 1.25rem !important;\n}\n.w-52{\n  width: 13rem !important;\n}\n.w-6{\n  width: 1.5rem !important;\n}\n.w-64{\n  width: 16rem !important;\n}\n.w-7{\n  width: 1.75rem !important;\n}\n.w-72{\n  width: 18rem !important;\n}\n.w-8{\n  width: 2rem !important;\n}\n.w-9{\n  width: 2.25rem !important;\n}\n.w-\\[112px\\]{\n  width: 112px !important;\n}\n.w-\\[94\\.5px\\]{\n  width: 94.5px !important;\n}\n.w-auto{\n  width: auto !important;\n}\n.w-fit{\n  width: -webkit-fit-content !important;\n  width: fit-content !important;\n}\n.w-full{\n  width: 100% !important;\n}\n.min-w-9{\n  min-width: 2.25rem !important;\n}\n.min-w-\\[150px\\]{\n  min-width: 150px !important;\n}\n.min-w-\\[4rem\\]{\n  min-width: 4rem !important;\n}\n.min-w-fit{\n  min-width: -webkit-fit-content !important;\n  min-width: fit-content !important;\n}\n.max-w-28{\n  max-width: 7rem !important;\n}\n.max-w-2xl{\n  max-width: 42rem !important;\n}\n.max-w-3xl{\n  max-width: 48rem !important;\n}\n.max-w-\\[300px\\]{\n  max-width: 300px !important;\n}\n.max-w-\\[350px\\]{\n  max-width: 350px !important;\n}\n.max-w-\\[380px\\]{\n  max-width: 380px !important;\n}\n.max-w-\\[500px\\]{\n  max-width: 500px !important;\n}\n.max-w-max{\n  max-width: -webkit-max-content !important;\n  max-width: max-content !important;\n}\n.max-w-md{\n  max-width: 28rem !important;\n}\n.max-w-screen-lg{\n  max-width: 1024px !important;\n}\n.flex-1{\n  flex: 1 1 0% !important;\n}\n.flex-shrink-0{\n  flex-shrink: 0 !important;\n}\n.flex-grow{\n  flex-grow: 1 !important;\n}\n.grow{\n  flex-grow: 1 !important;\n}\n.basis-1\\/2{\n  flex-basis: 50% !important;\n}\n.-translate-x-1\\/2{\n  --tw-translate-x: -50% !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.-translate-y-1\\/2{\n  --tw-translate-y: -50% !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.-translate-y-full{\n  --tw-translate-y: -100% !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.translate-x-0{\n  --tw-translate-x: 0px !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.translate-x-full{\n  --tw-translate-x: 100% !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.rotate-90{\n  --tw-rotate: 90deg !important;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}\n.transform{\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;\n}
2\n@keyframes pulse{\n\n  50%{\n    opacity: .5;\n  }\n}\n.animate-pulse{\n  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite !important;\n}\n.cursor-auto{\n  cursor: auto !important;\n}\n.cursor-default{\n  cursor: default !important;\n}\n.cursor-draw{\n  cursor: url(${v}) 16 20, pointer !important;\n}\n.cursor-eraser{\n  cursor: url(${b}) 8 20, pointer !important;\n}\n.cursor-grab{\n  cursor: grab !important;\n}\n.cursor-note{\n  cursor: url(${y}), pointer !important;\n}\n.cursor-pointer{\n  cursor: pointer !important;\n}\n.cursor-rotate{\n  cursor: url(${x}) 12 12, grab !important;\n}\n.cursor-shape{\n  cursor: url(${w}), crosshair !important;\n}\n.cursor-text{\n  cursor: text !important;\n}\n.cursor-writeText{\n  cursor: url(${k}), pointer !important;\n}\n.select-none{\n  -webkit-user-select: none !important;\n          user-select: none !important;\n}\n.select-all{\n  -webkit-user-select: all !important;\n          user-select: all !important;\n}\n.resize{\n  resize: both !important;\n}\n.list-inside{\n  list-style-position: inside !important;\n}\n.list-disc{\n  list-style-type: disc !important;\n}\n.list-none{\n  list-style-type: none !important;\n}\n.grid-cols-1{\n  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;\n}\n.flex-row{\n  flex-direction: row !important;\n}\n.flex-row-reverse{\n  flex-direction: row-reverse !important;\n}\n.flex-col{\n  flex-direction: column !important;\n}\n.flex-col-reverse{\n  flex-direction: column-reverse !important;\n}\n.flex-wrap{\n  flex-wrap: wrap !important;\n}\n.flex-nowrap{\n  flex-wrap: nowrap !important;\n}\n.place-items-center{\n  place-items: center !important;\n}\n.items-start{\n  align-items: flex-start !important;\n}\n.items-end{\n  align-items: flex-end !important;\n}\n.items-center{\n  align-items: center !important;\n}\n.items-baseline{\n  align-items: baseline !important;\n}\n.justify-start{\n  justify-content: flex-start !important;\n}\n.justify-end{\n  justify-content: flex-end !important;\n}\n.justify-center{\n  justify-content: center !important;\n}\n.justify-between{\n  justify-content: space-between !important;\n}\n.gap-0{\n  gap: 0px !important;\n}\n.gap-1{\n  gap: 0.25rem !important;\n}\n.gap-14{\n  gap: 3.5rem !important;\n}\n.gap-2{\n  gap: 0.5rem !important;\n}\n.gap-3{\n  gap: 0.75rem !important;\n}\n.gap-4{\n  gap: 1rem !important;\n}\n.gap-5{\n  gap: 1.25rem !important;\n}\n.gap-6{\n  gap: 1.5rem !important;\n}\n.gap-8{\n  gap: 2rem !important;\n}\n.gap-y-4{\n  row-gap: 1rem !important;\n}\n.self-center{\n  align-self: center !important;\n}\n.self-stretch{\n  align-self: stretch !important;\n}\n.overflow-auto{\n  overflow: auto !important;\n}\n.overflow-hidden{\n  overflow: hidden !important;\n}\n.overflow-x-auto{\n  overflow-x: auto !important;\n}\n.overflow-y-hidden{\n  overflow-y: hidden !important;\n}\n.overflow-x-visible{\n  overflow-x: visible !important;\n}\n.truncate{\n  overflow: hidden !important;\n  text-overflow: ellipsis !important;\n  white-space: nowrap !important;\n}\n.whitespace-normal{\n  white-space: normal !important;\n}\n.whitespace-nowrap{\n  white-space: nowrap !important;\n}\n.whitespace-break-spaces{\n  white-space: break-spaces !important;\n}\n.break-words{\n  overflow-wrap: break-word !important;\n}\n.rounded{\n  border-radius: 0.25rem !important;\n}\n.rounded-\\[0px_0px_4px_0px\\]{\n  border-radius: 0px 0px 4px 0px !important;\n}\n.rounded-full{\n  border-radius: 9999px !important;\n}\n.rounded-md{\n  border-radius: 0.375rem !important;\n}\n.rounded-none{\n  border-radius: 0px !important;\n}\n.rounded-xl{\n  border-radius: 0.75rem !important;\n}\n.rounded-b{\n  border-bottom-right-radius: 0.25rem !important;\n  border-bottom-left-radius: 0.25rem !important;\n}\n.rounded-t-none{\n  border-top-left-radius: 0px !important;\n  border-top-right-radius: 0px !important;\n}\n.border{\n  border-width: 1px !important;\n}\n.border-0{\n  border-width: 0px !important;\n}\n.border-2{\n  border-width: 2px !important;\n}\n.border-4{\n  border-width: 4px !important;\n}\n.border-b{\n  border-bottom-width: 1px !important;\n}\n.border-b-2{\n  border-bottom-width: 2px !important;\n}\n.border-l-0{\n  border-left-width: 0px !important;\n}\n.border-r{\n  border-right-width: 1px !important;\n}\n.border-t{\n  border-top-width: 1px !important;\n}\n.border-t-0{\n  border-top-width: 0px !important;\n}\n.border-dashed{\n  border-style: dashed !important;\n}\n.border-none{\n  border-style: none !important;\n}\n.border-attraction{\n  border-color: var(--attraction) !important;\n}\n.border-borderColor{\n  border-color: var(--border-color) !important;\n}\n.border-textCritical{\n  border-color: var(--text-critical) !important;\n}\n.border-textSuccess{\n  border-color: var(--text-success) !important;\n}
2\n.\\!bg-transparent{\n  background-color: transparent !important;\n}\n.bg-blue15{\n  background-color: var(--blue-15) !important;\n}\n.bg-borderColor{\n  background-color: var(--border-color) !important;\n}\n.bg-orange{\n  background-color: var(--orange) !important;\n}\n.bg-primary{\n  background-color: var(--primary) !important;\n}\n.bg-progress{\n  background-color: var(--progress) !important;\n}\n.bg-surface{\n  background-color: var(--surface) !important;\n}\n.bg-surfaceCritical{\n  background-color: var(--surface-critical) !important;\n}\n.bg-surfaceInformation{\n  background-color: var(--surface-information) !important;\n}\n.bg-surfaceSubdued{\n  background-color: var(--surface-subdued) !important;\n}\n.bg-surfaceSuccess{\n  background-color: var(--surface-success) !important;\n}\n.bg-surfaceWarning{\n  background-color: var(--surface-warning) !important;\n}\n.bg-transparent{\n  background-color: transparent !important;\n}\n.fill-textSubdued{\n  fill: var(--text-subdued) !important;\n}\n.p-0{\n  padding: 0px !important;\n}\n.p-1{\n  padding: 0.25rem !important;\n}\n.p-2{\n  padding: 0.5rem !important;\n}\n.p-3{\n  padding: 0.75rem !important;\n}\n.p-3\\.5{\n  padding: 0.875rem !important;\n}\n.p-4{\n  padding: 1rem !important;\n}\n.p-5{\n  padding: 1.25rem !important;\n}\n.p-6{\n  padding: 1.5rem !important;\n}\n.px-0{\n  padding-left: 0px !important;\n  padding-right: 0px !important;\n}\n.px-0\\.5{\n  padding-left: 0.125rem !important;\n  padding-right: 0.125rem !important;\n}\n.px-1{\n  padding-left: 0.25rem !important;\n  padding-right: 0.25rem !important;\n}\n.px-12{\n  padding-left: 3rem !important;\n  padding-right: 3rem !important;\n}\n.px-2{\n  padding-left: 0.5rem !important;\n  padding-right: 0.5rem !important;\n}\n.px-3{\n  padding-left: 0.75rem !important;\n  padding-right: 0.75rem !important;\n}\n.px-4{\n  padding-left: 1rem !important;\n  padding-right: 1rem !important;\n}\n.px-5{\n  padding-left: 1.25rem !important;\n  padding-right: 1.25rem !important;\n}\n.px-6{\n  padding-left: 1.5rem !important;\n  padding-right: 1.5rem !important;\n}\n.px-8{\n  padding-left: 2rem !important;\n  padding-right: 2rem !important;\n}\n.py-0{\n  padding-top: 0px !important;\n  padding-bottom: 0px !important;\n}\n.py-0\\.5{\n  padding-top: 0.125rem !important;\n  padding-bottom: 0.125rem !important;\n}\n.py-1{\n  padding-top: 0.25rem !important;\n  padding-bottom: 0.25rem !important;\n}\n.py-2{\n  padding-top: 0.5rem !important;\n  padding-bottom: 0.5rem !important;\n}\n.py-3{\n  padding-top: 0.75rem !important;\n  padding-bottom: 0.75rem !important;\n}\n.py-4{\n  padding-top: 1rem !important;\n  padding-bottom: 1rem !important;\n}\n.py-6{\n  padding-top: 1.5rem !important;\n  padding-bottom: 1.5rem !important;\n}\n.py-\\[3px\\]{\n  padding-top: 3px !important;\n  padding-bottom: 3px !important;\n}\n.pb-1{\n  padding-bottom: 0.25rem !important;\n}\n.pb-2{\n  padding-bottom: 0.5rem !important;\n}\n.pb-32{\n  padding-bottom: 8rem !important;\n}\n.pb-4{\n  padding-bottom: 1rem !important;\n}\n.pb-6{\n  padding-bottom: 1.5rem !important;\n}\n.pl-0{\n  padding-left: 0px !important;\n}\n.pl-10{\n  padding-left: 2.5rem !important;\n}\n.pl-12{\n  padding-left: 3rem !important;\n}\n.pl-2{\n  padding-left: 0.5rem !important;\n}\n.pl-4{\n  padding-left: 1rem !important;\n}\n.pl-6{\n  padding-left: 1.5rem !important;\n}\n.pr-0{\n  padding-right: 0px !important;\n}\n.pr-2{\n  padding-right: 0.5rem !important;\n}\n.pr-3{\n  padding-right: 0.75rem !important;\n}\n.pr-4{\n  padding-right: 1rem !important;\n}\n.pr-6{\n  padding-right: 1.5rem !important;\n}\n.pt-0{\n  padding-top: 0px !important;\n}\n.pt-1{\n  padding-top: 0.25rem !important;\n}\n.pt-10{\n  padding-top: 2.5rem !important;\n}\n.pt-2\\.5{\n  padding-top: 0.625rem !important;\n}\n.pt-3{\n  padding-top: 0.75rem !important;\n}\n.pt-4{\n  padding-top: 1rem !important;\n}\n.pt-6{\n  padding-top: 1.5rem !important;\n}\n.pt-8{\n  padding-top: 2rem !important;\n}\n.text-left{\n  text-align: left !important;\n}\n.text-center{\n  text-align: center !important;\n}\n.text-right{\n  text-align: right !important;\n}
2\n.align-baseline{\n  vertical-align: baseline !important;\n}\n.align-middle{\n  vertical-align: middle !important;\n}\n.text-base{\n  font-size: 1rem !important;\n  line-height: 1.5rem !important;\n}\n.text-body2{\n  font-size: 1.25rem !important;\n  line-height: 1.75rem !important;\n}\n.text-h2{\n  font-size: 2.5rem !important;\n  line-height: 2.5rem !important;\n}\n.text-h3{\n  font-size: 2rem !important;\n  line-height: 2rem !important;\n}\n.text-h4{\n  font-size: 1.5rem !important;\n  line-height: 1.75rem !important;\n}\n.text-h5{\n  font-size: 20px !important;\n  line-height: 24px !important;\n}\n.text-lg{\n  font-size: 1.125rem !important;\n  line-height: 1.75rem !important;\n}\n.text-sm{\n  font-size: 0.875rem !important;\n  line-height: 1.25rem !important;\n}\n.text-xl{\n  font-size: 1.25rem !important;\n  line-height: 1.75rem !important;\n}\n.text-xs{\n  font-size: 0.75rem !important;\n  line-height: 1rem !important;\n}\n.font-bold{\n  font-weight: 700 !important;\n}\n.font-normal{\n  font-weight: 400 !important;\n}\n.italic{\n  font-style: italic !important;\n}\n.not-italic{\n  font-style: normal !important;\n}\n.leading-6{\n  line-height: 1.5rem !important;\n}\n.leading-none{\n  line-height: 1 !important;\n}\n.text-attraction{\n  color: var(--attraction) !important;\n}\n.text-interactive{\n  color: var(--interactive) !important;\n}\n.text-primary{\n  color: var(--primary) !important;\n}\n.text-surface{\n  color: var(--surface) !important;\n}\n.text-text{\n  color: var(--text) !important;\n}\n.text-textCritical{\n  color: var(--text-critical) !important;\n}\n.text-textLink{\n  color: var(--text-link) !important;\n}\n.text-textStrong{\n  color: var(--text-strong) !important;\n}\n.text-textSubdued{\n  color: var(--text-subdued) !important;\n}\n.text-textSuccess{\n  color: var(--text-success) !important;\n}\n.underline{\n  -webkit-text-decoration-line: underline !important;\n          text-decoration-line: underline !important;\n}\n.underline-offset-2{\n  text-underline-offset: 2px !important;\n}\n.underline-offset-4{\n  text-underline-offset: 4px !important;\n}\n.opacity-0{\n  opacity: 0 !important;\n}\n.opacity-50{\n  opacity: 0.5 !important;\n}\n.opacity-80{\n  opacity: 0.8 !important;\n}\n.shadow-md{\n  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
2\n  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n.outline-none{\n  outline: 2px solid transparent !important;\n  outline-offset: 2px !important;\n}\n.outline{\n  outline-style: solid !important;\n}\n.ring-2{\n  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;\n  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;\n}\n.ring-textStrong{\n  --tw-ring-color: var(--text-strong) !important;\n}\n.blur{\n  --tw-blur: blur(8px) !important;\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;\n}\n.filter{\n  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;\n}\n.transition{\n  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter !important;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter !important;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter !important;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;\n  transition-duration: 150ms !important;\n}\n.py-safe{\n  padding-top: env(safe-area-inset-top) !important;\n  padding-bottom: env(safe-area-inset-bottom) !important;\n}\n\n.nice-word-break {\n    word-break: break-word\n}\n\nhtml{\n  font-family: Lato, sans-serif;\n}\n\nbody{\n  background-color: var(--surface-subdued);\n    font-variant-ligatures: none;\n    font-feature-settings: "liga" 0, "clig" 0;\n}\n\n.container{\n  margin-top: 0px;\n  margin-bottom: 0px;\n  margin-left: auto;\n  margin-right: auto;\n  padding-top: 0px;\n  padding-bottom: 0px;\n  padding-left: 0.5rem;\n  padding-right: 0.5rem;\n  max-width: 1280px;\n}\n\n/* ------------ HEADINGS -------------- */\n\n.heading-1{\n  font-weight: 700;\n  color: var(--text-strong);\n  font-size: 2.5rem;\n  line-height: 2.5rem;\n}\n\n@media (min-width: 768px){\n\n  .heading-1{\n    font-size: 3rem;\n    line-height: 1;\n  }\n}\n\n.heading-1{\n  line-height: 1;\n  padding-bottom: 1.5rem;\n  padding-top: 3.5rem;\n}\n\n@media (min-width: 768px){\n\n  .heading-1{\n    padding-bottom: 2rem;\n  }\n}\n\n.heading-2{\n  font-weight: 700;\n  color: var(--text-strong);\n  font-size: 2.5rem;\n  line-height: 2.5rem;\n}\n\n@media (min-width: 768px){\n\n  .heading-2{\n    font-size: 2.5rem;\n    line-height: 2.5rem;\n  }\n}\n\n.heading-2{\n  line-height: 1.375;\n  padding-bottom: 1.5rem;\n  padding-top: 2rem;\n}\n\n.heading-3{\n  font-weight: 700;\n  color: var(--text-strong);\n  font-size: 2rem;\n  line-height: 2rem;\n  line-height: 1.375;\n  padding-top: 1.5rem;\n  padding-bottom: 1rem;\n}\n\n.heading-4{\n  font-weight: 700;\n  color: var(--text-strong);\n  font-size: 1.5rem;\n  line-height: 1.75rem;\n  line-height: 1.375;\n  padding-bottom: 1rem;\n  padding-top: 1.5rem;\n}\n\n.heading-5{\n  font-weight: 700;\n  color: var(--text-strong);\n  font-size: 20px;\n  line-height: 24px;\n}\n\n\n.subtitle-3{\n  margin-bottom: 1rem;\n}\n\n.subtitle-1{\n  font-size: 1.25rem;\n  line-height: 1.75rem;\n  color: var(--text-subdued);\n}\n\n.subtitle-2{\n  font-size: 1rem;\n  line-height: 1.5rem;\n  color: var(--text-subdued);\n}\n\n/* ------------ DIALOG -------------- */\n\n.dialog{\n  position: fixed;\n  inset: 0px;\n  overflow-y: auto;\n}\n\n.dialog__content{\n  position: fixed;\n  width: 100%;\n  top: 50%;\n  left: 50%;\n  --tw-translate-x: -50%;\n  --tw-translate-y: -50%;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.dialog__overlay{\n  position: fixed;\n  inset: 0px;\n  background-color: var(--backdrop);\n  --tw-backdrop-blur: blur(8px);\n  -webkit-backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);\n}\n\n.dialog__body{\n  width: 100%;\n  max-width: 28rem;\n  margin-left: auto;\n  margin-right: auto;\n  padding: 1rem;\n}\n\n@media (min-width: 1024px){\n\n  .dialog__body{\n    padding: 1.5rem;\n  }\n}\n\n.dialog__body{\n  background-color: var(--surface);\n  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
2\n  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);\n}\n\n.dialog__body:is(.dark *){\n  border-width: 2px;\n  border-color: var(--border-color);\n}\n\n.dialog__body{\n  text-align: left;\n  transition-property: color, background-color, border-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-text-decoration-color, -webkit-backdrop-filter;\n  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n  transition-duration: 150ms;\n  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));\n}\n\n.dialog__header{\n  display: flex;\n  justify-content: space-between;\n}\n\n.dialog__title{\n  font-size: 1.5rem;\n  font-weight: 700;\n  line-height: 1.5rem;\n  color: var(--text-strong);\n  margin-top: 0.5rem;\n}\n\n.dialog__subTitle{\n  color: var(--text-subdued);\n}\n\n.dialog__text{\n  margin-top: 1rem;\n  color: var(--text);\n}\n\n.dialog__buttons{\n  display: flex;\n  align-items: flex-start;\n  justify-content: space-between;\n  gap: 0.5rem;\n  margin-top: 1rem;\n}\n\n.dialog__buttons > .input{\n  flex: 1 1 0%;\n}
2\n\n\n/* ------------ Body -------------- */\n\n.body-wrapper{\n  margin-left: auto;\n  margin-right: auto;\n  display: flex;\n}\n\n.page-wrapper{\n  width: 100%;\n  min-height: 100vh;\n  display: flex;\n  flex-direction: column;\n}\n\n.isFullscreen .body-wrapper{\n  max-width: none;\n}\n\n\n/* ------------ Z-INDEX -------------- */\n\n/* Offline Manager */\n.offline-manager{\n  z-index: 150;\n}\n\n/* The Drawer Aside (e.g. the Augmented Navigation) */\n.app-drawer-aside{\n  z-index: 250;\n}\n@media (min-width: 1280px){\n\n  .app-drawer-aside{\n    z-index: auto;\n  }\n}\n\n.app-drawer-aside .app-drawer__content{\n  z-index: 250;\n}\n\n@media (min-width: 1280px){\n\n  .app-drawer-aside .app-drawer__content{\n    z-index: auto;\n  }\n}\n\n.app-drawer-aside__backdrop{\n  z-index: 240;\n}\n\n/* General Dialogs*/\n.dialog__content, .modal-dialog__content, .modal-prompt__content{\n  z-index: 350;\n}\n\n.dialog__overlay, .modal-dialog__overlay, .modal-prompt__overlay{\n  z-index: 340;\n}\n\n/* The Asset Player Dialog*/\n.asset-player-dialog{\n  z-index: 450;\n}\n\n.asset-player-dialog__overlay{\n  z-index: 440;\n}\n\n/* The Asset Menu in the Asset Player*/\n.asset-player-dialog .dropdown-menu__button + div[data-radix-popper-content-wrapper]{\n  z-index: 450 !important;\n}\n\n/* The overlays which should be always on top (e.g. Login Teaser)*/\n.dialog__overlay--top-prio{\n  z-index: 510;\n}\n\n.dialog__content--top-prio{\n  z-index: 520;\n}\n\n/* overwrite default pre styles */\npre{\n  white-space: pre-wrap;\n  font-family: Lato, sans-serif;\n  line-height: 1.375;\n}\n\n.konvajs-content{\n  z-index: 10;\n}\n\n.selection\\:bg-\\[\\#ff660066\\] *::selection{\n  background-color: #ff660066 !important;\n}\n\n.selection\\:bg-\\[\\#ff660066\\]::selection{\n  background-color: #ff660066 !important;\n}\n\n.after\\:absolute::after{\n  content: var(--tw-content) !important;\n  position: absolute !important;\n}\n\n.after\\:bottom-\\[50\\%\\]::after{\n  content: var(--tw-content) !important;\n  bottom: 50% !important;\n}\n\n.after\\:left-0::after{\n  content: var(--tw-content) !important;\n  left: 0px !important;\n}\n\n.after\\:w-full::after{\n  content: var(--tw-content) !important;\n  width: 100% !important;\n}\n\n.after\\:border-b::after{\n  content: var(--tw-content) !important;\n  border-bottom-width: 1px !important;\n}\n\n.after\\:border-borderColor::after{\n  content: var(--tw-content) !important;\n  border-color: var(--border-color) !important;\n}\n\n.after\\:content-\\[\\"\\"\\]::after{\n  --tw-content: "" !important;\n  content: var(--tw-content) !important;\n}\n\n.hover\\:cursor-default:hover{\n  cursor: default !important;\n}\n\n.hover\\:cursor-pointer:hover{\n  cursor: pointer !important;\n}\n\n.hover\\:bg-primary:hover{\n  background-color: var(--primary) !important;\n}\n\n.hover\\:bg-surfaceSubdued:hover{\n  background-color: var(--surface-subdued) !important;\n}\n\n.hover\\:opacity-100:hover{\n  opacity: 1 !important;\n}\n\n.hover\\:outline-none:hover{\n  outline: 2px solid transparent !important;\n  outline-offset: 2px !important;\n}\n\n.focus\\:bg-textWarning:focus{\n  background-color: var(--text-warning) !important;\n}\n\n.focus\\:shadow-\\[0_0_0_2px\\]:focus{\n  --tw-shadow: 0 0 0 2px !important;
2\n  --tw-shadow-colored: 0 0 0 2px var(--tw-shadow-color) !important;\n  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;\n}\n\n.dark\\:bg-textSubdued:is(.dark *){\n  background-color: var(--text-subdued) !important;\n}\n\n.dark\\:text-black:is(.dark *){\n  --tw-text-opacity: 1 !important;\n  color: rgb(0 0 0 / var(--tw-text-opacity)) !important;\n}\n\n.dark\\:text-text:is(.dark *){\n  color: var(--text) !important;\n}\n\n@media (min-width: 640px){\n\n  .sm\\:mt-6{\n    margin-top: 1.5rem !important;\n  }\n\n  .sm\\:block{\n    display: block !important;\n  }\n\n  .sm\\:flex{\n    display: flex !important;\n  }\n\n  .sm\\:hidden{\n    display: none !important;\n  }\n\n  .sm\\:flex-row{\n    flex-direction: row !important;\n  }\n\n  .sm\\:items-start{\n    align-items: flex-start !important;\n  }\n\n  .sm\\:justify-start{\n    justify-content: flex-start !important;\n  }\n\n  .sm\\:pr-12{\n    padding-right: 3rem !important;\n  }\n}\n\n@media (min-width: 768px){\n\n  .md\\:col-span-2{\n    grid-column: span 2 / span 2 !important;\n  }\n\n  .md\\:col-span-3{\n    grid-column: span 3 / span 3 !important;\n  }\n\n  .md\\:col-span-5{\n    grid-column: span 5 / span 5 !important;\n  }\n\n  .md\\:col-start-6{\n    grid-column-start: 6 !important;\n  }\n\n  .md\\:mx-auto{\n    margin-left: auto !important;\n    margin-right: auto !important;\n  }\n\n  .md\\:mb-0{\n    margin-bottom: 0px !important;\n  }\n\n  .md\\:ml-auto{\n    margin-left: auto !important;\n  }\n\n  .md\\:mr-8{\n    margin-right: 2rem !important;\n  }\n\n  .md\\:mt-0{\n    margin-top: 0px !important;\n  }\n\n  .md\\:block{\n    display: block !important;\n  }\n\n  .md\\:grid{\n    display: grid !important;\n  }\n\n  .md\\:hidden{\n    display: none !important;\n  }\n\n  .md\\:h-14{\n    height: 3.5rem !important;\n  }\n\n  .md\\:h-5{\n    height: 1.25rem !important;\n  }\n\n  .md\\:h-60{\n    height: 15rem !important;\n  }\n\n  .md\\:h-9{\n    height: 2.25rem !important;\n  }\n\n  .md\\:h-96{\n    height: 24rem !important;\n  }\n\n  .md\\:w-1\\/3{\n    width: 33.333333% !important;\n  }\n\n  .md\\:w-14{\n    width: 3.5rem !important;\n  }\n\n  .md\\:w-2\\/3{\n    width: 66.666667% !important;\n  }\n\n  .md\\:w-32{\n    width: 8rem !important;\n  }\n\n  .md\\:w-60{\n    width: 15rem !important;\n  }\n\n  .md\\:w-72{\n    width: 18rem !important;\n  }\n\n  .md\\:w-\\[126px\\]{\n    width: 126px !important;\n  }\n\n  .md\\:w-\\[128px\\]{\n    width: 128px !important;\n  }\n\n  .md\\:w-auto{\n    width: auto !important;\n  }\n\n  .md\\:max-w-md{\n    max-width: 28rem !important;\n  }\n\n  .md\\:flex-grow-0{\n    flex-grow: 0 !important;\n  }\n\n  .md\\:grid-cols-1{\n    grid-template-columns: repeat(1, minmax(0, 1fr)) !important;\n  }\n\n  .md\\:grid-cols-2{\n    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;\n  }\n\n  .md\\:grid-cols-3{\n    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\n  }\n\n  .md\\:grid-cols-5{\n    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;\n  }\n\n  .md\\:flex-row{\n    flex-direction: row !important;\n  }\n\n  .md\\:justify-start{\n    justify-content: flex-start !important;\n  }\n\n  .md\\:justify-end{\n    justify-content: flex-end !important;\n  }\n\n  .md\\:justify-between{\n    justify-content: space-between !important;\n  }\n\n  .md\\:gap-6{\n    gap: 1.5rem !important;\n  }\n\n  .md\\:whitespace-break-spaces{\n    white-space: break-spaces !important;\n  }\n\n  .md\\:px-10{\n    padding-left: 2.5rem !important;\n    padding-right: 2.5rem !important;\n  }\n\n  .md\\:px-3{\n    padding-left: 0.75rem !important;\n    padding-right: 0.75rem !important;\n  }\n\n  .md\\:px-4{\n    padding-left: 1rem !important;\n    padding-right: 1rem !important;\n  }\n\n  .md\\:py-0{\n    padding-top: 0px !important;\n    padding-bottom: 0px !important;\n  }\n\n  .md\\:py-4{\n    padding-top: 1rem !important;\n    padding-bottom: 1rem !important;\n  }\n\n  .md\\:pr-4{\n    padding-right: 1rem !important;\n  }\n\n  .md\\:pt-4{\n    padding-top: 1rem !important;\n  }\n\n  .md\\:text-h5{\n    font-size: 20px !important;\n    line-height: 24px !important;\n  }\n\n  .md\\:font-bold{\n    font-weight: 700 !important;\n  }\n}\n\n@media (min-width: 1024px){\n\n  .lg\\:col-span-2{\n    grid-column: span 2 / span 2 !important;\n  }\n\n  .lg\\:grid-cols-3{\n    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\n  }\n\n  .lg\\:flex-row{\n    flex-direction: row !important;\n  }\n\n  .lg\\:flex-col-reverse{\n    flex-direction: column-reverse !important;\n  }
2\n\n  .lg\\:items-end{\n    align-items: flex-end !important;\n  }\n\n  .lg\\:justify-start{\n    justify-content: flex-start !important;\n  }\n\n  .lg\\:gap-6{\n    gap: 1.5rem !important;\n  }\n\n  .lg\\:p-8{\n    padding: 2rem !important;\n  }\n\n  .lg\\:px-8{\n    padding-left: 2rem !important;\n    padding-right: 2rem !important;\n  }\n\n  .lg\\:pb-0{\n    padding-bottom: 0px !important;\n  }\n\n  .lg\\:pr-12{\n    padding-right: 3rem !important;\n  }\n}\n\n@media (min-width: 1280px){\n\n  .xl\\:hidden{\n    display: none !important;\n  }\n\n  .xl\\:max-w-\\[1000px\\]{\n    max-width: 1000px !important;\n  }\n\n  .xl\\:max-w-\\[1200px\\]{\n    max-width: 1200px !important;\n  }\n\n  .xl\\:grid-cols-3{\n    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;\n  }\n\n  .xl\\:px-8{\n    padding-left: 2rem !important;\n    padding-right: 2rem !important;\n  }\n}\n\n.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\:after\\]\\:border-b-focusOutline>*:not(:first-child):after{\n  border-bottom-color: var(--focus-outline) !important;\n}\n\n@media (min-width: 768px){\n\n  .md\\:\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\:after\\]\\:border-b-current>*:not(:first-child):after{\n    border-bottom-color: currentColor !important;\n  }\n\n  .md\\:\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\:after\\]\\:border-r-focusOutline>*:not(:first-child):after{\n    border-right-color: var(--focus-outline) !important;\n  }\n}\n\n.\\[\\&\\>\\*\\:not\\(\\:first-child\\)\\]\\:bg-focusOutline>*:not(:first-child){\n  background-color: var(--focus-outline) !important;\n}\n\n.\\[\\&\\>a\\]\\:text-textLink>a{\n  color: var(--text-link) !important;\n}\n\n.\\[\\&\\>p\\]\\:w-\\[50\\%\\]>p{\n  width: 50% !important;\n}\n\n@media (min-width: 768px){\n\n  .md\\:\\[\\&\\>p\\]\\:w-full>p{\n    width: 100% !important;\n  }\n}\n`,""]);const A=f},51761(e,t,n){n.d(t,{A:()=>f});var i=n(38246),r=n.n(i),a=n(21879),o=n.n(a),s=n(75886),l=n.n(s),c=new URL(n(6547),n.b),d=new URL(n(94694),n.b),u=new URL(n(41695),n.b),p=o()(r()),h=l()(c),m=l()(d),g=l()(u);p.push([e.id,`@font-face {\n    font-family: "Lato";\n    src: url(${h});\n    format: truetype;\n    font-weight: 300;\n    font-style: normal;\n    font-display: swap;\n}\n\n@font-face {\n    font-family: "Lato";\n    src: url(${m});\n    format: truetype;\n    font-weight: 400;\n    font-style: normal;\n    font-display: swap;\n}\n\n@font-face {\n    font-family: "Lato";\n    src: url(${g});\n    format: truetype;\n    font-weight: 700;\n    font-style: normal;\n    font-display: swap;\n}\n`,""]);const f=p},3960(e,t,n){var i=n(85072),r=n.n(i),a=n(97825),o=n.n(a),s=n(77659),l=n.n(s),c=n(55056),d=n.n(c),u=n(10540),p=n.n(u),h=n(41113),m=n.n(h),g=n(45043),f={};f.styleTagTransform=m(),f.setAttributes=d(),f.insert=l().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=p();r()(g.A,f),g.A&&g.A.locals&&g.A.locals},77582(e,t,n){var i=n(85072),r=n.n(i),a=n(97825),o=n.n(a),s=n(77659),l=n.n(s),c=n(55056),d=n.n(c),u=n(10540),p=n.n(u),h=n(41113),m=n.n(h),g=n(6109),f={};f.styleTagTransform=m(),f.setAttributes=d(),f.insert=l().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=p();r()(g.A,f),g.A&&g.A.locals&&g.A.locals},96110(e,t,n){var i=n(85072),r=n.n(i),a=n(97825),o=n.n(a),s=n(77659),l=n.n(s),c=n(55056),d=n.n(c),u=n(10540),p=n.n(u),h=n(41113),m=n.n(h),g=n(81333),f={};f.styleTagTransform=m(),f.setAttributes=d(),f.insert=l().bind(null,"head"),f.domAPI=o(),f.insertStyleElement=p();r()(g.A,f),g.A&&g.A.locals&&g.A.locals},67413(e,t,n){n.d(t,{U:()=>a,s:()=>o});var i=n(2057);const r=i.createContext(null),a=()=>(0,i.useContext)(r),o=r.Provider},44847(e,t,n){n.d(t,{E:()=>k,q:()=>w});var i=n(78685),r=n(2057),a=n(7350),o=n(85072),s=n.n(o),l=n(97825),c=n.n(l),d=n(77659),u=n.n(d),p=n(55056),h=n.n(p),m=n(10540),g=n.n(m),f=n(41113),v=n.n(f),b=n(20604),y={};y.styleTagTransform=v(),y.setAttributes=h(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=g();s()(b.A,y);b.A&&b.A.locals&&b.A.locals;const x=r.createContext(null),w=()=>(0,r.useContext)(x),k=({children:e})=>{const{warning:t}=(0,a.e)(),n=(0,r.useCallback)(((e,n)=>{t({copy:e,id:n||null})}),[t]);return(0,i.jsx)(x.Provider,{value:{setError:n},children:e})}},58469(e,t,n){n.d(t,{u:()=>s});var i=n(97749),r=n(8983),a=n(40741),o=n(62771);function s(){const e=(0,r.q)(),t=(0,a.n)(),n=(0,o.As)(),s=e=>{var t,n;return"string"==typeof e?e:(null==e?void 0:e.response)&&(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)&&"string"==typeof(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.data)?e.response.data:(null==e?void 0:e.data)&&"string"==typeof(null==e?void 0:e.data)?e.data:(null==e?void 0:e.message)&&"string"==typeof(null==e?void 0:e.message)?e.message:"Frontend Error"},l=(e,t)=>
2e?t?": "+s(e):s(e):"";return(0,i.n)({mutationFn:async({errorMessage:i,errorObject:r})=>{if(t&&n&&n.authenticated&&e)try{await e.post("/errorlog",{browserInfo:{agent:navigator.userAgent,language:navigator.language},message:i?i+l(r,i):l(r)})}catch(e){console.log("Error in sendErrorLog",e)}},retry:!1})}},7009(e,t,n){n.d(t,{V:()=>h,s:()=>m});var i=n(2057),r=n(71445),a=n(81970),o=n(40741),s=n(38662),l=n(44847),c=n(73505),d=n(58469),u=n(2055);const p=(0,c.A)();function h(e,t){const{setError:n}=(0,l.q)(),{t:c}=(0,r.Bd)(),h=(0,u.m)(),m=(0,a.zy)(),g=(0,o.n)(),{mutateAsync:f}=(0,d.u)();return(0,i.useEffect)((()=>{var i,r,a,o,l,d,u,v;e.error&&504===(null===(r=null===(i=e.error)||void 0===i?void 0:i.response)||void 0===r?void 0:r.status)?m.pathname.startsWith("/error")||(localStorage.setItem("lastWorkingUrl",m.pathname+m.search),f({errorMessage:"Timeout waiting for get service",errorObject:t}),h(s.J.error+"?code=504")):e.error&&!(null==t?void 0:t.hideToast)&&g&&("string"==typeof(null===(o=null===(a=e.error)||void 0===a?void 0:a.response)||void 0===o?void 0:o.data)&&[400,409].includes(null===(d=null===(l=e.error)||void 0===l?void 0:l.response)||void 0===d?void 0:d.status)?n(null===(v=null===(u=e.error)||void 0===u?void 0:u.response)||void 0===v?void 0:v.data,p):n((null==t?void 0:t.message)||c("error.general"),p))}),[e.error]),e}function m(e,t){const{setError:n}=(0,l.q)(),{t:c}=(0,r.Bd)(),h=(0,a.zy)(),m=(0,u.m)(),g=(0,o.n)(),{mutateAsync:f}=(0,d.u)();return(0,i.useEffect)((()=>{var i,r,a,o,l,d,u,v;e.error&&504===(null===(r=null===(i=e.error)||void 0===i?void 0:i.response)||void 0===r?void 0:r.status)?h.pathname.startsWith("/error")||(f({errorMessage:"Timeout waiting for mutate service",errorObject:t}),(null==t?void 0:t.suppressTimeoutRedirect)||(localStorage.setItem("lastWorkingUrl",h.pathname+h.search),m(s.J.error+"?code=504"))):e.error&&!(null==t?void 0:t.hideToast)&&g&&("string"==typeof(null===(o=null===(a=e.error)||void 0===a?void 0:a.response)||void 0===o?void 0:o.data)&&[400,409].includes(null===(d=null===(l=e.error)||void 0===l?void 0:l.response)||void 0===d?void 0:d.status)?n(null===(v=null===(u=e.error)||void 0===u?void 0:u.response)||void 0===v?void 0:v.data,p):n((null==t?void 0:t.message)||c("error.general"),p))}),[e.error]),e}},17224(e,t,n){n.d(t,{Ay:()=>d,FD:()=>s,L$:()=>l,ml:()=>o});var i=n(2057),r=n(60799),a=n.n(r);const o=640,s=1280,l=340,c=(e,t)=>e<t,d=e=>{const[t,n]=(0,i.useState)((()=>c(window.innerWidth,e||768)));return(0,i.useEffect)((()=>{const t=a()((()=>{n(c(window.innerWidth,e||768))}),200);return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[]),t}},44550(e,t,n){n.d(t,{C_:()=>r,H_:()=>c,P6:()=>u,Qg:()=>o,WQ:()=>v,Xp:()=>l,Zf:()=>b,a$:()=>d,cl:()=>h,hI:()=>g,hY:()=>i,jf:()=>m,ke:()=>s,nZ:()=>p,pW:()=>a,yS:()=>f});const i="viewLayout",r="zoom",a="tool-settings",o="sortSearchResult",s="hideExpired",l="installDeclined",c="profile-info",d="offline-token",u="roles-info",p="dark-mode",h="drawerFirstTimeOpenAug",m="drawerFirstTimeOpenDau",g="drawerOpenAug",f="drawerOpenDau",v="iqBuddySettings",b="adessoNativeLanguage"},8236(e,t,n){n.d(t,{h:()=>i});const i={from:{opacity:0,y:24},enter:{opacity:1,y:0},leave:{opacity:0,y:24},config:{duration:200}}},83262(e,t,n){function i(){return-1!==window.location.search.indexOf("brand=delta")?"DELTA":"EKS"}n.d(t,{P:()=>i})},8983(e,t,n){n.d(t,{e:()=>m,q:()=>h});var i=n(78685),r=n(2057),a=n(28520),o=n(67413),s=n(93012),l=n(45602),c=n(62771),d=n(71445);const u=new s.E({defaultOptions:{queries:{networkMode:"offlineFirst",refetchOnWindowFocus:!1},mutations:{networkMode:"offlineFirst"}}}),p=r.createContext(null),h=()=>(0,r.useContext)(p),m=(0,r.memo)((({children:e})=>{const t=(0,o.U)(),n=(0,c.As)(),{i18n:s}=(0,d.Bd)(),[h]=(0,r.useState)((()=>{const e=a.A.create({baseURL:t.backendServiceBaseUrl,headers:{"Accept-Language":s.language}});return e.interceptors.request.use((e=>new Promise((async t=>{n.token&&(e.headers.Authorization=`Bearer ${n.token}`),t(e)}))),(e=>Promise.reject(e))),e.defaults.headers.post["Content-Type"]="application/json;charset=utf-8",e}));return(0,i.jsx)(p.Provider,{value:h,children:(0,i.jsx)(l.Ht,{client:u,children:e})})}));m.displayName="HttpProvider"},2236(e,t,n){n.d(t,{U:()=>a});var i=n(2057),r=n(71445);function a(){const{i18n:e}=(0,r.Bd)();return(0,i.useCallback)((()=>{let t=e.language;return t?t.length>2&&(t=t.substring(0,2)):t="de","de"!==t&&"en"!==t&&"es"!==t&&"fr"!==t&&"it"!==t&&(t="de"),t}),[e.language])}},86479(e,t,n){n.d(t,{$:()=>r});var i=n(2057);function r(e,t){const n=(0,i.useRef)();(0,i.useEffect)((()=>{n.current=e}),[e]),(0,i.useEffect)((()=>
2{if(null!==t){const e=setInterval((function(){n.current()}),t);return()=>clearInterval(e)}}),[t])}},48049(e,t,n){n.d(t,{$:()=>s,s:()=>o});var i=n(78685),r=n(2057);const a=r.createContext(null),o=()=>(0,r.useContext)(a),s=({children:e})=>{const t=(0,r.useRef)((()=>{console.log("Called outermost accesscodeprovider")}));return(0,i.jsx)(a.Provider,{value:{refetch:t},children:e})}},16682(e,t,n){n.d(t,{z:()=>s});var i=n(78685),r=(n(2057),n(30313)),a=n(40160),o=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const s=e=>{var{to:t,children:n}=e,s=o(e,["to","children"]);const l=(0,a.V)(),c=l.get("brand");let d="";return c&&-1===(null==t?void 0:t.indexOf("brand=delta"))&&(d=l.entries.length>1||-1!==(null==t?void 0:t.indexOf("?"))?"&brand="+c:"?brand="+c),(0,i.jsx)(r.k2,Object.assign({},s,{to:t+d,children:n}))}},38662(e,t,n){n.d(t,{J:()=>a,u:()=>r});const i="/lists",r={bookmarks:"bookmarks",offline:"offline",playlistDetail:i+"/detail/own/",playlistDetailCurated:i+"/detail/allango/",mycontent:"/mycontent",product:"/product",bildungslogin:"/bildungslogin",eksdi:"/eksdi",course:"/courses",sharedMemberCourse:"/courses/member/",sharedCollaboratorCourse:"/courses/"},a={welcome:"/",product:{index:r.product+"/:id",augmented:r.product+"/:id/aug/:isbn"},dashboard:"/dashboard",usercontent:{index:r.mycontent,bookmark:r.mycontent+"/"+r.bookmarks,offline:r.mycontent+"/"+r.offline},playlist:{index:i,detail:r.playlistDetail+":id",allango:r.playlistDetailCurated+":id"},course:{index:r.course,studentDetail:r.sharedMemberCourse+":id",detail:r.course+"/:id"},discover:"/discover",library:"/library",settings:"/settings",impressum:"/impressum",privacy:"/privacy",agb:"/terms-of-use",dau:"/dau/:id",uhb:"/uhb/:id",ibisacam:"/ibisacam",error:"/error",version:"/version",accessibility:"/accessibility",bildungslogin:{media:r.bildungslogin+"/media/:mediaid"},eksdi:{index:"eksdi/:mapId",taskGroupWithChapter:r.eksdi+"/:mapId/:chapterId/:moduleId/:taskGroupId",taskGroupWithModule:r.eksdi+"/:mapId/:moduleId/:taskGroupId",taskGroup:r.eksdi+"/:mapId/:taskGroupId"},xapi:"/xapi",reporting:"/reporting",licenseAdmin:"/licenseadmin"}},2055(e,t,n){n.d(t,{m:()=>o});var i=n(2057),r=n(81970),a=n(40160);const o=()=>{const e=(0,r.Zp)(),t=(0,a.V)(),n=t.get("brand"),o=(0,i.useRef)();t.entries.length>1?o.current="&brand="+n:o.current="?brand="+n;return(0,i.useCallback)(((t,i)=>{const r="string"==typeof(a=t)&&a.endsWith("?")?a.slice(0,-1):a;var a;window.location.href.endsWith(r)||(n&&"string"==typeof r&&-1===r.indexOf(n)?(-1!==r.indexOf("?")?o.current=o.current.replace("?","&"):-1===o.current.indexOf("?")&&(o.current=o.current.replace("&","?")),e(r+o.current,i)):e(r,i))}),[e,n])}},62771(e,t,n){n.d(t,{C8:()=>x,As:()=>y});var i=n(78685),r=n(2057),a=n(40741),o=n(83262),s=n(67413),l=n(44828),c=n(44550);class d{constructor(){var e;let t={realmAccessRoles:[]},n={username:"empty",id:"none existing"},i=!1;const r=localStorage.getItem(c.a$);r&&(i=!0,n=JSON.parse(localStorage.getItem(c.H_)),t={realmAccessRoles:(null===(e=JSON.parse(localStorage.getItem(c.P6)))||void 0===e?void 0:e.realmAccessRoles)||[]}),this.authorization=t,this.profile=n,this.authenticated=i,this.token=r,this.authInitialized=!0}logout(){throw{msg:"Logout is not allowed offline!"}}login(){throw{msg:"Login is not allowed online"}}changePassword(){throw{msg:"Change Password is not allowed online"}}confirmOptin(){throw{msg:"Opt-in is not possible offline"}}updateTokenIfNecessary(){return new Promise((()=>{}))}}var u=n(89969),p=n(28520),h=n(4336);const m=window.fetch;var g=n(38662);const f=new Set(["schooladmin","teacher","student","tessin_optin"]);class v{hasRoles(){return this.authorization.realmAccessRoles.some((e=>f.has(e)))}getRole(){const e=new Set([...this.authorization.realmAccessRoles]);return e.has("eks_content_admin")?"eks_content_admin":e.has("schooladmin")?"schooladmin":e.has("editor")?"editor":e.has("teacher")?"teacher":"student"}async updateTokenWithNewToken(){return this.isRepairing=!0,p.A.post(`${this.backendServiceBaseUrl}/bilo/repairuser`,{},{headers:{Authorization:`Bearer ${this.token}`}}).then((()=>(this.isRepairing=!1,this.keycloak.updateToken(-1)))).catch((e=>{throw this.isRepairing=!1,e}))}async updateTokenIfNecessary(){await this.keycloak.updateToken(30)&&this.setEverythingAfterSuccessfullAuth()}setupTokenInterceptorSafe(){var e;this.interceptorSetupDone||this.token&&(e=()=>this.token,window.fetch=function(t,n={}){const i=t instanceof Request?t.url:t;if("string"==typeof i&&i.includes("/asset/pdf-proxy/")){const i=e();if(i){const e=Object.assign({},n);return e.headers=new Headers(n.headers||{}),e.headers.set("Authorization",`Bearer ${i}`),m(t,e)}}return m(t,n)},this.interceptorSetupDone=!0,console.log("Global Fetch Interceptor set up successfully."))}
2constructor(e,t){this.authorization={realmAccessRoles:[]},this.profile={username:"empty",id:"none existing"},this.authenticated=!1,this.inErrorState=!1,this.refreshToken="",this.token="",this.redirectUri="",this.authInitialized=!1,this.showLoginConsentModal=!1,this.backendServiceBaseUrl="",this.isIbis=!1,this.isRepairing=!1,this.mapToUserProfile=e=>({username:e.idTokenParsed.name,email:e.idTokenParsed.email,firstName:e.idTokenParsed.given_name,lastName:e.idTokenParsed.family_name,id:e.idTokenParsed.sub}),this.logout=e=>Promise.resolve(this.keycloak.logout(e).then((()=>{this.resetEverything()}))),this.login=e=>Promise.resolve(this.keycloak.login(e).then((()=>{this.setEverythingAfterSuccessfullAuth()}))),this.changePassword=e=>Promise.resolve(this.keycloak.login(Object.assign({action:"UPDATE_PASSWORD"},e)).then((()=>{this.setEverythingAfterSuccessfullAuth()}))),this.confirmOptin=async()=>{try{await p.A.put(`${this.backendServiceBaseUrl}/optin`,{},{headers:{Authorization:`Bearer ${this.token}`}}),await this.keycloak.updateToken(-1),this.setEverythingAfterSuccessfullAuth()}catch(e){throw console.error("Confirm optin failed",e),e}},this.resetEverything=()=>{this.authorization={realmAccessRoles:[]},this.profile={username:"empty"},this.authenticated=!1,this.inErrorState=!1,this.refreshToken="",this.token="",this.showLoginConsentModal=!1,(0,h.a)({eventType:"sessionParameters",data:{customerType:"",loginstatus:""}}),localStorage.removeItem(c.a$),localStorage.removeItem(c.H_),localStorage.removeItem(c.P6)},this.setEverythingAfterSuccessfullAuth=()=>{var e;this.authenticated=!0,this.inErrorState=!1,this.profile=this.mapToUserProfile(this.keycloak),this.refreshToken=this.keycloak.refreshToken,this.token=this.keycloak.token,this.authorization={realmAccessRoles:(null===(e=this.keycloak.realmAccess)||void 0===e?void 0:e.roles)||[]},localStorage.setItem(c.a$,this.refreshToken),localStorage.setItem(c.H_,JSON.stringify(this.profile)),localStorage.setItem(c.P6,JSON.stringify(this.authorization)),this.showLoginConsentModal=this.authorization.realmAccessRoles.includes("tessin_optin"),this.setAuthApi(Object.assign(Object.assign({},this),{login:this.login,logout:this.logout,changePassword:this.changePassword,confirmOptin:this.confirmOptin})),this.hasRoles()?(0,h.a)({eventType:"sessionParameters",data:{customerType:this.getRole(),loginstatus:"eingeloggt"}}):setTimeout((()=>{var e;if(this.authorization={realmAccessRoles:(null===(e=this.keycloak.realmAccess)||void 0===e?void 0:e.roles)||[]},this.hasRoles())this.setEverythingAfterSuccessfullAuth();else{if(this.isRepairing)return;if(this.isIbis)return void(window.location.href=window.location.origin+g.J.welcome);this.updateTokenWithNewToken().then((()=>this.setEverythingAfterSuccessfullAuth())).catch((e=>{console.error("Update token failed",e)}))}}),500)},this.interceptorSetupDone=!1,this.backendServiceBaseUrl=e,this.setAuthApi=t;let n="eks";window.location.pathname.startsWith("/ibisacam")?(n="ibis",this.isIbis=!0):-1!==window.location.search.indexOf("brand=delta")&&(n="delta"),this.keycloak=new u.A(`keycloak-${n}.json`),this.keycloak.onTokenExpired=()=>{this.keycloak.updateToken(20).then((()=>{this.setEverythingAfterSuccessfullAuth()})).catch((e=>{console.log("Error refreshing token"+e),this.resetEverything()}))},this.keycloak.init({checkLoginIframe:!1,onLoad:"check-sso"}).then((()=>
2{if(this.keycloak.authenticated)this.setEverythingAfterSuccessfullAuth();else if(location.hash||-1!==location.search.indexOf("shhh"));else{const e=new URLSearchParams(location.search);e.set("shhh","true");const t=new URL(location.href);t.search=e.toString(),console.log("start login prompt none url: ",t),this.keycloak.login({prompt:"none",redirectUri:t.toString()})}this.authInitialized=!0})).catch((e=>{console.log("We have an error from the keycloak",e)})).finally((()=>{this.authInitialized=!0,this.setAuthApi(Object.assign(Object.assign({},this),{login:this.login,logout:this.logout,changePassword:this.changePassword})),this.setupTokenInterceptorSafe()}))}}const b=r.createContext(null),y=()=>(0,r.useContext)(b),x=({children:e})=>{const t=(0,a.n)(),[n,c]=(0,r.useState)(null),[u,p]=(0,r.useState)(),{backendServiceBaseUrl:h}=(0,s.U)(),m="DELTA"===(0,o.P)()?"?brand=delta&registration=false":"?registration=false",g=(0,r.useCallback)((async()=>{let e="eks";window.location.pathname.startsWith("/ibisacam")?e="ibis":-1!==window.location.search.indexOf("brand=delta")&&(e="delta"),p(await(0,l.QK)(e))}),[m]);return(0,r.useEffect)((()=>{g()}),[g]),(0,r.useEffect)((()=>{if(navigator.onLine){if(u&&(!n||n instanceof d)){const e=new v(h,c);c(e)}}else c(new d)}),[t,h,u,m]),(0,r.useEffect)((()=>{if(n&&n.authInitialized&&-1!==location.search.indexOf("shhh")){const e=new URLSearchParams(location.search);e.delete("shhh");const t=e.size>0?"?"+e.toString():"";window.history.replaceState({},"",location.pathname+t)}}),[n]),n&&(0,i.jsx)(b.Provider,{value:n,children:e})}},15719(e,t,n){n.d(t,{M:()=>l});var i=n(78685),r=n(2057),a=n(72924),o=n(62771),s=n(2236);const l=({text:e,options:t,variant:n="primary",icon:l,size:c,id:d,className:u})=>{const p=(0,o.As)(),h=(0,s.U)(),m=(0,r.useCallback)((()=>{const e=(null==t?void 0:t.redirectUri)?t.redirectUri:window.location.origin+window.location.pathname+window.location.search;p.login({locale:h(),redirectUri:e}).catch((e=>{console.log("Error login",e)}))}),[p,h,null==t?void 0:t.redirectUri]);return(0,i.jsx)(a.$,{className:u,id:d,onClick:m,variant:n,icon:l,size:c,offlineDisabled:!0,children:e})}},89868(e,t,n){n.d(t,{o:()=>x});var i=n(78685),r=n(2057),a=n(71445),o=n(85072),s=n.n(o),l=n(97825),c=n.n(l),d=n(77659),u=n.n(d),p=n(55056),h=n.n(p),m=n(10540),g=n.n(m),f=n(41113),v=n.n(f),b=n(18894),y={};y.styleTagTransform=v(),y.setAttributes=h(),y.insert=u().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=g();s()(b.A,y);b.A&&b.A.locals&&b.A.locals;const x=({inProgress:e=!1,children:t,withDelay:n=!0,small:o,label:s,className:l=""})=>{const c=(0,r.useRef)(),[d,u]=(0,r.useState)(n),p=(0,r.useRef)(null),{t:h}=(0,a.Bd)(),m=o?(0,i.jsx)("svg",{viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7.229 1.173a9.25 9.25 0 1011.655 11.412 1.25 1.25 0 10-2.4-.698 6.75 6.75 0 11-8.506-8.329 1.25 1.25 0 10-.75-2.385z"})}):(0,i.jsx)("svg",{viewBox:"0 0 44 44",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M15.542 1.487A21.507 21.507 0 00.5 22c0 11.874 9.626 21.5 21.5 21.5 9.847 0 18.364-6.675 20.809-16.072a1.5 1.5 0 00-2.904-.756C37.803 34.755 30.473 40.5 22 40.5 11.783 40.5 3.5 32.217 3.5 22c0-8.137 5.3-15.247 12.942-17.65a1.5 1.5 0 10-.9-2.863z"})});return(0,r.useEffect)((()=>{d&&e&&(p.current=setTimeout((()=>{p.current=null,u(!1)}),300))}),[d,e]),(0,r.useEffect)((()=>{e||null!=p.current&&clearTimeout(p.current)}),[e]),(0,r.useEffect)((()=>()=>{null!=p.current&&clearTimeout(p.current)}),[]),(0,i.jsxs)(i.Fragment,{children:[!d&&e&&(0,i.jsxs)("div",{className:`spinner-wrapper ${l}`,children:[(0,i.jsxs)("div",{ref:c,className:o?"spinner spinner--small":"spinner",children:[m,(0,i.jsx)("span",{className:"sr-only",children:h("ui.ariaLoading")})]}),s&&(0,i.jsx)("p",{className:"spinner-label",children:s})]}),!e&&t]})}},72016(e,t,n){n.d(t,{db:()=>a});var i=n(65788);class r extends i.Ay{constructor(){super("eksCache"),this.version(10).stores({pdfs:"id, title",daupdfs:"id, title",htmls:"id, title",srt:"id, title",storageRequests:"primeKey, asset.id, state, user, value, type, modified, licenseValidTo",currentOfflineManager:"id, lastAlive",mediaBookStructures:"id, structure",maxProduct:"id, title",dauSessions:"id, user, modified",dauEdits:"dauEditId, sessionId, page, modified, tool",lastInteractions:"targetId, when"})}}const a=new r},79134(e,t,n){n.d(t,{A:()=>l});var i=n(78685),r=(n(2057),n(71445)),a=n(62255),o=n(12123),s=n(81970);const l=({badgeCount:e,assetId:t,teacherOnly:n=!1,role:l="",accessLocked:c=!1,accessUnlocked:d=!1,demo:u=!1,addedByNp:p,isUhb:h=!1,className:m=""})=>{const{id:g}=(0,s.g)(),f=(0,o.A)(t),{t:v}=(0,r.Bd)(),b=(0,s.zy)(),y=g&&g.startsWith("NP")?g:(()=>{const e=h?"/uhb/":"/dau/";return b.pathname.includes(e)?b.pathname.replace(e,""):b.search.includes("id=NP")?b.search.substring(b.search.indexOf("id=")+3,b.search.lastIndexOf("%")):t.includes("NP")?t.substring(t.indexOf("NP"),t.lastIndexOf("/")):void 0})(),x=y&&y.startsWith("NP200")&&p===y,w=null==p?void 0:p.startsWith("NP300"),k=(x||h||y&&p&&p!==y)&&!p.startsWith("NP300"),A=[{key:"offline",type:"success",content:v("offline.offline"),condition:f},{key:"accessLocked",type:"error",content:v("badge.accesslocked"),condition:c},{key:"accessUnlocked",type:"success",content:v("badge.accessunlocked"),condition:d},{key:"lernPlus",type:"plus",content:v("badge.lernPlus"),badgeClassName:"bg-surfaceSuccess text-textSuccess w-fit",condition:w},{key:"uPlus",type:"plus",content:v("badge.uPlus"),condition:!w&&k},{key:"teacherOnly",type:"vip",content:v("badge.teacher"),condition:!w&&!k&&(n||"L"===l)},{key:"demo",type:"demo",content:v("badge.demo"),condition:u}].filter((({condition:e})=>e)).slice(0,e||5).map((({key:e,type:t,badgeClassName:n,content:r})=>(0,i.jsx)(a.E,{type:t,className:n,children:r},e)));if(0!==A.length)return(0,i.jsx)("span",{className:`flex flex-wrap gap-1 ${m}`,children:A})}},62255(e,t,n){n.d(t,{E:()=>j});var i,r=n(78685),a=n(2057),o=n(34015);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(null,arguments)}const l=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=a.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20m-1-5h2v2h-2zm0-8h2v6h-2z"})));var c;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(null,arguments)}const u=e=>a.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),c||(c=a.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m-.997-6 7.07-7.071-1.414-1.414-5.656 5.657-2.829-2.829-1.414 1.414z"})));var p;function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},h.apply(null,arguments)}const m=e=>a.createElement("svg",h({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),p||(p=a.createElement("path",{fill:"#111212",d:"M19 10h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1h1V9a7 7 0 0 1 14 0zM5 12v8h14v-8zm6 2h2v4h-2zm6-4V9A5 5 0 0 0 7 9v1z"})));var g=n(61695),f=n(85072),v=n.n(f),b=n(97825),y=n.n(b),x=n(77659),w=n.n(x),k=n(55056),A=n.n(k),T=n(10540),S=n.n(T),E=n(41113),I=n.n(E),C=n(15813),_={};
2_.styleTagTransform=I(),_.setAttributes=A(),_.insert=w().bind(null,"head"),_.domAPI=y(),_.insertStyleElement=S();v()(C.A,_);C.A&&C.A.locals&&C.A.locals;const j=({type:e,children:t,className:n,icon:i})=>(0,r.jsx)("span",{className:`badge badge--${e} ${n}`,children:(0,r.jsxs)("span",{children:["success"===e&&(0,r.jsx)(o.I,{source:u}),"error"===e&&(0,r.jsx)(o.I,{source:l}),"vip"===e&&(0,r.jsx)(o.I,{source:m}),"ai"===e&&(0,r.jsx)(o.I,{source:g.A}),"custom"===e&&i,t]})})},72924(e,t,n){n.d(t,{$:()=>u,Z:()=>d});var i=n(78685),r=n(2057),a=n(71445),o=n(40741),s=n(44847),l=n(89868),c=(n(3960),function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n});const d=(e,t)=>{const{className:n,icon:i,reverse:r,size:a,variant:o,modifier:s,align:l,border:c}=e;let d=n?n+" button ":"button ";return d+=i?"button--icon ":"",d+=t?"":"button--icon-only ",d+=r?"button--reverse ":"",d+=a?"button--"+a:"",d+=o?" button--"+o:"",d+=s?" button--"+s:"",d+=" button--"+l,d+=c?" border":"",d},u=e=>{var{offlineDisabled:t,title:n,reverse:u,variant:p,modifier:h,icon:m,size:g,className:f,children:v,data_cy:b="button",loading:y,align:x="center",border:w,autofocus:k}=e,A=c(e,["offlineDisabled","title","reverse","variant","modifier","icon","size","className","children","data_cy","loading","align","border","autofocus"]);const T=(0,s.q)(),[S,E]=(0,r.useState)(!1);(0,r.useEffect)((()=>{E(y),y&&setTimeout((()=>{E(!1)}),1e4)}),[y]);const I=(0,r.useCallback)((()=>d({className:f,icon:m,reverse:u,size:g,variant:p,modifier:h,align:x,border:w},v)),[m,v,f,u,g,p,h,x,w]),{ariaLabel:C,onClick:_}=A,j=c(A,["ariaLabel","onClick"]),N=(0,o.n)(),{t:L}=(0,a.Bd)(),P=(0,r.useCallback)((e=>{e.preventDefault(),T.setError(L("offline.disabledAction"))}),[L,T]);return(0,i.jsxs)("button",Object.assign({"data-cy":b},j,{onClick:t&&!N?P:_,"aria-label":C,title:n,className:I(),autoFocus:k,children:[(0,i.jsx)(l.o,{small:!0,inProgress:S}),v,m]}))}},97368(e,t,n){n.d(t,{o:()=>T});var i,r=n(78685),a=n(2057),o=n(34015),s=n(99525);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},l.apply(null,arguments)}const c=e=>a.createElement("svg",l({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=a.createElement("path",{fill:"#111212",d:"M5 11h14v2H5z"})));var d=n(85072),u=n.n(d),p=n(97825),h=n.n(p),m=n(77659),g=n.n(m),f=n(55056),v=n.n(f),b=n(10540),y=n.n(b),x=n(41113),w=n.n(x),k=n(10148),A={};A.styleTagTransform=w(),A.setAttributes=v(),A.insert=g().bind(null,"head"),A.domAPI=h(),A.insertStyleElement=y();u()(k.A,A);k.A&&k.A.locals&&k.A.locals;const T=({onClick:e,children:t,value:n,checked:i,onChange:l,disabled:d,className:u,initValue:p,indeterminate:h,data_cy:m="checkBox",ariaLabel:g,displayCheckIcon:f=!0,id:v="",childWrapper:b=!1})=>{const[y,x]=(0,a.useState)(i||p||!1);(0,a.useEffect)((()=>{void 0!==i&&x(i||!1)}),[i]);const w=(0,a.useCallback)((e=>{void 0===i&&x(e.target.checked),l&&l(e)}),[l,i]),k=(0,a.useCallback)((t=>{e&&e(t)}),[e]);return(0,r.jsxs)("label",{className:`${u} app-checkbox ${d&&"app-checkbox--disabled"}`,"data-cy":m,htmlFor:`checkbox-${v}`,children:[(0,r.jsxs)("div",{className:"app-checkbox__wrapper",children:[(0,r.jsx)("input",{id:`checkbox-${v}`,onClick:k,className:`app-checkbox__input ${h?"app-checkbox__input--intermediate":""} ${y?"app-checkbox__input--checked":""}`,disabled:d,"aria-disabled":d,onChange:w,value:n,defaultChecked:p,type:"checkbox","aria-label":g,checked:p?null:i,"aria-checked":i}),(0,r.jsx)("div",{className:`app-checkbox__checkbox ${d&&"app-checkbox__checkbox--disabled"+(y?"-checked":"")}`,children:f&&(0,r.jsxs)(r.Fragment,{children:[!0!==h&&y&&(0,r.jsx)(o.I,{source:s.A}),h&&(0,r.jsx)(o.I,{source:c})]})})]}),b?(0,r.jsx)("div",{className:"flex-1",children:t}):(0,r.jsx)("p",{children:t})]})}},54801(e,t,n){n.d(t,{a:()=>S});var i=n(78685),r=n(2057),a=n(40741);var o=n(71445),s=n(21346),l=n(72924),c=n(34015),d=n(67940),u=n(85072),p=n.n(u),h=n(97825),m=n.n(h),g=n(77659),f=n.n(g),v=n(55056),b=n.n(v),y=n(10540),x=n.n(y),w=n(41113),k=n.n(w),A=n(30912),T={};T.styleTagTransform=k(),T.setAttributes=b(),T.insert=f().bind(null,"head"),T.domAPI=m(),T.insertStyleElement=x();p()(A.A,T);A.A&&A.A.locals&&A.A.locals;const S=({className:e,label:t,inputName:n,initialValue:u="",icon:p=!1,suggestions:h,onSelect:m,onKeyUp:g,placeholder:f,onReset:v,isLarge:b=!1,offlineMessage:y,data_cy:x="comboBox"+(t||n),errorMessage:w,hiddenShadow:k=!1,hasDefaultActiveOption:A=!0,classNameInput:T})=>{const[S,E]=(0,r.useState)(""),[I,C]=(0,r.useState)(!1),[_,j]=(0,r.useState)(A?h[0]:void 0),N=(0,a.n)(),{t:L}=(0,o.Bd)();(0,r.useEffect)((()=>{E(u||"")}),[u]);const P=(e=>{const t=r.useRef();return r.useEffect((()=>{const n=n=>
2{t.current&&!t.current.contains(n.target)&&e()};return document.addEventListener("click",n,!0),()=>{document.removeEventListener("click",n,!0)}}),[t,e]),t})((0,r.useCallback)((()=>{C(!1)}),[])),D=(0,r.useCallback)((e=>{E(e.target.value),C(!0)}),[]),M=(0,r.useCallback)((e=>{const t=h.indexOf(_);j(h[t+e])}),[_,h]),O=(0,r.useCallback)((e=>{if(N||!N&&!y)switch(e.key){case"Enter":""!==_&&void 0!==_?(E(_),m(_),C(!1)):(m(e.target.value),C(!1));break;case"ArrowUp":I||C(!0),M(-1);break;case"ArrowDown":I||C(!0),M(1);break;default:g(e.target.value)}}),[m,g,I,M,_,N,y]),R=(0,r.useCallback)((e=>{E(e),m(e),C(!1)}),[m]),z=(0,r.useCallback)((()=>{E(""),m(""),C(!1),v&&v()}),[m,v]),B=(0,r.useCallback)((e=>{e.relatedTarget&&!e.currentTarget.contains(e.relatedTarget)&&C(!1)}),[]);return(0,i.jsxs)("div",{ref:P,className:`combobox ${b?"combobox--lg":""} ${e||""} ${k?"combobox--no-shadow":""}`,onBlur:B,children:[p&&(0,i.jsx)("div",{className:"combobox__icon",children:p}),(0,i.jsx)(s.p,{role:"combobox","aria-controls":"comboboxtypes","aria-expanded":I,className:`combobox__input combobox__input${p?"--withIcon":""} ${T||""}`,"aria-label":t,onKeyUp:O,value:S,onChange:D,onFocus:()=>C(!0),placeholder:f,"aria-haspopup":!0,"aria-autocomplete":"list","data-active-option":_,"aria-activedescendant":_,data_cy:x,type:"search",name:n,autoComplete:"off"}),(0,i.jsx)("ul",{id:"comboboxtypes",role:"listbox","aria-label":t,className:"combobox__options",children:I&&h&&h.map(((e,t)=>(0,i.jsx)("li",{onClick:()=>R(e),className:"combobox__option "+(_===e?"combobox__option--active":""),role:"option",id:e,"data-cy":x+e,children:e},t)))}),!N&&y&&""!==S&&null!==S&&(0,i.jsx)("div",{className:"combobox__options",children:(0,i.jsx)("p",{className:"combobox__option",children:y})}),w&&(0,i.jsx)("div",{className:"combobox__options",children:(0,i.jsx)("p",{className:"combobox__option",children:w})}),""!==S&&null!==S&&(0,i.jsx)(l.$,{className:"combobox__reset",ariaLabel:L("ui.ariaClear"),variant:"plain",icon:(0,i.jsx)(c.I,{source:d.A}),onClick:z,"data-cy":x+"Reset"})]})}},66725(e,t,n){n.d(t,{u:()=>_});var i,r=n(78685),a=n(2057),o=n(40252),s=n(40741),l=n(71445),c=n(34015);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(null,arguments)}const u=e=>a.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=a.createElement("path",{fill:"#111212",d:"m12 16-6-6h12z"})));var p=n(74762),h=n(99525),m=n(85072),g=n.n(m),f=n(97825),v=n.n(f),b=n(77659),y=n.n(b),x=n(55056),w=n.n(x),k=n(10540),A=n.n(k),T=n(41113),S=n.n(T),E=n(22389),I={};I.styleTagTransform=S(),I.setAttributes=w(),I.insert=y().bind(null,"head"),I.domAPI=v(),I.insertStyleElement=A();g()(E.A,I);E.A&&E.A.locals&&E.A.locals;const C=({condition:e,wrapper:t,children:n})=>e?t(n):n,_=({preLabel:e,label:t,items:n,checkboxItems:i,offlineDisabled:d=!0,asModal:m=!1,asSelect:g=!1,hiddenIcon:f=!1,elements:v,onSelect:b,align:y="end",side:x,buttonType:w="default",markSelected:k=!1,selected:A,data_cy:T="dropdown-menu-button",ariaLabel:S,title:E,iconOnly:I=!1,asPortal:_=!0,contentClass:j="",triggerClass:N="",itemClass:L="",isSelect:P=!1,ownIcon:D,closeOnElementClick:M=!1,handleOpenDropdown:O})=>{const[R,z]=(0,a.useState)(!1),B=(0,s.n)(),{t:U}=(0,l.Bd)(),F=(0,a.useCallback)((e=>{e.preventDefault(),e.stopPropagation()}),[]);return(0,r.jsxs)(o.bL,{open:R,modal:m,onOpenChange:e=>{z(e),O&&O(e)},children:[(0,r.jsx)(o.l9,{asChild:!0,children:(0,r.jsxs)("button",{onClick:F,className:`${D?"":"dropdown-menu__button"} nice-word-break button ${t||e?"button--icon":"button--icon-only"} button--${w} ${R&&!D&&"bg-surfaceSubdued"} ${I&&"button--icon-only"} ${N&&N}`,"data-cy":T,"aria-label":S,title:E,children:[(t||e)&&(0,r.jsxs)("span",{children:[e&&e,t&&t]}),D&&D,!f&&!g&&(0,r.jsx)(c.I,{source:p.A}),!f&&g&&(0,r.jsx)(c.I,{source:u})]})}),(0,r.jsx)(C,{condition:_,wrapper:e=>(0,r.jsx)(o.ZL,{children:e}),children:(0,r.jsx)(o.UC,{className:`dropdown-menu__content nice-word-break overflow-auto ${j&&j}`,align:y,side:x,onFocusOutside:e=>e.preventDefault(),onClick:e=>{e.stopPropagation(),M&&z(!1)},role:(null==v?void 0:v.length)>0?"list":"menu",children:!B&&d?(0,r.jsx)(o._2,{className:"dropdown-menu__item",children:(0,r.jsx)("p",{className:"",children:U("ui.actionOfflineDisabled")})}):(0,r.jsxs)(r.Fragment,{children:[null==i?void 0:i.map(((e,t)=>{var n;return(0,r.jsx)(o.H_,{onClick:e=>{if(0===e.detail){const t=e.currentTarget.querySelector('input[type="checkbox"]');t&&t.click()}},onSelect:e=>e.preventDefault(),"aria-checked":null===(n=null==e?void 0:e.props)||void 0===n?void 0:n.checked,"data-state":void 0,children:e},t)})),null==v?void 0:v.map(((e,t)=>(0,r.jsxs)("div",{children:[("input"===e.key||P)&&(0,r.jsx)("div",{className:"w-full",children:e}),"input"!==e.key&&!P&&(0,r.jsx)(o._2,{onClick:e=>{if(e.preventDefault(),0===e.detail){const t=e.currentTarget.querySelector("button"),n=e.currentTarget.querySelector("a");t&&t.click(),n&&n.click()}},className:"dropdown-menu__element",role:"listitem",children:e})]},((null==e?void 0:e.key)||"")+"-"+t))),null==n?void 0:n.map(((e,t)=>(0,r.jsx)("div",{lang:null==e?void 0:e.lang,children:(0,r.jsxs)(o._2,{onSelect:()=>b(e),className:`dropdown-menu__item ${L}`,"data-cy":e.data_cy,"aria-label":e.ariaLabel,children:[(0,r.jsx)("p",{children:e.label}),e.icon,k&&A&&A===e.value&&(0,r.jsx)(c.I,{source:h.A,accessibilityLabel:U("ui.icons.checkmark")})]})},t+"-"+e.value)))]})})})]})}},34015(e,t,n){n.d(t,{I:()=>b});var i=n(78685),r=(n(2057),n(85072)),a=n.n(r),o=n(97825),s=n.n(o),l=n(77659),c=n.n(l),d=n(55056),u=n.n(d),p=n(10540),h=n.n(p),m=n(41113),g=n.n(m),f=n(3157),v={};v.styleTagTransform=g(),v.setAttributes=u(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=h();a()(f.A,v);f.A&&f.A.locals&&f.A.locals;function b({source:e,accessibilityLabel:t,fill:n,className:r}){let a;a="function"==typeof e?"function":"placeholder"===e?"placeholder":"external";const o=e,s={function:(0,i.jsx)(o,{className:`icon__src ${n||""}`,focusable:"false","aria-hidden":"true"}),placeholder:(0,i.jsx)("div",{className:"icon__placeholder"}),external:(0,i.jsx)("img",{className:"icon__src",src:`data:image/svg+xml;utf8,${e}`,alt:""})};return(0,i.jsxs)("span",{className:`icon ${r||""}`,children:[(0,i.jsx)("span",{className:"sr-only",children:t}),s[a]]})}},47665(e,t,n){n.d(t,{w:()=>A});var i=n(78685),r=n(2057),a=n(71445),o=n(72924),s=n(34015),l=n(6967),c=n(85072),d=n.n(c),u=n(97825),p=n.n(u),h=n(77659),m=n.n(h),g=n(55056),f=n.n(g),v=n(10540),b=n.n(v),y=n(41113),x=n.n(y),w=n(8675),k={};
2k.styleTagTransform=x(),k.setAttributes=f(),k.insert=m().bind(null,"head"),k.domAPI=p(),k.insertStyleElement=b();d()(w.A,k);w.A&&w.A.locals&&w.A.locals;const A=({className:e,containerClass:t,icon:n,copy:c,optIn:d,optInIcon:u,optInText:p,optOut:h,optOutText:m,onClose:g,data_cy:f="infoBox",id:v,role:b="status",focus:y=!1})=>{const{t:x}=(0,a.Bd)(),w=(0,r.useRef)(null),k=(0,r.useRef)(null),A=(0,r.useCallback)((e=>{var t;e.preventDefault(),e.stopPropagation(),g(),y&&(null===(t=null==k?void 0:k.current)||void 0===t||t.focus())}),[y]);return(0,r.useEffect)((()=>{y&&(k.current=document.activeElement,setTimeout((()=>{var e;null===(e=w.current)||void 0===e||e.focus()}),0));const e=e=>{w.current&&!w.current.contains(e.target)&&(k.current=null,g())},t=e=>{"Escape"===e.key?A(e):"Enter"!==e.key&&" "!==e.key||!w.current||w.current.contains(e.target)||(k.current=null,g())};return(null==w?void 0:w.current)&&y&&(document.addEventListener("mousedown",e),document.addEventListener("keydown",t)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("keydown",t)}}),[y]),(0,i.jsx)("div",{className:`info-box__container focus:bg-textWarning ${t&&t}`,"data-cy":f,id:v,role:b,tabIndex:y?-1:void 0,ref:w,children:(0,i.jsxs)("div",{className:`info-box ${e||""}`,children:[(0,i.jsx)("div",{className:"info-box__icon",children:n&&n}),(0,i.jsxs)("div",{className:"info-box__copy",children:[g&&(0,i.jsx)("div",{className:"info-box__close-rect"}),c,(d||h)&&(0,i.jsxs)("div",{className:"info-box__opt",children:[d&&(0,i.jsx)(o.$,{size:"sm",variant:"primary",onClick:d,"data-cy":f+"Opt-In",icon:u&&u,children:p}),h&&(0,i.jsx)(o.$,{size:"sm",variant:"secondary",onClick:h,"data-cy":f+"Opt-Out",children:m})]}),g&&(0,i.jsx)(o.$,{className:"info-box__button",ariaLabel:x("ui.ariaClose"),title:x("ui.ariaClose"),variant:"plain",icon:(0,i.jsx)(s.I,{source:l.A}),onClick:A,"data-cy":f+"Close"})]})]})})}},21346(e,t,n){n.d(t,{p:()=>c});var i=n(78685),r=n(2057),a=n(34015),o=n(84050),s=n(72967),l=(n(77582),function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n});const c=r.forwardRef(((e,t)=>{var{ariaLabel:n,label:r,prefixLabel:c,id:d,name:u,role:p,placeholder:h,onKeyUp:m,onChange:g,onFocus:f,onKeyDown:v,onBlur:b,autoFocus:y,value:x,className:w,type:k="text",help:A,hiddenArrows:T=!1,error:S,lang:E,dir:I,data_cy:C=(r?"input"+r:"input"),autoComplete:_}=e,j=l(e,["ariaLabel","label","prefixLabel","id","name","role","placeholder","onKeyUp","onChange","onFocus","onKeyDown","onBlur","autoFocus","value","className","type","help","hiddenArrows","error","lang","dir","data_cy","autoComplete"]);return(0,i.jsxs)("div",{className:"input "+((null==S?void 0:S.message)?"input--error":""),id:d,children:[r&&!c&&(0,i.jsx)("label",{className:"input__label",htmlFor:u,children:r}),(0,i.jsxs)("div",{className:"input__inputGroup",children:[r&&c&&(0,i.jsx)("label",{className:"input__prefix",htmlFor:u,children:r}),n&&(0,i.jsx)("label",{className:"sr-only",htmlFor:u,children:n}),(0,i.jsx)("input",Object.assign({ref:t,role:p,name:u,id:u,className:`input__input ${w||""} ${T&&"input__input--hidden-arrow"}`,onChange:g,onKeyUp:m,onKeyDown:v,onFocus:f,onBlur:b,autoFocus:y,value:x,type:k,placeholder:h,"data-cy":C,lang:E,dir:I,"aria-describedby":null==S?void 0:S.id,"aria-invalid":!!(null==S?void 0:S.message),autoComplete:_},j))]}),(null==S?void 0:S.message)&&!S.hideMessage&&(0,i.jsxs)("div",{className:"text-textCritical input__helpText",id:S.id,role:"alert",children:[(0,i.jsx)(a.I,{source:s.A}),S.message]}),A&&(0,i.jsxs)("div",{className:"input__helpText",children:[(0,i.jsx)(a.I,{source:o.A}),A]})]})}))},85959(e,t,n){n.d(t,{y:()=>I});var i=n(78685),r=n(2057),a=n(15085),o=n(72924),s=n(34015),l=n(6967),c=n(71445),d=n(51581),u=n(85072),p=n.n(u),h=n(97825),m=n.n(h),g=n(77659),f=n.n(g),v=n(55056),b=n.n(v),y=n(10540),x=n.n(y),w=n(41113),k=n.n(w),A=n(10858),T={};T.styleTagTransform=k(),T.setAttributes=b(),T.insert=f().bind(null,"head"),T.domAPI=m(),T.insertStyleElement=x();p()(A.A,T);A.A&&A.A.locals&&A.A.locals;var S=n(8236);const E=({asPortal:e,children:t})=>e?(0,i.jsx)(a.ZL,{forceMount:!0,children:t}):(0,i.jsx)(i.Fragment,{children:t}),I=({open:e,close:t,title:n,copy:u,closeButton:p=!1,actions:h,headerAction:m,asPrompt:g=!1,preventOutsideInteraction:f,asPortal:v=!0,headerClassName:b="",titleClassName:y="",contentClassName:x=""})=>{const{t:w}=(0,c.Bd)(),k=(0,r.useRef)(null),[A,T]=(0,r.useState)(!1),I=(0,d.pn)(A,S.h);(0,r.useEffect)((()=>{var t;e&&(T(!0),null===(t=k.current)||void 0===t||t.focus()),e||T(!1)}),[e]);const C=()=>{T(!1),t()};return(0,i.jsx)(a.bL,{open:A,onOpenChange:e=>{T(e),e||t()},children:(0,i.jsx)(E,{asPortal:v,children:I(((e,t)=>(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsx)(a.hJ,{className:"modal-dialog__overlay modal-dialog__overlay--top-prio"}):null,t?(0,i.jsx)(a.UC,{className:"modal-dialog__content modal-dialog__content--top-prio",onEscapeKeyDown:C,onPointerDownOutside:e=>f?e.preventDefault():null,"aria-describedby":void 0,ref:k,children:(0,i.jsxs)(d.CS.div,{style:e,className:"modal-dialog__body "+x,children:[(0,i.jsxs)("header",{className:`modal-dialog__header ${g&&"modal-dialog__header--prompt"} ${b}`,children:[n&&"string"==typeof n&&(0,i.jsx)(a.hE,{className:`modal-dialog__title ${g&&"modal-dialog__title--prompt"} ${y}`,children:n}),n&&"object"==typeof n&&(0,i.jsx)("div",{className:`modal-dialog__title ${g&&"modal-dialog__title--prompt"} ${y}`,children:n}),m||p&&(0,i.jsxs)("div",{className:`modal-dialog__header-actions ${g&&"modal-dialog__header-actions--prompt"}`,children:[m&&m,p&&(0,i.jsx)(o.$,{variant:"plain",ariaLabel:w("ui.ariaClose"),title:w("ui.ariaClose"),icon:(0,i.jsx)(s.I,{source:l.A}),onClick:C})]})]}),(0,i.jsx)("div",{className:"modal-dialog__text "+(g?"modal-dialog__text--prompt":""),children:u}),h&&(0,i.jsx)("div",{className:"modal-dialog__buttons",children:h})]})}):null]})))})})}},30253(e,t,n){n.d(t,{i:()=>_});var i=n(78685),r=n(2057),a=n(71445),o=n(44817),s=n(70906),l=n(72967),c=n(17224),d=n(72924),u=n(34015),p=n(21346),h=n(85072),m=n.n(h),g=n(97825),f=n.n(g),v=n(77659),b=n.n(v),y=n(55056),x=n.n(y),w=n(10540),k=n.n(w),A=n(41113),T=n.n(A),S=n(3645),E={};E.styleTagTransform=T(),E.setAttributes=x(),E.insert=b().bind(null,"head"),E.domAPI=f(),E.insertStyleElement=k();m()(S.A,E);S.A&&S.A.locals&&S.A.locals;var I=n(25426);const C=e=>{if(37==e.keyCode){const e=document.getElementById("prevPage");e&&(e.click(),e.focus())}else if(39==e.keyCode){const e=document.getElementById("nextPage");e&&(e.click(),e.focus())}},_=({maxPage:e,page:t,onPageChange:n,mobileBreakpoint:h=900,prefix:m
2=!0})=>{const{t:g}=(0,a.Bd)(),[f,v]=(0,r.useState)("1"),{enableKeyboardNavigation:b,setEnableKeyboardNavigation:y}=(0,I.Us)(),x=(0,c.Ay)(h),[w,k]=(0,r.useState)(!1),A=(0,r.useCallback)((e=>{w&&k(!1),v(e)}),[w]);(0,r.useEffect)((()=>{A(t.toString())}),[t]);const T=(0,r.useCallback)((t=>{if("Enter"===t.key){const t=parseInt(f);t>0&&(isNaN(e)||t<=e)?(A(parseInt(f).toString()),n(parseInt(f))):k(!0)}}),[f,e,A,n]),S=(0,r.useCallback)((t=>{A(t.target.value),!t.nativeEvent.inputType&&parseInt(f)>0&&(isNaN(e)||parseInt(f)<e)&&n(parseInt(f))}),[A,f,e,n]),E=(0,r.useCallback)((()=>{if(isNaN(t)||t>1){n(t-1,"prev")}}),[t,n]),_=(0,r.useCallback)((()=>{if(isNaN(t)||isNaN(e)||t<e){n(t+1,"next")}}),[t,e,n]);return(0,r.useEffect)((()=>{if(b)return window.addEventListener("keydown",C),()=>{window.removeEventListener("keydown",C)}}),[b]),(0,i.jsxs)("div",{className:"pager__container",children:[(0,i.jsxs)("div",{className:"pager",children:[(0,i.jsx)(d.$,{id:"prevPage",onClick:E,variant:"plain",icon:(0,i.jsx)(u.I,{source:s.A,accessibilityLabel:g("pager.prevAria")}),ariaLabel:g("pager.prevAria"),title:g("pager.prevTooltip")}),!x&&(0,i.jsx)("div",{children:(0,i.jsx)(p.p,{className:"pager__page-input",type:"number",hiddenArrows:!0,min:1,max:isNaN(e)?void 0:e,onKeyUp:T,onChange:S,value:f,prefixLabel:m,label:m?g("pager.page"):void 0,ariaLabel:m?void 0:g("pager.inputAria"),name:"pager",error:w?{message:g("pager.invalidPage"),id:"page-number-error",hideMessage:!0}:void 0,data_cy:"pagerInput",onFocus:()=>y(!1),onBlur:()=>y(!0)})}),(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:g("pager.screenReader",{page:f})}),(0,i.jsx)(d.$,{id:"nextPage",onClick:_,variant:"plain",icon:(0,i.jsx)(u.I,{source:o.A,accessibilityLabel:g("pager.nextAria")}),ariaLabel:g("pager.nextAria"),title:g("pager.nextTooltip")})]}),w&&!x&&(0,i.jsxs)("div",{className:"pager__error text-textCritical",id:"page-number-error",role:"alert",children:[(0,i.jsx)(u.I,{source:l.A}),g("pager.invalidPage")]})]})}},14936(e,t,n){n.d(t,{g:()=>l,n:()=>c});var i=n(78685),r=n(2057),a=n(71445),o=n(66725),s=n(97368);const l="ui.neutralFilter",c=({name:e,label:t,values:n,preSelected:c,filterOfflineDisabled:d=!0,onFilterValue:u,isSelect:p=!1,hideNeutralFilter:h=!1})=>{const{t:m}=(0,a.Bd)(),[g,f]=(0,r.useState)(c||null),[v,b]=(0,r.useState)(null!=c?c:[]),y=(0,r.useCallback)((e=>{u(e.value),f(e)}),[u]),x=e=>{const t=Array.isArray(v)?(null==v?void 0:v.some((t=>t.value===e.target.value)))?v.filter((t=>t.value!==e.target.value)):[...v,{label:m(`asset.${e.target.value}`),value:e.target.value}]:[];b(t),u(t)},w=(0,r.useCallback)((()=>{if(!p){const e=[];return h||e.push({value:m(l),label:m(l)}),n.forEach((t=>{e.push({value:t.value,label:t.label,data_cy:"filterVal"+t.value})})),e}}
2),[n,p,m,h]);return(0,i.jsx)(o.u,{data_cy:`resource-filter-${e}`,items:w(),checkboxItems:(()=>{if(p){const e=e=>!!Array.isArray(v)&&(null==v?void 0:v.some((t=>t.value===e.value)));return n.map((t=>(0,i.jsx)(s.o,{className:"py-3 px-4 text-text hover:bg-surfaceSubdued [&>p]:w-[50%] md:[&>p]:w-full",onChange:x,checked:e(t),value:t.value,"data-cy":"filterVal"+t.value,id:t.label,children:m(t.label)},t.value)))}})(),asSelect:!0,preLabel:t+": ",label:p&&Array.isArray(v)?0===(null==v?void 0:v.length)?m("resourceList.mediafilterAll"):null==v?void 0:v.map((e=>m(`asset.${e.value}`,e.value))).join(", "):(null==g?void 0:g[t])?null!==(k=null==g?void 0:g[t])&&void 0!==k?k:m(l):void 0,onSelect:y,offlineDisabled:d,contentClass:"max-h-[50vh] md:max-w-md",isSelect:p});var k}},89459(e,t,n){n.d(t,{K:()=>l});var i=n(78685),r=n(2057),a=n(71445),o=n(82838),s=n(97368);n(96110);const l=({format:e,title:t,booktitle:n,description:l,note:c,link:d,actions:u,isOffline:p,badges:h,inBulkMode:m=!1,value:g,onChange:f,isChecked:v})=>{const{t:b}=(0,a.Bd)(),y=(0,r.useCallback)((()=>{m&&f(g)}),[m,f,g]),x=(0,r.useCallback)((()=>{f(g)}),[f,g]),w=(0,r.useCallback)((()=>{const e=d.split("?");let t=e[0];return 1!==e.length&&(t+="..."),t}),[d]);return(0,i.jsxs)("div",{className:`group resource-item ${v?"bg-surfaceInformation":""} `,"data-cy":`resource-item resource-item-${e}`,onClick:y,children:[e&&(0,i.jsxs)("div",{className:`resource-item__icon-wrapper ${p?"resource-item__icon-wrapper--offline":""} ${m?"resource-item__icon-wrapper--checkbox":""}`,onClick:e=>m?e.preventDefault():null,children:[!m&&(0,i.jsx)(o.c,{className:"resource-item__icon",format:e}),m&&(0,i.jsx)(s.o,{ariaLabel:t,checked:v,value:g,onChange:x,id:e})]}),(0,i.jsxs)("div",{className:"resource-item__copy",children:[(0,i.jsxs)("h4",{className:"resource-item__title nice-word-break",children:[t,h&&h]}),n&&(0,i.jsx)("p",{className:"resource-item__description",children:n}),(0,i.jsx)("span",{className:"resource-item__description nice-word-break",children:(0,i.jsx)("pre",{children:l})}),d&&(0,i.jsxs)("p",{className:"resource-item__link",children:[b("ui.linkLabel"),": ",w()]}),c&&(0,i.jsx)("span",{className:"resource-item__note nice-word-break",children:(0,i.jsx)("pre",{children:c})})]}),(0,i.jsx)("div",{className:"resource-item__features",children:u})]})}},55434(e,t,n){n.d(t,{O:()=>u});var i=n(78685),r=n(2057),a=n(71445),o=n(72924),s=n(97368),l=n(54801),c=n(34015),d=n(23682);const u=({bulkMode:e,bulkModeHidden:t=!1,toggleBulkSelection:n,onSetBulkMode:u,search:p,selected:h,fullArray:m,children:g})=>{const{t:f}=(0,a.Bd)(),[v,b]=(0,r.useState)(!0);(0,r.useEffect)((()=>{b(h>0&&h===m)}),[h,m]);const y=(0,r.useCallback)((e=>{n(!v),b(e.target.checked)}),[n,v]);return(0,i.jsx)("div",{className:"resource-list-header "+(e?"resource-list-header--bulk":""),"data-cy":e?"resource-list-header-bulk":"resource-list-header",children:(0,i.jsxs)(i.Fragment,{children:[e&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"resource-list-header__list-filters",children:[(0,i.jsxs)("div",{className:"resource-item__icon-wrapper resource-item__icon-wrapper--checkbox",children:[(0,i.jsx)(s.o,{onChange:y,checked:v,indeterminate:h<m&&h>0,data_cy:"list-select-all",id:"select-all",children:f("resourceList.selection",{count:h})}),(0,i.jsx)(o.$,{onClick:()=>u(!e),className:"sm:hidden",variant:"secondary",children:f("ui.done")})]}),h>0&&g,(0,i.jsx)(o.$,{onClick:()=>u(!e),className:"hidden sm:flex ml-auto",variant:"secondary",children:f("ui.done")})]})}),!e&&(0,i.jsxs)("div",{className:"resource-list-header__list-filters",children:[!t&&(0,i.jsx)("div",{className:"resource-item__icon-wrapper resource-item__icon-wrapper--checkbox",children:(0,i.jsx)(s.o,{onChange:()=>u(!e),data_cy:"button-edit-mode",id:"edit",children:f("resourceList.bulkSelect")})}),g,p&&(0,i.jsx)(l.a,{className:"resource-list-header__search",placeholder:p.placeholder,icon:(0,i.jsx)(c.I,{source:d.A}),label:p.placeholder,onSelect:p.searchList,onKeyUp:p.onKeyUp,suggestions:p.suggestions,initialValue:p.initalValue,hasDefaultActiveOption:!1})]})]})})}},42642(e,t,n){n.d(t,{j:()=>l});var i=n(78685),r=(n(2057),n(71445)),a=n(59921),o=n(91706),s=n(59110);n(96110);const l=({title:e,items:t,editMode:n,elements:l,selected:c,emptyElement:d,fullArray:u,updateSelected:p,withBooktitle:h=!0,page:m,className:g=""})=>{const{t:f}=(0,r.Bd)(),{ref:v,inView:b}=(0,a.Wx)({triggerOnce:!0,rootMargin:"150px"});return 0!==(null==t?void 0:t.length)&&0!==(null==l?void 0:l.length)||!d||0!==u?(0===(null==t?void 0:t.length)||0===(null==l?void 0:l.length))&&d&&u>0?(0,i.jsx)("div",{className:"pl-4",children:f("resourceList.noData")}):(0,i.jsx)("div",{ref:v,className:"resource-list__wrapper","data-cy":"resource-list-wrapper",children:b&&(0,i.jsxs)("div",{className:`resource-list ${g}`,children:[e&&e,(0,i.jsxs)("ul",{children:[null==t?void 0:t.map(((e,t)=>(0,i.jsx)("li",{className:"resource-list__item","data-cy":"resource-list-item",children:(0,i.jsx)(s.A,{asset:e,withBooktitle:h,showFeaturesMobile:!1,menu:(0,i.jsx)(o._,{asset:e}),inBulkMode:n,onChange:p,isChecked:-1!==(null==c?void 0:c.indexOf(e.id)),page:m},t)},t))),null==l?void 0:l.map(((e,t)=>(0,i.jsx)("li",{className:"resource-list__item",children:e},t)))]})]})}):d}},62623(e,t,n){n.d(t,{O:()=>a});var i=n(78685),r=(n(2057),n(66725));const a=({label:e,options:t,onSelect:n,preLabel:a})=>(0,i.jsx)(r.u,{data_cy:"resource-sorter",preLabel:a,label:e,items:t,onSelect:n,asSelect:!0})},66970(e,t,n){n.d(t,{w:()=>b});var i=n(78685),r=(n(2057),n(85072)),a=n.n(r),o=n(97825),s=n.n(o),l=n(77659),c=n.n(l),d=n(55056),u=n.n(d),p=n(10540),h=n.n(p),m=n(41113),g=n.n(m),f=n(48605),v={};v.styleTagTransform=g(),v.setAttributes=u(),v.insert=c().bind(null,"head"),v.domAPI=s(),v.insertStyleElement=h();a()(f.A,v);f.A&&f.A.locals&&f.A.locals;const b=({direction:e="horizontal"})=>(0,i.jsx)("div",{className:`separator separator--${e}`,"aria-hidden":"true"})},7350(e,t,n){n.d(t,{e:()=>l});var i=n(78685),r=n(2057),a=n(9051),o=n(47665),s=n(73505);const l=()=>({warning:(0,r.useCallback)(((e,t)=>{const n=e.id||(0,s.A)();a.Ay.custom((r=>(0,i.jsx)(o.w,{id:r.id,className:"shadow-md warning",containerClass:"toast",copy:(0,i.jsx)("p",{className:"flex h-full items-center",children:e.copy}),onClose:()=>{return e=r,a.Ay.remove(n),a.Ay.dismiss(e.id),void(t&&t());var e},focus:!1!==e.focusToast})),{id:n,position:"bottom-left",style:{right:"auto"},duration:1/0})}),[]),success:(0,r.useCallback)((e=>{const t=e.id||(0,s.A)(),n=e=>{a.Ay.remove(t),a.Ay.dismiss(e.id)};a.Ay.custom((t=>(0,i.jsx)(o.w,{id:t.id,className:"shadow-md",containerClass:"toast",copy:(0,i.jsx)("p",{children:e.copy}),optOutText:e.dismissableText?e.dismissableText:null,optOut:e.dismissableText?()=>n(t):null,onClose:()=>n(t),focus:!1!==e.focusToast})),{id:t,position:"bottom-left",style:{right:"auto"},duration:1/0})}),[]),remove:(0,r.useCallback)((e=>{a.Ay.remove(e)}),[])})},4336(e,t,n){n.d(t,{r:()=>d,a:()=>u});const i={customerType:"",loginstatus:"",pageType:"",item_id:"",item_language:"",item_ger:"",item_name:"",item_area:"",item_license:"",item_maxp:"",internalSearch_results:0}
2,r={editor:"Redakteur",eks_content_admin:"EKS-Admin",schooladmin:"Schul-Admin",student:"Schülerin/Schüler",teacher:"Lehrerin/Lehrer/Dozent"},a={default:()=>{window.eks_datalayer=i},internalSearchResults:e=>{const{data:{internalSearch_results:t}}=e;window.eks_datalayer.internalSearch_results=t},pageType:e=>{const{data:{pageType:t}}=e;window.eks_datalayer.pageType=t},item:e=>{const{data:{item_id:t="",item_language:n="",item_ger:i="",item_name:r="",item_area:a="",item_license:o="",item_maxp:s="",internalSearch_results:l=0}}=e;window.eks_datalayer.item_id=t,window.eks_datalayer.item_language=n,window.eks_datalayer.item_ger=i,window.eks_datalayer.item_name=r,window.eks_datalayer.item_area=a,window.eks_datalayer.item_license=o,window.eks_datalayer.item_maxp=s,window.eks_datalayer.internalSearch_results=l},sessionParameters:e=>{var t;const{data:{customerType:n,loginstatus:i}}=e;window.eks_datalayer.customerType=null!==(t=r[n])&&void 0!==t?t:"",window.eks_datalayer.loginstatus=i}},o={audio:"mp3",video:"mp4",pdf:"pdf",file:"file",html:"html",daupage:"pdf",uhbpage:"pdf"},s={link:"Link",audio:"Audio",pdf:"PDF",html:"HTML",video:"Video",dauLink:"DauLink",file:"File",daupage:"DauPage",uhbpage:"UhbPage"},l={addBookmark:e=>{const{productId:t,productName:n,contentId:i,format:r}=e;return{linkId:"Lesezeichen",product:t,productStatus:"add",customEcommerceParameter:{8:n,10:i,11:s[r]}}},openFromBookmarks:e=>{const{productId:t,productName:n,contentId:i,format:r}=e;return{linkId:"Aufruf",product:t,productStatus:"add",customEcommerceParameter:{8:n,10:i,11:s[r]}}},addToPlaylist:e=>{const{productId:t,productName:n,contentId:i,format:r}=e;return{linkId:"Inhalt Liste hinzufügen",product:t,productStatus:"add",customEcommerceParameter:{8:n,10:i,11:s[r]?s[r]:r}}},removeFromPlaylist:e=>{const{productId:t,productName:n,contentId:i,format:r}=e;return{linkId:"Inhalt Liste entfernen",product:t,productStatus:"add",customEcommerceParameter:{8:n,10:i,11:s[r]?s[r]:r}}},activateLicense:e=>{const{productId:t}=e;return{linkId:"Lizenz eingelöst",product:t,productStatus:"conf",customEcommerceParameter:{7:"true"}}},activateTestLicense:e=>{const{productId:t}=e;return{linkId:"Testlizenz angefordert",product:t,productStatus:"conf",customEcommerceParameter:{5:"true"}}},sharePlaylist:()=>({linkId:"Liste teilen"}),downloadAsset:e=>{const{productId:t,productName:n,format:i}=e;return{linkId:"Download",product:t,productStatus:"add",customEcommerceParameter:{8:n,9:o[i]}}},cacheAsset:e=>{const{productId:t,productName:n,format:i,contentId:r}=e;return{linkId:"Offline Speichern",product:t,productStatus:"add",customEcommerceParameter:{8:n,9:o[i],10:r,11:s[i]}}},cachePlaylist:()=>({linkId:"Offline Speichern",customEcommerceParameter:{9:"liste"}}),playAudioVideoAsset:e=>{const{productId:t,productName:n,format:i,contentId:r}=e;return{linkId:"Inhalt abspielen",product:t,productStatus:"add",customEcommerceParameter:{8:n,9:o[i],10:r,11:s[i]}}},clickThirdPartyLink:e=>{const{productName:t}=e;return{linkId:`${t} öffnen`}},clickAllangoBuddy:()=>({linkId:"Werkzeug allango buddy öffnen"}),clickWordAllangoBuddy:()=>({linkId:"Werkzeug allango buddy Layer öffnen"}),clickPlaySourceAudioAllangoBuddy:()=>({linkId:"Werkzeug allango buddy Audio Quell"}),clickPlayTargetAudioAllangoBuddy:()=>({linkId:"Werkzeug allango buddy Audio Ziel"}),clickChangeTargetLanguageAllangoBuddy:()=>({linkId:"Werkzeug allango buddy Sprachwechsel Ziel"})};var c=n(44828);const d=e=>{const{eventType:t}=e,n=l[t],i=(0,c.WE)();if(!n)return;const r=["send","link",n(e)];if(window.hasOwnProperty("wts")){const e=window.wts;(null==i?void 0:i.isRealProduction)||console.log(t,r),e.push(r)}else(null==i?void 0:i.isRealProduction)||console.log(t,r)},u=e=>{const{eventType:t}=e,n=a[t];n&&n(e)}},25426(e,t,n){n.d(t,{Dv:()=>c,Us:()=>l});var i=n(78685),r=n(2057),a=n(81970),o=n(44550);const s=r.createContext(null),l=()=>(0,r.useContext)(s),c=({children:e})=>{const[t,n]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)(),[m,g]=(0,r.useState)(!0),f=(0,a.zy)(),v=(0,r.useCallback)((e=>{const t=f.pathname.startsWith("/dau/")||f.pathname.startsWith("/uhb/"),i=e.toString();t?localStorage.setItem(o.yS,i):localStorage.setItem(o.hI,i),n(e)}),[f]);return(0,i.jsx)(s.Provider,{value:{isDrawerOpen:t,setIsDrawerOpen:v,triggerDauLearningProgressRefetch:l,setTriggerDauLearningProgressRefetch:c,learningProgressModalOpen:d,setLearningProgressModalOpen:u,enableKeyboardNavigation:m,setEnableKeyboardNavigation:g,scrollToLessonId:p,setScrollToLessonId:h},children:e})}},54479(e,t,n){n.d(t,{H:()=>l});
2var i=n(2057),r=n(62771),a=n(40741),o=n(17407),s=n(56455);const l=()=>{const e=(0,a.n)(),t=(0,r.As)();return{cacheAllowed:(0,i.useCallback)((n=>(null==n?void 0:n.format)!==o.i_.FILE&&(null==n?void 0:n.format)!==o.i_.LINK&&e&&(null==n?void 0:n.offlineAllowed)&&t.authenticated&&(!(null==n?void 0:n.accessLockState)||(null==n?void 0:n.accessLockState)===s.Jm.UNLOCKED||(null==n?void 0:n.accessLockState)===s.Jm.NONE)),[t.authenticated,e]),downloadAllowed:(0,i.useCallback)((n=>{const i=(null==n?void 0:n.format)===o.i_.FILE||t.authenticated;return(null==n?void 0:n.format)!==o.i_.LINK&&e&&(null==n?void 0:n.downloadAllowed)&&i&&(!(null==n?void 0:n.accessLockState)||(null==n?void 0:n.accessLockState)===s.Jm.UNLOCKED||(null==n?void 0:n.accessLockState)===s.Jm.NONE)}),[t.authenticated,e])}}},72667(e,t,n){n.d(t,{Q:()=>p});var i=n(78685),r=n(2057),a=n(67413),o=n(52544),s=n(17407),l=n(54479),c=n(58469),d=n(15958),u=n(4336);const p=({children:e,className:t="",asset:n,productId:p})=>{const h=(0,a.U)(),{refetch:m}=(0,o.G)({format:s.i_.FILE,id:n.id},{hideToast:!0}),{downloadAllowed:g}=(0,l.H)(),{mutateAsync:f}=(0,c.u)(),v=(0,r.useCallback)((async()=>{const e=await m();try{const t=(0,d.ID)(e.data,h.isProduction),i=(0,d.mG)(n);await(0,d.PE)(t,i),(0,u.r)({productId:p,productName:n.title,eventType:"downloadAsset",format:n.format})}catch(e){f({errorMessage:"Error downloading File",errorObject:e})}}),[m,h.isProduction,n,p,f]);return(0,i.jsx)("button",{type:"button",onClick:g(n)?v:void 0,className:t,children:e})}},17407(e,t,n){var i;function r(e){switch(e){case"audio":return"mp3";case"video":return"mp4";case"html":return"html";case"pdf":return"pdf"}}n.d(t,{Fx:()=>a,i_:()=>i,sU:()=>o,uQ:()=>r}),function(e){e.LINK="link",e.AUDIO="audio",e.PDF="pdf",e.DAU_PDF="daupdf",e.HTML="html",e.VIDEO="video",e.DAU_LINK="dauLink",e.FILE="file",e.ASSESSMENT="assessment",e.DIDACTIC_UNIT="didactic_unit",e.SELFTEST="selftest",e.DASH="dash",e.DASHA="dasha",e.HLS="hls",e.HLSA="hlsa"}(i||(i={}));const a=new Map([[i.AUDIO,"audios"],[i.VIDEO,"videos"],[i.HTML,"htmls"],[i.PDF,"pdfs"],[i.LINK,"links"],[i.DAU_LINK,"dauLinks"],[i.FILE,"files"],[i.ASSESSMENT,"assessments"],[i.SELFTEST,"selftests"]]),o=(e,t,n,r,a,o,s=!1,l,c)=>{const d=[];return o?d.push(`id=${o}`):t!==i.SELFTEST&&d.push(`id=${e}`),t===i.SELFTEST&&d.push(`selftestID=${e}`),d.push(`type=${t}`),d.push(`page=${n}`),r&&d.push("mode=double"),a||t!==i.AUDIO&&t!==i.VIDEO||d.push("minimized=true"),t===i.AUDIO&&d.push("background=false"),s&&d.push("modal=true"),void 0!==l&&d.push(`time=${l}`),c&&d.push(`task=${c}`),"?"+d.join("&")}},81850(e,t,n){n.d(t,{y:()=>y});var i=n(78685),r=n(2057),a=n(62771),o=n(71445),s=n(84055),l=n(72924),c=n(34015),d=n(65155),u=n(42214),p=n(36633),h=n(66970),m=n(67443),g=n(33692),f=n(86165),v=n(4336);const b=({asset:e,showPlaylists:t,setShowPlaylists:n,onAddPageToPlaylist:a,onAddPageToPlaylistOfCurrentVersion:s,setMenuItems:d,isPlaylistInputVisible:b,setIsPlaylistInputVisible:y})=>{const{playlists:x,addToPlaylist:w,addPlaylist:k}=(0,u.W)(),{t:A}=(0,o.Bd)(),{currentVersion:T}=(0,f.BU)(),S=(0,r.useCallback)((t=>{var n;e?(w(e,t),(0,v.r)({productId:null!==(n=e.book.isbn)&&void 0!==n?n:e.book.npNumber,productName:e.title,contentId:e.id,format:e.format,eventType:"addToPlaylist"})):a?a({versionId:T.versionId,versionName:T.versionName},t):s&&s(t)}),[w,e,T.versionId,T.versionName,a,s]),E=(0,r.useCallback)((async e=>{await k(e)}),[k]);return(0,r.useEffect)((()=>{(()=>{const e=[];b?e.push((0,i.jsx)(p.R,{className:"asset-menu__new-playlist-input",title:"",onSetEditMode:y,onAbortTitleChange:()=>y(!1),onSavePlaylist:E},"input")):(x&&x.forEach((t=>{"own"===t.highestPrivilege&&e.push((0,i.jsx)(l.$,{variant:"plain",className:"asset-menu__playlist",onClick:()=>S(t),icon:(0,i.jsx)(c.I,{source:m.A}),ariaLabel:A("playlist.addToPlaylist",{playlistName:t.playlist.title}),children:t.playlist.title}))})),e.push((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.w,{}),(0,i.jsx)(l.$,{variant:"secondary",onClick:()=>y(!0),icon:(0,i.jsx)(c.I,{source:m.A}),children:A("playlist.newList")})]}))),d(e)})()}),[n,t,A,e,S,x,b,E,d,y]),(0,i.jsx)("div",{className:"asset-menu__back-to-menu-button",children:(0,i.jsxs)(l.$,{onClick:()=>{d([]),n(!1)},className:"!w-auto border-0",children:[(0,i.jsx)(c.I,{source:g.A}),(0,i.jsx)("span",{className:"asset-menu__back-to-menu-button__text",children:A("playlist.addToList")})]})})},y=({asset:e,showPlaylists:t,setShowPlaylists:n,onAddPageToPlaylist:u,onAddPageToPlaylistOfCurrentVersion:p,setMenuItems:h})=>{const[m,g]=(0,r.useState)(!1),{t:f}=(0,o.Bd)(),v=(0,a.As)(),[y,x]=(0,r.useState)(!1),w=(0,r.useCallback)((e=>{e.stopPropagation(),v.authenticated?n(!0):x(!0)}),[v]),[k,A]=(0,r.useState)();return(0,r.useEffect)((()=>{const e=setTimeout((()=>
2{if(A(void 0),m)A(f("playlist.screenReader.formular"));else{const e=document.querySelector('[role="listitem"]');null==e||e.focus();const t=document.querySelectorAll('[role="listitem"]');A(f("playlist.screenReader.menu"+(1===(null==t?void 0:t.length)?"Singular":""),{count:null==t?void 0:t.length}))}}),50);return()=>clearTimeout(e)}),[m,t]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:k}),t?(0,i.jsx)(b,{asset:e,showPlaylists:t,setShowPlaylists:n,onAddPageToPlaylist:u,onAddPageToPlaylistOfCurrentVersion:p,setMenuItems:h,isPlaylistInputVisible:m,setIsPlaylistInputVisible:g}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(l.$,{variant:"plain",className:"asset-menu__add-to-playlist","data-cy":"add-asset-to-playlist",onClick:w,icon:(0,i.jsx)(c.I,{source:d.A}),children:f("playlist.addToList")}),(0,i.jsx)(s.M,{open:y,onClose:()=>x(!1)})]})]})}},91706(e,t,n){n.d(t,{_:()=>g});var i=n(78685),r=n(2057),a=n(71445),o=n(54479),s=n(17224),l=n(45929),c=n(33182),d=n(94301),u=n(66725),p=n(17407),h=n(81850),m=n(86165);const g=({asset:e,asModal:t=!1,asPortal:n,onAddPageToPlaylist:g,buttonType:f})=>{const{t:v}=(0,a.Bd)(),b=(0,s.Ay)(),{cacheAllowed:y,downloadAllowed:x}=(0,o.H)(),[w,k]=(0,r.useState)(!1),[A,T]=(0,r.useState)([]),S=[(0,i.jsx)(m.Ue,{children:(0,i.jsx)(h.y,{asset:e,showPlaylists:w,setShowPlaylists:k,onAddPageToPlaylist:g,setMenuItems:T})}),...A],E=(0,r.useCallback)((()=>{if(e.format===p.i_.AUDIO||e.format===p.i_.VIDEO){if(!window.MediaSource)return!1;if(!(null===MediaSource||void 0===MediaSource?void 0:MediaSource.isTypeSupported))return!1}return!0}),[e]);return(0,i.jsx)(u.u,{asPortal:n,asModal:t,elements:(w||(b&&S.push((0,i.jsx)(d.X,{copy:!0,asset:{asset:e}})),y(e)&&e.format!==p.i_.ASSESSMENT&&e.format!==p.i_.DIDACTIC_UNIT&&e.format!==p.i_.SELFTEST&&S.push((0,i.jsx)(c.o,{disabled:!E(),asset:e})),x(e)&&(null==e?void 0:e.format)!==p.i_.FILE&&S.push((0,i.jsx)(l.D,{asset:e}))),S),ariaLabel:v("ui.menuAria"),title:v("ui.menuAria"),buttonType:f})}},56455(e,t,n){n.d(t,{Jm:()=>a,SE:()=>o,x3:()=>r});var i=n(17407);const r=e=>{var t;return(null==e?void 0:e.format)===i.i_.VIDEO&&!!(null===(t=null==e?void 0:e.relatedAssets)||void 0===t?void 0:t.length)};var a,o;!function(e){e.NONE="none",e.LOCKED="locked",e.UNLOCKED="unlocked"}(a||(a={})),function(e){e.AUGMENTED="Augmented",e.DIGITAL="Digital",e.UHB="UHB",e.EKSDI="Eksdi"}(o||(o={}))},59110(e,t,n){n.d(t,{A:()=>k,d:()=>w});var i=n(78685),r=n(2057),a=n(81970),o=n(94456),s=n(40160),l=n(12123),c=n(17224),d=n(17407),u=n(94301),p=n(56455),h=n(89459),m=n(16682),g=n(79134),f=n(51031),v=n(62255),b=n(71445),y=n(72667);const x=({children:e,className:t,link:n,type:r,isDisabled:a,actionsHidden:o,onClickHandler:s,preventDefault:l,asset:c})=>{var u,p,h;if(o||a)return(0,i.jsx)("div",{className:a?"resource-item--disabled":"",children:e});if(r===d.i_.FILE)return(0,i.jsx)(y.Q,{asset:c,className:t,productId:null!==(p=null===(u=c.book)||void 0===u?void 0:u.isbn)&&void 0!==p?p:null===(h=c.book)||void 0===h?void 0:h.npNumber,children:e});if(r===d.i_.LINK)return(0,i.jsx)("a",{href:n.to,target:"blank",className:`${t||""}`,onClick:s,children:e});return(0,i.jsx)(m.z,Object.assign({},n,{className:`${t||""}`,onClick:e=>{l&&e.preventDefault(),s()},children:e}))},w=({showFeaturesMobile:e=!0,asset:t,menu:n,feature:m,comment:y,className:w,inBulkMode:k=!1,onChange:A,isChecked:T,withBooktitle:S=!0,onOpenAsset:E,clickNotAllowedEntry:I,isAllowed:C=!0,licenseInfo:_=!1,page:j})=>{const{t:N}=(0,b.Bd)(),L=(0,s.V)(),P=(0,c.Ay)(),D=(0,a.zy)(),M=(0,l.A)(t.id),O=(0,r.useCallback)((()=>(t.format===d.i_.SELFTEST?L.set("selftestID",t.id):L.set("id",t.id),L.set("type",t.format),j&&L.set("assetPage",j),{to:D.pathname+"?"+L.toString()})),[L,t,D,j]),R=(0,r.useCallback)((()=>{switch(t.format){case d.i_.LINK:return{to:t.value};case d.i_.PDF:return t.isDau?(0,f.v)(t.id,t.bookFormat):O();default:return O()}}),[O,t]),[z,B]=(0,r.useState)(!1),U=(0,o.A)(t.id);(0,r.useEffect)((()=>{let e=!0;return(async()=>{const t=await U();e&&B(t)})(),()=>{e=!1}}),[t,U]);return(0,i.jsx)(x,{className:w,link:C?R():void 0,type:t.format,isDisabled:z,actionsHidden:k,onClickHandler:()=>{var e;if(E&&C){const n=null!==(e=t.book.isbn)&&void 0!==e?e:t.book.npNumber,i=t.title,r=t.id,a=t.format;E(n,i,r,a)}I&&!C&&I()},preventDefault:!C,asset:t,children:(0,i.jsx)(h.K,{title:t.title,format:t.format,booktitle:S&&t.book?t.book.bezeichnung:null,description:t.description,note:y,isOffline:!!M,badges:(0,i.jsxs)(i.Fragment,{children:[!C&&(0,i.jsx)(v.E,{type:"expired",className:"bg-surfaceWarning w-fit",children:N("license.noLicense")}),(0,i.jsx)(g.A,{assetId:t.id,teacherOnly:t.teacherOnly,role:t.role,accessLocked:t.accessLockState===p.Jm.LOCKED,accessUnlocked:t.accessLockState===p.Jm.UNLOCKED,demo:t.demo,addedByNp:t.addedBy}),_&&t.addedBy&&t.addedBy.startsWith("NP100")&&(0,i.jsx)(v.E,{type:"plus",children:N("badge.dau")})]}),actions:(0,i.jsx)(i.Fragment,{children:!k&&(0,i.jsxs)(i.Fragment,{children:[(!P||e&&P)&&m,(!P||e&&P)&&!m&&!1!==t.bookmarkAllowed&&(0,i.jsx)(u.X,{asset:{asset:t}}),n]})}),inBulkMode:k,onChange:A,isChecked:T,value:t.id})})},k=w},82838(e,t,n){n.d(t,{c:()=>D});var i,r=n(78685),a=n(2057),o=n(17407);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s.apply(null,arguments)}const l=e=>a.createElement("svg",s({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),i||(i=a.createElement("path",{fill:"#111212",d:"M4 12h3a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-7C2 6.477 6.477 2 12 2s10 4.477 10 10v7a2 2 0 0 1-2 2h-3a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h3a8 8 0 0 0-16 0"})));var c;function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},d.apply(null,arguments)}const u=e=>a.createElement("svg",d({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),c||(c=a.createElement("path",{fill:"#3C4141",d:"M2 3.993C2 3.445 2.494 3 3.104 3h17.792c.61 0 1.104.445 1.104.993v16.014c0 .548-.494.993-1.104.993H3.104C2.494 21 2 20.555 2 20.007zM4.222 5v14h15.556V5zm6.247 3.415 5.42 3.252c.205.123.26.371.124.555a.4.4 0 0 1-.123.11l-5.421 3.253a.476.476 0 0 1-.617-.11.37.37 0 0 1-.074-.222V8.747c0-.22.199-.4.444-.4a.5.5 0 0 1 .247.068"})));var p,h=n(79823);function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},m.apply(null,arguments)}const g=e=>a.createElement("svg",m({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),p||(p=a.createElement("path",{fill:"#111212",d:"M15 4H5v16h14V8h-4zM3 2.992C3 2.444 3.447 2 3.999 2H16l5 5v13.993A1 1 0 0 1 20.007 22H3.993A1 1 0 0 1 3 21.008zM12 11V8l4 4-4 4v-3H8v-2z"})));var f;function v(){return v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},v.apply(null,arguments)}const b=e=>a.createElement("svg",v({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),f||(f=a.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M3 3h18c.6 0 1 .4 1 1v16c0 .6-.4 1-1 1H3c-.6 0-1-.4-1-1V4c0-.6.4-1 1-1m6 3H5v2h4zM4 19h16v-9H4zm13.4-4.5c0 .7-.6 1.3-1.3 1.3s-1.3-.6-1.3-1.3.6-1.3 1.3-1.3 1.3.6 1.3 1.3M12 15.8c.7 0 1.3-.6 1.3-1.3s-.6-1.3-1.3-1.3-1.3.6-1.3 1.3.6 1.3 1.3 1.3m-2.8-1.3c0 .7-.6 1.3-1.3 1.3s-1.3-.6-1.3-1.3.6-1.3 1.3-1.3 1.3.6 1.3 1.3",clipRule:"evenodd"})));var y;function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},x.apply(null,arguments)}const w=e=>a.createElement("svg",x({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),y||(y=a.createElement("path",{fill:"#111212",d:"M21 8v12.993A1 1 0 0 1 20.007 22H3.993A.993.993 0 0 1 3 21.008V2.992C3 2.455 3.449 2 4.002 2h10.995zm-2 1h-5V4H5v16h14zM8 7h3v2H8zm0 4h8v2H8zm0 4h8v2H8z"})));var k;function A(){return A=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},A.apply(null,arguments)}const T=e=>a.createElement("svg",A({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),k||(k=a.createElement("path",{fill:"#111212",d:"M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2M6.023 15.416C7.491 17.606 9.695 19 12.16 19s4.669-1.393 6.136-3.584A8.97 8.97 0 0 0 12.16 13a8.97 8.97 0 0 0-6.137 2.416M12 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6"})));var S,E,I,C,_=n(39154);function j(){return j=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},j.apply(null,arguments)}const N=e=>a.createElement("svg",j({xmlns:"http://www.w3.org/2000/svg",id:"resource-assessment_svg__Ebene_1","data-name":"Ebene 1",viewBox:"0 0 24 24"},e),S||(S=a.createElement("defs",null,a.createElement("style",null,".resource-assessment_svg__cls-1{fill:#000;stroke-width:0}"))),E||(E=a.createElement("path",{d:"M7.3 7.1H2.8c-.4 0-.8-.3-.8-.8V1.8c0-.4.3-.8.8-.8h4.5c.4 0 .8.3.8.8v4.5c0 .4-.3.8-.8.8M3.5 5.5h3v-3h-3zM21.2 7.1H9.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h11.4c.4 0 .8.3.8.8s-.3.8-.8.8",className:"resource-assessment_svg__cls-1"})),I||(I=a.createElement("rect",{width:6.1,height:6.1,x:2,y:8.9,className:"resource-assessment_svg__cls-1",rx:.8,ry:.8})),C||(C=a.createElement("path",{d:"M21.2 15H9.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h11.4c.4 0 .8.3.8.8s-.3.8-.8.8M7.3 22.9H2.8c-.4 0-.8-.3-.8-.8v-4.5c0-.4.3-.8.8-.8h4.5c.4 0 .8.3.8.8v4.5c0 .4-.3.8-.8.8m-3.8-1.6h3v-3h-3zM21.2 22.9H9.8c-.4 0-.8-.3-.8-.8s.3-.8.8-.8h11.4c.4 0 .8.3.8.8s-.3.8-.8.8",className:"resource-assessment_svg__cls-1"})));var L=n(71445),P=n(34015);const D=({format:e,className:t=""})=>{const{t:n}=(0,L.Bd)();return(0,r.jsxs)(r.Fragment,{children:[(e===o.i_.HTML||null==e)&&(0,r.jsx)(P.I,{source:b,className:t,accessibilityLabel:n("asset.others")}),e===o.i_.AUDIO&&(0,r.jsx)(P.I,{source:l,className:t,accessibilityLabel:n("asset.audio")}),e===o.i_.VIDEO&&(0,r.jsx)(P.I,{source:u,className:t,accessibilityLabel:n("asset.video")}),e===o.i_.PDF&&(0,r.jsx)(P.I,{source:w,className:t,accessibilityLabel:n("asset.pdf")}),e===o.i_.FILE&&(0,r.jsx)(P.I,{source:_.A,className:t,accessibilityLabel:n("asset.file")}),e===o.i_.LINK&&(0,r.jsx)(P.I,{source:h.A,className:t,accessibilityLabel:n("asset.externalLink")}),e===o.i_.DAU_LINK&&(0,r.jsx)(P.I,{source:g,className:t,accessibilityLabel:n("asset.dauLink")}),(e===o.i_.ASSESSMENT||e===o.i_.SELFTEST)&&(0,r.jsx)(P.I,{source:N,className:t,accessibilityLabel:n("asset.assessment")}),"user-generated"===e&&(0,r.jsx)(P.I,{source:T,className:t})]})}},49395(e,t,n){n.d(t,{K:()=>a,_:()=>i});var i,r=n(17407);function a(e,t,n,i){var o;const s=Object.assign(Object.assign({},t),{id:t.assetId,format:n,book:e.book,page:i,subassets:t.submedias.map((t=>a(e,t,r.i_.ASSESSMENT,i))),relatedAssets:null===(o=t.relatedAssets)||void 0===o?void 0:o.map((t=>a(e,t,t.format||r.i_.ASSESSMENT,i)))});return delete s.assetId,s}!function(e){e.NONE="none",e.SRT="srt",e.LOWER_UT="lower_ut",e.UPPER_UT="upper_ut",e.SRT_AND_LOWER_UT="srt-lower_ut",e.SRT_AND_UPPER_UT="srt-upper_ut"}(i||(i={}))},52544(e,t,n){n.d(t,{G:()=>c});var i=n(40671),r=n(8983),a=n(48049),o=n(62771),s=n(71445),l=n(7009);function c(e,t){const n=(0,r.q)(),c=(0,o.As)(),{t:d}=(0,s.Bd)(),{refetch:u}=(0,a.s)(),{format:p,id:h,path:m="",isEnabled:g=!1}=e,f=(0,i.I)({queryKey:["get-augmented-access",e.id+"_"+p],queryFn:async()=>{const t=sessionStorage.getItem("accessCode");let i="";t&&(i="?accessCode="+encodeURIComponent(t));const r=(await n.get(`/asset/access/public/${p}/${h}${m}${i}`,{signal:e.signal})).data;return t&&c.authenticated&&(sessionStorage.removeItem("accessCode"),u.current()),r},retry:!1,enabled:g});return(0,l.V)(f,t||{message:d("error.asset.failGetAccess")})}},48624(e,t,n){n.d(t,{c1:()=>b,c6:()=>g,wn:()=>v});var i=n(78685),r=n(2057),a=n(62771),o=n(23093),s=n(97749),l=n(8983),c=n(71445),d=n(7009);var u=n(84055),p=n(40741);var h=n(73505),m=n(7350);const g=10,f=r.createContext(null),v=()=>(0,r.useContext)(f),b=({children:e})=>{const[t,n]=(0,r.useState)([]),[v,b]=(0,r.useState)([]),{t:y}=(0,c.Bd)(),[x,w]=(0,r.useState)(1),{refetch:k,data:A,isLoading:T,isError:S,error:E}=(0,o.K)("?searchString=",{page:1,pagesize:1e3},{hideToast:!0}),I=(0,o.w)(x>1?x:0),{mutateAsync:C,isPending:_,isSuccess:j,isError:N}=function(e){const t=(0,l.q)(),{t:n}=(0,c.Bd)(),i=(0,s.n)({mutationFn:async({bookmark:e})=>(await t.put("/bookmarks/global",e)).data,retry:!1});return(0,d.s)(i,e||{message:n("error.bookmark.addedFailure")})}({hideToast:!0}),{mutateAsync:L}=function(e){const t=(0,l.q)(),{t:n}=(0,c.Bd)(),i=(0,s.n)({mutationFn:async({bookmark:e})=>(await t.post("/bookmarks/dau",e)).data,retry:!1});return(0,d.s)(i,e||{message:n("error.bookmark.addedFailure")})}({hideToast:!0}),{mutateAsync:P,isPending:D,isSuccess:M,error:O}=function(e){const t=(0,l.q)(),{t:n}=(0,c.Bd)(),i=(0,s.n)({mutationFn:async({bookmark:e})=>await t.delete("/bookmarks/global",{data:e}),retry:!1});return(0,d.s)(i,e||{message:n("error.bookmark.failDelete")})}({message:y("error.bookmark.removeFailure")}),{mutateAsync:R}=function(e){const t=(0,l.q)(),{t:n}=(0,c.Bd)(),i=(0,s.n)({mutationFn:async({bookmarks:e})=>await t.delete("/bookmarks/dau",{data:{bookmarkIds:e}}),retry:!1});return(0,d.s)(i,e||{message:n("error.bookmark.failDelete")})}({message:y("error.bookmark.removeFailure")}),z=(0,p.n)(),B=(0,a.As)(),[U,F]=(0,r.useState)(!1),{warning:V,success:q,remove:H}=(0,m.e)();(0,r.useEffect)((()=>{B.authenticated&&k()}),[B.authenticated,k]),(0,r.useEffect)((()=>
2{if(!S&&A){const e=A.resultPage.content.map((e=>e.bookmark));n(e),b(e.map((e=>e.bookmarkId))),w(Math.ceil(A.resultPage.totalCount/g))}}),[A,S]);const G=(0,r.useCallback)((()=>{k(),I&&I.forEach((e=>e.refetch()))}),[k,I]),K=(0,r.useCallback)((async e=>{if(z)if(B.authenticated){const t=e.filter((e=>!0===e.bookmarkAllowed&&-1===v.indexOf(e.id))),n=t.map((e=>e.id));t.length<e.length&&n.length>0&&V({copy:y("error.bookmark.bookmarksNotAllowed")}),0===n.length&&V({copy:y("bookmark.noNewBookmarks")}),n.length>0&&(await C({bookmark:n}),G())}else F(!0);else V({copy:y("offline.disabledAction")})}),[B,C,G,y,z,v,V]),$=(0,r.useCallback)((async e=>{z?(await L({bookmark:e}),G()):V({copy:y("offline.disabledAction")})}),[z,L,y,V,G]);(0,r.useEffect)((()=>{_?q({copy:y("bookmark.bookmarking"),id:"bookmark-toast-success",focusToast:!1}):j?(H("bookmark-toast-success"),q({copy:y("bookmark.addedSuccess"),id:"bookmark-toast-success"})):N&&(H("bookmark-toast-success"),V({copy:y("error.bookmark.addedFailure"),id:"bookmark-toast-warning"}))}),[_,j,N]);const W=(0,r.useCallback)((async e=>{if(z)if(B.authenticated){const t=e.filter((e=>{var t;return void 0!==e.asset&&!0===(null===(t=e.asset)||void 0===t?void 0:t.bookmarkAllowed)})).map((e=>e.asset.id)),n=(0,h.A)();t.length>0&&await P({bookmark:{transactionId:n,assetIds:t}});const i=e.filter((e=>void 0!==e.dauPage&&null!==e.dauPage)).map((e=>e.bookmarkId));i.length>0&&await R({bookmarks:i}),G()}else F(!0);else V({copy:y("offline.disabledAction")})}),[B,P,z,G,V,y,R]);return(0,r.useEffect)((()=>{D?q({copy:y("bookmark.removing"),id:"delete-bookmark-toast",focusToast:!1}):M?(H("delete-bookmark-toast"),q({copy:y("bookmark.removeSuccess"),id:"delete-bookmark-toast"})):O&&H("delete-bookmark-toast")}),[D,M]),(0,r.useEffect)((()=>{var e;S&&404===(null===(e=E.response)||void 0===e?void 0:e.status)&&(n([]),b([]))}),[S,E]),(0,i.jsxs)(f.Provider,{value:{bookmarks:t,refetch:G,isLoading:T,bookBookmarks:K,deleteBookmarks:W,bookmarkDauPage:$,allBookmarkPages:I},children:[e,(0,i.jsx)(u.M,{open:U,onClose:()=>F(!1)})]})}},94301(e,t,n){n.d(t,{X:()=>E});var i=n(78685),r=n(2057),a=n(48624),o=n(71445),s=n(72924),l=n(34015),c=n(33125),d=n(808),u=n(85072),p=n.n(u),h=n(97825),m=n.n(h),g=n(77659),f=n.n(g),v=n(55056),b=n.n(v),y=n(10540),x=n.n(y),w=n(41113),k=n.n(w),A=n(93292),T={};T.styleTagTransform=k(),T.setAttributes=b(),T.insert=f().bind(null,"head"),T.domAPI=m(),T.insertStyleElement=x();p()(A.A,T);A.A&&A.A.locals&&A.A.locals;var S=n(4336);const E=({disabled:e=!1,asset:t,className:n="",copy:u,reverse:p,size:h})=>{const[m,g]=(0,r.useState)(!1),{bookmarks:f,bookBookmarks:v,deleteBookmarks:b,bookmarkDauPage:y}=(0,a.wn)(),{t:x}=(0,o.Bd)(),w=(0,r.useCallback)((async e=>{var n,i,r,a,o;e.preventDefault(),e.stopPropagation(),t.asset?(v([t.asset]),(0,S.r)({productId:null!==(r=null===(i=null===(n=t.asset)||void 0===n?void 0:n.book)||void 0===i?void 0:i.isbn)&&void 0!==r?r:t.asset.book.npNumber,productName:t.asset.title,contentId:t.asset.id,format:t.asset.format,eventType:"addBookmark"})):(y(Object.assign(Object.assign({},t.dauPage),{bookId:(null===(o=null===(a=t.dauPage)||void 0===a?void 0:a.book)||void 0===o?void 0:o.isbn)?t.dauPage.book.isbn:t.dauPage.book.npNumber})),(0,S.r)({productId:t.dauPage.book.npNumber,productName:t.dauPage.book.bookTitle,contentId:t.dauPage.book.npNumber,format:t.dauPage.format,eventType:"addBookmark"}))}),[t,v,y]),k=(0,r.useCallback)((async e=>{e.preventDefault(),e.stopPropagation(),b([t])}),[b,t]);return(0,r.useEffect)((()=>{let e;t.asset?e=f.find((e=>{var n;return t.asset.id===(null===(n=e.asset)||void 0===n?void 0:n.id)})):t.dauPage&&(e=f.find((e=>t.bookmarkId===e.bookmarkId))),g(!!e)}),[f,t]),(0,i.jsx)(s.$,{ariaLabel:x(m?"bookmark.removeBookmarkAria":"bookmark.setBookmarkAria"),className:`${n} ${m?"bookmark--marked":""}`,disabled:e,icon:(0,i.jsx)(l.I,{source:m?d.A:c.A}),variant:"plain",reverse:p,onClick:m?k:w,title:u?"":x(m?"bookmark.removeBookmarkAria":"bookmark.setBookmarkAria"),size:h||"",children:u&&x(m?"bookmark.removeSingle":"bookmark.add")})}},23093(e,t,n){n.d(t,{K:()=>c,w:()=>d});
2var i=n(18739),r=n(40671),a=n(8983),o=n(71445),s=n(7009),l=n(48624);function c(e,t,n,i){const l=(0,a.q)(),{t:c}=(0,o.Bd)(),d=(0,r.I)({queryKey:["get-search-bookmark",e,t],queryFn:()=>(async()=>{const n=e.includes("page")&&e.includes("pagesize")?"":t?"&page="+t.page+"&pagesize="+t.pagesize:"&page=1&pagesize=10",r=e.includes("sortField")&&e.includes("sortDirection")?"":i?"&sortField=timeliness&sortDirection=descending":"";return(await l.get(`/bookmarks/search${e}${n}${r}`)).data})(),retry:!1,enabled:!1});return(0,s.V)(d,n||{message:c("error.bookmark.failSearch")})}function d(e){const t=(0,a.q)(),n=async e=>{const n=`&page=${e}&pagesize=${l.c6}&sortField=timeliness&sortDirection=descending`;return(await t.get(`/bookmarks/search?searchString=${n}`)).data};return(0,i.E)({queries:(()=>{const t=[];for(let i=1;i<=e;i++)t.push({queryKey:["get-search-bookmark",e,i+1],queryFn:()=>n(i),retry:!1});return t})()})}},51031(e,t,n){n.d(t,{u:()=>c,v:()=>l});var i=n(21812),r=n(30313),a=n(26365),o=n(38662),s=n(56455);const l=(e,t,n)=>{const l=n||"";return t===i.OH.UHB||"uhbpage"===t||t===s.SE.UHB?{to:(0,a.tW)(o.J.uhb,{id:e})+l}:t===i.OH.EKSDI||"eksdipage"===t||t===s.SE.EKSDI?n?{to:(0,a.tW)("/"+o.J.eksdi.index,{mapId:e})+"?"+(0,r.PI)({xmlId:l})}:{to:(0,a.tW)("/"+o.J.eksdi.index,{mapId:e})}:t===i.OH.TOOL?{to:l}:{to:(0,a.tW)(o.J.dau,{id:e})+l}},c=e=>e===i.OH.UHB||"uhbpage"===e?"lehrerwelt":e===i.OH.DAU||"daupage"===e?"digitalContent":e===i.OH.EKSDI||"eksdipage"===e?"lernplus":e===i.OH.TOOL?"tool":void 0},71903(e,t,n){n.d(t,{l:()=>s});var i=n(40671),r=n(8983),a=n(71445),o=n(7009);function s(e,t,n){const s=(0,r.q)(),{t:l}=(0,a.Bd)(),c=(0,i.I)({queryKey:["get-dau-versions",e,t],queryFn:async()=>(await s.get(`/digital/dauEdits/${e}`)).data,retry:!1,enabled:!1});return(0,o.V)(c,n||{message:l("error.augmented.failGetProduct")})}},86165(e,t,n){n.d(t,{Ue:()=>g,BU:()=>m});var i=n(78685),r=n(2057),a=n(71903),o=n(97749),s=n(8983),l=n(71445),c=n(7009);var d=n(81970),u=n(40160),p=n(40671);const h=r.createContext(null),m=()=>(0,r.useContext)(h),g=({children:e})=>{const{id:t}=(0,d.g)(),n=(0,u.V)(),{refetch:m,data:g}=(0,a.l)(t,n.get("version")||"",{hideToast:!0}),{refetch:f}=function(e,t,n,i){const r=(0,s.q)(),{t:a}=(0,l.Bd)(),o=(0,p.I)({queryKey:["get-dau-shared-version-by-id"],queryFn:async()=>(await r.get(`/digital/dauEdits/${n}/shared/${e}/${t}`)).data,retry:!1,enabled:!1});return(0,c.V)(o,i||{message:a("error.augmented.failGetProduct")})}(t,n.get("version"),n.get("u"),{hideToast:!0}),[v,b]=(0,r.useState)(),[y,x]=(0,r.useState)({versionId:"-1",versionName:""}),{mutateAsync:w}=function(e){const t=(0,s.q)(),{t:n}=(0,l.Bd)(),i=(0,o.n)({mutationFn:async({info:e})=>(await t.post("/digital/dauEdits",Object.assign({},e))).data,retry:!1});return(0,c.s)(i,e||{message:n("error.augmented.failGetProduct")})}({hideToast:!0}),{mutateAsync:k}=function(e){const t=(0,s.q)(),{t:n}=(0,l.Bd)(),i=(0,o.n)({mutationFn:async({info:e})=>(await t.put(`/digital/dauEdits/${e.bookId}/${e.versionId}`,e.dauEditsToUpsert,{params:null!=e.expectedVersion?{expectedVersion:e.expectedVersion}:void 0})).data,retry:!1});return(0,c.s)(i,e||{message:n("error.dau.failedSaveVersion")})}(),{mutateAsync:A}=function(e){const t=(0,s.q)(),{t:n}=(0,l.Bd)(),i=(0,o.n)({mutationFn:async({bookId:e,versionId:n,dauEditId:i,expectedVersion:r})=>(await t.delete(`/digital/dauEdits/${e}/${n}/${i}`,{params:null!=r?{expectedVersion:r}:void 0})).data,retry:!1});return(0,c.s)(i,e||{message:n("error.dau.failedDeleteEdit")})}(),{t:T}=(0,l.Bd)(),S=(0,r.useRef)(!1);(0,r.useEffect)((()=>{(null==g?void 0:g.content)&&v&&v.info&&!g.content.includes(v.info)&&(g.content.push(v.info),x(v.info))}),[g,v]),(0,r.useEffect)((()=>{"-1"===n.get("version")?b(void 0):n.get("u")&&(null==g?void 0:g.content)&&f().then((e=>{e&&e.data&&n.get("version")&&e.data.info.versionId===n.get("version")?b(e.data):b(void 0)}))}),[f,g,n]),(0,r.useEffect)((()=>{if(g&&!S.current){if(g.content.length>0)if(n.get("version")){const e=g.content.filter((e=>e.versionId===n.get("version")))[0];x(e||{versionId:"-1",versionName:""})}else x(g.content[0]);S.current=!0}}),[n,g,y]),(0,r.useEffect)((()=>{m()}),[m]);const E=e=>{m().then((()=>{e&&x(e)}))},I=async()=>{var e;const t=null===(e=(await m()).data)||void 0===e?void 0:e.content.find((e=>e.versionId===y.versionId));t&&x(t)};return(0,i.jsx)(h.Provider,{value:{currentVersion:y,setCurrentVersion:e=>{x(e)},versions:(null==g?void 0:g.content)?g.content:[],saveVersion:async(e,n,i)=>{var r;let a;if(n)a=await w({info:{versionName:n,initialEdits:e,bookId:t}}),E(a);else{if("-1"===y.versionId)throw{response:{data:T("dau.version.create.validation.empty")}};const n=y.versionId;try{a=await k({info:{versionId:n,dauEditsToUpsert:e,bookId:t,expectedVersion:null!=i?i:y.version}}),x((e=>e.versionId===n?Object.assign(Object.assign({},e),{version:a.version}
2):e)),m()}catch(e){throw 409===(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.status)&&await I(),e}}return a},deleteDauEdits:async e=>{var n;if("-1"===y.versionId||0===e.length)return;const i=y.versionId;let r=y.version;try{for(const n of e){const e=await A({bookId:t,versionId:i,dauEditId:n,expectedVersion:r});r=e.version}return x((e=>e.versionId===i?Object.assign(Object.assign({},e),{version:r}):e)),r}catch(e){throw 409===(null===(n=null==e?void 0:e.response)||void 0===n?void 0:n.status)&&await I(),e}},refetchVersions:E,sharedDauVersion:v},children:e})}},21812(e,t,n){var i,r,a;n.d(t,{OH:()=>a,w2:()=>r,yK:()=>i}),function(e){e.PLAYLIST="playlist",e.SHARED_PLAYLIST="shared_playlist",e.AUGMENTED="augmented",e.CURATEDLIST="curatedlist",e.SHARED_CURATEDLIST="shared_curatedlist",e.DAU="dau",e.UHB="uhb",e.EKSDI="eksdi"}(i||(i={})),function(e){e.OPENED="opened",e.CLOSED="closed"}(r||(r={})),function(e){e.DAU="dau",e.UHB="uhb",e.EKSDI="eksdi",e.TOOL="tool",e.UNKNOWN="unknown"}(a||(a={}))},84055(e,t,n){n.d(t,{M:()=>u});var i=n(78685),r=n(2057),a=n(71445),o=n(72924),s=n(15085),l=n(15719),c=n(51581),d=n(8236);const u=({open:e,onClose:t,copy:n})=>{const[u,p]=(0,r.useState)(!1),{t:h}=(0,a.Bd)(),m=(0,r.useCallback)((e=>{e.preventDefault(),p(!1),t()}),[t]);(0,r.useEffect)((()=>{e&&p(e)}),[e]);const g=(0,c.pn)(u,d.h);return(0,i.jsx)(s.bL,{open:u,onOpenChange:p,children:(0,i.jsx)(s.ZL,{forceMount:!0,children:g(((e,t)=>t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.hJ,{className:"dialog__overlay dialog__overlay--top-prio"}),(0,i.jsx)(s.UC,{className:"dialog__content dialog__content--top-prio",onInteractOutside:m,onEscapeKeyDown:m,children:(0,i.jsxs)(c.CS.div,{style:e,className:"dialog__body",children:[(0,i.jsx)(s.hE,{className:"dialog__title",children:h("bookmark.teaser.title")}),(0,i.jsxs)("div",{className:"dialog__text",children:[n&&n,!n&&(0,i.jsx)("p",{children:h("bookmark.teaser.copy")})]}),(0,i.jsxs)("div",{className:"dialog__buttons",children:[(0,i.jsx)(o.$,{variant:"default",onClick:m,children:h("bookmark.teaser.close")}),(0,i.jsx)(l.M,{variant:"primary",text:h("bookmark.teaser.login")})]})]})})]}):null))})})}},79384(e,t,n){n.d(t,{h:()=>M,Z:()=>D});var i=n(78685),r=n(2057),a=n(85072),o=n.n(a),s=n(97825),l=n.n(s),c=n(77659),d=n.n(c),u=n(55056),p=n.n(u),h=n(10540),m=n.n(h),g=n(41113),f=n.n(g),v=n(12105),b={};b.styleTagTransform=f(),b.setAttributes=p(),b.insert=d().bind(null,"head"),b.domAPI=l(),b.insertStyleElement=m();o()(v.A,b);v.A&&v.A.locals&&v.A.locals;var y,x=n(71445),w=n(16682),k=n(81970),A=n(26365),T=n(34015);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},S.apply(null,arguments)}const E=e=>r.createElement("svg",S({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),y||(y=r.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20m-.997-4L6.76 11.757l1.414-1.414 2.829 2.829 5.656-5.657 1.415 1.414z"})));var I=n(62255),C=n(40671),_=n(8983),j=n(62771),N=n(7009);var L=n(84055),P=n(17407);const D=e=>e.charAt(0).toUpperCase()+e.slice(1),M=({category:e,userHasLicense:t,demoLinks:n,closeModal:a})=>{var o;const{t:s}=(0,x.Bd)(),{authenticated:l}=(0,j.As)(),{pathname:c}=(0,k.zy)(),[d,u]=(0,r.useState)(!1),p=null===(o=e.commercialAssets)||void 0===o?void 0:o.find((e=>e.demo)),h=(e.count?e.count+" ":"")+s("upCommercial.content.category."+D(e.label)+(e.count>1?".plural":".singular")),{data:m}=function(e,t){const n=(0,_.q)(),{authInitialized:i}=(0,j.As)(),{t:r}=(0,x.Bd)(),{assetId:a,isEnabled:o=!1}=e,s=(0,C.I)({queryKey:["get-asset-meta-data",a],queryFn:async()=>(await n.get(`/asset/${a}`)).data,retry:!1,enabled:o&&i});return(0,N.V)(s,t||{message:r("error.asset.failGetAccess")})}({assetId:null==p?void 0:p.commercialAssetId,isEnabled:!!(null==p?void 0:p.commercialAssetId)&&l},{hideToast:!0}),g=(0,r.useCallback)((()=>{if(l&&m)return m.format===P.i_.LINK?{to:m.value,target:"_blank"}:{to:(0,A.tW)(c,{id:p.commercialAssetId.split("/")[0]})+"?id="+p.commercialAssetId+`&type=${m.format}`}}),[l,m]);return(0,i.jsxs)("li",{className:"upCommercial_content_category",children:[(0,i.jsx)(T.I,{source:E,className:"m-0 "+(t?"text-textSuccess":"")}
2),p&&!t&&m&&n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(w.z,Object.assign({},g(),{className:"upCommercial_content_demo__link",onClick:e=>{l?(u(!1),a()):(e.preventDefault(),u(!0))},children:h})),(0,i.jsx)("div",{children:(0,i.jsx)(I.E,{type:"demo",children:s("upCommercial.content.demo")})})]}):(0,i.jsx)("span",{children:h}),!l&&(0,i.jsx)(L.M,{open:d,onClose:()=>u(!1)})]})}},45929(e,t,n){n.d(t,{D:()=>w});var i=n(78685),r=n(2057),a=n(71445),o=n(73505),s=n(28520),l=n(52544),c=n(67413),d=n(39154),u=n(7350),p=n(72924),h=n(44847),m=n(4336),g=n(34015),f=n(15958),v=n(58469),b=n(17407),y=n(79384);const x=(0,o.A)(),w=({asset:e,iconOnly:t=!1})=>{const{t:n}=(0,a.Bd)(),o=(0,c.U)(),{success:w}=(0,u.e)(),{setError:k}=(0,h.q)(),{mutateAsync:A}=(0,v.u)(),[T,S]=(0,r.useState)(!1),E=(0,r.useCallback)((()=>{if(e)switch(e.format){case b.i_.DASHA:case b.i_.HLSA:return b.i_.AUDIO;case b.i_.DASH:case b.i_.HLS:return b.i_.VIDEO;default:return e.format}return b.i_.FILE}),[e]),{data:I}=(0,l.G)({format:E(),id:e.id,isEnabled:T},{hideToast:!0}),C=(0,r.useCallback)((t=>{const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e.originalFilename?e.originalFilename:e.id,n.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window}))}),[e]),_=(0,r.useCallback)(((e,t)=>{const i=e=>{s.A.get(e,{headers:{"Content-Type":"application/json",Accept:"application/pdf"},responseType:"arraybuffer"}).then((e=>{const t=new Blob([e.data],{type:"application/pdf"});C(t)})).catch((e=>{var t,i,r;"string"==typeof(null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)&&400===(null===(i=null==e?void 0:e.response)||void 0===i?void 0:i.status)?k(null===(r=null==e?void 0:e.response)||void 0===r?void 0:r.data,x):k(n("error.general"),x)}))};if(e.isProduction)i(t.url);else{i(t.url.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443"))}}),[C,k,n]);(0,r.useEffect)((()=>{if(I&&T)if(S(!1),"pdf"==e.format)_(o,I);else try{const t=(0,f.ID)(I,o.isProduction),n=(0,f.mG)(e);(0,f.PE)(t,n)}catch(e){A({errorMessage:"Error downloading File",errorObject:e})}}),[I,T]);const j=(0,r.useCallback)((async t=>{var i;t.stopPropagation(),(0,m.r)({productId:null!==(i=e.book.isbn)&&void 0!==i?i:e.book.npNumber,productName:e.title,eventType:"downloadAsset",format:e.format}),w({copy:n("augmented.downloadStarted")}),S(!0)}),[e,w,n]),N=()=>{const e=E(),t=(0,y.Z)(e),i=n(`upCommercial.content.category.${t}.singular`);return n("augmented.downloadAria",{format:i})};return(0,i.jsx)("div",{className:"offline-download",children:(0,i.jsx)(p.$,{onClick:j,variant:"plain",className:"offline-download-button",size:t?"sm":void 0,icon:(0,i.jsx)(g.I,{source:d.A,accessibilityLabel:t?n("augmented.download"):void 0}),ariaLabel:N(),title:t?N():void 0,children:!t&&n("augmented.download")})})}},15958(e,t,n){n.d(t,{ID:()=>a,PE:()=>r,mG:()=>o});var i=n(17407);const r=async(e,t)=>{const n=await fetch(e,{cache:"no-store"});if(!n.ok)throw new Error(`Download failed: ${n.statusText}`);const i=await n.blob(),r=URL.createObjectURL(i),a=document.createElement("a");a.href=r,a.download=t,document.body.appendChild(a),a.click(),a.remove(),setTimeout((()=>URL.revokeObjectURL(r)),5e3)},a=(e,t)=>{let n=e.url;return t||(n=n.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443")),n},o=e=>e.format===i.i_.FILE?e.originalFilename?e.originalFilename:`${e.id}.${e.value.split(".")[1]}`:e.originalFilename?e.originalFilename:`${e.id}.${(0,i.uQ)(e.format)}`},5011(e,t,n){n.d(t,{iF:()=>y,sO:()=>S,yv:()=>E});var i=n(78685),r=n(2057),a=n(86479),o=n(72016),s=n(28520),l=n(52544),c=n(67413),d=n(41319),u=n(58469);var p=n(47202),h=n(49395);function m(e){var t;const[n,i]=(0,r.useState)(),[a,o]=(0,r.useState)(),s=(0,r.useRef)(),m=(0,c.U)(),g=(0,r.useRef)(),{mutateAsync:f}=(0,u.u)(),v=(0,p.p)();v.api.configure({offline:{progressCallback:(t,i)=>{if(n){let r=t.size;(null==e?void 0:e.subtitleFormat)===h._.SRT&&(r+=1),n(i,r,g.current)}}}});const b=(0,r.useCallback)((()=>"audio"==(null==e?void 0:e.format)?v.format?"hlsa":"dasha":"video"==(null==e?void 0:e.format)?v.format?"hls":"dash":void 0),[e,v.format])(),y=(0,l.G)({format:b,id:null==e?void 0:e.id,isEnabled:!(!n||!(null==e?void 0:e.id)||"audio"!==e.format&&"video"!==e.format)},{hideToast:!0}),x=(0,r.useRef)(),w=(0,r.useCallback)((async t=>{const i={id:null==e?void 0:e.id,title:null==e?void 0:e.title,isSubtitle:!1,downloaded:new Date};if(t){const r=(await v.api.list()).filter((t=>t.appMetadata.id===(null==e?void 0:e.id)));for(const t of r){if(t.appMetadata.isSubtitle)try{(0,d.aq)(e.id,"srt")}catch(e){f({errorMessage:"Error removing offline media",errorObject:e})}await v.api.remove(t.offlineUri)}let o=t.subtitleUrl;o&&(i.isSubtitle=!0,m.isProduction||(o=o.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443")));const l=v.api.store(t.url,i);x.current=l;try{if(await l.promise,i.isSubtitle){const t=await fetch(o),n=await t.arrayBuffer();await(0,d.J)({title:null==e?void 0:e.title,id:null==e?void 0:e.id,binary:n},"srt")}n(1001,s.current,g.current)}catch(e){console.error("Error from Shaka player: ",e),a(e),f({errorMessage:"Error from Shaka player - getting media and store offline (this might sometimes be triggered by a abort of download)",errorObject:e})}}}),[n,null==e?void 0:e.id,v,a,s,f]);(0,r.useEffect)((()=>{y.isError&&a&&("audio"===e.format||"video"===e.format)&&(console.error("Error: ",y.failureReason),a(y.failureReason)),n&&y.data&&(null==e?void 0:e.id)&&("audio"===e.format||"video"===e.format)&&(async()=>{g.current=y.data.licenseValidTo,await w(y.data)})()}),[null===(t=y.data)||void 0===t?void 0:t.url,y.isError,n]);return{store:(e,t)=>
2{i((()=>e)),o((()=>t))},abort:(0,r.useCallback)((async()=>{if(x.current)try{await x.current.abort()}catch(e){console.error("Error during abort",e),f({errorMessage:"Error during abort media",errorObject:e})}}),[x,f])}}var g=n(73505),f=n(8983),v=n(17407);function b(e,t){const n=(0,f.q)(),i=(0,r.useRef)(),a=(0,c.U)(),o=(0,r.useRef)(!1),{mutateAsync:s}=(0,u.u)(),[p,h]=(0,r.useState)(),{data:m,isError:g,failureReason:b}=(0,l.G)({format:"pdf",id:null==e?void 0:e.id,path:t?"/daupdf":"",isEnabled:!!p&&!!(null==e?void 0:e.id)&&"pdf"===e.format},{hideToast:!0}),[y,x]=(0,r.useState)(),w=(0,r.useRef)(),k=async r=>{if(e.id){i.current=m.licenseValidTo;const o=await n.get((e=>a.isProduction?e:e.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443"))(r),{onDownloadProgress:async e=>{const t=e.total>0?e.total:1e7;var n,r,a;n=e.loaded/t,r=e.loaded,a=i.current,p&&(w.current=r,p(n,r,a))},responseType:"arraybuffer",headers:{"Content-Type":"application/json",Accept:"application/pdf"}});await(0,d.J)({title:e.title,id:e.id,binary:o.data},t?v.i_.DAU_PDF:v.i_.PDF),p(1001,w.current,i.current)}};return(0,r.useEffect)((()=>{g&&y&&"pdf"===e.format&&(console.error("Error: ",b),y(b)),p&&m&&(null==e?void 0:e.id)&&"pdf"===e.format&&(o.current||(o.current=!0,k(m.url).then((()=>{o.current=!1})).catch((e=>{y(e),o.current=!1,s({errorMessage:"Error getting pdf and store offline",errorObject:e})}))))}),[null==m?void 0:m.url,g,p]),(e,t)=>{h((()=>e)),x((()=>t))}}var y,x=n(95341),w=n(62771),k=n(56455),A=n(4336);!function(e){e[e.WAITING=0]="WAITING",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.CACHED=2]="CACHED",e[e.NOT_STORED=3]="NOT_STORED",e[e.FAILURE=4]="FAILURE"}(y||(y={}));const T=r.createContext(null),S=({children:e})=>{var t,n,h;const f=(0,w.As)(),S=(0,r.useRef)(!1),E=(0,r.useRef)(!1),I=(0,x.kk)((()=>{var e;return o.db.storageRequests.where({state:y.CACHED,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).reverse().sortBy("modified")}),[f.profile]),C=(0,x.kk)((()=>{var e;return o.db.storageRequests.where({state:y.WAITING,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).sortBy("modified")}),[f.profile]),_=(0,x.kk)((()=>{var e;return o.db.storageRequests.where({state:y.FAILURE,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).sortBy("modified")}),[f.profile]),j=(0,x.kk)((()=>{var e;return o.db.storageRequests.where({state:y.IN_PROGRESS,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).first()}),[f.profile]),N=(0,x.kk)((()=>o.db.storageRequests.where("licenseValidTo").below((Date.now()-864e5)/1e3).toArray()),[f.profile]),L=(0,x.kk)((()=>{var e;return o.db.storageRequests.where({user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).sortBy("state",(e=>(e.sort(((e,t)=>e.state===t.state?t.modified-e.modified:e.state-t.state)),e)))}),[f.profile]),P=(0,r.useMemo)((()=>(0,g.A)()),[]),D=b(null==j?void 0:j.asset,null==j?void 0:j.asset.isDau),M=function(e){const t=1e7,n=(0,r.useRef)(),i=(0,r.useRef)(),{mutateAsync:a}=(0,u.u)(),[o,p]=(0,r.useState)(),{data:h,isError:m,failureReason:g}=(0,l.G)({format:"html",id:null==e?void 0:e.id,isEnabled:!!o&&!!(null==e?void 0:e.id)&&"html"===e.format},{hideToast:!0}),[f,v]=(0,r.useState)(),b=(0,r.useCallback)(((e,t,n)=>{o&&o(e,t,n)}),[o]),y=(0,c.U)(),x=(0,r.useCallback)((async(e,i)=>{if(i){if(e.isProduction)return await s.A.get(i.url,{onDownloadProgress:e=>{const r=e.total>0?e.total:t;n.current=e.loaded,b(e.loaded/r,e.loaded,i.licenseValidTo)}});{const e=i.url.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443");return await s.A.get(e,{onDownloadProgress:e=>{const r=e.total>0?e.total:t;n.current=e.loaded,b(e.loaded/r,e.loaded,i.licenseValidTo)}})}}}),[b]),w=(0,r.useCallback)((async()=>{if(null==e?void 0:e.id)return i.current=h.licenseValidTo,(await x(y,h)).data}),[e,y,x,h]);return(0,r.useEffect)((()=>{m&&f&&"html"===e.format&&(console.error("Error: ",g),f(g)),o&&h&&(null==e?void 0:e.id)&&"html"===e.format&&w().then((t=>{(0,d.J)({title:null==e?void 0:e.title,id:null==e?void 0:e.id,binary:t},"html").then((()=>{o(1001,n.current,i.current)}))}
2)).catch((e=>{f(e),a({errorMessage:"Error getting html and store offline",errorObject:e})}))}),[null==h?void 0:h.url,m,o]),(e,t)=>{p((()=>e)),v((()=>t))}}(null==j?void 0:j.asset),{store:O,abort:R}=m(null==j?void 0:j.asset),z=(0,p.p)(),{mutateAsync:B}=(0,u.u)(),U=(0,r.useCallback)((async(e,t,n)=>{var i;if(e&&S.current){const r=await o.db.storageRequests.where({state:y.IN_PROGRESS,user:(null===(i=f.profile)||void 0===i?void 0:i.id)?f.profile.id:"none existing"}).first();r&&(r.modified=Date.now(),e>=1e3?(r.state=y.CACHED,r.progress=null,r.size=t,r.licenseValidTo=n,S.current=!1):r.progress=Math.floor(100*e)<=100?Math.floor(100*e):e,await o.db.storageRequests.put(r))}}),[null===(t=f.profile)||void 0===t?void 0:t.id]),F=(0,r.useCallback)((async()=>{var e;if(S.current){const t=await o.db.storageRequests.where({state:y.IN_PROGRESS,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).first();t&&(t.state=y.FAILURE,t.modified=Date.now(),await o.db.storageRequests.put(t))}}),[null===(n=f.profile)||void 0===n?void 0:n.id]),V=(0,r.useCallback)((async()=>{E.current&&C&&C[0]&&!S.current&&(C[0].modified=Date.now(),C[0].state=y.IN_PROGRESS,await o.db.storageRequests.put(C[0]))}),[C,E,S]);(0,r.useEffect)((()=>{V()}),[C,I]);const q=(0,r.useCallback)((e=>{E.current&&(e?S.current||(S.current=!0,"pdf"===e.asset.format?D(U,F):"html"===e.asset.format?M(U,F):"audio"!==e.asset.format&&"video"!==e.asset.format||O(U,F)):S.current&&(S.current=!1))}),[E,S,O,D,M,U,F]);(0,r.useEffect)((()=>{j&&q(j)}),[j]);const H=async()=>{E.current=!0,S.current=!1,await o.db.currentOfflineManager.clear(),V(),await o.db.currentOfflineManager.put({id:P,lastAlive:Date.now()})},G=(0,r.useCallback)((async e=>{var t;0===(await o.db.storageRequests.where({"asset.id":e.asset.id,user:(null===(t=f.profile)||void 0===t?void 0:t.id)?f.profile.id:"none existing"}).toArray()).length&&(e.modified=Date.now(),await o.db.storageRequests.add(e))}),[f]),K=(0,r.useCallback)((async e=>{var t,n,i,r,a;S.current=!1;const s=await o.db.storageRequests.where({"asset.id":e.id,user:(null===(t=f.profile)||void 0===t?void 0:t.id)?f.profile.id:"none existing"}).first();if(s){await o.db.storageRequests.delete(s.primeKey);if((await o.db.storageRequests.where({"asset.id":e.id}).toArray()).filter((e=>{var t;return e.user!==(null===(t=f.profile)||void 0===t?void 0:t.id)})).length>0)return;const t=async e=>{await R();return(await z.api.list()).filter((t=>t.appMetadata.title===e))},l="daupage"==(null==e?void 0:e.bookFormat)||"uhbpage"===(null==e?void 0:e.bookFormat)?v.i_.DAU_PDF:e.format;try{switch(l){case"pdf":await(0,d.aq)(e.id,"pdf");break;case"daupdf":await(0,d.aq)(e.id,"daupdf");break;case"html":await(0,d.aq)(e.id,"html");break;case"video":{const r=await t(e.title);(null===(n=r[0])||void 0===n?void 0:n.offlineUri)&&await z.api.remove(null===(i=r[0])||void 0===i?void 0:i.offlineUri),"srt"===e.subtitleFormat&&await(0,d.aq)(e.id,"srt");break}case"audio":{const n=await t(e.title);(null===(r=n[0])||void 0===r?void 0:r.offlineUri)&&await z.api.remove(null===(a=n[0])||void 0===a?void 0:a.offlineUri),"srt"===e.subtitleFormat&&await(0,d.aq)(e.id,"srt");break}}}catch(t){return S.current=!1,B({errorMessage:`Error removing offline asset (${e.format})`,errorObject:t}),void await o.db.storageRequests.delete(s.primeKey)}}}),[z,R,f,B]),$=(0,r.useCallback)((async e=>{var t;const n=await o.db.storageRequests.where({"asset.id":e,user:(null===(t=f.profile)||void 0===t?void 0:t.id)?f.profile.id:"none existing"}).first();n.state=y.WAITING,n.modified=Date.now(),await o.db.storageRequests.put(n)}),[f]);(0,a.$)((()=>(async e=>{if(!f.authenticated)return;const t=await o.db.currentOfflineManager.orderBy("lastAlive").first();N&&N.length>0&&N.forEach((e=>{K(e.asset)})),t?P!=t.id?Date.now()-t.lastAlive>2e4&&H():(!e&&C&&C.length>0&&(S.current=!1,V()),e&&!S.current&&q(e),await o.db.currentOfflineManager.put({id:P,lastAlive:Date.now()})):H()})(j)),5e3);const W=(0,r.useCallback)((async e=>{var t;G({primeKey:e.id,asset:e,user:null===(t=f.profile)||void 0===t?void 0:t.id,state:y.WAITING})}),[G,f]),X=(0,r.useCallback)((()=>!!window.MediaSource&&(null===MediaSource||void 0===MediaSource?void 0:MediaSource.isTypeSupp
2orted)),[]),Y=(0,r.useCallback)((e=>{const t=X();e.forEach((e=>{var n;(t||!t&&e.format!==v.i_.VIDEO&&e.format!==v.i_.AUDIO)&&(void 0!==(null==e?void 0:e.allowed)&&!0!==(null==e?void 0:e.allowed)||!(null==e?void 0:e.offlineAllowed)||(null==e?void 0:e.accessLockState)===k.Jm.LOCKED||(null==e?void 0:e.format)===v.i_.LINK||(W(Object.assign(Object.assign({},e),{isDau:!1})),(0,A.r)({productId:null!==(n=e.book.isbn)&&void 0!==n?n:e.book.npNumber,productName:e.title,format:e.format,contentId:e.id,eventType:"cacheAsset"})))}))}),[W,X]),J=(0,r.useCallback)((e=>{var t,n,i;G({primeKey:(0,g.A)(),asset:Object.assign(Object.assign({},e),{isDau:!0}),user:null===(t=f.profile)||void 0===t?void 0:t.id,state:y.WAITING}),(0,A.r)({productId:null!==(n=e.book.isbn)&&void 0!==n?n:e.book.npNumber,productName:e.book.bookTitle,format:e.bookFormat,contentId:null!==(i=e.book.isbn)&&void 0!==i?i:e.book.npNumber,eventType:"cacheAsset"})}),[G,null===(h=f.profile)||void 0===h?void 0:h.id]);return(0,i.jsx)(T.Provider,{value:{requestCaching:G,deleteAsset:K,storedAssets:I,storedRequests:C,currentEntry:j,failedAssets:_,allRequests:L,queryState:async(e,t)=>{var n;const i=await o.db.storageRequests.where({"asset.id":e,user:(null===(n=f.profile)||void 0===n?void 0:n.id)?f.profile.id:"none existing"}).first();t(i?i.state:y.NOT_STORED)},retryAsset:$,downloadAssets:Y,abortAll:()=>{var e,t,n;o.db.storageRequests.where({state:y.WAITING,user:(null===(e=f.profile)||void 0===e?void 0:e.id)?f.profile.id:"none existing"}).delete(),o.db.storageRequests.where({state:y.FAILURE,user:(null===(t=f.profile)||void 0===t?void 0:t.id)?f.profile.id:"none existing"}).delete(),o.db.storageRequests.where({state:y.IN_PROGRESS,user:(null===(n=f.profile)||void 0===n?void 0:n.id)?f.profile.id:"none existing"}).first().then((e=>{K(e.asset)}))},downloadDau:J,downloading:S.current},children:e})},E=()=>(0,r.useContext)(T)},94456(e,t,n){n.d(t,{A:()=>o});var i=n(2057),r=n(40741),a=n(12123);const o=e=>{const t=(0,r.n)(),n=(0,a.A)(e);return(0,i.useCallback)((async()=>!t&&!n),[t,n])}},12123(e,t,n){n.d(t,{A:()=>s});var i=n(72016),r=n(5011),a=n(95341),o=n(62771);const s=e=>{const{profile:t}=(0,o.As)(),{storedRequests:n}=(0,r.yv)();return(0,a.kk)((()=>i.db.storageRequests.where({"asset.id":e,user:null==t?void 0:t.id,state:r.iF.CACHED}).first()),[n])}},33182(e,t,n){n.d(t,{o:()=>L});var i=n(78685),r=n(2057),a=n(72016),o=n(71445),s=n(44847),l=n(95341),c=n(5011),d=n(89868),u=n(72924),p=n(34015),h=n(67940),m=n(30013),g=n(85072),f=n.n(g),v=n(97825),b=n.n(v),y=n(77659),x=n.n(y),w=n(55056),k=n.n(w),A=n(10540),T=n.n(A),S=n(41113),E=n.n(S),I=n(61790),C={};C.styleTagTransform=E(),C.setAttributes=k(),C.insert=x().bind(null,"head"),C.domAPI=b(),C.insertStyleElement=T();f()(I.A,C);I.A&&I.A.locals&&I.A.locals;var _=n(62771),j=n(7350),N=n(58469);const L=({asset:e,disabled:t=!1})=>{var n,g;const{t:f}=(0,o.Bd)(),{profile:v}=(0,_.As)(),{setError:b}=(0,s.q)(),{success:y}=(0,j.e)(),{mutateAsync:x}=(0,N.u)(),w=(0,c.yv)(),k=(0,l.kk)((()=>a.db.storageRequests.where({"asset.id":e.id,user:null==v?void 0:v.id}).sortBy("modified"))),A=null!==(g=null===(n=null==k?void 0:k[0])||void 0===n?void 0:n.state)&&void 0!==g?g:c.iF.NOT_STORED,T=(0,r.useCallback)((async()=>{w.deleteAsset(e)}),[w,e]),S=(0,r.useCallback)((async()=>{w.retryAsset(e.id)}),[w,e]),E=(0,r.useCallback)((async n=>{n.stopPropagation(),t?y({copy:f("augmented.offlineDisabled")}):A===c.iF.FAILURE?S().catch((e=>{b(e.message),x({errorMessage:"Could not save asset offline",errorObject:e.message})})):w.downloadAssets([e])}),[w,e,A,S,b,t,y,x,f]),I=(0,r.useCallback)((async e=>{e.stopPropagation(),T().catch((e=>{b(e.message),x({errorMessage:"Could not remove offline asset",errorObject:e.message})}))}),[T,b,x]);return(0,i.jsxs)("div",{"aria-live":"polite",children:[(0,i.jsx)(d.o,{inProgress:A===c.iF.IN_PROGRESS||A===c.iF.WAITING,small:!0}),A===c.iF.CACHED&&(0,i.jsx)(u.$,{variant:"plain",onClick:I,className:"offline-remove",disabled:t,icon:(0,i.jsx)(p.I,{source:h.A}),children:f("augmented.offline-remove")}),A!==c.iF.CACHED&&A!==c.iF.IN_PROGRESS&&A!==c.iF.WAITING&&(0,i.jsx)(u.$,{variant:"plain",onClick:E,className:"offline-download-button",icon:(0,i.jsx)(p.I,{source:m.A}),children:f("augmented.offline")})]})}},41319(e,t,n){n.d(t,{J:()=>
2o,aq:()=>a,jC:()=>s});var i=n(72016);const r=e=>{if("pdf"==e)return i.db.pdfs;if("daupdf"==e)return i.db.daupdfs;if("html"==e)return i.db.htmls;if("srt"==e)return i.db.srt;throw new Error("Unknown type "+e+" to find in db")};async function a(e,t){try{await r(t).delete(e)}catch(t){return`Failed to delete ${e}: ${t}`}return"deleted"}async function o(e,t){try{await r(t).add(e)}catch(t){return`Failed to add ${e.id}: ${t}`}return"stored"}async function s(e,t){let n;try{n=await r(t).get(e)}catch(t){return void console.log(`Failed to get ${e}: ${t}`)}return n}},40741(e,t,n){n.d(t,{f:()=>o,n:()=>s});var i=n(78685),r=n(2057);const a=r.createContext(!0),o=({children:e})=>{const[t,n]=(0,r.useState)(!0);return(0,r.useEffect)((()=>(n(navigator.onLine),window.addEventListener("offline",(()=>{n(!1)})),window.addEventListener("online",(()=>{n(!0)})),()=>{window.removeEventListener("offline",(()=>{n(!1)})),window.removeEventListener("online",(()=>{n(!0)}))})),[]),(0,i.jsx)(a.Provider,{value:t,children:e})},s=()=>(0,r.useContext)(a)},47202(e,t,n){n.d(t,{a:()=>c,p:()=>l});var i=n(78685),r=n(2057),a=n(4871),o=n.n(a);const s=r.createContext(null),l=()=>(0,r.useContext)(s),c=({children:e})=>{const[t]=(0,r.useState)(new(o().offline.Storage)),[n,a]=(0,r.useState)();return(0,r.useEffect)((()=>{(async()=>{const e=await o().Player.probeSupport();a(!e.manifest.mpd)})()}),[]),t&&(0,i.jsx)(s.Provider,{value:{api:t,format:n},children:e})}},36633(e,t,n){n.d(t,{R:()=>l});var i=n(78685),r=n(2057),a=n(71445),o=n(21346),s=n(25426);const l=({className:e,title:t,onSetEditMode:n,onAbortTitleChange:l,onSavePlaylist:c})=>{const{t:d}=(0,a.Bd)(),[u,p]=(0,r.useState)(t),h=(0,r.useRef)(),m=(0,r.useRef)(null),g=(0,r.useRef)(null),[f,v]=(0,r.useState)(),{setEnableKeyboardNavigation:b}=(0,s.Us)();(0,r.useEffect)((()=>{h.current.focus()}),[]);const y=(0,r.useCallback)((()=>{u&&""!==u&&""!==u.trim()?(c(u),n(!1)):v(d("playlist.invalidName"))}),[u,c,n,d]),x=(0,r.useCallback)((()=>{n(!1),p(t),l()}),[t,l,n]),w=(0,r.useCallback)((e=>{"Enter"===e.key&&document.activeElement===h.current&&(""!==e.target.value&&""!==e.target.value.trim()?(n(!1),c(e.target.value)):v(d("playlist.invalidName")))}),[c,n,d]),k=e=>{var t,n,i,r,a,o;if("Tab"===e.key){const s=document.activeElement;e.shiftKey?s===g.current?null===(t=m.current)||void 0===t||t.focus():s===m.current?null===(n=h.current)||void 0===n||n.focus():s===h.current&&(null===(i=g.current)||void 0===i||i.focus()):s===h.current?null===(r=m.current)||void 0===r||r.focus():s===m.current?null===(a=g.current)||void 0===a||a.focus():s===g.current&&(null===(o=h.current)||void 0===o||o.focus())}};return(0,r.useEffect)((()=>(document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)})),[]),(0,i.jsxs)("form",{onClick:e=>e.preventDefault(),className:`${e||""} create-playlist-input`,children:[(0,i.jsx)(o.p,{placeholder:d("playlist.namePlaceholder"),"data-cy":"create-playlist-input",name:"name",value:u,onKeyUp:w,onChange:e=>p(e.target.value),ref:h,label:d("playlist.updateTitle"),error:{message:f,id:"playlist-name-error"},maxLength:1e3,onFocus:()=>b(!1),onBlur:()=>b(!0)}),(0,i.jsxs)("div",{className:"create-playlist-input__actions",children:[(0,i.jsx)("button",{ref:m,className:"button button--plain button--center",onClick:x,children:d("ui.abort")}),(0,i.jsx)("button",{ref:g,"data-cy":"create-playlist-input-save",className:"button button--primary button--center",onClick:y,children:d("ui.save")})]})]})}},42214(e,t,n){n.d(t,{m:()=>b,W:()=>v});var i=n(78685),r=n(2057),a=n(73505),o=n(71445),s=n(62771),l=n(40671),c=n(8983),d=n(7009);var u=n(20136),p=n(62767),h=n(19176),m=n(7350);var g=n(41761);const f=r.createContext(null),v=()=>(0,r.useContext)(f),b=({children:e})=>{const[t,n]=(0,r.useState)(),{refetch:v,data:b,isFetching:y,isError:x}=function(e){const t=(0,c.q)(),{t:n}=(0,o.Bd)(),i=(0,l.I)({queryKey:["get-playlists"],queryFn:async()=>(await t.get("/playlists")).data,retry:!1,enabled:!1});return(0,d.V)(i,e||{message:n("error.playlist.playlistNotFound")})}({hideToast:!0}),{refetch:w,data:k,isFetching:A,isError:T}=function(e){const t=(0,c.q)(),{t:n}=(0,o.Bd)(),i=(0,l.I)({queryKey:["get-curatedlists"],queryFn:async()=>(await t.get("/curatedlists")).data,retry:!1,enabled:!1});return(0,d.V)(i,e||{message:n("error.playlist.playlistNotFound")})}({hideToast:!0}),S=(0,s.As)(),{t:E}=(0,o.Bd)(),{mutateAsync:I,isSuccess:C}=(0,u.V)({message:E("error.playlist.failAddAsset")}),{mutateAsync:_,isSuccess:j}=(0,g.x)({message:E("error.playlist.failAddAsset")}),{mutateAsync:N}=(0,p.A)(),{mutateAsync:L}=(0,h.F)(),{success:P}=(0,m.e)(),[D,M]=(0,r.useState)(!1);(0,r.useEffect)((()=>{M(y||A)}),[y,A]);const O=(0,r.useCallback)((()=>{S.authenticated&&(v(),w())}),[S.authenticated,v,w]);(0,r.useEffect)((()=>{O()}),[O]),(0,r.useEffect)((()=>{let e=[];
2x||b&&(e=e.concat(b)),T||k&&k.forEach((t=>{t.curated=!0,e.push(t)})),n(e)}),[k,b,x,T]);const R=(0,r.useCallback)((e=>{const i=[...t];i.forEach((t=>{t.playlist.id===e.playlist.id&&(t.playlist.entries=e.playlist.entries)}),[]),n(i)}),[t]),z=(0,r.useCallback)((async(e,t)=>{const n={id:(0,a.A)(),title:e.title,asset:e};t.playlist.entries.push(n),t.curated?await _({playlist:t.playlist}):await I({playlist:t.playlist}),O()}),[O,_,I]),B=(0,r.useCallback)((async(e,t)=>{const n={id:(0,a.A)(),dauPage:e,title:"Page"};t.playlist.entries.push(n),t.curated?await _({playlist:t.playlist}):await I({playlist:t.playlist}),O()}),[O,_,I]);(0,r.useEffect)((()=>{(C||j)&&P({copy:E("playlist.addedAssetMessage"),id:"add-to-playlist-success"})}),[C,j]);const U=(0,r.useCallback)((async e=>{N({playlist:{title:e,entries:[]}}).then((i=>{n([{playlist:{title:e,entries:[],id:i.id},highestPrivilege:"own"},...t])}))}),[N,t]),F=(0,r.useCallback)((e=>{const i=t.map((t=>t.playlist.id===e.playlist.id?Object.assign({},e):t));n(i)}),[t]),V=(0,r.useCallback)((async(e,t=!0)=>{await L({id:e}),t&&await O()}),[L,O]);return(0,i.jsx)(f.Provider,{value:{playlists:t,refetchPlaylists:O,isFetching:D,refetchCuratedLists:O,addToPlaylist:z,addPlaylist:U,reorderPlaylist:R,updateList:F,deletePlaylist:V,addDauPageToPlayList:B},children:e})}},19176(e,t,n){n.d(t,{F:()=>s});var i=n(97749),r=n(8983),a=n(71445),o=n(7009);function s(e){const t=(0,r.q)(),{t:n}=(0,a.Bd)(),s=(0,i.n)({mutationFn:async({id:e})=>(await t.delete(`/playlists/${e}`)).data,retry:!1});return(0,o.s)(s,e||{message:n("error.playlist.failDelete")})}},62767(e,t,n){n.d(t,{A:()=>s});var i=n(97749),r=n(8983),a=n(7009),o=n(71445);function s(e){const t=(0,r.q)(),{t:n}=(0,o.Bd)(),s=(0,i.n)({mutationFn:async({playlist:e})=>(await t.post("/playlists",Object.assign({},e))).data,retry:!1});return(0,a.s)(s,e||{message:n("error.playlist.failCreate")})}},41761(e,t,n){n.d(t,{x:()=>s});var i=n(97749),r=n(8983),a=n(71445),o=n(7009);function s(e){const t=(0,r.q)(),{t:n}=(0,a.Bd)(),s=(0,i.n)({mutationFn:async({playlist:e})=>(await t.put(`/curatedlists/${e.id}`,{title:e.title,entries:e.entries})).data,retry:!1});return(0,o.s)(s,e||{message:n("error.playlist.failModify")})}},20136(e,t,n){n.d(t,{V:()=>s});var i=n(97749),r=n(8983),a=n(71445),o=n(7009);function s(e){const t=(0,r.q)(),{t:n}=(0,a.Bd)(),s=(0,i.n)({mutationFn:async({playlist:e})=>(await t.put(`/playlists/${e.id}`,{title:e.title,entries:e.entries})).data,retry:!1});return(0,o.s)(s,e||{message:n("error.playlist.failModify")})}},40160(e,t,n){n.d(t,{V:()=>a});var i=n(2057),r=n(81970);function a(){const{search:e}=(0,r.zy)();return i.useMemo((()=>new URLSearchParams(e)),[e])}},52049(e,t,n){n.d(t,{bootstrap:()=>Vk});var i=n(78685),r=n(2057),a=n(68257),o=n(67413),s=n(47202),l=n(40741),c=n(62771),d=n(8983),u=n(30313);const p=({children:e})=>{const{basename:{relativeBasename:t}}=(0,o.U)();return(0,i.jsx)(u.Kd,{basename:t,children:e})};var h=n(48624),m=n(44847),g=n(5011),f=n(44550);const v=r.createContext(null),b=()=>(0,r.useContext)(v),y=({children:e})=>{const[t,n]=(0,r.useState)((()=>{if("undefined"!=typeof window&&window.localStorage){const e=window.localStorage.getItem(f.nZ);if("true"===e)return!0;if("false"===e)return!1;if(window.matchMedia("(prefers-color-scheme: dark)").matches)return!0}return!1})()),a=(0,r.useCallback)((e=>{const t=window.document.documentElement;t.classList.remove(e?"light":"dark"),t.classList.add(e?"dark":"light"),localStorage.setItem(f.nZ,e)}),[]);return(0,r.useEffect)((()=>{a(t)}),[t]),(0,i.jsx)(v.Provider,{value:{dark:t,setDark:n},children:e})};var x=n(42214),w=n(48049),k=n(71445),A=n(7350),T=n(40671),S=n(7009);var E=n(97749);const I=r.createContext(null),C=()=>(0,r.useContext)(I),_=({children:e})=>{const[t,n]=(0,r.useState)(),{refetch:a,data:o,isError:s}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-settings"],queryFn:async()=>(await t.get("/settings")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.settings.failGetSettings")})}({hideToast:!0}),{mutateAsync:l,isPending:u,isError:p,isSuccess:h}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({settings:e})=>(await t.put("/settings",e)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.settings.failSave")})}(),m=(0,c.As)(),{t:g}=(0,k.Bd)(),{success:f,remove:v}=(0,A.e)();(0,r.useEffect)((()=>{m.authenticated&&a()}),[m.authenticated,a]);const b=(0,r.useCallback)((async e=>{await l({settings:e}),a()}),[l,a]);return(0,r.useEffect)((()=>{o&&o.displayName?n(o):n({displayName:g("settings.anonymsAuthor")})}),[o]),(0,r.useEffect)((()=>{s&&n({displayName:g("settings.anonymsAuthor")})}),[s,b]),(0,r.useEffect)((()=>{u?f({copy:g("settings.loading"),id:"settings-toast",focusToast:!1}):h?f({copy:g("settings.success"),id:"settings-toast"}):p&&v("settings-toast")}),[u,h,p]),(0,i.jsx)(I.Provider,{value:{settings:t,postSettings:b},children:e})};var j=n(61318),N=n(72924),L=n(85072),P=n.n(L),D=n(97825),M=n.n(D),O=n(77659),R=n.n(O),z=n(55056),B=n.n(z),U=n(10540),F=n.n(U),V=n(41113),q=n.n(V),H=n(69793),G={};G.styleTagTransform=q(),G.setAttributes=B(),G.insert=R().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=F();P()(H.A,G);H.A&&H.A.locals&&H.A.locals;var K;!function(e){e.COVER="cover",e.CONTAIN="contain",e.FILL="fill",e.INSIDE="inside",e.OUTSIDE="outside"}(K||(K={}));const $=({imageKey:e,altText:t,height:n})=>{const{awsImageHandlerUrl:r,awsImageBucket:a}=(0,o.U)(),s={bucket:a,key:e,edits:{resize:{height:n,fit:K.INSIDE}}},l=`${r}/${window.btoa(JSON.stringify(s))}`;return(0,i.jsx)(i.Fragment,{children:e&&(0,i.jsx)("img",{src:l,alt:t})})},W=({src:e,alt:t="",className:n="",data_cy:r="bookCover",width:a,height:o})=>(0,i.jsx)("div",{className:`bookCover ${n}`,"data-cy":r,children:(0,i.jsx)($,{imageKey:e,altText:t,width:a,height:o})});var X=n(60055),Y={};Y.styleTagTransform=q(),Y.setAttributes=B(),Y.insert=R().bind(null,"head"),Y.domAPI=M(),Y.insertStyleElement=F();P()(X.A,Y);X.A&&X.A.locals&&X.A.locals;var J=n(17224),Z=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Q=e=>{var{title:t,titleSuffix:n,lead:r,withActions:a,withBookCover:o,children:s,data_cy:l="pageTitle",className:c,titleClass:d,size:u}=e,p=Z(e,["title","titleSuffix","lead","withActions","withBookCover","children","data_cy","className","titleClass","size"]);const h=(0,J.Ay)();return(0,i.jsxs)("section",Object.assign({className:`${o?"pageTitle-with-cover":"pageTitle"} ${c&&c}`},p,{"data-cy":l,children:[o&&(0,i.jsx)(W,{src:o,width:h||"sm"===u?112:209,height:h||"sm"===u?146:272}),(0,i.jsxs)("div",{className:"title__container",children:[(0,i.jsxs)("div",{className:`title ${d&&d}`,children:[(0,i.jsxs)("h1",{className:"sm"===u?"heading-2 p-0":"heading-1","data-cy":`page-title-${null==t?void 0:t.replace(" ","-")}`,children:[(0,i.jsx)("span",{className:"nice-word-break",children:t}),n&&(0,i.jsxs)(i.Fragment,{children:[" ",(0,i.jsx)("span",{className:"font-normal",children:n})]})]}),r&&"string"==typeof r&&(0,i.jsx)("p",{className:"mt-4",children:r}),r&&"string"!=typeof r&&r]}),a&&(0,i.jsx)("div",{className:"actions",children:s})]})]}))};var ee=n(16682),te=n(38662),ne=n(83793),ie={};ie.styleTagTransform=q(),ie.setAttributes=B(),ie.insert=R().bind(null,"head"),ie.domAPI=M(),ie.insertStyleElement=F();P()(ne.A,ie);ne.A&&ne.A.locals&&ne.A.locals;const re=r.createContext(null),ae=()=>(0,r.useContext)(re),oe=({children:e,id:t})=>{const n=(0,r.useRef)(),[a,o]=r.useState(!1),s=(0,r.useCallback)((()=>{document.fullscreenElement?o(!0):o(!1)}),[]);(0,r.useEffect)((()=>{document.addEventListener("fullscreenchange",s)}),[s]);return(0,i.jsx)(re.Provider,{value:{setFullscreen:()=>{var e;a?document.exitFullscreen?document.exitFullscreen():o(!1):(null===(e=null==n?void 0:n.current)||void 0===e?void 0:e.requestFullscreen)?n.current.requestFullscreen():o(!0)},isFullscreen:a,setHiddenShell:(e=!0)=>{o(e)}},children:(0,i.jsx)("div",{id:t,"data-cy":"fullscreen",className:""+(a?"isFullscreen":""),ref:n,children:e})})};var se=n(83262);const le=()=>{const{isFullscreen:e}=ae(),{t}=(0,k.Bd)(),n=(0,se.P)();if(!e)return(0,i.jsxs)("footer",{className:"page-footer","data-cy":"pageFooter",children:[(0,i.jsxs)("nav",{className:"page-footer__menu",children:[(0,i.jsx)(ee.z,{to:te.J.privacy,children:t("footer.privacy")}),(0,i.jsx)(ee.z,{to:te.J.agb,children:t("footer.terms-of-use")}),(0,i.jsx)(ee.z,{to:te.J.impressum,children:t("footer.imprint")}),(0,i.jsx)("button",{onClick:()=>{window.openCookie()},"data-cy":"openCookieConsent",children:t("footer.cookie-consent")}),(0,i.jsx)(ee.z,{to:te.J.version,children:t("footer.version")}),(0,i.jsx)(ee.z,{to:te.J.accessibility,children:t("footer.accessibility")}),(0,i.jsx)("a",{href:t("DELTA"===n?"footer.subscription-url-delta":"footer.subscription-url"),target:"_blank",rel:"noreferrer",className:"page-footer__menu-link",children:t("footer.subscription")})]}),(0,i.jsx)("div",{className:"page-footer__meta",children:(0,i.jsx)("p",{children:t("footer.copyright",{year:(new Date).getFullYear()})})})]})};var ce=n(39077),de={};de.styleTagTransform=q(),de.setAttributes=B(),de.insert=R().bind(null,"head"),de.domAPI=M(),de.insertStyleElement=F();P()(ce.A,de);ce.A&&ce.A.locals&&ce.A.locals;var ue=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const pe=e=>{var{children:t,fullWidth:n,data_cy:r="page",displayFooter:a=!0,className:o=""}=e,s=ue(e,["children","fullWidth","data_cy","displayFooter","className"]);return(0,i.jsxs)("div",Object.assign({className:`flex flex-col w-full ${o}`},s,{children:[(0,i.jsx)("main",{"data-cy":r,className:`page ${n?"page--noSpacing":""} ${a?"page--grow":""}`,children:t}),a&&(0,i.jsx)(le,{})]}))},he=e=>{var{children:t,fullWidth:n,data_cy:r="page",className:a=""}=e,o=ue(e,["children","fullWidth","data_cy","className"]);return(0,i.jsx)("div",Object.assign({className:`flex flex-col w-full ${a}`},o,{children:(0,i.jsx)("main",{"data-cy":r,className:"page "+(n?"page--noSpacing":""),children:t})}))};var me=n(14265),ge=n(58469),fe=n(2055);const ve=({error:e,resetErrorBoundary:t})=>{const{t:n}=(0,k.Bd)(),a=(0,fe.m)(),[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(!1),{mutateAsync:d}=(0,ge.u)(),u=(0,r.useCallback)((()=>{t(),a(te.J.welcome)}),[a,t]),p=(0,r.useCallback)((()=>{s(!0),setTimeout((()=>{t()}),500)}),[t]),h=(0,me.u)()&&(e.message.includes("BroadcastChannel")||e.message.includes("mql.addEventListener"));return(0,r.useEffect)((()=>{var t,n,i,r;if((null===(t=null==e?void 0:e.message)||void 0===t?void 0:t.includes("DatabaseClosedError"))||(null===(n=null==e?void 0:e.message)||void 0===n?void 0:n.includes("Connection to Indexed Database server lost"))||(null===(i=null==e?void 0:e.message)||void 0===i?void 0:i.includes("Attempt to open a cursor in database without an in-progress transaction"))||(null===(r=null==e?void 0:e.message)||void 0===r?void 0:r.includes("Transaction aborted"))){if(!location.pathname.startsWith("/error")){const t=parseInt(localStorage.getItem("dexie_retry"));let n=null;t&&!isNaN(t)&&(n=(new Date).getTime()-t),!n||n>1e5?(localStorage.setItem("dexie_retry",(new Date).getTime().toString()),location.reload()):(d({errorMessage:"ErrorBoundryPage Repeated Dexie error. ",errorObject:e}),c(!0))}}else d(h?{errorMessage:"ErrorBoundryPage Known iOS-Error. ",errorObject:e}:{errorMessage:"ErrorBoundryPage",errorObject:e})}),[e,d]),(0,i.jsxs)(he,{children:[(0,i.jsx)(Q,{title:n(h?"errorPage.iosErrorTitle":"errorPage.t
2itle")}),(0,i.jsx)("div",{className:"mb-4 grid gap-4",children:h?(0,i.jsx)("p",{children:n("errorPage.iosError")}):l?(0,i.jsx)("p",{children:n("errorPage.repeatedDexie")}):(0,i.jsxs)("p",{children:[n("errorPage.error"),e.message]})}),!h&&(0,i.jsxs)("div",{className:"flex gap-2",children:[(0,i.jsx)(N.$,{variant:"primary",loading:o,onClick:p,children:n("errorPage.tryAgain")}),(0,i.jsx)(N.$,{variant:"secondary",onClick:u,children:n("errorPage.backHome")})]})]})};var be=n(81970);const ye=()=>{const{pathname:e}=(0,be.zy)();return(0,r.useEffect)((()=>{document.documentElement.scrollTo({top:0,left:0,behavior:"auto"})}),[e]),null};var xe=n(72016),we=n(74041),ke={};ke.styleTagTransform=q(),ke.setAttributes=B(),ke.insert=R().bind(null,"head"),ke.domAPI=M(),ke.insertStyleElement=F();P()(we.A,ke);we.A&&we.A.locals&&we.A.locals;const Ae=()=>(0,i.jsx)("div",{className:"product w-[94.5px] md:w-[126px]",children:(0,i.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 63 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M13.9485 -0.000976562H11.8135V12.0544H13.9485V-0.000976562Z",fill:"current"}),(0,i.jsx)("path",{d:"M18.1829 -0.000976562H16.0479V12.0544H18.1829V-0.000976562Z",fill:"current"}),(0,i.jsx)("path",{d:"M21.9456 7.60753C21.9456 6.22196 22.9239 4.82152 24.6498 4.82152C25.9368 4.82152 26.7681 5.55429 27.142 6.40237C27.3205 6.79293 27.4023 7.23371 27.3856 7.65774C27.354 8.09852 27.2554 8.5207 27.0434 8.91312C26.6361 9.72772 25.855 10.347 24.6647 10.347C22.7416 10.347 21.9438 8.73458 21.9438 7.62613V7.60753H21.9456ZM29.5058 3.11049H27.3707V4.41422C26.9801 3.69819 25.9851 2.83337 24.3559 2.83337C21.847 2.83337 19.8105 4.75643 19.8105 7.57405C19.8105 10.0997 21.4881 12.3315 24.3559 12.3315C25.6113 12.3315 26.7997 11.8107 27.3707 10.7674V12.0544H29.5058V3.11049Z",fill:"current"}),(0,i.jsx)("path",{d:"M31.624 12.0543H33.7591V7.11832C33.7591 5.8648 34.2798 4.85306 35.7956 4.83818C37.2946 4.83818 37.7335 5.8648 37.7335 7.20015V12.0543H39.8686V6.66081C39.8686 5.07996 39.3144 2.84818 36.3982 2.83144C34.8006 2.8147 34.0027 3.59769 33.6122 4.29698C33.6289 3.87294 33.6289 3.49912 33.6289 3.10855H31.6259V12.0543H31.624Z",fill:"current"}),(0,i.jsx)("path",{d:"M43.6155 7.5573C43.6155 5.95971 44.8374 4.83638 46.2881 4.83638C47.2161 4.83638 47.8838 5.19533 48.3079 5.73282C48.7468 6.25357 48.9588 6.97146 48.9588 7.65587C48.9421 8.42211 48.665 9.08979 48.1926 9.56218C47.7202 10.0513 47.0841 10.3284 46.2862 10.3284C44.7389 10.3284 43.6137 9.14 43.6137 7.5759V7.5573H43.6155ZM51.0939 3.11047H48.9421V4.31563C48.4362 3.43594 47.3296 2.8501 46.0426 2.8501C43.5672 2.8501 41.4805 4.70806 41.4805 7.62425C41.4805 10.3768 43.4686 12.3333 46.0426 12.3333C47.5584 12.3333 48.5031 11.5354 48.9421 10.7376V11.4871C48.9421 13.2948 47.5565 14.1745 46.2862 14.1745C46.0259 14.1745 45.5535 14.1094 45.1127 13.8658C44.7221 13.6705 44.3799 13.3599 44.1846 12.9526H41.7092C42.0347 14.3382 43.37 15.999 46.1561 15.999C47.9973 15.999 49.4963 15.1844 50.2607 14.1578C50.8149 13.4083 51.092 12.4635 51.092 10.998V3.11047H51.0939Z",fill:"current"}),(0,i.jsx)("path",{d:"M54.8245 7.57404C54.8245 5.99319 56.0129 4.83638 57.4803 4.83638C58.9459 4.83638 60.1194 5.99319 60.1194 7.57404C60.1194 9.15488 58.9459 10.3117 57.4803 10.3117C56.0148 10.3117 54.8245 9.15488 54.8245 7.59078V7.57404ZM52.6895 7.57404C52.6895 9.88765 54.367 12.3147 57.4785 12.3147C60.59 12.3147 62.2675 9.88765 62.2675 7.57404C62.2675 5.27716 60.59 2.8501 57.4785 2.8501C54.367 2.8501 52.6895 5.27716 52.6895 7.55916V7.57404Z",fill:"current"}),(0,i.jsx)("path",{d:"M7.56016 3.11049V4.41422C7.1696 3.69819 6.1746 2.83337 4.5454 2.83337C2.0365 2.83337 0 4.75643 0 7.57405C0 10.0997 1.67756 12.3315 4.5454 12.3315C5.80077 12.3315 6.9892 11.8107 7.56016 10.7674V12.0544H9.69523V3.11049H7.56016ZM7.23469 8.91126C6.82739 9.72586 6.04627 10.3452 4.85599 10.3452C4.31478 10.3452 3.86656 10.215 3.49646 10.0067L1.87098 10.5591L2.44194 8.87592C2.2355 8.45746 2.13507 8.01111 2.13507 7.62427V7.60
2753C2.13507 6.22196 3.11334 4.82152 4.83925 4.82152C6.12624 4.82152 6.95758 5.55429 7.33141 6.40237C7.50995 6.79293 7.59178 7.23371 7.57504 7.65774C7.54528 8.09666 7.44671 8.51884 7.23469 8.91126Z",fill:"current"})]})}),Te=({withBorder:e=!1})=>{const{t}=(0,k.Bd)();return"DELTA"===(0,se.P)()?(0,i.jsxs)("div",{role:"img","aria-label":t("ui.brandDelta"),className:"flex flex-row gap-4",children:[(0,i.jsx)("div",{className:"brand brand--delta",children:(0,i.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 72 83",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M0.714844 0.8125V71.34H26.1535L35.9532 81.1397L45.8037 71.34H71.2424V14.7251L57.3298 0.8125H0.714844Z",fill:"#004A99"}),(0,i.jsx)("path",{d:"M60.6275 38.5899L56.5654 25.6928C56.5146 25.5405 56.4638 25.4389 56.4131 25.3882C56.3623 25.3374 56.2607 25.3374 56.1084 25.3374H53.5696C53.4173 25.3374 53.3158 25.3374 53.265 25.3882C53.2142 25.4389 53.1634 25.5405 53.1127 25.6928L49.0506 38.6406C48.9998 38.7422 48.9998 38.8437 48.9998 38.9453C48.9998 39.0468 49.1521 39.0976 49.3552 39.0976H51.9448C52.0971 39.0976 52.1987 39.0976 52.2495 39.0468C52.3002 38.9961 52.351 38.8945 52.4018 38.7422L53.2142 35.6449H56.21L57.0224 38.7422C57.0732 38.8945 57.1239 38.9961 57.1747 39.0468C57.2255 39.0976 57.327 39.0976 57.4794 39.0976H60.272C60.4751 39.0976 60.5767 39.0468 60.6275 38.9961C60.6782 38.8945 60.6782 38.7422 60.6275 38.5899ZM55.6514 33.36H53.5696L54.2297 30.4657C54.3313 30.1103 54.382 29.7041 54.4836 29.2979C54.5344 28.8917 54.6359 28.4347 54.6867 27.9777C54.7883 28.4855 54.839 28.9425 54.8898 29.3487C54.9406 29.7549 54.9913 30.1103 55.0929 30.4657L55.6514 33.36ZM49.863 25.7944C49.9138 25.5913 49.9138 25.4897 49.863 25.4389C49.8122 25.3882 49.7107 25.3374 49.5076 25.3374H40.6726C40.4695 25.3374 40.3679 25.3374 40.3172 25.3882C40.2664 25.4389 40.2664 25.5405 40.2664 25.7436V27.7746C40.2664 27.9777 40.2664 28.0793 40.3172 28.1301C40.3679 28.1808 40.4695 28.1808 40.6726 28.1808H43.2114V38.6406C43.2114 38.8437 43.2114 38.9453 43.2622 38.9961C43.3129 39.0468 43.4145 39.0468 43.6176 39.0468H46.1564C46.3595 39.0468 46.461 39.0468 46.5118 38.9961C46.5626 38.9453 46.5626 38.8437 46.5626 38.6406V28.1808H49.0506C49.2029 28.1808 49.3045 28.1808 49.3552 28.1301C49.406 28.0793 49.4568 27.9777 49.4568 27.8254L49.863 25.7944ZM41.5866 36.5588C41.6373 36.3557 41.5866 36.2542 41.5866 36.2034C41.5358 36.1526 41.4342 36.1019 41.2819 36.1019H36.6613V25.7436C36.6613 25.5913 36.6105 25.4389 36.5598 25.3882C36.509 25.3374 36.4074 25.3374 36.2043 25.3374H33.6655C33.4624 25.3374 33.3609 25.3374 33.3101 25.3882C33.2593 25.4389 33.2593 25.5405 33.2593 25.7436V38.6406C33.2593 38.8437 33.2593 38.9453 33.3101 38.9961C33.3609 39.0468 33.4624 39.0468 33.6655 39.0468H40.7741C40.9265 39.0468 41.028 39.0468 41.0788 38.9961C41.1296 38.9453 41.1804 38.8437 41.2311 38.6914L41.5866 36.5588ZM31.4314 25.7436C31.4822 25.5913 31.4822 25.4389 31.4314 25.3882C31.4314 25.3374 31.3299 25.2866 31.1268 25.2866H23.815C23.6119 25.2866 23.5104 25.2866 23.4596 25.3374C23.4088 25.3882 23.4088 25.4897 23.4088 25.6928V38.5899C23.4088 38.793 23.4088 38.8945 23.4596 38.9453C23.5104 38.9961 23.6119 38.9961 23.815 38.9961H30.9237C31.076 38.9961 31.2283 38.9453 31.2791 38.8945C31.3299 38.8437 31.3806 38.7422 31.3806 38.5391V36.7112C31.3806 36.5081 31.3299 36.4065 31.2791 36.3557C31.2283 36.305 31.1268 36.305 30.9237 36.305H26.76V33.2076H30.0097C30.162 33.2076 30.3143 33.1569 30.3651 33.1061C30.4159 33.0553 30.4667 32.9538 30.4667 32.7507V30.9227C30.4667 30.7196 30.4159 30.6181 30.3651 30.5673C30.3143 30.5165 30.2128 30.5165 30.0097 30.5165H26.76V27.8762H30.6698C30.9237 27.8762 31.076 27.7746 31.1268 27.5208L31.4314 25.7436ZM20.8193 28.7901C20.5654 27.927 20.1084 27.1653 19.5499 26.6068C19.2452 26.3021 18.8898 26.099 18.5344 25.8959C18.1789 25.7436 17.8235 25.5913 17.4173 25.4897C17.0111 25.3882 16.6049 25.3374 16.2495 25.3374C15.8433 25.3374 15.437 25.2866 15.0308 25.2866H11.6796C11.5273 25.2866 11.375 25.2866 11.3242 25.3374C11.2734 25.3882 11.2734 25.4897 11.2734 25.6928V38.5899C11.2734 38.793 11.2734 38.8945 11.3242 38.9453C11.375 38.9961 11.4765 38.9961 11.6796 38.9961H15.4371C15.894 38.9961 16.351 38.9961 16.808 38.9453C17.2142 38.8945 17.6204 38.8437 18.0266 38.6914C19.1945 38.2852 20.0069 37.5743 20.5146 36.4065C21.0224 35.2894 21.2763 33.8169 21.2763 31.989C2
21.2255 30.7704 21.0732 29.6533 20.8193 28.7901ZM17.722 34.3247C17.6712 34.8325 17.5189 35.2894 17.3158 35.5941C17.1126 35.8988 16.8588 36.0511 16.5541 36.2034C16.2495 36.305 15.7925 36.4065 15.2339 36.4065H14.6246V27.9777H15.2339C15.7925 27.9777 16.2495 28.0285 16.5033 28.1808C16.808 28.3332 17.0619 28.5363 17.265 28.8409C17.5189 29.1964 17.6712 29.7041 17.722 30.2626C17.7727 30.8212 17.8235 31.532 17.8235 32.3444C17.8235 33.1569 17.7727 33.8169 17.722 34.3247Z",fill:"white"}),(0,i.jsx)("path",{d:"M60.7329 44.9367L59.9713 44.5813C59.8697 44.5305 59.819 44.5305 59.7682 44.632C59.7174 44.6828 59.6666 44.7844 59.6158 44.8351C59.6158 44.8859 59.5651 44.9367 59.5651 44.9367C59.5651 44.9875 59.5143 45.0382 59.5143 45.089C59.2604 44.8859 59.0065 44.7336 58.8034 44.6828C58.6003 44.5813 58.3465 44.5813 58.0926 44.5813C57.3817 44.5813 56.874 44.8351 56.4678 45.3937C56.0615 45.9522 55.9092 46.7138 55.9092 47.6786C55.9092 48.5418 56.0615 49.2018 56.417 49.7096C56.7724 50.2174 57.2294 50.4712 57.7879 50.4712C58.0418 50.4712 58.3465 50.4205 58.5496 50.3189C58.8034 50.2174 59.0573 50.1158 59.3112 49.9127C59.3112 50.065 59.362 50.2174 59.362 50.4205C59.362 50.5728 59.362 50.7759 59.362 50.9282C59.362 51.3344 59.2604 51.6391 59.1081 51.7914C58.9558 51.9437 58.6511 52.0453 58.2449 52.0453C57.991 52.0453 57.7371 51.9945 57.4833 51.9437C57.2294 51.893 56.9247 51.7914 56.6201 51.6391C56.5693 51.5883 56.5185 51.5883 56.4678 51.5883C56.417 51.5883 56.417 51.6391 56.3662 51.6899L56.1631 52.3499C56.1631 52.4007 56.1123 52.4515 56.1631 52.5023C56.1631 52.553 56.2139 52.553 56.3154 52.6038C56.4678 52.6546 56.6201 52.7561 56.7724 52.8069C56.9247 52.8577 57.1278 52.9085 57.2802 52.9593C57.4833 53.01 57.6356 53.0608 57.8387 53.0608C58.0418 53.0608 58.1941 53.1116 58.3465 53.1116C59.0065 53.1116 59.5143 52.9592 59.8697 52.6546C60.2252 52.3499 60.4283 51.893 60.479 51.2837C60.479 51.0298 60.479 50.8267 60.479 50.5728C60.479 50.3189 60.479 50.1158 60.479 49.8619C60.479 49.608 60.479 49.3542 60.479 49.1511C60.479 48.8972 60.479 48.6433 60.479 48.3387V46.5107C60.479 46.2569 60.479 46.003 60.5298 45.7999C60.5806 45.5968 60.6821 45.3937 60.7837 45.1398C60.8345 45.0382 60.8345 44.9367 60.7329 44.9367ZM59.2604 48.948C59.0573 49.1003 58.8542 49.2526 58.6511 49.3034C58.448 49.405 58.2957 49.4049 58.0926 49.4049C57.7371 49.4049 57.534 49.2526 57.3309 48.948C57.1786 48.6433 57.0771 48.1356 57.0771 47.5262C57.0771 46.9169 57.1786 46.4092 57.3817 46.0537C57.5848 45.6983 57.8895 45.546 58.2449 45.546C58.3972 45.546 58.5496 45.5968 58.7019 45.6475C58.8542 45.6983 59.0065 45.7999 59.2096 45.9014V48.948H59.2604ZM54.589 50.4205V46.4092C54.589 45.7491 54.4875 45.2921 54.2336 44.9875C53.9797 44.7336 53.5735 44.5813 53.015 44.5813C52.8119 44.5813 52.6596 44.5812 52.5072 44.632C52.3549 44.6828 52.2026 44.7336 52.0503 44.7844C51.8979 44.8351 51.7964 44.9367 51.6441 45.0382C51.4917 45.1398 51.3902 45.2413 51.2378 45.3429C51.1871 45.1906 51.1363 45.0382 51.0855 44.9875C51.0347 44.8859 51.0347 44.8351 50.984 44.7336C50.9332 44.6828 50.8824 44.5813 50.8824 44.5813C50.8316 44.5305 50.7809 44.5305 50.7301 44.5813L49.9177 44.9367C49.8669 44.9875 49.8161 44.9875 49.8161 45.0382C49.8161 45.089 49.8161 45.089 49.8669 45.1398C49.9685 45.3429 50.0192 45.4952 50.07 45.6983C50.1208 45.8506 50.1208 46.1045 50.1208 46.3584V50.4205C50.1208 50.4712 50.1208 50.522 50.1716 50.5728C50.1716 50.5728 50.2223 50.6236 50.3239 50.6236H51.1871C51.2378 50.6236 51.2886 50.6236 51.3394 50.5728C51.3394 50.5728 51.3902 50.522 51.3902 50.4205V46.2061C51.6441 45.9522 51.8472 45.7999 52.0503 45.7491C52.2534 45.6475 52.4565 45.5968 52.6596 45.5968C52.9135 45.5968 53.1165 45.6983 53.2181 45.8506C53.3197 46.003 53.3704 46.2569 53.3704 46.6123V50.4205C53.3704 50.4712 53.3704 50.522 53.3704 50.5728C53.3704 50.5728 53.4212 50.6236 53.5228 50.6236H54.3859C54.4367 50.6236 54.4875 50.6236 54.5383 50.5728C54.589 50.522 54.589 50.4712 54.589 50.4205ZM48.0898 42.2456C47.9374 42.0932 47.7343 41.9917 47.4804 41.9917C47.2266 41.9917 47.0742 42.0932 46.8711 42.2456C46.7188 42.3979 46.6173 42.601 46.6173 42.8549C46.6173 43.1088 46.7188 43.3119 46.8711 43.4642C47.0235 43.6165 47.2266 43.7181 47.4804 43.7181C47.7343 43.7181 47.9374 43.6165 48.0898 43.4642C48.2421 43.3119 48.3436 43.1088 48.3436 42.8549C48.3436 42.601 48.2421 42.4487 48.0898 42.2456ZM48.1405 50.4205V44.9367C48.1405 44.8351 48.1405 44.7844 48.0898 44.7844C48.0898 44.7844 48.039 44.7336 47.9374 44.7336H46.0079C45.9064 44.7336 45.8556 44.7336 45.8556 44.7336C45.8556 44.7336 45.8048 44.7844 45.8048 44.8859V45.4444C45.8048 45.546 45.8048 45.5968 45.8556 45.5968C45.8556 45.5968 45.9064 45.5968 46.0079 45.5968H46.9219V50.3189C46.9219 50.4205 46.9219 50.4712 46.9219 50.4712C46.9219 50.4712 46.9727 50.522 47.0742 50.522H47.9374C47.9882 50.522 48.039 50.522 48.0898 50.4712C48.1405 50.522 48.1405 50.4712 48.1405 50.4205ZM44.9417 50.4205V46.4092C44.9417 46.1553 44.9417 45.9014 44.8909 45.6983C44.8401 45.4952 44.7893 45.2921 44.637 45.1398C44.5355 44.9875 44.3831 44.8351 44.18 44.7336C43.9769 44.632 43.723 44.5813 43.4184 44.5813C43.0629 44.5813 42.7583 44.632 42.5044 44.7844C42.2505 44.8859 41.9459 45.089 41.692 45.3429V42.144C41.692 42.0425 41.692 41.9917 41.6412 41.9917C41.5905 41.9917 41.5397 41.9917 41.4889 41.9917L40.6765 42.144C40.5749 42.144 40.5242 42.2456 40.5242 42.3471V50.4205C40.5242 50.4712 40.5242 50.522 40.5749 50.5728C40.5749 50.5728 40.6257 50.6236 40.7273 50.6236H41.5905C41.6412 50.6236 41.692 50.6236 41.7428 50.5728C41.7428 50.5728 41.7936 50.522 41.7936 50.4205V46.2061C42.0474 45.9522 42.3013 45.7999 42.5044 45.7491C42.7075 45.6475 42.9106 45.5968 43.1137 45.5968C43.3676 45.5968 43.5707 45.6475 43.6723 45.7999C43.7738 45.9522 43.8246 46.2061 43.8246 46.5615V50.3697C43.8246 50.4712 43.8246 50.522 43.8246 50.522C43.8246 50.522 43.8754 50.5728 43.9769 50.5728H44.8401C44.8909 50.5728 44.9417 50.5728 44.9924 50.522C44.9417 50.522 44.9417 50.4712 44.9417 50.4205ZM39.0517 48.2371C38.9501 48.034 38.747 47.8309 38.4424 47.6786C38.3916 47.6786 38.3408 47.6278 38.2393 47.577C38.1377 47.5262 38.0362 47.4755 37.9346 47.4247C37.8331 47.3739 37.6807 47.3231 37.5792 47.2216C37.4776 47.1708 37.3761 47.12 37.2745 47.0693C37.0206 46.9169 36.8175 46.8154 36.716 46.7138C36.6144 46.6123 36.5637 46.46 36.5637 46.3076C36.5637 46.1045 36.6144 45.9014 36.7668 45.7999C36.9191 45.6983 37.1222 45.5968 37.3761 45.5968C37.6807 45.5968 38.0362 45.6983 38.4931 45.9014C38.5439 45.9014 38.5947 45.9522 38.6455 45.9522C38.6962 45.9522 38.6962 45.9014 38.747 45.8506L39.0009 45.3429C39.0517 45.2413 39.0517 45.1398 38.9501 45.089C38.747 44.9875 38.4931 44.8859 38.1885 44.7844C37.8838 44.7336 37.6299 44.6828 37.3761 44.6828C37.0714 44.6828 36.8175 44.7336 36.5637 44.8351C36.3098 44.9367 36.1067 45.0382 35.9543 45.1906C35.802 45.3429 35.6497 45.546 35.5481 45.7491C35.4466 45.9522 35.3958 46.2061 35.3958 46.46C35.3958 46.6631 35.4466 46.9169 35.5481 47.12C35.6497 47.3231 35.802 47.5262 36.0559 47.6786C36.1067 47.7293 36.2082 47.7801 36.3098 47.8309C36.4113 47.8817 36.5129 47.9325 36.6144 47.9832C36.716 48.034 36.8175 48.0848 36.9191 48.1356C37.0206 48.1863 37.1222 48.2371 37.173 48.2371C37.4776 48.3894 37.7315 48.5418 37.833 48.6433C37.9346 48.7449 38.0362 48.8972 38.0362 49.0495C38.0362 49.3034 37.9854 49.4557 37.833 49.608C37.
26807 49.7604 37.4776 49.8112 37.2237 49.8112C37.0206 49.8112 36.7668 49.7604 36.5129 49.7096C36.259 49.6588 36.0051 49.5065 35.7005 49.4049C35.6497 49.4049 35.5989 49.3542 35.5989 49.3542C35.5481 49.3542 35.4974 49.3542 35.4974 49.4557L35.2435 50.065C35.1927 50.1666 35.1927 50.2174 35.1927 50.2174C35.1927 50.2174 35.2435 50.2681 35.2943 50.3189C35.5481 50.4712 35.9036 50.6236 36.2082 50.7251C36.5637 50.8267 36.8683 50.8774 37.2237 50.8774C37.8331 50.8774 38.29 50.7251 38.6455 50.3697C39.0009 50.065 39.204 49.6081 39.204 49.0495C39.204 48.6941 39.1532 48.4402 39.0517 48.2371ZM33.7202 42.2456C33.5679 42.0932 33.3648 41.9917 33.1109 41.9917C32.857 41.9917 32.7047 42.0932 32.5016 42.2456C32.3493 42.3979 32.2477 42.601 32.2477 42.8549C32.2477 43.1088 32.3493 43.3119 32.5016 43.4642C32.6539 43.6165 32.857 43.7181 33.1109 43.7181C33.3648 43.7181 33.5679 43.6165 33.7202 43.4642C33.8725 43.3119 33.9741 43.1088 33.9741 42.8549C33.9741 42.601 33.8725 42.4487 33.7202 42.2456ZM33.771 50.4205V44.9367C33.771 44.8351 33.771 44.7844 33.7202 44.7844C33.7202 44.7844 33.6694 44.7336 33.5679 44.7336H31.6384C31.5369 44.7336 31.4861 44.7336 31.4861 44.7336C31.4861 44.7336 31.4353 44.7844 31.4353 44.8859V45.4444C31.4353 45.546 31.4353 45.5968 31.4861 45.5968C31.4861 45.5968 31.5369 45.5968 31.6384 45.5968H32.5524V50.3189C32.5524 50.4205 32.5524 50.4712 32.5524 50.4712C32.5524 50.4712 32.6032 50.522 32.7047 50.522H33.5679C33.6187 50.522 33.6694 50.522 33.7202 50.4712C33.771 50.522 33.771 50.4712 33.771 50.4205ZM31.5876 50.3189L31.3845 49.608C31.3338 49.5065 31.283 49.5065 31.1814 49.5573C31.0291 49.6081 30.9276 49.6588 30.7752 49.6588C30.6229 49.6588 30.5213 49.6081 30.4706 49.5573C30.4198 49.4557 30.369 49.3542 30.369 49.1511V42.144C30.369 42.0425 30.369 41.9917 30.3182 41.9917C30.3182 41.9917 30.2675 41.9409 30.1659 41.9917L29.252 42.1948C29.1504 42.1948 29.0996 42.2963 29.0996 42.3979V48.2371C29.0996 48.3894 29.0996 48.5418 29.0996 48.7449C29.0996 48.8972 29.0996 49.1003 29.0996 49.2526C29.0996 49.5065 29.0996 49.7096 29.1504 49.9127C29.2012 50.1158 29.2519 50.2681 29.3535 50.4205C29.4551 50.5728 29.6074 50.6743 29.7597 50.7251C29.912 50.7759 30.1659 50.8267 30.4198 50.8267C30.5721 50.8267 30.7752 50.8267 30.9276 50.7759C31.1307 50.7251 31.283 50.6743 31.4353 50.6236C31.4861 50.5728 31.5369 50.5728 31.5369 50.522C31.6384 50.4205 31.6384 50.3697 31.5876 50.3189ZM27.3733 45.2921C27.0686 44.8351 26.5608 44.5813 25.9515 44.5813C25.6976 44.5813 25.4438 44.632 25.2407 44.6828C24.9868 44.7844 24.7329 44.8859 24.479 45.089V42.0425C24.479 41.9409 24.479 41.8901 24.4283 41.8901C24.4283 41.8901 24.3775 41.8901 24.2759 41.8901L23.4127 42.144C23.3112 42.144 23.2604 42.2456 23.2604 42.3471V48.9987C23.2604 49.2526 23.2604 49.5065 23.2096 49.7096C23.1589 49.9127 23.1081 50.065 23.0065 50.2174C23.0065 50.2681 22.9558 50.3189 22.9558 50.3189C22.9558 50.3697 23.0065 50.4205 23.0573 50.4205L23.7174 50.6743C23.8189 50.7251 23.8697 50.7251 23.9205 50.6743C23.9713 50.6236 24.0221 50.5728 24.0728 50.4712C24.1236 50.3697 24.1744 50.2681 24.2252 50.1666C24.479 50.3697 24.6821 50.522 24.8852 50.5728C25.0883 50.6743 25.3422 50.6743 25.5961 50.6743C26.307 50.6743 26.8655 50.3697 27.2717 49.8112C27.4748 49.5065 27.6271 49.1511 27.7287 48.7956C27.8302 48.3894 27.881 47.9324 27.881 47.3231C27.881 46.5107 27.7287 45.7999 27.3733 45.2921ZM25.4438 49.7604C25.0883 49.7604 24.7837 49.6588 24.479 49.4049V46.0537C24.7329 45.8506 24.936 45.7491 25.1391 45.6983C25.2914 45.6475 25.4945 45.5968 25.6469 45.5968C26.307 45.5968 26.6624 46.2569 26.6624 47.5262C26.6624 48.9987 26.2562 49.7604 25.4438 49.7604ZM21.4325 49.7096C21.3817 49.5573 21.3817 49.3034 21.3817 48.9987V44.7336C21.3817 44.632 21.3817 44.5813 21.3309 44.5813C21.2802 44.5813 21.2294 44.5813 21.1786 44.5813L20.3154 44.7844C20.2646 44.7844 20.2139 44.8351 20.2139 44.8351C20.2139 44.8351 20.1631 44.8859 20.1631 44.9367V49.1511C19.7569 49.5065 19.3507 49.6588 18.9445 49.6588C18.6398 49.6588 18.4367 49.5573 18.3352 49.4049C18.2336 49.2018 18.1828 48.8972 18.1828 48.4402V44.6828C18.1828 44.5813 18.1828 44.5305 18.1321 44.5305C18.0813 44.5305 18.0305 44.5305 17.9797 44.5305L17.1673 44.7336C17.1165 44.7336 17.0658 44.7844 17.0658 44.7844C17.0658 44.7844 17.015 44.8351 17.015 44.8859V48.6941C17.015 48.9987 17.0658 49.2526 17.1165 49.5065C17.1673 49.7604 17.2689 49.9635 17.4212 50.1158C17.5735 50.2681 17.7259 50.4205 17.929 50.522C18.1321 50.6236 18.4367 50.6743 18.7414 50.6743C19.0968 50.6743 19.3507 50.6236 19.6046 50.522C19.8584 50.4205 20.1123 50.2174 20.417 49.9635C20.417 50.065 20.4677 50.1666 20.5185 50.2174C20.5693 50.3189 20.5693 50.3697 20.6201 50.4205C20.6709 50.4712 20.7216 50.522 20.7216 50.5728C20.7724 50.6236 20.8232 50.6236 20.9247 50.5728L21.6864 50.2681C21.7371 50.2681 21.7879 50.2174 21.7879 50.1666C21.7879 50.1158 21.7879 50.1158 21.7371 50.065C21.534 50.065 21.4325 49.9127 21.4325 49.7096ZM15.7456 43.6165C15.6441 43.3119 15.4409 43.058 15.2378 42.8549C15.0347 42.7025 14.7809 42.5502 14.527 42.4994C14.2223 42.4487 13.8161 42.3979 13.3084 42.3979H11.4297C11.3281 42.3979 11.2773 42.3979 11.2773 42.4487C11.2773 42.4487 11.2266 42.5502 11.2266 42.601V50.3697C11.2266 50.4712 11.2266 50.522 11.2773 50.522C11.2773 50.522 11.3281 50.5728 11.4297 50.5728H12.3436C12.4452 50.5728 12.496 50.5728 12.496 50.522C12.5467 50.522 12.5467 50.4205 12.5467 50.3697V47.2216H13.3084C13.7146 47.2216 14.0192 47.1708 14.3747 47.0693C14.6793 46.9677 14.984 46.8154 15.1871 46.5615C15.441 46.3584 15.5933 46.0538 15.7456 45.7491C15.8472 45.4444 15.9487 45.0382 15.9487 44.632C15.8979 44.2766 15.8472 43.9212 15.7456 43.6165ZM14.2731 45.7999C14.0192 46.003 13.6638 46.1045 13.156 46.1045H12.5467V43.4134H13.2068C13.7146 43.4134 14.1208 43.515 14.3239 43.6673C14.527 43.8704 14.6285 44.175 14.6285 44.632C14.6285 45.2413 14.527 45.5968 14.2731 45.7999Z",fill:"white"}),(0,i.jsx)("path",{d:"M57.7828 0H0V71.9492H25.9464L36 82.0028L46.0536 71.9492H72V14.1664L57.7828 0ZM68.598 15.5374V68.598H45.952H44.5811L43.6164 69.5628L35.9492 77.2299L28.2821 69.5628L27.3173 68.598H25.9464H3.3512V3.3512H56.4118V15.5374H68.598Z",fill:"white"})]})}),(0,i.jsx)(Ae,{})]}):(0,i.jsxs)("div",{role:"img","aria-label":t("ui.brand"),className:"flex flex-row gap-4",children:[(0,i.jsx)("div",{className:"brand w-[112px] md:w-[128px]",children:(0,i.jsxs)("svg",{className:"w-full h-full",viewBox:"0 0 80 40",fill:"none",children:[(0,i.jsx)("path",{d:"M0 39.9995H40.0002V0H0V39.9995
2Z",fill:"white"}),e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("rect",{y:"-0.000488281",width:"1",height:"40",fill:"#006688"}),(0,i.jsx)("rect",{y:"38.9916",width:"40",height:"1",fill:"#006688"})]}),(0,i.jsx)("path",{d:"M22.4309 2.75098C22.4309 2.75098 18.2781 8.11463 18.2781 11.6682C18.2781 17.086 19.6941 30.6779 20.4754 36.4406L21.8664 34.7943C21.3334 29.2049 20.8383 18.0816 20.8383 11.629C20.8383 8.86802 20.9077 6.93796 21.1205 6.45507C21.3689 6.62754 21.5487 6.76944 21.7253 7.3566C22.2228 9.11575 22.4309 14.7593 22.4309 18.9001C22.4309 19.9348 22.4107 20.8457 22.4107 21.6046C22.4107 22.2953 22.5462 23.4555 23.3985 23.6625C23.5759 21.7301 25.1313 18.5677 28.539 18.4297C28.7874 18.7402 29.043 19.5209 29.043 20.4875C29.043 26.215 24.3895 27.053 23.0759 27.053C22.6147 27.053 22.3704 26.9746 22.3704 26.9746C22.3704 26.9746 23.1437 32.0279 27.7931 34.1672L30.7363 31.2274C30.7363 31.2274 27.4803 29.9701 26.503 27.3861C26.486 27.3446 26.4812 27.3336 26.4425 27.3078C26.486 27.3281 26.4868 27.3375 26.5433 27.3273C29.043 26.9259 32.8127 24.8744 32.8127 19.8408C32.8127 17.46 32.3088 16.3131 32.3087 16.3131C30.4259 16.3131 26.7626 16.756 24.4468 19.684C24.3871 19.7593 24.3371 19.8157 24.3056 19.8799C24.3056 19.8799 24.329 19.7992 24.346 19.7036C24.4742 18.9722 25.0313 15.5738 25.0314 11.3939C25.0314 6.52876 24.3532 4.61595 23.9629 4.06407C23.2171 2.99478 22.4309 2.75097 22.4309 2.75098ZM7.65436 16.3131C7.65436 16.3131 7.1504 17.253 7.15039 19.8408C7.15039 24.5835 10.9919 27.1509 13.2989 27.151C14.0439 27.151 14.4665 26.9762 14.7503 26.7002C14.0407 26.5968 10.9604 25.5337 10.9604 20.8403C10.9604 18.8044 11.4039 18.4297 11.4039 18.4297C11.4039 18.4297 16.2421 18.352 16.2421 23.8389C16.2421 30.2569 9.28724 31.2274 9.28724 31.2274L12.1901 34.0496C12.1901 34.0496 18.3587 32.4801 18.3588 26.2886C18.3588 16.8344 9.35819 16.3476 7.65436 16.3131Z",fill:"#006688"}),(0,i.jsx)("path",{d:"M40 39.9995H80.0002V0H40V39.9995Z",fill:"#FF0000"}),(0,i.jsx)("path",{d:"M55.2898 15.8232L53.4156 16.1362V29.1691H55.2898V15.8232ZM43.0527 16.3334V29.1691H44.9886V23.27C44.9886 23.1649 44.9814 23.0411 44.971 22.9956C44.9887 23.0379 45.0521 23.1434 45.09 23.1928L49.707 29.1691H52.2073V29.0533H52.1677L46.8848 22.4468L51.9428 16.4106H52.0045V16.3334H49.6453L45.09 21.9367C45.0207 22.0198 44.9871 22.1041 44.971 22.151C44.9774 22.1041 44.9886 22.0301 44.9886 21.9753V16.3334H43.0527ZM69.4627 17.5467L67.6282 17.8596L67.6062 20.016H65.9966V21.3708H67.6062V26.4467C67.6062 28.3854 68.2361 29.2677 69.7625 29.2677C70.6124 29.2677 71.0179 29.1489 71.8395 28.7789V27.3084C71.3468 27.499 70.9559 27.66 70.4107 27.66C69.7036 27.66 69.423 27.3225 69.423 26.2281V21.3708H73.233V26.4467C73.233 28.3846 73.8451 29.2677 75.407 29.2677C76.2262 29.2677 76.7327 29.0892 77.506 28.7403V27.3084C76.9658 27.5178 76.5671 27.66 76.0155 27.66C75.3092 27.66 75.0277 27.3225 75.0277 26.2281V21.3708H77.6251V20.016H75.0277L75.1071 17.5467L73.2727 17.8596L73.233 20.016H69.423L69.4627 17.5467ZM61.4193 19.7245C58.6914 19.7245 57.1463 21.5576 57.1463 24.4661C57.1463 27.3752 58.7531 29.3448 61.481 29.3448C62.3043 29.3448 63.1086 29.1529 63.8182 28.8347C64.1286 28.6959 64.607 28.4325 64.8457 28.2859L64.3033 26.8583C63.6171 27.2464 63.1993 27.4776 62.4864 27.6C62.1792 27.6525 61.936 27.66 61.6618 27.66C60.5055 27.66 59.7482 27.1978 59.3644 26.3095C59.1926 25.9121 59.1499 25.6646 59.0821 24.9762H65.2073V24.5432C65.2073 23.4457 65.1251 21.9423 64.2018 20.8778C63.5495 20.1252 62.7014 19.7245 61.4193 19.7245ZM61.2782 21.075C62.1111 21.075 62.6097 21.4563 62.8701 21.8381C63.1854 22.2983 63.2453 22.6377 63.3155 23.5658H59.0821C59.1249 23.0978 59.194 22.6895 59.3423 22.3697C59.56 21.9001 59.8934 21.5423 60.2684 21.3322C60.6038 21.1432 60.983 21.075 61.2782 21.075Z",fill:"white"})]})}),(0,i.jsx)(Ae,{})]})},Se=JSON.parse('{"ui":{"save":"Speichern","abort":"Abbrechen","done":"Fertig","actionOfflineDisabled":"Aktionen offline nicht verfügbar","ariaClose":"Schließen","ariaClear":"Zurücksetzen","ariaProfile":"Profil","ariaHelp":"Hilfe","ariaLoading":"Seite lädt","linkTitle":"Führt zu: ","linkLabel":"Link","neutralFilter":"Alle","menuAria":"Mehr","brand":"Links ist das Logo von Ernst Klett Sprachen. Rechts ist das Logo von allango.","brandDelta":"Links ist das Logo von DELTA Publishing. Rechts ist das Logo von allango.","darkModeTooltip":{"dark":"Dunkler Modus","light":"Heller Modus"},"icons":{"menu":"Menü-Icon","arrowRight":"Pfeil-Rechts-Icon","chevronRight":"Rechts-Weiter-Icon","draw":"Zeichnen-Icon","rectangle":"Rechteck-Icon","addComment":"Kommentar-Icon","addText":"Text-Icon","eraser":"Radiergummi-Icon","translation":"Übersetzung-Icon","coverPage":"Seitenmaskierung-
2Icon","playlist":"Listen-Icon","download":"Download-Icon","version":"Version-Icon","bookmarkActive":"Lesezeichen-aktiv-Icon","bookmark":"Lesezeichen-Icon","sideNavShow":"Seitennavigation-anzeigen-Icon","sideNavHide":"Seitennavigation-schließen-Icon","close":"Schließen-Icon","pause":"Pause-Icon","play":"Abspielen-Icon","question":"Fragezeichen-Icon","homeActive":"Startseite-Aktiv-Icon","home":"Startseite-Icon","filter":"Filter-Icon","myContentActive":"Inhalt-Aktiv-Icon","myContent":"Inhalt-Icon","playlistActive":"List-Aktiv-Icon","profile":"Profil-Icon","circlePlus":"Plus-Icon","edit":"Bearbeiten-Icon","chevronDown":"Unten-Weiter-Icon","chevronUp":"Oben-Weiter-Icon","subtract":"Minus-Icon","clear":"Leeren-Icon","repeat":"Wiederholen-Icon","bin":"Mülleimer-Icon","changeShapeOutline":"Outline ändern icon","tools":"Werkzeug-Icon","add":"Hinzufügen-Icon","info":"Informationen","login":"Login-Icon","logout":"Logout-Icon","alertActive":"Meldung-Aktiv-Icon","checkmark":"Ausgewählt","select":"Selektierung-Icon","key":"Schlüssel-Icon","arrowLeft":"Pfeil-Links-Icon","lightmode":"Light-Mode-Icon","darkmode":"Dark-Mode-Icon","rewind":"Rewind-Icon","forward":"Forward-Icon","sound":"Sound-Icon","soundMute":"Sound-Mute-Icon","fullscreen":"Fullscreen-Icon","fullscreenExit":"Fullscreen-Exit-Icon","bibliothek":"Bibliothek-Icon","bibliothekActive":"Bibliothek-Icon aktiv","cursor":"Cursor-Icon","checkBulletPoint":"Häkchen-Icon Aufzählungspunkt","correctAnswer":"Richtig-Icon","wrongAnswer":"Falsch-Icon","celebration":"Feier-Icon","previous":"Vorher-Icon","next":"Nächstes-Icon","collectionAdd":"Zu-Sammlung-Hinzufügen-Icon","star":"Stern-Icon","microphone":"Mikrofon-Icon","noAnswer":"Keine-Antwort-Icon","conversation":"Gespräch-Icon","graduation":"Absolventen-Hut-Icon"}},"errorPage":{"title":"Es tut uns leid, ein unbekannter Fehler ist aufgetreten.","titleSuffix":"Bitte versuche es später erneut.","error":"Fehler: ","iosErrorTitle":"Die verwendete iOS-Version wird nicht mehr unterstützt.","iosError":"Bitte aktualisiere dein Betriebssystem auf die neueste iOS-Version oder versuche es auf einem anderen Gerät.","repeatedDexie":"Ein Problem mit deinem lokalen Speicher verhindert die Aktion. Bitte überprüfe deinen Speicher und versuche es erneut. Sollte das Problem weiterhin bestehen, wende dich bitte an unseren Kundenservice.","tryAgain":"Erneut versuchen","backHome":"Zurück zur Startseite"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"Français","it":"Italiano","pt":"Português","pt-br":"Português do Brasil (Beta)","tr":"Türkçe (Beta)","ru":"Русский – Бета","ua":"Українська – Бета","ae":"العربية - الإصدار التجريبي"},"breadcrumbs":{"ariaLabel":"Breadcrumb-Navigation"},"welcome":{"title":"Willkommen bei allango!","copy":"Entdecke deine Plattform zum einfachen Sprachenlernen und -unterrichten! Hier findest du übersichtlich und schnell eine große Auswahl an digitalen Ergänzungen zu deinem Buch und kannst Digitale Ausgaben aufrufen und individuell bearbeiten. Organisiere alle Inhalte flexibel mit praktischen Funktionen der Lernplattform und freu dich auf passgenaue Unterstützung für deine persönliche Unterrichtsgestaltung! Gleich loslegen!","dashboard":"Zur Übersicht","augmented":"Zur Bibliothek","modal":{"title":"Fehler bei der Registrierung","copy":"Es ist ein Fehler bei der Registrierung/Anmeldung aufgetreten. Deine Rolle konnte nicht übernommen werden. Bitte versuche es erneut. Sollte der Fehler nochmals auftreten, kontaktiere bitte den Support.","close":"Schließen","login":"Jetzt einloggen"},"license":{"teaserTitle":"Aktiviere deine Lizenz","teaserText":"Bitte gib nach dem Login einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","teaserCta":"Jetzt einloggen","inputTitle":"Aktiviere deine Lizenz","inputText":"Bitte gib einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","inputLabel":"Lizenzschlüssel","inputHelp":"Wo finde ich meinen Lizenzschlüssel?","inputCta":"Aktivieren"},"search":{"title":"Finde dein Buch","label":"Bitte gib Buchtitel, ISBN- oder NP-Nummer ein, um Medie
2ninhalte oder Digitale Ausgaben aufzurufen.","placeholder":"z. B. 978-3-12-501070-3"}},"protected":{"unauthTitle":"Login erforderlich","unauthCopy":"Bitte melde dich an, um diese Funktion nutzen zu können.","unauthCta":"Jetzt einloggen","unautorisedTitle":"Zugriff verweigert: Unzureichende Berechtigungen","unautorisedCopy":"Deine Benutzerrolle hat leider nicht die Rechte, um auf diese Seite zuzugreifen."},"dashboard":{"title":"Hallo","unauthTitle":"Willkommen bei allango","unauthCopy":"Bitte melde dich an, um die Übersicht nutzen zu können.","unauthCta":"Jetzt einloggen","recent":"Mache genau dort weiter, wo du zuletzt aufgehört hast:","nointeractions":"Noch keine Inhalte verwendet?","teaser-button":"Jetzt entdecken","isbnLabel":"ISBN:","npLabel":"NP-Nummer: ","myBooks":{"title":"Zuletzt aktiviert","all":"Alle meine Bücher"},"license":{"teaserTitle":"Aktiviere deine Lizenz","teaserText":"Bitte gib nach dem Login einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","teaserCta":"Jetzt einloggen","inputTitle":"Aktiviere deine Lizenz","inputText":"Bitte gib einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","inputLabel":"Lizenzschlüssel","inputHelp":"Wo finde ich meinen Lizenzschlüssel?","inputCta":"Aktivieren"},"search":{"title":"Finde dein Buch","text":"Bitte gib Buchtitel, ISBN- oder NP-Nummer ein, um Medieninhalte oder Digitale Ausgaben aufzurufen.","placeholder":"z. B. 978-3-12-501070-3"}},"interactions":{"playlist":"Liste"},"menu":{"logout":"Ausloggen","login":"Jetzt einloggen","loggedInAs":"Eingeloggt als","settings":"Konto und Einstellungen"},"discover":{"title":"Suche","searchLabel":"Bitte gib Buchtitel, ISBN- oder NP-Nummer ein, um Medieninhalte oder Digitale Ausgaben aufzurufen.","lastSearch":"Zuletzt gesucht:","teaser":"Alle Bücher anzeigen","hideExpired":"Abgelaufene Lizenzen ausblenden","result":{"resultsFor":"Ergebnisse für","resultsForSingle":"Ergebnis für","resultsIn":"Ergebnisse in {{tabName}}","resultsInSingle":"Ergebnis in {{tabName}}","books":"Buchtitel","noItemsFound":"Buchtitel konnte nicht gefunden werden","noItemsFoundAdditionalText":"Deine Suchanfrage ergab leider keine Treffer. Bitte überprüfe deine Schreibweise oder versuche es mit einem anderen Suchbegriff.<br /> Im Suchfeld können keine Lizenzschlüssel oder Codes eingegeben werden. Bei weiteren Fragen besuche unser ","supportLinkText":"Hilfeportal.","supportLink":"https://hilfe.klett-sprachen.de/hc/de/categories/10085442471965-allango"}},"library":{"title":"Bibliothek","myBooks":"Meine Bücher","allBooks":"Alle Bücher","allTools":"Alle Tools","searchLabel":"Bitte gib Buchtitel, ISBN- oder NP-Nummer ein, um Medieninhalte oder Digitale Ausgaben aufzurufen.","subtitle":"Entdecke die passenden Inhalte für deinen Unterricht."},"augmented":{"description-label":"Beschreibung","level-label":"Niveau","offline":"Offline speichern","offline-remove":"Offline entfernen","offline-retry":"Fehler, bitte erneut versuchen.","offlineDisabled":"Das Offline-Speichern wird durch das Betriebssystem iOS (nur iPhone) nicht unterstützt. Bitte verwende für den vollen Funktionsumfang ein anderes Gerät.","download":"Herunterladen","downloadStarted":"Download ist gestartet","downloadAria":"{{format}} herunterladen","bookbookmarkedsuccess":"Buch gemerkt!","bookbookmarkedfailure":"Buch konnte nicht zu den gemerkten Inhalten hinzugefügt werden!","pagebookmarkedsuccess":"Seite gemerkt!","pagebookmarkedfailure":"Seite konnte nicht zu den gemerkten Inhalten hinzugefügt werden!","contentNavigation":{"pageLabel":"Zur Seite:","title":"Manuelle Seitenauswahl","page":"Seite","ponsLink":"Zum PONS Online-Wörterbuch","invalidPageNumber":"Ungültige Seitennummer"},"contentToggle":"Inhalt","licenceInfo":"Mit dem Öffnen dieser Inhalte bestätige ich, dass ich diese in Verbindung mit dem gedruckten, dem digitalen Buch oder einer rechtmäßig bereitgestellten Kopiervorlage nutze. Diese Bestätigung ist aus Lizenzgründen notwendig.","licenceRead":"Gelesen","noProductFound":"Kein Inhalt gefunden","backToDiscover":"Inhalte entdecken","noAssetsOnPage":"Keine Inhalte auf dieser Seite vorhanden.","onlyTeacherAssets":"Zu diesem Buch sind Inhalte verfügbar, die ausschließlich für Unterrichtende relevant sind.","onlyTeacherAssetsNotLoggedIn":"Jetzt einloggen! Zu diesem Buch sind Inhalte verfügbar, die ausschließlich für Unterrichtende relevant sind. Sie werden nach dem Login sichtbar."},"accesscode":{"title":"Inhalt ist codegeschützt.","text":"Bitte hier den Code aus deinem Buch eingeben.","enter":"Absenden","inputAria":"Code","page":"Seite","error":"Ungültiger Code. Bitte prüfe, ob der Code aus deinem Buch korrekt eingegeben ist und versuche es n
2ochmal."},"user-content":{"title":"Meine Lesezeichen und Offline-Inhalte","unauthTitle":"Lesezeichen und Offline-Inhalte","nav":{"bookmarks":"Lesezeichen","offline":"Offline-Inhalte"},"offline":{"teaserTitle":"Du hast noch keine Inhalte offline gespeichert.","hint1":"Bitte nutze das Menü","hint2":" , um Inhalte offline verfügbar zu machen.","link":"Zu den gemerkten Inhalten"}},"bookmark":{"preview":{"page":"Seite","pages":"Seite {{p1}} und {{p2}}","version":"Version","changeVersion":"Version wechseln"},"teaser":{"title":"Login erforderlich","copy":"Bitte logge dich ein, um diese Funktion nutzen zu können.","close":"Abbrechen","login":"Jetzt einloggen"},"bulk":{"remove":"Entfernen","download":"Offline speichern"},"noData":"Keine gemerkten Inhalte gefunden.","teaserTitle":"Du hast noch keine Inhalte gemerkt.","hint1":"Nutze das Lesezeichen-Symbol","hint2":" , um Inhalte einfach wiederzufinden.","link":"Inhalte entdecken und merken","removing":"entfernen...","removeSuccess":"Lesezeichen entfernt!","undo":"Rückgängig","searchPlaceholder":"Suche nach Inhalten","add":"Lesezeichen hinzufügen","removeSingle":"Lesezeichen entfernen","noNewBookmarks":"Keine neuen Lesezeichen zu speichern.","addedSuccess":"Lesezeichen erfolgreich hinzugefügt.","bookmarking":"hinzufügen...","removeBookmarkAria":"Lesezeichen entfernen","setBookmarkAria":"Lesezeichen hinzufügen","removeAllBookmarksAria":"Alle Lesezeichen entfernen","setAllBookmarksAria":"Alle Lesezeichen hinzufügen","savePageOffline":"Seite offline speichern","assetsFound":"{{count}} Treffer"},"playlist":{"title":"Meine Listen","newList":"Neue Liste","addEntry":"Eintrag hinzufügen","notFoundTitle":"Liste konnte nicht gefunden werden. Bitte prüfe bei den empfangenen Listen, ob sie gelöscht wurde.","notAllowedTitle":"Liste darf nicht geöffnet werden.","backToOverview":"Weiter zu empfangenen Listen","addToPlaylist":"Zu {{playlistName}} hinzufügen","menu":{"delete":"Liste löschen","share":"Liste teilen","customContent":"Eintrag hinzufügen","storeOffline":"Liste offline speichern","remove":"Liste entfernen","copy":"Liste kopieren","ariaLabel":"Listen-Menü öffnen"},"nav":{"private":"Bearbeiten","received":"Empfangen","curated":"Verlagsliste erstellen","curatedReceived":"Aus dem Verlag"},"share":{"title":"Liste teilen","generate":"Link erstellen","copy":"Link kopieren","copied":"Link in Zwischenablage kopiert.","revoke":"Widerrufen","warning":"Liste beinhaltet Inhalte, welche nicht für Lernende sichtbar sind."},"invalidName":"Ungültiger Listenname","namePlaceholder":"Listenname eingeben","removeFromList":"Aus Liste entfernen","addToList":"Zur Liste hinzufügen","screenReader":{"menu":"Menü mit {{count}} Einträgen","menuSingular":"Menü mit einem Eintrag","formular":"Menü mit \\"Neue Liste erstellen\\"-Formular"},"emptyListTitle":"Leere Liste","emptyListLink":{"0":"Tipp: Füge Inhalte aus deinen","1":" gemerkten Inhalten","2":" hinzu oder","3":" entdecke neue Inhalte."},"emptyListsTitle":"Du hast noch keine Liste.","emptyListsCopy":"In einer Liste sammelst und ordnest du Inhalte. Deine Liste kannst du mit Kolleginnen und Kollegen oder auch Lernenden teilen. Damit bist du optimal für den Unterricht vorbereitet.","emptyListsLink":"Erste Liste erstellen","emptyListsTitleShared":"Du hast noch keine Liste erhalten.","emptyListsCopyShared":"Erhalte Listen von anderen Nutzer/-innen und verwende diese als Vorlage für deinen Unterricht.","emptyListsTitleCurated":"Du hast noch keine Verlagsliste erstellt.","emptyListsCopyCurated":"Dieser Reiter ist nur intern für die Redaktionen sichtbar.","emptyListsTitleCuratedShared":"Du hast noch keine Verlagsliste erhalten.","emptyListsCopyCuratedShared":"Über Verlagslisten stellt die Redaktion ausgewählte Inhalte zu verschiedenen Unterrichtsthemen oder Produkten zur Verfügung. Einen Link zu einer Verlagsliste erhältst du über unsere Newsletter oder innerhalb von allango zu ausgewählten Titeln im Bereich „Medien“.","emptyListOffline":"Den Link zu Verlagslisten erhälst du über unsere Newsletter oder innerhalb von allango zu ausgewählten Titeln im Bereich „Inhalte“.","entryForm":{"title":{"label":"Titel (Pflichtfeld)","placeholder":"Titel hinzufügen"},"comment":{"label":"Notiz","placeholder":"Notiz hinzufügen","help":"Nach dem Teilen der Liste auch für andere sichtbar."},"description":{"label":"Beschreibung","placeholder":"Beschreibung hinzufügen","help":"Nach dem Teilen der Liste auch für andere sichtbar."},"url":{"label":"Weblink","placeholder":"Zum Beispiel https://www.mein-weblink.com"},"required":"Titel ist erforderlich"},"addComment":"Bearbeiten","author":"von","creationDate":"Erstellt am {{date}}.","modified":"Zuletzt aktualisiert am {{date}}.","shareButton":"Teilen","copyPlaylist":"Kopie erstellen","addFirstEntry":"Erster Eintrag","addedReceived":"Geteilte Liste erfolgreich empfangen.","copySuccess":"Geteilte Liste erfolgreich kopiert.","addedAssetMessage":"Inhalt zur Liste hinzugefügt.","updateTitle":"Listenname","editInfoBox":{"copy":"Damit du eine mit dir geteilte Liste bearbeiten kannst, musst du zunächst eine Kopie davon erstellen.","button":"Kopie erstellen"},"editListNameAria":"Listenname bearbeiten","anonymsAuthor":"Anonym","showCommentAria":"Listen-Eintrag Kommentar bearbeiten","reorderUpAria":"Listen-Eintrag nach oben verschieben","reorderDownAria":"Listen-Eintrag nach unten verschieben","containsAudioVideo":"Das Offline-Speichern ist auf diesem Gerät für Audios und Videos nicht möglich. Es werden nur PDFs und interaktive Übungen gespeichert. Bitte verwende für den vollen Funktionsumfang ein anderes Gerät.","containsNotDownloadableAsset":"Liste enthält Inhalte, die nicht heruntergeladen werden können.","deleted":"gelöscht"},"course":{"title":"Meine Klassen","newCourse":"Neue Klasse","downloadInstitute":"Lernfortschritt herunterladen","downloadSuccess":"Download erfolgreich","downloadError":"Download fehlgeschlagen","author":"von","creationDate":"Erstellt am {{date}}.","modified":"Zuletzt aktualisiert am {{date}}.","tabs":{"overview":"Lernfortschritt","members":"Lernende","collaborators":"Co-Lehrkräfte","books":"Bücher"},"overview":{"reload":"Aktualisieren","progressionUpdateSlow":"Die Aktualisierung dauert länger als erwartet. Bitte schau in ein paar Minuten noch einmal vorbei.","progressionUpdateComplete":"Der Lernfortschritt wurde erfolgreich aktualisiert.","progressionUpdateStillRunning":"Die Aktualisierung läuft im Hintergrund weiter. Lade die Seite später erneut, um das Ergebnis zu sehen.","noProgression":"Zu diesem Buch gibt es derzeit keinen aktuellen Lernfortschritt der Lernenden.","noCompetencies":"In diesem Buch gibt es keine Übungen mit verknüpften Kompetenzen.","modified":"Lernfortschritt zuletzt aktualisiert: {{date}}","bookSelectLabel":"Buch","courseAverage":"Ø Klasse","chapters":"Inhalte","competencies":"Kompetenzen","competency":"Kompetenz","chapter":"Kapitel/Aufgabe","solvedLessons":"Ø bearbeitete Aufgaben","correctAnswers":"Ø richtige Antworten","total":"Gesamt","result":"Richtige Antworten","edited":"Bearbeitete Aufgaben","read":"Gelesene Seiten","dataChangeScreenReader":"Daten in Tabelle haben sich geändert zu {{type}}","export":{"download":"Exportieren","downloadError":"Download fehlgeschlagen. Bitte versuche es später erneut."},"filterInfo":{"accessibilityLabel":"Info zu Kennzahlen anzeigen","title":"Hinweis zu den Kennzahlen","text":"Über das Dropdown kannst du wählen, welche Kennzahl du zum Lernfortschritt der Klasse einsehen möchtest:<br/><br/>„Richtige Antworten“ zeigt den Anteil richtig gelöster Antworten.<br/>„Bearbeitete Aufgaben“ zeigt den Anteil bearbeiteter Aufgaben.<br/>„Gelesene Seiten“ zeigt den Anteil gelesener Seiten. Eine Seite gilt als gelesen, wenn du sie mindestens 3 Sekunden lang ansiehst. Der Lesefortschritt ist auch für Digitale Ausgaben einsehbar, die keine interaktiven Übungen enthalten.","ok":"OK"},"hideSelfEvaluation":"Selbsteinschätzung ausblenden","chapterCompleted":"Kapitel vollständig bearbeitet","accessibilityLabel":"Kapitel abgeschlossen"},"members":{"remove":"Lernenden löschen","emptyTeaser":{"title":"In dieser Klasse befinden sich noch keine Lernenden.","body":"Bitte lade Lernende zu dieser Klasse ein."}},"collaborators":{"remove":"Co-Lehrkraft löschen","emptyTeaser":{"title":"In dieser Klasse befinden sich noch keine Co-Lehrkräfte.","body":"Du hast die Möglichkeit Co-Lehrkräfte zu dieser Klasse einzuladen."}},"books":{"remove":"Buch entfernen","addButton":"Hinzufügen","emptyTeaser":{"title":"Du hast noch kein Buch hinzugefügt.","body":"Du kannst deine aktivierten Bücher zu dieser Klasse hinzufügen."},"add":{"title":"Hinzufügen zu \\"{{title}}\\"","ariaLabel":"Buch-Suche","searchPlaceholder":"z. B. NP10050107000","
2search":"Suchen","noBookFound":"Keine geeigneten Bücher gefunden.","note":"Achte darauf, genau die Bücher hinzuzufügen, die deine Lernenden verwenden.","noteInfo":{"iconAria":"Info zum Hinzufügen von Büchern zeigen","title":"Hinweis zum Hinzufügen von Büchern","text":"Die Bücher im Klassenmanagement müssen genau mit den Büchern deiner Lernenden übereinstimmen. Zum Beispiel Teilband oder Ganzband sowie Kursbuch oder Übungsbuch. Die NP-Nummer hilft dir, das richtige Buch eindeutig zu erkennen. <br/><br/>Für jedes hinzugefügte Buch benötigen Unterrichtende und Lernende jeweils eine gültige Lizenz.","ok":"OK"},"abort":"Abbrechen","saveSingle":"{{count}} Buch hinzufügen","savePlural":"{{count}} Bücher hinzufügen"}},"emptyTeaser":{"emptyCoursesLink":"Erste Klasse erstellen","title":"Du hast noch keine Klasse","body":"Mit dem Klassenmanagement kannst du auf einen Blick den Lernfortschritt deiner Lernenden einsehen."},"menu":{"delete":"Klasse löschen","deleteModal":{"warningTitle":"Sind Sie sich sicher?","warningTextCourse":"Die Klasse wird gelöscht und alle Zuweisungen und Einladungen werden aufgehoben. Der Lernfortschritt der Lernenden bleibt erhalten.","warningTextBook":"Buch aus der Klasse löschen.","warningTextCollaborator":"Co-Lehrkraft aus der Klasse entfernen.","warningTextMember":"Lernende/n aus der Klasse entfernen.","warningTextMembership":"Mich aus der Klasse entfernen.","warningButton":"Löschen"},"share":"Klasse teilen","ariaLabel":"Klassen-Menü öffnen"},"join":{"joinSuccessful":"Du bist der Klasse erfolgreich beigetreten.","leaveSuccessful":"Du wurdest erfolgreich aus der Klasse entfernt.","modal":{"joinCourseTitle":"Der Klasse \\"{{courseId}}\\" beitreten","joinCourseAgeConsent":"Mit meinem Beitritt bestätige ich, dass ich über 16 Jahre alt bin. Andernfalls habe ich meine Erziehungsberechtigten informiert und ihre Zustimmung eingeholt.","joinCourseDataConsent":"Ich bin damit einverstanden, dass Lehrkräfte und – falls erforderlich – Mitarbeitende meiner Schule oder meines Instituts meinen Lernfortschritt einsehen können.","joinCourseCopy":"Wähle einen Anzeigenamen, damit dich deine Lehrkraft zuordnen kann. Bitte verwende nicht deinen richtigen Namen. Du kannst deinen Anzeigenamen jederzeit im Bereich <settingsLink>Konto und Einstellungen</settingsLink> ändern.","cancel":"Abbrechen","confirm":"Klasse beitreten"}},"editCourseNameAria":"Klassenname bearbeiten","updateTitle":"Klassenname","namePlaceholder":"Klassenname eingeben","invalidName":"Ungültiger Klassenname","share":{"title":{"members":"Klasse mit Lernenden teilen","collaborators":"Klasse mit Co-Lehrkräften teilen"},"copy":"Link kopieren","revoke":"Widerrufen","info":{"members":"Bitte stelle im Rahmen deiner schulischen oder institutionellen Tätigkeit sicher, dass alle eingeladenen Lernenden mindestens 16 Jahre alt sind oder die Einwilligung einer erziehungsberechtigten Person vorliegt. Mit dem Teilen des Links/QR-Codes bestätigst du, dass diese Voraussetzungen erfüllt sind."},"generate":"Link erstellen","copied":"Link in Zwischenablage kopiert.","button":"Einladen"}},"navigation":{"ariaUserContent":"Navigation zu den Lesezeichen und Offline-Inhalten","ariaSearch":"Navigation zur Buchtitel-Suche","ariaDashboard":"Navigation zur Übersicht","ariaPlaylist":"Navigation zu den Listen","ariaCourse":"Navigation zu den Klassen","ariaBibliothek":"Navigation zur Bibliothek","tooltipUserContent":"Meine Lesezeichen und Offline-Inhalte","tooltipSearch":"Suche","tooltipDashboard":"Übersicht","tooltipPlaylist":"Meine Listen","tooltipCourse":"Meine Klassen","tooltipBibliothek":"Bibliothek","tooltipOpenSideNavigation":"Seitennavigation öffnen","tooltipCloseSideNavigation":"Seitennavigation schließen"},"pagination":{"elements":"Elemente","previous":"Vorige Seite","next":"Nächste Seite","ariaPage":"Navigiere zu Seite {{page}}"},"downloadManager":{"title":"Offline-Inhalte","waiting":"Speichern wird vorbereitet.","downloading":"Speichern…","cached":"Offline gespeichert","notStored":"Nicht gespeichert","success":"Inhalt {{title}} erfolgreich gecached","failure":"Fehler beim Cachen","bulkPrepare":"Speichern wird vorbereitet.","offlineHint":{"1":"Offline gespeicherte Inhalte sind unter Meine Lesezeichen ","2":"> Offline-Inhalte","3":" verfügbar."},"offlineErrorHint":"Download abgeschlossen. Einzelne Inhalte konnten nicht heruntergeladen werden.","abortAll":"Alle abbrechen","retryAssetAria":"Erneut versuchen","removeAssetAria":"Inhalt entfernen","riskIconAria":"Warnung","screenReaderStart":"Offline speichern gestartet","screenReaderEnd":"Offline speichern beendet"},"search":{"placeholder":"z. B. 978-3-12-501070-3","placeholderAssets":"Medieninhalt eingeben","submitButton":"Suchen","ariaIcon":"Suche","myBooks":"Meines","allBooks":"Alle Bücher","allTools":"Alle Tools"},"offline":{"offline":"Offline","bannerCopy":"Du bist offline. Einige Funktionen sind nicht verfügbar.","disabledSearch":"Suche ist offline nicht verfügbar.","disabledAction":"Aktion ist offline nicht verfügbar"},"newContent":{"copy":"Eine neue Version ist verfügbar. Wähle „Laden“ um allango auf den neuesten Stand zu aktualisieren.","button":"Laden","releaseInfoLinkText":"Zu den Update-Informationen"},"shared":"Geteilt","install":{"prompt":"allango zum Startbildschirm hinzufügen?","dismiss":"Abbrechen","install":"Installieren"},"facet":{"bookPage":"Seite","series":"Serie","niveau":"Niveau","format":"Medientyp","bookTitle":"Buchtitel","bookDescribedTitle":"Buchtitel","bezeichnung":"Buchtitel","isbn":"ISBN","type":"Produkt-Typ"},"badge":{"teacher":"Nur für Unterrichtende","accesslocked":"Codegeschützt","accessunlocked":"Code freigeschalten","dauaccesslocked":"Codegeschützt","demo":"Testzugang","uPlus":"UnterrichtsPlus","lernPlus":"LernPlus","dau":"Digitale Ausgabe","resultPercentage":"{{percentage}} % richtig","selfEvaluation":"Selbsteinschätzung","aiEvaluation":"KI-Feedback","test":"Test","interactiveVideo":"Interaktives Video"},"help":{"accesscode-where-url":"https://hilfe.klett-sprachen.de/hc/de/articles/360020867617-Was-sind-Zugangscodes-und-wo-gebe-ich-sie-ein-","accesscode-where-code":"Wo finde ich meinen Code?","base-url":"https://hilfe.klett-sprachen.de/hc/de/categories/10085442471965-allango"},"resourceList":{"bookmark-all":"Lesezeichen setzen","pageFilterPrefix":"Seite","page":"Seite","sortPrefix":"Sortieren nach: ","documentSingle":"Dokument","documentPlural":"Dokumente","moreActions":"Mehr Aktionen","cancel":"Fertig","editList":"Liste bearbeiten","mediaFilter":"Medientyp","bulkOffline":"Offline speichern","bulkSelect":"Alle au
2swählen","mediafilterAll":"Alle","noData":"Keine Inhalte gefunden","selection":"Auswahl ({{count}})","sorters":{"titleAsc":"Buchtitel von A–Z","titleDesc":"Buchtitel von Z–A","timelinessAsc":"Älteste zuerst","timelinessDesc":"Neueste zuerst","recentlyUsed":"Zuletzt genutzt","activation":"Zuletzt aktiviert"},"downloadAudios":{"buttonText":"Audiopaket herunterladen","infoIcon":"Hinweis zum Audiopaket öffnen","infoModalTitle":"Hinweis zum Audiopaket","infoModalText":"Das Audiopaket enthält alle Audios zu diesem Buch, die heruntergeladen werden dürfen. Der Download kann einige Sekunden dauern.","ok":"Verstanden"}},"asset":{"audiosTextSingular":"1 Audio anhören","audiosTextPlural":"{{number}} Audios anhören","videosTextSingular":"1 Video abspielen","videosTextPlural":"{{number}} Videos abspielen","pdfsTextSingular":"1 PDF öffnen","pdfsTextPlural":"{{number}} PDFs öffnen","htmlsTextSingular":"1 sonstigen Inhalt öffnen","htmlsTextPlural":"{{number}} sonstige Inhalte öffnen","linksTextSingular":"1 Link öffnen","linksTextPlural":"{{number}} Links öffnen","dauLinksTextSingular":"1 Verweis öffnen","dauLinksTextPlural":"{{number}} Verweise öffnen","filesTextSingular":"1 Datei öffnen","filesTextPlural":"{{number}} Dateien öffnen","daupagesTextSingular":"1 Seite der Digitalen Ausgabe öffnen","daupagesTextPlural":"{{number}} Seiten der Digitalen Ausgabe öffnen","assessmentsTextSingular":"1 Übung öffnen","assessmentsTextPlural":"{{number}} Übungen öffnen","selftestsTextSingular":"1 Selbsttest öffnen","selftestsTextPlural":"{{number}} Selbstests öffnen","audio":"Audio","audios":"Audios","audioPlay":"anhören","video":"Video","videos":"Videos","videoPlay":"ansehen","pdf":"PDF","pdfs":"PDFs","pdfPlay":"öffnen","html":"sonstiger Inhalt","htmls":"Sonstige Inhalte","htmlPlay":"öffnen","iframe":"Interaktiver Inhalt: {{title}}","externalLink":"Externer Link","link":"Link","links":"Links","linkPlay":"öffnen","dauLink":"Verweis","dauLinks":"Verweise","dauLinkPlay":"öffnen","dauLinkLabel":"Seite ","uhbLinkLabel":"Unterrichtshandbuch Seite ","file":"Weitere Datei","files":"Weitere Dateien","filePlay":"öffnen","daupage":"Seite der Digitalen Ausgabe","daupages":"Seiten der Digitalen Ausgabe","uhbpage":"Seite des UnterrichtsPlus","uhbpages":"Seiten des UnterrichtsPlus","others":"Weitere Medien ansehen","assessment":"Übung","assessments":"Übungen","selftest":"Selbsttest","selftests":"Selbsttests","menu":{"ariaLabel":"Inhaltsmenü"}},"settings":{"title":"Mein allango-Konto","personalTitle":"Persönliche Informationen","email":"E-Mail","name":"Name","username":"Anzeigename","ariaUsername":"Anzeigename ändern","anonymsAuthor":"Anonym","ssoId":"SSO-ID","security":"Sicherheit","password":"Passwort","changePassword":"Passwort ändern","ariaCancel":"Abbrechen","loading":"Speichern...","success":"Einstellungen erfolgreich gespeichert","courses":"Klassen","leaveC
2ourse":"Klasse entfernen","settings":"Einstellungen","language":"Sprache","roles":"Berechtigungsrollen","rolenames":{"student":"Lernende/r","teacher":"Unterrichtende/r","schooladmin":"Administrator/in einer Institution","eks_content_admin":"EKS-Inhalte-Administrator/in","admin":"Meister-Administrator/in","editor":"Redakteur/in"}},"footer":{"privacy":"Datenschutz","imprint":"Impressum","terms-of-use":"Nutzungsbedingungen","cookie-consent":"Cookie-Einstellungen ändern","copyright":"Copyright © Ernst Klett Sprachen GmbH {{year}}","version":"Versionsinformation","accessibility":"Barrierefreiheitserklärung","subscription":"Abonnement kündigen","subscription-url":"https://subscription.allango.net/abo-kuendigen","subscription-url-delta":"https://subscription.allango.net/cancel-subscription"},"featureTeaser":{"playlist":{"title":"Meine Listen","subtitle":"Organisiere Inhalte über individuelle Listen","copy":"Lege für die Inhalte deines Unterrichts neue Listen mit passenden Namen und eigener Reihenfolge an, füge individuelle Weblinks hinzu und teile deine Listen mit anderen.","cta":"Einloggen und loslegen"},"favourits":{"title":"Meine Lesezeichen","subtitle":"Finde wichtige Inhalte verlässlich wieder","copy":"Merke dir für den Unterricht deine Lieblingsinhalte, nutze Filter zum schnellen Wiederfinden und greife auf Inhalte jederzeit auch offline zu.","cta":"Einloggen und loslegen"}},"pdfplayer":{"save":"Speichern","close":"Schließen","page":"Seite","version":"Version:","originalVersion":"Original (unbearbeitet)","zoomInAria":"PDF vergrößern","zoomOutAria":"PDF verkleinern","nextPageAria":"Nächste PDF-Seite","pageInputAria":"PDF-Seiten-Navigation","prevPageAria":"Vorige PDF-Seite","zoomSizeOriginal":"Original","zoomAria":"Zoom-Größe auswählen. Aktueller Wert: {{value}}","pageFrom":"von"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"Vollbild-Modus schließen","showInFullscreenAria":"Vollbild-Modus öffnen"},"minimize":"Minimieren","maximize":"Maximieren","pauseAria":"Pausieren","playAria":"Abspielen","forwardAria":"10 Sekunden vorspulen","rewindAria":"10 Sekunden zurückspulen","previousAria":"Voriger Medieninhalt","nextAria":"Nächster Medieninhalt","sliderInputAria":"Fortschritt-Schieberegler","taskMarker":"Aufgabe bei {{time}}","unmute":"Ton einschalten","mute":"Ton ausschalten","playbackRateChangeAria":"Auswahl der Wiedergabe-Geschwindigkeit","playbackRateAria":"Wiedergabe-Geschwindigkeit {{rate}}","showTrackAria":"Untertitel ausblenden","hideTrackAria":"Untertitel anzeigen","showListAria":"Liste anzeigen","hideListAria":"Liste ausblenden","subtitles":"Untertitel"},"error":{"playlist":{"failCreate":"Liste konnte nicht angelegt werden!","failRename":"Liste konnte nicht umbenannt werden!","failModify":"Liste konnte nicht verändert werden!","failAddEntry":"Eintrag konnte nicht zur Liste hinzugefügt werden.","failAddAsset":"Inhalt konnte nicht zur Liste hinzugefügt werden.","failDeleteShareLink":"Link zum Teilen der Liste konnte nicht widerrufen werden.","playlistNotFound":"Liste konnte nicht gefunden werden.","failCopy":"Liste konnte nicht kopiert werden.","failDelete":"Liste konnte nicht gelöscht werden.","failRemoveReceived":"Liste konnte nicht entfernt werden.","noResponse":"Dienst antwortet nicht!","failCopyToClipboard":"Fehler beim Kopieren des Links."},"course":{"courseNotFound":"Klasse konnte nicht gefunden werden.","failCreate":"Klasse konnte nicht angelegt werden.","failRename":"Klasse konnte nicht umbenannt werden.","failModify":"Klasse konnte nicht verändert werden.","failDelete":"Klasse konnte nicht gelöscht werden.","failJoin":"Der Klasse konnte nicht beigetreten werden.","failLeave":"Klasseaustritt fehlgeschlagen.","removeFromCourse":"Person konnte nicht aus der Klasse entfernt werden.","failShareCourse":"Klasse konnte nicht geteilt werden.","failCopyToClipboard":"Klassen-Link konnte nicht kopiert werden.","addToBookList":"Buch konnte nicht zur Klasse hinzugefügt werden.","removeFromBookList":"Buch konnte nicht von der Klasse entfernt werden.","progressionNotFound":"Lernfortschritt konnte nicht geladen werden.","failProgressionCreate":"Lernfortschritt konnte nicht erstellt werden."},"settings":{"failSave":"Fehler beim Speichern der Einstellungen.","failGetSettings":"Einstellungen konnten nicht geladen werden."}
2,"asset":{"failGetPdf":"PDF konnte nicht geladen werden.","failLoadMedium":"Medium konnte nicht geladen werden.","failHtmlLoad":"Interaktive Übung konnte nicht geladen werden.","failGetAccess":"Auf den Inhalt konnte nicht zugegriffen werden. ","failGetAsset":"Inhalt konnte nicht gefunden werden.","unauthorized":"Aktiviere deine Digitale Ausgabe: Bitte gib deinen Lizenzschlüssel ein, um eine Digitale Ausgabe zu aktivieren und nutzen zu können.","licenseHelp":"Wo finde ich meinen Lizenzschlüssel?","licenseHelpLink":"https://hilfe.klett-sprachen.de/hc/de/articles/13015570332189-Wo-finde-ich-den-Lizenzschl%C3%BCssel-zu-meinem-Produkt","cacheDisabled":"Bitte beachte, dass in Listen enthaltene Weblinks nicht offline gespeichert werden können.","downloadAccessCodeProtected":"Manche Inhalte sind codegeschützt und können erst offline gespeichert werden, wenn du den Code freischaltest.","invalidAccessCode":"Ungültiger Code. Bitte prüfe, ob der Code aus deinem Buch korrekt eingegeben ist und versuche es nochmal."},"bookmark":{"addedFailure":"Fehler beim Hinzufügen.","removeFailure":"Lesezeichen konnten nicht entfernt werden.","bookmarksNotAllowed":"Manche Inhalte können nicht gemerkt werden.","failSearch":"Lesezeichen konnten nicht gefunden werden."},"interaction":{"failPostInteraction":"","failGetInteraction":""},"search":{"failedBookSearch":"Fehler beim Suchen von Buchtiteln.","failedSuggestion":"Fehler beim Suchen von Vorschlägen","failedToolSearch":"Fehler beim Suchen von Werkzeugen."},"augmented":{"failGetProduct":"Buchtitel konnte nicht gefunden werden.","failCover":"Cover-Bild konnte nicht gefunden werden."},"general":"Es ist ein Fehler aufgetreten.","serviceUnavailable":{"title":"Es tut uns leid, ein unbekannter Fehler ist aufgetreten. Bitte versuche es später erneut.","copy":"Der Service ist gerade nicht verfügbar. Bitte versuche es später erneut.","reload":"Neu laden"},"serviceTimeout":{"copy":"Leider wurde die Verbindung aufgrund eines Zeitüberschreitungsfehlers unterbrochen. Falls das Problem weiterhin besteht, überprüfe bitte deine Netzwerkverbindung."},"pageNotFound":{"title":"Seite nicht gefunden","link":"Zurück zur Übersicht"},"privateMode":{"title":"Es ist ein Fehler im Zusammenhang mit deinem Browser aufgetreten.","copy":"Bitte prüfe bei den Browser-Einstellungen, ob genug Speicherplatz zur Verfügung steht, die aktuellste Browser-Version genutzt wird oder durch einen Geräte-Administrator Einschränkungen bei der Nutzung vorliegen. Beachte zudem, dass die Nutzung der Lernplattform allango im privaten Modus nicht garantiert werden kann."},"dau":{"failedSaveVersion":"Fehler beim Speichern der Version.","failedFilterAsset":"Beim Filtern der Medieninhalte ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut.","failGetPdf":"PDF konnte nicht geladen werden. Bitte versuche es später erneut.","failGetDauLearningProgress":"Der Lernfortschritt konnte nicht geladen werden. Bitte versuche es später erneut.","failSetDauPageReadProgress":"Der Lesefortschritt der Seite konnte nicht gespeichert werden.","failSetChapterCompletion":"Das Kapitel konnt nicht abgeschlossen werden.","failedDeleteEdit":"Die Notiz konnte nicht gelöscht werden. Bitte versuche es später erneut."},"license":{"403":{"general":"Deine Lizenz für dieses Produkt ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","Augmented":"Deine Lizenz für dieses Produkt ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","Digital":"Deine Lizenz für die Digitale Ausgabe ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","UHB":"Deine Lizenz für das Digitale UnterrichtsPlus ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","Eksdi":"Deine Lizenz für das Digitale LernPlus ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut."},"failActivateLicense":"Fehler beim Aktivieren der Lizenz. Bitte versuche es später erneut.","failCheckLicense":"Fehler bei der Lizenzüberprüfung. Bitte versuche es später erneut.","errorCode":{"100":"Fehlercode: 100. Lizenzschlüssel ungültig. Bitte prüfe deine Eingabe und versuche es erneut.","101":"Fehlercode: 101. Lizenzschlüssel abgelaufen. Bitte erneuere deine Lizenz. ","102":"Fehlercode: 102. Maximale Anzahl an Benutzer/innen für diesen Lizenzschlüssel erreicht.","103":"Fehlercode: 103. Der Lizenzschlüssel wurde bereits in einem anderen Konto aktiviert und ist verbraucht.","104":"Fehlercode: 104. Die Lizenz passt nicht zur Benutzerrolle, mit der du angemeldet bist. Bitte prüfe deine Benutzerrolle in deinem Online-Kundenkonto oder wende dich an unseren Kundenservice.","105":"Fehlercode: 105. Der Lizenzschlüssel wurde bereits in diesem Konto aktiviert. Der Zugriff ist über die Bibliothek oder jeweilige Titelübersichtsseite möglich.","999":"Fehlercode: 999. Fehler bei der Lizenzüberprüfung. Bitte versuche es später erneut.","null":"Fehlercode: 000. Fehler bei der Lizenzüberprüfung. Bitte versuche es später erneut."}},"demo":{"failStartDemo":"Fehler beim Öffnen des Testzugangs. Bitte versuche es später erneut.","noLPlusDemoWithoutDau":"Das Digitale LernPlus kann nur zusammen mit einer gültigen Lizenz der Digitalen Ausgabe getestet werden. Bitte aktiviere zuerst die Digitale Ausgabe und versuche es erneut."},"bilo":{"noLicense":"Es liegt keine gültige Lizenz aus dem BILDUNGSLOGIN vor. Bitte prüfe deine Eingabe und versuche es erneut. ","notFound":"Der gewünschte Titel konnte nicht gefunden werden. Bitte versuche es später erneut.","general":"Es ist ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut."},"iqBuddy":{"getCollectionRequestFailed":"Beim Abfragen der Sammlungen ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut. {{code}}","requestFailed":"Bei der Übersetzung ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut. {{code}}","createCollectionFailed":"Bei der Erstellung ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut. {{code}}","addPhraseToCollectionFailed":"Beim Hinzufügen der Lernkarte ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut. {{code}}","textToSpeechFailed":"Bei der Vorlesefunktion ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut. {{code}}"},"select":{"multiselect":"Bitte markiere jeden Bereich einzeln.","tooLong":"Bitte markiere maximal 160 Zeichen auf einmal. "},"eksdi":{"failGetEksdiMap":"Die Aufgaben konnten leider nicht geladen werden. Bitte versuche es später erneut.","failGetBookSession":"Die Übung konnte leider nicht geladen werden. Bitte versuche es später erneut.","failResetBookSession":"Be
2im Zurücksetzen ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche die Übungen im Menü des Bereichs „Mein Lernfortschritt“ zurückzusetzen oder versuche es später erneut.","failGetLesson":"Die Aufgabe konnte leider nicht gefunden werden. Bitte versuche es später erneut.","failGetSolution":"Die Lösungen konnten leider nicht geladen werden. Bitte versuche es später erneut.","submitLesson":"Beim Übermitteln der Aufgabe ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut.","failResetLesson":"Beim Zurücksetzen ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut.","failGetSelftest":"Der Selbsttest konnte leider nicht geladen werden. Bitte versuche es später erneut.","failSubmitSelftest":"Beim Übermitteln des Selbsttest ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut.","failResetSelftest":"Beim Zurücksetzen ist leider ein unerwarteter Fehler aufgetreten. Bitte versuche es später erneut."}},"dau":{"learningprogress":{"title":"Mein Lernfortschritt","solvedAssignments":"Bearbeitete Aufgaben","readPages":"Gelesene Seiten","solvedAssignmentsPercentage":"{{percentage}} % gelöst","readPagesPercentage":"{{percentage}} % gelesen","totalPercentage":"{{pagesPercentage}} % gelesen und {{assignmentsPercentage}} % gelöst","infoReadPagesTitle":"Info zu gelesenen Seiten","infoReadPages":"Die Funktion „Gelesene Seiten“ zeigt dir, wie viele Seiten du in einem Kapitel oder im gesamten Buch bereits bearbeitet oder gelesen hast. Eine Seite gilt als gelesen, wenn du sie mindestens 3 Sekunden lang ansiehst.","filters":{"title":"Filtern der Ergebnisse","competences":"Zeige Kompetenz","edition":"Zeige Produktart","format":"Zeige Testart","reset":"Alle Filter zurücksetzen","editions":{"dau":"Digitale Ausgabe","uhb":"Unterrichtshandbuch","eksdi":"Digitales LernPlus"}},"reset":"Alle Übungen zurücksetzen","openAssessment":"Öffnet Übung und wechselt zur Seite {{page}}","chapterCompleted":"Kapitel vollständig durchgearbeitet","chapterCompletedInfo":"Wenn du ein Kapitel abschließt ist dies für die Lehrkräfte in deinen Klassen sichtbar."},"tools":{"shutters":{"top":"Oben","bottom":"Unten","topleft":"Oben links","topright":"Oben rechts","bottomleft":"Unten links","bottomright":"Unten rechts"},"config":{"fontSizeLabel":"Textgröße","fontSizeButtonAriaLabel":"Text-Einstellungen öffnen","colorChangeButtonAriaLabelOpen":"Farbwähler öffnen","colorChangeButtonAriaLabelClose":"Farbwähler schließen","delete":"Objekt löschen","confirm":"OK","strokeWidthLabel":"Stärke:","strokeWidthSubtstractAria":"Strichstärke reduzieren","strokeWidthInputAria":"Eingabe der Strichstärke","strokeWidthAddAria":"Strichstärke erhöhen","colorLabel":"Farbe:","currentColor":"Aktuelle Farbe:","color":{"black":"Schwarz","blue":"Blau","green":"Grün","red":"Rot","orange":"Orange","yellow":"Gelb","custom":"Benutzerdefinierte Farbe mit dem Farbcode: {{colorCode}}"}},"search":{"submit":"Suchen","searchAria":"In Dokument suchen","searchTooltip":"In Dokument suchen","placeholder":"Suche in Volltext","hits":"Treffer"},"text":{"placeholder":"Text...","ariaLabel":"Freitext-Eingabe im Textfeld"},"note":{"placeholder":"Notiz..."},"selection":{"drawAria":"Stift auswählen","rectangleAria":"Fläche einfügen","addCommentAria":"Notiz schreiben","coverPageAria":"Seitenmaskierung auswählen","cursorAria":"Auswahl verschieben","markAria":"Marker auswählen","addTextAria":"Freitext schreiben","eraserAria":"Radierer auswählen","translationAria":"Markieren und übersetzen","drawTooltip":"Stift auswählen","rectangleTooltip":"Fläche einfügen","addCommentTooltip":"Notiz schreiben","coverPageTooltip":"Seitenmaskierung auswählen","cursorTooltip":"Auswahl verschieben","markTooltip":"Marker auswählen","addTextTooltip":"Freitext schreiben","eraserTooltip":"Radierer auswählen","translationTooltip":"Markieren und übersetzen"},"assetButtons":{"audioTooltip":"Audios anhören","videoTooltip":"Videos abspielen","othersTooltip":"Weitere Medien ansehen","exerciseTooltip":"Übungen ansehen"},"moreToolsTooltip":"Weitere Werkzeuge anzeigen","closeToolsTooltip":"Werkzeugleiste au
2sblenden","openToolsTooltip":"Werkzeugleiste anzeigen","zoomOutAria":"verkleinern","zoomInAria":"vergrößern","toggleLayoutAria":"Seitenansicht ändern","toggleLayoutTooltip":"Seitenansicht ändern","toggleVersion":"Version anzeigen/verstecken","showToolsAria":"Zeichen-Werkzeuge anzeigen","dropdownAria":"Inhalt","fullscreenEnter":"Vollbild-Modus öffnen","fullscreenExit":"Vollbild-Modus schließen","removeOffline":"Offline entfernen","noAssetsAvailableForDownload":"Keine Medieninhalte zum Download auf dieser/diesen Seite/n vorhanden.","downloadPdf":"Digitale Ausgabe offline speichern","downloadAssets":"Medien zur Seite offline speichern","bookmarkPage":"Seite merken","bookmark":{"hoverTitle":"Aktuelle Version der Seite merken"},"assetFilterTooltip":"Medieninhalte suchen und filtern"},"layout":{"label":"Ansicht:","auto":"Automatisch"},"navigation":{"chapters":"Kapitel","page":"Seite","pages":"Seiten","attachment":"Medium","attachments":"Medien","noAttachments":"Zu dieser Seite gibt es keine passenden Medieninhalte.","filter":"Filter","learningProgressLink":"Mein Lernfortschritt","filters":{"apply":"Suchen","reset":"Zurücksetzen","format":"Zeige Medientyp","edition":"Zeige Produktart","totalResult":"Ergebnisse"},"content":{"dropdownTooltip":"Inhalte einblenden","page":"Medien zu dieser Seite","overlappingContent":"Übergreifende Medien"}},"version":{"about":{"title":"Info zu den Versionen","copy":"Sobald du die Bearbeitungen speicherst, wird eine neue Version der gesamten Digitalen Ausgabe angelegt. Die unbearbeitete Originalversion bleibt immer erhalten. \\n Eine Version umfasst alle Seiten einer Digitalen Ausgabe. Solange du die Version nicht wechselst, werden deine weiteren Bearbeitungen in die gleiche Version gespeichert.","ok":"OK"},"unsaved":{"title":"Ungesicherte Bearbeitungen verwerfen?","copy":"Wenn du jetzt die Bearbeitungsansicht schließt, gehen alle nicht gespeicherten Bearbeitungen verloren.","abort":"Abbrechen","dismiss":"Verwerfen"},"create":{"title":"Versionsnamen eingeben","placeholder":"Benutzerdefiniert","abort":"Abbrechen","save":"Speichern","validation":{"empty":"Bitte gib einen Versionsnamen ein."}},"created":{"title":"Version angelegt","copy":{"0":"Deine Version {{title}} wurde erfolgreich angelegt.","1":"Öffne die Inhaltsübersicht, um weitere Versionen zu erstellen, zwischen deinen Versionen zu wechseln und deine Versionen zu verwalten. Du kannst dort auch zum unbearbeiteten Original zurückwechseln."},"confirm":"Verstanden"},"checkmark":"Ausgewählte Version","manage":"Versionen verwalten","saveSuccess":"Version erfolgreich gespeichert","config":{"copy":"Neue Versionen sind Kopien der originalen und unbearbeiteten Digitalen Ausgabe. Wähle „Duplizieren“ über das Dreipunkt-Menü, um mit der Kopie einer bestehenden Version weiterzuarbeiten.","title":"Versionen verwalten","lastModified":"Zuletzt geändert","rename":"Umbenennen","delete":"Version {{versionName}} löschen","duplicate":"Duplizieren","confirm":"OK","close":"Schließen","renameConfirm":"OK","newversion":"Neue Version","error":{"missing-new-version-name":"Bitte gib einen Versionsnamen ein.","missing-version-name":"Bitte gib einen Versionsnamen ein. "},"screenReader":{"newVersion":"Neu Version {{name}} wurde erfolgreich erstellt.","deleteVersion":"Version {{name}} wurde erfolgreich gelöscht.","duplicateVersion":"Version {{name}} wurde erfolgreich dupliziert."}},"change":{"currentVersion":"(aktuelle Version)","title":"Version ändern","save":"Speichern","radioAria":"Version auswählen"},"originalVersion":"Original","originalVersionUnedited":"Original (unbearbeitet)","shared":"geteilt"},"license":{"title":"Aktiviere deine Digitale Ausgabe","pageTitle":"Aktiviere deine Digitale Ausgabe","text":"Bitte gib deinen Lizenzschlüssel ein, um eine Digitale Ausgabe zu aktivieren und nutzen zu können."},"resetAll":{"warningText":"Mit dem Zurücksetzen der Digitalen Ausgabe werden deine gesamten Fortschritte gelöscht und können nicht wiederhergestellt werden.","successText":"Deine Digitale Ausgabe wurde erfolgreich zurückgesetzt."}
2,"header":{"open":"Kopfzeile aufklappen","close":"Kopfzeile zuklappen"}},"pager":{"prevAria":"Vorige Seite","prevTooltip":"Vorige Seite","nextAria":"Nächste Seite","nextTooltip":"Nächste Seite","inputAria":"Seiten-Eingabe","page":"Seite","invalidPage":"Bitte gib eine gültige Seite ein.","screenReader":"Seite {{page}bookCoverLinkToM"},"license":{"success":"Lizenz erfolgreich aktiviert","successInfo":"Du findest dein aktiviertes Produkt auf der Titelübersichtsseite.","successPlural":"Die Lizenz für dein Paket wurde erfolgreich aktiviert.","successInfoPlural":"Du findest deine aktivierten Produkte auf der jeweiligen Titelübersichtsseite.","accept":"Verstanden","openBook":"Öffnen","inputError":"Bitte gib einen Lizenzschlüssel ein.","confirm":"Lizenz aktivieren","decline":"Abbrechen","text":"Möchtest du die Lizenz zu diesem Produkt jetzt aktivieren?","textPlural":"Möchtest du die Lizenz zu diesem Paket jetzt aktivieren?","textPluralWithPackageTitle":"Möchtest du die Lizenz zu \\"{{packageTitle}}\\" jetzt aktivieren?","placeholder":"z. B. EKS-XXXXXX-XXXX-XXXX-XXX","base-url":"https://hilfe.klett-sprachen.de/hc/de/articles/13015570332189","helpAria":"Hilfe zur Lizenzschlüssel-Eingabe aufrufen","inputBoxTitle":"Aktiviere deine Lizenz","inputBoxText":"Bitte gib einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","inputLabel":"Lizenzschlüssel","inputCta":"Aktivieren","inputHelp":"Wo finde ich meinen Lizenzschlüssel?","forceActivate":"Trotzdem aktivieren","buyAlternative":"Abbrechen","expired":"Lizenz abgelaufen","noLicense":"Inhalt ohne Lizenz nicht aufrufbar","warnings":{"noLicense":"Bitte aktiviere die entsprechende Lizenz, um Zugang zu diesem Inhalt zu erhalten.","uhbWithMissingDau":{"title":"Das Digitale UnterrichtsPlus enthält kein digitales Lehrwerk und ist nur in Kombination mit der Digitalen Ausgabe nutzbar!","subtitle":"Bitte aktiviere auch die Digitale Ausgabe allango oder bestelle diese ","linkText":"in unserem Webshop."},"eksdiWithMissingDau":{"title":"Das Digitale LernPlus enthält kein digitales Lehrwerk und ist nur in Kombination mit der Digitalen Ausgabe nutzbar!","subtitle":"Bitte aktiviere auch die Digitale Ausgabe allango oder bestelle diese ","linkText":"in unserem Webshop."}}},"maxProduct":{"noProductFound":"Kein Produkt zu dieser ID gefunden","backToOverview":"Zurück zur Übersicht","freeContent":"Medien zum Buch","freeContentDescription":"Audios, Videos und vieles mehr","openFreeContent":"Zu den Medien","forFree":"Kostenlos","digitalContent":"Digitale Ausgabe","digitalContentDescription":"Inklusive Audios, Videos und vielem mehr","openDigitalContent":"Zur Digitalen Ausgabe","lehrerwelt":"Digitales UnterrichtsPlus","lehrerweltDescription":"Zusatzinhalte für Unterrichtende. Nur in Kombination mit der Digitalen Ausgabe nutzbar.","openLehrerwelt":"Zum Unterrichtshandbuch","lernplus":"Digitales LernPlus","lernplusDescription":"Premium-Funktionen und Extras für Lernende. Nur in Kombination mit der Digitalen Ausgabe nutzbar.","openLernplus":"Zur Digitalen Ausgabe mit LernPlus","viewMore":"Mehr erfahren ...","languageLabel":"Sprache: ","licenceLabel":"Lizenzname: ","loginTeaser":"Die Digitale Ausgabe ist nur im angemeldeten Zustand und mit gültiger Lizenz verfügbar.","tool":"Tool","iqBuddy":"allango buddy Training öffnen","worksheetGenerator":{"buttonText":"Arbeitsblatt-Generator öffnen","link":"https://worksheet.allango.net/de/worksheet-generator"},"teachermatics":{"buttonText":"smartAssist (Beta) öffnen","link":"https://teachermatic.com/my-account/tm-redirect?init_tm_sso=1&org_id=311&lang=de"},"activitySet":{"buttonText":"Activity-Set öffnen"},"aria":{"bookCoverLinkToMaximalProductPage":"Zur Übersicht des Buches {{bookTitle}} wechseln","digitalContent":"Zur Digitalen Ausgabe","freeContent":"Zu den freien Inhalten","backToOverview":"Zurück zur Übersicht","iqBuddy":"Training öffnet in neuem Tab","worksheetGenerator":"Arbeitsblatt-Generator öffnet in neuem Tab","teachermatics":"smartAssist öffnet in neuem Tab","activitySet":"Activity-Set öffnet in neuem Tab"},"demo":{"text":"kostenlos testen","durationSingle":"Tag","durationPlural":"Tage","login":"Jetzt einloggen und "}
2,"license":{"validUntilLabel":"Gültig bis: ","invalidSince":"Abgelaufen am: ","error":"Lizenz kann nicht abgefragt werden","free":"Medien zum Buch","enterCode":"Jetzt freischalten","inputLabel":"Lizenzschlüssel","inputHelp":"Wo finde ich meinen Lizenzschlüssel?","inputCta":"Aktivieren","inputTitle":"Aktiviere deine Lizenz","inputText":"Bitte gib einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","teaserTitle":"Aktiviere deine Lizenz","teaserText":"Bitte gib nach dem Login einmalig deinen Lizenzschlüssel ein, um ein digitales Produkt zu aktivieren.","teaserCta":"Jetzt einloggen","licenseNeeded":"Lizenzpflichtig","buyEdition":{"dau":"Digitale Ausgabe kaufen","uhb":"Digitales UnterrichtsPlus kaufen","lplus":"Digitales LernPlus kaufen"}},"tabs":{"dau":"Digitale Ausgabe","uhb":"Unterrichtshandbuch","lplus":"LernPlus"}},"metaTitle":{"welcome":"Willkommen · allango","dashboard":"Übersicht · allango","discover":"Suche · allango","maxProduct":"{{title}} · allango","augmented":"{{title}} · ergänzende Inhalte · allango","dau":"{{title}} · Digitale Ausgabe · allango","uhb":"{{title}} · Unterrichtshandbuch · allango","lplus":"{{title}} · LernPlus · allango","offline":"Offline-Inhalte · allango","bookmark":"Lesezeichen · allango","agb":"Nutzungsbedingungen · allango","accessibility":"Barrierefreiheitserklärung · allango","imprint":"Impressum · allango","privacy":"Datenschutz · allango","lists":"Meine Listen · allango","settings":"Konto und Einstellungen · allango","userContent":"Meine Lesezeichen und Offline-Inhalte · allango","versionInfo":"Informationen zur Version · allango","library":"Bibliothek · allango","courses":"Meine Klassen · allango"},"consent":{"button":{"decline-all":"Alle ablehnen","config":"Anpassen","accept-all":"Alle akzeptieren","confirm":"Auswahl bestätigen"},"checkbox":{"necessary":"Notwendig","statistic":"Statistik"},"info":{"hideAria":"Information zuklappen","showAria":"Information aufklappen","store-title":"Informationen auf einem Gerät speichern und/oder abrufen (Notwendig)","store-body":"Um die Kernfunktionalität der Webseite zu gewährleisten, können Cookies, Geräte-Kennungen oder andere Informationen auf Ihrem Gerät gespeichert oder abgerufen werden.","statistic-title":"Inhaltsmessungen, Erkenntnisse über Zielgruppen und Produktentwicklung (Statistik)","statistic-body":"Diese Informationen ermöglichen es uns, die Nutzung der Website zu analysieren, um die Leistung zu messen und zu verbessern. Erkenntnisse über Zielgruppen, die die Inhalte betrachtet haben, können abgeleitet werden. Daten können verwendet werden, um Benutzerfreundlichkeit, Systeme und Software aufzubauen oder zu verbessern."},"explain":{"necessary":{"title":"Notwendig:","text":"Diese Cookies sind für den Grundbetrieb der Seite unbedingt notwendig, bspw. für die Medienwiedergabe oder das Login."},"statistic":{"title":"Statistik:","text":"Diese Cookies helfen uns, anhand der aufgerufenen Website-Inhalte zu erkennen, wie attraktiv diese für Sie sind. So können wir unsere Inhalte entsprechend optimieren. Wir erfassen an dieser Stelle nur anonymisierte Daten."}},"title":"Cookie-Einstellungen","pretext":"Wir, unsere <1>Partner</1> und <3>Drittanbieter</3> nutzen Trackingmechanismen (insb. <5>Cookies</5>), um unsere Webseiten für Sie optimal zu gestalten und fortlaufend zu verbessern.<br/><br/>Die Verarbeitungszwecke im Einzelnen sind:","maintext":"Durch das Klicken des \\"Alle akzeptieren\\"-Buttons stimmen Sie der Verarbeitung der auf Ihrem Gerät bzw. Ihrer Endeinrichtung gespeicherten Daten wie z.B. persönlichen Identifikatoren oder IP-Adressen für diese Verarbeitungszwecke gem. § 25 Abs. 1 TTDSG sowie Art. 6 Abs. 1 lit. a DSGVO zu. Über den Button \\"Konfigurieren\\" können Sie auswählen, welche Cookies Sie zulassen möchten. Sie können Ihre Auswahl zudem jederzeit unter \\"Cookie-Einstellungen ändern\\" am Seitenende der Website verändern. Weiterführende Details finden Sie in unserer <1>Datenschutzerklärung</1>
2. Beachten Sie auch unser <3>Impressum</3>.","customLogin":{"title":"Nutzungsbedingungen und Datenschutz","text":"Hast du die Zugangsdaten aus deinem Buch? <br/><br/> <bold>Bitte beachte:</bold> Wenn das Konto durch eine minderjährige Person genutzt werden soll, muss eine erziehungsberechtigte Person den Nutzungsbedingungen zustimmen. Erst dann wird der Zugang freigeschaltet.","ageCheckbox":"Ich bin volljährig oder handele als erziehungsberechtigte Person und akzeptiere die <1>Nutzungsbedingungen</1>.","dataCheckbox":"Die <1>Datenschutzhinweise</1> habe ich gelesen und zur Kenntnis genommen.","button":"Zugang freischalten"}},"uhb":{"tabopen":"Du hast das Unterrichtshandbuch bereits in einem anderem Tab/Fenster offen. Wechsle zu diesem Tab/Fenster.","license":{"title":"Aktiviere dein Digitales UnterrichtsPlus","text":"Bitte gib deinen Lizenzschlüssel ein, um ein Digitales UnterrichtsPlus zu aktivieren und nutzen zu können."}},"commercialTeaser":{"buttonBuy":"Jetzt kaufen","opensNewTab":"Öffnet in neuem Tab","buttonLater":"Vielleicht später","uhb":{"title":"Exklusiv für Unterrichtende","text":"Mit dem Digitalen UnterrichtsPlus lässt sich dein Unterricht noch zeitsparender und einfacher organisieren. <br/><br/>Es bietet dir praktische Zusatzinhalte zur Digitalen Ausgabe – seitengenau und offline aufrufbar.","alternativeTextWithoutAdditionalAssets":"Mit dem Digitalen UnterrichtsPlus lässt sich dein Unterricht noch zeitsparender und einfacher organisieren. Es bietet dir in einem separaten Browser-Tab ein passendes Unterrichtshandbuch zur Digitalen Ausgabe – immer seitengenau und kontextbezogen zum jeweiligen Kapitel.","buttonBuyAria":"Jetzt das Digitale UnterrichtsPlus kaufen","buttonOpen":"Zum Unterrichtshandbuch","license":{"title":"Hast du bereits ein Digitales UnterrichtsPlus?","text":"Bitte gib deinen Lizenzschlüssel ein, um dein Digitales UnterrichtsPlus aufzurufen."}},"dau":{"title":"Online lernen und unterrichten","text":"Mit der Digitalen Ausgabe steht dir das Buch digital zur Verfügung und du hast weitere Inhalte sofort griffbereit. <br/><br/>Profitiere von umfangreichen Bearbeitungsfunktionen und speichere deine Arbeitsstände in beliebig vielen Versionen.","additionalText":"Inklusive aller Medien zum Buch:","buttonBuyAria":"Jetzt kaufen","buttonOpen":"Zur Digitalen Ausgabe","license":{"title":"Hast du bereits eine Digitale Ausgabe?","text":"Bitte gib deinen Lizenzschlüssel ein, um deine Digitale Ausgabe aufzurufen."}},"eksdi":{"title":"Demnächst für Lernende erhältlich","text":"Hast du bereits eine Testlizenz für das Digitale LernPlus? Dann gib einfach deinen Lizenzschlüssel ein und starte direkt. Wenn nicht, kannst du dich jetzt schon freuen: Bald ist das Digitale LernPlus im Webshop erhältlich – passend zu deinem Buch.<br/><br/>Dich erwarten motivierende und abwechslungsreiche Funktionen, die sich deinem persönlichen Niveau und Lerntempo ideal anpassen. – Für unmittelbare, präzise und individuelle Unterstützung beim Lernen. Außerdem ist zu diesem Buch Folgendes enthalten:","additionalText":"commercialTeaser.eksdi.additionalText DE","alternativeTextWithoutAdditionalAssets":"commercialTeaser.eksdi.alternativeTextWithoutAdditionalAssets","buttonBuyAria":"Jetzt kaufen","buttonOpen":"Zur Digitalen Ausgabe mit LernPlus","license":{"title":"Hast du bereits ein Digitales LernPlus?","text":"Bitte gib deinen Lizenzschlüssel ein, um dein Digitales LernPlus aufzurufen."}}},"upCommercial":{"content":{"demo":"Testzugang","category":{"Test":{"singular":"Test","plural":"Tests"},"Lösung":{"singular":"Lösung","plural":"Lösungen"},"Unterrichtshandbuch":{"singular":"Unterrichtshandbuch","plural":"Unterrichtshandbücher"},"Karte":{"singular":"Landkarte","plural":"Landkarten"},"Kopiervorlage":{"singular":"Kopiervorlage","plural":"Kopiervorlagen"},"Tafelbild":{"singular":"interaktives Tafelbild","plural":"interaktive Tafelbilder"},"Transkription":{"singular":"Transkription","plural":"Transkriptionen"},"Transkript":{"singular":"Transkription","plural":"Transkriptionen"}
2,"Video":{"singular":"Video","plural":"Videos"},"Audio":{"singular":"Audio","plural":"Audios"},"Quelle":{"singular":"Quelle","plural":"Quellen"},"Hinweis":{"singular":"Hinweis","plural":"Hinweise"},"Wortschatz":{"singular":"Wortschatz","plural":"Wortschätze"},"Grammatik":{"singular":"Grammatik","plural":"Grammatiken"},"Landeskunde":{"singular":"Landeskunde","plural":"Landeskunde-Inhalte"},"Bildmaterial":{"singular":"Bildmaterial","plural":"Bildmaterialien"},"Arbeitsblatt":{"singular":"Arbeitsblatt","plural":"Arbeitsblätter"},"Spiel":{"singular":"Spiel","plural":"Spiele"},"Html":{"singular":"sonstiger Inhalt","plural":"sonstige Inhalte"},"Link":{"singular":"Link","plural":"Links"},"Pdf":{"singular":"PDF","plural":"PDFs"},"PDF":{"singular":"PDF","plural":"PDFs"},"File":{"singular":"Datei","plural":"Dateien"},"Bilderbuchkino":{"singular":"Bilderbuchkino","plural":"Bilderbuchkinos"},"Aufgabe":{"singular":"Aufgabe","plural":"Aufgaben"},"Übung":{"singular":"Übung","plural":"Übungen"}}},"teaser":{"title":"Exklusiv für Unterrichtende","text":"Mit dem Digitalen UnterrichtsPlus lässt sich dein Unterricht noch zeitsparender und einfacher organisieren. Es bietet dir praktische Zusatzinhalte zur Digitalen Ausgabe – seitengenau und offline aufrufbar.","button":"Jetzt kaufen","buttonAria":"Jetzt das Digitale UnterrichtsPlus kaufen","alreadyPurchasedText":"Erleichtere deine Unterrichtsorganisation ab sofort mit den seitengenauen Zusatzinhalten zu deiner Digitalen Ausgabe. Flexibel und schnell."}},"versionInfo":{"versionsInfoTitle":"Versionsinformation","allangoLanguage":"Deine auf allango eingestellte Sprache ist: ","browserLanguage":"Deine Browser-Sprache ist: ","userAgent":"Dein Browser-Header ist: ","frontend":"Deine Frontend-Version ist: ","backend":"Deine Backend-Version ist: ","marklogic":"Deine Datenspeicher-Version ist: ","releaseInfoTitle":"Update-Informationen vom 08.09.2026","releaseInfoText":"Erfahre hier regelmäßig alles über Neuheiten auf allango:<br/>","releaseInfoList":"<item>Für Unterrichtende wurden bei der Übersicht zum Lernfortschritt im Bereich „Meine Klassen“ weitere Optimierungen vorgenommen: Noch nicht bearbeitete Aufgaben und Kapitel werden jetzt mit einem Strich statt mit „0 %“ angezeigt. „0 %“ bedeutet hingegen weiterhin: Die Aufgabe wurde bearbeitet, aber nicht richtig gelöst. In der Kompetenzansicht kannst du jetzt zwischen „Bearbeitete Aufgaben“ und „Richtige Antworten“ wechseln. Die Bezeichnung „Gelöste Aufgaben“ wurde durch „Bearbeitete Aufgaben“ ersetzt. Hinweis: Bitte aktualisiere den Lernfortschritt der Klasse, damit alle Änderungen sichtbar werden.</item> <item>Der DSA-Transparenzbericht 2025 ist jetzt im Impressum verlinkt und kann dort heruntergeladen werden.</item> <item>Bei jedem lizenzierten Digitalen UnterrichtsPlus finden Unterrichtende auf der Titelübersichtseite ab jetzt einen Link zur neuen Funktion „Activity-Set“. Beim Öffnen des Activity-Sets wird die in allango ausgewählte Sprache übernommen.</item>"},"bilo":{"landing":{"pageTitle":"BILDUNGSLOGIN ","loadingText":"Deine Daten werden geprüft. Wir bitten um einen Moment Geduld."}},"ibis":{"pageTitle":"ibis acam – Login","loginFailedMessage":"Die Anmeldung konnte nicht abgeschlossen werden. Bitte versuche es erneut.","retryButton":"Erneut versuchen"},"eksdi":{"accessibility":{"playAudio":"Audio abspielen","dragAndDrop":{"onDragStart":"Verschiebbares Aufgabenitem {{activeValue}} aufgenommen.","onDragOver":"Verschiebbares Aufgabenitem {{activeValue}} wurde über Zielbereich {{overIndex}} bewegt.","onDragOverEmpty":"Verschiebbares Aufgabenitem {{activeValue}} befindet sich nicht länger über einem Zielbereich.","onDragEnd":"Verschiebbares Aufgabenitem  {{activeValue}} wurde fallen gelassen.","onDragEndOver":"Verschiebbares Aufgabenitem {{activeValue}} wurde über dem Zielbereich {{overIndex}} abgelegt.","onDragCancel":"Das Verschieben wurde abgebrochen. Verschiebbares Aufgabenitem {{activeValue}} wurde fallen gelassen.","screenReaderInstructions":"Um eine verschiebbares Aufgabenitem aufzunehmen, drücke die Leertaste oder die Eingabetaste. Verwende beim Ziehen die Pfeiltasten, um das Item in eine beliebige Richtung zu bewegen. Drücke erneut die Leertaste oder die Eingabetaste, um das Item an seiner neuen Position abzulegen, oder drücke die Escape-Taste, um den Vorgang abzubrechen."},"sorting":{"onDragStart":"Sortierbares Item an Position {{Position}} von {{itemsCount}} abgeholt.","onDragOver":"Sortierbares Item wurde an die Position {{position}} von {{itemsCount}} verschoben.","onDragEnd":"Sortierbares Item wurde an Position {{Position}} von {{itemsCount}}
2 abgelegt.","onDragCancel":"Verschieben wurde abgebrochen. Sortierbares Item wurde fallen gelassen.","screenReaderInstructions":"Um ein Item aufzunehmen, drücke die Leertaste oder die Eingabetaste. Verwende die Pfeiltasten nach oben und unten, um die Position des Items in der Liste zu aktualisieren. Drücke erneut die Leertaste oder die Eingabetaste, um das Item an seiner neuen Position abzulegen, oder drücke die Escape-Taste, um den Vorgang abzubrechen."}},"overview":{"linkToOverview":"Mein Lernfortschritt","completedExercises":"Bearbeitete Aufgaben","breadcrumb":"Digitales LernPlus","continueLesson":{"continue":"Jetzt fortsetzen","nothingToContinue":"Beginne deine erste Lektion","start":"Jetzt loslegen"},"learningProgress":{"title":"Zusammenfassung","completedLessons":"Bearbeitete Aufgaben","completedLessonsProgress":"{{doneNumber}} von {{totalNumber}}","resultAverage":"Richtige Antworten"},"chapterProgress":{"title":"Mein Lernfortschritt","chapters":"Kapitel","competencies":"Kompetenzen","chapter":"Kapitel","module":{"singular":"Modul","plural":"Module"},"taskGroup":{"singular":"Aufgabengruppe","plural":"Aufgabengruppen"},"didacticUnit":{"singular":"Didaktik-Einheit","plural":"Didaktik-Einheiten"},"topic":{"singular":"Aufgabe","plural":"Aufgaben"},"selftest":{"singular":"Selbsttest","plural":"Selbsttests"},"sprechen":"Sprechen","grammatik":"Grammatik","wortschatz":"Wortschatz","schreiben":"Schreiben","hören":"Hören","aussprache":"Aussprache","lesen":"Lesen","redemittel":"Redemittel","mediation":"Mediation","hör-seh-verstehen":"Hör-Seh-Verstehen"}},"breadcrumbs":{"exercise":"Aufgabe {{exerciseIndex}}"},"license":{"title":"Aktiviere dein Digitales LernPlus","pageTitle":"Aktiviere dein Digitales LernPlus","text":"Bitte gib deinen Lizenzschlüssel ein, um ein Digitales LernPlus zu aktivieren und nutzen zu können."},"helpAndTip":{"showButton":"Tipps anzeigen","hideButton":"Tipps ausblenden","title":"Tipps und Hilfe"},"readingText":{"showButton":"Lesetext anzeigen","hideButton":"Lesetext ausblenden"},"warning":{"pronounce":"Bitte starte deine Aufnahme, um die Aufgabe zu lösen.","openquestion":"Bitte gib etwas ein, um die Aufgabe zu lösen."},"progress":{"progress":"Fortschritt:"},"navigation":{"previous":"Vorherige Übung","next":"Nächste Übung","exercise":"{{exerciseIndex}} von {{total}}"},"result":{"celebration":"Gut gemacht!","completeLesson":"Überprüfen","correct":"Richtig!","label":"Auswertung","nextLesson":"Weiter","text":"{{correctAnswers}} von {{total}} richtig","wrong":"Falsch","selfEstimationTitle":"Bewerte dich selbst!","resetAllTasks":"Alle Aufgaben zurücksetzen"},"retrySingular":"Noch 1 Versuch","retryPlural":"Noch {{retries}} Versuche","reset":"Zurücksetzen","resetAll":{"buttonText":"Alles zurücksetzen","warningTitle":"Bist du dir sicher?","warningText":"Mit dem Zurücksetzen des Digitalen LernPlus werden deine gesamten Fortschritte gelöscht und können nicht wiederhergestellt werden.","warningButton":"Zurücksetzen","successText":"Dein Digitales LernPlus wurde erfolgreich zurückgesetzt."},"newContent":{"text":"Es ist eine neue, überarbeitete Version dieser Aufgabe verfügbar. Wähle „Aktualisieren“, um die neue Version zu laden. Deine Eingaben werden dabei zurückgesetzt.","textSelftest":"Es ist eine neue, überarbeitete Version dieses Tests verfügbar. Wähle „Aktualisieren“, um die neue Version zu laden. Deine Eingaben werden dabei zurückgesetzt.","button":"Aktualisieren","warningText":"Mit dem Aktualisieren der Aufgabe werden deine bisherigen Antworten gelöscht. Dieser Schritt kann nicht rückgängig gemacht werden.","warningTextSelftest":"Mit dem Aktualisieren des Tests werden deine bisherigen Antworten gelöscht. Dieser Schritt kann nicht rückgängig gemacht werden.","warningButton":"Aktualisieren"},"solution":{"label":"Lösung"},"alternativeSolution":{"label":"Auch richtig:","show":"Alternativlösung anzeigen","hide":"Alternativlösung ausblenden"},"task":{"completeLesson":"Überprüfen","label":"Aufgabe","showSolution":"Lösung anzeigen","hideSolution":"Lösung verbergen","leftAttempt":"Noch 1 Versuch","leftAttempts":"Noch {{submits}} Versuche"},"selftest":{"start":"Starten","navigateBack":"Zurück","navigateNext":"Weiter","totalResult":"Gesamtergebnis","completeSelftest":"Abschließen","completeSelftestInfoTitle":"Möchtest du den Test wirklich abschließen?","completeSelftestInfoText":"Nach dem Absc
2hluss sind keine weiteren Änderungen möglich und deine Ergebnisse werden berechnet. Du kannst den Test nach der Abgabe jedoch zurücksetzen und erneut versuchen.","congratulations":"Geschafft! Du hast den Test abgeschlossen.","viewResults":"Ergebnisse ansehen","learningProgress":"Mein Lernfortschritt","reset":"Test zurücksetzen","resetWarning":"Mit dem Zurücksetzen des Selbsttests wird dein Ergebnis gelöscht und kann nicht wiederhergestellt werden.","resetSuccessful":"Der Test wurde erfolgreich zurückgesetzt."},"gapmatch":{"words":"Wörter","sentences":"Sätze","audio":"Audios"},"inlinechoice":{"placeholder":"Auswählen"},"openQuestion":{"AI_GRAMMATIC":"Grammatik","AI_BASIC":"Allgemein","sampleSolution":"Musterlösung","mobileFeedback":"KI-Feedback","task":"Aufgabe","loadConnection":"Verbindung lädt ...","error":{"basic":"Es ist ein unerwarteter Fehler beim Empfangen des allgemeinen KI-Feedbacks aufgetreten. Bitte versuche es später erneut.","grammar":"Es ist ein unerwarteter Fehler beim Empfangen des KI-Feedbacks zur Grammatik aufgetreten. Bitte versuche es später erneut."},"nativeLanguage":"Antwort-Sprache:","lang":{"de":"Deutsch","en":"English","es":"Español","fr":"Français","it":"Italiano","ar":"العربية","ptBR":"Português do Brasil","prs":"دری","fa":"فارسی","el":"Ελληνικά","hi":"हिन्दी","ml":"മലയാളം","ps":"پښتو","pl":"Polski","pt":"Português","ru":"Русский","deCH":"Schwyzerdütsch","ti":"ትግርኛ","tr":"Türkçe","uk":"Українська","uz":"O\'zbekcha","vi":"Tiếng Việt"}},"pronounce":{"startRecording":"Aufnahme starten","stopRecording":"Aufnahme beenden","retryRecording":"Neu aufnehmen"},"noAnswer":"Du hast keine Antwort ausgewählt.","noEdit":"Du hast noch nichts bearbeitet.","notAllAnswers":"Du hast noch nicht alles markiert.","confirm":"OK"},"maintenance":{"title":"Kurze Unterbrechung für Verbesserungen","text":"Liebe Nutzerinnen und Nutzer, <br/>aufgrund von geplanten Wartungsarbeiten ist die Lernplattform allango heute am {{endtime}} kurzzeitig nicht verfügbar. Bitte besuche allango später erneut.<br/>Wir entschuldigen uns für eventuelle Unannehmlichkeiten und danken Dir herzlich für deine Geduld.<br/>Dein allango-Team","banner":"allango wird am {{starttime}} bis {{endtime}} aufgrund von Wartungsarbeiten kurzzeitig nicht verfügbar sein. Wir entschuldigen uns für eventuelle Unannehmlichkeiten."},"aiTeaser":{"loadingMessage":"Feedback wird erstellt","iqBuddy":{"teaserText":"KI-Übersetzung","iconLabel":"KI-Hinweis öffnen","title":"Hinweis zu KI-generierten Antworten","text":"Grundlage der kontextsensitiven Übersetzungen ist der Dienst von DeepL (www.deepl.com).<br/><br/>Der Verlag beeinflusst weder die KI-gestützten Übersetzungen der Dienstleister noch die dem Nutzer angezeigten Übersetzungen. <br/><br/>Bei dem Einsatz Künstlicher Intelligenz und standardisierter Prozesse sind falsche oder irreführende Ergebnisse grundsätzlich möglich. Der Verlag gewährleistet somit keine bestimmte Qualität der Übersetzung.","ok":"Verstanden"},"aiFeedback":{"teaserText":"Hinweis zu KI-generierten Antworten","iconLabel":"KI-Hinweis öffnen","title":"Hinweis zu KI-generierten Antworten","text":"Diese Antwort wurde mithilfe eines generativen KI-Tools erstellt. <br/><br/> Obwohl wir uns bemühen, dir die genauesten und zuverlässigsten Informationen bereitzustellen, kann die generative KI-Technologie gelegentlich Fehler oder Unvollständigkeiten aufweisen. <br/><br/> Der Verlag übernimmt keine Haftung für etwaige Ungenauigkeiten oder Missverständnisse, die aus der Nutzung dieser Antworten entstehen könnten. <br/><br/> Bitte achte zudem darauf, bei der Lösung von Aufgaben keine personenbezogenen Daten anzugeben.","ok":"Verstanden"},"pronounceLesson":{"teaserText":"Hinweis zu KI-generierten Antworten","iconLabel":"KI-Hinweis öffnen","title":"Hinweis zu KI-generierten Antworten","text":"Diese Antwort wurde mithilfe eines generativen KI-Tools erstellt. <br/><br/> Obwohl wir uns bemühen, dir die genauesten und zuverlässigsten Informationen bereitzustellen, kann die generative KI-Technologie gelegentlich Fehler oder Unvollständigkeiten aufweisen. <br/><br/> Der Verlag übernimmt keine Haftung für etwaige Ungenauigkeiten oder Missverständnisse, die aus der Nutzung dieser Antworten entstehen könnten. <br/><br/> Bitte achte zudem darauf, bei der Lösung von Aufgaben keine personenbezogenen Daten anzugeben.","ok":"Verstanden"}},"iqBuddy":{"logoText":"Übersetzungen im Kontext","createCollectionButtonText":"Neue Sammlung erstellen","invali
2dName":"Ungültiger Name für eine Sammlung. Bitte prüfe deine Eingabe und versuche es erneut.","namePlaceholder":"Name der Sammlung eingeben","nameLabel":"Name der Sammlung","addToCollection":"Zur Sammlung hinzufügen:","addToCollectionButtonText":"Sammeln","addCollectionSuccess":"Lernkarte erfolgreich zu Sammlung hinzugefügt","backToCollectionList":"Zurück zu deinen Sammlungen","jumpToCollection":"Meine Sammlungen","trainingLinkText":"Zu allango buddy","trainingInfo":{"iconAria":"Info zum Training anzeigen","title":"Hinweis zum Wortschatz-Training mit allango buddy","text":"Alle Übersetzungen, die du auf allango sammelst, werden in allango buddy gespeichert. Mit diesem Link öffnest du allango buddy in einem neuen Browser-Tab. Dort kannst du deine Lernkarten ansehen, bearbeiten und trainieren. <br/><br/>Du kannst die Funktion auch mit der allango-buddy-App für iOS oder Android nutzen – ganz einfach mit deinen bestehenden allango‑Zugangsdaten.","ok":"OK"},"yourTranslation":"Übersetzung anpassen","checkmark":"Ausgewählte Sprache","licence":{"teaser":{"title":"allango buddy: verstehen – sammeln –  trainieren","imgAlt":"Logo von allango buddy: Der Schriftzug \'allango\' in dunkelblauer Farbe und \'buddy\' in orange, in einer modernen, abgerundeten Schriftart. Das Logo enthält Sprechblasen als grafisches Element.","text":"Mit der Lizenz zu allango buddy kannst du deine Übersetzungen aus der Digitalen Ausgabe in eigenen Sammlungen speichern und mit Lernkarten gezielt deine Sprachlücken schließen.<br/><br/>Freue dich auf tägliche Herausforderungen: allango buddy generiert aus deinen Lernkarten personalisierte Übungen, um deinen Wortschatz spielerisch zu trainieren.<br/><br/>Zudem kannst du allango buddy als Plug-in für deinen Browser verwenden, um Texte aus dem Internet direkt im Kontext zu übersetzen und zu deinen Sammlungen hinzuzufügen.","textDemoExpired":"Deine Testlizenz für allango buddy ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","textLicenceExpired":"Deine Lizenz für allango buddy ist abgelaufen oder ungültig. Bitte prüfe deine Lizenz und versuche es erneut.","buttonLater":"Vielleicht später","buttonBuy":"Jetzt kaufen","buttonDemo":"Kostenlos testen","license":{"title":"Hast du allango buddy bereits?","text":"Bitte gib einmalig deinen Lizenzschlüssel ein, um allango buddy aufzurufen.","unauthed":"Bitte melde dich an, um diese Funktion nutzen zu können."}}},"limit":{"cardsLimit":{"title":"Wow – du hast schon 100 Übersetzungen als Lernkarten gesammelt!","text":"Damit hast du leider das kostenfreie Limit erreicht. Um weitere Lernkarten auf allango zu sammeln, benötigst du entweder das passende Digitale LernPlus zu dieser Digitalen Ausgabe – sofern verfügbar – oder ein unlimited-Abo in der allango-buddy-App. <br/><br/>Das Digitale LernPlus kannst du in unserem Webshop erwerben. Es ergänzt dein Lehrwerk um weitere personalisierte Lernmöglichkeiten und ist die perfekte Ergänzung für selbstständiges Üben und nachhaltigen Lernerfolg!","webshopText":" ","webshopLink":" ","list":"Alternativ kannst du direkt in der allango-buddy-App ein unlimited-Abo abschließen. Damit erhältst du zusätzliche Funktionen: <item>Lege unbegrenzt Lernkarten an – auf allango und in der App</item><item>Nutze in der App unbegrenzt die Foto-Übersetzung mit Objekterkennung</item><item>Lege allango buddy auf deinem mobilen Gerät als Standard-Übersetzer fest</item>"},"playStore":"Google Play Store","playStoreLink":"https://play.google.com/store/apps/details?id=net.allango.buddy.app&utm_source=emea_Med","appStore":"Apple App Store","appStoreLink":"https://apps.apple.com/de/app/allango-buddy/id6754596172","ok":"Ok"}},"meta":{"title":"allango – deine Lernplattform für Sprachen!","description":"Entdecke die Plattform zum Lernen und Unterrichten von Ernst Klett Sprachen. Jetzt viele Lehrwerke und Lektüren als Digitale Ausgabe testen!","keywords":"Lernplattform; Sprachen; lernen; unterrichten; Audios abspielen; Videos abspielen; Digitale Ausgaben; Digitale Lehrwerke; Lektüren; Ernst Klett Sprachen"}}'),Ee=JSON.parse('{"ui":{"save":"Save","abort":"Cancel","done":"Done","actionOfflineDisabled":"Actions not available offline","ariaClose":"Close","ariaClear":"Reset","ariaProfile":"Profile","ariaHelp":"Help","ariaLoading":"Loading page","linkTitle":"Links to: ","linkLabel":"Link","neutralFilter":"All","menuAria":"More","brand":"On the left is the Ernst Klett Sprachen logo. On the right is the allango logo.","brandDelta":"On the left is the DELTA Publishing logo. On the right is the allango logo.","darkModeTooltip":{"dark":"Dark mode","light":"Light mode"},"icons":{"menu":"Menu icon","arrowRight":"Arrow right icon","chevronRight":"Chevron right icon","draw":"Draw icon","rectangle":"Rectangle icon","addComment":"Add comment icon","addText":"add text icon","eraser":"Eraser icon","translation":"Translation Icon","coverPage":"Cover page icon","playlist":"List icon","download":"Download icon","version":"Version icon","bookmarkActive":"Bookmark active icon","bookmark":"Bookmark icon","sideNavShow":"Show sidenav icon","sideNavHide":"Close sidenav icon","close"
2:"Close icon","pause":"Pause icon","play":"Play icon","question":"Questionmark icon","homeActive":"Home active icon","home":"Home icon","filter":"Filter icon","myContentActive":"Content active icon","myContent":"Content Icon","playlistActive":"Playlist active icon","profile":"Profile icon","circlePlus":"Plus icon","edit":"Edit icon","chevronDown":"Chevron down icon","chevronUp":"Chevron up icon","subtract":"Subtract icon","clear":"Clear icon","repeat":"Repeat icon","bin":"Bin icon","changeShapeOutline":"Outline change icon","tools":"Tools icon","add":"Add icon","info":"Information","login":"Login icon","logout":"Logout icon","alertActive":"Alert active icon","checkmark":"Selected","select":"Select icon","key":"Key icon","arrowLeft":"Arrow left icon","lightmode":"Lightmode icon","darkmode":"Darkmode icon","rewind":"Rewind icon","forward":"Forward icon","sound":"Sound icon","soundMute":"Sound-mute icon","fullscreen":"Fullscreen icon","fullscreenExit":"Fullscreen-exit icon","bibliothek":"Library icon","bibliothekActive":"Library icon active","cursor":"Cursor icon","checkBulletPoint":"Tick icon bullet point","correctAnswer":"Correct icon","wrongAnswer":"Wrong icon","celebration":"Celebration icon","previous":"Previous icon","next":"Next icon","collectionAdd":"Add-to-collection icon","star":"Star icon","microphone":"Microphone icon","noAnswer":"No answer icon","conversation":"Conversation icon","graduation":"Graduation icon"}},"errorPage":{"title":"We apologise, an unknown error has occurred.","titleSuffix":"Please try again later.","error":"Error: ","iosErrorTitle":"The iOS version used is no longer supported.","iosError":"Please update your operating system to the latest iOS version or try again on another device.","repeatedDexie":"A problem with your local storage is preventing the action. Please check your storage and try again. If the problem persists, please contact our customer service.","tryAgain":"Try again","backHome":"Back to homepage"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"Français","it":"Italiano","pt":"Português","pt-br":"Português do Brasil (Beta)","tr":"Türkçe (Beta)","ru":"Русский – Бета","ua":"Українська – Бета","ae":"العربية - الإصدار التجريبي"},"breadcrumbs":{"ariaLabel":"Breadcrumb navigation"},"welcome":{"title":"Welcome to allango!","copy":"Discover our platform designed especially to make learning and teaching languages easy. You now have quick and easy access to a wide range of digital additions for your book and you can access and edit Digital Editions. Use allango’s practical functions and support to help organise your content flexibly and plan your lessons. Get started now!","dashboard":"Go to overview","augmented":"Go to library","modal":{"title":"Registration error","copy":"An error occurred on registration/logging in. Your role could not be transferred. Please try again. If the error occurs again, please contact support.","close":"Close","login":"Log in now"},"license":{"teaserTitle":"Activate your licence","teaserText":"After logging in, please enter your licence key once to activate a digital product.","teaserCta":"Log in now","inputTitle":"Activate your licence","inputText":"Please enter your license key once to activate a digital product.","inputLabel":"Licence key","inputHelp":"Where can I find my licence key?","inputCta":"Activate"},"search":{"title":"Find your book","label":"Please enter the book title, ISBN or NP number to access media content or Digital Editions.","placeholder":"For example, 978-3-12-501070-3"}},"protected":{"unauthTitle":"Login required","unauthCopy":"Please log in to be able to use this function.","unauthCta":"Log in now","unautorisedTitle":"Access denied: insufficient authorisations","unautorisedCopy":"Unfortunately, your user role does not have the rights to access this page."},"dashboard":{"title":"Hello","unauthTitle":"Overview","unauthCopy":"To use the overview, please log in. ","unauthCta":"Log in now","recent":"Continue from where you finished last time:","nointeractions":"Haven’t you used any content yet?","teaser-button":"Start discovering ","isbnLabel":"ISBN:","npLabel":"NP number:","myBooks":{"title":"Recently activated","all":"All of my books"},"license":{"teaserTitle":"Activate your licence","teaserText":"After logging in, please enter your licence key once to activate a digital product.","teaserCta":"Log in now","inputTitle":"Activate your licence","inputText":"Please enter your license key once to activate a digital product.","input
2Label":"Licence key","inputHelp":"Where can I find my licence key?","inputCta":"Activate"},"search":{"title":"Find your book","text":"Please enter the book title, ISBN or NP number to access media content or Digital Editions.","placeholder":"For example, 978-3-12-501070-3"}},"interactions":{"playlist":"List"},"menu":{"logout":"Log out","login":"Log in now","loggedInAs":"Logged in as","settings":"Account and settings"},"discover":{"title":"Search","searchLabel":"Please enter the book title, ISBN or NP number to access media content or Digital Editions.","lastSearch":"Latest search:","teaser":"Show all books","hideExpired":"Hide expired licences","result":{"resultsFor":"Results for","resultsForSingle":"Result for","resultsIn":"Results in {{tabName}}","resultsInSingle":"Result in {{tabName}}","books":"Book title","noItemsFound":"Could not find book title","noItemsFoundAdditionalText":"Unfortunately, your search did not return any results. Please check the spelling or try again with a different search term. <br /> Licence keys or codes cannot be entered into the search box. If you have any more questions, please visit our ","supportLinkText":"help centre.","supportLink":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"}},"library":{"title":"Library","myBooks":"My books","allBooks":"All books","allTools":"All tools","searchLabel":"Please enter the book title, ISBN or NP number to access media content or Digital Editions. ","subtitle":"Discover the content tailored to your class."},"augmented":{"description-label":"Description","level-label":"Level","offline":"Save offline","offline-remove":"Remove offline","offline-retry":"Error. Please try again.","offlineDisabled":"Offline saving is not supported by the iOS operating system (iPhone only). Please use a different device for the full range of functions.","download":"Download","downloadStarted":"Download started","downloadAria":"Download {{format}}","bookbookmarkedsuccess":"Book bookmarked!","bookbookmarkedfailure":"Could not add book to the bookmarked content!","pagebookmarkedsuccess":"Page bookmarked!","pagebookmarkedfailure":"Could not add page to the bookmarked content!","contentNavigation":{"pageLabel":"Go to page:","title":"Manual page selection","page":"Page","ponsLink":"Go to the PONS online dictionary","invalidPageNumber":"Invalid page number"},"contentToggle":"Content","licenceInfo":"I confirm that I am using this content with the print book, digital book, or copy I have accessed legally. This confirmation is required for licensing purposes.","licenceRead":"Read","noProductFound":"No content found","backToDiscover":"Discover content","noAssetsOnPage":"No content available on this page.","onlyTeacherAssets":"Content that is only relevant to teachers is available for this book.","onlyTeacherAssetsNotLoggedIn":"Log in now! Content that is only relevant to teachers is available for this book. It will be displayed after you log in."},"accesscode":{"title":"Content is code protected.","text":"Please enter the code from your book here.","enter":"Send","inputAria":"Code","page":"Page","error":"Invalid code. Please check that the code from your book has been entered correctly and try again."},"user-content":{"title":"My bookmarks","unauthTitle":"Bookmarks and offline content","nav":{"bookmarks":"Bookmarks","offline":"Offline content"},"offline":{"teaserTitle":"You haven’t saved any content offline yet.","hint1":"Please use the menu","hint2":"to make content available offline.","link":"Go to bookmarked content"}},"bookmark":{"preview":{"page":"Page","pages":"Page {{p1}} and {{p2}}","version":"Version","changeVersion":"Switch version"},"teaser":{"title":"Login required","copy":"Please log in to be able to use this function.","close":"Cancel","login":"Log in now"},"bulk":{"remove":"Remove","download":"Save offline"},"noData":"No bookmarked content found.","teaserTitle":"You haven’t bookmarked any content yet.","hint1":"Use the bookmark icon ","hint2":"  to locate content easily.","link":"Discover and bookmark content","removing":"removing...","removeSuccess":"Bookmark removed!","undo":"Undo","searchPlaceholder":"Search for content","add":"Add bookmark","removeSingle":"Remove bookmark","noNewBookmarks":"No new bookmarks to save.","addedSuccess":"Bookmark successfully added.","bookmarking":"adding...","removeBookmarkAria":"Remove bookmark","setBookmarkAria":"Add bookmark","removeAllBookmarksAria":"Remove all bookmarks","setAllBookmarksAria":"Add all bookmarks","savePageOffline":"Save page offline","assetsFound":"{{count}} Results"},"playlist":{"title":"My lists","newList":"New list","addEntry":"Add entry","notFoundTitle":"List could not be found. Please check your received lists to see if it has been deleted.","notAllowedTitle":"List is not allowed to be opened.","backToOverview":"Continue to my lists","addToPlaylist":"Add to {{playlistName}}","menu":{"delete":"Delete list","share":"Share list","customContent":"Add entry","storeOffline":"Save list offline","remove":"Remove list","copy":"Copy list","ariaLabel":"Open list menu"},"nav":{"private":"Edit","received":"Received","curated":"Create publisher list","curatedReceived":"From publisher"},"share":{"title":"Share list","generate":"Create link","copy":"Copy link","copied":"Link saved to clipboard.","revoke":"Revoke","warning":"List contains content that students cannot see."},"invalidName":"Invalid list name","namePlaceholder":"Enter list name","removeFromList":"Remove from list","addToList":"Add to list","screenReader":{"menu":"Menu with {{count}} entries","menuSingular":"Menu with one entry","formular":"Menu with ‘Create new list’ form"},"emptyListTitle":"Empty list","emptyListLink":{"0":"Tip: add content from your","1":"bookmarked content","2":"or","3":"discover new content"},"emptyListsTitle":"You don’t have any lists yet.","emptyListsCopy":"A list enables you to collect and order content. You can share your list with colleagues or students so you\'re ideally prepared for the class.","emptyListsLink":"Create your first list","emptyListsTitleShared":"You haven’t received any lists yet.","emptyListsCopyShared":"Receive lists from other users and use them as a template for your class.","emptyListsTitleCurated":"You haven’t created a publisher list yet.","emptyListsCopyCurated":"This tab is only visible internally to editorial teams.","emptyListsTitleCuratedShared":"You haven’t received a publisher list yet.","emptyListsCopyCuratedShared":"The editorial team uses publisher lists to provide selected content for a range of teaching topics. You will receive a link to a publisher list via our newsletter or for selected titles in the ‘Media’ section within allango.","emptyListOffline":"Go online to add the first content to your list.","entryForm":{"title":{"label":"Title (mandatory field)","placeholder":"Add title"},"comment":{"label":"Note","placeholder":"Add note","help":"Also visible to others after list is shared."},"description":{"label":"Description","placeholder":"Add description","help":"Also visible to others after list is shared."},"url":{"label":"Web link","placeholder":"For example https://www.my-weblink.com"},"required":"The title is necessary"},"addComment":"Edit","author":"by","creationDate":"Created on {{date}}.","modified":"Last modified on {{date}}.","shareButton":"Share","copyPlaylist":"Create copy","addFirstEntry":"First entry","addedReceived":"Shared list successfully received.","copySuccess":"Shared list successfully copied.","addedAssetMessage":"Content added to list.","updateTitle":"List name","editInfoBox":{"copy":"To edit a list that someone has shared with you, you first need to copy it.","button":"Create copy"},"editListNameAria":"Edit Listname","anonymsAuthor":"Anonymous","showCommentAria":"Edit Listentry Comment","reorderUpAria":"Move Listentry up","reorderDownAria":"Move Listenetry down","containsAudioVideo":"Audio and video content cannot be saved offline on this device. Only PDFs and interactive exercises can be saved. Please use a different device to access the full functionality.","containsNotDownloadableAsset":"List contains content that cannot be downloaded.","deleted":"deleted"},"course":{"title":"My classes","newCourse":"New class","downloadInstitute":"Download learning progress","downloadSuccess":"Download successful","downloadError":"Download failed","author":"by","creationDate":"Created on {{date}}.","modified":"Last updated on {{date}}.","tabs":{"overview":"Learning progress","members":"Learners","collaborators":"Co-teachers","books":"Books"},"overview":{"reload":"Refresh","progressionUpdateSlow":"The update is taking longer than expected. Please check back in a few minutes.","progressionUpdateComplete":"Your learning progress has been successfully updated.","progressionUpdateStillRunning":"The update is still running in the background. Please reload the page later to see the result.","noProgression":"There is currently no learning progress data available for this book.","noCompetencies":"This book does not contain any exercises linked to specific skills.","modified":"Learning progress last updated: {{date}}","bookSelectLabel":"Book","courseAverage":"Average class","chapters":"Contents","competencies":"Competencies","competency":"Competency","chapter":"Chapter/Exercise","solvedLessons":"Average exercises completed","correctAnswers":"Average correct answers","total":"Total","result":"Correct answers","edited":"Exercises completed","read":"Pages read","dataChangeScreenReader":"Data in table has changed to {{t
2ype}}","export":{"download":"Export","downloadError":"Download failed. Please try again later."},"filterInfo":{"accessibilityLabel":"View information about key metrics","title":"Note on key metrics","text":"Use the drop-down menu to select which metric you want to view regarding the class’s learning progress:<br/><br/>“Correct answers” shows the percentage of answers answered correctly.<br/>“Exercises completed” shows the percentage of exercises completed.<br/>“Pages read” shows the percentage of pages read. A page is considered read if you view it for at least 3 seconds. Reading progress can also be viewed for Digital Editions that do not contain interactive exercises.","ok":"OK"},"hideSelfEvaluation":"Hide self-assessment","chapterCompleted":"Chapter fully completed","accessibilityLabel":"Chapter completed"},"members":{"remove":"Delete learner","emptyTeaser":{"title":"There are no students in this class yet.","body":"Please invite students to join this class."}},"collaborators":{"remove":"Delete co-teacher","emptyTeaser":{"title":"There are currently no co-teachers in this class.","body":"You can invite co-teachers to join this class."}},"books":{"remove":"Remove book","addButton":"Add","emptyTeaser":{"title":"You have not added any books yet.","body":"You can add your activated books to this class."},"add":{"title":"Add to \\"{{title}}\\"","ariaLabel":"Book search","searchPlaceholder":"e.g. NP10050107000","search":"Search","noBookFound":"No suitable books found.","note":"Make sure you add exactly the books your students are using.","noteInfo":{"iconAria":"Show information on adding books","title":"Note on adding books","text":"The books in class management must match your learners’ books exactly. For example, whether it is a part of a series or a complete volume, such as a course book or workbook. The NP number helps you to identify the correct book unambiguously. <br/><br/>Teachers and learners each require a valid licence for every book added.","ok":"OK"},"abort":"Cancel","saveSingle":"{{count}} Add book","savePlural":"{{count}} Add books"}},"emptyTeaser":{"emptyCoursesLink":"Create a class","title":"You don’t have a class yet","body":"Class management allows you to see your students’ progress at a glance."},"menu":{"delete":"Delete class","deleteModal":{"warningTitle":"Are you sure?","warningTextCourse":"The class will be deleted and all assignments and invitations will be cancelled. Learners’ progress will be retained.","warningTextBook":"Remove book from class.","warningTextCollaborator":"Remove co-teacher from class.","warningTextMember":"Remove learner(s) from the class.","warningTextMembership":"Remove me from the class.","warningButton":"Delete"},"share":"Share class","ariaLabel":"Open class menu"},"join":{"joinSuccessful":"You have successfully joined the class.","leaveSuccessful":"You have been successfully removed from the class.","modal":{"joinCourseTitle":"Join the class ‘{{courseId}}’","joinCourseAgeConsent":"By joining, I confirm that I am over 16 years of age. If not, I have informed my parents or guardians and obtained their consent.","joinCourseDataConsent":"I agree that teachers and, where necessary, staff at my school or institution may view my learning progress.","joinCourseCopy":"Choose a display name so that your teacher can identify you. Please do not use your real name. You can change your display name at any time in the <settingsLink>Account and Settings</settingsLink> section.","cancel":"Cancel","confirm":"Join the class"}},"editCourseNameAria":"Edit class name","updateTitle":"Class name","namePlaceholder":"Enter class name","invalidName":"Invalid class name","share":{"title":{"members":"Share class with learners","collaborators":"Share class with co-teachers"},"copy":"Copy link","revoke":"Cancel","info":{"members":"As part of your school or institutional duties, please ensure that all invited learners are at least 16 years old or have the consent of a parent or guardian. By sharing the link/QR code, you confirm that these requirements are met."},"generate":"Create link","copied":"Link copied to clipboard.","button":"Invite"}},"navigation":{"ariaUserContent":"Navigation to the bookmarks and offline content","ariaSearch":"Navigation to book title search","ariaDashboard":"Navigation to overview","ariaPlaylist":"Navigation to the lists","ariaCourse":"Navigation to the classes","ariaBibliothek":"Navigation to the library","tooltipUserContent":"My bookmarks and offline content","tooltipSearch":"Search","tooltipDashboard":"Overview","tooltipPlaylist":"My lists","tooltipCourse":"My classes","tooltipBibliothek":"Library","tooltipOpenSideNavigation":"Open page navigation","tooltipCloseSideNavigation":"Close page navigation"},"pagination":{"elements":"Elements","previous":"Previous page","next":"Next page","ariaPage":"Navigate to page {{page}}"},"downloadManager":{"title":"Offline content","waiting":"Preparing to save.","downloading":"Saving…","cached":"Saved offline","notStored":"Not saved","success":"Content {{title}} cached successfully.","failure":"Caching error","bulkPrepare":"Preparing to save.","offlineHint":{"1":"Content stored offline is available under My bookmarks ","2":"> Offline content.","3":""},"offlineErrorHint":"Download complete. Some content couldn\'t be downloaded.","abortAll":"Cancel all","retryAssetAria":"Try again","removeAssetAria":"Remove c
2ontent","riskIconAria":"Warning","screenReaderStart":"Offline saving started","screenReaderEnd":"Offline saving finished"},"search":{"placeholder":"For example, 978-3-12-501070-3","placeholderAssets":"Enter media content","submitButton":"Search","ariaIcon":"Search","myBooks":"My resources","allBooks":"All books","allTools":"All tools"},"offline":{"offline":"Offline","bannerCopy":"You’re offline. Some functions aren’t available.","disabledSearch":"Search not available offline.","disabledAction":"Action not available offline."},"newContent":{"copy":"A new version is available. Select \\"Load\\" to update allango.","button":"Load","releaseInfoLinkText":"Go to update information"},"shared":"Shared","install":{"prompt":"Add allango to home screen?","dismiss":"Cancel","install":"Install"},"facet":{"bookPage":"Page","series":"Series","niveau":"Level","format":"Media type","bookTitle":"Book title","bookDescribedTitle":"Book title","bezeichnung":"Book title","isbn":"ISBN","type":"Product type"},"badge":{"teacher":"Only for teachers","accesslocked":"Code-protected","accessunlocked":"Code unlocked","dauaccesslocked":"Code-protected","demo":"Test access","uPlus":"Teaching Plus ","lernPlus":"Learning Plus","dau":"Digital Edition","resultPercentage":"{{percentage}} % correct","selfEvaluation":"Self-assessment","aiEvaluation":"AI feedback","test":"Test","interactiveVideo":"Interactive video"},"help":{"accesscode-where-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/360020867617-What-are-access-codes-and-where-do-I-enter-them-","accesscode-where-code":"Where can I find my code?","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"},"resourceList":{"bookmark-all":"Set bookmarks","pageFilterPrefix":"Page","page":"Page","sortPrefix":"Sort by: ","documentSingle":"Content","documentPlural":"Content","moreActions":"More actions","cancel":"Done","editList":"Edit list","mediaFilter":"Media type","bulkOffline":"Save offline","bulkSelect":"Select all","mediafilterAll":"All","noData":"No content found","selection":"Selection ({{count}})","sorters":{"titleAsc":"Book titles from A–Z","titleDesc":"Book titles from Z–A","timelinessAsc":"Oldest first","timelinessDesc":"Newest first","recentlyUsed":"Recently used","activation":"Recently activated"},"downloadAudios":{"buttonText":"Download audio package","infoIcon":"Open note about the audio package","infoModalTitle":"Note on the audio package","infoModalText":"The audio package contains all the audios for this book that can be downloaded. The download may take a few seconds.","ok":"Understood"}},"asset":{"audiosTextSingular":"Listen to 1 audio","audiosTextPlural":"Listen to {{number}} audios","videosTextSingular":"Play 1 video","videosTextPlural":"Play {{number}} videos","pdfsTextSingular":"Open 1 PDF","pdfsTextPlural":"Open {{number}} PDFs","htmlsTextSingular":"Open 1 other content","htmlsTextPlural":"Open {{number}} other contents","linksTextSingular":"Open 1 link","linksTextPlural":"Open {{number}} links","dauLinksTextSingular":"Open 1 reference","dauLinksTextPlural":"Open {{number}} references","filesTextSingular":"Open 1 file","filesTextPlural":"Open {{number}} files","daupagesTextSingular":"Open 1 page of the Digital Edition","daupagesTextPlural":"Open {{number}} pages of the Digital Edition","assessmentsTextSingular":"Open 1 exercise","assessmentsTextPlural":"Open {{number}} exercises","selftestsTextSingular":"Open 1 self-test","selftestsTextPlural":"Open {{number}} self-tests","audio":"audio","audios":"audios","audioPlay":"listen","video":"video","videos":"videos","videoPlay":"watch","pdf":"PDF","pdfs":"PDFs","pdfPlay":"open","html":"other content","htmls":"other content","htmlPlay":"open","iframe":"Interactive content: {{title}}","externalLink":"External link","link":"link","links":"links","linkPlay":"open","dauLink":"reference","dauLinks":"references","dauLinkPlay":"open","dauLinkLabel":"page","uhbLinkLabel":"teacher’s book page ","file":"Another file","files":"Other files","filePlay":"open","daupage":"page of Digital Edition","daupages":"pages of Digital Edition","uhbpage":"page of Teaching Plus","uhbpages":"pages of Teaching Plus","others":"View more media","assessment":"Exercise","asse
2ssments":"Exercises","selftest":"Self-test","selftests":"Self-tests","menu":{"ariaLabel":"Content menu"}},"settings":{"title":"My allango account","personalTitle":"Personal information","email":"Email","name":"Name","username":"Display name","ariaUsername":"Change display name","anonymsAuthor":"Anonymous","ssoId":"SSO-ID","security":"Security","password":"Password","changePassword":"Change Password","ariaCancel":"Cancel","loading":"Saving...","success":"Settings saved successfully.","courses":"Classes","leaveCourse":"Remove class","settings":"Settings","language":"Language","roles":"Authorisation roles","rolenames":{"student":"Student","teacher":"Tutor","schooladmin":"Institution administrator","eks_content_admin":"EKS content administrator","admin":"Master administrator","editor":"Editor"}},"footer":{"privacy":"Privacy policy","imprint":"Legal notice","terms-of-use":"Terms of use","cookie-consent":"Change cookie settings","copyright":"Copyright © Ernst Klett Sprachen GmbH {{year}}","version":"Version information","accessibility":"Accessibility statement","subscription":"Cancel subscription","subscription-url":"https://subscription.allango.net/cancel-subscription","subscription-url-delta":"https://subscription.allango.net/cancel-subscription"},"featureTeaser":{"playlist":{"title":"My lists","subtitle":"Use individual lists to organise content","copy":"Create new lists for your class content. Give each list a name and put them in the order you need them. Add links and share your lists.","cta":"Log in and get started"},"favourits":{"title":"My bookmarks","subtitle":"Know where to find the content you need","copy":"Bookmark your favourite content and use filters to find it quickly. Access your content whenever you need it, even if you are offline.","cta":"Log in and get started"}}
2,"pdfplayer":{"save":"Save","close":"Close","page":"Page","version":"Version:","originalVersion":"Original (unedited)","zoomInAria":"Zoom in on PDF","zoomOutAria":"Zoom out on PDF","nextPageAria":"Next PDF page","pageInputAria":"PDF page navigation","prevPageAria":"Previous PDF page","zoomSizeOriginal":"Original","zoomAria":"Select zoom size. Current value: {{value}}","pageFrom":"from"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"Close full screen mode","showInFullscreenAria":"Open full screen mode"},"minimize":"Minimise","maximize":"Maximise","pauseAria":"Pause","playAria":"Play","forwardAria":"Fast forward 10 seconds","rewindAria":"Rewind 10 seconds","previousAria":"Previous media content","nextAria":"Next media content","sliderInputAria":"Progress slider","taskMarker":"Task at {{time}}","unmute":"Turn sound on","mute":"Turn sound off","playbackRateChangeAria":"Select playback speed","playbackRateAria":"Playback speed {{rate}}","showTrackAria":"Hide subtitles","hideTrackAria":"Show subtitles","showListAria":"Show list","hideListAria":"Hide list","subtitles":"Subtitles"},"error":{"playlist":{"failCreate":"Could not create list.","failRename":"Could not rename list.","failModify":"Could not amend list.","failAddEntry":"Could not add entry to the list.","failAddAsset":"Could not add content to the list.","failDelete":"Could not delete list.","playlistNotFound":"Could not find list.","failCopy":"Could not copy list.","failDeleteShareLink":"Could not delete list-sharing link.","failRemoveReceived":"Could not remove list.","noResponse":"Service not responding!","failCopyToClipboard":"Error copying link."},"course":{"courseNotFound":"Class could not be found.","failCreate":"Class could not be created.","failRename":"Class could not be renamed.","failModify":"Class could not be edited.","failDelete":"Class could not be deleted.","failJoin":"Unable to join the class.","failLeave":"Failed to leave the class.","removeFromCourse":"Unable to remove the person from the class.","failShareCourse":"Unable to share the class.","failCopyToClipboard":"Unable to copy the class link.","addToBookList":"Unable to add the book to the class.","removeFromBookList":"Unable to remove the book from the class.","progressionNotFound":"Unable to load learning progress.","failProgressionCreate":"Unable to create learning progress."},"settings":{"failSave":"Error saving settings.","failGetSettings":"Could not load settings."},"asset":{"failGetPdf":"Could not load PDF.","failLoadMedium":"Could not load medium.","failHtmlLoad":"Could not load interactive exercise.","failGetAccess":"Could not access content.","failGetAsset":"Could not find content.","unauthorized":"Activate your Digital Edition: please enter your licence key to be able to access and use a Digital Edition.","licenseHelp":"Where can I find my licence key?","licenseHelpLink":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","cacheDisabled":"Please note that web links contained in lists cannot be saved offline.","downloadAccessCodeProtected":"Some content is code-protected and can only be stored offline when you activate the code.","invalidAccessCode":"Invalid code. Please check that the code from your book has been entered correctly and try again."},"bookmark":{"addedFailure":"Adding error.","removeFailure":"Could not remove bookmarks.","bookmarksNotAllowed":"Some content cannot be bookmarked.","failSearch":"Could not find bookmarks."},"interaction":{"failPostInteraction":"","failGetInteraction":""},"augmented":{"failGetProduct":"Could not find book title.","failCover":"Could not find cover image."},"search":{"failedBookSearch":"Error searching book titles.","failedSuggestion":"Error searching recommendations.","failedToolSearch":"Error searching for tools."},"general":"An error has occurred.","serviceUnavailable":{"title":"We apologise, an unknown error has occurred. Please try again later.","copy":"The service is currently unavailable. Please try again later.","reload":"Reload"},"serviceTimeout":{"copy":"Unfortunately, the connection was interrupted due to a timeout error. If the problem persists, please check your network connection. "},"pageNotFound":{"title":"Page not found","link":"Return to overview"},"privateMode":{"title":"An error has occurred in connection with your browser.","copy":"Please check your browser settings to ensure that you have enough memory available, are using the latest browser version or if there are any restrictions on use imposed by a device administrator. Please also note that the use of the allango learning platform in private mode cannot be guaranteed."},"dau":{"failedSaveVersion":"Error saving version.","failedFilterAsset":"Unfortunately, an unexpected error occurred while filtering the media content. Please try again later.","failGetPdf":"PDF could not be loaded. Please try again later.","failGetDauLearningProgress":"The learning status could not be loaded. Please try again later.","failSetDauPageReadProgress":"The reading progress of the page could not be saved.","failSetChapterCompletion":"It was not possible to complete the chapter.","failedDeleteEdit":"The note could not be deleted. Please try again later."},"license":{"403":{"general":"Your licence for this product has expired or is invali
2d. Please check your licence and try again.","Augmented":"Your licence for this product has expired or is invalid. Please check your licence and try again.","Digital":"Your licence for the digital edition has expired or is invalid. Please check your licence and try again.","UHB":"Your licence for the Digital Teaching Plus has expired or is invalid. Please check your licence and try again.","Eksdi":"Your licence for Digital Learning Plus has expired or is invalid. Please check your licence and try again."},"failActivateLicense":"Error activating licence. Please try again later.","failCheckLicense":"Error verifying licence.  Please try again later.","errorCode":{"100":"Error code: 100. Invalid licence key. Please check your input and try again.","101":"Error code: 101. Licence key expired. Please renew your licence.","102":"Error code: 102. Maximum number of users reached for this licence key.","103":"Error code: 103. The licence key has already been activated in another account and has been used up.","104":"Error code: 104. The licence is not compatible with the user role you are logged on as. Please check your user role in your online customer account or contact our customer service.","105":"Error code: 105. The licence key has already been activated in this account. Access is possible via the library or the respective title overview page.","999":"Error code: 999. Error verifying licence. Please try again later.","null":"Error code: 000. Error verifying licence. Please try again later."}},"demo":{"failStartDemo":"Error opening test access. Please try again later.","noLPlusDemoWithoutDau":"Digital Learning Plus can only be tested in conjunction with a valid licence for the Digital Edition. Please activate the Digital Edition first and try again."},"bilo":{"noLicense":"No valid licence from BILDUNGSLOGIN is available. Please check your input and try again.","notFound":"The requested title could not be found. Please try again later.","general":"An unexpected error has occurred. Please try again later."},"iqBuddy":{"getCollectionRequestFailed":"Unfortunately, an unexpected error occurred while querying the collections. Please try again later. {{code}}","requestFailed":"Unfortunately, an unexpected error occurred during translation. Please try again later. {{code}}","createCollectionFailed":"Unfortunately, an unexpected error occurred during creation. Please try again later. {{code}}","addPhraseToCollectionFailed":"Unfortunately, an unexpected error occurred while adding the flashcard. Please try again later. {{code}}","textToSpeechFailed":"Unfortunately, an unexpected error has occurred with the read-aloud function. Please try again later. {{code}}"},"select":{"multiselect":"Please mark each area separately.","tooLong":"Please mark a maximum of 160 characters at a time."},"eksdi":{"failGetEksdiMap":"The tasks could not be loaded. Please try again later.","failGetBookSession":"Sorry, the exercise could not be loaded. Please try again later.","failResetBookSession":"Unfortunately, an unexpected error occurred while resetting. Please try resetting the exercises in the menu of the ‘My progress’ section or try again later.","failGetLesson":"Sorry, the task could not be found. Please try again later.","failGetSolution":"Unfortunately the solutions could not be found. Please try again later.","submitLesson":"Unfortunately, an unexpected error occurred while submitting the task. Please try again later.","failResetLesson":"Unfortunately, an unexpected error occurred while resetting. Please try again later.","failGetSelftest":"Unfortunately, the self-test could not be successful. Please try again later.","failSubmitSelftest":"Unfortunately, an unexpected error occurred while submitting the self-test. Please try again later.","failResetSelftest":"Unfortunately, an unexpected error occurred while resetting. Please try again later."}},"dau":{"learningprogress":{"title":"My learning progress","solvedAssignments":"Exercises completed","readPages":"Pages read","solvedAssignmentsPercentage":"{{percentage}} % solved","readPagesPercentage":"{{percentage}} % read","totalPercentage":"{{pagesPercentage}}% read and {{assignmentsPercentage}}% completed","infoReadPagesTitle":"Info on pages read","infoReadPages":"The ‘Pages read’ function shows you how many pages you have already worked on or read in a chapter or in the entire book. A page is considered read if you look at it for at least 3 seconds.","filters":{"title":"Filter the results","competences":"Show competence","edition":"Show product type","format":"Show test type","reset":"Reset all filters","editions":{"dau":"Digital Edition","uhb":"Teacher’s book","eksdi":"Digital Learning Plus"}},"reset":"Reset all exercises","openAssessment":"Opens exercise and switches to page {{page}}","chapterCompleted":"Chapter completed","chapterCompletedInfo":"When you complete a chapter, this will be visible to the teachers in your classes."},"tools":{"shutters":{"top":"Top","bottom":"Bottom","topleft":"Top left","topright":"Top right","bottomleft":"Bottom left","bottomright":"Bottom right"},"config":{"fontSizeLabel":"Text size","fontSizeButtonAriaLabel":"Open text settings","colorChangeButtonAriaLabelOpen":"Open colour picker","colorChangeButtonAriaLabelClose":"Close colour picker","delete":"Delete object","confirm":"OK","strokeWidthLabel":"Width: ","strokeWidthSubtstractAria":"Reduce line width","strokeWidthInputAria":"Input line width","strokeWidthAddAria":"Increase line width","colorLabel":"Colour: ","currentColor":"Current colour:","color":{"black":"Black","blue":"Blue","green":"Green","red":"Red","orange":"Orange","yellow":"Yellow","custom"
2:"Custom colour with the colour code: {{colorCode}}"}},"search":{"submit":"Search","searchAria":"Search in document","searchTooltip":"Search in document","placeholder":"Search in full text","hits":"Results"},"text":{"placeholder":"Text","ariaLabel":"Free-text input in text field"},"note":{"placeholder":"Note..."},"selection":{"drawAria":"Select pen","rectangleAria":"Add area","addCommentAria":"Write note","coverPageAria":"Select page masking","cursorAria":"Move selection","markAria":"Select marker","addTextAria":"Write free text","eraserAria":"Select eraser","translationAria":"Mark and translate","drawTooltip":"Select pen","rectangleTooltip":"Add area","addCommentTooltip":"Write comment","coverPageTooltip":"Select page masking","cursorTooltip":"Move selection","markTooltip":"Select marker","addTextTooltip":"Write free text","eraserTooltip":"Select eraser","translationTooltip":"Mark and translate"},"assetButtons":{"audioTooltip":"Listen to audios","videoTooltip":"Play videos","othersTooltip":"Show more media","exerciseTooltip":"Show exercises"},"moreToolsTooltip":"Show more tools","closeToolsTooltip":"Hide toolbar","openToolsTooltip":"Show toolbar","zoomOutAria":"Zoom out","zoomInAria":"Zoom in","toggleLayoutAria":"Change page view","toggleLayoutTooltip":"Change page view","toggleVersion":"Show/hide version","showToolsAria":"Show symbol tools","dropdownAria":"Content","fullscreenEnter":"Open full screen mode","fullscreenExit":"Close full screen mode","removeOffline":"Remove offline","downloadPdf":"Save Digital Edition offline","downloadAssets":"Save media to the page offline","noAssetsAvailableForDownload":"No media content available for download on this/these page/s.","bookmarkPage":"Bookmark page","bookmark":{"hoverTitle":"Bookmark current version of the page"},"assetFilterTooltip":"Search and filter media content"},"layout":{"label":"View:","auto":"Automatically"},"navigation":{"chapters":"Chapters","page":"Page","pages":"Pages","attachment":"Medium","attachments":"Media","noAttachments":"There is no suitable media content for this page.","filter":"Filters","learningProgressLink":"My learning progress","filters":{"apply":"Search","reset":"Reset","format":"Show media type","edition":"Show product type","totalResult":"Results"},"content":{"dropdownTooltip":"Show content","page":"Media for this page","overlappingContent":"General media"}},"version":{"about":{"title":"Info about the versions","copy":"A new version of the entire Digital Edition is created as soon as you save the edits. The unedited original version is always retained. \\n A version comprises all pages of a Digital Edition. Your further edits are saved in the same version unless you switch versions.","ok":"OK"},"unsaved":{"title":"Discard unsaved changes?","copy":"Closing the editing view now will cause all unsaved edits to be lost.","abort":"Cancel","dismiss":"Undo"},"create":{"title":"Input version name","placeholder":"User-defined","abort":"Cancel","save":"Save","validation":{"empty":"Please enter a version name."}},"created":{"title":"Version created","copy":{"0":"Your version {{title}} was created successfully.","1":"Open the content overview to create additional versions, switch between your versions and manage your versions. You can also revert back to your unedited original there."},"confirm":"Understood"},"checkmark":"Selected version","manage":"Manage versions","saveSuccess":"Version saved successfully","config":{"copy":"New versions are copies of the original and unedited Digital Edition. As soon as you have created a new version, you can also duplicate it. To do so, select “Duplicate” via the three-dot menu to continue working with the copy of an existing version.","title":"Manage versions","lastModified":"Last modified","rename":"Rename","delete":"Delete version {{versionName}}","duplicate":"Duplicate","confirm":"OK","close":"Close","renameConfirm":"OK","newversion":"New version","error":{"missing-new-version-name":"Please enter a version name.","missing-version-name":"Please enter a version name."},"screenReader":{"newVersion":"New version {{name}} has been successfully created.","deleteVersion":"Version {{name}} has been successfully deleted.","duplicateVersion":"Version {{name}} has been successfully duplicated."}},"change":{"currentVersion":"(current version)","title":"Change version","save":"Saving","radioAria":"Select version"},"originalVersion":"Original","originalVersionUnedited":"Original (unedited)","shared":"shared"},"license":{"title":"Activate your Digital Edition","pageTitle":"Activate your Digital Edition","text":"Please enter your licence key in order to access and use a Digital Edition."},"resetAll":{"warningText":"Resetting the Digital Edition will delete all your progress and cannot be restored.","successText":"Your Digital Edition has been successfully reset."}
2,"header":{"open":"Open header","close":"Close header"}},"pager":{"prevAria":"Previous page","nextAria":"Previous page","prevTooltip":"Next page","nextTooltip":"Next page","inputAria":"Input page","page":"Page","invalidPage":"Please enter a valid page.","screenReader":"Page {{page}}"},"license":{"success":"Licence successfully activated.","successInfo":"You will find your activated product on the title overview page.","successPlural":"Licence for your package successfully activated.","successInfoPlural":"You will find your activated products on the related title overview page.","accept":"Understood","openBook":"Open","inputError":"Please enter a licence key.","confirm":"Activate licence","decline":"Cancel","text":"Would you like to activate your licence for this product now?","textPlural":"Would you like to activate your licence for this package now?","textPluralWithPackageTitle":"Would you like to activate the licence for \\"{{packageTitle}}\\" now?","placeholder":"For example, EKS-XXXXXX-XXXX-XXXX-XXX","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product-","helpAria":"Get help on inputting the licence key","inputBoxTitle":"Activate your licence","inputBoxText":"Please enter your license key once to activate a digital product.","inputLabel":"Licence key","inputCta":"Activate","inputHelp":"Where can I find my licence key?","forceActivate":"Activate anyway","buyAlternative":"Cancel","expired":"Licence expired","noLicense":"Content cannot be accessed without a licence","warnings":{"noLicense":"Please activate the relevant licence to access this content.","uhbWithMissingDau":{"title":"The Digital Teaching Plus does not contain a digital course book and can only be used in combination with the Digital Edition!","subtitle":"Please also activate the Digital Edition allango or order it ","linkText":"in our webshop."},"eksdiWithMissingDau":{"title":"The Digital Learning Plus does not contain a digital course book and can only be used in combination with the Digital Edition!","subtitle":"Please also activate the allango Digital Edition or order it","linkText":"in our webshop."}}},"maxProduct":{"noProductFound":"No product found for this ID","backToOverview":"Return to overview","freeContent":"Media for this book","freeContentDescription":"Audio clips, videos and much more","openFreeContent":"Go to the media","forFree":"Free","digitalContent":"Digital Edition","digitalContentDescription":"Including audio clips, videos and much more","openDigitalContent":"Go to the Digital Edition","lehrerwelt":"Digital Teaching Plus","lehrerweltDescription":"Supplementary content for teachers. Can only be used in combination with the Digital Edition.","openLehrerwelt":"Go to the teacher’s book","lernplus":"Digital Learning Plus","lernplusDescription":"Premium features and extras for learners. Can only be used in combination with the Digital Edition.","openLernplus":"Go to the Digital Edition with Learning Plus","viewMore":"Find out more …","languageLabel":"Language: ","licenceLabel":"Licence name: ","loginTeaser":"The Digital Edition is only available when logged on and with a valid licence.","tool":"Tool","iqBuddy":"Open allango buddy training","worksheetGenerator":{"buttonText":"Open worksheet generator","link":"https://worksheet.allango.net/en/worksheet-generator"},"teachermatics":{"buttonText":"Open smartAssist (Beta)","link":"https://teachermatic.com/my-account/tm-redirect?init_tm_sso=1&org_id=311&lang=en"},"activitySet":{"buttonText":"Open activity set"},"aria":{"bookCoverLinkToMaximalProductPage":"Go to overview of the book {{bookTitle}}","digitalContent":"Go to the Digital Edition","freeContent":"Go to free content","backToOverview":"Return to overview","iqBuddy":"Training opens in a new tab","worksheetGenerator":"Worksheet generator opens in a new tab","teachermatics":"smartAssist opens in a new tab","activitySet":"Activity set opens in a new tab"},"demo":{"text":"test for free","durationSingle":"day","durationPlural":"days","login":"Login now and "}
2,"license":{"validUntilLabel":"Valid until:","invalidSince":"Expired on:","error":"Licence cannot be queried","free":"Media for this book","enterCode":"Unlock now","inputLabel":"Licence key","inputHelp":"Where can I find my licence key?","inputCta":"Activate","inputTitle":"Activate your licence","inputText":"Please enter your license key once to activate a digital product.","teaserTitle":"Activate your licence","teaserText":"After logging in, please enter your licence key once to activate a digital product.","teaserCta":"Log in now","licenseNeeded":"Licence required","buyEdition":{"dau":"Buy Digital Edition","uhb":"Buy Digital Teaching Plus","lplus":"Buy Digital Learning Plus"}},"tabs":{"dau":"Digital Edition","uhb":"Teacher’s book","lplus":"Learning Plus"}},"metaTitle":{"welcome":"Welcome · allango","dashboard":"Overview · allango","discover":"Search · allango","maxProduct":"{{title}} · allango","augmented":"{{title}} · additional content · allango","dau":"{{title}} · Digital Edition · allango","uhb":"{{title}} · Teacher’s book · allango","lplus":"Learning Plus · allango","offline":"Offline content · allango","bookmark":"Bookmarks · allango","agb":"Terms of use · allango","accessibility":"Accessibility statement · allango","imprint":"Legal notice · allango","privacy":"Privacy policy · allango","lists":"My lists · allango","settings":"Account and settings · allango","userContent":"My bookmarks and offline content · allango","versionInfo":"Information about version · allango","library":"Library · allango","courses":"My classes · allango"},"consent":{"button":{"decline-all":"Decline all","config":"Modify","accept-all":"Accept all","confirm":"Confirm selection"},"checkbox":{"necessary":"Essential","statistic":"Statistics"},"info":{"hideAria":"Reduce information","showAria":"Expand information","store-title":"Save and/or retrieve information on a device","store-body":"Cookies, device IDs or other information may be stored or retrieved on your device for the processing purposes displayed.","statistic-title":"Personalised ads and content, ad and content measurement, target group and product development insights","statistic-body":"Ads and content may be personalised based on a profile. More data may be added to improve personalisation of content and ads. The performance of ads and content may be measured. Insights may be derived about target groups who have viewed ads and content. Data may be used to establish or improve user-friendliness, systems and software."},"explain":{"necessary":{"title":"Essential:","text":"These cookies are essential to the basic functioning of the page, such as for media playback or login."},"statistic":{"title":"Statistics:","text":"These cookies help us to identify how attractive you find the website content based on the content you viewed. This enables us to optimise our content. At this point, we only collect anonymised data."}},"title":"Cookie settings","pretext":"We, our <1>partners</1> and <3>third-party providers</3> use tracking mechanisms (especially <5>cookies</5>) to optimally design our websites for you and to continuously improve them. <br/><br/>The processing purposes in particular are:","maintext":"By clicking the \\"Accept all\\" button, you agree to the processing of the data saved on your device or terminal, such as personal identifiers or IP addresses, for these processing purposes pursuant to section 25(1) German Telecommunications-Telemedia Data Protection Act (TTDSG) and Art. 6(1)(a) GDPR. Use the \\"Configure\\" button to choose whether you want to allow cookies. You can also change your selection at any time under \\"Change cookie settings\\" at the bottom of the website. You can find further details in our <1>Privacy policy</1>. Please also be mindful of our <3>Legal notice</3>.","customLogin":{"title":"Terms of Use and Privacy Policy","text":"Do you have the login details from your book? <br/><br/> <bold>Please note:</bold> If the account is to be used by a minor, a parent or guardian must agree to the Terms of Use. Access will only be activated once this has been done.","ageCheckbox":"I am an adult or I am acting as a parent or legal guardian and I accept the <1>Terms of Use</1>.","dataCheckbox":"I have read and acknowledged the <1>Privacy Policy</1>.","button":"Activate access"}},"uhb":{"tabopen":"You already have the teacher’s book open in another tab/window. Switch to this tab/window.","license":{"title":"Activate your Digital Teaching Plus","text":"Please enter your licence key to be able to access and use your Digital Teaching Plus."}},"commercialTeaser":{"buttonBuy":"Buy now","opensNewTab":"Opens in a new tab","buttonLater":"Maybe later","uhb":{"title":"Exclusively for teachers","text":"Digital Teaching Plus enables you to organise your classes even more time-efficiently and easily. <br/><br/>It offers you practical additional content for the Digital Edition – page-specific and accessible offline.","alternativeTextWithoutAdditionalAssets":"Digital Teaching Plus enables you to organise your classes even more time-efficiently and easily. In a separate browser tab, it offers you a suitable teacher’s book for the Digital Edition – always page-specific and context-related to the respective chapter.","buttonBuyAri
2a":"Buy Digital Teaching Plus now","buttonOpen":"Go to the teacher’s book","license":{"title":"Do you already have Digital Teaching Plus?","text":"Please enter your licence key to be able to access and use your Digital Teaching Plus."}},"dau":{"title":"Learning and teaching online","text":"The Digital Edition provides you with a digital version of the book plus extra content at your fingertips. <br/><br/>Take advantage of extensive editing functions and save as many versions of your drafts as you like.","additionalText":"Including all media for the book:","buttonBuyAria":"Buy now","buttonOpen":"Go to the Digital Edition","license":{"title":"Do you already have a Digital Edition?","text":"Please enter your licence key to access your Digital Edition."}},"eksdi":{"title":"Coming soon for learners","text":"Do you already have a trial licence for Digital Learning Plus? Then simply enter your licence key and get started right away. If not, you can already look forward to it: Digital Learning Plus will soon be available in the web shop – tailored to your book.<br/><br/>You can expect motivating and varied functions that are ideally adapted to your personal level and learning pace – for immediate, precise and individual support while learning. This book also includes the following:","additionalText":"commercialTeaser.eksdi.additionalText EN","alternativeTextWithoutAdditionalAssets":"commercialTeaser.eksdi.alternativeTextWithoutAdditionalAssets EN","buttonBuyAria":"Buy now","buttonOpen":"Go to Digital Learning Plus","license":{"title":"Do you already have Digital Learning Plus?","text":"Please enter your licence key to be able to access and use your Digital Learning Plus."}}},"upCommercial":{"content":{"demo":"Test access","category":{"Test":{"singular":"Test","plural":"Tests"},"Lösung":{"singular":"Solution","plural":"Solutions"},"Unterrichtshandbuch":{"singular":"Teacher’s book","plural":"Teacher’s books"},"Karte":{"singular":"Map","plural":"Maps"},"Kopiervorlage":{"singular":"Photocopiable","plural":"Photocopiables"},"Tafelbild":{"singular":"Interactive panel","plural":"Interactive panels"},"Transkription":{"singular":"Transcription","plural":"Transcriptions"},"Transkript":{"singular":"Transcription","plural":"Transcriptions"},"Video":{"singular":"Video","plural":"Videos"},"Audio":{"singular":"Audio","plural":"Audios"},"Quelle":{"singular":"Reference","plural":"References"},"Hinweis":{"singular":"Note","plural":"Notes"},"Wortschatz":{"singular":"Vocabulary","plural":"Vocabularies"},"Grammatik":{"singular":"Grammar","plural":"Grammars"},"Landeskunde":{"singular":"Regional study","plural":"Regional studies"},"Bildmaterial":{"singular":"Visual","plural":"Visuals"},"Arbeitsblatt":{"singular":"Worksheet","plural":"Worksheets"},"Spiel":{"singular":"Game","plural":"Games"},"Html":{"singular":"other content","plural":"other content"},"Link":{"singular":"Link","plural":"Links"},"Pdf":{"singular":"PDF","plural":"PDFs"},"PDF":{"singular":"PDF","plural":"PDFs"},"File":{"singular":"File","plural":"Files"},"Bilderbuchkino":{"singular":"Picture book cinema","plural":"Picture book cinemas"},"Aufgabe":{"singular":"Task","plural":"Tasks"},"Übung":{"singular":"Exercise","plural":"Exercises"}}},"teaser":{"title":"Exclusively for teachers","text":"Digital Teaching Plus enables you to organise your classes even more easily and time-efficiently. It offers you practical additional content for the Digital Edition – page-specific and accessible offline.","button":"Buy now","buttonAria":"Buy Digital Teaching Plus now","alreadyPurchasedText":"Simplify the organisation of your teaching with page-specific additional content for your Digital Edition. Flexible and fast."}},"versionInfo":{"versionsInfoTitle":"Version information","allangoLanguage":"Your language configured on allango is: ","browserLanguage":"Your browser language is: ","userAgent":"Your browser header is: ","frontend":"Your frontend version is: ","backend":"Your backend version is: ","marklogic":"Your data storage version is: ","releaseInfoTitle":"Update information effective 26/09/08","releaseInfoText":"Find out everything about what\'s new on allango here:<br/>
2","releaseInfoList":"<item>Further improvements have been made to the learning progress overview in the ‘My Classes’ section for teachers: Tasks and chapters that have not yet been attempted are now shown with a dash instead of ‘0%’. ‘0%’, on the other hand, still means that the task has been attempted but not answered correctly. In the skills view, you can now switch between ‘Attempted tasks’ and ‘Correct answers’. The term ‘Completed tasks / Tasks completed’ has been replaced by ‘Exercises completed’. Note: Please refresh the class’s learning progress so that all changes are visible.</item> <item>The DSA Transparency Report 2025 is now linked in the legal notice and can be downloaded from there.</item> <item>For every licensed Digital Teaching Plus licence, teachers will now find a link to the new ‘Activity Set’ feature on the title overview page. When the Activity Set is opened, the language selected in allango is applied.</item>"},"bilo":{"landing":{"pageTitle":"BILDUNGSLOGIN ","loadingText":"Your data will be checked. Please be patient for a moment."}},"ibis":{"pageTitle":"ibis acam – login","loginFailedMessage":"The login could not be completed. Please try again.","retryButton":"Try again"},"eksdi":{"accessibility":{"playAudio":"Play audio","dragAndDrop":{"onDragStart":"Picked up draggable item {{activeValue}}.","onDragOver":"Draggable item {{activeValue}} was moved over droppable area {{overIndex}}.","onDragOverEmpty":"Draggable item {{activeValue}} is no longer over a droppable area.","onDragEnd":"Draggable item {{activeValue}} was dropped.","onDragEndOver":"Draggable item {{activeValue}} was dropped over droppable area {{overIndex}}.","onDragCancel":"Dragging was cancelled. Draggable item {{activeValue}} was dropped.","screenReaderInstructions":"To pick up a draggable item, press space or enter. While dragging, use the arrow keys to move the item in any given direction. Press space or enter again to drop the item in its new position, or press escape to cancel."},"sorting":{"onDragStart":"Picked up sortable item at position {{position}} of {{itemsCount}}.","onDragOver":"Sortable item was moved into position {{position}} of {{itemsCount}}.","onDragEnd":"Sortable item was dropped at position {{position}} of {{itemsCount}}.","onDragCancel":"Dragging was cancelled. Sortable item was dropped.","screenReaderInstructions":"To pick up an item, press space or enter. Use the up and down arrow keys to update the position of the item in the list. Press space or enter again to drop the item in its new position, or press escape to cancel."}},"overview":{"linkToOverview":"My learning progress","completedExercises":"Solved tasks","breadcrumb":"Digital Learning Plus","continueLesson":{"continue":"Continue now","nothingToContinue":"Start your first lesson","start":"Get started now"},"learningProgress":{"title":"Summary","completedLessons":"Solved tasks","completedLessonsProgress":"{{doneNumber}} of {{totalNumber}}","resultAverage":"Correct answers"},"chapterProgress":{"title":"My learning progress","chapters":"Chapters","competencies":"Competences","chapter":"Chapter","module":{"singular":"Module","plural":"Modules"},"taskGroup":{"singular":"Task group","plural":"Task groups"},"didacticUnit":{"singular":"Didactic unit","plural":"Didactic units"},"topic":{"singular":"Task","plural":"Tasks"},"selftest":{"singular":"Self-test","plural":"Self-tests"},"sprechen":"Speaking","grammatik":"Grammar","wortschatz":"Vocabulary","schreiben":"Writing","hören":"Listening","aussprache":"Pronunciation","lesen":"Reading","redemittel":"Useful phrases","mediation":"Mediation","hör-seh-verstehen":"Listening and viewing comprehension"}},"breadcrumbs":{"exercise":"Task {{exerciseIndex}}"},"license":{"title":"Activate your Digital Learning Plus","pageTitle":"Activate your Digital Learning Plus","text":"Please enter your licence key to be able to access and use your Digital Learning Plus."},"helpAndTip":{"showButton":"Show tips","hideButton":"Hide tips","title":"Tips and help"},"readingText":{"showButton":"Show reading text","hideButton":"Hide reading text"},"warning":{"pronounce":"Please start your recording to solve the task.","openquestion":"Please enter something to solve the task."},"progress":{"progress":"Progress:"},"navigation":{"previous":"Previous exercise","next":"Next exercise","exercise":"{{exerciseIndex}} of {{total}}"},"result":{"celebration":"Well done!","completeLesson":"Check","correct":"Correct!","label":"Evaluation","nextLesson":"Continue","text":"{{correctAnswers}} of {{total}} correct","wrong":"Incorrect","selfEstimationTitle":"Rate yourself!","resetAllTasks":"Reset all tasks"},"retrySingular":"1 try left","retryPlural":"{{retries}} tries left","reset":"Reset","resetAll":{"buttonText":"Reset all","warningTitle":"Are you sure?","warningText":"Resetting Digital Learning Plus will delete all your progress and cannot be restored.","warningButton":"Reset","successText":"Your Digital Learning Plus has been successfully reset."},"newContent":{"text":"A new, revised version of this task is available. Select ‘Update’ to load the new version. Your entries will be reset.","textSelftest":"A new, revised version of this test is available. Select ‘Update’ to load the new version. Your entries will be reset.","button":"Update","warningText":"Updating the task will delete your previous answers. This step cannot be undone.","warningTextSelftest":"Updating the test will delete your previous answers. This step cannot be undone.","warningButton":"Update"},"solution":{"label":"Solution"},"alternativeSolution":{"label":"Also correct:","show":"Show alternative solution","hide":"Hide alternative solution"},"task":{"completeLesson":"Check","label":"Task","showSolution":"Show solution","hideSolution":"Hide solution","leftAttempt":"1 try left","leftAttempts":"{{submits}} tries left"},"selftest":{"start":"Start","navigateBack":"Go back","navigateNext":"Next","totalResult":"Overall result","completeSelftest":"Complete","completeSelftestInfoTitle":"Do you really want to complete the test?","completeSelftestInfoText":"Once you have completed the test, no further changes are possible and your results will be calculated. However, you can reset the test after submission and try again.","congratulations":"You\'ve done it! You have completed the test.","viewResults":"View results","learningProgress":"My learning progress","reset":"Reset test","resetWarning":"If you reset the self-test, your result will be deleted and cannot be restored.","resetSuccessful":"The test has been successfully reset."},"gapmatch":{"words":"Words","sentences":"Sentences","audio":"Audio clips"},"inlinechoice":{"placeholder":"Select"},"openQuestion":{"AI_GRAMMATIC":"Grammar","AI_BASIC":"General","sampleSolution":"Sample solution","mobileFeedback":"AI feedback","task":"Task","loadConnection":"Loading connection…","error":{"basic":"An unexpected error has occurred while receiving the general AI feedback. Please try again later.","grammar":"An unexpected error occurred while receiving AI feedback on grammar. Please try again later."},"nativeLanguage":"Response language","lang":{"de":"Deutsch","en":"English","es":"Español","fr":"Français","it":"Italiano","ar":"العربية","ptBR":"Português do Brasil","prs":"دری","fa":"فارسی","el":"Ελληνικά","hi":"हिन्दी","ml":"മലയാളം","ps":"پښتو","pl":"Polski","pt":"Português","ru":"Русский","deCH":"Schwyzerdütsch","ti":"ትግርኛ","tr":"Türkçe","uk":"Українська","uz":"O\'zbekcha","vi":"Tiếng Việt"}},"pronounce":{"startRecording":"Start recording","stopRecording":"Stop recording","retryRecording":"Re-record"},"noAnswer":"You did not select an answer.","noEdit":"You haven\'t edited anything yet.","notAllAnswers":"You haven\'t marked everything yet.","confirm":"OK"},"maintenance":{"title":"Short interruption for improvements","text":"Dear users,<br/>Due to scheduled maintenance work, the learning platform allango will be temporarily unavailable today, on the {{endtime}}. Please revisit allango later.<br/>We apologise for any inconvenience and thank you for your patience.<br/>Your allango team","banner":"allango will be temporarily unavailable on {{starttime}} to {{endtime}} due to maintenance work. We apologise for any inconvenience this may cause."},"aiTeaser":{"loadingMessage":"Generating feedback","iqBuddy":{"teaserText":"AI translation","iconLabel":"Open AI note","title":"Note on AI-generated answers","text":"Context-sensitive translations are based on the DeepL service (www.deepl.com).<br/><br/>The Publisher has no influence either over the service providers’ AI-based translations or the translations displayed to the user.<br/><br/>Incorrect or misleading results are always possible whenever artificial intelligence and standardised processes are deployed. The Publisher thus supplies no warranty for a given quality of the translation.","ok":"Understood"},"aiFeedback":{"teaserText":"Note on AI-generated answers","iconLabel":"Open AI note","title":"Note on AI-generated answers","text":"This answer was created using a generative AI tool. <br/><br/> Although we endeavour to provide you with the most accurate and reliable information, generative AI technology may occasionally contain errors or omissions. <br/><br/> The publisher accepts no liability for any inaccuracies or misunderstandings that may arise from the use of these answers. <br/><br/>Please also ensure that you do not enter any personal data when solving tasks.","ok":"Understood"},"pronounceLesson":{"teaserText":"Note on AI-generated answers","iconLabel":"Open AI note","title":"Note on AI-generated answers","text":"This answer was created using a generative AI tool. <br/><br/> Although we endeavour to provide you with the most accurate and reliable information, generative AI technology may occasionally contain errors or omissions. <br/><br/> The publisher accepts no liability for any inaccuracies or misunderstandings that may arise from the use of these answers. <br/><br/>Please also ensure that you do not enter any personal data when solving tasks.","ok":"Understood"}},"iqBuddy":{"logoText":"Translations in context","createCollectionButtonText":"Create new collection","invali
2dName":"Invalid name for a collection. Please check your input and try again.","namePlaceholder":"Enter collection name","nameLabel":"Collection name","addToCollection":"Add to collection:","addToCollectionButtonText":"Collect","addCollectionSuccess":"Flashcard successfully added to collection","backToCollectionList":"Back to your collections","jumpToCollection":"My collections","trainingLinkText":"Go to allango buddy","trainingInfo":{"iconAria":"View training information","title":"Note on vocabulary training with allango buddy","text":"All the translations you collect on allango are saved in allango buddy. Click this link to open allango buddy in a new browser tab. There you can view, edit and practise your flashcards. <br/><br/>You can also use this feature with the allango buddy app for iOS or Android – simply log in with your existing allango credentials.","ok":"OK"},"yourTranslation":"Customise translation","checkmark":"Selected language","licence":{"teaser":{"title":"allango buddy: understand – collect – train","imgAlt":"Logo of allango buddy: The lettering ‘allango’ in dark blue colour and ‘buddy’ in orange, in a modern, rounded font. The logo contains speech bubbles as a graphic element.","text":"With the licence for allango buddy, you can save your translations from the digital edition in your own collections and use flashcards to close your language gaps. <br/><br/>Look forward to daily challenges: allango buddy generates personalised exercises from your flashcards to train your vocabulary in a fun way. <br/><br/>You can also use allango buddy as a plug-in for your browser to translate texts from the Internet directly in context and add them to your collections.","textDemoExpired":"Your trial licence for allango buddy has expired or is invalid. Please check your licence and try again.","textLicenceExpired":"Your licence for allango buddy has expired or is invalid. Please check your licence and try again.","buttonLater":"Maybe later","buttonBuy":"Buy now","buttonDemo":"Test for free","license":{"title":"Do you already have allango buddy?","text":"Please enter your licence key once to access allango buddy.","unauthed":"Please log in to be able to use this function."}}},"limit":{"cardsLimit":{"title":"Wow – you’ve already collected 100 translations as flashcards!","text":"Unfortunately, you have now reached the free limit. To collect more flashcards on allango, you’ll need either the corresponding Digital Learning Plus for this Digital Edition – where available – or an unlimited subscription in the allango buddy app. <br/><br/>You can purchase the Digital Learning Plus from our online shop. It enhances your textbook with further personalised learning opportunities and is the perfect addition for independent practice and long-term learning success!","webshopText":" ","webshopLink":" ","list":"Alternatively, you can take out an unlimited subscription directly in the allango buddy app. This gives you access to additional features: <item>Create an unlimited number of flashcards – on allango and in the app</item><item>Use the photo translation feature with object recognition as much as you like in the app</item><item>Set allango buddy as your default translator on your mobile device</item>"},"playStore":"Google Play Store","playStoreLink":"https://play.google.com/store/apps/details?id=net.allango.buddy.app&utm_source=emea_Med","appStore":"Apple App Store","appStoreLink":"https://apps.apple.com/de/app/allango-buddy/id6754596172","ok":"Ok"}},"meta":{"title":"allango – your language learning platform!","description":"Discover the learning and teaching platform from Ernst Klett Sprachen. Test out a wide range of course books and reading materials as a Digital Edition!","keywords":"learning platform; languages; learning; teaching; play audio clips; play videos; Digital Editions; digital course books; reading materials; Ernst Klett Sprachen"}}'),Ie=JSON.parse('{"ui":{"save":"Guardar","abort":"Cancelar","done":"Listo","actionOfflineDisabled":"Acciones no disponibles sin conexión","ariaClose":"Cerrar","ariaClear":"Restablecer","ariaProfile":"Perfil","ariaHelp":"Ayuda","ariaLoading":"La página se está cargando","linkTitle":"Dirige a: ","linkLabel":"Abre el enlace en una nueva pestaña","neutralFilter":"Todos","menuAria":"Más","brand":"A la izquierda está el logo de Ernst Klett Sprachen. A la derecha está el logo de allango.","brandDelta":"A la izquierda está el logo de DELTA Publishing. A la derecha está el logo de allango.","darkModeTooltip":{"dark":"Modo oscuro","light":"Modo claro"},"icons":{"menu":"Menu icon","arrowRight":"Arrow right icon","chevronRight":"Chevron right icon","draw":"Draw icon","rectangle":"Rectangle icon","addComment":"Add comment icon","addText":"add text icon","eraser":"Eraser icon","translation":"Translation Icon","coverPage":"Cover page icon","playlist":"List icon","download":"Download icon","version":"Version icon","bookmarkActive":"Bookmark active icon","bookmark":"Bookmark icon","sideNavShow":"Show sidenav icon","sideNavHide":"Close sidenav icon","close"
2:"Close icon","pause":"Pause icon","play":"Play icon","question":"Questionmark icon","homeActive":"Home active icon","home":"Home icon","filter":"Filter icon","myContentActive":"Content active icon","myContent":"Content Icon","playlistActive":"Playlist active icon","profile":"Profile icon","circlePlus":"Plus icon","edit":"Edit icon","chevronDown":"Chevron down icon","chevronUp":"Chevron up icon","subtract":"Subtract icon","clear":"Clear icon","repeat":"Repeat icon","bin":"Bin icon","changeShapeOutline":"Outline change icon","tools":"Tools icon","add":"Add icon","info":"Información","login":"Login icon","logout":"Logout icon","alertActive":"Alert active icon","checkmark":"Seleccionado","select":"Select icon","key":"Key icon","arrowLeft":"Arrow left icon","lightmode":"Lightmode icon","darkmode":"Darkmode icon","rewind":"Rewind icon","forward":"Forward icon","sound":"Sound icon","soundMute":"Sound-mute icon","fullscreen":"Fullscreen icon","fullscreenExit":"Fullscreen-exit icon","bibliothek":"Library icon","bibliothekActive":"Library icon active","cursor":"Cursor icon","checkBulletPoint":"Tick icon bullet point","correctAnswer":"Correct icon","wrongAnswer":"Wrong icon","celebration":"Celebration icon","previous":"Previous icon","next":"Next icon","collectionAdd":"Add-to-collection icon","star":"Star icon","microphone":"Microphone icon","noAnswer":"No answer icon","conversation":"Conversation icon","graduation":"Graduation icon"}},"errorPage":{"title":"Lo sentimos, se ha producido un error desconocido.","titleSuffix":"Vuelve a intentarlo más tarde.","error":"Error: ","iosErrorTitle":"La versión de iOS utilizada ya no es compatible.","iosError":"Actualiza tu sistema operativo a la última versión de iOS o inténtalo con otro dispositivo.","repeatedDexie":"Un problema de tu almacenamiento local está impidiendo la acción. Revisa tu almacenamiento y vuelve a intentarlo. Si el problema persiste, ponte en contacto con nuestro servicio de atención al cliente.","tryAgain":"Volver a intentarlo","backHome":"Volver a la página de inicio"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"Français","it":"Italiano","pt":"Portugués","pt-br":"Português do Brasil (Beta)","tr":"Türkçe (Beta)","ru":"Русский – Бета","ua":"Українська – Бета","ae":"العربية - الإصدار التجريبي"},"breadcrumbs":{"ariaLabel":"Ruta de navegación"},"welcome":{"title":"¡Te damos la bienvenida a allango!","copy":"¡Descubre la plataforma para aprender y enseñar idiomas fácilmente! Encontrarás de manera rápida y sencilla una gran selección de complementos digitales para tu libro y podrás acceder a ediciones digitales y adaptarlas. ¡Organiza todos los contenidos de manera flexible con las prácticas funciones de esta plataforma de aprendizaje y disfruta de un apoyo a tu medida para diseñar clases personalizadas! ¡Empieza ahora mismo!","dashboard":"Ir a vista general","augmented":"Ir a la biblioteca","modal":{"title":"Error durante el registro","copy":"Se ha producido un error durante el registro o inicio de sesión. No se ha podido asumir tu rol. Vuelve a intentarlo. Si el error se vuelve a producir, ponte en contacto con el equipo de asistencia técnica.","close":"Cerrar","login":"Iniciar sesión ahora"},"license":{"teaserTitle":"Activa tu licencia","teaserText":"Después de iniciar sesión, introduzca una vez su clave de licencia para activar un producto digital.","teaserCta":"Iniciar sesión ahora","inputTitle":"Activa tu licencia","inputText":"Por favor, introduzca su clave de licencia una vez para activar un producto digital.","inputLabel":"Clave de licencia","inputHelp":"¿Dónde puedo encontrar mi código de licencia?","inputCta":"Activación"},"search":{"title":"Encuentra tu libro","label":"Introduzca el título del libro, el ISBN o el número de pedido para acceder al contenido multimedia o a las ediciones digitales.","placeholder":"Por ejemplo, 978-3-12-501070-3"}},"protected":{"unauthTitle":"Es necesario iniciar sesión","unauthCopy":"Inicia sesión para utilizar esta función.","unauthCta":"Iniciar sesión ahora","unautorisedTitle":"Acceso denegado: Permisos insuficientes","unautorisedCopy":"Tu rol de usuario no tiene permisos para acceder a esta página."},"dashboard":{"title":"Hola","unauthTitle":"Vista general","unauthCopy":"Inicia sesión para utilizar la vista general.","unauthCta":"Iniciar sesión ahora","recent":"Continúa exactamente donde lo hayas dejado:","nointeractions":"¿Aún no has utilizado ningún contenido?","teaser-button":"Descúbrelos ahora","isbnLabel":"ISBN:","npLabel":"Número de pedido: ","myBooks":{"title":"Última activación","all":"Todos mis libros"},"license":{"teaserTitle":"Activa tu licencia","teaserText":"Después de iniciar sesión, introduce una vez tu código de licencia para activar un producto digital.","teaserCta":"Iniciar sesión ahora","inputTitle":"Activa tu licencia","inputText":"Introduce tu código de licencia una vez para activar un producto digital.","input
2Label":"Clave de licencia","inputHelp":"¿Dónde puedo encontrar mi código de licencia?","inputCta":"Activación"},"search":{"title":"Encuentra tu libro","text":"Introduce el título del libro, el ISBN o el número de pedido para acceder al contenido multimedia o a las ediciones digitales.","placeholder":"Por ejemplo, 978-3-12-501070-3"}},"interactions":{"playlist":"Lista"},"menu":{"logout":"Cerrar sesión","login":"Iniciar sesión ahora","loggedInAs":"Sesión iniciada como","settings":"Cuenta y ajustes"},"discover":{"title":"Buscar","searchLabel":"Introduce el título del libro, el ISBN o el número de pedido para acceder al contenido multimedia o a las ediciones digitales.","lastSearch":"Última búsqueda:","teaser":"Ver todos los libros","hideExpired":"Ocultar licencias expiradas","result":{"resultsFor":"Resultados para","resultsForSingle":"Resultado para","resultsIn":"Resultados en {{tabName}}","resultsInSingle":"Resultado en {{tabName}}","books":"Título del libro","noItemsFound":"No se ha podido encontrar el título del libro","noItemsFoundAdditionalText":"No se han encontrado resultados para tu búsqueda. Revisa la ortografía o intenta hacer la búsqueda con otras palabras. <br /> El campo de búsqueda no admite códigos ni claves de licencia. Si tienes más preguntas, visita nuestro ","supportLinkText":"portal de ayuda.","supportLink":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"}},"library":{"title":"Biblioteca","myBooks":"Mis libros","allBooks":"Todos los libros","allTools":"Todas las herramientas","searchLabel":"Introduce el título del libro, el ISBN o el número de pedido para acceder al contenido multimedia o a las ediciones digitales.","subtitle":"Descubre contenidos que necesitas para tu clase."},"augmented":{"description-label":"Descripción","level-label":"Nivel","offline":"Guardar sin conexión","offline-remove":"Eliminar sin conexión","offline-retry":"Error. Por favor, vuelve a intentarlo.","offlineDisabled":"El sistema operativo iOS (sólo iPhone) no permite guardar sin conexión. Utilice otro dispositivo para disfrutar de todas las funciones.","download":"Descargar","downloadStarted":"La descarga ha comenzado","downloadAria":"Descargar {{format}}","bookbookmarkedsuccess":"¡Libro marcado!","bookbookmarkedfailure":"¡No se ha podido añadir el libro a los contenidos marcados!","pagebookmarkedsuccess":"¡Página marcada!","pagebookmarkedfailure":"¡No se ha podido añadir la página a los contenidos marcados!","contentNavigation":{"pageLabel":"Ir a la página:","title":"Selección de páginas manual","page":"Página","ponsLink":"Ir al diccionario en línea de PONS","invalidPageNumber":"Número de página no válido"},"contentToggle":"Selección de páginas manual","licenceInfo":"Al abrir estos contenidos, confirmo que los estoy utilizando con el libro impreso, digital o con una reproducción que se me ha proporcionado legalmente. Esta confirmación es necesaria por motivos de licencia.","licenceRead":"Leído","noProductFound":"No se ha encontrado ningún contenido","backToDiscover":"Descubrir contenidos","noAssetsOnPage":"Esta página no tiene contenido.","onlyTeacherAssets":"Este libro ofrece acceso a contenidos que solo son relevantes para los profesores.","onlyTeacherAssetsNotLoggedIn":"¡Iniciar sesión ahora! Este libro ofrece acceso a contenidos que solo son relevantes para los profesores. Se podrán ver después de iniciar sesión."},"accesscode":{"title":"El contenido está protegido mediante código.","text":"Introduce aquí el código de tu libro.","enter":"Enviar","inputAria":"Código","page":"Página","error":"Código no válido. Comprueba si el código del tu libro se ha introducido correctamente y vuelve a intentarlo."},"user-content":{"title":"Mis marcadores","unauthTitle":"Marcadores y contenidos sin conexión","nav":{"bookmarks":"Marcadores","offline":"Contenidos sin conexión"},"offline":{"teaserTitle":"Aún no has guardado ningún contenido sin conexión.","hint1":"Utiliza el menú","hint2":"para que el contenido esté disponible sin conexión.","link":"Ir a los contenidos marcados"}},"bookmark":{"preview":{"page":"Página","pages":"Páginas {{p1}} y {{p2}}","version":"Versión","changeVersion":"Cambiar la versión"},"teaser":{"title":"Es necesario iniciar sesión","copy":"Inicia sesión para utilizar esta función.","close"
2:"Cancelar","login":"Iniciar sesión ahora"},"bulk":{"remove":"Eliminar","download":"Guardar sin conexión"},"noData":"No se ha encontrado contenido marcado.","teaserTitle":"Aún no has marcado ningún contenido.","hint1":"Utiliza el icono de marcador","hint2":"para encontrar contenidos fácilmente.","link":"Descubre y marca los contenidos","removing":"Eliminar...","removeSuccess":"¡Marcador eliminado!","undo":"Deshacer","searchPlaceholder":"Buscar por contenido","add":"Añadir marcador","removeSingle":"Eliminar marcador","noNewBookmarks":"No hay nuevos marcadores que guardar.","addedSuccess":"El marcador se ha añadido correctamente.","bookmarking":"Añadir...","removeBookmarkAria":"Eliminar marcador","setBookmarkAria":"Añadir marcador","removeAllBookmarksAria":"Eliminar todos los marcadores","setAllBookmarksAria":"Añadir todos los marcadores","savePageOffline":"Guardar la página sin conexión","assetsFound":"{{count}} Resultados"},"playlist":{"title":"Mis listas","newList":"Nueva lista","addEntry":"Añadir entrada","notFoundTitle":"No se ha podido encontrar la lista. Comprueba en las listas recibidas si se ha eliminado.","notAllowedTitle":"La lista no se puede abrir.","backToOverview":"Seguir con mis listas","addToPlaylist":"Añadir a {{playlistName}}","menu":{"delete":"Borrar lista","share":"Compartir lista","customContent":"Añadir entrada","storeOffline":"Guardar la lista sin conexión","remove":"Eliminar lista","copy":"Copiar lista","ariaLabel":"Abrir el menú de listas"},"nav":{"private":"Editar","received":"Recibidas","allango":"Crea una lista editorial","curatedReceived":"De la editorial"},"share":{"title":"Compartir lista","generate":"Crear enlace","copy":"Copiar enlace","copied":"Enlace copiado en el portapapeles.","revoke":"Deshacer","warning":"La lista incluye contenidos no visibles para los alumnos."},"invalidName":"Nombre de lista no válido","namePlaceholder":"Especificar el nombre de la lista","removeFromList":"Eliminar de la lista","addToList":"Añadir a la lista","screenReader":{"menu":"Menú con {{count}} entradas","menuSingular":"Menú con una entrada","formular":"Menú con el formulario «Crear nueva lista»"},"emptyListTitle":"Lista vacía","emptyListLink":{"0":"Recomendación: añade contenidos desde tus","1":"marcadores","2":"o bien","3":"descubre contenidos nuevos."},"emptyListsTitle":"Aún no tienes ninguna lista.","emptyListsCopy":"En una lista recopilas y organizas los contenidos. Puedes compartir tu lista con compañeros y compañeras y también con tus alumnos y alumnas. De esta manera, te prepararás muy bien para las clases.","emptyListsLink":"Crear la primera lista","emptyListsTitleShared":"Aún no has obtenido ninguna lista.","emptyListsCopyShared":"Obtén listas de otros usuarios y utilízalas como plantilla para tus clases.","emptyListsTitleCurated":"Aún no has creado ninguna lista de la editorial.","emptyListsCopyCurated":"Esta pestaña solo es visible internamente para los equipos editoriales.","emptyListsTitleCuratedShared":"Aún no has obtenido ninguna lista de la editorial.","emptyListsCopyCuratedShared":"En las listas editoriales, el equipo editorial facilita contenido seleccionado de diferentes temas o productos didácticos. Obtén un enlace a una lista editorial en nuestro boletín o en allango para los títulos seleccionados en «Medios».","emptyListOffline":"Conéctate a Internet para empezar a añadir contenidos a tu lista.","entryForm":{"title":{"label":"Título (campo obligatorio)","placeholder":"Añadir título"},"comment":{"label":"Nota","placeholder":"Añadir una nota","help":"Visible para otros tras compartir la lista."},"description":{"label":"Descripción","placeholder":"Añadir una descripción","help":"Visible para otros tras compartir la lista."},"url":{"label":"Enlace a una web","placeholder":"Por ejemplo, https://www.my-weblink.com"},"required":"El título es obligatorio"},"addComment":"Editar","author":"por","creationDate":"Creado el {{date}}.","modified":"Última actualización el {{date}}.","shareButton":"Compartir","copyPlaylist":"Crear una copia","addFirstEntry":"Primera entrada","addedReceived":"La lista compartida se ha recibido correctamente.","copySuccess":"La lista compartida se ha copiado correctamente.","addedAssetMessage":"Contenido añadido a la lista.","updateTitle":"Nombre de la lista","editInfoBox":{"copy":"Para editar una lista que hayan compartido contigo, antes debes hacer una copia.","button":"Crear una copia"},"editListNameAria":"Editar el nombre de la lista","anonymsAuthor":"Anónimo","showCommentAria":"Editar un comentario de la lista","reorderUpAria":"Mover la entrada de la lista hacia arriba","reorderDownAria":"Mover la entrada de la lista hacia abajo","containsAudioVideo":"No es posible guardar audios ni vídeos sin conexión en este dispositivo. Solo se guardan los PDF y los ejercicios interactivos. Utiliza otro dispositivo para obtener una funcionalidad completa.","containsNotDownloadableAsset":"La lista incluye contenido que no se puede descargar.","deleted":"borrado"},"course":{"title":"Mis clases","newCourse":"Nueva clase","downloadInstitute":"Descargar el progreso de aprendizaje","downloadSuccess":"Descarga completada","downloadError":"Descarga fallida","author":"de","creationDate":"Creado el {{date}}.","modified":"Última actualización el {{date}}.","tabs":{"overview":"Progreso en el aprendizaje","members":"Alumnos","collaborators":"Co-profesores","books":"Libros"},"overview":{"reload":"Actualizar","progressionUpdateSlow":"La actualización está tardando más de lo previsto. Vuelve a intentarlo dentro de unos minutos.","progressionUpdateComplete":"El progreso de aprendizaje se ha actualizado correctamente.","progressionUpdateStillRunning":"La actualización continúa en segundo plano. Vuelve a cargar la página más tarde para ver el resultado.","noProgression":"Actualmente no hay ningún progreso de aprendizaje de los alumnos para este libro.","noCompetencies":"En este libro no hay ejercicios con competencias asociadas.","modified":"Progreso de aprendizaje actualizado por última vez: {{date}}","bookSelectLabel":"Libro","courseAverage":"Ø Clase ","chapters":"Contenidos","competencies":"Competencias","competency":"Competencia","chapter":"Capítulo/Ejercicio","solvedLessons":"Ø 
2Ejercicios resueltos","correctAnswers":"Ø Respuestas correctas","total":"Total","result":"Respuestas correctas","edited":"Ejercicios resueltos","read":"Páginas leídas","dataChangeScreenReader":"Los datos de la tabla han cambiado a {{type}}","export":{"download":"Exportar","downloadError":"Descarga fallida. Vuelve a intentarlo más tarde."},"filterInfo":{"accessibilityLabel":"Mostrar información sobre los indicadores","title":"Nota sobre los indicadores","text":"En el menú desplegable puedes seleccionar qué indicador deseas consultar sobre el progreso de aprendizaje de la clase:<br/><br/>«Respuestas correctas» muestra el porcentaje de respuestas resueltas correctamente.<br/>«Ejercicios resueltos» muestra el porcentaje de tareas completadas.<br/>«Páginas leídas» muestra el porcentaje de páginas leídas. Una página se considera leída si la miras durante al menos 3 segundos. El progreso en la lectura también se puede consultar en las ediciones digitales que no incluyen ejercicios interactivos.","ok":"OK"},"hideSelfEvaluation":"Ocultar la autoevaluación","chapterCompleted":"Capítulo completado","accessibilityLabel":"Capítulo finalizado"},"members":{"remove":"Eliminar alumnos","emptyTeaser":{"title":"Todavía no hay alumnos en esta clase.","body":"Invita a alumnos a esta clase."}},"collaborators":{"remove":"Eliminar co-profesor","emptyTeaser":{"title":"Esta clase aún no cuenta con profesores adjuntos.","body":"Tienes la posibilidad de invitar a profesores adjuntos a esta clase."}},"books":{"remove":"Eliminar libro","addButton":"Añadir","emptyTeaser":{"title":"Aún no has añadido ningún libro.","body":"Puedes añadir los libros que tengas activados a esta clase."},"add":{"title":"Añadir a \\"{{title}}\\"","ariaLabel":"Búsqueda de libros","searchPlaceholder":"Por ejemplo, NP10050107000","search":"Buscar","noBookFound":"No se han encontrado libros adecuados.","note":"Asegúrate de añadir exactamente los libros que utilizan tus alumnos.","noteInfo":{"iconAria":"Mostrar información sobre cómo añadir libros","title":"Nota sobre cómo añadir libros","text":"Los libros que figuran en la gestión de clases deben coincidir exactamente con los libros de tus alumnos. Por ejemplo, si se trata de un volumen parcial o completo, o de un libro del alumno o un libro de ejercicios. El número NP te ayuda a identificar de forma inequívoca el libro correcto. <br/><br/>Tanto los profesores como los alumnos necesitan una licencia válida para cada libro añadido.","ok":"OK"},"abort":"Cancelar","saveSingle":"{{count}} Añadir libro","savePlural":"{{count}} Añadir libros"}},"emptyTeaser":{"emptyCoursesLink":"Crear una clase","title":"Aún no tienes ninguna clase","body":"Con la gestión de clases, puedes ver de un vistazo el progreso de tus alumnos."},"menu":{"delete":"Eliminar clase","deleteModal":{"warningTitle":"¿Estás seguro?","warningTextCourse":"La clase se eliminará y se anularán todas las asignaciones e invitaciones. El progreso de los alumnos se mantendrá.","warningTextBook":"Eliminar libro de la clase.","warningTextCollaborator":"Eliminar co-profesor de la clase.","warningTextMember":"Eliminar a un alumno de la clase.","warningTextMembership":"Eliminarme de la clase.","warningButton":"Eliminar"},"share":"Compartir clase","ariaLabel":"Abrir el menú de la clase"},"join":{"joinSuccessful":"Te has unido correctamente a la clase.","leaveSuccessful":"Te han eliminado correctamente de la clase.","modal":{"joinCourseTitle":"Unirse a la clase «{{courseId}}»","joinCourseAgeConsent":"Al unirme, confirmo que soy mayor de 16 años. De lo contrario, he informado a mis tutores legales y he obtenido su consentimiento.","joinCourseDataConsent":"Acepto que los profesores y, si es necesario, el personal de mi colegio o instituto puedan ver mi progreso en el aprendizaje.","joinCourseCopy":"Elige un nombre de usuario para que tu profesor pueda identificarte. Por favor, no utilices tu nombre real. Puedes cambiar tu nombre de usuario en cualquier momento en la sección <settingsLink>Cuenta y ajustes</settingsLink>.","cancel":"Cancelar","confirm":"Unirse a la clase"}},"editCourseNameAria":"Editar nombre de la clase","updateTitle":"Nombre de la clase","namePlaceholder":"Introducir nombre de la clase","invali
2dName":"Nombre de clase no válido","share":{"title":{"members":"Compartir clase con alumnos","collaborators":"Compartir clase con profesores adjuntos"},"copy":"Copiar enlace","revoke":"Cancelar","info":{"members":"En el marco de tu actividad escolar o institucional, asegúrate de que todos los alumnos invitados tengan al menos 16 años o cuenten con el consentimiento de un tutor legal. Al compartir el enlace o el código QR, confirmas que se cumplen estos requisitos."},"generate":"Crear enlace","copied":"Enlace copiado al portapapeles.","button":"Invitar"}},"navigation":{"ariaUserContent":"Navegar a los marcadores y a los contenido sin conexión","ariaSearch":"Navegación a la búsqueda del título del libro","ariaDashboard":"Navegar a vista general","ariaPlaylist":"Navegación a las listas","ariaCourse":"Navegación a las clases","ariaBibliothek":"Navegación a la biblioteca","tooltipUserContent":"Mis marcadores y contenidos sin conexión","tooltipSearch":"Búsqueda","tooltipDashboard":"Vista general","tooltipPlaylist":"Mis listas","tooltipCourse":"Mis clases","tooltipBibliothek":"Biblioteca","tooltipOpenSideNavigation":"Abrir página de navegación","tooltipCloseSideNavigation":"Cerrar navegación de página"},"pagination":{"elements":"Elementos","previous":"Página anterior","next":"Página siguiente","ariaPage":"Navega a la página {{page}}"},"downloadManager":{"title":"Contenidos sin conexión","waiting":"Preparando para guardar.","downloading":"Guardar...","cached":"Se ha guardado sin conexión","notStored":"No se ha guardado","success":"El contenido {{title}} se ha almacenado en caché correctamente.","failure":"Error al almacenar en caché","bulkPrepare":"Preparando para guardar.","offlineHint":{"1":"Los contenidos descargados están disponibles en el apartado de Mis marcadores ","2":"> Contenidos sin conexión.","3":""},"offlineErrorHint":"Descarga completa. No se han podido descargar determinados contenidos.","abortAll":"Cancelar todo","retryAssetAria":"Volver a intentarlo","removeAssetAria":"Eliminar contenido","riskIconAria":"Advertencia","screenReaderStart":"Guardado sin conexión iniciado","screenReaderEnd":"Guardado sin conexión finalizado"},"search":{"placeholder":"Por ejemplo, 978-3-12-501070-3","placeholderAssets":"Introducir contenido multimedia","submitButton":"Búsqueda","ariaIcon":"Buscar","myBooks":"Mis recursos","allBooks":"Todos los libros","allTools":"Todas las herramientas"},"offline":{"offline":"Sin conexión","bannerCopy":"Estás sin conexión. Algunas funciones no están disponibles.","disabledSearch":"La búsqueda no está disponible sin conexión.","disabledAction":"La acción no está disponible sin conexión."},"newContent":{"copy":"Hay una nueva versión disponible. Selecciona «Cargar» para actualizar allango.","button":"Cargar","releaseInfoLinkText":"Ir a la información de actualización"},"shared":"Compartido","install":{"prompt":"¿Añadir allango a la pantalla de inicio?","dismiss":"Cancelar","install":"Instalar"},"facet":{"bookPage":"Página","series":"Serie","niveau":"Nivel","format":"Tipo de medio","bookTitle":"Título del libro","bookDescribedTitle":"Título del libro","bezeichnung":"Título del libro","isbn":"ISBN","type":"Tipo de producto"},"badge":{"teacher":"Solo para el profesorado","accesslocked":"Protegido mediante código","accessunlocked":"Desbloquear código","dauaccesslocked":"Protegido mediante código","demo":"Acceso de prueba","uPlus":"Plus profesorado","lernPlus":"Plus alumnado","dau":"Edición digital","resultPercentage":"{{percentage}} %  correcto","selfEvaluation":"Autoevaluación","aiEvaluation":"Comentarios de IA","test":"Test","interactiveVideo":"Vídeo interactivo"},"help":{"accesscode-where-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/360020867617-What-are-access-codes-and-where-do-I-enter-them-","accesscode-where-code":"¿Dónde puedo encontrar mi código?","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"},"resourceList":{"bookmark-all":"Establecer marcadores","pageFilterPrefix":"Página","page":"Página","sortPrefix":"Ordenar por: ","documentSingle":"Contenido","documentPlural":"Contenidos","moreActions":"Más acciones","cancel":"Listo","editList":"Editar la lista","mediaFilter":"Tipo de medio","bulkOffline":"Guardar sin conexión","bulkSelect":"Seleccionar todos","mediafilterAll":"Todos","noData":"No se ha encontrado ningún contenido","selection":"Selección  ({{count}})","sorters":{"titleAsc":"Títulos de libros de la A a la Z","titleDesc":"Títulos de libros de la Z a la A","timelinessAsc":"El más antiguo primero","timelinessDesc":"El más reciente primero","recentlyUsed":"Utilizado recientemente","activation":"Activado recientemente"},"downloadAudios":{"buttonText":"Descargar paquete de audio","infoIcon":"Abrir nota sobre el paquete de audio","infoModalTitle":"Nota sobre el paquete de audio","infoModalText":"El paquete de audio contiene todos los audios de este libro que pueden descargarse. La descarga puede tardar unos segundos.","ok":"Entendido"}},"asset":{"audiosTextSingular":"Escuchar 1 audio","audiosTextPlural":"Escuchar {{number}} audios","videosTextSingular":"Ver 1 vídeo","videosTextPlural":"Ver {{number}} vídeos","pdfsTextSingular":"Abrir 1 PDF","pdfsTextPlural":"Abrir {{number}} PDFs","htmlsTextSingular":"Abrir 1 otro contenido","htmlsTextPlural":"Abrir otros {{number}} contenidos","linksTextSingular":"Abrir 1 enlace","linksTextPlural":"Abrir {{number}} enlaces","dauLinksTextSingular":"Abrir 1 referencia","dauLinksTextPlural":"Abrir {{number}} referencias","filesTextSingular":"Abrir 1 archivo","filesTextPlural":"Abrir {{number}} archivos","daupagesTextSingular":"Abrir 1 página de la edición digital","daupagesTextPlural":"Abrir {{number}}
2 páginas de la edición digital","assessmentsTextSingular":"Abrir 1 ejercicio","assessmentsTextPlural":"Abrir {{number}} ejercicios","selftestsTextSingular":"Abrir 1 autocomprobación","selftestsTextPlural":"Abrir {{number}} autocomprobaciones","audio":"audio","audios":"audios","audioPlay":"escuchar","video":"video","videos":"videos","videoPlay":"ver","pdf":"PDF","pdfs":"PDF","pdfPlay":"abrir","html":"otro contenido","htmls":"Otros contenidos","htmlPlay":"abrir","iframe":"Contenido interactivo: {{title}}","externalLink":"Enlace externo","link":"enlace","links":"enlaces","linkPlay":"abrir","dauLink":"referencia","dauLinks":"referencias","dauLinkPlay":"abrir","dauLinkLabel":"página","uhbLinkLabel":"página de la guía didáctica ","file":"Otro archivo","files":"Otros archivos","filePlay":"abrir","daupage":"página de la edición digital","daupages":"páginas de la edición digital","uhbpage":"página de Plus profesorado","uhbpages":"páginas de Plus profesorado","others":"Ver más medios","assessment":"Ejercicio","assessments":"Ejercicios","selftest":"Autocomprobación","selftests":"Autocomprobaciones","menu":{"ariaLabel":"menú de contenidos"}},"settings":{"title":"Mi cuenta allango","personalTitle":"Información personal","email":"Correo electrónico","name":"Nombre","username":"Nombre mostrado","ariaUsername":"Cambiar el nombre mostrado","anonymsAuthor":"Anónimo","ssoId":"SSO-ID","security":"Seguridad","password":"Contraseña","changePassword":"Cambiar la contraseña","ariaCancel":"Cancelar","loading":"Guardar...","success":"Los ajustes se han guardado correctamente.","courses":"Clases","leaveC
2ourse":"Eliminar clase","settings":"Ajustes","language":"Idioma","roles":"Roles de permisos","rolenames":{"student":"Alumno/a","teacher":"Profesor/a","schooladmin":"Administrador/a de una entidad","eks_content_admin":"Administrador/a de contenidos de EKS","admin":"Administrador/a maestro/a","editor":"Redactor/a"}},"footer":{"privacy":"Protección de datos","imprint":"Nota legal","terms-of-use":"Condiciones de uso","cookie-consent":"Modificar la configuración de las cookies","copyright":"Copyright © Ernst Klett Sprachen GmbH {{year}}","version":"Información de la versión","accessibility":"Declaración de accesibilidad","subscription":"Cancelar suscripción","subscription-url":"https://subscription.allango.net/cancelar-suscripcion","subscription-url-delta":"https://subscription.allango.net/cancel-subscription"},"featureTeaser":{"playlist":{"title":"Mis listas","subtitle":"Organiza los contenidos con tus propias listas","copy":"Crea nuevas listas para los contenidos de tu clase con los nombres y en el orden que consideres. Añade enlaces y comparte tus listas con otras personas.","cta":"Iniciar sesión y comenzar"},"favourits":{"title":"Mis marcadores","subtitle":"Vuelve a localizar los contenidos relevantes de manera fiable","copy":"Marca tus contenidos favoritos para la clase, utiliza filtros para volver a acceder a ellos rápidamente y disfruta de los contenidos sin conexión en cualquier momento.","cta":"Iniciar sesión y comenzar"}},"pdfplayer":{"save":"Guardar","close":"Cerrar","page":"Página","version":"Versión:","originalVersion":"Original (sin editar)","zoomInAria":"Ampliar PDF","zoomOutAria":"Reducir PDF","nextPageAria":"Página siguiente del PDF","pageInputAria":"Navegación por las páginas del PDF","prevPageAria":"Página anterior del PDF","zoomSizeOriginal":"Original","zoomAria":"Seleccionar el tamaño del zoom. Valor actual: {{value}}","pageFrom":"de"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"Cerrar el modo de pantalla completa","showInFullscreenAria":"Abrir el modo de pantalla completa"},"minimize":"Minimizar","maximize":"Maximizar","pauseAria":"Detener","playAria":"Reproducir","forwardAria":"Avanzar 10 segundos","rewindAria":"Retroceder 10 segundos","previousAria":"Anterior contenido multimedia","nextAria":"Siguiente contenido multimedia","sliderInputAria":"Barra de progreso","taskMarker":"Ejercicio en {{time}}","unmute":"Activar el sonido","mute":"Desactivar el sonido","playbackRateChangeAria":"Seleccionar la velocidad de reproducción","playbackRateAria":"Velocidad de reproducción {{rate}}","showTrackAria":"Ocultar subtítulos","hideTrackAria":"Mostrar subtítulos","showListAria":"Mostrar lista","hideListAria":"Ocultar lista","subtitles":"Subtítulos"},"error":{"playlist":{"failCreate":"¡No se ha podido crear la lista!","failRename":"¡No se ha podido cambiar el nombre de la lista!","failModify":"¡No se ha podido cambiar la lista!","failAddEntry":"No se ha podido añadir la entrada a la lista.","failAddAsset":"No se ha podido añadir contenido a la lista.","failDelete":"No se ha podido borrar la lista.","failCopy":"No se ha podido copiar la lista.","failDeleteShareLink":"No se ha podido eliminar el enlace para compartir la lista.","failRemoveReceived":"No se ha podido eliminar la lista.","playlistNotFound":"No se ha podido encontrar la lista.","noResponse":"¡El servicio no responde!","failCopyToClipboard":"Se ha producido un error al copiar el enlace."},"course":{"courseNotFound":"No se ha encontrado la clase.","failCreate":"No se ha podido crear la clase.","failRename":"No se ha podido renombrar la clase.","failModify":"No se ha podido modificar la clase.","failDelete":"No se ha podido eliminar la clase.","failJoin":"No se ha podido entrar en la clase.","failLeave":"Error al salir de la clase.","removeFromCourse":"No se ha podido eliminar a la persona de la clase.","failShareCourse":"No se ha podido compartir la clase.","failCopyToClipboard":"No se ha podido copiar el enlace de la clase.","addToBookList":"No se ha podido añadir el libro a la clase.","removeFromBookList":"No se ha podido eliminar el libro de la clase.","progressionNotFound":"No se ha podido cargar el progreso de aprendizaje.","failProgressionCreate":"No se ha podido crear el progreso de aprendizaje."},"settings":{"failSave":"Se ha producido un error al guardar los ajustes.","failGetSettings":"No se han podido cargar los ajustes."}
2,"asset":{"failGetPdf":"No se ha podido cargar el PDF.","failLoadMedium":"No se han podido cargar el medio.","failHtmlLoad":"No se ha podido cargar el ejercicio interactivo.","failGetAccess":"No se ha podido acceder al contenido.","failGetAsset":"No se ha podido encontrar el contenido.","unauthorized":"Activa tu edición digital: Introduce tu clave de licencia para activar y utilizar una edición digital.","licenseHelp":"¿Dónde puedo encontrar mi código de licencia?","licenseHelpLink":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","cacheDisabled":"Ten en cuenta que los enlaces web incluidos en las listas no se pueden guardar sin conexión.","downloadAccessCodeProtected":"Parte del contenido está protegido mediante código y no se puede guardar sin conexión hasta que desbloquees el código.","invalidAccessCode":"Código no válido. Comprueba si el código del tu libro se ha introducido correctamente y vuelve a intentarlo."},"bookmark":{"addedFailure":"Se ha producido un error al añadir.","removeFailure":"No se ha podido eliminar el marcador.","bookmarksNotAllowed":"Algunos contenidos no se pueden marcar.","failSearch":"No se ha podido encontrar el marcador."},"interaction":{"failPostInteraction":"Se ha producido un error al buscar títulos de libros.","failGetInteraction":"Se ha producido un error al buscar sugerencias."},"augmented":{"failGetProduct":"No se ha podido encontrar el título del libro","failCover":"No se ha podido encontrar la imagen de portada."},"search":{"failedBookSearch":"Se ha producido un error al buscar títulos de libros.","failedSuggestion":"Se ha producido un error al buscar sugerencias.","failedToolSearch":"Se ha producido un error en la búsqueda de herramientas."},"general":"Se ha producido un error.","serviceUnavailable":{"title":"Lo sentimos, se ha producido un error desconocido. Vuelve a intentarlo más tarde.","copy":"En estos momentos el servicio no está disponible. Vuelve a intentarlo más tarde.","reload":"Volver a cargar"},"serviceTimeout":{"copy":"La conexión se ha interrumpido debido a un error de tiempo de espera. Si el problema persiste, comprueba tu conexión a Internet."},"pageNotFound":{"title":"Página no encontrada","link":"Volver a vista general"},"privateMode":{"title":"Se ha producido un error en relación con tu navegador.","copy":"Comprueba la configuración de tu navegador para asegurarte de que dispones de suficiente almacenamiento, de que estás utilizando la última versión del navegador o para conocer si tienes alguna restricción de uso impuesta por un administrador del dispositivo. Ten en cuenta, además, que no puede garantizarse el uso de la plataforma de aprendizaje allango en modo privado."},"dau":{"failedSaveVersion":"Se ha producido un error al guardar la versión.","failedFilterAsset":"Se ha producido un error inesperado al filtrar el contenido multimedia. Vuelve a intentarlo más tarde.","failGetPdf":"No se ha podido cargar el PDF. Vuelve a intentarlo más tarde.","failGetDauLearningProgress":"No se ha podido cargar el estado de aprendizaje. Vuelve a intentarlo más tarde.","failSetDauPageReadProgress":"No se ha podido guardar el progreso de lectura de la página.","failSetChapterCompletion":"No se ha podido cerrar el capítulo.","failedDeleteEdit":"No se ha podido borrar la nota. Vuelve a intentarlo más tarde."},"license":{"403":{"general":"Su licencia para este producto ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo.","Augmented":"Su licencia para este producto ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo.","Digital":"Su licencia para la edición digital ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo.","UHB":"Su licencia para Digital Plus profesorado ha caducado o no es válida. Por favor, compruebe su licencia e inténtelo de nuevo.","Eksdi":"Su licencia para Digital Plus alumnado ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo."},"failActivateLicense":"Se ha producido un error al activar la licencia. Vuelve a intentarlo más tarde.","failCheckLicense":"Se ha producido un error al verificar la licencia.  Vuelve a intentarlo más tarde.","errorCode":{"100":"Código de error: 100. Clave de licencia no válida. Comprueba el texto que has introducido y vuelve a intentarlo.","101":"Código de error: 101. La clave de licencia ha expirado. Renueva tu licencia.","102":"Código de error: 102. Se ha alcanzado el número máximo de usuarios/as para esta clave de licencia.","103":"Código de error: 103. La clave de licencia ya se ha activado en otra cuenta y se ha agotado.","104":"Código de error: 104. La licencia no coincide con la función de usuario con la que has iniciado sesión. Comprueba tu función de usuario en la cuenta online de cliente o ponte en contacto con nuestro servicio de atención.","105":"Código de error: 105. La clave de licencia ya se ha activado en esta cuenta. Se puede acceder a ella a través de la biblioteca o de la página de resumen de títulos correspondiente.","999":"Código de error: 999. Se ha producido un error al verificar la licencia.  Vuelve a intentarlo más tarde.","null":"Código de error: 000. Se ha producido un error al verificar la licencia.  Vuelve a intentarlo más tarde."}},"demo":{"failStartDemo":"Error al abrir el acceso de prueba. Vuelve a intentarlo más tarde.","noLPlusDemoWithoutDau":"Solo se puede probar Digital Plus alumnado junto con una licencia válida de la edición digital. Activa primero la edición digital e inténtalo de nuevo."},"bilo":{"noLicense":"No hay ninguna licencia válida del BILDUNGSLOGIN. Comprueba tus datos y vuelve a intentarlo.","notFound":"No se ha encontrado el título deseado. Vuelve a intentarlo más tarde.","general":"Se ha producido un error inesperado. Vuelve a intentarlo más tarde."},"iqBuddy":{"getCollectionRequestFailed":"Lamentablemente, se ha producido un error inesperado al consultar las colecciones. Vuelve a intentarlo más tarde. {{code}}","requestFailed":"Se ha producido un error inesperado durante la traducción. Vuelve a intentarlo más tarde. {{code}}","createCollectionFailed":"Lamentablemente, se ha producido un error inesperado durante la creación. Vuelve a intentarlo más tarde. {{code}}","addPhraseToCollectionFailed":"Lamentablemente, se ha producido un error inesperado al añadir la tarjeta. Vuelva a intentarlo más tarde. {{code}}","textToSpeechFailed":"Lamentablemente, se ha producido un error inesperado en la función de lectura en voz alta. Inténtalo de nuevo más tarde. {{code}}"},"select":{"multiselect":"Por favor, marque cada área individualmente.","tooLong":"Marca un máximo de 160 caracteres en cada ocasión."},"eksdi":{"failGetEksdiMap":"No se han podido cargar el ejercicio. Vuelve a intentarlo más tarde.","failGetBookSession":"Lo sentimos, no se ha podido aterrizar el ejercicio. Vuelva a intentarlo más tarde.","failResetBookSession":"Se ha producido un error inesperado durante el reinicio. Por favor, intente restablecer los ejercicios en el menú de la sección «Mi progreso» o inténtelo de nuevo más tarde.","failGetLesson":"No se ha podido encontrar el ejercicio. Vuelve a intentarlo más tarde.","failGetSolution":"Lamentablemente, no se han podido encontrar las soluciones. Vuelva a intentarlo más tarde.","submitLesson":"Lamentablemente, se ha producido un error inesperado al enviar el ejercicio. Vuelva a intentarlo más tarde.","failResetLesson":"Se ha producido un error inesperado durante el reinicio. Vuelve a intentarlo más tarde.","failGetSelftest":"Desafortunadamente, la autocomprobación no ha podido realizarse con éxito. Vuelva a intentarlo más tarde.","failSubmitSelftest":"Lamentablemente, se ha producido un error inesperado al enviar el autodiagnóstico. Vuelva a intentarlo más tarde.","failResetSelftest":"Se ha producido un error inesperado durante el reinicio. Vuelve a intentarlo más tarde."}},"dau":{"learningprogress":{"title":"Mi progreso en el aprendizaje","solvedAssignments":"Ejercicios completados","readPages":"Páginas leídas","solvedAssignmentsPercentage":"{{percentage}} % resueltas","readPagesPercentage":"{{percentage}} % leído","totalPercentage":"{{pagesPercentage}} % leído y {{assignmentsPercentage}} % resuelto","infoReadPagesTitle":"Información sobre páginas leídas","infoReadPages":"La función «Páginas leídas» te muestra cuántas páginas has trabajado o leído ya en un capítulo o en todo el libro. Una página se considera leída si la miras durante al menos 3 segundos.","filters":{"title":"Filtrar los resultados","competences":"Mostrar c
2ompetencias","edition":"Mostrar tipo de producto","format":"Mostrar tipo de prueba","reset":"Restablecer todos los filtros","editions":{"dau":"Edición digital","uhb":"Guía didáctica","eksdi":"Digital Plus alumnado"}},"reset":"Restablecer todos los ejercicios","openAssessment":"Abre el ejercicio y ve a la página {{page}}","chapterCompleted":"Capítulo completado","chapterCompletedInfo":"Cuando termines un capítulo, los profesores de tus clases podrán verlo."},"tools":{"shutters":{"top":"Arriba","bottom":"Abajo","topleft":"Arriba a la izquierda","topright":"Arriba a la derecha","bottomleft":"Abajo a la izquierda","bottomright":"Abajo a la derecha"},"config":{"fontSizeLabel":"Tamaño del texto","fontSizeButtonAriaLabel":"Abrir la configuración de texto","colorChangeButtonAriaLabelOpen":"Abrir el selector de color","colorChangeButtonAriaLabelClose":"Cerrar selector de color","delete":"Eliminar el objeto","confirm":"OK","strokeWidthLabel":"Grosor:","strokeWidthSubtstractAria":"Reducir el grosor de línea","strokeWidthInputAria":"Introducir el grosor de línea","strokeWidthAddAria":"Aumentar el grosor de línea","colorLabel":"Color:","currentColor":"Color actual:","color":{"black":"Negro","blue":"Azul","green":"Verde","red":"Rojo","orange":"Naranja","yellow":"Amarillo","custom":"Color personalizado con el código de color: {{colorCode}}"}},"text":{"placeholder":"Texto...","ariaLabel":"Entrada de texto libre en el campo de texto"},"search":{"submit":"Búsqueda","searchAria":"Buscar en documento","searchTooltip":"Buscar en documento","placeholder":"Buscar texto completo","hits":"Resultados"},"note":{"placeholder":"Nota..."},"selection":{"drawAria":"Seleccionar lápiz","rectangleAria":"Insertar área","addCommentAria":"Escribir una nota","coverPageAria":"Seleccionar el enmascaramiento de página","cursorAria":"Mover selección","markAria":"Seleccionar marcador","addTextAria":"Escribir texto libre","eraserAria":"Seleccionar goma de borrar","translationAria":"Marcar y traducir","drawTooltip":"Seleccionar lápiz","rectangleTooltip":"Insertar área","addCommentTooltip":"Escribir una nota","coverPageTooltip":"Seleccionar el enmascaramiento de página","cursorTooltip":"Mover selección","markTooltip":"Seleccionar marcador","addTextTooltip":"Escribir texto libre","eraserTooltip":"Seleccionar goma de borrar","translationTooltip":"Marcar y traducir"},"assetButtons":{"audioTooltip":"Escuchar audios","videoTooltip":"Ver vídeos","othersTooltip":"Ver más medios","exerciseTooltip":"Ver ejercicios"},"moreToolsTooltip":"Mostrar más herramientas","closeToolsTooltip":"Ocultar barra de herramientas","openToolsTooltip":"Mostrar barra de herramientas","zoomOutAria":"Reducir","zoomInAria":"Ampliar","toggleLayoutAria":"Modificar vista de página","toggleLayoutTooltip":"Modificar vista de página","toggleVersion":"Mostrar/ocultar versión","showToolsAria":"Visualizar las herramientas de dibujo","dropdownAria":"Contenido","fullscreenEnter":"Abrir el modo de pantalla completa","fullscreenExit":"Cerrar el modo de pantalla completa","removeOffline":"Eliminar sin conexión","downloadPdf":"Guardar la edición digital sin conexión","downloadAssets":"Guardar medios en la página sin conexión","noAssetsAvailableForDownload":"No hay contenidos multimedia para descargar en esta/s página/s.","bookmarkPage":"Marcar la página","bookmark":{"hoverTitle":"Marcar la versión actual de la página"},"assetFilterTooltip":"Buscar y filtrar contenidos multimedia"},"navigation":{"chapters":"Capítulos","page":"Página","pages":"Páginas","attachment":"Medio","attachments":"Medios","noAttachments":"No hay contenido multimedia adecuado para esta página.","filter":"Filtros","learningProgressLink":"Mi progreso en el aprendizaje","filters":{"apply":"Búsqueda","reset":"Restablecer","format":"Mostrar tipo de medio","edition":"Mostrar tipo de producto","totalResult":"Resultados"},"content":{"dropdownTooltip":"Mostrar contenidos","page":"Medios para esta página","overlappingContent":"Medios generales"}},"layout":{"label":"Vista:","auto":"Automáticamente"},"version":{"about":{"title":"Sobre las versiones","copy":"Al guardar los cambios, se crea una nueva ver
2sión de la edición digital al completo. La versión original sin cambios estará siempre disponible. \\n Una versión incluye todas las páginas de una edición digital. Si no alteras la versión, los cambios posteriores se guardarán en la misma versión.","ok":"OK"},"unsaved":{"title":"¿Desechar los cambios que no se hayan guardado?","copy":"Si cierras la vista de edición, se perderán todos los cambios de edición que no se hayan guardado.","abort":"Cancelar","dismiss":"Desechar"},"create":{"title":"Introducir el nombre de la versión","placeholder":"Definido por el usuario","abort":"Cancelar","save":"Guardar","validation":{"empty":"Introducir un nombre para la versión. "}},"created":{"title":"Versión creada","copy":{"0":"Tu versión {{title}} se ha creado correctamente.","1":"Abre el índice de contenidos para crear más versiones, para pasar de una versión a otra y para administrar tus versiones. En esta opción también podrás volver al original sin editar."},"confirm":"Entendido"},"checkmark":"Versión seleccionada","manage":"Gestionar las versiones","saveSuccess":"La versión se ha guardado correctamente","config":{"copy":"Las nuevas versiones son copias de las ediciones digitales originales y sin editar. Una vez que hayas creado una versión nueva, puedes duplicarla. Selecciona «Duplicar» en el menú de los tres puntos para seguir trabajando con una copia de una versión existente.","title":"Gestionar las versiones","lastModified":"Modificado por última vez","rename":"Cambiar el nombre","delete":"Eliminar la versión {{versionName}}","duplicate":"Duplicar","confirm":"OK","close":"Cerrar","renameConfirm":"OK","newversion":"Nueva versión","error":{"missing-new-version-name":"Introducir un nombre para la versión.","missing-version-name":"Introducir un nombre para la versión."},"screenReader":{"newVersion":"Nueva versión {{name}} creada correctamente.","deleteVersion":"Versión {{name}} eliminada correctamente.","duplicateVersion":"Versión {{name}} duplicada correctamente."}},"change":{"currentVersion":"(versión actual)","title":"Cambiar la versión","save":"Guardar","radioAria":"Seleccionar la versión"},"originalVersion":"Original","originalVersionUnedited":"Original (sin editar)","shared":"compartido"},"license":{"title":"Activa tu edición digital","pageTitle":"Activa tu edición digital","text":"Introduce tu clave de licencia para activar y poder hacer uso de una edición digital."},"resetAll":{"warningText":"Al reiniciar la edición digital, todos tus progresos se eliminarán de manera permanente y no podrás recuperarlos.","successText":"Tu edición digital se ha reiniciado con éxito."},"header":{"open":"Abrir encabezado","close":"Cerrar encabezado"}},"pager":{"prevAria":"Página anterior","nextAria":"Página siguiente","prevTooltip":"Página anterior","nextTooltip":"Página siguiente","inputAria":"Indicación de página","page":"Página","invalidPage":"Introduce una página válida.","screenReader":"Página {{page}}"},"license":{"success":"Licencia activada correctamente","successInfo":"Encontrarás tu producto activado en la página de resumen del título.","successPlural":"Activada correctamente la licencia para tu paquete.","successInfoPlural":"Puedes encontrar tus productos activados en la página de resumen del título correspondiente.","accept":"Entendido","openBook":"Abrir","inputError":"Introduce una código de licencia.","confirm":"Activar licencia","decline":"Cancelar","text":"¿Deseas activar la licencia de este producto ahora?","textPlural":"¿Desea activar la licencia de este paquete ahora?","textPluralWithPackageTitle":"¿Deseas activar la licencia para \\"{{packageTitle}}\\" ahora?","placeholder":"Por ejemplo, EKS-XXXXXX-XXXX-XXXX-XXX","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product-","helpAria":"Acceder a la ayuda para introducir la clave de licencia","inputBoxTitle":"Activa tu licencia","inputBoxText":"Introduce tu código de licencia una vez para activar un producto digital.","inputLabel":"Código de licencia","inputCta":"Activación","inputHelp":"¿Dónde puedo encontrar mi código de licencia?","forceActivate":"Activar de todos modos","buyAlternative":"Cancelar","expired":"La licencia ha expirado","noLicense":"No se puede acceder al contenido sin una licencia","warnings":{"noLicense":"Activa la licencia correspondiente para poder acceder a este contenido.","uhbWithMissingDau":{"title":"El Digital Plus profesorado no incluye libro de texto digital y sólo puede utilizarse en combinación con la edición digital.","subtitle":"Activa también la edición digital allango o pídela","linkText":"en nuestra tienda online."},"eksdiWithMissingDau":{"title":"El Digital Plus alumnado no incluye libro de texto digital y solo se puede utilizar en combinación con la edición digital.","subtitle":"Activa también la edición digital allango o pídela","linkText":"en nuestra tienda online."}}},"maxProduct":{"noProductFound":"No se ha encontrado ningún producto para esta ID","backToOverview":"Volver a vista general","freeContent":"Medios para este libro","freeContentDescription":"Audios, vídeos y mucho más","openFreeContent":"Ir a los medios","forFree":"Gratuitos","digitalContent":"Edición digital","digitalContentDescription":"Incluye audios, vídeos y mucho más","openDigitalContent":"Ir a la edición digital","lehrerwelt":"Digital Plus profesorado","lehrerweltDescription":"Contenido adicional para profesores. Solo puede utilizarse en combinación con las ediciones digitales.","openLehrerwelt":"Ir a la guía didáctica","lernplus":"Digital Plus alumnado","lernplusDescription":"Funciones premium y extras para alumnos/as. Solo puede utilizarse en combinación con las ediciones digitales.","openLernplus":"Ir a la edición digital con Plus alumnado","viewMore":"Más información …","languageLabel":"Idioma:","licenceLabel":"Nombre de licencia:","loginTeaser":"La edición digital solo está disponible cuando se haya iniciado sesión y con una licencia válida.","tool":"Herramienta","iqBuddy":"Abrir entrenamiento allango buddy","worksheetGenerator":{"buttonText":"Abrir generador de hojas de trabajo","link":"https://worksheet.allango.net/en/worksheet-generator"},"teachermatics":{"buttonText":"Abrir smartAssist (Beta)","link":"https://teachermatic.com/my-account/tm-redirect?init_tm_sso=1&org_id=311&lang=es"},"activitySet":{"buttonText":"Abrir el set de actividades"},"aria":{"bookCoverLinkToMaximalProductPage":"Ir al resumen del libro {{bookTitle}}","digitalContent":"Ir a la edición digital","freeContent":"Ir a los contenidos gratuitos","backToOverview":"Volver a vista general","iqBuddy":"Entrenamiento se abre en una nueva pestaña","worksheetGenerator":"Generador de hojas de trabajo se abre en una nueva pestaña","teachermatics":"smartAssist se abre en una nueva pestaña","activitySet":"El set de actividades se abre en una nueva pestaña"},"demo":{"text":"probar gratis","durationSingle":"día","durationPlural":"días","login":"Iniciar sesión ahora y "}
2,"license":{"validUntilLabel":"Válido hasta:","invalidSince":"Expirado el:","error":"No se puede consultar la licencia","free":"Medios para este libro","enterCode":"Activar ahora","inputLabel":"Clave de licencia","inputHelp":"¿Dónde puedo encontrar mi código de licencia?","inputCta":"Activación","teaserTitle":"Activa tu licencia","teaserText":"Después de iniciar sesión, introduce una vez tu código de licencia para activar un producto digital.","teaserCta":"Iniciar sesión ahora","inputTitle":"Activa tu licencia","inputText":"Introduce tu código de licencia una vez para activar un producto digital.","licenseNeeded":"Sujeto a licencia","buyEdition":{"dau":"Comprar la edición digital","uhb":"Comprar Digital Plus profesorado","lplus":"Comprar Digital Plus alumnado"}},"tabs":{"dau":"Edición digital","uhb":"Guía didáctica","lplus":"Plus alumnado"}},"metaTitle":{"welcome":"Bienvenido · allango","dashboard":"Vista general · allango","discover":"Buscar · allango","maxProduct":"{{title}} · allango","augmented":"{{title}} · Contenidos complementarios · allango","dau":"{{title}} · Edición digital · allango","uhb":"{{title}} · Guía didáctica · allango","lplus":"Plus alumnado · allango","offline":"Contenidos sin conexión · allango","bookmark":"Marcadores · allango","agb":"Condiciones de uso · allango","imprint":"Nota legal · allango","accessibility":"Declaración de accesibilidad · allango","privacy":"Protección de datos · allango","lists":"Mis listas · allango","settings":"Cuenta y ajustes · allango","userContent":"Mis marcadores y contenidos sin conexión · allango","versionInfo":"Sobre la versión · allango","library":"Biblioteca · allango","courses":"Mis clases · allango"},"consent":{"button":{"decline-all":"Rechazar todo","config":"Configurar","accept-all":"Aceptar todo","confirm":"Confirmar selección"},"checkbox":{"necessary":"Necesarias","statistic":"Estadísticas"},"info":{"hideAria":"Reducir la información","showAria":"Ampliar la información","store-title":"Almacenar y/o acceder a la información en un dispositivo (necesarias)","store-body":"En el dispositivo del usuario podrán almacenarse o accederse a las cookies, identificadores de dispositivos y demás información para garantizar la funcionalidad básica de la página web.","statistic-title":"Mediciones de contenidos, información de grupos destinatarios y desarrollo de productos (estadísticas)","statistic-body":"Esta información nos permite analizar el uso de la página web para medir y mejorar la prestación del servicio. Se puede obtener información acerca de los grupos destinatarios que han visto los contenidos. Los datos se pueden utilizar para crear o mejorar la usabilidad, los sistemas y el software."},"explain":{"necessary":{"title":"Estadísticas:","text":"Estas cookies son imprescindibles para garantizar el funcionamiento básico de la web, por ejemplo, para reproducir contenidos multimedia o iniciar sesión."},"statistic":{"title":"Estadísticas:","text":"Estas cookies nos ayudan a identificar lo atractivos que resultan los contenidos de la web a los que se accede. En consecuencia, nos permiten optimizar nuestros contenidos. En este aspecto, solo recopilamos datos anónimos."}},"title":"Configuración de las cookies","pretext":"Nosotros, nuestros <1>colaboradores</1> y <3>proveedores</3>, utilizamos mecanismos de seguimiento (en concreto, <5>cookies</5>), con el fin de optimizar y mejorar de manera constante nuestras páginas web. <br/><br/>Las finalidades del tratamiento son, en concreto:","maintext":"Al hacer clic en el botón «Aceptar todo», se acepta el tratamiento de los datos almacenados en el dispositivo o terminal, como, por ejemplo, los identificadores personales o direcciones IP para los fines de tratamiento, según el art. 25, apdo. 1, de la Ley alemana de protección de datos de servicios electrónicos de información, comunicación y de telecomunicaciones (TTDSG) y el artículo 6, apartado 1, letra a), del RGPD. Con el botón «Configurar» se seleccionan las cookies que se deseen autorizar. También se puede modificar la selección en cualquier momento en 
2«Modificar la configuración de las cookies», en la parte inferior de la web. Obtenga más información detallada al respecto en nuestra <1>Declaración de protección de datos</1> Tenga en cuenta asimismo la <3>Nota legal</3>.","customLogin":{"title":"Condiciones de uso y protección de datos","text":"¿Tienes los datos de acceso de tu libro? <br/><br/> <bold>Ten en cuenta lo siguiente:</bold> Si la cuenta va a ser utilizada por un menor de edad, un tutor legal deberá aceptar las condiciones de uso. Solo entonces se activará el acceso.","ageCheckbox":"Soy mayor de edad o actúo como padre, madre o representante legal y acepto las <1>Condiciones de uso</1>.","dataCheckbox":"He leído y tomado conocimiento de la <1>protección de datos</1>.","button":"Activar acceso"}},"uhb":{"tabopen":"Ya has abierto la guía didáctica en otra pestaña o ventana. Cambiar a esta pestaña o ventana.","license":{"title":"Activa tu Digital Plus profesorado","text":"Introduce tu clave de licencia para activar y utilizar tu Digital Plus profesorado."}},"commercialTeaser":{"buttonBuy":"Comprar ahora","opensNewTab":"Se abre en una nueva pestaña.","buttonLater":"Quizá más tarde","uhb":{"title":"Exclusivamente para profesores","text":"Con el Digital Plus profesorado, podrás organizar tus clases más fácilmente y ahorrarás aún más tiempo. <br/><br/>Te ofrece prácticos contenidos para completar la edición digital, con el detalle exacto de las páginas y acceso sin conexión.","alternativeTextWithoutAdditionalAssets":"Con el Digital Plus profesorado, podrás organizar tus clases más fácilmente y ahorrarás aún más tiempo. En una pestaña separada del navegador, ofrece una guía didáctica adecuada para la edición digital, siempre específica para cada página y relacionada con el contexto del capítulo correspondiente.","buttonBuyAria":"Comprar Digital Plus profesorado ahora","buttonOpen":"Ir a la guía didáctica","license":{"title":"¿Ya tienes una Digital Plus profesorado?","text":"Introduce tu clave de licencia para activar y utilizar tu Digital Plus profesorado."}},"dau":{"title":"Aprender y enseñar en línea","text":"Con la edición digital, dispondrás del libro en formato digital y tendrás acceso inmediato a más contenidos. <br/><br/>Benefíciate de sus amplias funciones de edición y guárdate los estados de tu trabajo en tantas versiones como desees.","additionalText":"Incluidos todos los medios para el libro:","buttonBuyAria":"Comprar ahora","buttonOpen":"Ir a la edición digital","license":{"title":"¿Ya tiene una edición digital?","text":"Introduzca su clave de licencia para acceder a su edición digital."}},"eksdi":{"title":"Próximamente disponible para alumnos/as","text":"¿Ya tienes una licencia de prueba para Digital Plus alumnado? Entonces solo tienes que introducir tu clave de licencia y empezar directamente. Si no es así, puedes alegrarte: pronto estará disponible Digital Plus alumnado en la tienda web, a juego con tu libro.<br/><br/>Te esperan funciones motivadoras y variadas que se adaptan perfectamente a tu nivel personal y a tu ritmo de aprendizaje. Para un apoyo inmediato, preciso e individualizado en el aprendizaje. Además, este libro incluye lo siguiente:","additionalText":"commercialTeaser.eksdi.additionalText ES","alternativeTextWithoutAdditionalAssets":"commercialTeaser.eksdi.alternativeTextWithoutAdditionalAssets EN","buttonBuyAria":"Comprar ahora","buttonOpen":"Ir a Digital Plus alumnado","license":{"title":"¿Ya tienes Digital Plus alumnado?","text":"Introduce tu código de licencia para activar y utilizar tu Digital Plus alumnado."}}},"upCommercial":{"content":{"demo":"Acceso de prueba","category":{"Test":{"singular":"Test","plural":"Tests"},"Lösung":{"singular":"Solución","plural":"Soluciones"},"Unterrichtshandbuch":{"singular":"Guía didáctica","plural":"Guías didácticas"},"Karte":{"singular":"Mapa","plural":"Mapas"},"Kopiervorlage":{"singular":"Hoja fotocopiable","plural":"Hojas fotocopiables"},"Tafelbild":{"singular":"Ejercicio interactivo para la pizarra digital","plural":"Ejercicios interactivos para la pizarra digital"}
2,"Transkription":{"singular":"Transcripción","plural":"Transcripciones"},"Transkript":{"singular":"Transcripción","plural":"Transcripciones"},"Video":{"singular":"Video","plural":"Videos"},"Audio":{"singular":"Audio","plural":"Audios"},"Quelle":{"singular":"Fuente bibliográfica","plural":"Fuentes bibliográficas"},"Hinweis":{"singular":"Nota","plural":"Notas"},"Wortschatz":{"singular":"Vocabulario","plural":"Vocabulario"},"Grammatik":{"singular":"Gramática","plural":"Gramática"},"Landeskunde":{"singular":"Cultura y civilización","plural":"Contenidos culturales"},"Bildmaterial":{"singular":"Material gráfico","plural":"Materiales gráficos"},"Arbeitsblatt":{"singular":"Hoja de trabajo","plural":"Hojas de trabajo"},"Spiel":{"singular":"Juego","plural":"Juegos"},"Html":{"singular":"otro contenido","plural":"otros contenidos"},"Link":{"singular":"Enlace","plural":"Enlaces"},"Pdf":{"singular":"PDF","plural":"PDF"},"PDF":{"singular":"PDF","plural":"PDF"},"File":{"singular":"Archivo","plural":"Archivos"},"Bilderbuchkino":{"singular":"Proyección del libro","plural":"Proyecciones del libro"},"Aufgabe":{"singular":"Ejercicio","plural":"Ejercicios"},"Übung":{"singular":"Ejercicio","plural":"Ejercicios"}}},"teaser":{"title":"Exclusivamente para profesores","text":"Con el Digital Plus profesorado, podrás organizar tus clases más fácilmente y ahorrarás aún más tiempo. Te ofrece prácticos contenidos para completar la edición digital, con el detalle exacto de las páginas y acceso sin conexión.","button":"Comprar ahora","buttonAria":"Comprar Digital Plus profesorado ahora","alreadyPurchasedText":"Simplifica la organización de tus clases ya mismo con contenidos para complementar la edición digital con el detalle exacto de las páginas. Flexible y rápido. "}}
2,"versionInfo":{"versionsInfoTitle":"Información de la versión","allangoLanguage":"Tu idioma en allango es: ","browserLanguage":"El idioma de tu navegador es: ","userAgent":"El encabezado de tu explorador es: ","frontend":"Tu versión de front-end es: ","backend":"Tu versión de back-end es: ","marklogic":"Tu versión de almacenamiento de datos es: ","releaseInfoTitle":"Actualizar la información de 08.09.26","releaseInfoText":"Descubre aquí todas las novedades de allango:<br/>","releaseInfoList":"<item>Se han introducido nuevas mejoras en el resumen del progreso de aprendizaje de la sección «Mis clases» para los profesores: las tareas y los capítulos que aún no se han realizado ahora se muestran con una raya en lugar de con «0 %». Por el contrario, «0 %» sigue significando que la tarea se ha realizado, pero no se ha resuelto correctamente. Nota: actualiza el progreso de aprendizaje de la clase para que se vean todos los cambios.</item> <item>El Informe de transparencia de la DSA de 2025 ya está enlazado en el aviso legal y se puede descargar desde allí.</item> <item>En todas las licencias de Digital Plus profesorado, los profesores encontrarán a partir de ahora, en la página de resumen de títulos, un enlace a la nueva función «Conjunto de actividades». Al abrir el conjunto de actividades, se aplica el idioma seleccionado en allango.</item>"},"bilo":{"landing":{"pageTitle":"BILDUNGSLOGIN ","loadingText":"Se comprobarán sus datos. Por favor, tenga un momento de paciencia."}},"ibis":{"pageTitle":"ibis acam – Iniciar sesión","loginFailedMessage":"No se ha podido completar el inicio de sesión. Inténtalo de nuevo.","retryButton":"Inténtalo de nuevo"},"eksdi":{"accessibility":{"playAudio":"Reproducir audio","dragAndDrop":{"onDragStart":"Se ha incluido el elemento de ejercicio {{activeValue}} para arrastrar.","onDragOver":"El elemento arrastrable del ejercicio {{activeValue}} se ha movido sobre el área de destino {{overIndex}}.","onDragOverEmpty":"El elemento arrastrable del ejercicio {{activeValue}} ya no se encuentra sobre un área de destino.","onDragEnd":"Se ha soltado el elemento arrastable del ejercicio {{activeValue}}.","onDragEndOver":"El elemento arrastrable del ejercicio {{activeValue}} se ha colocado sobre el área de destino {{overIndex}}.","onDragCancel":"Se ha interrumpido el movimiento. Se ha soltado el elemento arrastrable del ejercicio {{activeValue}}.","screenReaderInstructions":"Para incluir un elemento arrastrable del ejercicio, pulsa la barra espaciadora o la tecla Intro. Al arrastrar, utiliza las teclas de flechas para mover el elemento en cualquier dirección. Vuelve a pulsar la barra espaciadora o la tecla Intro para soltar el elemento en su nueva posición o bien pulsa la tecla Escape para cancelar la operación."},"sorting":{"onDragStart":"Elemento clasificable recogido en la posición {{position}} de {{itemsCount}}.","onDragOver":"El elemento clasificable se ha movido a la posición {{position}} de {{itemsCount}}.","onDragEnd":"El elemento clasificable se ha soltado en la posición {{position}} de {{itemsCount}}.","onDragCancel":"Se ha cancelado el movimiento. El elemento clasificable se ha soltado.","screenReaderInstructions":"Para recoger un elemento, pulse la barra espaciadora o la tecla Intro. Utilice las teclas de flecha arriba y abajo para actualizar la posición del elemento en la lista. Vuelve a pulsar la barra espaciadora o la tecla Intro para soltar el elemento en su nueva posición o bien pulsa la tecla Escape para cancelar la operación."}},"overview":{"linkToOverview":"Mi progreso en el aprendizaje","completedExercises":"Ejercicios resueltos","breadcrumb":"Digital Plus alumnado","continueLesson":{"continue":"Continuar ahora","nothingToContinue":"Empieza tu primera lección","start":"Empezar ahora"},"learningProgress":{"title":"Resumen","completedLessons":"Ejercicios resueltos","completedLessonsProgress":"{{doneNumber}} de {{totalNumber}}","resultAverage":"Respuestas correctas"},"chapterProgress":{"title":"Mi progreso en el aprendizaje","chapters":"Capítulos","competencies":"Competencias","chapter":"Capítulo","module":{"singular":"Módulo","plural"
2:"Módulos"},"taskGroup":{"singular":"Secuencia de ejercicios","plural":"Secuencias de ejercicios"},"didacticUnit":{"singular":"Unidad didáctica","plural":"Unidades didácticas"},"topic":{"singular":"Ejercicio","plural":"Ejercicios"},"selftest":{"singular":"Autocomprobación","plural":"Autocomprobaciones"},"sprechen":"Expresión oral","grammatik":"Gramática","wortschatz":"Vocabulario","schreiben":"Expresión escrita","hören":"Comprensión oral","aussprache":"Pronunciación","lesen":"Lectura","redemittel":"Expresiones","mediation":"Mediación","hör-seh-verstehen":"Comprensión audiovisual"}},"breadcrumbs":{"exercise":"Ejercicio {{exerciseIndex}}"},"license":{"title":"Activa tu Digital Plus alumnado","pageTitle":"Activa tu Digital Plus alumnado","text":"Introduce tu código de licencia para activar y utilizar tu Digital Plus alumnado."},"helpAndTip":{"showButton":"Mostrar consejos","hideButton":"Ocultar consejos","title":"Consejos y ayuda"},"readingText":{"showButton":"Mostrar texto de lectura","hideButton":"Ocultar texto de lectura"},"warning":{"pronounce":"Inicia tu grabación para resolver el ejercicio.","openquestion":"Por favor, introduzca algo para resolver el ejercicio."},"progress":{"progress":"Progreso:"},"navigation":{"previous":"Ejercicio anterior","next":"Ejercicio siguiente","exercise":"{{exerciseIndex}} de {{total}}"},"result":{"celebration":"¡Bien hecho!","completeLesson":"Verificar","correct":"¡Correcto!","label":"Evaluación","nextLesson":"Continuar","text":"{{correctAnswers}} de {{total}} correctas","wrong":"Incorrecto","selfEstimationTitle":"¡Evalúate a ti mismo!","resetAllTasks":"Reiniciar todos los ejercicios"},"retrySingular":"Aún te queda 1 intento","retryPlural":"Aún tienes {{retries}} intentos","reset":"Reiniciar","resetAll":{"buttonText":"Reiniciar todo","warningTitle":"¿Seguro?","warningText":"Al reiniciar Digital Plus alumnado, todos tus progresos se eliminarán de manera permanente y no podrás recuperarlos.","warningButton":"Reiniciar","successText":"Tu Digital Plus alumnado se ha reiniciado con éxito."},"newContent":{"text":"Hay una nueva versión revisada de este ejercicio disponible. Selecciona «Actualizar» para cargar la nueva versión. Tus entradas se restablecerán.","textSelftest":"Hay una nueva versión revisada de esta prueba disponible. Selecciona «Actualizar» para cargar la nueva versión. Tus entradas se restablecerán.","button":"Actualizar","warningText":"Al actualizar el ejercicio, se borrarán tus respuestas anteriores. Este paso no se puede deshacer.","warningTextSelftest":"Al actualizar la prueba, se borrarán tus respuestas anteriores. Este paso no se puede deshacer.","warningButton":"Actualizar"},"solution":{"label":"Solución"},"alternativeSolution":{"label":"También es correcto:","show":"Mostrar solución alternativa","hide":"Ocultar solución alternativa"},"task":{"completeLesson":"Verificar","label":"Tarea","showSolution":"Mostrar solución","hideSolution":"Ocultar solución","leftAttempt":"Aún te queda 1 intento","leftAttempts":"Aún tienes {{submits}} intentos"},"selftest":{"start":"Iniciar","navigateBack":"Atrás","navigateNext":"Siguiente","totalResult":"Resultado global","completeSelftest":"Finalizar","completeSelftestInfoTitle":"¿Realmente desea finalizar la prueba?","completeSelftestInfoText":"Una vez completado el test, no es posible realizar más cambios y se calcularán sus resultados. Sin embargo, puede reiniciar la prueba después de enviarla e intentarlo de nuevo.","congratulations":"Lo ha conseguido. Ha completado la prueba.","viewResults":"Ver resultados","learningProgress":"Mi progreso en el aprendizaje","reset":"Restablecer test","resetWarning":"Si reinicias el autotest, tu resultado se borrará y no se podrá recuperar.","resetSuccessful":"El test se ha reiniciado con éxito."},"gapmatch":{"words":"Palabras","sentences":"Frases","audio":"Audios"},"inlinechoice":{"placeholder":"Seleccionar"},"openQuestion":{"AI_GRAMMATIC":"Gramática","AI_BASIC":"General","sampleSolution":"Solución de ejemplo","mobileFeedback":"Comentarios de IA","loadConnection":"La conexión se está cargando...","task":"Ejercicio","error":{"basic":"Se ha producido un error inesperado al obtener los comentarios generales de IA. Vuelve a intentarlo más tarde.","grammar":"Se ha producido un error inesperado al obtener los comentarios de IA sobre gramática. Vuelve a intentarlo más tarde."},"nativeLanguage":"Idioma de respuesta","lang":{"de":"Deutsch","en":"English","es":"Español","fr":"Français","it":"Italiano","ar":"العربية","ptBR":"Português do Brasil","prs":"دری","fa":"فارسی","el":"Ελληνικά","hi":"हिन्दी","ml":"മലയാളം","ps":"پښتو","pl":"Polski","pt":"Português","ru":"Русский","deCH":"Schwyzerdütsch","ti":"ትግርኛ","tr":"Türkçe","uk":"Українська","uz":"O\'zbekcha","vi":"Tiếng Việt"}},"pronounce":{"startRecording":"Iniciar grabación","stopRecording":"Detener la grabación","retryRecording":"Volver a grabar"},"noAnswer":"No ha seleccionado una respuesta.","noEdit":"Aún no has editado nada.","notAllAnswers":"Aún no lo has marcado todo.","confirm":"OK"},"maintenance":{"title":"Breve interrupción para mejoras","text":"Estimados usuarios, <br/>Debido a trabajos de mantenimiento programados, la plataforma de aprendizaje allango no estará disponible temporalmente hoy {{endtime}}. Por favor, vuelva a visitar allango más tarde.<br/>Disculpen las molestias y les agradecemos su paciencia.<br/>Su equipo de allango","banner":"allango no estará disponible temporalmente el {{starttime}} a {{endtime}} debido a trabajos de mantenimiento. Rogamos disculpen las molestias que esto pueda ocasionar."},"aiTeaser":{"loadingMessage":"Se están generando comentarios","iqBuddy":{"teaserText":"Traducción de IA","iconLabel":"Información acerca de la IA","title":"Nota acerca de las respuestas generadas por IA","text":"Las traducciones contextualmente sensibles se fundamentan en el servicio DeepL (www.deepl.com).<br/><br/>La editorial no actúa sobre las traducciones de los proveedores de servicios generadas por IA ni tampoco sobre las traducciones reunidas para el usuario.<br/><br/>Al utilizarse la IA y los procesos estandarizados es posible que se dé lugar a resultados erróneos o que induzcan a confusión. En consecuencia, el editor no garantiza una determinada calidad de la traducción.","ok":"Entendido"},"aiFeedback":{"teaserText":"Nota acerca de las respuestas generadas por IA","iconLabel":"Información acerca de la IA","title":"Nota acerca de las respuestas generadas por IA","text":"Esta respuesta se ha creado utilizando una herramienta de IA generativa. <br/><br/> Aunque nos esforzamos por ofrecerle la información más precisa y fiable, la tecnología de IA generativa puede incluir ocasionalmente errores u omisiones. <br/><br/> El editor no se responsabiliza de las inexactitudes o malentendidos que puedan derivarse del uso de estas respuestas. <br/><br/>Asegúrese también de no introducir ningún dato personal al resolver los ejercicios.","ok":"Entendido"},"pronounceLesson":{"teaserText":"Nota acerca de las respuestas generadas por IA","iconLabel":"Información acerca de la IA","title":"Nota acerca de las respuestas generadas por IA","text":"Esta respuesta se ha creado utilizando una herramienta de IA generativa. <br/><br/> Aunque nos esforzamos por ofrecerle la información más precisa y fiable, la tecnología de IA generativa puede incluir ocasionalmente errores u omisiones. <br/><br/> El editor no se responsabiliza de las inexactitudes o malentendidos que puedan derivarse del uso de estas respuestas. <br/><br/>Asegúrese también de no introducir ningún dato personal al resolver los ejercicios.","ok":"Entendido"}},"iqBuddy":{"logoText":"Traducciones en contexto","createCollectionButtonText":"Crear nueva colección","invali
2dName":"Nombre no válido para una colección. Comprueba el texto que has introducido y vuelve a intentarlo. ","namePlaceholder":"Introducir el nombre de la colección","nameLabel":"Nombre de la colección","addToCollection":"Añadir a la colección:","addToCollectionButtonText":"Reunir","addCollectionSuccess":"Flashcard añadida con éxito a la colección","backToCollectionList":"Volver a sus colecciones","jumpToCollection":"Mis colecciones","trainingLinkText":"Ir a allango buddy","trainingInfo":{"iconAria":"Ver información sobre el entrenamiento","title":"Nota sobre el entrenamiento de vocabulario con allango buddy","text":"Todas las traducciones que recopiles en allango se guardan en allango buddy. Con este enlace abrirás allango buddy en una nueva pestaña del navegador. Allí podrás ver, editar y practicar tus fichas de aprendizaje. <br/><br/>También puedes utilizar esta función con la aplicación allango buddy para iOS o Android, simplemente con tus datos de acceso actuales de allango.","ok":"OK"},"yourTranslation":"Adaptar la traducción","checkmark":"Idioma seleccionado","licence":{"teaser":{"title":"allango buddy: entender - recoger - entrenar","imgAlt":"Logotipo de allango buddy: las letras «allango» en azul oscuro y «buddy» en naranja, en un tipo de letra moderno y redondeado. El logotipo contiene bocadillos como elemento gráfico.","text":"Con la licencia de allango buddy, puedes guardar tus traducciones de la edición digital en tus propias colecciones y utilizar flashcards para cerrar tus lagunas lingüísticas. <br/><br/>Te esperan retos diarios: allango buddy genera ejercicios personalizados a partir de tus flashcards para entrenar tu vocabulario de forma divertida.<br/><br/>También puedes utilizar allango buddy como plug-in para tu navegador para traducir textos de Internet directamente en contexto y añadirlos a tus colecciones.","textDemoExpired":"Su licencia para este producto ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo.","textLicenceExpired":"Su licencia para allango buddy ha caducado o no es válida. Compruebe su licencia e inténtelo de nuevo.","buttonLater":"Quizá más tarde","buttonBuy":"Comprar ahora","buttonDemo":"Probar gratis","license":{"title":"¿Ya tiene allango buddy?","text":"Por favor, introduzca su clave de licencia una vez para acceder a allango buddy.","unauthed":"Inicia sesión para utilizar esta función."}}},"limit":{"cardsLimit":{"title":"¡Vaya! ¡Ya has acumulado 100 traducciones en tus fichas de estudio!","text":"Lamentablemente, has alcanzado el límite gratuito. Para conseguir más fichas de aprendizaje en allango, necesitas o bien el Digital Plus alumnado a correspondiente a esta edición digital —si está disponible— o bien una suscripción «unlimited» en la aplicación allango-buddy. <br/><br/>Puedes adquirir el Digital Plus alumnado en nuestra tienda online. Complementa tu libro de texto con más opciones de aprendizaje personalizadas y es el complemento perfecto para practicar de forma autónoma y lograr un éxito de aprendizaje duradero.","webshopText":" ","webshopLink":" ","list":"Como alternativa, puedes contratar una suscripción ilimitada directamente en la aplicación allango buddy. De este modo, obtendrás funciones adicionales: <item>Crea fichas de estudio ilimitadas, tanto en allango como en la aplicación</item><item>Utiliza sin límites la traducción de fotos con reconocimiento de objetos en la aplicación</item><item>Establece allango buddy como traductor predeterminado en tu dispositivo móvil</item>"},"playStore":"Google Play Store","playStoreLink":"https://play.google.com/store/apps/details?id=net.allango.buddy.app&utm_source=emea_Med","appStore":"Apple App Store","appStoreLink":"https://apps.apple.com/de/app/allango-buddy/id6754596172","ok":"Ok"}},"meta":{"title":"allango – ¡Tu plataforma para aprender idiomas!","description":"Descubre la plataforma para el aprendizaje y la enseñanza de Ernst Klett Sprachen. ¡Probar ahora una gran variedad libros de texto y lecturas en edición digital!","keywords":"plataforma de aprendizaje; idiomas; aprender; enseñar; escuchar audios; ver vídeos; ediciones digitales; libros de texto digitales; lecturas; Ernst Klett Sprachen"}}'),Ce=JSON.parse('{"ui":{"save":"Sauvegarder","abort":"Annuler","done":"Terminé","actionOfflineDisabled":"Actions non disponibles hors connexion","ariaClose":"Fermer","ariaClear":"Réinitialiser","ariaProfile":"Profil","ariaHelp":"Aide","ariaLoading":"Chargement en cours","linkTitle":"Dirige vers : ","linkLabel":"Ouvrir le lien dans un nouvel onglet","neutralFilter":"Tou
2s","menuAria":"Plus","brand":"À gauche, il y a le logo d’Ernst Klett Sprachen. À droite, il y a le logo d’allango","brandDelta":" À gauche, il y a le logo de DELTA Publishing. À droite, il y a le logo d’allango.","darkModeTooltip":{"dark":"Mode obscur","light":"Mode clair"},"icons":{"menu":"Menu icon","arrowRight":"Arrow right icon","chevronRight":"Chevron right icon","draw":"Draw icon","rectangle":"Rectangle icon","addComment":"Add comment icon","addText":"add text icon","eraser":"Eraser icon","translation":"Translation Icon","coverPage":"Cover page icon","playlist":"List icon","download":"Download icon","version":"Version icon","bookmarkActive":"Bookmark active icon","bookmark":"Bookmark icon","sideNavShow":"Show sidenav icon","sideNavHide":"Close sidenav icon","close":"Close icon","pause":"Pause icon","play":"Play icon","question":"Questionmark icon","homeActive":"Home active icon","home":"Home icon","filter":"Filter icon","myContentActive":"Content active icon","myContent":"Content Icon","playlistActive":"Playlist active icon","profile":"Profile icon","circlePlus":"Plus icon","edit":"Edit icon","chevronDown":"Chevron down icon","chevronUp":"Chevron up icon","subtract":"Subtract icon","clear":"Clear icon","repeat":"Repeat icon","bin":"Bin icon","changeShapeOutline":"Outline change icon","tools":"Tools icon","add":"Add icon","info":"Informations","login":"Login icon","logout":"Logout icon","alertActive":"Alert active icon","checkmark":"Sélectionné","select":"Select icon","key":"Key icon","arrowLeft":"Arrow left icon","lightmode":"Lightmode icon","darkmode":"Darkmode icon","rewind":"Rewind icon","forward":"Forward icon","sound":"Sound icon","soundMute":"Sound-mute icon","fullscreen":"Fullscreen icon","fullscreenExit":"Fullscreen-exit icon","bibliothek":"Library icon","bibliothekActive":"Library icon active","cursor":"Cursor icon","checkBulletPoint":"Tick icon bullet point","correctAnswer":"Correct icon","wrongAnswer":"Wrong icon","celebration":"Celebration icon","previous":"Previous icon","next":"Next icon","collectionAdd":"Add-to-collection icon","star":"Star icon","microphone":"Microphone icon","noAnswer":"No answer icon","conversation":"Conversation icon","graduation":"Graduation icon"}},"errorPage":{"title":"Nous sommes désolés, une erreur inconnue s\'est produite.","titleSuffix":"Merci de réessayer plus tard.","error":"Erreur : ","iosErrorTitle":"la version iOS utilisée n’est plus prise en charge. ","iosError":"Merci d’actualiser ton système d’exploitation avec la dernière version iOS ou d’essayer sur un autre appareil.","repeatedDexie":"Un problème avec ta mémoire locale empêche l’action. Merci de vérifier ta mémoire et de réessayer. Si le problème persiste, merci de t’adresser à notre service clientèle.","tryAgain":"Réessayer.","backHome":"Retour à la page d’accueil"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"Français","it":"Italiano","pt":"Português","pt-br":"Português do Brasil (Beta)","tr":"Türkçe (Beta)","ru":"Русский – Бета","ua":"Українська – Бета","ae":"العربية - الإصدار التجريبي"},"breadcrumbs":{"ariaLabel":"Navigation par fil d’Ariane"},"welcome":{"title":"Bienvenue sur allango !","copy":"Découvre ta plate-forme pour apprendre et enseigner les langues facilement ! Tu y trouveras clairement et rapidement une large sélection de contenus numériques en complément de ton livre et tu pourras accéder aux éditions numériques et les adapter individuellement. Organise tous les contenus de manière flexible grâce aux fonctions pratique de la plate-forme d’apprentissage, et profite d’une assistance sur mesure pour t’aider à concevoir des cours personnalisés !  Commencer dès maintenant !","dashboard":"Vers l\'aperçu","augmented":"Vers la bibliothèque","modal":{"title":"Erreur lors de l’enregistrement","copy":"Une erreur est survenue lors de l’enregistrement/la connexion. Ton rôle n’a pas pu être pris en charge. Merci de réessayer plus tard. Si l’erreur se produit à nouveau, contacte notre équipe de support.","close"
2:"Fermer","login":"Se connecter maintenant"},"license":{"teaserTitle":"Active ta licence.","teaserText":"Après la connexion, merci de saisir une fois ta clé de licence pour activer un produit numérique.","teaserCta":"Se connecter maintenant","inputTitle":"Active ta licence.","inputText":"Merci de saisir une fois ta clé de licence pour activer un produit numérique.","inputLabel":"Clé de licence","inputHelp":"Où puis-je trouver ma clé de licence ?","inputCta":"Activer"},"search":{"title":"Trouve ton livre","label":"Merci d’entrer le titre du livre, le numéro ISBN ou le numéro de référence pour accéder aux contenus multimédias ou aux éditions numériques.","placeholder":" Par exemple 978-3-12-501070-3"}},"protected":{"unauthTitle":"Connexion requise","unauthCopy":"Tu dois te connecter pour pouvoir utiliser cette fonction.","unauthCta":"Se connecter maintenant","unautorisedTitle":"Accès refusé : autorisations insuffisantes","unautorisedCopy":"Malheureusement, votre rôle d\'utilisateur n’a pas les droits nécessaires pour accéder à cette page."},"dashboard":{"title":"Salut ","unauthTitle":"Aperçu","unauthCopy":"Tu dois te connecter pour pouvoir utiliser l’aperçu.","unauthCta":"Se connecter maintenant","recent":"Continue exactement là où tu t’es arrêté(e) : ","nointeractions":"Tu n’as utilisé encore aucun contenu ?","teaser-button":"Découvre-les maintenant","isbnLabel":"ISBN :","npLabel":"Numéro de référence ","myBooks":{"title":"Activé en dernier","all":"Tous mes livres"},"license":{"teaserTitle":"Active ta licence.","teaserText":"Après la connexion, merci de saisir une fois ta clé de licence pour activer un produit numérique.","teaserCta":"Se connecter maintenant","inputTitle":"Active ta licence.","inputText":"Merci de saisir une fois ta clé de licence pour activer un produit numérique.","inputLabel":"Clé de licence","inputHelp":"Où puis-je trouver ma clé de licence ?","inputCta":"Activer"},"search":{"title":"Trouve ton livre","text":"Merci d’entrer le titre du livre, le numéro ISBN ou le numéro de référence pour accéder aux contenus multimédias ou aux éditions numériques.","placholder":" Par exemple 978-3-12-501070-3"}},"interactions":{"playlist":"Liste"},"menu":{"logout":"Se déconnecter","login":"Se connecter maintenant","loggedInAs":"Connecté en tant que","settings":"Compte et paramètres"},"discover":{"title":"Recherche","searchLabel":"Merci d’entrer le titre du livre, le numéro ISBN ou le numéro de référence pour accéder aux contenus multimédias ou aux éditions numériques.","lastSearch":"Dernière recherche :","teaser":"Afficher tous les livres","hideExpired":"Masquer les licences expirées","result":{"resultsFor":"Résultats pour","resultsForSingle":"Résultat pour","resultsIn":"Résultats dans {{tabName}}","resultsInSingle":"Résultat dans {{tabName}}","books":"Titre du livre","noItemsFound":"Le titre du livre n’a pas pu être trouvé","noItemsFoundAdditionalText":"Ta recherche n’a malheureusement donné aucun résultat. Merci de vérifier l’orthographe ou d’essayer une recherche avec un autre mot clé. Il n’est pas possible d’entrer des clés de licence ou des codes dans le champ de recherche. Si tu as d’autres questions, consulte notre ","supportLinkText":"portail d’aide.","supportLink":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"}},"library":{"title":"Bibliothèque","myBooks":"Mes livres","allBooks":"Tous les livres","allTools":"Tous les outils","searchLabel":"Merci d’entrer le titre du livre, le numéro ISBN ou le numéro de référence pour accéder aux contenus multimédias ou aux éditions numériques.","subtitle":"Découvre les contenus adaptés à ton cours. "},"augmented":{"description-label":"Description","level-label":"Niveau","offline":"Enregistrer hors connexion","offline-remove":"Supprimer hors connexion","offline-retry":"Une erreur est survenue. Merci de réessayer.","offlineDisabled":"L’enregistrement hors connexion n’est pas pris en charge par le système d’exploitation iOS (iPhone seulement). Merci d’utiliser un autre appareil pour bénéficier de toutes les fonctionnalités.","download":"Télécharger","downloadStarted":"Le téléchargement a commencé","downloadAria":"Télécharger {{format}}","bookbookmarkedsuccess":"Livre ajouté !","bookbookmarkedfailure":"Le livre n’a pas pu être ajouté aux contenus mémorisés !","pagebookmarkedsuccess":"Page ajoutée !","pagebookmarkedfailure":"La page n’a pas pu être ajoutée aux contenus mémorisés !","contentNavigation":{"pageLabel":"Vers la page :","title":"sélection de pages manuelle","page":"Page","ponsLink":"Vers le dictionnaire en ligne PONS","invali
2dPageNumber":"Numéro de page non valide"},"contentToggle":"Sélection de pages manuelle","licenceInfo":"Je confirme en ouvrant ces contenus que j’utilise ceux-ci avec le livre imprimé, numérique ou une reproduction mise à ma disposition légalement.  Cette confirmation est nécessaire pour des raisons liées à la licence.","licenceRead":"Lu sur","noProductFound":"Aucun contenu trouvé.","backToDiscover":"Découvrir des contenus.","noAssetsOnPage":"Aucun contenu disponible sur cette page.","onlyTeacherAssets":"Ce livre donne accès à des contenus qui ne s’adressent qu’aux enseignant(e)s.","onlyTeacherAssetsNotLoggedIn":"Se connecter maintenant ! Ce livre donne accès à des contenus qui ne s’adressent qu’aux enseignant(e)s. Ils seront visibles après la connexion. "},"accesscode":{"title":"Le contenu est protégé par un code.","text":"Merci d’entrer ici le code de ton livre.","enter":"Envoyer","inputAria":"Code","page":"Page","error":"Code non valide Merci de vérifier si tu as entré le code de ton livre correctement et de réessayer."},"user-content":{"title":"Mes favoris.","unauthTitle":"Favoris et contenus hors connexion ","nav":{"bookmarks":"Favoris","offline":"Contenus hors connexion"},"offline":{"teaserTitle":"Tu n’as encore enregistré aucun contenu hors connexion.","hint1":"Utilise le menu","hint2":"pour que les contenus soient disponibles hors connexion.","link":"Vers les contenus enregistrés"}},"bookmark":{"preview":{"page":"Page","pages":"Page {{p1}} et {{p2}}","version":"Version","changeVersion":"Changer de version"},"teaser":{"title":"Connexion requise","copy":"Tu dois te connecter pour pouvoir utiliser cette fonction.","close":"Annuler","login":"Se connecter maintenant"},"bulk":{"remove":"Supprimer","download":"Enregistrer hors connexion"},"noData":"Aucun contenu enregistré trouvé.","teaserTitle":"Tu n’as encore enregistré aucun contenu.","hint1":"Utilise l\'icône des favoris","hint2":" pour retrouver facilement des contenus.","link":"Découvrir et enregistrer des contenus","removing":"supprimer...","removeSuccess":"Favori supprimé !","undo":"Annuler","searchPlaceholder":"Recherche de contenus","add":"Ajouter aux favoris","removeSingle":"Supprimer le favori","noNewBookmarks":"Il n’y a aucun favori à enregistrer.","addedSuccess":"Le favori a été ajouté.","bookmarking":"ajouter...","removeBookmarkAria":"Supprimer le favori","setBookmarkAria":"Ajouter aux favoris","removeAllBookmarksAria":"Supprimer tous les favoris","setAllBookmarksAria":"Ajouter tous les favoris","savePageOffline":"Enregistrer la page hors connexion","assetsFound":"{{count}} Résultats"},"playlist":{"title":"Mes listes","newList":"Nouvelle liste","addEntry":"Ajouter l’entrée","notFoundTitle":"La liste pas pu être trouvée. Vérifie les listes reçues pour voir si elle n’a pas été supprimée.","notAllowedTitle":"La liste ne doit pas être ouverte.","backToOverview":"Accéder à mes listes","addToPlaylist":"Ajouter à {{playlistName}}","menu":{"delete":"Supprimer la liste","share":"Partager la liste","customContent":"Ajouter l’entrée","storeOffline":"Enregistrer la liste hors connexion","remove":"Supprimer la liste","copy":"Copier la liste","ariaLabel":"Ouvrir le menu Listes"},"nav":{"private":"Modifier","received":"Recevoir","curated":"Créer une liste éditeur","curatedReceived":"De l’éditeur"},"share":{"title":"Partager la liste","generate":"Créer un lien","copy":"Copier le lien","copied":"Lien copié dans le presse-papier.","revoke":"Annuler","warning":"La liste comprend des contenus qui ne sont pas visibles pour les apprenant(e)s."},"invalidName":"Nom de liste non valide","namePlaceholder":"Entrer le nom de la liste","removeFromList":"Supprimer de la liste","addToList":"Ajouter à la liste","screenReader":{"menu":"Menu avec {{count}} entrées","menuSingular":"Menu avec une entrée","formular":"Menu avec formulaire « Créer une nouvelle liste »"},"emptyListTitle":"Liste vide","emptyListLink":{"0":"Conseil : ajoute des contenus issus de tes","1":" favoris ","2":" ou","3":" découvre de nouveaux contenus."},"emptyListsTitle":"Tu n’as pas encore de liste.","emptyListsCopy":"Une liste te permet de collecter et de classer des contenus. Tu peux partager ta liste avec des collègues ou avec des apprenant(e)s. Ainsi, tu es parfaitement préparé(e) pour le cours.","emptyListsLink":"Créer une première liste","emptyListsTitleShared":"Tu n’as pas encore reçu de liste.","emptyListsCopyShared":"Reçois des listes d’autres utilisateurs(-rices) et utilise-les comme modèle pour ton cours.","emptyListsTitleCurated":"Tu n’as encore créé de liste éditeur.","emptyListsCopyCurated":"Cet onglet n’est visible qu’en interne par la rédaction.","emptyListsTitleCuratedShared":"Tu n’as pas encore reçu de liste éditeur.","emptyListsCopyCuratedShared":"Dans les listes éditeur, la rédaction met à disposition des contenus sélectionnés sur différents thèmes ou produits didactiques. Tu recevras un lien vers une liste éditeur dans notre bulletin d’information ou sur allango pour accéder à des titres sélectionnés dans la rubrique « Médias ».","emptyListOffline":"Connecte-toi à internet pour ajouter les premiers contenus à ta liste.","entryForm":{"title":{"label":"Titre (champ obligatoire)","placeholder":"Ajouter un titre"},"comment":{"label":"Note","placeholder":"Ajouter une note","help":"Visible pour d’autres après le partage de la liste"},"description":{"label":"Description","placeholder":"Ajouter la description","help":"Visible pour d’autres après le partage de la liste"},"url":{"label":"Lien ","placeholder":"Par exemple https://www.my-weblink.com"},"required":"Le titre est obligatoire"},"addComment":"Modifier","author":"de","creationDate":"Créé le {{date}}. ","modified":"Dernière mise à jour le {{date}}.","shareButton":"Partager","copyPlaylist":"Créer une copie","addFirstEntry":"Première entrée","addedReceived":"La liste partagée a bien été reçue.","copySuccess":"La liste partagée a bien été copiée.","addedAssetMessage":"Contenu ajouté à la liste.","updateTitle":"Nom de la liste","editInfoBox":{"copy":"Pour pouvoir modifier une liste partagée avec toi, tu dois d’abord en faire une copie.","button":"Créer une copie"},"editListNameAria":"Modifier le nom de la liste","anonymsAuthor":"Anonyme","showCommentAria":"Modifier le commentaire de la liste","reorderUpAria":"Déplacer l’entrée de la liste vers le haut","reorderDownAria":"Déplacer l’entrée de la liste vers le bas :","containsAudioVideo":"Il n’est pas possible d’enregistrer des contenus audio et vidéo hors connexion sur cet appareil. Seuls les PDF et les exercices interactifs peuvent être enregistrés. Merci d’utiliser un autre appareil pour bénéficier de toutes les fonctionnalités. ","containsNotDownloadableAsset":"La liste comprend des contenus qui ne peuvent pas être téléchargés. ","deleted":"supprimé"},"course":{"title":"Mes classes","newCourse":"Nouvelle classe","downloadInstitute":"Télécharger les progrès d\'apprentissage","downloadSuccess":"Téléchargement réussi","downloadError":"Échec du téléchargement","author":"de","creationDate":"Créé le {{date}}.","modified":"Dernière mise à jour le {{date}}.","tabs":{"overview":"Progrès d\'apprentissage","members":"Apprenants","collaborators":"Co-enseignants","books":"Livres"},"overview":{"reload":"Actualiser","progressionUpdateSlow":"La mise à jour prend plus de temps que prévu. Reviens dans quelques minutes.","progressionUpdateComplete":"La progression d\'apprentissage a été mise à jour avec succès.","progressionUpdateStillRunning":"La mise à jour se poursuit en arr
2ière-plan. Recharge la page plus tard pour voir le résultat.","noProgression":"Il n\'y a actuellement aucune trace de la progression des élèves pour ce livre.","noCompetencies":"Ce livre ne contient aucun exercice associé à des compétences.","modified":"Dernière mise à jour des progrès d\'apprentissage : {{date}}","bookSelectLabel":"Livre","courseAverage":"Ø Classe","chapters":"Contenu","competencies":"Compétences","competency":"Compétence","chapter":"Chapitre/Exercice","solvedLessons":"Ø Exercices résolus","correctAnswers":"Ø Réponses correctes","total":"Total","result":"Réponses correctes","edited":"Exercices résolus","read":"Pages lues","dataChangeScreenReader":"Les données du tableau ont été modifiées en {{type}}","export":{"download":"Exporter","downloadError":"Échec du téléchargement. Merci de réessayer plus tard."},"filterInfo":{"accessibilityLabel":"Afficher les informations sur les indicateurs","title":"Remarque concernant les indicateurs","text":"Dans le menu déroulant, tu peux choisir l\'indicateur que tu souhaites consulter pour suivre les progrès de la classe :<br/><br/>« Réponses correctes » indique le pourcentage de réponses correctes.<br/>« Exercices résolus » indique le pourcentage d\'exercices traités.<br/>« Pages lues » indique le pourcentage de pages lues. Une page est considérée comme lue si tu la consultes pendant au moins 3 secondes. La progression en lecture est également visible pour les éditions numériques qui ne contiennent pas d\'exercices interactifs.","ok":"OK"},"hideSelfEvaluation":"Masquer l\'auto-évaluation","chapterCompleted":"Chapitre entièrement traité","accessibilityLabel":"Chapitre terminé"},"members":{"remove":"Supprimer des apprenants","emptyTeaser":{"title":"Cette classe ne compte encore aucun élève.","body":"Veuillez inviter des élèves à rejoindre cette classe."}},"collaborators":{"remove":"Supprimer un co-enseignant","emptyTeaser":{"title":"Cette classe ne compte encore aucun co-enseignant.","body":"Tu as la possibilité d\'inviter des co-enseignants à rejoindre cette classe."}},"books":{"remove":"Supprimer un livre","addButton":"Ajouter","emptyTeaser":{"title":"Vous n\'avez encore ajouté aucun livre.","body":"Tu peux ajouter tes livres activés à ce cours."},"add":{"title":"Ajouter à \\"{{title}}\\"","ariaLabel":"Recherche de livre","searchPlaceholder":"par exemple NP10050107000","search":"Rechercher","noBookFound":"Aucun livre approprié trouvé.","note":"Veille à ajouter précisément les manuels que tes élèves utilisent.","noteInfo":{"iconAria":"Afficher les informations sur l\'ajout de manuels","title":"Remarque concernant l\'ajout de livres","text":"Les livres enregistrés dans la gestion de classe doivent correspondre exactement à ceux de tes élèves. Il s\'agit par exemple du volume partiel ou complet, ainsi que du manuel ou du cahier d\'exercices. Le numéro NP t\'aide à identifier sans ambiguïté le bon livre. <br/><br/>Pour chaque livre ajouté, les enseignants et les élèves ont besoin d\'une licence valide.","ok":"OK"},"abort":"Annuler","saveSingle":"{{count}} Ajouter un livre","savePlural":"{{count}} Ajouter des livres"}},"emptyTeaser":{"emptyCoursesLink":"Créer une première classe","title":"Vous n\'avez pas encore de classe","body":"Grâce à la gestion de classe, tu peux suivre d\'un seul coup d\'œil les progrès de tes élèves."},"menu":{"delete":"Supprimer la classe","deleteModal":{"warningTitle":"Êtes-vous sûr ?","warningTextCourse":"La classe sera supprimée et toutes les affectations et invitations seront annulées. Les progrès des apprenants seront conservés.","warningTextBook":"Supprimer un livre de la classe.","warningTextCollaborator":"Retirer un co-enseignant de la classe.","warningTextMember":"Supprimer un apprenant de la classe.","warningTextMembership":"Me retirer de la classe.","warningButton":"Supprimer"},"share":"Partager la classe","ariaLabel":"Ouvrir le menu de la classe"},"join":{"joinSuccessful":"Tu as rejoint la classe avec succès.","leaveSuccessful":"Tu as été retiré(e) de la classe avec succès.","modal":{"joinCourseTitle":"Rejoindre la classe « {{courseId}}
2 »","joinCourseAgeConsent":"En rejoignant cette classe, je confirme que j\'ai plus de 16 ans. Dans le cas contraire, j\'ai informé mes parents ou tuteurs légaux et obtenu leur consentement.","joinCourseDataConsent":"J\'accepte que les enseignants et, si nécessaire, le personnel de mon école ou de mon établissement puissent consulter mes progrès d\'apprentissage.","joinCourseCopy":"Choisis un nom d\'affichage afin que ton enseignant puisse t\'identifier. Merci de ne pas utiliser ton vrai nom. Tu peux modifier ton nom d\'affichage à tout moment dans la section <settingsLink>Compte et paramètres</settingsLink>.","cancel":"Annuler","confirm":"Rejoindre la classe"}},"editCourseNameAria":"Modifier le nom de la classe","updateTitle":"Nom de la classe","namePlaceholder":"Saisir le nom de la classe","invalidName":"Nom de classe non valide","share":{"title":{"members":"Partager la classe avec les apprenants","collaborators":"Partager la classe avec les co-enseignants"},"copy":"Copier le lien","revoke":"Annuler","info":{"members":"Dans le cadre de ton activité scolaire ou institutionnelle, assure-toi que tous les apprenants invités sont âgés d\'au moins 16 ans ou qu\'ils ont obtenu l\'autorisation d\'un parent ou tuteur légal. En partageant le lien/code QR, tu confirmes que ces conditions sont remplies."},"generate":"Créer un lien","copied":"Lien copié dans le presse-papiers.","button":"Inviter"}},"navigation":{"ariaUserContent":"Naviguer vers les favoris et les contenus hors connexion","ariaSearch":"Naviguer vers la recherche de titre de livre","ariaDashboard":"Naviguer vers l’aperçu","ariaPlaylist":"Naviguer vers les listes","ariaCourse":"Naviguer vers les classes","ariaBibliothek":"Naviguer vers la bibliothèque","tooltipUserContent":"Mes favoris et contenus hors connexion","tooltipSearch":"Recherche","tooltipDashboard":"Aperçu","tooltipPlaylist":"Mes listes","tooltipCourse":"Mes classes","tooltipBibliothek":"Ma bibliothèque","tooltipOpenSideNavigation":"Ouvrir la navigation latérale","tooltipCloseSideNavigation":"Fermer la navigation latérale"},"pagination":{"elements":"Éléments","previous":"Page précédente","next":"Page suivante","ariaPage":"Naviguer vers la page {{page}}"},"downloadManager":{"title":"Contenus hors connexion","waiting":"Enregistrement en préparation...","downloading":"Enregistrer...","cached":"Enregistré hors connexion","notStored":"Pas enregistré","success":"Le contenu {{title}} a bien été mis en cache.","failure":"Erreur lors de la mise en cache","bulkPrepare":"Enregistrement en préparation.","offlineHint":{"1":"Les contenus enregistré hors connexion sont disponibles dans Mes favoris","2":"> Contenus hors connexion","3":""},"offlineErrorHint":"Téléchargement terminé. Certains contenus n’ont pas pu être téléchargés.","abortAll":"Tout annuler ","retryAssetAria":"Réessayer","removeAssetAria":"Supprimer le contenu","riskIconAria":"Avertissement","screenReaderStart":"Enregistrer hors connexion démarré","screenReaderEnd":"Enregistrer hors connexion terminé"},"search":{"placeholder":"p.ex. 978-3-12-501070-3","placeholderAssets":"Entrer un contenu multimédia","submitButton":"Rechercher","ariaIcon":"Recherche","myBooks":"Les miens","allBooks":"Tous les livres","allTools":"Tous les outils"},"offline":{"offline":"Hors connexion","bannerCopy":"Tu es hors connexion. Certaines fonctions ne sont pas disponibles.","disabledSearch":"La recherche n’est pas disponible sans connexion.","disabledAction":"Cette action n’est pas disponible sans connexion."},"newContent":{"copy":"Une nouvelle version est disponible. Choisis «Charger » pour mettre allango à jour.","button":"Charger","releaseInfoLinkText":"Vers les informations concernant la mise à jour"},"shared":"Partagé","install":{"prompt":"Ajouter allango à l’écran d’accueil ?","dismiss":"Annuler","install":"Installer"},"facet":{"bookPage":"Page","series":"Série","niveau":"Niveau","format":"Type de média","bookTitle":"Titre du livre","bookDescribedTitle":"Titre du livre","bezeichnung":"Titre du livre","isbn":"ISBN","type":"Type de produit"},"badge":{"teacher":"Uniquement pour les enseignant(e)s","accesslocked":"Protégé par un code","accessunlocked":"Débloquer le code","dauaccesslocked":"Protégé par un code","demo":"Accès au test","uPlus":"UnterrichtsPlus numérique","lernPlus":"LernPlus","dau":"Édition numérique","resultPercentage":"{{percentage}} % correct","selfEvaluation":"Autoévaluation","aiEvaluation":"Commentaire de l’IA","test":"Test","interactiveVideo":"Vidéo interactive"},"help":{"accesscode-where-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/360020867617-What-are-access-codes-and-where-do-I-enter-them","accesscode-where-code":"Où puis-je trouver mon code ?","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"},"resourceList":{"bookmark-all":"Enregistrer comme favori","pageFilterPrefix":"Page","page":"Page","sortPrefix":"Classer par : ","documentSingle":"Contenu","documentPlural":"Contenus","moreActions":"Plus d’actions","cancel":"Terminé","editList":"Modifier la liste","mediaFilter":"Type de média","bulkOffline":"Enregistrer hors connexion","bulkSelect":"Tout sélectionner","mediafilterAll":"Tous","noData":"Aucun contenu trouvé","selection":"Sélection  ({{count}})","sorters":{"titleAsc":"Titre de livre de A-Z","titleDesc":"Titre de livre de Z-A","timelinessAsc":"Le plus ancien en premier","timelinessDesc":"Le plus récent en premier","recentlyUsed":"Utilisé en dernier","activation":"Activé en dernier"},"downloadAudios":{"buttonText":"Télécharger le pack audio","infoIcon":"Ouvrir la remarque sur le pack audio","infoModalTitle":"Remarque sur le pack audio","infoModalText":"Le pack audio contient tous les fichiers audio de ce livre qui peuvent être téléchargés. Le téléchargement peut prendre quelques secondes.","ok":"J’ai compris"}},"asset":{"audiosTextSingular":"Écouter 1 audio","audiosTextPlural":"Écouter {{number}} audios","videosTextSingular":"Regarder 1 vidéo","videosTextPlural":"Regarder {{number}} vidéos","pdfsTextSingular":"Ouvrir 1 PDF","pdfsTextPlural":"Ouvrir {{number}} PDF","htmlsTextSingular":"Ouvrir un autre contenu","htmlsTextPlural":"Ouvrir {{number}} autres contenus","linksTextSingular":"Ouvrir 1 lien","linksTextPlural":"Ouvrir {{number}} liens","dauLinksTextSingular":"Ouvrir 1 référence","dauLinksTextPlural":"Ouvrir {{number}} références","filesTextSingular":"Ouvrir 1 fichier","filesTextPlural":"Ouvrir {{number}} fichiers","daupagesTextSingular":"Ouvrir 1 page de l’édition numérique","daupagesTextPlural":"Ouvrir {{number}} pages de l’édition numérique","assessmentsTextSingular":"Ouvrir 1 exercice","asse
2ssmentsTextPlural":"Ouvrir {{number}} exercices","selftestsTextSingular":"Ouvrir 1 autotest","selftestsTextPlural":"Ouvrir {{number}} autotests","audio":"Audio","audios":"Audios","audioPlay":"Écouter","video":"Vidéo","videos":"Vidéos","videoPlay":"regarder","pdf":"PDF","pdfs":"PDF","pdfPlay":"ouvrir","html":"autre contenu","htmls":"autres contenus","htmlPlay":"ouvrir","iframe":"Contenu interactif : {{title}}","externalLink":"Lien externe","link":"Lien","links":"Liens","linkPlay":"ouvrir","dauLink":"Référence","dauLinks":"Références","dauLinkPlay":"ouvrir","dauLinkLabel":"Page","uhbLinkLabel":"Page du manuel didactique","file":"Autre fichier","files":"Autres fichiers","filePlay":"ouvrir","daupage":"Page de l’édition numérique","daupages":"Pages de l’édition numérique","uhbpage":"Page de UnterrichtsPlus numérique","uhbpages":"Pages de UnterrichtsPlus numérique","others":"Regarder d’autres médias","assessment":"Exercice","assessments":"Exercices","selftest":"Autotest","selftests":"Autotests","menu":{"ariaLabel":"Menu de contenus"}},"settings":{"title":"Mon compte allango","personalTitle":"Informations personnelles","email":"E-mail","name":"Nom","username":"Nom affiché","ariaUsername":"Modifier le nom affiché","anonymsAuthor":"Anonyme","ssoId":"SSO-ID","security":"Sécurité","password":"Mot de passe","changePassword":"Modifier le mot de passe","ariaCancel":"Annuler","loading":"Enregistrer...","success":"Les réglages ont bien été enregistrés.","courses":"Classes","leaveC
2ourse":"Supprimer une classe","settings":"Réglages","language":"Langue","roles":"Rôles d’autorisation","rolenames":{"student":"Apprenant(e)","teacher":"Enseignant(e)","schooladmin":"Administrateur(-rice) d’un établissement","eks_content_admin":"Administrateur(-rice) de contenus EKS","admin":"Administrateur(-rice) principal","editor":"Rédacteur(-rice)"}},"footer":{"privacy":"Protection des données","imprint":"Mentions légales","terms-of-use":"Conditions d\'utilisation","cookie-consent":"Modifier les réglages des cookies","copyright":"Copyright © Ernst Klett Sprachen GmbH {{year}}","version":"Informations sur la version","accessibility":"Déclaration d’accessibilité","subscription":"Résilier l\'abonnement","subscription-url":"https://subscription.allango.net/cancel-subscription","subscription-url-delta":"https://subscription.allango.net/cancel-subscription"},"featureTeaser":{"playlist":{"title":"Mes listes","subtitle":"Organise les contenus avec tes propres listes","copy":"Crée de nouvelles listes pour les contenus de tes cours avec les noms et dans l’ordre dont tu as besoin, ajoute des liens et partage tes listes avec d’autres.","cta":"Se connecter et commencer"},"favourits":{"title":"Mes favoris","subtitle":"Retrouve des contenus importants de manière fiable","copy":"Enregistre tes contenus favoris pour ton cours, utilise les filtres pour retrouver rapidement un contenu et accède à tout moment aux contenus même hors connexion.","cta":"Se connecter et commencer"}},"pdfplayer":{"save":"Sauvegarder","close":"Fermer","page":"Page","version":"Version :","originalVersion":"Original (non modifié)","zoomInAria":"Agrandir le PDF","zoomOutAria":"Réduire le PDF ","nextPageAria":"Page PDF suivante","pageInputAria":"Navigation sur les pages PDF","prevPageAria":"Page PDF précédente","zoomSizeOriginal":"Original","zoomAria":"Sélectionner la taille du zoom. Valeur actuelle : {{value}}","pageFrom":"de"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"Fermer le mode plein écran","showInFullscreenAria":"Ouvrir le mode plein écran"},"minimize":"Minimiser","maximize":"Maximiser","pauseAria":"Pause","playAria":"Lire","forwardAria":"Avancer de 10 secondes","rewindAria":"Reculer de 10 secondes","previousAria":"Contenu média précédent","nextAria":"Contenu média suivant","sliderInputAria":"Barre de progression","taskMarker":"Exercice à {{time}}","unmute":"Allumer le son","mute":"Éteindre le son","playbackRateChangeAria":"Sélection de la vitesse de lecture","playbackRateAria":"Vitesse de lecture {{rate}}","showTrackAria":"Masquer les sous-titres","hideTrackAria":"Afficher les sous-titres","showListAria":"Afficher la liste","hideListAria":"Masquer la liste","subtitles":"Sous-titres"},"error":{"playlist":{"failCreate":"La liste n’a pas pu être créée !","failRename":"Le nom de la liste n’a pas pu être modifié !","failModify":"La liste n’a pas pu être modifiée !","failAddEntry":"L’entrée n’a pas pu être ajoutée à la liste.","failAddAsset":"Le contenu n’a pas pu être ajouté à la liste.","failDelete":"Le lien pour partager la liste n’a pas pu être supprimé.","failCopy":"La liste n’a pas pu être trouvée.","failDeleteShareLink":"La liste n’a pas pu être copiée.","playlistNotFound":"La liste n’a pas pu être effacée.","failRemoveReceived":"La liste n’a pas pu être supprimée.","noResponse":"Le service ne répond pas !","failCopyToClipboard":"Une erreur est survenue lors de la copie du lien."},"course":{"courseNotFound":"La classe est introuvable.","failCreate":"Impossible de créer la classe.","failRename":"Impossible de renommer la classe.","failModify":"Impossible de modifier la classe.","failDelete":"Impossible de supprimer la classe.","failJoin":"Impossible de rejoindre la classe.","failLeave":"Échec de la sortie de la classe.","removeFromCourse":"Impossible de retirer la personne de la classe.","failShareCourse":"Impossible de partager la classe.","failCopyToClipboard":"Impossible de copier le lien de la classe.","addToBookList":"Impossible d\'ajouter le livre à la classe.","removeFromBookList":"Impossible de retirer le livre de la classe.","progressionNotFound":"Impossible de charger la progression d\'apprentissage.","failProgressionCreate":"Impossible de créer la progression d\'apprentissage."},"settings":{"failSave":"Une erreur est survenue lors de la sauvegarde des réglages.","failGetSettings":"Les réglages n’ont pas pu être chargés."},"asset":{"failGetPdf":"Le PDF n’a pas pu être chargé.","failLoa
2dMedium":"Le média n’a pas pu être chargé.","failHtmlLoad":"L’exercice interactif n’a pas pu être chargé.","failGetAccess":"Il n’a pas été possible d’accéder au contenu. ","failGetAsset":"Le contenu n’a pas pu être trouvé.","unauthorized":"Active ton édition numérique : saisis ta clé de licence pour activer et pouvoir utiliser une édition numérique.","licenseHelp":"Où puis-je trouver ma clé de licence ?","licenseHelpLink":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","cacheDisabled":"Note que les liens contenus dans les listes ne peuvent pas être enregistrés hors connexion.","downloadAccessCodeProtected":"Certains contenus sont protégés par des codes et ne peuvent être enregistrés hors connexion que lorsque du débloques le code.","invalidAccessCode":"Code non valide Merci de vérifier si tu as entré le code de ton livre correctement et de réessayer."},"augmented":{"failGetProduct":"Le titre du livre n’a pas pu être trouvé.","failCover":"La photo de couverture n’a pas pu être trouvée."},"bookmark":{"addedFailure":"Une erreur est survenue lors de l’ajout.","removeFailure":"Les favoris n’ont pas pu être supprimés.","bookmarksNotAllowed":"Certains contenus n’ont pas pu être enregistrés.","failSearch":"Les favoris n’ont pas pu être trouvés."},"interaction":{"failPostInteraction":"","failGetInteraction":""},"search":{"failedBookSearch":"Une erreur est survenue lors de la recherche de titres de livres.","failedSuggestion":"Une erreur est survenue lors de la recherche de propositions.","failedToolSearch":"Une erreur est survenue lors de la recherche d’outils."},"general":"Une erreur est survenue.","serviceUnavailable":{"title":"Nous sommes désolés, une erreur inconnue s\'est produite. Merci de réessayer plus tard.","copy":"Ce service n’est pas disponible actuellement. Merci de réessayer plus tard.","reload":"Charger à nouveau"},"serviceTimeout":{"copy":"Malheureusement, la connexion a été interrompue en raison d’une erreur de délai d’attente. Si le problème persiste, merci de vérifier ta connexion réseau."},"pageNotFound":{"title":"La page n’a pas été trouvée","link":"Retour à l’aperçu"},"privateMode":{"title":"Une erreur liée à ton navigateur est survenue.","copy":"Vérifie dans les paramètres du navigateur si tu disposes de suffisamment de mémoire, si tu utilise la version la plus récente du navigateur ou si un administrateur d’appareil a imposé des restrictions d’utilisation. Note par ailleurs que l’utilisation de la plate-forme d’apprentissage allango ne peut pas être garantie en mode privé."},"dau":{"failedSaveVersion":"Une erreur est survenue lors de la sauvegarde de la version.","failedFilterAsset":"Une erreur est malheureusement survenue lors du filtrage des contenus multimédias. Merci de réessayer plus tard.","failGetPdf":"Le PDF n’a pas pu être chargé. Merci de réessayer plus tard.","failGetDauLearningProgress":"L\'état d\'apprentissage n\'a pas pu être chargé. Merci de réessayer plus tard.","failSetDauPageReadProgress":"La progression de la lecture de la page n\'a pas pu être enregistrée.","failSetChapterCompletion":"Il n\'a pas été possible de clore ce chapitre.","failedDeleteEdit":"La note n\'a pas pu être supprimée. Merci de réessayer plus tard."},"license":{"403":{"general":"Ta licence pour ce produit a expiré ou n\'est pas valable. Veuillez vérifier votre licence et réessayer.","Augmented":"Ta licence pour ce produit a expiré ou n\'est pas valable. Veuillez vérifier votre licence et réessayer.","Digital":"Ta licence pour l\'édition numérique a expiré ou n\'est pas valable. Veuillez vérifier votre licence et réessayer.","UHB":"Ta licence pour UnterrichtsPlus numérique a expiré ou n\'est pas valable. Veuillez vérifier votre licence et réessayer.","Eksdi":"Ta licence pour LernPlus numérique a expiré ou n\'est pas valable. Veuillez vérifier votre licence et réessayer."},"failActivateLicense":"Une erreur est survenue lors de l’activation de la licence. Merci de réessayer plus tard.","failCheckLicense":"Une erreur est survenue lors de la vérification de la licence. Merci de réessayer plus tard.","errorCode":{"100":"Code d’erreur : 100. Clé de licence non valide. Merci de vérifier ton entrée et de réessayer. ","101":"Code d’erreur : 101. La clé de licence a expiré. Merci de renouveler ta licence. ","102":"C
2ode d’erreur : 102. Le nombre maximal d’utilisateurs(-rices) est atteint pour cette clé de licence.","103":"Code d’erreur : 103. La clé de licence a déjà été activée dans un autre compte et n\'est plus valide.","104":"Code d’erreur : 104. La licence ne correspond pas au rôle d’utilisateur avec lequel tu es connecté(e). Vérifie ton rôle d’utilisateur dans ton compte client en ligne ou contacte notre service clientèle.","105":"Code d’erreur : 105. La chiave di licenza è già stata attivata in questo account. È possibile accedervi tramite la libreria o la pagina di panoramica dei titoli corrispondente.","999":"Code d’erreur : 999. Une erreur est survenue lors de la vérification de la licence.  Merci de réessayer plus tard.","null":"Code d’erreur : 000. Une erreur est survenue lors de la vérification de la licence.  Merci de réessayer plus tard."}},"demo":{"failStartDemo":"Une erreur est survenue lors de l’ouverture de l’accès au test. Merci de réessayer plus tard.","noLPlusDemoWithoutDau":"Le programme LernPlus numérique ne peut être testé qu\'avec une licence valide de l\'édition numérique. Veuillez d\'abord activer l\'édition numérique, puis réessayer."},"bilo":{"noLicense":"Aucune licence valide n’est disponible depuis le BILDUNGSLOGIN. Merci de vérifier ton entrée et de réessayer. ","notFound":"Le titre souhaité n’a pas pu être trouvé. Merci de réessayer plus tard.","general":"Une erreur imprévue est survenue. Merci de réessayer plus tard."},"iqBuddy":{"getCollectionRequestFailed":"Une erreur inattendue est malheureusement survenue lors de la consultation des collections. Merci de réessayer plus tard. {{code}}","requestFailed":"Une erreur est malheureusement survenue lors de la traduction. Merci de réessayer plus tard. {{code}}","createCollectionFailed":"Une erreur est malheureusement survenue lors de la création. Merci de réessayer plus tard. {{code}}","addPhraseToCollectionFailed":"Une erreur est malheureusement survenue lors de l\'ajout de la carte mémoire. Merci de réessayer plus tard. {{code}}","textToSpeechFailed":"Une erreur inattendue s\'est malheureusement produite lors de l\'utilisation de la fonction de lecture à voix haute. Veuillez réessayer plus tard. {{code}}"},"select":{"multiselect":"Merci de marquer chaque zone séparément.","tooLong":"Marque 160 caractères au maximum à chaque fois."},"eksdi":{"failGetEksdiMap":"Ces exercices n’ont pas été  chargés. Merci de réessayer plus tard.","failGetBookSession":"L\'exercice n\'a malheureusement pas pu être réalisé. Merci de réessayer plus tard.","failResetBookSession":"Une erreur inattendue est malheureusement survenue lors de la réinitialisation. Veuillez essayer de réinitialiser les exercices dans le menu de la section « Ma progression » ou réessayer plus tard.","failGetLesson":"Cet exercice n’a pas pu être trouvé. Merci de réessayer plus tard.","failGetSolution":"Les solutions n\'ont malheureusement pas pu être trouvées. Veuillez réessayer plus tard.","submitLesson":"Une erreur inattendue s\'est malheureusement produite lors de la transmission de la tâche. Veuillez réessayer plus tard.","failResetLesson":"Une erreur inattendue est malheureusement survenue lors de la réinitialisation. Merci de réessayer plus tard.","failGetSelftest":"L\'autotest n\'a malheureusement pas pu être effectué. Veuillez réessayer plus tard.","failSubmitSelftest":"Une erreur inattendue s\'est malheureusement produite lors de la transmission de l\'autotest. Veuillez réessayer plus tard.","failResetSelftest":"Une erreur inattendue est malheureusement survenue lors de la réinitialisation. Merci de réessayer plus tard."}},"dau":{"learningprogress":{"title":"Mes progrès d\'apprentissage","solvedAssignments":"Exercices résolus","readPages":"Pages lues","solvedAssignmentsPercentage":"{{percentage}} % résolu","readPagesPercentage":"{{percentage}} % lu","totalPercentage":"{{pagesPercentage}} % lu et {{assignmentsPercentage}} % résolu","infoReadPagesTitle":"Info sur les pages lues","infoReadPages":"La fonction « Pages lues » te montre combien de pages tu as déjà traitées ou lues dans un chapitre ou dans le livre entier. Une page est considérée comme lue si tu la regardes pendant au moins 3 secondes.","filters":{"title":"Filtrer les résultats","competences":"Afficher la compétence","edition":"Afficher le type de produit","format":"Afficher le type de test","reset":"Réinitialiser tous les filtres","editions":{"dau":"Édition numérique","uhb":"Manuel didactique","eksdi":"LernPlus numérique"}},"reset":"Réinitialiser tous les exercices","openAssessment":"Ouvre l\'exercice et passe à la page {{page}}","chapterCompleted":"Chapitre entièrement terminé","chapterCompletedInfo":"Lorsque tu termines un chapitre, cela apparaît clairement pour les enseignants de tes classes."},"tools":{"shutters":{"top":"En haut","bottom":"En bas","topleft":"En haut à gauche","to
2pright":"En haut à droite","bottomleft":"En bas à gauche","bottomright":"En bas à droite"},"config":{"fontSizeLabel":"Taille du texte","fontSizeButtonAriaLabel":"Ouvrir la configuration du texte","colorChangeButtonAriaLabelOpen":"Ouvrir le sélectionneur de couleur","colorChangeButtonAriaLabelClose":"Fermer le sélectionneur de couleur","delete":"Supprimer l’objet","confirm":"OK","strokeWidthLabel":"Épaisseur :","strokeWidthSubtstractAria":"Réduire l’épaisseur du trait","strokeWidthInputAria":"Saisie de l’épaisseur du trait","strokeWidthAddAria":"Augmenter l’épaisseur du trait","colorLabel":"Couleur :","currentColor":"Couleur actuelle :","color":{"black":"Noir","blue":"Bleu","green":"Vert","red":"Rouge","orange":"Orange","yellow":"Jaune","custom":"Couleur personnalisée avec le code couleur : {{colorCode}}"}},"text":{"placeholder":"Texte...","ariaLabel":"Saisie de texte libre dans le champ de texte"},"search":{"submit":"Rechercher","searchAria":"Chercher dans le document","searchTooltip":"Chercher dans le document","placeholder":"Chercher dans le texte complet","hits":"Résultats"},"note":{"placeholder":"Note..."},"selection":{"drawAria":"Sélectionner un crayon","rectangleAria":"Ajouter la zone","addCommentAria":"Écrire une note","coverPageAria":"Sélectionner le masquage des pages","cursorAria":"Déplacer la sélection","markAria":"Sélectionner le marqueur","addTextAria":"Écrire un texte libre","eraserAria":"Sélectionner une gomme","translationAria":"Marquer et traduire","drawTooltip":"Sélectionner un crayon","rectangleTooltip":"Ajouter la zone","addCommentTooltip":"Écrire une note","coverPageTooltip":"Sélectionner le masquage des pages","cursorTooltip":"Déplacer la sélection","markTooltip":"Sélectionner le marqueur","addTextTooltip":"Écrire un texte libre","eraserTooltip":"Sélectionner une gomme","translationTooltip":"Marquer et traduire"},"assetButtons":{"audioTooltip":"Écouter des audios","videoTooltip":"Regarder des vidéos","othersTooltip":"Regarder d’autres médias","exerciseTooltip":"Regarder des exercices"},"moreToolsTooltip":"Afficher d’autres outils","closeToolsTooltip":"Masquer la barre d\'outils","openToolsTooltip":"Afficher la barre d\'outils","zoomOutAria":"réduire","zoomInAria":"agrandir","toggleLayoutAria":"Modifier l’affichage de la page","toggleLayoutTooltip":"Modifier l’affichage de la page","toggleVersion":"Afficher/masquer la ver
2sion","showToolsAria":"Afficher les outils de dessin","dropdownAria":"Contenu","fullscreenEnter":"Ouvrir le mode plein écran","fullscreenExit":"Fermer le mode plein écran","removeOffline":"Supprimer hors connexion","downloadPdf":"Enregistrer l’édition numérique hors connexion","downloadAssets":"Enregistrer les contenus de la page hors connexion","noAssetsAvailableForDownload":"Aucun contenu multimédia disponible au téléchargement sur cette/ces page(s).","bookmarkPage":"Enregistrer la page","bookmark":{"hoverTitle":"Enregistrer la version actuelle de la page"},"assetFilterTooltip":"Rechercher et filtrer des contenus multimédias"},"layout":{"label":"Affichage :","auto":"Automatique"},"navigation":{"chapters":"Chapitres","page":"Page","pages":"Pages","attachment":"Média","attachments":"Médias","noAttachments":"Il n\'y a pas de contenu média correspondant à cette page.","filter":"Filtre","learningProgressLink":"Mes progrès d\'apprentissage","filters":{"apply":"Rechercher","reset":"Réinitialiser","format":"Montre le type de média","edition":"Montre le type de produit","totalResult":"Résultats"},"content":{"dropdownTooltip":"Montrer les contenus","page":"Médias pour cette page","overlappingContent":"Médias généraux"}},"version":{"about":{"title":"Informations sur les versions","copy":"Dès que tu enregistres les modifications, une nouvelle version de l’édition numérique complète est créée. La version originale non modifiée sera toujours disponible. \\n Une version inclut toutes les pages d’une édition numérique. Tant que tu ne changes pas de version, tes autres modifications seront enregistrées dans la même version.","ok":"OK"},"unsaved":{"title":"Rejeter les modifications non sauvegardées ?","copy":"Si tu fermes l’affichage des modifications, toutes les modifications non sauvegardées seront perdues.","abort":"Annuler","dismiss":"Rejeter"},"create":{"title":"Saisir le nom de la version","placeholder":"Défini par l’utilisateur","abort":"Annuler","save":"Sauvegarder","validation":{"empty":"Saisis un nom de version."}},"created":{"title":"Version créée","copy":{"0":"Ta version {{title}} a bien été créée.","1":"Ouvre l’aperçu des contenus pour créer d’autres versions, changer de version et gérer tes versions. Tu peux également revenir à l’original non modifié."},"confirm":"J’ai compris"},"checkmark":"Version sélectionnée","manage":"Gérer les versions","saveSuccess":"La version a bien été sauvegardée","config":{"copy":"Les nouvelles versions sont des copies de l’édition numérique originale et non modifiée. Dès que tu as créé une nouvelle version, tu peux également la dupliquer. Pour cela, sélectionne « Dupliquer » dans le menu aux trois points pour continuer à travailler avec la copie d’une version existante.","title":"Gérer les versions","lastModified":"Modifié pour la dernière fois","rename":"Changer le nom","delete":"Supprimer la version {{versionName}}","duplicate":"Dupliquer","confirm":"OK","close":"Fermer","renameConfirm":"OK","newversion":"Nouvelle version","error":{"missing-new-version-name":"Saisis un nom de version.","missing-version-name":"Saisis un nom de version."},"screenReader":{"newVersion":"Nouvelle version {{name}} créée avec succès.","deleteVersion":"Version {{name}} supprimée avec succès.","duplicateVersion":"Version {{name}} dupliquée avec succès."}},"change":{"currentVersion":"(version actuelle)","title":"Changer de version","save":"Sauvegarder","radioAria":"Sélectionner la version"},"originalVersion":"Original","originalVersionUnedited":"Original (non modifié)","shared":"partagé"},"license":{"title":"Active ton édition numérique","pageTitle":"Active ton édition numérique","text":"Saisis ta clé de licence pour activer et pouvoir utiliser une édition numérique."},"resetAll":{"warningText":"En réinitialisant l\'édition numérique, tous tes progrès seront effacés et ne pourront pas être récupérés.","successText":"Ton édition numérique a bien été réinitialisée."}
2,"header":{"open":"Ouvrir l\'en-tête","close":"Fermer l\'en-tête"}},"pager":{"prevAria":"Page précédente","nextAria":"Page précédente","prevTooltip":"Page suivante","nextTooltip":"Page suivante","inputAria":"Saisie de la page","page":"Page","invalidPage":"Saisis une page valide.","screenReader":"Page {{page}}"},"license":{"success":"La licence a bien été activée","successInfo":"Tu trouveras ton produit activé sur la page d’aperçu des titres.","successPlural":"La licence pour ton package a bien été activée.","successInfoPlural":"Tu trouveras tes produits activés sur la page d’aperçu des titres correspondante.","accept":"J’ai compris","openBook":"Ouvrir","inputError":"Merci de saisir une clé de licence.","confirm":"Activer la licence","decline":"Annuler","text":"Souhaites-tu activer maintenant la licence pour ce produit ?","textPlural":"Souhaites-tu activer maintenant la licence pour ce package ?","textPluralWithPackageTitle":"Souhaites-tu activer  la licence  \\"{{packageTitle}}\\" maintenant ?","placeholder":"p. ex. EKS-XXXXXX-XXXX-XXXX-XXX","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","helpAria":"Appeler l\'aide pour la saisie de la clé de licence","inputBoxTitle":"Active ta licence.","inputBoxText":"Merci de saisir une fois ta clé de licence pour activer un produit numérique.","inputLabel":"Clé de licence","inputCta":"Activer","inputHelp":"Où puis-je trouver ma clé de licence ?","forceActivate":"Activer quand même","buyAlternative":"Annuler","expired":"Licence expirée","noLicense":"Contenu non accessible sans licence","warnings":{"noLicense":"Active la licence correspondante pour accéder à ce contenu. ","uhbWithMissingDau":{"title":"Le produit UnterrichtsPlus numérique ne contient pas de manuel numérique et n’est utilisable qu’en combinaison avec l’édition numérique !","subtitle":"Active également l’édition numérique allango ou commande celle-ci","linkText":"dans notre boutique en ligne."},"eksdiWithMissingDau":{"title":"Le produit LernPlus numérique ne contient pas de manuel numérique et n’est utilisable qu’en combinaison avec l’édition numérique !","subtitle":"Active également l’édition numérique allango ou commande celle-ci","linkText":"dans notre boutique en ligne."}}},"maxProduct":{"noProductFound":"Aucun produit correspondant à cet ID n’a été trouvé","backToOverview":"Retour à l’aperçu","freeContent":"Médias pour ce livre","freeContentDescription":"Audios, vidéos et plus encore","openFreeContent":"Vers les médias","forFree":"Gratuits","digitalContent":"Édition numérique","digitalContentDescription":"Avec audios, vidéos et plus encore","openDigitalContent":"Vers l’édition numérique","lehrerwelt":"UnterrichtsPlus numérique","lehrerweltDescription":"Contenus complémentaires pour les enseignant(e)s. Utilisable uniquement en combinaison avec l’édition numérique","openLehrerwelt":"Vers le manuel didactique","lernplus":"LernPlus numérique","lernplusDescription":"Fonctionnalités premium et extras pour apprenant(e)s. Utilisable uniquement en combinaison avec l’édition numérique","openLernplus":"Vers l\'édition numérique avec LernPlus","viewMore":"En savoir plus...","languageLabel":"Langue :","licenceLabel":"Nom de la licence :","loginTeaser":"l’édition numérique n’est disponible que lorsque l’on est connecté et avec une licence valide.","tool":"Outil","iqBuddy":"Ouvrir l\'entraînement allango buddy","worksheetGenerator":{"buttonText":"Ouvrir générateur de feuilles de travail","link":"https://worksheet.allango.net/en/worksheet-generator"},"teachermatics":{"buttonText":"Ouvrir smartAssist (Bêta)","link":"https://teachermatic.com/my-account/tm-redirect?init_tm_sso=1&org_id=311&lang=fr"},"activitySet":{"buttonText":"Ouvrir le kit d\'activités"},"aria":{"bookCoverLinkToMaximalProductPage":"Aller à la présentation du livre {{bookTitle}}","digitalContent":"Vers l’édition numérique","freeContent":"Vers les contenus gratuits","backToOverview":"Retour à l’aperçu","iqBuddy":"Entraînement s\'ouvre dans un nouvel onglet","worksheetGenerator":"Générateur de feuilles de travail s\'ouvre dans un nouvel onglet","teachermatics":"smartAssist s\'ouvre dans un nouvel onglet","activitySet":"Le kit d\'activités s\'ouvre dans un nouvel onglet"},"demo":{"text":"tester gratuitement","durationSingle":"Jour","durationPlural":"Jours","login":"Se connecter maintenant et "}
2,"license":{"validUntilLabel":"Valable jusqu’au :","invalidSince":"A expiré le : ","error":"la licence ne peut pas être consultée","free":"Médias pour ce livre","enterCode":"Activer maintenant","inputLabel":"Clé de licence","inputHelp":"Où puis-je trouver ma clé de licence ?","inputCta":"Activer","inputTitle":"Active ta licence.","inputText":"Merci de saisir une fois ta clé de licence pour activer un produit numérique.","teaserTitle":"Active ta licence.","teaserText":"Après la connexion, merci de saisir une fois ta clé de licence pour activer un produit numérique.","teaserCta":"Se connecter maintenant","licenseNeeded":"Soumis à une licence","buyEdition":{"dau":"Acheter l\'édition numérique","uhb":"Acheter UnterrichtsPlus numérique maintenant","lplus":"Acheter LernPlus numérique"}},"tabs":{"dau":"Édition numérique","uhb":"Manuel didactique","lplus":"LernPlus numérique"}},"metaTitle":{"welcome":"Bienvenue · allango","dashboard":"Aperçu · allango","discover":"Bibliothèque · allango","maxProduct":"{{title}} · allango","augmented":"Contenus complémentaires · allango","dau":"Édition numérique · allango","uhb":"Manuel didactique · allango","lplus":"LernPlus · allango","offline":"Contenus hors connexion  · allango","bookmark":"Favoris · allango","agb":"Conditions d’utilisation · allango","imprint":"Mentions légales · allango","accessibility":"Déclaration d’accessibilité · allango","privacy":"Protection des données · allango","lists":"Mes listes · allango","settings":"Compte et réglages · allango","userContent":"Mes favoris et contenus hors connexion · allango ·","versionInfo":"Informations sur la version · allango","library":"Bibliothèque · allango","courses":"Mes classes · allango"},"consent":{"button":{"decline-all":"Tout refuser","config":"Adapter","accept-all":"Tout accepter","confirm":"Confirmer la sélection"},"checkbox":{"necessary":"Obligatoire","statistic":"Statistiques"},"info":{"hideAria":"Réduire les informations","showAria":"Montrer plus d’informations","store-title":"Stocker et/ou consulter les informations sur un appareil","store-body":"Les cookies, identificateurs d’appareil ou autres informations peuvent être stockés sur votre appareil aux fins de traitement qui vous sont indiquées.","statistic-title":"Publicités et contenus personnalisés, mesures d’annonces et de contenus, informations sur les groupes cibles et le développement de produits.","statistic-body":"Les publicités et les contenus peuvent être personnalisés en fonction d’un profil déterminé. Des données peuvent être ajoutées afin de mieux personnaliser les publicités et les contenus. Le succès des publicités et des contenus peut être mesuré. Il est possible d’obtenir des informations sur les groupes cibles qui ont consulté les publicités et les contenus. Des données peuvent être utilisées pour développer ou améliorer la convivialité, les systèmes ou les logiciels."},"explain":{"necessary":{"title":"Nécessaires :","text":"ces cookies sont absolument nécessaires pour assurer le fonctionnement de base du site, par exemple la lecture de médias ou la connexion."},"statistic":{"title":"Statistiques :","text":"ces cookies nous aident à identifier quels contenus sont attractifs pour vous en fonction de ceux que vous consultez. Ceci nous permet d’optimiser nos contenus en conséquence. À ce stade, nous ne collectons que des données anonymisées."}},"title":"Configuration des cookies","pretext":"Nous-mêmes, nos partenaires et prestataires tiers utilisons des mécanismes de suivi (notamment des cookies) dans le but de concevoir nos sites web de manière optimale pour vous et de les améliorer en permanence, ainsi que de publier des contenus et des publicités. Les différentes finalités sont les suivantes :","maintext":"En cliquant sur le bouton \\"Tout accepter\\", vous consentez au traitement des données stockées sur votre appareil ou votre terminal, telles que les identifiants personnels ou les adresses IP à ces fins de traitement conformément à l’art. 25 al. 1 de la Loi allemande sur la protection des données dans le domaine des télécommunications et des télémédias (TTDSG) et à l’art.6 al. 1 point a. du RGPD. En outre, vous consentez conformément à l’art. 49 al. 1 du RGPD à ce que des prestataires traitent également vos données aux États-Unis. Dans ce cas, il se peut que les données transmises soient traitées par des autorités locales. En cliquant sur le bouton \\"Configurer\\", vous pouvez sélectionner les cookies que vous souhaitez autoriser. De plus, vous pouvez modifier à tout moment votre sélection à la rubrique \\"Modifier les réglages des cookies\\" en bas de page du site web. Vous trouverez d’autres détails dans notre <1>Déclaration de confidentialité</1>. Tenez également compte de nos <3>Mentions légales</3>.","customLogin":{"title":"Conditions d\'utilisation et protection des données","text":"As-tu les identifiants figurant dans ton livre ? <br/><br/> <bold>Remarque :</bold> Si le compte doit être utilisé par un mineur, un parent ou tuteur légal doit accepter les conditions d\'utilisation. Ce n\'est qu\'alors que l\'accès sera activé.","ageCheckbox":"Je suis majeur(e) ou j\'agis en tant que parent ou représentant légal et j\'accepte les <1>Conditions d\'utilisation</1>.","dataCheckbox":"J\'ai lu et pris connaissance de la <1>protection des données</1>.","button":"Activer l\'accès"}},"uhb":{"tabopen":"Tu as déjà ouvert le manuel didactique dans un autre onglet/une autre fenêtre. Passe à cet onglet/cette fenêtre.","license":{"title":"Active ton UnterrichtsPlus numérique","text":"Saisis ta clé de licence pour activer et pouvoir utiliser UnterrichtsPlus numérique."}},"commercialTeaser":{"buttonBuy":"Acheter maintenant","opensNewTab":"Ouvre dans un nouvel onglet","buttonLater":"Plus tard peut-être","uhb":{"title":"En exclusivité pour les enseignant(e)s","text":"Avec UnterrichtsPlus numérique, tu peux organiser ton cours encore plus rapidement et facilement. Il te propose d’autres contenus pratiques en complément de l’édition numérique – à la page près et avec un accès hors connexion.","alternativeTextWithoutAdditionalAssets":"Avec UnterrichtsPlus numérique, tu peux organiser ton cours encore plus rapidement et facilement. Il te propose, dans un onglet séparé du navigateur, un manuel didactique adapté à l’édition numérique – toujours à la page près et adapté au contexte du chapitre en question.","buttonBuyAri
2a":"Acheter UnterrichtsPlus numérique maintenant","buttonOpen":"Vers le manuel didactique","license":{"title":"Tu as déjà UnterrichtsPlus numérique ?","text":"Saisis ta clé de licence pour consulter ton UnterrichtsPlus numérique."}},"dau":{"title":"Apprendre et enseigner en ligne","text":"Avec l’édition numérique, tu disposes du livre sous forme numérique tout en ayant un accès immédiat à d’autres contenus. Bénéficie des vastes fonctions de traitement et sauvegarde les étapes de ton travail dans autant de versions que tu le souhaites.","additionalText":"Incluant tous les médias pour ce livre :","buttonBuyAria":"Acheter maintenant","buttonOpen":"Vers l’édition numérique","license":{"title":"Tu as déjà une édition numérique ?","text":"Saisis ta clé de licence pour consulter ton édition numérique."}},"eksdi":{"title":"Bientôt disponible pour apprenant(e)s","text":"Tu disposes déjà d\'une licence d\'essai pour LernPlus numérique ? Il te suffit alors d\'entrer ta clé de licence et de commencer immédiatement. Si ce n\'est pas le cas, réjouis-toi : LernPlus numérique sera bientôt disponible dans la boutique en ligne, en complément de ton livre.<br/><br/>Tu y trouveras des fonctions motivantes et variées, qui s\'adaptent parfaitement à ton niveau personnel et à ton rythme d\'apprentissage. – Pour un soutien immédiat, précis et personnalisé dans ton apprentissage. Ce livre comprend également les éléments suivants :","additionalText":"","alternativeTextWithoutAdditionalAssets":"","buttonBuyAria":"Acheter maintenant","buttonOpen":"Vers LernPlus numérique","license":{"title":"Tu as déjà LernPlus numérique ?","text":"Saisis ta clé de licence pour consulter ton LernPlus numérique."}}},"upCommercial":{"content":{"demo":"Accès au test","category":{"Test":{"singular":"Test","plural":"Tests"},"Lösung":{"singular":"Solution","plural":"Solutions"},"Unterrichtshandbuch":{"singular":"Manuel didactique","plural":"Manuels didactiques"},"Karte":{"singular":"Carte","plural":"Cartes"},"Kopiervorlage":{"singular":"Modèle à photocopier","plural":"Modèles à photocopier"},"Tafelbild":{"singular":"Tableau interactif","plural":"Tableaux interactifs"},"Transkription":{"singular":"Transcription","plural":"Transcriptions"},"Transkript":{"singular":"Transcription","plural":"Transcriptions"},"Video":{"singular":"Vidéo","plural":"Vidéos"},"Audio":{"singular":"Audio","plural":"Audios"},"Quelle":{"singular":"Source","plural":"Sources"},"Hinweis":{"singular":"Remarque","plural":"Remarques"},"Wortschatz":{"singular":"Vocabulaire","plural":"Vocabulaires"},"Grammatik":{"singular":"Grammaire","plural":"Grammaires"},"Landeskunde":{"singular":"Culture et civilisation","plural":"Contenus culturels"},"Bildmaterial":{"singular":"Matériel visuel","plural":"Matériel visuel"},"Arbeitsblatt":{"singular":"Fiche de travail","plural":"Fiches de travail"},"Spiel":{"singular":"Jeu","plural":"Jeux"},"Html":{"singular":"autre contenu","plural":"autres contenus"},"Link":{"singular":"Lien","plural":"Liens"},"Pdf":{"singular":"PDF","plural":"PDF"},"PDF":{"singular":"PDF","plural":"PDF"},"File":{"singular":"Fichier","plural":"Fichiers"},"Bilderbuchkino":{"singular":"Cinéma illustré","plural":"Cinémas illustrés"},"Aufgabe":{"singular":"Exercice","plural":"Exercices"},"Übung":{"singular":"Exercice","plural":"Exercices"}}},"teaser":{"title":"En exclusivité pour les enseignant(e)s","text":"Avec UnterrichtsPlus numérique, tu peux organiser ton cours encore plus rapidement et facilement. Il te propose d’autres contenus pratiques en complément de l’édition numérique – à la page près et avec un accès hors connexion.","button":"Acheter maintenant","buttonAria":"Acheter UnterrichtsPlus numérique maintenant","alreadyPurchasedText":"Simplifie dès maintenant l’organisation de tes cours avec les contenus supplémentaires adaptés à la page près à ton édition numérique. Flexible et rapide."}},"versionInfo":{"versionsInfoTitle":"Informations sur la version","allangoLanguage":"Ta langue configurée sur allango est :","browserLanguage":"La langue de ton navigateur est : ","userAgent":"L’en-tête de ton navigateur est : ","frontend":"Ta version de front-end est :","backend":"Ta version de back-end est :","marklogic":"Ta version du stockage des données est : ","releaseInfoTitle":"Informations sur la mise à jour du 08.09.2026","releaseInfoText":"Découvre régulièrement tout sur les optimisations et les innovations actuelles sur allango ici:<br/>","releaseInfoList":"<item>Pour les enseignants, d’autres optimisations ont été apportées à l’aperçu des progrès d’apprentissage dans la rubrique « Mes classes » : les exercices et chapitres non encore traités s’affichent désormais avec un trait à la place de « 0 % ». En revanche, « 0 % » signifie toujours que l’exercice a été traité, mais qu’il n’a pas été résolu correctement. La mention « Exercices résolus » a été remplacée par « Exercices traités ». Remarque : veuillez actualiser la progression d’apprentissage de la classe afin que toutes les modifications soient visibles.</item> <item>Le rapport de transparence DSA 2025 est désormais accessible via un lien dans les mentions légales et peut y être téléchargé.</item> <item>Pour chaque licence UnterrichtsPlus numérique, les enseignants trouveront désormais, sur la page d’aperçu des titres, un lien vers la nouvelle fonctionnalité « Kit d’activités ». À l’ouverture du kit d’activités, la langue sélectionnée dans allango est reprise.</item>"},"bilo":{"landing":{"pageTitle":"BILDUNGSLOGIN","loadingText":"Contrôle de tes données en cours. Nous te prions de patienter."}},"ibis":{"pageTitle":"ibis acam – Connexion","loginFailedMessage":"La connexion n\'a pas pu être établie. Veuillez réessayer.","retryButton":"Réessayer"},"eksdi":{"accessibility":{"playAudio":"Lire l’audio.","dragAndDrop":{"onDragStart":"L’élément mobile {{activeValue}} a été ajouté.","onDragOver":"L’élément mobile {{activeValue}} a été déplacé sur la zone cible {{overIndex}}.","onDragOverEmpty":"L’élément mobile {{activeValue }} ne se trouve plus sur une zone cible.","onDragEnd":"L’élément mobile {{activeValue }} a été abandonné.","onDragEndOver":"L’élément mobile {{activeValue }} a été déposé sur la zone cible {{overIndex}}
2.","onDragCancel":"Le déplacement a été annulé. L’élément  {{activeValue }} a été abandonné.","screenReaderInstructions":"Pour ajouter un élément mobile, appuie sur la touche espace ou la barre d’espacement ou sur la touche d’entrée. Lorsque tu fais glisser l’élément, utilise les flèches pour le déplacer dans n’importe quelle direction. Appuie à nouveau sur la barre d’espacement ou sur la touche d’entrée pour déposer l’élément à sa nouvelle position, ou appuie sur la touche Échap pour annuler l’opération."},"sorting":{"onDragStart":"Élément classable collecté à la position {{Position}} de {{itemsCount}}.","onDragOver":"L’élément classable a été déplacé à la position {{Position}} de {{itemsCount}}.","onDragEnd":"L’élément classable a été déposé à la position {{Position}} de {{itemsCount}}.","onDragCancel":"Le déplacement a été annulé. L’élément classable a été abandonné.","screenReaderInstructions":"Pour prendre un élément, appuie sur la barre d’espacement ou sur la touche d’entrée. Utilise les flèches vers le haut et le bas pour actualiser la position de l’élément dans la liste. Appuie à nouveau sur la barre d’espacement ou sur la touche d’entrée pour déposer l’élément à sa nouvelle position, ou appuie sur la touche Échap pour annuler l’opération."}},"overview":{"linkToOverview":"Mes progrès d’apprentissage","completedExercises":"Exercices résolus","breadcrumb":"LernPlus numérique","continueLesson":{"continue":"Poursuivre maintenant","nothingToContinue":"Commence ta première leçon","start":"Démarrer maintenant"},"learningProgress":{"title":"Résumé","completedLessons":"Exercices résolus","completedLessonsProgress":"{{doneNumber}} sur {{totalNumber}}","resultAverage":"Réponses correctes"},"chapterProgress":{"title":"Mes progrès d’apprentissage","chapters":"Chapitres","competencies":"Compétences","chapter":"Chapitre","module":{"singular":"Module","plural":"Modules"},"taskGroup":{"singular":"Groupe d’exercices","plural":"Groupes d’exercices"},"didacticUnit":{"singular":"Unité didactique","plural":"Unités didactiques"},"topic":{"singular":"Exercice","plural":"Exercices"},"selftest":{"singular":"Autotest","plural":"Autotests"},"sprechen":"Expression orale","grammatik":"Grammaire","wortschatz":"Vocabulaire","schreiben":"Expression écrite","hören":"Compréhension orale","aussprache":"Prononciation","lesen":"Lecture","redemittel":"Expressions","mediation":"Médiation","hör-seh-verstehen":"Compréhension audiovisuelle"}},"breadcrumbs":{"exercise":"Exercice {{exerciseIndex}}"},"license":{"title":"Active ton LernPlus numérique","pageTitle":"Active ton LernPlus numérique","text":"Saisis ta clé de licence pour activer et pouvoir utiliser ton LernPlus numérique."},"helpAndTip":{"showButton":"Afficher des conseils","hideButton":"Masquer les conseils","title":"Conseils et aide"},"readingText":{"showButton":"Afficher le texte de lecture","hideButton":"Masquer le texte de lecture"},"warning":{"pronounce":"Commence ton enregistrement pour résoudre l’exercice.","openquestion":"Veuillez saisir quelque chose pour résoudre l’exercice."},"progress":{"progress":"Progrès :"},"navigation":{"previous":"Exercice précédent","next":"Exercice suivant","exercise":"{{exerciseIndex}} sur {{total}}"},"result":{"celebration":"Bon travail !","completeLesson":"Vérifier","correct":"Correct !","label":"Évaluation","nextLesson":"Continuer","text":"{{correctAnswers}} correctes sur {{total}}  ","wrong":"Incorrect","selfEstimationTitle":"Autoévalue-toi !","resetAllTasks":"Réinitialiser tous les exercices"},"retrySingular":"Encore 1 essai","retryPlural":"Encore {{retries}} essais","reset":"Réinitialiser","resetAll":{"buttonText":"Tout réinitialiser","warningTitle":"Tu es sûr(e) ?","warningText":"En réinitialisant LernPlus numérique, tous tes progrès seront effacés et ne pourront pas être récupérés.","warningButton":"Réinitialiser","successText":"Ton LernPlus numérique a bien été réinitialisé."},"newContent":{"text":"Une nouvelle version révisée de cet exercice est disponible. Sélectionne « Mettre à jour » pour charger la nouvelle version. Tes saisies seront alors réinitialisées.","textSelftest":"Une nouvelle version révisée de ce test est disponible. Sélectionne « Mettre à jour » pour charger la nouvelle version. Tes entrées seront alors réinitialisées.","button":"Mettre à jour","warningText":"En actualisant l\'exercice, tes réponses précédentes seront supprimées. Cette étape ne peut pas être annulée.","warningTextSelftest":"En actualisant le test, tes réponses précédentes seront effacées. Cette action ne peut pas être annulée.","warningButton":"Mettre à jour"},"solution":{"label":"Solution"},"alternativeSolution":{"label":"Également correct :","show":"Afficher la solution alternative","hide":"Masquer la solution alternative"},"task":{"completeLesson":"Vérifier","label":"Exercice","showSolution":"Afficher la solution","hideSolution":"Masquer la solution","leftAttempt":"Encore 1 essai","leftAttempts":"Encore {{submits}} essais"},"selftest":{"start":"Démarrer","navigateBack":"Retour","navigateNext":"Suivant","totalResult":"Résultat global","completeSelftest":"Terminer","completeSelftestInfoTitle":"Tu veux vraiment terminer le test ?","completeSelftestInfoText":"Une fois le test terminé, aucune autre modification n\'est possible et tes résultats sont c
2alculés. Tu peux toutefois réinitialiser le test après l\'avoir terminé et essayer à nouveau.","congratulations":"Tu as réussi ! Tu as terminé le test.","viewResults":"Voir les résultats","learningProgress":"Mes progrès d\'apprentissage","reset":"Réinitialiser le test","resetWarning":"En réinitialisant l\'auto-test, ton résultat sera effacé et ne pourra pas être récupéré.","resetSuccessful":"Ton test a bien été réinitialisé."},"gapmatch":{"words":"Mots","sentences":"Phrases","audio":"Audios"},"inlinechoice":{"placeholder":"Sélectionner"},"openQuestion":{"AI_GRAMMATIC":"Grammaire","AI_BASIC":"Général","sampleSolution":"Exemple de solution","mobileFeedback":"Commentaire de l’IA","task":"Exercice","loadConnection":"Connexion en cours...","error":{"basic":"Une erreur inattendue est survenue lors de la réception du commentaire général de l’IA Merci de réessayer plus tard.","grammar":"Une erreur inattendue est survenue lors de la réception du commentaire de l’IA sur la grammaire. Merci de réessayer plus tard."},"nativeLanguage":"Langue de réponse","lang":{"de":"Deutsch","en":"English","es":"Español","fr":"Français","it":"Italiano","ar":"العربية","ptBR":"Português do Brasil","prs":"دری","fa":"فارسی","el":"Ελληνικά","hi":"हिन्दी","ml":"മലയാളം","ps":"پښتو","pl":"Polski","pt":"Português","ru":"Русский","deCH":"Schwyzerdütsch","ti":"ትግርኛ","tr":"Türkçe","uk":"Українська","uz":"O\'zbekcha","vi":"Tiếng Việt"}},"pronounce":{"startRecording":"Démarrer l’enregistrement","stopRecording":"Terminer l’enregistrement","retryRecording":"Enregistrer à nouveau"},"noAnswer":"Tu n\'as pas choisi de réponse.","noEdit":"Vous n\'avez encore rien modifié.","notAllAnswers":"Tu n\'as pas encore tout sélectionné.","confirm":"OK"},"maintenance":{"title":"Petite interruption pour les corrections","text":"Chères utilisatrices, chers utilisateurs,<br/>En raison de travaux de maintenance programmés, la plate-forme d’apprentissage allango n’est temporairement pas disponible aujourd’hui {{endtime}}. Merci de visiter allango un peu plus tard. <br/>Nous nous excusons pour les éventuels désagréments et te remercions de ta patience.<br/>Ton équipe allango","banner":"allango ne sera temporairement pas disponible de {{starttime}} à {{endtime}} en raison de travaux de maintenance. Nous nous excusons pour d’éventuels désagréments."},"aiTeaser":{"loadingMessage":"Commentaire en cours de création","iqBuddy":{"teaserText":"Traduction par l’IA","iconLabel":"Info de l’IA.","title":"Remarque sur les réponses générées par l’IA","text":"Les traductions contextuelles se basent sur le service fourni par DeepL (www.deepl.com).<br/><br/>L’éditeur n’a aucune influence sur les traductions assistées par l’IA des prestataires ni sur les traductions affichées à l’utilisateur.<br/><br/>Lorsqu’on utilise l’intelligence artificielle et des processus standardisés, il n’est pas exclu d’obtenir des résultats inexacts ou trompeurs. Par conséquent, l’éditeur ne garantit pas une certaine qualité de traduction.","ok":"J’ai compris"},"aiFeedback":{"teaserText":"Remarque sur les réponses générées par l’IA","iconLabel":"Info de l’IA","title":"Remarque sur les réponses générées par l’IA","text":"Cette réponse a été créée à l’aide d’un outil d’IA générative. <br/><br/> Nous nous efforçons de mettre à ta disposition les informations les plus précises et les plus fiables. Toutefois, il peut arriver que la technologie d’IA générative présente des erreurs ou des omissions. <br/><br/> L’éditeur décline toute responsabilité pour d’éventuels inexactitudes ou malentendus qui pourraient dériver de l’utilisation de ces réponses. <br/><br/>Veille en outre à ne pas fournir de données personnelles lors de la résolution d\'exercices.","ok":"J’ai compris"},"pronounceLesson":{"teaserText":"Remarque sur les réponses générées par l’IA","iconLabel":"Info de l’IA","title":"Remarque sur les réponses générées par l’IA","text":"Cette réponse a été cr
2éée à l’aide d’un outil d’IA générative. <br/><br/> Nous nous efforçons de mettre à ta disposition les informations les plus précises et les plus fiables. Toutefois, il peut arriver que la technologie d’IA générative présente des erreurs ou des omissions. <br/><br/> L’éditeur décline toute responsabilité pour d’éventuels inexactitudes ou malentendus qui pourraient dériver de l’utilisation de ces réponses. <br/><br/>Veille en outre à ne pas fournir de données personnelles lors de la résolution d\'exercices.","ok":"J’ai compris"}},"iqBuddy":{"logoText":"Traductions en contexte","createCollectionButtonText":"Créer une nouvelle collection","invalidName":"Nom non valide pour une collection Merci de vérifier ton entrée et de réessayer. ","namePlaceholder":"Saisir le nom de la collection","nameLabel":"Nom de la collection","addToCollection":"Ajouter à la collection :","addToCollectionButtonText":"Collecter","addCollectionSuccess":"La carte mémoire a bien été ajoutée à la collection","backToCollectionList":"Revenir à tes collections","jumpToCollection":"Mes collections","trainingLinkText":"Aller à allango buddy","trainingInfo":{"iconAria":"Afficher les informations sur l\'entraînement","title":"Remarque concernant l\'entraînement au vocabulaire avec allango buddy","text":"Toutes les traductions que tu collectes sur allango sont enregistrées dans allango buddy. Ce lien t\'ouvre allango buddy dans un nouvel onglet de navigateur. Tu peux y consulter, modifier et t\'entraîner avec tes fiches d\'apprentissage. <br/><br/>Tu peux également utiliser cette fonctionnalité avec l\'application allango buddy pour iOS ou Android – tout simplement avec tes identifiants allango existants.","ok":"OK"},"yourTranslation":"Personnaliser la traduction","checkmark":"Langue sélectionnée","licence":{"teaser":{"title":"allango buddy : comprendre - rassembler - s\'entraîner","imgAlt":"Logo d\'allango buddy : l\'inscription \'allango\' en bleu foncé et \'buddy\' en orange, dans une police de caractères moderne et arrondie. Le logo contient des bulles comme élément graphique.","text":"Avec la licence d\'allango buddy, tu peux enregistrer tes traductions de l\'édition numérique dans tes propres collections et combler tes lacunes linguistiques de manière ciblée avec des cartes d\'apprentissage.<br/><br/>Réjouis-toi de relever des défis quotidiens : allango buddy génère des exercices personnalisés à partir de tes fiches d\'apprentissage afin d\'entraîner ton vocabulaire de manière ludique.<br/><br/>De plus, tu peux utiliser allango buddy comme plug-in pour ton navigateur, afin de traduire des textes provenant d\'Internet directement dans leur contexte et de les ajouter à tes collections.","textDemoExpired":"Ta licence d\'essai pour allango buddy a expiré ou n\'est plus valable. Veuillez vérifier votre licence et réessayer.","textLicenceExpired":"Votre licence pour allango buddy a expiré ou n\'est plus valable. Veuillez vérifier votre licence et réessayer.","buttonLater":"Plus tard peut-être","buttonBuy":"Acheter maintenant","buttonDemo":"Tester gratuitement","license":{"title":"Vous avez déjà allango buddy ?","text":"Veuillez saisir une seule fois votre clé de licence pour accéder à allango buddy.","unauthed":"Tu dois te connecter pour pouvoir utiliser cette fonction."}}},"limit":{"cardsLimit":{"title":"Waouh ! Tu as déjà accumulé 100 traductions sous forme de fiches d\'apprentissage !","text":"Tu as malheureusement atteint la limite gratuite. Pour collecter davantage de fiches d\'apprentissage sur allango, tu as besoin soit du LernPlus numérique correspondant à cette édition numérique – s\'il est disponible –, soit d\'un abonnement « unlimited » dans l\'application allango buddy. <br/><br/>Tu peux acheter le LernPlus numérique dans notre boutique en ligne. Il enrichit ton manuel de nouvelles possibilités d\'apprentissage personnalisées et constitue le complément idéal pour t\'entraîner de manière autonome et garantir un apprentissage durable !","webshopText":" ","webshopLink":" ","list":"Tu peux également souscrire un abonnement « unlimited » directement dans l\'application allango buddy. Tu bénéficieras ainsi de fonctionnalités supplémentaires : <item>Créez un nombre illimité de fiches d\'apprentissage – sur allango et dans l\'application</item><item>Utilisez sans limite la traduction par photo avec reconnaissance d\'objets dans l\'application</item><item>Définissez allango buddy comme traducteur par défaut sur votre appareil mobile</item>"},"playStore":"Google Play Store","playStoreLink":"https://play.google.com/store/apps/details?id=net.allango.buddy.app&utm_source=emea_Med","appStore":"Apple App Store","appStoreLink":"https://apps.apple.com/de/app/allango-buddy/id6754596172","ok":"Ok"}},"meta":{"title":"allango – ta plate-forme d\'apprentissage des langues !","description":"Découvre la plate-forme d\'apprentissage et d\'enseignement de Ernst Klett Sprachen. De nombreux ouvrages et lectures à tester dès maintenant en Édition Digitale !","keywords":"Plate-forme d\'apprentissage; langues; apprendre; enseigner; écouter des audios; regarder des vidéos; Éditions Digitales; livres numériques; lectures; Ernst Klett Sprachen"}}'),_e=JSON.parse('{"ui":{"save":"Salva","abort":"Annulla","done":"Fatto","actionOfflineDisabled":"L\'azione non è disponibile offline","ariaClose":"Chiudi","ariaClear":"Resettare","ariaProfile":"Profilo","ariaHelp":"Aiuto","ariaLoading":"La pagina è in fase di caricamento","linkTitle":"Rimanda a:","linkLabel":"Apre il link in una nuova scheda","neutralFilter":"Tutti","menuAria":"Di più","brand":"A sinistra c’è il logo di Ernst Klett Sprachen. A destra c’è il logo di allango","brandDelta":"A sinistra c’è il logo di DELTA Publishing. A destra c’è il logo di allango.","darkModeTooltip":{"dark":"Modalità scura","light":"Modalità chiara"},"icons":{"menu":"Menu icon","arrowRight":"Arrow right icon","chevronRight":"Chevron right icon","draw":"Draw icon","rectangle":"Rectangle icon","addComment":"Add comment icon","addText":"add text icon","eraser":"Eraser icon","translation":"Translation Icon","coverPage":"Cover page icon","playlist":"List icon","download":"Download icon","version":"Version icon","bookmarkActive":"Bookmark active icon","bookmark":"Bookmark icon","sideNavShow":"Show sidenav icon","sideNavHide":"Close sidenav icon","close"
2:"Close icon","pause":"Pause icon","play":"Play icon","question":"Questionmark icon","homeActive":"Home active icon","home":"Home icon","filter":"Filter icon","myContentActive":"Content active icon","myContent":"Content Icon","playlistActive":"Playlist active icon","profile":"Profile icon","circlePlus":"Plus icon","edit":"Edit icon","chevronDown":"Chevron down icon","chevronUp":"Chevron up icon","subtract":"Subtract icon","clear":"Clear icon","repeat":"Repeat icon","bin":"Bin icon","changeShapeOutline":"Outline change icon","tools":"Tools icon","add":"Add icon","info":"Informazioni","login":"Login icon","logout":"Logout icon","alertActive":"Alert active icon","checkmark":"Selezionato","select":"Select icon","key":"Key icon","arrowLeft":"Arrow left icon","lightmode":"Lightmode icon","darkmode":"Darkmode icon","rewind":"Rewind icon","forward":"Forward icon","sound":"Sound icon","soundMute":"Sound-mute icon","fullscreen":"Fullscreen icon","fullscreenExit":"Fullscreen-exit icon","bibliothek":"Library icon","bibliothekActive":"Library icon active","cursor":"Cursor icon","checkBulletPoint":"Tick icon bullet point","correctAnswer":"Correct icon","wrongAnswer":"Wrong icon","celebration":"Celebration icon","previous":"Previous icon","next":"Next icon","collectionAdd":"Add-to-collection icon","star":"Star icon","microphone":"Microphone icon","noAnswer":"No answer icon","conversation":"Conversation icon","graduation":"Graduation icon"}},"errorPage":{"title":"Siamo spiacenti, si è verificato un errore sconosciuto.","titleSuffix":"Riprova più tardi.","error":"Errore","iosErrorTitle":"Questa versione di iOS non è più supportata","iosError":"Aggiorna il sistema operativo caricando la versione più recente di iOS o prova con un altro dispositivo.","repeatedDexie":"Un problema con la memoria locale non permette di portare a termine l\'azione. Verifica lo stato della memoria del tuo dispositivo e riprova. Se il problema persiste, contatta il nostro servizio clienti.","tryAgain":"Riprova","backHome":"Torna alla homepage"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"Français","it":"Italiano","pt":"Português","pt-br":"Português do Brasil (Beta)","tr":"Türkçe (Beta)","ru":"Русский – Бета","ua":"Українська – Бета","ae":"العربية - الإصدار التجريبي"},"breadcrumbs":{"ariaLabel":"Navigazione a breadcrumb"},"welcome":{"title":"Ti diamo il benvenuto sulla piattaforma allango!","copy":"Scopri la piattaforma che ti permette di apprendere e insegnare facilmente le lingue! Qui trovi facilmente un\'ampia e ben organizzata scelta di complementi digitali per il tuo libro e puoi accedere alle Edizioni Digitali e personalizzarle. Le pratiche funzioni della piattaforma di apprendimento permettono di organizzare tutti i contenuti in modo flessibile, mentre il supporto su misura facilita la pianificazione  delle lezioni individuali! Cosa aspetti? Inizia subito!","dashboard":"Vai alla bacheca","augmented":"Vai alla biblioteca","modal":{"title":"Si è verificato un errore durante la registrazione ","copy":"Si è verificato un errore durante la registrazione o il login. Non è stato possibile acquisire il tuo ruolo. Riprova. Se l\'errore persiste, contatta il servizio tecnico.","close":"Chiudi","login":"Accedi ora"},"license":{"teaserTitle":"Attiva la licenza","teaserText":"Dopo aver effettuato il login, inserisci  una tantum il codice della licenza per attivare un prodotto digitale.","teaserCta":"Accedi ora","inputTitle":"Attiva la tua licenza","inputText":"Per favore inserisci il tuo codice della licenza per attivare un prodotto digitale.","inputLabel":"Chiave di licenza","inputHelp":"Dove trovo la mia chiave di licenza?","inputCta":"Attivare"},"search":{"title":"Trova il tuo libro","label":"Per accedere ai contenuti multimedia o alle edizioni digitali inserisci il titolo del libro, il numero ISBN o il numero d\'ordine.","placeholder":"Per esempio 978-3-12-501070-3"}},"protected":{"unauthTitle":"È necessario effettuare il login","unauthCopy":"Per utilizzare questa funzione devi effettuare prima il login","unauthCta":"Accedi ora","unautorisedTitle":"Accesso negato: le autorizzazioni sono insufficienti","unautorisedCopy":"Ci dispiace, il tuo ruolo utente non è autorizzato ad accedere a questa pagina."},"dashboard":{"title":"Ti diamo il benvenuto","unauthTitle":"Bacheca","unauthCopy":"Effettua il login per poter utilizzare la bacheca.","unauthCta":"Accedi ora","recent":"Riprendi dal punto in cui hai terminato nella sessione precedente","nointeractions":"Non hai ancora utilizzato nessun contenuto?","teaser-button":"Scopri ora","isbnLabel":"ISBN:","npLabel":"Numero d\'ordine","myBooks":{"title":"Ultima attivazione","all":"Tutti i miei libri"},"license":{"teaserTitle":"Attiva la tua licenza","teaserText":"Per attivare un prodotto digitale, inserisci il codice della licenza dopo aver effettuato il login.","teaserCta":"Accedi ora","inputTitle":"Attiva la tua licenza","inputText":"Inserisci la tua chiave di licenza per attivare un prodotto digitale.","input
2Label":"Chiave di licenza","inputHelp":"Dove trovo la mia chiave di licenza?","inputCta":"Attivazione"},"search":{"title":"Trova il tuo libro","text":"Per accedere ai contenuti multimedia o alle edizioni digitali inserisci il titolo del libro, il numero ISBN o il numero d\'ordine.","placholder":"Per esempio 978-3-12-501070-3"}},"interactions":{"playlist":"Lista"},"menu":{"logout":"Esci","login":"Accedi ora","loggedInAs":"Sessione iniziata come","settings":"Account e impostazioni"},"discover":{"title":"Cerca","searchLabel":"Per accedere ai contenuti multimedia o alle edizioni digitali inserisci il titolo del libro, il numero ISBN o il numero d\'ordine.","lastSearch":"Ultima ricerca:","teaser":"Visualizza tutti i libri","hideExpired":"Nascondere le licenze scadute","result":{"resultsFor":"Risultati per ","resultsForSingle":"Risultato per ","resultsIn":"Risultati in {{tabName}}","resultsInSingle":"Risultato in {{tabName}}","books":"Titolo del libro","noItemsFound":"Non si trova il titolo del libro","noItemsFoundAdditionalText":"La tua ricerca non ha prodotto alcun risultato. Controlla l\'ortografia o prova con un altro termine di ricerca. Nel campo di ricerca non si possono inserire né chiavi di licenza né codici. Se hai altre domande, visita il nostro ","supportLinkText":"portale di aiuto","supportLink":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"}},"library":{"title":"Biblioteca","myBooks":"I miei libri","allBooks":"Tutti i libri","allTools":"Tutti gli strumenti","searchLabel":"Per accedere ai contenuti multimedia o alle edizioni digitali inserisci il titolo del libro, il numero ISBN o il numero d\'ordine.","subtitle":"Scopri i contenuti adatti alla tua lezione."},"augmented":{"description-label":"Descrizione","level-label":"Livello","offline":"Salva offline","offline-remove":"Elimina offline","offline-retry":"C\'è stato un errore, riprova.","offlineDisabled":"Il sistema operativo iOS (solo iPhone) non supporta il salvataggio offline. Per usufruire di tutte le funzionalità, utilizza un altro dispositivo.","download":"Scarica","downloadStarted":"Il download è iniziato","downloadAria":"Scarica {{format}}","bookbookmarkedsuccess":"Libro inserito fra i preferiti!","bookbookmarkedfailure":"Non è stato possibile inserira il libro fra i contenuti preferiti","pagebookmarkedsuccess":"Pagina inserita fra i preferiti!","pagebookmarkedfailure":"Non è stato possibile inserire la pagina fra i preferiti!","contentNavigation":{"pageLabel":"Vai alla pagina:","title":"Selezione manuale delle pagine","page":"Pagina","ponsLink":"Vai al dizionario PONS online","invalidPageNumber":"Il numero della pagina non è corretto"},"contentToggle":"Selezione manuale delle pagine","licenceInfo":"Accedendo a questi contenuti confermo di usarli assieme al libro cartaceo, quello digitale o a una copia messa disposizione legalmente. Questa conferma è necessaria per motivi legati alla licenza.","licenceRead":"Letto","noProductFound":"Non si è trovato nessun contenuto","backToDiscover":"Scopri i contenuti disponibili","noAssetsOnPage":"In questa pagina non ci sono contenuti disponibili.","onlyTeacherAssets":"Alcuni contenuti disponibili per questo libro sono rilevanti solo per chi insegna.","onlyTeacherAssetsNotLoggedIn":"Accedi ora! Alcuni contenuti disponibili per questo libro sono rilevanti solo per chi insegna e vengono visualizzati solo dopo il login."},"accesscode":{"title":"Il contenuto è protetto da un codice.","text":"Introduci qui il codice indicato nel tuo libro.","enter":"Invia","inputAria":"Codice","page":"Pagina","error":"Il codice non è valido. Verifica se hai inserito correttamente il codice indicato sul tuo libro e riprova."},"user-content":{"title":"I miei preferiti","unauthTitle":"Preferiti e contenuti offline","nav":{"bookmarks":"Preferiti","offline":"Contenuti offline"},"offline":{"teaserTitle":"Non hai ancora salvato nessun contenuto offline.","hint1":"Utilizza il menù","hint2":"per rendere disponibili  offline i contenuti.","link":"Vai ai contenuti inseriti nei preferiti"}},"bookmark":{"preview":{"page":"Pagina","pages":"Pagine {{p1}} e {{p2}}","version":"Versione","changeVersion":"Passa a un\'altra versione"},"teaser":{"title":"È necessario effettuare il login","copy":"Effettua il login per poter utilizzare questa funzione","close"
2:"Cancella","login":"Accedi ora"},"bulk":{"remove":"Elimina","download":"Salva offline"},"noData":"Non si sono incontrati contenuti inseriti fra i preferiti","teaserTitle":"Non hai ancora inserito nessun contenuto fra i preferiti","hint1":"Utilizza l\'icona dei preferiti","hint2":"per ritrovare facilmente i contenuti salvati.","link":"Scopri e inserisci i contenuti fra i preferiti","removing":"Rimuovi","removeSuccess":"Rimosso dai preferiti!","undo":"Annulla","searchPlaceholder":"Cerca per contenuti","add":"Aggiungi fra i preferiti","removeSingle":"Rimuovi dai preferiti","noNewBookmarks":"Non ci sono nuovi preferiti da salvare.","addedSuccess":"Aggiunto correttamente fra i preferiti","bookmarking":"Aggiungi","removeBookmarkAria":"Rimuovi dai preferiti","setBookmarkAria":"Aggiungi ai preferiti","removeAllBookmarksAria":"Rimuovi tutti i preferiti","setAllBookmarksAria":"Aggiungi tutti fra i preferiti","savePageOffline":"Salva la pagine offline","assetsFound":"{{count}} Risultati"},"playlist":{"title":"Le mie liste","newList":"Nuova lista","addEntry":"Aggiungi una voce","notFoundTitle":"Non è stato possibile trovare la lista. Verifica se è stata cancellata dalle liste ricevute.","notAllowedTitle":"La lista non si può aprire","backToOverview":"Prosegui e vai alle mie liste","addToPlaylist":"Aggiungi a {{playlistName}}","menu":{"delete":"Cancella la lista","share":"Condividi la lista","customContent":"Aggiungi una voce","storeOffline":"Salva la lista offline","remove":"Elimina la lista","copy":"Copia la lista","ariaLabel":"Apri il menù delle liste"},"nav":{"private":"Modifica","received":"Ricevute","curated":"Crea una lista di case editrici","curatedReceived":"Della casa editrice"},"share":{"title":"Condividi la lista","generate":"Crea un link","copy":"Copia il link","copied":"Link copiato negli appunti","revoke":"Annulla","warning":"Nella lista ci sono contenuti che non sono visibili per gli studenti."},"invalidName":"Il nome della lista non è corretto","namePlaceholder":"Inserisci il nome della lista","removeFromList":"Elimina dalla lista","addToList":"Aggiungi alla lista","screenReader":{"menu":"Menu con {{count}} voci","menuSingular":"Menu con una voce","formular":"Menu con modulo “Crea nuovo lista”"},"emptyListTitle":"Lista vuota","emptyListLink":{"0":"Consiglio: aggiungi contenuti prendendoli da quelli","1":"inseriti fra i preferiti","2":"oppure","3":"scopri nuovi contenuti"},"emptyListsTitle":"Non hai nessuna lista","emptyListsCopy":"In una lista puoi raccogliere e ordinare contenuti. La lista la puoi condividere con i colleghi e le colleghe o con gli studenti. In questo modo potrai preparare al meglio la lezione. ","emptyListsLink":"Crea la prima lista","emptyListsTitleShared":"Non hai ancora ricevuto nessuna lista.","emptyListsCopyShared":"Ricevi le liste di altri/altre utenti e usale come modello per la tua lezione ","emptyListsTitleCurated":"Non hai ancora creato una lista di case editrici.","emptyListsCopyCurated":"Questa scheda è visibile solo alla redazione per uso interno.","emptyListsTitleCuratedShared":"Non hai ancora ricevuto nessuna lista di case editrici.","emptyListsCopyCuratedShared":"Le liste delle case editrici permettono alla redazione di selezionare contenuti specifici per diversi argomenti didattici o prodotti. Un link per accedere a una lista di case editrici si trova nella nostra newsletter o, per i titoli selezionati, nella sezione “Media” all\'interno di allango.","emptyListOffline":"Collegati a Internet per aggiungere i primi contenuti alla tua lista.","entryForm":{"title":{"label":"Titolo (campo obbligatorio)","placeholder":"Aggiungi un titolo"},"comment":{"label":"Nota","placeholder":"Aggiungi una nota","help":"Visibile per altri dopo aver condiviso la lista"},"description":{"label":"Descrizione","placeholder":"Aggiungi una descrizione","help":" Visibile per altri dopo aver condiviso la lista"},"url":{"label":"Collegamento web","placeholder":"Per esempio: https://www.my-weblink.com"},"required":"Il titolo è obbligatorio"},"addComment":"Modifica","author":"da","creationDate":"Creato il {{date}}.","modified":"Ultimo aggiornamento del {{date}}.","shareButton":"Condividi","copyPlaylist":"Crea una copia","addFirstEntry":"Prima voce inserita","addedReceived":"La lista condivisa è stata ricevuta correttamente.","copySuccess":"La lista condivisa è stata copiata correttamente.","addedAssetMessage":"Il contenuto è stato aggiunto alla lista.","updateTitle":"Nome della lista","editInfoBox":{"copy":"Per poter modificare una lista condivisa con te devi prima farne una copia.","button":"Crea una copia"},"editListNameAria":"Modifica il nome della lista","anonymsAuthor":"Anonimo","showCommentAria":"Modifica un commento della lista","reorderUpAria":"Sposta la voce della lista verso l\'alto","reorderDownAria":"Sposta la voce della lista verso il basso","containsAudioVideo":"Su questo dispositivo non è possibile salvare  gli audio e i video offline. Vengono salvati solo i PDF e gli esercizi interattivi. Per poter utilizzare tutte le funzionalità disponibili usa un altro dispositivo.","containsNotDownloadableAsset":"Nella lista ci sono contenuti che non si possono scaricare.","deleted":"cancellato"},"course":{"title":"Le mie classi","newCourse":"Nuova classe","downloadInstitute":"Scarica i progressi di apprendimento","downloadSuccess":"Download completato con successo","downloadError":"Download non riuscito","author":"di","creationDate":"Creato il {{date}}.","modified":"Ultimo aggiornamento il {{date}}.","tabs":{"overview":"Progressi nell\'apprendimento","members":"Studenti","collaborators":"Co-insegnanti","books":"Libri"},"overview":{"reload":"Aggiorna","progressionUpdateSlow":"L\'aggiornamento richiede più tempo del previsto. Riprova tra qualche minuto.","progressionUpdateComplete":"I progressi nell\'apprendimento sono stati aggiornati con successo.","progressionUpdateStillRunning":"L\'aggiornamento continua in background. Ricarica la pagina più tardi per vedere il risultato.","noProgression":"Al momento non sono disponibili dati aggiornati sui progressi degli studenti relativi a questo libro.","noCompetencies":"In questo libro 
2non ci sono esercizi associati a competenze specifiche.","modified":"Progressi di apprendimento aggiornati l\'ultima volta: {{date}}","bookSelectLabel":"Libro","courseAverage":"Ø Classe","chapters":"Contenuti","competencies":"Competenze","competency":"Competenza","chapter":"Capitolo/Esercizio","solvedLessons":"Ø Esercizi risolti","correctAnswers":"Ø Risposte corrette","total":"Totale","result":"Risposte corrette","edited":"Esercizi risolti","read":"Pagine lette","dataChangeScreenReader":"I dati nella tabella sono stati modificati in {{type}}","export":{"download":"Esportare","downloadError":"Download non riuscito. Riprova più tardi."},"filterInfo":{"accessibilityLabel":"Visualizza informazioni sugli indicatori","title":"Note sugli indicatori","text":"Dal menu a tendina puoi scegliere quale indicatore visualizzare per monitorare i progressi di apprendimento della classe:<br/><br/>“Risposte corrette” mostra la percentuale di risposte risolte correttamente.<br/>“Esercizi risolti” mostra la percentuale di esercizi completati.<br/>“Pagine lette” mostra la percentuale di pagine lette. Una pagina è considerata letta se la visualizzi per almeno 3 secondi. È possibile visualizzare i progressi di lettura anche per le Edizioni Digitali che non contengono esercizi interattivi.","ok":"OK"},"hideSelfEvaluation":"Nascondi l\'autovalutazione","chapterCompleted":"Capitolo completato","accessibilityLabel":"Capitolo concluso"},"members":{"remove":"Elimina studenti","emptyTeaser":{"title":"In questa classe non ci sono ancora studenti.","body":"Ti preghiamo di invitare degli studenti a ques"}},"collaborators":{"remove":"Elimina co-insegnante","emptyTeaser":{"title":"In questa classe non ci sono ancora co-docenti.","body":"Hai la possibilità di invitare dei co-docenti in questa classe."}},"books":{"remove":"Rimuovi libro","addButton":"Aggiungi","emptyTeaser":{"title":"Non hai ancora aggiunto alcun libro.","body":"Puoi aggiungere i libri che hai attivato a questo corso."},"add":{"title":"Aggiungi a \\"{{title}}\\"","ariaLabel":"Ricerca libri","searchPlaceholder":"ad es. NP10050107000","search":"Cerca","noBookFound":"Nessun libro adatto trovato.","note":"Assicurati di aggiungere esattamente i libri che utilizzano i tuoi studenti.","noteInfo":{"iconAria":"Mostra informazioni sull\'aggiunta dei libri","title":"Nota sull\'aggiunta dei libri","text":"I libri presenti nella gestione della classe devono corrispondere esattamente a quelli dei tuoi studenti. Ad esempio, volume parziale o volume completo, libro di testo o libro di esercizi. Il numero NP ti aiuta a identificare in modo univoco il libro corretto. <br/><br/>Per ogni libro aggiunto, sia i docenti che gli studenti devono disporre di una licenza valida.","ok":"OK"},"abort":"Annulla","saveSingle":"{{count}} Aggiungi libro","savePlural":"{{count}} Aggiungi libri"}},"emptyTeaser":{"emptyCoursesLink":"Crea una nuova classe","title":"Non hai ancora una classe","body":"Grazie alla gestione della classe puoi vedere a colpo d\'occhio i progressi dei tuoi studenti."},"menu":{"delete":"Elimina classe","deleteModal":{"warningTitle":"Sei sicuro?","warningTextCourse":"La classe verrà eliminata e tutte le assegnazioni e gli inviti verranno annullati. I progressi degli studenti rimarranno invariati.","warningTextBook":"Elimina libro dalla classe.","warningTextCollaborator":"Rimuovi co-insegnante dalla classe.","warningTextMember":"Rimuovere gli studenti dalla classe.","warningTextMembership":"Rimuovere me stesso dalla classe.","warningButton":"Elimina"},"share":"Condividi corso","ariaLabel":"Apri menu corso"},"join":{"joinSuccessful":"Condividi la classe","leaveSuccessful":"Apri il menu della classe","modal":{"joinCourseTitle":"Iscriviti al corso “{{courseId}}”","joinCourseAgeConsent":"Con la mia iscrizione confermo di avere più di 16 anni. In caso contrario, ho informato i miei genitori o tutori legali e ho ottenuto il loro consenso.","joinCourseDataConsent":"Acconsento che gli insegnanti e, se necessario, il personale della mia scuola o del mio istituto possano visualizzare i miei progressi nell\'apprendimento.","joinCourseCopy":"Scegli un nome utente in modo che il tuo inseg
2nante possa identificarti. Ti preghiamo di non utilizzare il tuo vero nome. Puoi modificare il tuo nome utente in qualsiasi momento nella sezione <settingsLink>Account e impostazioni</settingsLink>.","cancel":"Annulla","confirm":"Iscriviti alla classe"}},"editCourseNameAria":"Modifica nome della classe","updateTitle":"Nome della classe","namePlaceholder":"Inserisci il nome della classe","invalidName":"Nome della classe non valido","share":{"title":{"members":"Condividi la classe con gli studenti","collaborators":"Condividi la classe con i co-docenti"},"copy":"Copia link","revoke":"Annulla","info":{"members":"Nell’ambito della tua attività scolastica o istituzionale, assicurati che tutti gli studenti invitati abbiano almeno 16 anni o che sia stato ottenuto il consenso di un tutore legale. Condividendo il link/codice QR, confermi che tali requisiti siano soddisfatti."},"generate":"Crea link","copied":"Link copiato negli appunti.","button":"Invita"}},"navigation":{"ariaUserContent":"Vai ai preferiti e ai contenuti offline","ariaSearch":"Vai alla ricerca del titolo del libri","ariaDashboard":"Vai alla bacheca","ariaPlaylist":"Vai alle liste","ariaCourse":"Vai alle classi","ariaBibliothek":"Vai alla biblioteca","tooltipUserContent":"I miei preferiti e contenuti offline","tooltipSearch":"Ricerca","tooltipDashboard":"Bacheca","tooltipPlaylist":"Le mie liste","tooltipCourse":"Le mie classi","tooltipBibliothek":"La mia biblioteca","tooltipOpenSideNavigation":"Navigazione della pagina aperta","tooltipCloseSideNavigation":"Chiudere la navigazione della pagina"},"pagination":{"elements":"Elementi","previous":"Pagina precedente","next":"Pagina seguente","ariaPage":"Vai alla pagina {{page}}"},"downloadManager":{"title":"Contenuti offline","waiting":"Salvataggio in corso","downloading":"Salva","cached":"Salvato offline","notStored":"Mancato salvataggio","success":"Contenuto {{title}} salvato correttamente nella cache.","failure":"C\'è stato un errore nel salvare nella cache. ","bulkPrepare":"Salvataggio in corso","offlineHint":{"1":"I contenuti salvati offline si trovano ne I Miei preferiti","2":">Contenuti offline","3":""},"offlineErrorHint":"Download completato. Non è stato possibile scaricare alcuni contenuti.","abortAll":"Cancella tutto","retryAssetAria":"Riprova","removeAssetAria":"Elimina il contenuto","riskIconAria":"Avvertenza","screenReaderStart":"Salva offline avviato","screenReaderEnd":"Salva offline terminato"},"search":{"placeholder":"Per esempio 978-3-12-501070-3","placeholderAssets":"Inserire contenuto multimedia","submitButton":"Ricerca","ariaIcon":"Cerca","myBooks":"I miei","allBooks":"Tutti i libri","allTools":"Tutti gli strumenti"},"offline":{"offline":"Offline","bannerCopy":"Sei offline. Alcune funzioni non sono disponibili.","disabledSearch":"Non è possibile fare una ricerca quando si è offline.","disabledAction":"L\'azione non è disponibile quando si è offline"},"newContent":{"copy":"È disponibile una nuova versione. Seleziona \\"Caricare\\" per aggiornare allango.","button":"Caricare","releaseInfoLinkText":"Vai alle informazioni dell\'aggiornamento"},"shared":"Condiviso","install":{"prompt":"Aggiungere allango alla schermata iniziale?","dismiss":"Cancella","install":"Installa"},"facet":{"bookPage":"Pagina","series":"Serie","niveau":"Livello","format":"Tipo di multimedia","bookTitle":"Titolo del libro","bookDescribedTitle":"Titolo del libro","bezeichnung":"Titolo del libro","isbn":"ISBN","type":"Tipo di prodotto"},"badge":{"teacher":"Solo per insegnanti","accesslocked":"Protetto da codice","accessunlocked":"Sbloccare il codice","dauaccesslocked":"Protetto da codice","demo":"Accesso di prova","uPlus":"UnterrichtsPlus","lernPlus":"LernPlus","dau":"Edizione digitale","resultPercentage":" {{percentage}} % corretto","selfEvaluation":"Autovalutazione","aiEvaluation":"Commento della IA","test":"Prova","interactiveVideo":"Video interattivo"},"help":{"accesscode-where-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/360020867617-What-are-access-codes-and-where-do-I-enter-them","accesscode-where-code":"Dove trovo il mio codice?","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/categories/10085442471965-allango"},"resourceList":{"bookmark-all":"Inserisci fra i preferiti","pageFilterPrefix":"Pagina","page":"Pagina","sortPrefix":"Ordina per:","documentSingle":"Contenuto","documentPlural":"Contenuti","moreActions":"Altre azioni","cancel":"Finito","editList":"Modifica la lista","mediaFilter":"Tipo di multimedia","bulkOffline":"Salva offline","bulkSelect":"Seleziona tutto","mediafilterAll":"Tutto","noData":"Non si è trovato nessun contenuto","selection":"Seleziona ({{count}})","sorters":{"titleAsc":"Titoli dei libri dalla A alla Z","titleDesc":"Titoli dei libri dalla Z alla A","timelinessAsc":"Inizia con il meno recente","timelinessDesc":"Inizia con il più recente","recentlyUsed":"Ultimo utilizzato","activation":"Ultima attivazione"},"downloadAudios":{"buttonText":"Scarica il pacchetto audio","infoIcon":"Apri la nota sul pacchetto audio","infoModalTitle":"Nota sul pacchetto audio","infoModalText":"Il pacchetto audio contiene tutti gli audio di questo libro che possono essere scaricati. Il download potrebbe richiedere alcuni secondi.","ok":"Ho capito"}},"asset":{"audiosTextSingular":"Ascolta 1 audio","audiosTextPlural":"Ascolta {{number}} audio ","videosTextSingular":"Guarda 1 video","videosTextPlural":"Guarda {{number}}  video","pdfsTextSingular":"Apri 1 PDF","pdfsTextPlural":"Apri {{number}} PDF","htmlsTextSingular":"Apri un altro contenuto","htmlsTextPlural":"Apri altri {{number}} contenuti","linksTextSingular":"Accedi a 1 link","linksTextPlural":"Accedi a {{number}} link","dauLinksTextSingular":"Apri 1 riferimento","dauLinksTextPlural":"Apri {{number}} riferimenti","filesTextSingular":"Apri 1 file","filesTextPlural":"Apri {{number}} file","daupagesTextSingular":"Apri 1 pagina dell\'edizione digitale","daupagesTextPlural":"Apri {{number}} pagine dell\'edizione digitale","assessmentsTextSingular":"Apri 1 esercizio","assessmentsTextPlural":"Apri {{number}} esercizi","selftestsTextSingular":"Apri 1 autotest","selftestsTextPlural":"Apri {{number}} autotest","audio":"Audio","audios":"Audio","audioPlay":"Ascolta","video":"Video","videos":"Video","videoPlay":"Guarda","pdf":"PDF","pdfs":"PDF","pdfPlay":"apri","html":"altro contenuto","htmls":"altri contenuti","htmlPlay":"apri","iframe":"Contenuto interattivo: {{title}}","externalLink":"Link esterno","link":"Link","links":"Link","linkPlay":"apri","dauLink":"Riferimento","dauLinks":"Riferimenti","dauLinkPlay":"apri","dauLinkLabel":"Pagina","uhbLinkLabel":"Pagina del manuale didattico","file":"Altro file","files":"Altri file","filePlay":"apri","daupage":"pagina dell\'edizione digitale","daupages":"pagine dell\'edizione digitale","uhbpage":"pagina di UnterrichtsPlus","uhbpages":"pagine di UnterrichtsPlus","others":"Guardare più multimedia","assessment":"Esercizio","assessments":"Esercizi","selftest":"Autotest","selftests":"Autotest","menu":{"ariaLabel":"Menù dei contenuti"}},"settings":{"title":"Il mio account allango","personalTitle":"Informazioni personali","email":"E-mail","name":"Nome","username":"Nome in evidenza","ariaUsername":"Modifica il nome in evidenza","anonymsAuthor":"Anonimo","ssoId":"SSO-ID","security":"Sicurezza","password":"Password","changePassword":"Modifica la password","ariaCancel":"Annulla","loading":"Salva","success":"Le impostazioni sono state salvate","courses":"Classi","leaveC
2ourse":"Rimuovi classe","settings":"Impostazioni","language":"Lingua","roles":"Ruoli di autorizzazione","rolenames":{"student":"Studente/essa","teacher":"Insegnante","schooladmin":"Amministratore/trice di una istituzione","eks_content_admin":"Amministratore/trice di contenuti EKS","admin":"Amministratore/trice master","editor":"Redattore/trice"}},"footer":{"privacy":"Protezione dei dati","imprint":"Note legali","terms-of-use":"Condizioni d\'uso","cookie-consent":"Modifica la configurazione dei cookie","copyright":"Copyright © Ernst Klett Sprachen GmbH {{year}}","version":"Informazioni sulla versione","accessibility":"Dichiarazione sull\'accessibilità","subscription":"Annulla abbonamento","subscription-url":"https://subscription.allango.net/cancel-subscription","subscription-url-delta":"https://subscription.allango.net/cancel-subscription"},"featureTeaser":{"playlist":{"title":"Le mie liste","subtitle":"Usa liste personalizzate per organizzare i contenuti ","copy":"Crea nuove liste per i contenuti delle tue lezioni. Assegna a ciascuna un nome appropriato e ordinale in modo personalizzato.  Aggiungi link e condividi le tue liste con altre persone.","cta":"Accedi e inizia"},"favourits":{"title":"I miei preferiti","subtitle":"Ritrova in modo affidabile i contenuti importanti","copy":"Salva fra i preferiti i contenuti che utilizzi di più per le tue lezioni, usa i filtri per ritrovarli rapidamente e accedi in ogni momento ai contenuti anche offline.","cta":"Accedi e inizia"}},"pdfplayer":{"save":"Salva","close":"Chiudi","page":"Pagina","version":"Versione:","originalVersion":"Originale (non modificato)","zoomInAria":"Ingrandisci il PDF","zoomOutAria":"Rimpicciolisci il PDF","nextPageAria":"Pagina successiva del PDF","pageInputAria":"Navigare attraverso le pagine del PDF","prevPageAria":"Pagina precedente del PDF","zoomSizeOriginal":"Originale","zoomAria":"Seleziona il grado di ingrandimento. Valore attuale: {{value}}","pageFrom":"da"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"Chiudi la modalità a schermo intero","showInFullscreenAria":"Avvia la modalità a schermo intero"},"minimize":"Minimizzare","maximize":"Massimizzare","pauseAria":"Pausa","playAria":"Riprodurre","forwardAria":"Avanti veloce di 10 secondi","rewindAria":"Riavvolgere di 10 secondi","previousAria":"contenuto multimedia precedente","nextAria":"contenuto multimedia seguente","sliderInputAria":"Cursore di avanzamento","taskMarker":"Compito alle {{time}}","unmute":"Attivare l\'audio","mute":"Disattivare l\'audio","playbackRateChangeAria":"Selezionare la velocità di riproduzione ","playbackRateAria":"Velocità di riproduzione {{rate}}","showTrackAria":"Nascondi i sottotitoli","hideTrackAria":"Mostra i sottotitoli","showListAria":"Mostra lista","hideListAria":"Nascondi lista","subtitles":"Sottotitoli"},"error":{"playlist":{"failCreate":"Non è stato possibile creare la lista!","failRename":"Non è stato possibile rinominare la lista!","failModify":"Non è stato possibile modificare la lista!","failAddEntry":"Non è stato possibile aggiungere la voce alla lista.","failAddAsset":"Non è stato possibile aggiungere il contenuto alla lista","failDelete":"Non è stato possibile cancellare la lista","failCopy":"Non è stato possibile copiare la lista","failDeleteShareLink":"Non è stato possibile eliminare il link per la condivisione della lista","playlistNotFound":"Non è stato possibile trovare la lista","failRemoveReceived":"Non è stato possibile eliminare la lista.","noResponse":"Il servizio non reagisce!","failCopyToClipboard":"C\'è stato un errore nel copiare il link"},"course":{"courseNotFound":"Impossibile trovare la classe.","failCreate":"Impossibile creare la classe.","failRename":"Impossibile rinominare la classe.","failModify":"Impossibile modificare la classe.","failDelete":"Impossibile eliminare la classe.","failJoin":"Impossibile entrare nella classe.","failLeave":"Errore durante l\'uscita dalla classe.","removeFromCourse":"Impossibile rimuovere la persona dalla classe.","failShareCourse":"Impossibile condividere la classe.","failCopyToClipboard":"Impossibile copiare il link della classe.","addToBookList":"Impossibile aggiungere il libro alla classe.","removeFromBookList":"Impossibile rimuovere il libro dalla classe.","progressionNotFound":"Impossibile caricare i progressi di apprendimento.","failProgressionCreate":"Impossibile creare i progressi di apprendimento."},"settings":{"failSave":"C\'è stato un errore nel salvare le impostazioni.","failGetSettings":"Non è stato possibile caricare le impostazioni."},"asset":{"failGetPdf":"Non è stato possibile caricare il PDF.","fail
2LoadMedium":"Non è stato possibile caricare il multimedia.","failHtmlLoad":"Non è stato possibile caricare l\'esercizio interattivo.","failGetAccess":"Non è stato possibile accedere al contenuto","failGetAsset":"Non è stato possibile trovare il  contenuto.","unauthorized":"Attiva la tua Edizione Digitale: per attivare e utilizzare un\'edizione digitale inserisci la tua chiave di licenza.","licenseHelp":"Dove trovo la mia chiave della licenza?","licenseHelpLink":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","cacheDisabled":"Tieni presente che i link web inseriti nelle liste non si possono salvare offline.","downloadAccessCodeProtected":"Alcuni contenuti sono protetti da un codice e si possono salvare offline solo dopo aver attivato il codice.","invalidAccessCode":"Il codice non è valido. Verifica se hai inserito correttamente il codice indicato nel tuo libro e riprova."},"augmented":{"failGetProduct":"Non è stato possibile trovare il titolo del libro.","failCover":"Non è stato possibile trovare l\'immagine di copertina."},"bookmark":{"addedFailure":"C\'è stato un errore all\'aggiungere.","removeFailure":"Non è stato possibile eliminare dai preferiti.","bookmarksNotAllowed":"Alcuni contenuti non possono essere salvati fra i preferiti.","failSearch":"Non è stato possibile trovare il segnalibro."},"interaction":{"failPostInteraction":"","failGetInteraction":""},"search":{"failedBookSearch":"C\'è stato un errore nel cercare il titolo del libro.","failedSuggestion":"C\'è stato un errore nella ricerca di suggerimenti.","failedToolSearch":"C\'è stato un errore nel cercare strumenti."},"general":"C\'è stato un errore.","serviceUnavailable":{"title":"Siamo spiacenti, si è verificato un errore sconosciuto. Riprova più tardi.","copy":"Al momento il servizio non è disponibile. Riprova più tardi.","reload":"Carica nuovamente"},"serviceTimeout":{"copy":"Purtroppo la connessione si è interrotta per un errore di timeout. Se il problema persiste, controlla la tua connessione di rete."},"pageNotFound":{"title":"La pagina non è stata trovata","link":"Torna alla bacheca"},"privateMode":{"title":"Si è prodotto un errore legato al tuo navigatore.","copy":"Controlla nelle impostazioni del tuo navigatore se la memoria disponibile è sufficiente, se stai usando l\'ultima versione del navigatore o se ci sono limitazioni  impostate da un amministratore del dispositivo. Tieni presente che non possiamo garantire il corretto utilizzo della piattaforma allango in modalità privata"},"dau":{"failedSaveVersion":"C\'è stato un errore nel salvare la versione.","failedFilterAsset":"C\'è stato un errore inaspettato nel filtrare i contenuti multimedia. Riprova più tardi.","failGetPdf":"Non è stato possibile caricare il PDF. Riprova più tardi.","failGetDauLearningProgress":"Non è stato possibile caricare lo stato di apprendimento. Riprova più tardi.","failSetDauPageReadProgress":"Non è stato possibile salvare l\'avanzamento della lettura della pagina.","failSetChapterCompletion":"Non è stato possibile chiudere il capitolo.","failedDeleteEdit":"Non è stato possibile eliminare la nota. Riprova più tardi."},"license":{"403":{"general":"La licenza per questo prodotto è scaduta o non è valida. Controllare la licenza e riprovare.","Augmented":"La licenza per questo prodotto è scaduta o non è valida. Controllare la licenza e riprovare.","Digital":"La licenza per l\'edizione digitale è scaduta o non è valida. Controllare la licenza e riprovare.","UHB":"La licenza per UnterrichtsPlus digitale è scaduta o non è valida. Controllate la vostra licenza e riprovate.","Eksdi":"La licenza per LernPlus digitale è scaduta o non è valida. Controllare la licenza e riprovare."},"failActivateLicense":"C\'è stato un errore nell\'attivare la licenza.  Riprova più tardi.","failCheckLicense":"C\'è stato un errore nel verificare la licenza.  Riprova più tardi.","errorCode":{"100":"Codice errore: 100. La chiave di licenza non è valida. Controlla la chiave che hai inserito e riprova.","101":"Codice errore: 101. La chiave di licenza è scaduta.","102":"C
2odice errore: 102. è stato raggiunto il numero massimo di utenti per questa chiave della licenza.","103":"Codice errore: 102. è stato raggiunto il numero massimo di utenti per questa chiave di licenza.","104":"Codice errore: 104. La licenza non coincide con il ruolo utente del login. Verifica il tuo ruolo utente nel tuo account online o contatta il servizio clienti.","105":"Codice errore: 105. La chiave di licenza è già stata attivata in questo account. È possibile accedervi tramite la libreria o la pagina di panoramica dei titoli corrispondente.","999":"Codice errore: 999. C\'è stato un errore nel verificare la licenza. Riprova più tardi.","null":"Codice errore: 000. C\'è stato un errore nel verificare la licenza. Riprova più tardi."}},"demo":{"failStartDemo":"C\'è stato un errore nell\'avvio dell\'accesso di prova. Riprova più tardi.","noLPlusDemoWithoutDau":"È possibile provare LernPlus digitale solo se si dispone di una licenza valida per l\'edizione digitale. Attiva prima l\'Edizione Digitale e riprova."},"bilo":{"noLicense":"Non c\'è nessuna licenza valida del BILDUNGSLOGIN. Verifica quanto hai inserito e riprova. ","notFound":"Non è stato possibile trovare il titolo del libro cercato. Riprova più tardi.","general":"C\'è stato un errore inaspettato. Riprova più tardi."},"iqBuddy":{"getCollectionRequestFailed":"Purtroppo si è verificato un errore imprevisto durante l\'interrogazione delle collezioni. Riprova più tardi. {{code}}","requestFailed":"Siamo spiacenti, c\'è stato un errore inaspettato nella traduzione. Riprova più tardi. {{code}}","createCollectionFailed":"Siamo spiacenti, c\'è stato un errore inaspettato nella creazione. Riprova più tardi. {{code}}","addPhraseToCollectionFailed":"Siamo spiacenti, c\'è stato un errore inaspettato nell\'aggiungere la flashcard. Riprova più tardi. {{code}}","textToSpeechFailed":"Purtroppo si è verificato un errore imprevisto durante la lettura ad alta voce. Ti preghiamo di riprovare più tardi. {{code}}"},"select":{"multiselect":"Evidenzia ogni area separatamente.","tooLong":"Si possono evidenziare al massimo 160 caratteri alla volta."},"eksdi":{"failGetEksdiMap":"Non è stato possibile caricare il compito. Riprova più tardi.","failGetBookSession":"Siamo spiacenti, l\'esercizio non è stato possibile. Riprovare più tardi.","failResetBookSession":"C\'è stato un errore inaspettato nel resettare. Provare a reimpostare gli esercizi nel menu della sezione “I miei progressi” o riprovare più tardi.","failGetLesson":"Non è stato possibile trovare il compito. Riprova più tardi.","failGetSolution":"Purtroppo non è stato possibile trovare le soluzioni. Riprovare più tardi.","submitLesson":"Purtroppo si è verificato un errore imprevisto durante l\'invio dell\'attività. Riprovare più tardi.","failResetLesson":"C\'è stato un errore inaspettato nel resettare. Riprova più tardi.","failGetSelftest":"Purtroppo non è stato possibile eseguire l\'autotest. Riprovare più tardi.","failSubmitSelftest":"Purtroppo si è verificato un errore imprevisto durante l\'esecuzione dell\'autotest. Riprovare più tardi.","failResetSelftest":"C\'è stato un errore inaspettato nel resettare. Riprova più tardi."}},"dau":{"learningprogress":{"title":"I miei progressi nell\'apprendimento","solvedAssignments":"Compiti svolti","readPages":"Pagine lette","solvedAssignmentsPercentage":"{{percentuale}} % risolto","readPagesPercentage":"{{percentuale}} % letto","totalPercentage":"{{pagesPercentage}} % letto e {{assignmentsPercentage}} % risolto","infoReadPagesTitle":"Informazioni sulle pagine lette","infoReadPages":"La funzione “Pagine lette” mostra quante pagine sono già state lavorate o lette in un capitolo o nell\'intero libro. Una pagina si considera letta se la si guarda per almeno 3 secondi.","filters":{"title":"Filtrare i risultati","competences":"Mostra la competenza","edition":"Mostra il tipo di prodotto","format":"Mostra il tipo di test","reset":"Azzera tutti i filtri","editions":{"dau":"Edizione digitale","uhb":"Manuale didattico","eksdi":"LernPlus digitale"}},"reset":"Ripristina tutti gli esercizi","openAssessment":"Apri l\'esercizio e passa alla pagina {{page}}","chapterCompleted":"Capitolo completato","chapterCompletedInfo":"Quando completi un capitolo, ciò risulta visibile agli insegnanti delle tue classi."},"tools":{"shutters":{"top":"In alto","bottom":"In basso","topleft":"In alto a sinistra","topright":"In alto a destra","bottomleft":"In basso a sinistra","bottomright":"In basso a destra"},"config":{"fontSizeLabel":"Formato del testo","fontSizeButtonAriaLabel":"Apri le impostazioni del testo","colorChangeButtonAriaLabelOpen":"Apri il selettore di colori","colorChangeButtonAriaLabelClose":"Chiudere il selettore di colori","delete":"Elimina l\'oggetto","confirm":"OK","strokeWidthLabel":"Spessore:","strokeWidthSubtstractAria":"Ridurre lo spessore della linea","strokeWidthInputAria":"Introdurre lo spessore della linea","strokeWidthAddAria":"Aumentare lo spessore della linea","colorLabel":"Colore:","currentColor":"Colore attuale:","color":{"black":"Nero","blue":"Blu","green":"Verde","red":"Rosso","orange":"Arancione","yellow":"Giallo","custom"
2:"Colore personalizzato con il codice colore: {{colorCode}}"}},"text":{"placeholder":"Testo…","ariaLabel":"Inserire un testo libero nel campo di testo"},"search":{"submit":"Ricerca","searchAria":"Cercare nel documento","searchTooltip":"Cercare nel documento","placeholder":"Ricerca nel testo completo ","hits":"Risultati"},"note":{"placeholder":"Nota…"},"selection":{"drawAria":"Selezione la penna","rectangleAria":"Aggiungi un\'area","addCommentAria":"Scrivi una nota","coverPageAria":"Seleziona la mascheratura della pagina","cursorAria":"Sposta la selezione","markAria":"Seleziona un evidenziatore","addTextAria":"Scrivi un testo libero","eraserAria":"Seleziona la gomma da cancellare","translationAria":"Contrassegnare e tradurre","drawTooltip":"Seleziona la penna","rectangleTooltip":"Inserisci un\'area","addCommentTooltip":"Scrivi una nota","coverPageTooltip":"Seleziona la mascheratura della pagina","cursorTooltip":"Sposta la selezione","markTooltip":"Seleziona un evidenziatore","addTextTooltip":"Scrivi un testo libero","eraserTooltip":"Seleziona la gomma da cancellare","translationTooltip":"Contrassegnare e tradurre"},"assetButtons":{"audioTooltip":"Ascolta gli audio","videoTooltip":"Guarda i video","othersTooltip":"Mostra altri multimedia","exerciseTooltip":"Mostra gli esercizi"},"moreToolsTooltip":"Mostra altri strumenti","closeToolsTooltip":"Nascondi la barra degli strumenti","openToolsTooltip":"Mostra barra degli strumenti","zoomOutAria":"ridurre","zoomInAria":"ingrandire","toggleLayoutAria":"Modifica la vista della pagina","toggleLayoutTooltip":"Modifica la vista della pagina","toggleVersion":"Mostra/nascondi la versione","showToolsAria":"Mostra gli strumenti per il disegno","dropdownAria":"Contenuto","fullscreenEnter":"Abilita la modalità a schermo intero","fullscreenExit":"Disabilita la modalità a schermo intero","removeOffline":"Elimina offline","downloadPdf":"Salva l\'edizione digitale online","downloadAssets":"Salva i contenuti delle pagine offline","noAssetsAvailableForDownload":"In questa/e pagina/e non sono disponibili contenuti multimedia da scaricare","bookmarkPage":"Inserisci la pagina fra i preferiti","bookmark":{"hoverTitle":"Inserisci la versione attuale della pagina fra i preferiti"},"assetFilterTooltip":"Cerca e filtra contenuti multimedia"},"layout":{"label":"Vista:","auto":"Automaticamente"},"navigation":{"chapters":"Capitoli","page":"Pagina","pages":"Pagine","attachment":"Contenuto multimedia","attachments":"Contenuti multimedia","noAttachments":"Non ci sono contenuti multimediali adatti per questa pagina.","filter":"Filtri","learningProgressLink":"I miei progressi nell\'apprendimento","filters":{"apply":"Ricerca","reset":"Ripristina","format":"Mostra il tipo di multimedia","edition":"Mostra il tipo di prodotto","totalResult":"Risultati"},"content":{"dropdownTooltip":"Visualizza contenuti","page":"Contenuti multimedia per questa pagina","overlappingContent":"Contenuti multimedia generali"}},"version":{"about":{"title":"Informazioni sulle versioni","copy":"Non appena si salvano le modifiche, viene creata una nuova versione dell\'intera edizione digitale. La versione originale senza modifiche non va mai persa. \\n Una versione include tutte le pagine di un\'edizione digitale. Finché non si cambia versione, tutte le altre modifiche vengono salvate nella stessa versione.","ok":"OK"},"unsaved":{"title":"Vuoi annullare le modifiche non salvate?","copy":"Chiudendo la vista di modifica ora, andranno perse tutte le modifiche non salvate.","abort":"Cancella","dismiss":"Annulla"},"create":{"title":"Introduci il nome della versione","placeholder":"Definito dall\'utente","abort":"Cancella","save":"Salva","validation":{"empty":"Inserisci un nome per la versione"}},"created":{"title":"La versione è stata creata","copy":{"0":"La tua versione {{title}} è stata creata correttamente","1":"Per creare altre versioni, passare da una versione all\'altra e per gestire le tue versioni, apri l\'indice dei contenuti. Qui puoi anche tornare all\'originale non modificato."},"confirm":"Ho capito"},"checkmark":"Versione selezionata","manage":"Gestisci le versioni","saveSuccess":"La versione è stata salvata correttamente","config":{"copy":"Le nuove versioni sono copie dell\'edizione digitale originale, non modificata. Non a
2ppena si crea una nuova versione la si può duplicare. Per continuare a lavorare con la copia di una versione esistente selezionare \\"Duplicare\\" nel menù a tre punti.","title":"Gestisci le versioni","lastModified":"Ultima modifica","rename":"Cambia nome","delete":"Elimina versione {{versionName}}","duplicate":"Duplicare","confirm":"OK","close":"Chiudi","renameConfirm":"OK","newversion":"Nuova versione","error":{"missing-new-version-name":"Inserisci un nome per la versione.","missing-version-name":"Inserisci un nome per la nuova versione."},"screenReader":{"newVersion":"Nuova versione {{name}} creata con successo.","deleteVersion":"Versione {{name}} eliminata con successo.","duplicateVersion":"Versione {{name}} duplicata con successo."}},"change":{"currentVersion":"(versione attuale)","title":"Cambia versione","save":"Salva","radioAria":"Selezione una versione"},"originalVersion":"Originale","originalVersionUnedited":"Originale (non modificato )","shared":"condivisa"},"license":{"title":"Attiva la tua edizione digitale","pageTitle":"Attiva la tua edizione digitale","text":"Inserisci la tua chiave di licenza per attivare e utilizzare un\'edizione digitale"},"resetAll":{"warningText":"Resettando edizione digitale si cancellano tutti i progressi fatti, che non possono più essere recuperati.","successText":"Il reset del tuo edizione digitale è andato a buon fine."},"header":{"open":"Apri intestazione","close":"Chiudi intestazione"}},"pager":{"prevAria":"Pagina precedente","nextAria":"Pagina precedente","prevTooltip":"Pagina successiva","nextTooltip":"Pagina successiva","inputAria":"Inserimento pagina","page":"Pagina","invalidPage":"Inserisci una pagina corretta.","screenReader":"Pagina {{page}}"},"license":{"success":"La licenza è stata attivata correttamente","successInfo":"Trovi il prodotto che hai attivato nella pagina con l\'indice dei titoli.","successPlural":"La licenza per il tuo pacchetto è stata attivata correttamente.","successInfoPlural":"Trovi i prodotti che hai attivato nella pagina con l\'indice dei titoli.","accept":"Ho capito","openBook":"Apri","inputError":"Inserisci una chiave di licenza.","confirm":"Attiva la licenza","decline":"Cancella","text":"Vuoi attivare ora la licenza per questo prodotto?","textPlural":"Vuoi attivare ora la licenza per questo pacchetto?","textPluralWithPackageTitle":"Vuoi attivare la licenza per \\"{{packageTitle}}\\" ora?","placeholder":"Per esempio EKS-XXXXXX-XXXX-XXXX-XXX","base-url":"https://hilfe.klett-sprachen.de/hc/en-gb/articles/13015570332189-Where-can-I-find-the-licence-key-for-my-product","helpAria":"Richiamare la guida per l\'inserimento della chiave di licenza","inputBoxTitle":"Attiva la tua licenza","inputBoxText":"Per attivare un prodotto digitale, devi inserire la chiave di licenza.","inputLabel":"Chiave di licenza","inputCta":"Attivare","inputHelp":"Dove trovo la mia chiave di licenza?","forceActivate":"Attivare lo stesso","buyAlternative":"Cancella","expired":"La licenza è scaduta","noLicense":"Non si può accedere al contenuto senza licenza","warnings":{"noLicense":"Per accedere a questo contenuto devi attivare la licenza corrispondente.","uhbWithMissingDau":{"title":"UnterrichtsPlus digitale non contiene materiale didattico digitale e si può utilizzare solo in abbinamento con l\'edizione digitale!","subtitle":"Attiva anche l\'edizione digitale allango o ordinala nel","linkText":"nostro shop online"},"eksdiWithMissingDau":{"title":"LernPlus digitale non contiene materiale didattico digitale e si può utilizzare solo in abbinamento con l\'edizione digitale!","subtitle":"Attiva anche l\'edizione digitale allango o ordinala nel","linkText":"nostro shop online"}}},"maxProduct":{"noProductFound":"Non si è trovato nessun prodotto a cui corrisponde questo ID","backToOverview":"Torna alla bacheca","freeContent":"Contenuti multimedia per questo libro","freeContentDescription":"Audio, video e molto altro","openFreeContent":"Vai ai contenuti multimedia","forFree":"Gratuito","digitalContent":"Edizione digitale","digitalContentDescription":"Include audio, video e molto altro","openDigitalContent":"Vai all\'edizione digitale","lehrerwelt":"UnterrichtsPlus digitale","lehrerweltDescription":"Contenuto integrativo per insegnanti. Utilizzabile solo in abbinamento con l\'edizione digitale","openLehrerwelt":"Vai al manuale didattico","lernplus":"LernPlus digitale","lernplusDescription":"Funzioni premium ed extra per studenti. Si possono usare solo in abbinamento con l\'edizione digitale.","openLernplus":"Vai all\'edizione digitale con LernPlus","viewMore":"Per saperne di più …","languageLabel":"Lingua:","licenceLabel":"Nome della licenza:","loginTeaser":"L\'edizione digitale è disponibile solo dopo aver effettuato il login e se si è in possesso di una licenza valida.","tool":"Strumenti","iqBuddy":"Apri allenamento allango buddy","worksheetGenerator":{"buttonText":"Apri generatore di fogli di lavoro","link":"https://worksheet.allango.net/en/worksheet-generator"},"teachermatics":{"buttonText":"Apri smartAssist (Beta)","link":"https://teachermatic.com/my-account/tm-redirect?init_tm_sso=1&org_id=311&lang=it"},"activitySet":{"buttonText":"Apri il set di attività"},"aria":{"bookCoverLinkToMaximalProductPage":"Vai alla panoramica del libro {{bookTitle}}","digitalContent":"Vai all\'edizione digitale","freeContent":"Vai ai contenuti gratuiti","backToOverview":"Torna alla bacheca","iqBuddy":"Allenamento si apre in una nuova scheda","worksheetGenerator":"Generatore di fogli di lavoro si apre in una nuova scheda","teachermatics":"smartAssist si apre in una nuova scheda","activitySet":"Il set di attività si apre in una nuova scheda"},"demo":{"text":"prova gratuitamente","durationSingle":"giorno","durationPlural":"giorni","login":"Accedi ora e "}
2,"license":{"validUntilLabel":"Valida fino:","invalidSince":"Scaduta il:","error":"La licenza non può essere interrogata","free":"Contenuti multimedia per questo libro","enterCode":"Attiva ora","inputLabel":"Chiave di licenza","inputHelp":"Dove trovo la mia chiave di licenza?","inputCta":"Attivare","inputTitle":"Attiva la tua licenza","inputText":"Per attivare un prodotto digitale bisogna prima introdurre la chiave di licenza.","teaserTitle":"Attiva la tua licenza","teaserText":"Per attivare un prodotto digitale, inserisci una tantum la tua chiave di licenza dopo aver effettuato il login.","teaserCta":"Accedi ora","licenseNeeded":"Soggetto a licenza","buyEdition":{"dau":"Comprare un\'edizione digitale","uhb":"Comprare UnterrichtsPlus digitale","lplus":"Comprare LernPlus digitale"}},"tabs":{"dau":"Edizione digitale","uhb":"Manuale didattico","lplus":"LernPlus"}},"metaTitle":{"welcome":"Ti diamo il benvenuto - allango","dashboard":"Bacheca - allango","discover":"Biblioteca - allango","maxProduct":"{{title}} - allango","augmented":"Contenuti integrativi - allango","dau":"Edizione digitale - allango","uhb":"Manuale per gli insegnanti - allango","lplus":"LernPlus - allango","offline":"Contenuti offline - allango","bookmark":"Segnalibri - allango","agb":"Condizioni d\'uso - allango","imprint":"Note legali - allango","accessibility":"Dichiarazione sull\'accessibilità - allango","privacy":"Protezione dei dati - allango","lists":"Le mia liste - allango","settings":"Account e impostazioni - allango","userContent":"I miei preferiti e contenuti offline - allango","versionInfo":"Informazioni sulla versione - allango","library":"Biblioteca - allango","courses":"Le mie classi · allango"},"consent":{"button":{"decline-all":"Rifiuta tutto","config":"Personalizza","accept-all":"Accetta tutto","confirm":"Conferma i selezionati"},"checkbox":{"necessary":"Necessario","statistic":"Statistica"},"info":{"hideAria":"Apri l\'informativa","showAria":"Chiudi l\'informativa","store-title":"Memorizzare e/o accedere alle informazioni da un altro dispositivo","store-body":"I cookie, gli identificativi del dispositivo o altre informazioni possono essere memorizzati o localizzati sul vostro dispositivo per i trattamenti indicati nell\'informativa mostrata.","statistic-title":"Annunci e contenuti personalizzati, misurazione delle performance di annunci e contenuti, informazioni su gruppi target e sviluppo di prodotto  ","statistic-body":"Annunci e contenuti possono essere personalizzati in base a un profilo. Si possono aggiungere altri dati per personalizzare meglio annunci e contenuti. Si possono misurare le prestazioni di annunci e contenuti. Si possono ricavare informazioni sui gruppi target che hanno visualizzato gli annunci e i contenuti. I dati possono essere utilizzati per sviluppare o migliorare l\'usabilità, i sistemi e i software."},"explain":{"necessary":{"title":"Necessari","text":"Questi cookie sono imprescindibili per garantire il funzionamento della pagina, per esempio per la riproduzione dei contenuti o il login."},"statistic":{"title":"Statistiche","text":"Questi cookie ci aiutano a riconoscere il grado di interesse degli utenti per i contenuti delle pagine del sito alle quali accedono. Questo ci permette di ottimizzare di conseguenza i nostri contenuti. A tal fine raccogliamo solo dati anonimizzati."}},"title":"Configurazione dei cookie","pretext":"Noi, i nostri partner e fornitori terzi utilizziamo meccanismi di tracciamento (in particolare cookie) per ottimizzare e migliorare continuamente i nostri siti web per i nostri utenti, nonché per mostrare post e pubblicità. Le finalità del trattamento in dettaglio sono:","maintext":"Cliccando sul pulsante \\"Accetta tutti\\", si acconsente al trattamento dei dati memorizzati sul dispositivo o il terminale utilizzato, come identificatori personali o  indirizzi IP, per le finalità di trattamento indicate ai sensi dell\'Art. 25 (1) della Legge tedesca sulla protezione dei dati delle telecomunicazioni e dei media (TTDSG) e l\'Art. 6 (1) (a) del GDPR. Inoltre, si acconsente al trattamento dei propri dati anche da parte di fornitori negli Stati Uniti, ai sensi dell\'Art. 49 (1) GDPR. In questo caso, è possibile che i dati trasmessi vengano elaborati dalle autorità locali. Con il pulsante “Configura” si possono selezionare i cookie per i quali si desidera dare il proprio consentimento. La configurazione scelta può essere modificata in qualsiasi momento al punto \\"Modifica la configurazione dei  cookie\\" nella parte inferiore della pagina del sito. Ulteriori dettagli sono disponibili nella nostra <1>Politica di protezione dei dati</1>. Vi preghiamo di consultare anche le nostre <3>Note legali</3>.","customLogin":{"title":"Condizioni d\'uso e protezione dei dati","text":"Hai i dati di accesso indicati nel tuo libro? <br/><br/> <bold>Attenzione:</bold> Se l\'account deve essere utilizzato da un minore, un genitore o tutore legale deve accettare le condizioni d\'uso. Solo allora l\'accesso verrà attivato.","ageCheckbox":"Sono maggiorenne oppure agisco in qualità di genitore o tutore legale e accetto le <1>Condizioni d\'uso</1>.","dataCheckbox":"Ho letto e preso visione dell\'<1>Informativa sulla privacy</1>.","button":"Attiva l’accesso"}}
2,"uhb":{"tabopen":"Il manuale dell\'insegnante è già aperto in un\'altra scheda/finestra. Passa a questa scheda/finestra","license":{"title":"Attiva il tuo UnterrichtsPlus digitale","text":"Per attivare e utilizzare il tuo UnterrichtsPlus digitale introduci la tua chiave di licenza. "}},"commercialTeaser":{"buttonBuy":"Acquista ora","opensNewTab":"Si apre in una nuova scheda","buttonLater":"Forse più tardi","uhb":{"title":"Esclusivo per insegnanti","text":"Con UnterrichtsPlus digitale puoi organizzare la tua lezione in ancora meno tempo e con più facilità. Ti offre pratici contenuti addizionali a integrazione dell\'edizione digitale, a cui accedere senza rischiare di sbagliare pagina e offline.","alternativeTextWithoutAdditionalAssets":"Con UnterrichtsPlus digitale puoi organizzare la tua lezione in ancora meno tempo e con più facilità. Ti offre pratici contenuti addizionali a integrazione dell\'edizione digitale, a cui accedere senza rischiare di sbagliare pagina e offline.","buttonBuyAria":"Acquista ora UnterrichtsPlus digitale","buttonOpen":"Vai al manuale didattico","license":{"title":"Hai già UnterrichstPlus digitale?","text":"Per utilizzare il tuo UnterrichstPlus digitale introduci la tua chiave della licenza."}},"dau":{"title":"Apprendere e insegnare online","text":"L\'edizione digitale ti permette di utilizzare il libro digitale e di accedere subito a più contenuti. Approfitta delle numerose funzionalità di elaborazione dei contenuti e salva la stato attuale del tuo lavoro in quante versioni desideri.","additionalText":"Inclusi tutti i contenuti multimedia per il libro:","buttonBuyAria":"Acquista ora","buttonOpen":"Vai all\'edizione digitale","license":{"title":"Hai già un\'edizione digitale?","text":"Per accedere alla tua Edizione Digitale inserisci la tua chiave di licenza."}},"eksdi":{"title":"Presto disponibile per studenti","text":"Hai già una licenza di prova per LernPlus digitale? Allora inserisci semplicemente il tuo codice di licenza e inizia subito. Se non ce l\'hai, non preoccuparti: presto LernPlus digitale sarà disponibile nel negozio online, insieme al tuo libro.<br/><br/>Ti aspettano funzioni motivanti e variegate, che si adattano in modo ideale al tuo livello personale e al tuo ritmo di apprendimento. Per un supporto immediato, preciso e personalizzato durante l\'apprendimento. Inoltre, questo libro include quanto segue:","additionalText":"","alternativeTextWithoutAdditionalAssets":"","buttonBuyAria":"Acquista ora","buttonOpen":"Vai a LernPlus digitale","license":{"title":"Hai già LernPlus digitale?","text":"Per accedere al tuo LernPlus digitale inserisci la tua chiave di licenza."}}},"upCommercial":{"content":{"demo":"Accedi alla prova","category":{"Test":{"singular":"Prova","plural":"Prove"},"Lösung":{"singular":"Soluzione","plural":"Soluzioni"},"Unterrichtshandbuch":{"singular":"Manuale didattico","plural":"Manuali didattici"},"Karte":{"singular":"Mappa","plural":"Mappe"},"Kopiervorlage":{"singular":"Modello per creare una copia","plural":"Modelli per creare copie"},"Tafelbild":{"singular":"Tavola interattiva","plural":"Tavole interattive"},"Transkription":{"singular":"Trascrizione","plural":"Trascrizioni"},"Transkript":{"singular":"Trascrizione","plural":"Trascrizioni"},"Video":{"singular":"Video","plural":"Video"},"Audio":{"singular":"Audio","plural":"Audio"},"Quelle":{"singular":"Fonte bibliografica","plural":"Fonti bibliografiche"},"Hinweis":{"singular":"Nota","plural":"Note"},"Wortschatz":{"singular":"Vocabolario","plural":"Vocabolari"},"Grammatik":{"singular":"Grammatica","plural":"Grammatiche"},"Landeskunde":{"singular":"Cultura e civiltà","plural":"Contenuti culturali"},"Bildmaterial":{"singular":"Materiale grafico","plural":"Materiali grafici"},"Arbeitsblatt":{"singular":"Foglio di lavoro","plural":"Fogli di lavoro"},"Spiel":{"singular":"Gioco","plural":"Giochi"},"Html":{"singular":"altro contenuto","plural":"altri contenuti"},"Link":{"singular":"Link","plural":"Link"},"Pdf":{"singular":"PDF","plural":"PDF"},"PDF":{"singular":"PDF","plural":"PDF"}
2,"File":{"singular":"File","plural":"File"},"Bilderbuchkino":{"singular":"Carrellata di immagini","plural":"Carrellate di immagini"},"Aufgabe":{"singular":"Compito","plural":"Compiti"},"Übung":{"singular":"Esercizio","plural":"Esercizi"}}},"teaser":{"title":"Esclusivo per insegnanti","text":"Con UnterrichtsPlus digitale puoi organizzare la tua lezione in ancora meno tempo e con più facilità. Offre pratici contenuti addizionali a integrazione dell\'edizione digitale, a cui accedere senza rischiare di sbagliare pagina e offline.","button":"Acquista ora","buttonAria":"Acquista ora UnterrichtsPlus digitale","alreadyPurchasedText":"Da oggi puoi organizzare le tue lezioni in modo più semplice grazie ai contenuti integrativi per la tua edizione digitale. In modo flessibile e veloce. "}},"versionInfo":{"versionsInfoTitle":"Informazioni sulla versione","allangoLanguage":"La lingua impostata per te in allango è:","browserLanguage":"La lingua del tuo navigatore è:","userAgent":"L\'header del tuo navigatore è:","frontend":"La versione del tuo frontend è:","backend":"La versione del tuo backend è:","marklogic":"La versione del tuo sistema di archiviazione dati è:","releaseInfoTitle":"Aggiorna le informazioni del 08/09/26","releaseInfoText":"Qui puoi trovare periodicamente tutte le informazioni sulle ultime migliorie e innovazioni apportate su allango:<br/>","releaseInfoList":"<item>Per i docenti sono state apportate ulteriori ottimizzazioni alla panoramica sui progressi di apprendimento nella sezione “Le mie classi”: gli esercizi e i capitoli non ancora svolti vengono ora visualizzati con una linea invece che con “0 %”. “0 %” continua invece a significare che l’esercizio è stato svolto, ma non risolto correttamente. Nella vista delle competenze è ora possibile passare da “Esercizi svolti” a “Risposte corrette”. Nota: aggiorna lo stato di avanzamento della classe affinché tutte le modifiche siano visibili.</item> <item>Il rapporto sulla trasparenza DSA 2025 è ora collegato nelle note legali e può essere scaricato da lì.</item> <item>In ogni versione con licenza di UnterrichtPlus digitale, gli insegnanti troveranno d’ora in poi nella pagina di panoramica dei titoli un link alla nuova funzione «Set di attività». All’apertura del set di attività viene adottata la lingua selezionata in allango.</item>"},"bilo":{"landing":{"pageTitle":"BILDUNGSLOGIN","loadingText":"Un attimo di pazienza, stiamo verificando i tuoi dati."}},"ibis":{"pageTitle":"ibis acam – Accesso","loginFailedMessage":"Non è stato possibile completare l\'accesso. Riprova.","retryButton":"Riprova"},"eksdi":{"accessibility":{"playAudio":"Riproduci l\'audio","dragAndDrop":{"onDragStart":"L\'elemento trascinabile {{activeValue}} è stato agganciato","onDragOver":"Un elemento trascinabile {{activeValue}} è stato trascinato sull\'area target {{overIndex}}.","onDragOverEmpty":"L\'elemento trascinabile {{activeValue}} non si trova più su un\'area target","onDragEnd":"L\'elemento trascinabile {{activeValue}} è stato scartato.","onDragEndOver":"L\'elemento trascinabile {{activeValue}} è stato posizionato sull\'area target {{overIndex}}.","onDragCancel":"Il trascinamento è stato interrotto. L\'elemento trascinabile {{activeValue}} è stato scartato.","screenReaderInstructions":"Per agganciare un elemento trascinabile, premi la barra spaziatrice o il tasto Invio. Usando i tasti freccia puoi trascinare l\'elemento in ogni direzione possibile. Premendo di nuovo la barra spaziatrice o il tasto Invio l\'elemento viene collocato nella sua nuova posizione. Per annullare la procedura premi il tasto Escape."},"sorting":{"onDragStart":"L\'elemento selezionabile è stato prelevato da {{itemsCount}} nella posizione {{Position}}","onDragOver":"L\'elemento selezionabile è stato spostato da {{itemsCount}} nella posizione  {{Position}}","onDragEnd":"L\'elemento selezionabile è stato collocato da {{itemsCount}} nella posizione  {{Position}}","onDragCancel":"Il trascinamento è stato interrotto. L\'elemento selezionabile è stato scartato.","screenReaderInstructions":"Per agganciare un elemento trascinabile, premi la barra spaziatrice o il tasto Invio. Usando i tasti freccia puoi trascinare l\'elemento in ogni direzione possibile. Premendo di nuovo la barra spaziatrice o il tasto Invio l\'elemento viene collocato nella sua nuova posizione. Per annullare la procedura premi il tasto Escape."}},"overview":{"linkToOverview":"I miei progressi nell\'apprendimento","completedExercises":"Compiti risolti","breadcrumb":"LernPlus digitale","continueLesson":{"continue":"Prosegui","nothingToContinue":"Inizia la tua prima lezione","start":"Inizia ora"},"learningProgress":{"title":"Riepilogo","completedLessons":"Compiti risolti","completedLessonsProgress":"{{doneNumber}} di {{totalNumber}}","resultAverage":"Risposte corrette"},"chapterProgress":{"title":"I miei progressi nell\'apprendimento","chapters":"Capitoli","competencies":"Competenze","chapter":"Capitolo","module":{"singular":"Modulo","plural"
2:"Moduli"},"taskGroup":{"singular":"Gruppo di esercizi","plural":"Gruppi di esercizi"},"didacticUnit":{"singular":"Unità didattica","plural":"Unità didattiche"},"topic":{"singular":"Compito","plural":"Compiti"},"selftest":{"singular":"Autotest","plural":"Autotest"},"sprechen":"Espressione orale","grammatik":"Grammatica","wortschatz":"Vocabolario","schreiben":"Espressione scritta","hören":"Comprensione orale","aussprache":"Pronuncia","lesen":"Lettura","redemittel":"Locuzioni","mediation":"Mediazione","hör-seh-verstehen":"Comprensione audiovisiva"}},"breadcrumbs":{"exercise":"Compito  {{exerciseIndex}}"},"license":{"title":"Attiva il tuo LernPlus digitale","pageTitle":"Attiva il tuo LernPlus digitale","text":"Per attivare e utilizzare LernPlus digitale devi inserire la tua chiave di licenza."},"helpAndTip":{"showButton":"Mostra i consigli","hideButton":"Nascondi consigli","title":"Consigli e aiuto"},"readingText":{"showButton":"Mostra il testo di lettura","hideButton":"Nascondi il testo di lettura"},"warning":{"pronounce":"Avvia la registrazione per risolvere il compito.","openquestion":"Inserire qualcosa per risolvere il compito."},"progress":{"progress":"Progresso:"},"navigation":{"previous":"Esercizio precedente","next":"Esercizio successivo","exercise":"{{exerciseIndex}} di {{total}}"},"result":{"celebration":"Ben fatto!","completeLesson":"Verificare","correct":"Corretto!","label":"Valutazione","nextLesson":"Continua","text":"{{correctAnswers}} di {{total}} corrette","wrong":"Sbagliato","selfEstimationTitle":"Fai un\'autovalutazione","resetAllTasks":"Resetta tutti i compiti"},"retrySingular":"Ancora 1 tentativo","retryPlural":"Ancora {{retries}} tentativi","reset":"Resettare","resetAll":{"buttonText":"Resetta tutto","warningTitle":"Sei sicuro?","warningText":"Resettando LernPlus digitale si cancellano tutti i progressi fatti, che non possono più essere recuperati.","warningButton":"Resettare","successText":"Il reset del tuo LernPlus digitale è andato a buon fine."},"newContent":{"text":"È disponibile una nuova versione aggiornata di questo compito. Seleziona “Aggiorna” per caricare la nuova versione. Le tue risposte verranno cancellate.","textSelftest":"È disponibile una nuova versione aggiornata di questo prova. Seleziona “Aggiorna” per caricare la nuova versione. I dati inseriti verranno cancellati.","button":"Aggiorna","warningText":"Aggiornando l\' compito, le tue risposte precedenti verranno cancellate. Questa operazione non può essere annullata.","warningTextSelftest":"Aggiornando il prova, le tue risposte precedenti verranno cancellate. Questa operazione non può essere annullata.","warningButton":"Aggiorna"},"solution":{"label":"Soluzione"},"alternativeSolution":{"label":"È corretto anche:","show":"Mostra soluzione alternativa","hide":"Nascondi soluzione alternativa"},"task":{"completeLesson":"Verificare","label":"Compito","showSolution":"Mostra la soluzione","hideSolution":"Nascondi la soluzione","leftAttempt":"Ancora 1 tentativo","leftAttempts":" Ancora {{submits}} tentativi"},"selftest":{"start":"Inizio","navigateBack":"Torna indietro","navigateNext":"Avanti","totalResult":"Risultato complessivo","completeSelftest":"Terminare","completeSelftestInfoTitle":"Volete davvero completare il test?","completeSelftestInfoText":"Una volta completato il test, non è possibile apportare ulteriori modifiche e i risultati vengono calcolati. Tuttavia, è possibile resettare il test dopo averlo completato e riprovare.","congratulations":"Ce l\'avete fatta! Avete completato il test.","viewResults":"Visualizza i risultati","learningProgress":"I miei progressi nell\'apprendimento","reset":"Azzeramento del test","resetWarning":"Se si resetta l\'autotest, il risultato viene cancellato e non può essere ripristinato.","resetSuccessful":"Il reset del test è andato a buon fine."},"gapmatch":{"words":"Parole","sentences":"Frasi","audio":"Audio"},"inlinechoice":{"placeholder":"Selezionare"},"openQuestion":{"AI_GRAMMATIC":"Grammatica","AI_BASIC":"Generale","sampleSolution":"Soluzione tipo","mobileFeedback":"Commento della IA","task":"Compito","loadConnection":"Si sta stabilendo la connessione…","error":{"basic":"C\'è stato un errore inaspettato nella ricezione dei commenti generali della IA. Riprova più tardi.","grammar":"C\'è stato un errore inaspettato nella ricezione dei commenti generali della IA. Riprova più tardi."},"nativeLanguage":"Lingua di risposta","lang":{"de":"Deutsch","en":"English","es":"Español","fr":"Français","it":"Italiano","ar":"العربية","ptBR":"Português do Brasil","prs":"دری","fa":"فارسی","el":"Ελληνικά","hi":"हिन्दी","ml":"മലയാളം","ps":"پښتو","pl":"Polski","pt":"Português","ru":"Русский","deCH":"Schwyzerdütsch","ti":"ትግርኛ","tr":"Türkçe","uk":"Українська","uz":"O\'zbekcha","vi":"Tiếng Việt"}},"pronounce":{"startRecording":"Avvia la registrazione","stopRecording":"Concludi la registrazione","retryRecording":"Ripeti la registrazione"},"noAnswer":"Non è stata selezionata una risposta.","noEdit":"Non hai ancora modificato nulla.","notAllAnswers":"Non hai ancora selezionato tutto.","confirm":"OK"},"maintenance":{"title":"Breve interruzione per migliorare il risultato","text":"Cari utenti,la piattaforma di apprendimento allango è temporaneamente fuori servizio oggi fino alle {{endtime}} per lavori di manutenzione programmati. Tornate a visitare allango più tardi.<br/>Ci scusiamo per eventuali inconvenienti e vi  ringraziamo per la vostra pazienza.<br/>Il team di allango","banner":"allango non sarà disponibile temporaneamente il {{starttime}} fino alle  {{endtime}} per lavori di manutenzione. Ci scusiamo per eventuali inconvenienti."},"aiTeaser":{"loadingMessage":"Il feedback viene creato","iqBuddy":{"teaserText":"Traduzione generata dalla IA","iconLabel":"Informazioni sulla IA","title":"Avvertenza sulle risposte generate dalla IA","text":"Le traduzioni sensibili al contesto si basano sul servizio fornito da DeepL (www.deepl.com).<br/><br/>L\'editore non ha nessun influsso sulle traduzioni eseguite con l’ausilio dell’intelligenza artificiale dei fornitori di servizi o sulle traduzioni mostrate all\'utente.<br/><br/>In linea generale l’utilizzo dell\'intelligenza artificiale e di processi standardizzati può portare a risultati errati o fuorvianti. L\'editore pertanto non garantisce che la traduzione abbia una qualità specifica.","ok":"Ho capito"},"aiFeedback":{"teaserText":"Avvertenza rispetto a risposte generate dalla IA","iconLabel":"Informazioni sulla IA","title":"Avvertenza sulle risposte generate dalla IA","text":"Questa risposta è stata generata con l\'ausilio di un software di IA generativa. <br/><br/> Malgrado i nostri sforzi per fornire informazioni il più accurate e affidabili possibili, a volte la tecnologia IA generativa le risposte possono contenere errori o avere lacune. <br/><br/> La casa editrice non si assume alcuna responsabilità per eventuali imprecisioni o malintesi che possano derivare dall\'uso di queste risposte. <br/><br/>Assicuratevi inoltre di non inserire alcun dato personale durante la risoluzione dei compiti.","ok":"Ho capito"},"pronounceLesson":{"teaserText":"Avvertenza rispetto a risposte generate dalla IA","iconLabel":"Informazioni sulla IA","title":"Avvertenza sulle risposte generate dalla IA","text":"Questa risposta è stata generata con l\'ausilio di un software di IA generativa. <br/><br/> Malgrado i nostri sforzi per fornire informazioni il più accurate e affidabili possibili, a volte la tecnologia IA generativa le risposte possono contenere errori o avere lacune. <br/><br/> La casa editrice non si assume alcuna responsabilità per eventuali imprecisioni o malintesi che possano derivare dall\'uso di queste risposte. <br/><br/>Assicuratevi inoltre di non inserire alcun dato personale durante la risoluzione dei compiti.","ok":"Ho capito"}},"iqBuddy":{"logoText":"Traduzione nel contesto","createCollectionButtonText":"Crea una nuova collezione","invali
2dName":"Questo nome non si può usare per una collezione. Verifica quanto inserito e riprova.","namePlaceholder":"Inserisci il nome della collezione","nameLabel":"Nome della collezione","addToCollection":"Aggiungi alla collezione","addToCollectionButtonText":"Colleziona","addCollectionSuccess":"La flashcard è stata aggiunta con successo alla collezione","backToCollectionList":"Torna alle tue collezioni","jumpToCollection":"Le mie collezioni","trainingLinkText":"Vai a allango buddy","trainingInfo":{"iconAria":"Visualizza informazioni sull\'allenamento","title":"Note sull\'allenamento del vocabolario con allango buddy","text":"Tutte le traduzioni che raccogli su allango vengono salvate in allango buddy. Con questo link apri allango buddy in una nuova scheda del browser. Lì puoi visualizzare, modificare e esercitarti con le tue schede di apprendimento. <br/><br/>Puoi utilizzare questa funzione anche con l\'app allango buddy per iOS o Android, semplicemente utilizzando i tuoi dati di accesso allango esistenti.","ok":"OK"},"yourTranslation":"Personalizza la traduzione","checkmark":"Lingua selezionata","licence":{"teaser":{"title":"allango buddy: capire - raccogliere - formare","imgAlt":"Logo di allango buddy: la scritta “allango” in colore blu scuro e “buddy” in arancione, in un carattere moderno e arrotondato. Il logo contiene bolle vocali come elemento grafico.","text":"Con la licenza di allango buddy, è possibile salvare le traduzioni dell\'edizione digitale nelle proprie raccolte e utilizzare le flashcard per colmare le proprie lacune linguistiche.<br/><br/>Sfide quotidiane: allango buddy genera esercizi personalizzati a partire dalle vostre flashcard per allenare il vostro vocabolario in modo divertente.<br/><br/>Potete anche utilizzare allango buddy come plug-in per il vostro browser per tradurre testi da Internet direttamente nel contesto e aggiungerli alle vostre raccolte.","textDemoExpired":"La licenza di prova per allango buddy è scaduta o non è valida. Controllare la licenza e riprovare.","textLicenceExpired":"La licenza per allango buddy è scaduta o non è valida. Controllare la licenza e riprovare.","buttonLater":"Forse più tardi","buttonBuy":"Acquista ora","buttonDemo":"Prova gratuitamente","license":{"title":"Avete già allango buddy?","text":"Inserire una volta la chiave di licenza per accedere ad allango buddy.","unauthed":"Inizia la sessione per utilizzare questa funzionalità"}}},"limit":{"cardsLimit":{"title":"Wow – hai già raccolto 100 traduzioni sotto forma di schede didattiche!","text":"Purtroppo hai raggiunto il limite gratuito. Per collezionare altre schede didattiche su allango, ti serve il LernPlus digitale corrispondente a questa edizione digitale – se disponibile – oppure un abbonamento illimitato nell’app allango buddy. <br/><br/>Puoi acquistare il LernPlus digitale nel nostro negozio online. Arricchisce il tuo libro di testo con ulteriori possibilità di apprendimento personalizzate ed è il complemento perfetto per esercitarsi in autonomia e ottenere un successo di apprendimento duraturo!","webshopText":" ","webshopLink":" ","list":"In alternativa, puoi sottoscrivere un abbonamento illimitato direttamente nell’app allango buddy. In questo modo avrai a disposizione funzioni aggiuntive: <item>Crea flashcard illimitate – su allango e nell’app</item><item>Utilizza illimitatamente nell’app la traduzione fotografica con riconoscimento degli oggetti</item><item>Imposta allango buddy come traduttore predefinito sul tuo dispositivo mobile</item>"},"playStore":"Google Play Store","playStoreLink":"https://play.google.com/store/apps/details?id=net.allango.buddy.app&utm_source=emea_Med","appStore":"Apple App Store","appStoreLink":"https://apps.apple.com/de/app/allango-buddy/id6754596172","ok":"Ok"}},"meta":{"title":"allango – la tua piattaforma per imparare le lingue!","description":"Scopri la piattaforma della Ernst Klett Sprachen per imparare e insegnare. Prova numerosi testi didattici e letture nell\'edizione digitale!","keywords":"Piattaforma di apprendimento; Lingue; imparare; insegnare; riproduzione di audio; riproduzione di video; Edizioni digitali; Testi didattici digitali; Letture; Ernst Klett Sprachen"}}'),je=JSON.parse('{"ui":{"save":"ui.save","abort":"ui.abort","done":"ui.done","actionOfflineDisabled":"ui.actionOfflineDisabled","ariaClose":"ui.ariaClose","ariaClear":"Zurücksetzen","ariaProfile":"ui.ariaProfile","ariaHelp":"ui.ariaHelp","ariaLoading":"ui.ariaLoading","linkTitle":"ui.linkTitle","linkLabel":"ui.linkLabel","neutralFilter":"ui.neutralFilter","menuAria":"ui.menuAria","brand":"ui.brand","brandDelta":"ui.brandDelta","darkModeTooltip":{"dark":"ui.darkModeTooltip.dark","light":"ui.darkModeTooltip.light"},"icons":{"menu":"ui.icons.menu","arrowRight":"ui.icons.arrowRight","chevronRight":"ui.icons.chevronRight","draw":"ui.icons.draw","rectangle":"ui.icons.rectangle","addComment":"ui.icons.addComment","addText":"ui.icons.addText","eraser":"ui.icons.eraser","translation":"ui.icon.translation","coverPage":"ui.icons.coverPage","playlist":"ui.icons.playlist","download":"ui.icons.download","version":"ui.icons.version","bookmarkActive":"ui.icons.bookmarkActive","bookmark":"ui.icons.bookmark","sideNavShow":"ui.icons.sideNavShow","sideNavHide":"ui.icons.sideNavHide","close"
2:"ui.icons.close","pause":"ui.icons.pause","play":"ui.icons.play","question":"ui.icons.question","homeActive":"ui.icons.homeActive","home":"ui.icons.home","filter":"ui.icons.filter","myContentActive":"ui.icons.myContentActive","myContent":"ui.icons.myContent","playlistActive":"ui.icons.playlistActive","profile":"ui.icons.profile","circlePlus":"ui.icons.circlePlus","edit":"ui.icons.edit","chevronDown":"ui.icons.chevronDown","chevronUp":"ui.icons.chevronUp","subtract":"ui.icons.subtract","clear":"ui.icons.clear","repeat":"ui.icons.repeat","bin":"ui.icons.bin","changeShapeOutline":"ui.icons.changeShapeOutline","tools":"ui.icons.tools","add":"ui.icons.add","info":"ui.icons.info","login":"ui.icons.login","logout":"ui.icons.logout","alertActive":"ui.icons.alertActive","checkmark":"ui.icons.checkmark","select":"ui.icons.select","key":"ui.icons.key","arrowLeft":"ui.icons.arrowLeft","lightmode":"ui.icons.lightmode","darkmode":"ui.icons.darkmode","rewind":"ui.icons.rewind","forward":"ui.icons.forward","sound":"ui.icons.sound","soundMute":"ui.icons.soundMute","fullscreen":"ui.icons.fullscreen","fullscreenExit":"ui.icons.fullscreenExit","bibliothek":"ui.icons.bibliothek","bibliothekActive":"ui.icons.bibliothekActive","cursor":"ui.icons.cursor","checkBulletPoint":"ui.icons.checkBulletPoint","correctAnswer":"ui.icons.correctAnswer","wrongAnswer":"ui.icons.wrongAnswer","celebration":"ui.icons.celebration","previous":"ui.icons.previous","next":"ui.icons.next","collectionAdd":"ui.icons.collectionAdd","star":"ui.icons.star","microphone":"ui.icons.microphone","noAnswer":"ui.icons.noAnswer","conversation":"ui.icons.conversation","graduation":"ui.icons.graduation"}},"errorPage":{"title":"errorPage.title","titleSuffix":"errorPage.titleSuffix","error":"errorPage.error","iosErrorTitle":"errorPage.iosErrorTitle","iosError":"errorPage.iosError","repeatedDexie":"errorPage.repeatedDexie","tryAgain":"errorPage.tryAgain","backHome":"errorPage.backHome"},"lang":{"de":"Deutsch","en":"English","es":"Español","eks":"EKS","fr":"lang.fr","it":"lang.it","pt":"lang.pt","pt-br":"lang.pt-br","tr":"lang.tr","ru":"lang.ru","ua":"lang.ua","ae":"lang.ae"},"breadcrumbs":{"ariaLabel":"breadcrumbs.ariaLabel"},"welcome":{"title":"welcome.title","copy":"welcome.copy","dashboard":"welcome.dashboard","augmented":"welcome.augmented","modal":{"title":"welcome.modal.title","copy":"welcome.modal.copy","close":"welcome.modal.close","login":"welcome.modal.login"},"license":{"teaserTitle":"welcome.license.teaserTitle","teaserText":"welcome.license.teaserText","teaserCta":"welcome.license.teaserCta","inputTitle":"welcome.license.inputTitle","inputText":"welcome.license.inputText","inputLabel":"welcome.license.inputLabel","inputHelp":"welcome.license.inputHelp","inputCta":"welcome.license.inputCta"},"search":{"title":"welcome.search.title","label":"welcome.search.label","placeholder":"welcome.search.placeholder"}},"protected":{"unauthTitle":"protected.unauthTitle","unauthCopy":"protected.unauthCopy","unauthCta":"protected.unauthCta","unautorisedTitle":"protected.unautorisedTitle","unautorisedCopy":"protected.unautorisedCopy"},"dashboard":{"title":"dashboard.title","unauthTitle":"dashboard.unauthTitle","unauthCopy":"dashboard.unauthCopy","unauthCta":"dashboard.unauthCta","recent":"dashboard.recent","nointeractions":"dashboard.nointeractions","teaser-button":"dashboard.teaser-button","isbnLabel":"dashboard.isbnLabel","npLabel":"dashboard.npLabel","myBooks":{"title":"dashboard.myBooks.title","all":"dashboard.myBooks.all"},"license":{"teaserTitle":"dashboard.license.teaserTitle","teaserText":"dashboard.license.teaserText","teaserCta":"dashboard.license.teaserCta","inputTitle":"dashboard.license.inputTitle","inputText":"dashboard.license.inputText","inputLabel":"dashboard.license.inputLabel","inputHelp":"dashboard.license.inputHelp","inputCta":"dashboard.license.inputCta"},"search":{"title":"dashboard.search.title","text":"dashboard.search.text","placholder":"dashboard.search.placholder"}},"interactions":{"playlist":"interactions.playlist"},"menu":{"logout":"menu.logaout","login":"menu.login","loggedInAs":"menu.loggedInAs","settings":"menu.settings"},"discover":{"title":"discover.title","searchLabel":"discover.searchLabel","lastSearch":"discover.lastSearch","teaser":"discover.teaser","hideExpired":"discover.hideExpired","result":{"resultsFor":"discover.result.resultsFor","resultsForSingle":"discover.result.resultsForSingle","resultsIn":"discover.result.resultsIn {{tabName}}","resultsInSingle":"discover.result.resultsInSingle {{tabName}}
2","books":"discover.result.books","noItemsFound":"discover.result.noItemsFound","noItemsFoundAdditionalText":"discover.result.noItemsFoundAdditionalText","supportLinkText":"discover.result.supportLinkText","supportLink":"discover.result.supportLink"}},"library":{"title":"library.title","myBooks":"library.myBooks","allBooks":"library.allBooks","allTools":"library.allTools","searchLabel":"library.searchLabel","subtitle":"library.subtitle"},"augmented":{"description-label":"augmented.description-label","level-label":"augmented.level-label","offline":"augmented.offline","offline-remove":"augmented.offline-remove","offline-retry":"augmented.offline-retry","offlineDisabled":"offline.offlineDisabled","download":"augmented.download","downloadStarted":"augmented.downloadStarted","downloadAria":"augmented.downloadAria {{format}}","bookbookmarkedsuccess":"augmented.bookbookmarkedsuccess","bookbookmarkedfailure":"augmented.bookbookmarkedfailure","pagebookmarkedsuccess":"augmented.bookbookmarkedfailure","pagebookmarkedfailure":"augmented.pagebookmarkedfailure","contentNavigation":{"pageLabel":"augmented.contentNavigation.pageLabel","title":"augmented.contentNavigation.title","page":"augmented.contentNavigation.page","ponsLink":"augmented.contentNavigation.ponsLink","invalidPageNumber":"augmented.contentNavigation.invalidPageNumber"},"contentToggle":"augmented.contentToggle","licenceInfo":"augmented.licenceInfo","licenceRead":"augmented.licenceRead","noProductFound":"augmented.noProductFound","backToDiscover":"augmented.backToDiscover","noAssetsOnPage":"augmented.noAssetsOnPage","onlyTeacherAssets":"augmented.onlyTeacherAssets","onlyTeacherAssetsNotLoggedIn":"augmented.onlyTeacherAssetsNotLoggedIn"},"accesscode":{"title":"accesscode.title {{asset.title}}, {{asset.page}} ","text":"accesscode.text","enter":"accesscode.enter","inputAria":"accesscode.inputAria","page":"accesscode.page","error":"accesscode.error"},"user-content":{"title":"user-content.title","unauthTitle":"user-content.unauthTitle","nav":{"bookmarks":"user-content.nav.bookmarks","offline":"user-content.nav.offline"},"offline":{"teaserTitle":"user-content.offline.teaserTitle","hint1":"user-content.offline.hint1","hint2":"user-content.offline.hint2","link":"user-content.offline.link"}},"bookmark":{"preview":{"page":"bookmark.preview.page","pages":"bookmark.preview.pages {{p1}} bookmark.preview.pages {{p2}}","version":"bookmark.preview.version","changeVersion":"bookmark.preview.changeVersion"},"teaser":{"title":"bookmark.teaser.title","copy":"bookmark.teaser.copy","close":"bookmark.teaser.close","login":"bookmark.teaser.login"},"bulk":{"remove":"bookmark.bulk.remove","download":"bookmark.teaser.download"},"noData":"bookmark.noData","teaserTitle":"bookmark.teaserTitle","hint1":"bookmark.hint1","hint2":"bookmark.hint2","link":"bookmark.link","removing":"bookmark.removing","removeSuccess":"bookmark.removeSuccess","undo":"bookmark.undo","searchPlaceholder":"bookmark.searchPlaceholder","add":"bookmark.add","removeSingle":"bookmark.removeSingle","noNewBookmarks":"bookmark.noNewBookmarks","addedSuccess":"bookmark.addedSuccess","bookmarking":"bookmark.bookmarking","removeBookmarkAria":"bookmark.removeBookmarkAria","setBookmarkAria":"bookmark.setBookmarkAria","removeAllBookmarksAria":"bookmark.removeAllBookmarksAria","setAllBookmarksAria":"bookmark.setAllBookmarksAria","savePageOffline":"bookmark.savePageOffline","assetsFound":"bookmark.assetsFound {{count}}"},"playlist":{"title":"playlist.title","newList":"playlist.newList","addEntry":"playlist.addEntry","notFoundTitle":"playlist.notFoundTitle","notAllowedTitle":"playlist.notAllowedTitle","backToOverview":"playlist.backToOverview","addToPlaylist":"playlist.addToPlaylist {{playlistName}}","menu":{"delete":"playlist.menu.delete","share":"playlist.menu.share","customContent":"playlist.menu.customContent","storeOffline":"playlist.menu.storeOffline","remove":"playlist.menu.remove","copy":"playlist.menu.copy","ariaLabel":"playlist.menu.ariaLabel"},"nav":{"private":"playlist.nav.private","received":"playlist.nav.received","curated":"playlist.nav.curated","curatedReceived":"playlist.nav.curatedReceived"},"share":{"title":"playlist.share.title","generate":"playlist.generate.copy","copy":"playlist.share.copy","copied":"playlist.share.copied","revoke":"playlist.share.revoke","warning":"playlist.share.warning"}
2,"invalidName":"playlist.invalidName","namePlaceholder":"playlist.namePlaceholder","removeFromList":"playlist.removeFromList","addToList":"playlist.addToList","screenReader":{"menu":"playlist.screenReader.menu {{count}}","menuSingular":"playlist.screenReader.menuSingular","formular":"playlist.screenReader.formular"},"emptyListTitle":"playlist.emptyListTitle","emptyListLink":{"0":"playlist.emptyListLink.0","1":"playlist.emptyListLink.1","2":"playlist.emptyListLink.2","3":"playlist.emptyListLink.3"},"emptyListsTitle":"playlist.emptyListTitle","emptyListsCopy":"playlist.emptyListsCopy","emptyListsLink":"playlist.emptyListsLink","emptyListsTitleShared":"playlist.emptyListsTitleShared","emptyListsCopyShared":"playlist.emptyListsCopyShared","emptyListsTitleCurated":"playlist.emptyListsTitleCurated","emptyListsCopyCurated":"playlist.emptyListsCopyCurated","emptyListsTitleCuratedShared":"playlist.emptyListsTitleCuratedShared","emptyListsCopyCuratedShared":"playlist.emptyListsCopyCuratedShared","emptyListOffline":"playlist.emptyListOffline","entryForm":{"title":{"label":"entryForm.title.label","placeholder":"entryForm.title.placeholder"},"comment":{"label":"entryForm.comment.label","placeholder":"entryForm.comment.placeholder","help":"entryForm.comment.help"},"description":{"label":"entryForm.description.label","placeholder":"entryForm.description.placholder","help":"entryForm.description.help"},"url":{"label":"entryForm.url.label","placeholder":"entryForm.url.placholder"},"required":"Titel ist erforderlich"},"addComment":"playlist.addComment","author":"playlist.author","creationDate":"playlist.creationDate","modified":"playlist.modified","shareButton":"playlist.shareButton","copyPlaylist":"playlist.copyPlaylist","addFirstEntry":"playlist.addFirstEntry","addedReceived":"playlist.addedReceived","copySuccess":"playlist.copySuccess","addedAssetMessage":"playlist.addedAssetMessage","updateTitle":"playlist.updateTitle","editInfoBox":{"copy":"playlist.editInfoBox.copy","button":"playlist.editInfoBox.button"},"editListNameAria":"playlist.editListNameAria","anonymsAuthor":"playlist.anonymsAuthor","showCommentAria":"playlist.showCommentAria","reorderUpAria":"playlist.reorderUpAria","reorderDownAria":"playlist.reorderDownAria","containsAudioVideo":"playlist.containsAudioVideo","containsNotDownloadableAsset":"playlist.containsNotDownloadableAsset","deleted":"playlist.deleted"},"course":{"title":"course.title","newCourse":"course.newCourse","downloadInstitute":"course.downloadInstitute","downloadSuccess":"course.downloadSuccess","downloadError":"course.downloadError","author":"course.author","creationDate":"course.creationDate {{date}}","modified":"course.modified {{date}}","tabs":{"overview":"course.tabs.overview","members":"course.tabs.members","collaborators":"course.tabs.collaborators","books":"course.tabs.books"},"overview":{"reload":"course.overview.reload","progressionUpdateSlow":"course.overview.progressionUpdateSlow","progressionUpdateComplete":"course.overview.progressionUpdateComplete","progressionUpdateStillRunning":"course.overview.progressionUpdateStillRunning","noProgression":"course.overview.noProgression","noCompetencies":"course.overview.noCompetencies","modified":"course.overview.modified {{date}}","bookSelectLabel":"course.overview.bookSelectLabel","courseAverage":"course.overview.courseAverageWithIcon","chapters":"course.overview.chapters","competencies":"course.overview.competencies","competency":"course.overview.competency","chapter":"course.overview.chapter","solvedLessons":"course.overview.solvedLessons","correctAnswers":"course.overview.correctAnswers","total":"course.overview.total","result":"course.overview.result","edited":"course.overview.edited","read":"course.overview.read","dataChangeScreenReader":"course.overview.dataChangeScreenReader {{type}}","export":{"download":"course.overview.export.download","downloadError":"course.overview.export.downloadError"},"filterInfo":{"accessibilityLabel":"course.overview.filterInfo.accessibilityLabel","title":"course.overview.filterInfo.title","text":"course.overview.filterInfo.text","ok":"course.overview.filterInfo.ok"},"hideSelfEvaluation":"course.overview.hideSelfEvaluation","chapterCompleted":"course.overview.chapterCompleted","accessibilityLabel":"course.overview.accessibilityLabel"},"members":{"remove":"course.members.remove","emptyTeaser":{"title":"course.members.emptyTeaser.title","body":"course.members.emptyTeaser.body"}},"collaborators":{"remove":"course.collaborators.remove","emptyTeaser":{"title":"course.collaborators.emptyTeaser.title","body":"course.collaborators.emptyTeaser.body"}},"books":{"remove":"course.books.remove","addButton":"course.books.addButton","emptyTeaser":{"title":"course.books.emptyTeaser.title","body":"course.books.emptyTeaser.body"},"add":{"title":"course.books.add.title {{title}}","ariaLabel":"course.books.add.ariaLabel","searchPlaceholder":"course.books.add.searchPlaceholder","search":"course.books.add.search","noBookFound":"course.books.add.noBookFound","note":"course.books.add.note","noteInfo":{"iconAria":"course.books.add.noteInfo.iconAria","title":"course.books.add.noteInfo.title","text":"course.books.add.noteInfo.text","ok":"course.books.add.noteInfo.ok"},"abort":"course.books.add.abort","saveSingle":"course.books.add.saveSingle {{count}}","savePlural":"course.books.add.savePlural {{count}}"}},"emptyTeaser":{"emptyCoursesLink":"course.emptyTeaser.emptyCoursesLink","title":"course.emptyTeaser.title","body":"course.emptyTeaser.body"},"menu":{"delete":"course.menu.delete","deleteModal":{"warningTitle":"course.menu.deleteModal.warningTitle","warningTextCourse":"course.menu.deleteModal.warningTextCourse","warningTextBook":"course.menu.deleteModal.warningTextBook","warningTextCollaborator":"course.menu.deleteModal.warningTextCollaborator","warningTextMember":"course.menu.deleteModal.warningTextMember","warningTextMembership":"course.menu.deleteModal.warningTextMembership","warningButton":"course.menu.deleteModal.warningButton"},"share":"course.menu.share","ariaLabel":"course.menu.ariaLabel"},"join":{"joinSuccessful":"course.join.joinSuccessful","leaveSuccessful":"course.join.leaveSuccessful","modal":{"joinCourseTitle":"course.join.modal.joinCourseTitle {{courseId}}","joinCourseAgeConsent":"course.join.modal.joinCourseAgeConsent","joinCourseDataConsent":"course.join.modal.joinCourseDataConsent","joinCourseCopy":"course.join.modal.joinCourseCopy <settingsLink></settingsLink>","cancel":"course.join.modal.cancel","confirm":"course.join.modal.confirm"}},"editCourseNameAria":"course.editCourseNameAria","updateTitle":"course.updateTitle","namePlaceholder":"course.namePlaceholder","invali
2dName":"course.invalidName","share":{"title":{"members":"course.share.members.title","collaborators":"course.share.collaborators.title"},"copy":"course.share.copy","revoke":"course.share.revoke","info":{"members":"course.share.info.members"},"generate":"course.share.generate","copied":"course.share.copied","button":"course.share.button"}},"navigation":{"ariaUserContent":"navigation.ariaUserContent","ariaSearch":"navigation.ariaSearch","ariaDashboard":"navigation.ariaDashboard","ariaPlaylist":"navigation.ariaPlaylist","ariaCourse":"navigation.ariaCourse","ariaBibliothek":"navigation.ariaBibliothek","tooltipUserContent":"navigation.tooltipUserContent","tooltipSearch":"navigation.tooltipSearch","tooltipDashboard":"navigation.tooltipDashboard","tooltipPlaylist":"navigation.tooltipPlaylist","tooltipCourse":"navigation.tooltipCourse","tooltipBibliothek":"navigation.tooltipBibliothek","tooltipOpenSideNavigation":"navigation.tooltipOpenSideNavigation","tooltipCloseSideNavigation":"navigation.tooltipCloseSideNavigation"},"pagination":{"elements":"pagination.elements","previous":"pagination.previous","next":"pagination.next","ariaPage":"pagination.ariaPage"},"downloadManager":{"title":"downloadManager.title","waiting":"downloadManager.waiting","downloading":"downloadManager.downloading","cached":"downloadManager.cached","notStored":"downloadManager.notStored","success":"downloadManager.success","failure":"downloadManager.failure","bulkPrepare":"downloadManager.bulkPrepare","offlineHint":{"1":"downloadManager.offlineHint.1","2":"downloadManager.offlineHint.2","3":"downloadManager.offlineHint.3"},"offlineErrorHint":"downloadManager.offlineErrorHint","abortAll":"downloadManager.abortAll","retryAssetAria":"downloadManager.retryAssetAria","removeAssetAria":"downloadManager.removeAssetAria","riskIconAria":"downloadManager.riskIconAria","screenReaderStart":"downloadManager.screenReaderStart","screenReaderEnd":"downloadManager.screenReaderEnd"},"search":{"placeholder":"search.placeholder","placeholderAssets":"search.placeholderAssets","submitButton":"search.submitButton","ariaIcon":"search.ariaIcon","myBooks":"search.myBooks","allBooks":"search.allBooks","allTools":"search.allTools"},"offline":{"offline":"offline.offline","bannerCopy":"offline.bannerCopy","disabledSearch":"offline.disabledSearch","disabledAction":"offline.disabledAction"},"newContent":{"copy":"newContent.copy","button":"newContent.button","releaseInfoLinkText":"newContent.releaseInfoLinkText"},"shared":"shared","install":{"prompt":"install.prompt","dismiss":"install.dismiss","install":"install.install"},"facet":{"bookPage":"facet.bookPage","series":"facet.series","niveau":"facet.niveau","format":"facet.format","bookTitle":"facet.bookTitle","bookDescribedTitle":"facet.bookDescribedTitle","bezeichnung":"facet.bezeichnung","isbn":"facet.isbn","type":"facet.type"},"badge":{"teacher":"badge.teacher","accesslocked":"badge.accesslocked","accessunlocked":"badge.accessunlocked","dauaccesslocked":"badge.dauaccesslocked","demo":"badge.demo","uPlus":"badge.uPlus","lernPlus":"badge.lernPlus","dau":"badge.dau","resultPercentage":"badge.resultPercentage {{percentage}}","selfEvaluation":"badge.selfEvaluation","aiEvaluation":"badge.aiEvaluation","test":"badge.test","interactiveVideo":"badge.interactiveVideo"},"help":{"accesscode-where-url":"help.accesscode-where-url","accesscode-where-code":"help-accesscode-where-code","base-url":"help.base-url"},"resourceList":{"bookmark-all":"resourceList.bookmark-all","pageFilterPrefix":"resourceList.pageFilterPrefix","page":"resourceList.page","sortPrefix":"resourceList.sortPrefix","documentSingle":"resourceList.documentSingle","documentPlural":"resourceList.documentPlural","moreActions":"resourceList.moreActions","cancel":"resourceList.cancel","editList":"resourceList.editList","mediaFilter":"resourceList.mediaFilter","bulkOffline":"resourceList.bulkOffline","bulkSelect":"resourceList.bulkSelect","mediafilterAll":"resourceList.mediafilterAll","noData":"resourceList.noData","selection":"resourceList.selection ({{count}})","sorters":{"titleAsc":"resourceList.sorters.titleAsc","titleDesc":"resourceList.sorters.titleDesc","timelinessAsc":"resourceList.sorters.timelinessAsc","timelinessDesc":"resourceList.sorters.timelinessDesc","recentlyUsed":"resourceList.sorters.recentlyUsed","activation":"resourceList.sorters.activation"},"downloadAudios":{"buttonText":"resourceList.downloadAudios.buttonText","infoIcon":"resourceList.downloadAudios.infoIcon","infoModalTitle":"resourceList.downloadAudios.infoModalTitle","infoModalText":"resourceList.downloadAudios.infoModalText","ok":"resourceList.downloadAudios.ok"}},"asset":{"audiosTextSingular":"asset.audiosTextSingular","audiosTextPlural":"asset.audiosTextPlural","videosTextSingular":"asset.videosTextSingular","videosTextPlural":"asset.videosTextPlural","pdfsTextSingular":"asset.pdfsTextSingular","pdfsTextPlural":"asset.pdfsTextPlural","htmlsTextSingular":"asset.htmlsTextSingular","htmlsTextPlural":"asset.htmlsTextPlural","linksTextSingular":"asset.linksTextSingular","linksTextPlural":"asset.linksTextPlural","dauLinksTextSingular":"asset.dauLinksTextSingular","dauLinksTextPlural":"asset.dauLinksTextPlural","filesTextSingular":"asset.filesTextSingular","filesTextPlural":"asset.filesTextPlural","daupagesTextSingular":"asset.daupagesTextSingular","daupagesTextPlural":"asset.daupagesTextPlural","asse
2ssmentsTextSingular":"asset.assessmentsTextSingular","assessmentsTextPlural":"asset.assessmentsTextPlural","selftestsTextSingular":"asset.selftestsTextSingular","selftestsTextPlural":"asset.selftestsTextPlural","audio":"asset.audio","audios":"asset.audios","audioPlay":"asset.audioPlay","video":"asset.video","videos":"asset.videos","videoPlay":"asset.videoPlay","pdf":"asset.pdf","pdfs":"asset.pdfs","pdfPlay":"asset.pdfPlay","html":"asset.html","htmls":"asset.htmls","htmlPlay":"asset.htmlPlay","iframe":"asset.iframe {{title}}","externalLink":"asset.externalLink","link":"asset.link","links":"asset.links","linkPlay":"asset.linkPlay","dauLink":"asset.dauLink","dauLinks":"asset.dauLinks","dauLinkPlay":"asset.dauLinkPlay","dauLinkLabel":"asset.dauLinkLabel ","uhbLinkLabel":"asset.uhbLinkLabel","file":"asset.file","files":"asset.files","filePlay":"asset.filePlay","daupage":"asset.daupage","daupages":"asset.daupages","uhbpage":"asset.uhbpage","uhbpages":"asset.uhbpages","others":"asset.others","assessment":"asset.assessment","assessments":"asset.assessments","selftest":"asset.selftest","selftests":"asset.selftests","menu":{"ariaLabel":"asset.menu.ariaLiabel"}},"settings":{"title":"settings.title","personalTitle":"settings.personalTitle","email":"settings.email","name":"settings.name","username":"settings.username","ariaUsername":"settings.ariaUsername","anonymsAuthor":"settings.anonymsAuthor","ssoId":"settings.ssoId","security":"settings.security","password":"settings.password","changePassword":"settings.changePassword","ariaCancel":"settings.ariaCancel","loading":"settings.loading","success":"settings.success","courses":"settings.courses","leaveCourse":"settings.leaveCourse","settings":"settings.settings","language":"settings.language","roles":"settings.roles","rolenames":{"student":"settings.rolenames.student","teacher":"settings.rolenames.teacher","schooladmin":"settings.rolenames.schooladmin","eks_content_admin":"settings.rolenames.eks_content_admin","admin":"settings.rolenames.admin","editor":"settings.rolenames.editor"}},"footer":{"privacy":"footer.privacy","imprint":"footer.imprint","terms-of-use":"footer.terms-of-use","cookie-consent":"footer.cookie-consent","copyright":"footer.copyright","version":"footer.version","accessibility":"footer.accessibility","subscription":"footer.subscription","subscription-url":"footer.subscription-url","subscription-url-delta":"footer.subscription-url-delta"},"featureTeaser":{"playlist":{"title":"featureTeaser.playlist.title","subtitle":"featureTeaser.playlist.subtitle","copy":"featureTeaser.playlist.copy","cta":"featureTeaser.playlist.copy"},"favourits":{"title":"featureTeaser.favourits.title","subtitle":"featureTeaser.favourits.subtitle","copy":"featureTeaser.favourits.copy","cta":"featureTeaser.favourits.copy"}}
2,"pdfplayer":{"save":"pdfplayer.save","close":"pdfplayer.close","page":"pdfplayer.page","version":"pdfplayer.version","originalVersion":"pdfplayer.originalVersion","zoomInAria":"pdfplayer.zoomInAria","zoomOutAria":"pdfplayer.zoomOutAria","nextPageAria":"pdfplayer.nextPageAria","pageInputAria":"pdfplayer.pageInputAria","prevPageAria":"pdfplayer.prevPageAria","zoomSizeOriginal":"pdfplayer.zoomSizeOriginal","zoomAria":"pdfplayer.zoomAria {{value}}","pageFrom":"pdfplayer.pageFrom"},"assetPlayer":{"fullscreen":{"exitFullscreenAria":"assetPlayer.fullscreen.exitFullscreenAria","showInFullscreenAria":"assetPlayer.fullscreen.showInFullscreenAria"},"minimize":"assetPlayer.minimize","maximize":"assetPlayer.maximize","pauseAria":"assetPlayer.pauseAria","playAria":"assetPlayer.playAria","forwardAria":"assetPlayer.forwardAria","rewindAria":"assetPlayer.forwardAria","previousAria":"assetPlayer.previousAria","nextAria":"assetPlayer.nextAria","sliderInputAria":"assetPlayer.sliderInputAria","taskMarker":"assetPlayer.taskMarker {{time}}","unmute":"assetPlayer.unmute","mute":"assetPlayer.mute","playbackRateChangeAria":"assetPlayer.playbackRateChangeAria","playbackRateAria":"assetPlayer.playbackRateAria {{rate}}","showTrackAria":"assetPlayer.showTrackAria","hideTrackAria":"assetPlayer.hideTrackAria","showListAria":"assetPlayer.showListAria","hideListAria":"assetPlayer.hideListAria","subtitles":"assetPlayer.subtitles"},"error":{"playlist":{"failCreate":"error.playlist.failCreate","failRename":"error.playlist.failRename","failModify":"error.playlist.failModify","failAddEntry":"error.playlist.failAddEntry","failAddAsset":"error.playlist.failAddAsset","failDelete":"error.playlist.failDelete","failCopy":"error.playlist.failCopy","failDeleteShareLink":"error.playlist.failDeleteShareLink","playlistNotFound":"error.playlist.playlistNotFound","failRemoveReceived":"error.playlist.failRemoveReceived","noResponse":"error.playlist.noResponse","failCopyToClipboard":"error.playlist.failCopyToClipboard"},"course":{"courseNotFound":"error.course.courseNotFound","failCreate":"error.course.failCreate","failRename":"error.course.failRename","failModify":"error.course.failModify","failDelete":"error.course.failDelete","failJoin":"error.course.failJoin","failLeave":"error.course.failLeave","removeFromCourse":"error.course.removeFromCourse","failShareCourse":"error.course.failShareCourse","failCopyToClipboard":"error.course.failCopyToClipboard","addToBookList":"error.course.addToBookList","removeFromBookList":"error.course.removeFromBookList","progressionNotFound":"error.course.progressionNotFound","failProgressionCreate":"error.course.failProgressionCreate"},"settings":{"failSave":"error.settings.failSave","failGetSettings":"error.settings.failGetSettings"},"asset":{"failGetPdf":"error.asset.failGetPdf","failLoadMedium":"error.asset.failLoadMedium","failHtmlLoad":"error.asset.failHtmlLoad","failGetAccess":"error.asset.failGetAccess","failGetAsset":"error.asset.failGetAsset","unauthorized":"error.asset.unauthorized","licenseHelp":"error.asset.licenseHelp","licenseHelpLink":"error.asset.licenseHelpLink","cacheDisabled":"error.asset.cacheDisabled","downloadAccessCodeProtected":"error.asset.downloadAccessCodeProtected","invalidAccessCode":"error.asset.invalidAccessCode"},"augmented":{"failGetProduct":"error.augmented.failGetProduct","failCover":"error.augmented.failCover"},"bookmark":{"addedFailure":"error.bookmark.addedFailure","removeFailure":"error.bookmark.removeFailure","bookmarksNotAllowed":"error.bookmark.bookmarksNotAllowed","failSearch":"error.bookmark.failSearch"},"interaction":{"failPostInteraction":"error.interaction.failPostInteraction","failGetInteraction":"error.interaction.failGetInteraction"},"search":{"failedBookSearch":"error.search.failedBookSearch","failedSuggestion":"error.search.failedSuggestion","failedToolSearch":"error.search.failedToolSearch"},"general":"error.general","serviceUnavailable":{"title":"error.serviceUnavailable.title","copy":"error.serviceUnavailable.copy","reload":"error.serviceUnavailable.reload"},"serviceTimeout":{"copy":"error.serviceTimeout.copy"},"pageNotFound":{"title":"error.pageNotFound.title","link":"error.pageNotFound.link"},"privateMode":{"title":"error.privateMode.title","copy":"error.privateMode.copy"},"dau":{"failedSaveVersion":"error.dau.failedSaveVersion","failedFilterAsset":"error.dau.failedFilterAsset","failGetPdf":"error.dau.failGetPdf","failGetDauLearningProgress":"error.dau.failGetDauLearningProgress","failSetDauPageReadProgress":"error.dau.failSetDauPageReadProgress","failSetChapterCompletion":"error.dau.failSetChapterCompletion","failedDeleteEdit":"error.dau.failedDeleteEdit"},"license":{"403":{"general":"error.license.403.general","Augmented":"error.license.403.Augmented","Digital":"error.license.403.Digital","UHB":"error.license.403.UHB","Eksdi":"error.license.403.Eksdi"},"failActivateLicense":"error.license.failActivateLicense","failCheckLicense":"error.license.failCheckLicense","errorCode":{"100":"error.license.errorCode.100","101":"error.license.errorCode.101","102":"error.license.errorCode.102","103":"error.license.errorCode.103","104":"error.license.errorCode.104","105":"error.license.errorCode.105","999":"error.license.errorCode.999","null":"error.license.errorCode.null"}},"demo":{"failStartDemo":"error.demo.failStartDemo","noLPlusDemoWithoutDau":"error.demo.noLPlusDemoWithoutDau"},"bilo":{"noLicense":"error.bilo.noLicense","notFound":"error.bilo.notFound","general":"error.bilo.general"},"iqBuddy":{"getCollectionRequestFailed":"error.iqBuddy.collection.getRequestFailed {{code}}","requestFailed":"error.iqBuddy.requestFailed {{code}}","createCollectionFailed":"error.iqBuddy.createCollectionFailed {{code}}","addPhraseToCollectionFailed":"error.iqBuddy.addPhraseToCollectionFailed {{code}}","textToSpeechFailed":"error.iqBuddy.textToSpeechFailed"},"select":{"multiselect":"error.select.multiselect","tooLong":"error.select.tooLong"},"eksdi":{"failGetEksdiMap":"error.eksdi.failGetEksdiMap","failGetBookSession":"error.eksdi.failGetBookSession","failResetBookSession":"error.eksdi.failResetBookSession","failGetLesson":"error.eksdi.failGetLesson","failGetSolution":"error.eksdi.failGetSolution","submitLesson":"error.eksdi.submitLesson","failResetLesson":"error.eksdi.failResetLesson","failGetSelftest":"error.eksdi.failGetSelftest","failSubmitSelftest":"error.eksdi.failSubmitSelftest","failResetSelftest":"error.eksdi.failResetSelftest"}},"dau":{"learningprogress":{"title":"dau.learningprogress.title","solvedAssignments":"dau.learningprogress.solvedAssignments","readPages":"dau.learningprogress.readPages","solvedAssignmentsPercentage":"dau.learningprogress.solvedAssignmentsPercentage {{percentage}}","readPagesPercentage":"dau.learningprogress.readPagesPercentage {{percentage}}","totalPercentage":"dau.learningprogress.totalPercentage {{pagesPercentage}} {{assignmentsPercentage}}","infoReadPagesTitle":"dau.learningprogress.infoReadPagesTitle","infoReadPages":"dau.learningprogress.infoReadPages","filters":{"title":"dau.learningprogress.filters.title","competences":"dau.learningprogress.filters.competences","edition":"dau.learningprogress.filters.edition","format":"dau.learningprogress.filters.format","reset":"dau.learningprogress.filters.reset","editions":{"dau":"dau.learningprogress.filters.edition.dau","uhb":"dau.learningprogress.filters.edition.uhb","eksdi":"dau.learningprogress.filters.edition.eksdi"}},"reset":"dau.learningprogress.reset","openAssessment":"dau.learningprogress.openAssessment {{page}}","chapterCompleted":"dau.learningprogress.chapterCompleted","chapterCompletedInfo":"dau.learningprogress.chapterCompletedInfo"},"tools":{"shutters":{"top":"dau.tools.shutters.top","bottom":"dau.tools.shutters.bottom","topleft":"dau.tools.shutters.topleft","topright":"dau.tools.shutters.topright","bottomleft":"dau.tools.shutters.bottomleft","bottomright":"dau.tools.shutters.bottomright"},"config":{"fontSizeLabel":"dau.tools.config.fontSizeLabel","fontSizeButtonAriaLabel":"dau.tools.config.fontSizeButtonAriaLabel","colorChangeButtonAriaLabelOpen":"dau.tools.config.colorChangeButtonAriaLabelOpen","colorChangeButtonAriaLabelClose":"dau.tools.config.colorChangeButtonAriaLabelClose","delete":"dau.tools.config.delete","confirm":"dau.tools.config.confirm","strokeWidthLabel":"dau.tools.config.strokeWidthLabel","strokeWidthSubtstractAria":"dau.tools.config.strokeWidthSubtstractAria","strokeWidthInputAria":"dau.tools.config.strokeWidthInputAria","strokeWidthAddAria":"dau.tools.config.strokeWidthAddAria","colorLabel":"dau.tools.config.colorLabel","currentColor":"dau.tools.config.currentColor","color":{"black":"dau.tools.config.color.black","blue":"dau.tools.config.color.blue","green":"dau.tools.config.color.green","red":"dau.tools.config.color.red","orange":"dau.tools.config.color.orange","yellow":"dau.tools.config.color.yellow","custom"
2:"dau.tools.config.color.custom {{colorCode}}"}},"text":{"placeholder":"dau.tools.text.placeholder","ariaLabel":"dau.tools.text.ariaLabel"},"search":{"submit":"dau.tools.search.submit","searchAria":"dau.tools.search.searchAria","searchTooltip":"dau.tools.search.searchTooltip","placeholder":"dau.tools.search.placeholder","hits":"dau.tools.search.hits"},"note":{"placeholder":"dau.tools.note.placeholder"},"selection":{"drawAria":"dau.tools.selection.drawAria","rectangleAria":"dau.tools.selection.rectangleAria","addCommentAria":"dau.tools.selection.addCommentAria","coverPageAria":"dau.tools.selection.coverPageAria","cursorAria":"dau.tools.selection.cursorAria","markAria":"dau.tools.selection.markAria","addTextAria":"dau.tools.selection.addTextAria","eraserAria":"dau.tools.selection.eraserAria","translationAria":"dau.tools.selection.translationAria","drawTooltip":"dau.tools.selection.drawTooltip","rectangleTooltip":"dau.tools.selection.rectangleTooltip","addCommentTooltip":"dau.tools.selection.addCommentTooltip","coverPageTooltip":"dau.tools.selection.coverPageTooltip","cursorTooltip":"dau.tools.selection.cursorTooltip","markTooltip":"dau.tools.selection.markTooltip","addTextTooltip":"dau.tools.selection.addTextTooltip","eraserTooltip":"dau.tools.selection.eraserTooltip","translationTooltip":"dau.tools.selection.translationTooltip"},"assetButtons":{"audioTooltip":"dau.tools.assetButtons.audioTooltip","videoTooltip":"dau.tools.assetButtons.videoTooltip","othersTooltip":"dau.tools.assetButtons.othersTooltip","exerciseTooltip":"dau.tools.assetButtons.exerciseTooltip"},"moreToolsTooltip":"dau.tools.moreToolsTooltip","closeToolsTooltip":"dau.tools.closeToolsTooltip","openToolsTooltip":"dau.tools.openToolsTooltip","zoomOutAria":"dau.tools.zoomOutAria","zoomInAria":"dau.tools.zoomInAria","toggleLayoutAria":"dau.tools.toggleLayoutAria","toggleLayoutTooltip":"dau.tools.toggleLayoutTooltip","toggleVersion":"dau.tools.toggleVersion","showToolsAria":"dau.tools.showToolsAria","dropdownAria":"dau.tools.dropdownAria","fullscreenEnter":"dau.tools.fullscreenEnter","fullscreenExit":"dau.tools.fullscreenExit","removeOffline":"dau.tools.removeOffline","downloadPdf":"dau.tools.downloadPdf","downloadAssets":"dau.tools.downloadAssets","noAssetsAvailableForDownload":"dau.tools.noAssetsAvailableForDownload","bookmarkPage":"dau.tools.bookmarkPage","bookmark":{"hoverTitle":"dau.tools.bookmark.hoverTitle"},"assetFilterTooltip":"dau.tools.assetFilterTooltip"},"layout":{"label":"dau.layout.label","auto":"dau.layout.auto"},"navigation":{"chapters":"dau.navigation.chapters","page":"dau.navigation.page","pages":"dau.navigation.pages","attachment":"dau.navigation.attachment","attachments":"dau.navigation.attachments","noAttachments":"dau.navigation.noAttachments","filter":"dau.navigation.filter","learningProgressLink":"dau.navigation.learningProgressLink","filters":{"apply":"dau.navigation.filters.apply","reset":"dau.navigation.filters.reset","format":"dau.navigation.filters.format","edition":"dau.navigation.filters.edition","totalResult":"dau.navigation.filters.totalResult"},"content":{"dropdownTooltip":"dau.navigation.content.dropdownTooltip","page":"dau.navigation.content.page","overlappingContent":"dau.navigation.content.overlappingContent"}},"version":{"about":{"title":"dau.version.about.title","copy":"dau.version.about.copy","ok":"dau.version.about.ok"},"unsaved":{"title":"dau.version.unsaved.title","copy":"dau.version.unsaved.copy","abort":"dau.version.unsaved.abort","dismiss":"dau.version.unsaved.dismiss"},"create":{"title":"dau.version.create.title","placeholder":"dau.version.create.placeholder","abort":"dau.version.create.abort","save":"dau.version.create.save","validation":{"empty":"dau.version.create.validation.empty"}},"created":{"title":"dau.version.created.title","copy":{"0":"dau.version.created.copy.0 {{title}}","1":"dau.version.created.copy.1"},"confirm":"dau.version.created.confirm"},"checkmark":"dau.version.checkmark","manage":"dau.version.manage","saveSuccess":"dau.version.saveSuccess","config":{"copy":"dau.version.config.copy","title":"dau.version.config.title","lastModified":"dau.version.config.lastModified","rename":"dau.version.config.rename","delete":"dau.version.config.delete {{versionName}}","duplicate":"dau.version.config.duplicate","confirm":"dau.version.config.confirm","close"
2:"dau.version.config.close","renameConfirm":"dau.version.config.renameConfirm","newversion":"dau.version.config.newversion","error":{"missing-new-version-name":"dau.version.config.error.missing-new-version-name","missing-version-name":"dau.version.config.error.missing-new-version-name"},"screenReader":{"newVersion":"dau.version.config.screenReader.newVersion {{name}}","deleteVersion":"dau.version.config.screenReader.deleteVersion {{name}}","duplicateVersion":"dau.version.config.screenReader.duplicateVersion {{name}}"}},"change":{"currentVersion":"dau.version.change.currentVersion","title":"dau.version.change.title","save":"dau.version.change.save","radioAria":"dau.version.change.radioAria"},"originalVersion":"dau.version.originalVersion","originalVersionUnedited":"dau.version.originalVersionUnedited","shared":"dau.version.shared"},"license":{"title":"dau.license.title","pageTitle":"dau.license.pageTitle","text":"dau.license.text"},"resetAll":{"warningText":"dau.resetAll.warningText","successText":"dau.resetAll.successText"},"header":{"open":"dau.header.open","close":"dau.header.close"}},"pager":{"prevAria":"pager.prevAria","nextAria":"pager.nextAria","prevTooltip":"pager.prevTooltip","nextTooltip":"pager.nextTooltip","inputAria":"pager.inputAria","page":"pager.page","invalidPage":"pager.invalidPage","screenReader":"pager.screenReader {{page}}"},"license":{"success":"license.success","successInfo":"license.successInfo","successPlural":"license.successPlural","successInfoPlural":"license.successInfoPlural","accept":"license.accept","openBook":"license.openBook","inputError":"license.inputError","confirm":"license.confirm","decline":"license.decline","text":"license.text","textPlural":"license.textPlural","textPluralWithPackageTitle":"license.textPluralWithPackageTitle {{packageTitle}}","placeholder":"license.placeholder","base-url":"license.base-url","helpAria":"license.helpAria","inputBoxTitle":"license.inputBoxTitle","inputBoxText":"license.inputBoxText","inputLabel":"license.inputLabel","inputCta":"license.inputCta","inputHelp":"license.inputHelp","forceActivate":"license.forceActivate","buyAlternative":"license.buyAlternative","expired":"license.expired","noLicense":"license.noLicense","warnings":{"noLicense":"license.warnings.noLicense","uhbWithMissingDau":{"title":"license.warnings.uhbWithMissingDau.title","subtitle":"license.warnings.uhbWithMissingDau.subtitle","linkText":"license.warnings.uhbWithMissingDau.linkText"},"eksdiWithMissingDau":{"title":"license.warnings.eksdiWithMissingDau.title","subtitle":"license.warnings.eksdiWithMissingDau.subtitle","linkText":"license.warnings.eksdiWithMissingDau.linkText"}}},"maxProduct":{"noProductFound":"maxProduct.noProductFound","backToOverview":"maxProduct.backToOverview","freeContent":"maxProduct.freeContent","freeContentDescription":"maxProduct.freeContentDescription","openFreeContent":"maxProduct.openFreeContent","forFree":"maxProduct.forFree","digitalContent":"maxProduct.digitalContent","digitalContentDescription":"maxProduct.digitalContentDescription","openDigitalContent":"maxProduct.openDigitalContent","lehrerwelt":"maxProduct.lehrerwelt","lehrerweltDescription":"maxProduct.lehrerweltDescription","openLehrerwelt":"maxProduct.openLehrerwelt","lernplus":"maxProduct.lernplus","lernplusDescription":"maxProduct.lernplusDescription","openLernplus":"maxProduct.openLernplus","viewMore":"maxProduct.viewMore","languageLabel":"maxProduct.languageLabel","licenceLabel":"maxProduct.licenceLabel","loginTeaser":"maxProduct.loginTeaser","tool":"maxProduct.tool","iqBuddy":"maxProduct.iqBuddy","worksheetGenerator":{"buttonText":"maxProduct.worksheetGenerator.buttonText","link":"maxProduct.worksheetGenerator.link"},"teachermatics":{"buttonText":"maxProduct.teachermatics.buttonText","link":"maxProduct.teachermatics.link"},"activitySet":{"buttonText":"maxProduct.activitySet.buttonText"},"aria":{"bookCoverLinkToMaximalProductPage":"maxProduct.aria.bookCoverLinkToMaximalProductPage {{bookTitle}}","digitalContent":"maxProduct.aria.digitalContent","freeContent":"maxProduct.aria.freeContent","backToOverview":"maxProduct.aria.backToOverview","iqBuddy":"maxProduct.aria.iqBuddy","worksheetGenerator":"maxProduct.aria.worksheetGenerator","teachermatics":"maxProduct.aria.teachermatics","activitySet":"maxProduct.aria.activitySet"},"demo":{"text":"maxProduct.demo.text","durationSingle":"maxProduct.demo.durationSingle","durationPlural":"maxProduct.demo.durationPlural","login":"maxProduct.demo.login"},"license":{"validUntilLabel":"maxProduct.license.validUnitlLabel","invali
2dSince":"maxProduct.license.invalidSince","error":"maxProduct.license.error","free":"maxProduct.license.free","enterCode":"maxProduct.license.enterCode","inputLabel":"maxProduct.license.inputLabel","inputHelp":"maxProduct.license.inputHelp","inputCta":"maxProduct.license.inputCta","inputTitle":"maxProduct.license.inputTitle","inputText":"maxProduct.license.inputText","teaserTitle":"maxProduct.license.teaserTitle","teaserText":"maxProduct.license.teaserText","teaserCta":"maxProduct.license.teaserCta","licenseNeeded":"maxProduct.license.licenseNeeded","buyEdition":{"dau":"maxProduct.license.buyEdition.dau","uhb":"maxProduct.license.buyEdition.uhb","lplus":"maxProduct.license.buyEdition.lplus"}},"tabs":{"dau":"maxProduct.tabs.dau","uhb":"maxProduct.tabs.uhb","lplus":"maxProduct.tabs.lplus"}},"metaTitle":{"welcome":"metaTitle.welcome","dashboard":"metaTitle.dashboard","discover":"metaTitle.discover","maxProduct":"metaTitle.maxProduct","augmented":"metaTitle.augmented","dau":"metaTitle.dau","uhb":"metaTitle.uhb","lplus":"metaTitle.lplus","offline":"metaTitle.offline","bookmark":"metaTitle.bookmark","agb":"metaTitle.agb","accessibility":"metaTitle.accessibility","imprint":"metaTitle.imprint","privacy":"metaTitle.privacy","lists":"metaTitle.lists","settings":"metaTitle.settings","userContent":"metaTitle.userContent","versionInfo":"metaTitle.versionInfo","library":"metaTitle.library","courses":"metaTitle.courses"},"consent":{"button":{"decline-all":"consent.button.decline-all","config":"consent.button.config","accept-all":"consent.button.accept-all","confirm":"consent.button.confirm"},"checkbox":{"necessary":"consent.checkbox.necessary","statistic":"consent.checkbox.statistic"},"info":{"hideAria":"consent.info.hideAria","showAria":"consent.info.showAria","store-title":"consent.info.store-title","store-body":"consent.info.store-body","statistic-title":"consent.info.statistic-title","statistic-body":"consent.info.statistic-body"},"explain":{"necessary":{"title":"consent.explain.necessary.title","text":"consent.explain.necessary.text"},"statistic":{"title":"consent.explain.statistic.title","text":"consent.explain.statistic.text"}},"title":"consent.title","pretext":"consent.pretext","maintext":"consent.maintext","customLogin":{"title":"consent.customLogin.title","text":"consent.customLogin.text","ageCheckbox":"consent.customLogin.ageCheckbox","dataCheckbox":"consent.customLogin.dataCheckbox","button":"consent.customLogin.button"}},"uhb":{"tabopen":"uhb.tabopen","license":{"title":"uhb.license.title","text":"uhb.license.text"}},"commercialTeaser":{"buttonBuy":"commercialTeaser.buttonBuy","opensNewTab":"commercialTeaser.opensNewTab","buttonLater":"commercialTeaser.buttonLater","uhb":{"title":"commercialTeaser.uhb.title","text":"commercialTeaser.uhb.text","alternativeTextWithoutAdditionalAssets":"commercialTeaser.uhb.alternativeTextWithoutAdditionalAssets","buttonBuyAria":"commercialTeaser.uhb.buttonBuyAria","buttonOpen":"commercialTeaser.uhb.buttonOpen","license":{"title":"commercialTeaser.uhb.license.title","text":"commercialTeaser.uhb.license.text"}},"dau":{"title":"commercialTeaser.dau.title","text":"commercialTeaser.dau.text","additionalText":"commercialTeaser.dau.additionalText","buttonBuyAria":"commercialTeaser.dau.buttonBuyAria","buttonOpen":"commercialTeaser.dau.buttonOpen","license":{"title":"commercialTeaser.dau.license.title","text":"commercialTeaser.dau.license.text"}},"eksdi":{"title":"commercialTeaser.eksdi.title","text":"commercialTeaser.eksdi.text","additionalText":"commercialTeaser.eksdi.additionalText","alternativeTextWithoutAdditionalAssets":"commercialTeaser.eksdi.alternativeTextWithoutAdditionalAssets","buttonBuyAria":"commercialTeaser.eksdi.buttonBuyAria","buttonOpen":"commercialTeaser.eksdi.buttonOpen","license":{"title":"commercialTeaser.eksdi.license.title","text":"commercialTeaser.eksdi.license.text"}}},"upCommercial":{"content":{"demo":"upCommercial.content.demo","category":{"Test":{"singular":"upCommercial.content.Test.singular","plural":"upCommercial.content.Test.plural"},"Lösung":{"singular":"upCommercial.content.Lösung.singular","plural"
2:"upCommercial.content.Lösung.plural"},"Unterrichtshandbuch":{"singular":"upCommercial.content.Unterrichtshandbuch.singular","plural":"upCommercial.content.Unterrichtshandbuch.plural"},"Karte":{"singular":"upCommercial.content.Karte.singular","plural":"upCommercial.content.Karte.plural"},"Kopiervorlage":{"singular":"upCommercial.content.Kopiervorlage.singular","plural":"upCommercial.content.Kopiervorlage.plural"},"Tafelbild":{"singular":"upCommercial.content.Tafelbild.singular","plural":"upCommercial.content.Tafelbild.plural"},"Transkription":{"singular":"upCommercial.content.Transkription.singular","plural":"upCommercial.content.Transkription.plural"},"Transkript":{"singular":"upCommercial.content.Transkript.singular","plural":"upCommercial.content.Transkript.plural"},"Video":{"singular":"upCommercial.content.Video.singular","plural":"upCommercial.content.Video.plural"},"Audio":{"singular":"upCommercial.content.Audio.singular","plural":"upCommercial.content.Audio.plural"},"Quelle":{"singular":"upCommercial.content.Quelle.singular","plural":"upCommercial.content.Quelle.plural"},"Hinweis":{"singular":"upCommercial.content.Hinweis.singular","plural":"upCommercial.content.Hinweis.plural"},"Wortschatz":{"singular":"upCommercial.content.Wortschatz.singular","plural":"upCommercial.content.Wortschatz.plural"},"Grammatik":{"singular":"upCommercial.content.Grammatik.singular","plural":"upCommercial.content.Grammatik.plural"},"Landeskunde":{"singular":"upCommercial.content.Landeskunde.singular","plural":"upCommercial.content.Landeskunde.plural"},"Bildmaterial":{"singular":"upCommercial.content.Bildmaterial.singular","plural":"upCommercial.content.Bildmaterial.plural"},"Arbeitsblatt":{"singular":"upCommercial.content.Arbeitsblatt.singular","plural":"upCommercial.content.Arbeitsblatt.plural"},"Spiel":{"singular":"upCommercial.content.Spiel.singular","plural":"upCommercial.content.Spiel.plural"},"Html":{"singular":"upCommercial.content.Html.singular","plural":"upCommercial.content.Html.plural"},"Link":{"singular":"upCommercial.content.Link.singular","plural":"upCommercial.content.Link.plural"},"Pdf":{"singular":"upCommercial.content.Pdf.singular","plural":"upCommercial.content.Pdf.plural"},"PDF":{"singular":"upCommercial.content.PDF.singular","plural":"upCommercial.content.PDF.plural"},"File":{"singular":"upCommercial.content.File.singular","plural":"upCommercial.content.File.plural"},"Bilderbuchkino":{"singular":"upCommercial.content.Bilderbuchkino.singular","plural":"upCommercial.content.Bilderbuchkino.plural"},"Aufgabe":{"singular":"upCommercial.content.Aufgabe.singular","plural":"upCommercial.content.Aufgabe.plural"},"Übung":{"singular":"upCommercial.content.Übung.singular","plural":"upCommercial.content.Übung.plural"}}},"teaser":{"title":"upCommercial.teaser.title","text":"upCommercial.teaser.text","button":"upCommercial.teaser.button","buttonAria":"upCommercial.teaser.buttonAria","alreadyPurchasedText":"upCommercial.teaser.alreadyPurchasedText"}},"versionInfo":{"versionsInfoTitle":"versionInfo.versionInfoTitle","allangoLanguage":"versionInfo.allangoLanguage","browserLanguage":"versionInfo.browserLanguage","userAgent":"versionInfo.userAgent","frontend":"versionInfo.frontend","backend":"versionInfo.backend","marklogic":"versionInfo.marklogic","releaseInfoTitle":"versionInfo.releaseInfoTitle","releaseInfoText":"versionInfo.releaseInfoText","releaseInfoList":"versionInfo.releaseInfoList"},"bilo":{"landing":{"pageTitle":"bilo.landing.pageTitle","loadingText":"bilo.landing.loadingText"}},"ibis":{"pageTitle":"ibis.pageTitle","loginFailedMessage":"ibis.loginFailedMessage","retryButton":"ibis.retryButton"},"eksdi":{"accessibility":{"playAudio":"eksdi.accessibility.playAudio","dragAndDrop":{"onDragStart":"eksdi.accessibility.dragAndDrop.onDragStart {{activeValue}}","onDragOver":"eksdi.accessibility.dragAndDrop.onDragOver {{activeValue}} {{overIndex}}","onDragOverEmpty":"eksdi.accessibility.dragAndDrop.onDragOverEmpty {{activeValue}}","onDragEnd":"eksdi.accessibility.dragAndDrop.onDragEnd {{activeValue}}","onDragEndOver":"eksdi.accessibility.dragAndDrop.onDragEndOver {{activeValue}} {{overIndex}}
2","onDragCancel":"eksdi.accessibility.dragAndDrop.onDragCancel {{activeValue}}","screenReaderInstructions":"eksdi.accessibility.dragAndDrop.screenReaderInstructions"},"sorting":{"onDragStart":"eksdi.accessibility.sorting.onDragStart {{position}} {{itemsCount}}","onDragOver":"eksdi.accessibility.sorting.onDragOver {{position}} {{itemsCount}}","onDragEnd":"eksdi.accessibility.sorting.onDragEnd {{position}} {{itemsCount}}","onDragCancel":"eksdi.accessibility.sorting.onDragCancel","screenReaderInstructions":"eksdi.accessibility.sorting.screenReaderInstructions"}},"overview":{"linkToOverview":"eksdi.overview.linkToOverview","completedExercises":"eksdi.overview.completedExercises","breadcrumb":"eksdi.overview.breadcrumb","continueLesson":{"continue":"eksdi.overview.continueLesson.continue","nothingToContinue":"eksdi.overview.continueLesson.nothingToContinue","start":"eksdi.overview.continueLesson.start"},"learningProgress":{"title":"eksdi.overview.learningProgress.title","completedLessons":"eksdi.overview.learningProgress.completedLessons","completedLessonsProgress":"eksdi.overview.learningProgress.completedLessonsProgress {{doneNumber}} {{totalNumber}}","resultAverage":"eksdi.overview.learningProgress.resultAverage"},"chapterProgress":{"title":"eksdi.overview.chapterProgress.title","chapters":"eksdi.overview.chapterProgress.chapters","competencies":"eksdi.overview.chapterProgress.competencies","chapter":"eksdi.overview.chapterProgress.chapter","module":{"singular":"eksdi.overview.chapterProgress.module.singular","plural":"eksdi.overview.chapterProgress.module.plural"},"taskGroup":{"singular":"eksdi.overview.chapterProgress.taskGroup.singular","plural":"eksdi.overview.chapterProgress.taskGroup.plural"},"didacticUnit":{"singular":"eksdi.overview.chapterProgress.didacticUnit.singular","plural":"eksdi.overview.chapterProgress.didacticUnit.plural"},"topic":{"singular":"eksdi.overview.chapterProgress.topic.singular","plural":"eksdi.overview.chapterProgress.topic.plural"},"selftest":{"singular":"eksdi.overview.chapterProgress.selftest.singular","plural":"eksdi.overview.chapterProgress.selftest.plural"},"sprechen":"eksdi.overview.chapterProgress.sprechen","grammatik":"eksdi.overview.chapterProgress.grammatik","wortschatz":"eksdi.overview.chapterProgress.wortschatz","schreiben":"eksdi.overview.chapterProgress.schreiben","hören":"eksdi.overview.chapterProgress.hören","aussprache":"eksdi.overview.chapterProgress.aussprache","lesen":"eksdi.overview.chapterProgress.lesen","redemittel":"eksdi.overview.chapterProgress.redemittel","mediation":"eksdi.overview.chapterProgress.mediation","hör-seh-verstehen":"eksdi.overview.chapterProgress.hör-seh-verstehen"}},"breadcrumbs":{"exercise":"eksdi.breadcrumps.exercise {{exerciseIndex}}"},"license":{"title":"eksdi.license.title","pageTitle":"eksdi.license.pageTitle","text":"eksdi.license.text"},"helpAndTip":{"showButton":"eksdi.helpAndTip.showButton","hideButton":"eksdi.helpAndTip.hideButton","title":"eksdi.helpAndTip.title"},"readingText":{"showButton":"eksdi.readingText.showButton","hideButton":"eksdi.readingText.hideButton"},"warning":{"pronounce":"eksdi.warning.pronounce","openquestion":"eksdi.warning.openquestion"},"progress":{"progress":"eksdi.progress.progress"},"navigation":{"previous":"eksdi.navigation.previous","next":"eksdi.navigation.next","exercise":"eksdi.navigation.exercise {{exerciseIndex}} {{total}}"},"result":{"celebration":"eksdi.result.celebration","completeLesson":"eksdi.result.completeLesson","correct":"eksdi.result.correct","label":"eksdi.result.label","nextLesson":"eksdi.result.nextLesson","text":"eksdi.result.text {{correctAnswers}} {{total}}","wrong":"eksdi.result.wrong","selfEstimationTitle":"eksdi.result.selfEstimationTitle","resetAllTasks":"eksdi.result.resetAllTasks"},"retrySingular":"eksdi.retrySingular","retryPlural":"eksdi.retryPlural {{retries}}","reset":"eksdi.reset","resetAll":{"buttonText":"eksdi.resetAll.buttonText","warningTitle":"eksdi.resetAll.warningTitle","warningText":"eksdi.resetAll.warningText","warningButton":"eksdi.resetAll.warningButton","successText":"eksdi.resetAll.successText"},"newContent":{"text":"eksdi.newContent.text","textSelftest":"eksdi.newContent.textSelftest","button":"eksdi.newContent.button","warningText":"eksdi.newContent.warningText","warningTextSelftest":"eksdi.newContent.warningTextSelftest","warningButton":"eksdi.newContent.warningButton"},"solution":{"label":"eksdi.solution.label"},"alternativeSolution":{"label":"eksdi.alternativeSolution.label","show":"eksdi.alternativeSolution.show","hide":"eksdi.alternativeSolution.hide"},"task":{"completeLesson":"eksdi.task.completeLesson","label":"eksdi.task.label","showSolution":"eksdi.task.showSolution","hideSolution":"eksdi.task.hideSolution","leftAttempt":"eksdi.task.leftAttempt","leftAttempts":"eksdi.task.leftAttempts {{submits}}"},"selftest":{"start":"eksdi.selftest.start","navigateBack":"eksdi.selftest.navigateBack","navigateNext":"eksdi.selftest.navigateNext","totalResult":"eksdi.selftest.totalResult","completeSelftest":"eksdi.selftest.completeSelftest","completeSelftestInfoTitle":"eksdi.selftest.completeSelftestInfoTitle","completeSelftestInfoText":"eksdi.selftest.completeSelftestInfoText","congratulations":"eksdi.selftest.congratulations","viewResults":"eksdi.selftest.viewResults","learningProgress":"eksdi.selftest.learningProgress","reset":"eksdi.selftest.reset","resetWarning":"eksdi.selftest.resetWarning","resetSuccessful":"eksdi.selftest.resetSuccessful"},"gapmatch":{"words":"eksdi.gapmatch.words","sentences":"eksdi.gapmatch.sentences","audio":"eksdi.gapmatch.audio"},"inlinechoice":{"placeholder":"eksdi.inlinechoice.placeholder"},"openQuestion":{"AI_GRAMMATIC":"eksdi.openQuestion.AI_GRAMMATIC","AI_BASIC":"eksdi.openQuestion.AI_BASIC","sampleSolution":"eksdi.openQuestion.sampleSolution","mobileFeedback":"eksdi.openQuestion.mobileFeedback","task":"eksdi.openQuestion.task","loadConnection":"eksdi.openQuestion.loadConnection","error":{"basic":"eksdi.openQuestion.error.basic","grammar":"eksdi.openQuestion.error.grammar"},"nativeLanguage":"eksdi.openQuestion.nativeLanguage","lang":{"de":"eksdi.openQuestion.lang.de","en":"eksdi.openQuestion.lang.en","es":"eksdi.openQuestion.lang.es","fr":"eksdi.openQuestion.lang.fr","it":"eksdi.openQuestion.lang.it","ar":"eksdi.openQuestion.lang.ar","ptBR":"eksdi.openQuestion.lang.ptBR","prs":"eksdi.openQuestion.lang.prs","fa":"eksdi.openQuestion.lang.fa","el":"eksdi.openQuestion.lang.el","hi":"eksdi.openQuestion.lang.hi","ml":"eksdi.openQuestion.lang.ml","ps":"eksdi.openQuestion.lang.ps","pl":"eksdi.openQuestion.lang.pl","pt":"eksdi.openQuestion.lang.pt","ru":"eksdi.openQuestion.lang.ru","deCH":"eksdi.openQuestion.lang.deCH","ti":"eksdi.openQuestion.lang.ti","tr":"eksdi.openQuestion.lang.tr","uk":"eksdi.openQuestion.lang.uk","uz":"eksdi.openQuestion.lang.uz","vi":"eksdi.openQuestion.lang.vi"}},"pronounce":{"startRecording":"eksdi.pronounce.startRecording","stopRecording":"eksdi.pronounce.stopRecording","retryRecording":"eksdi.pronounce.retryRecording"},"noAnswer":"eksdi.noAnswer","noEdit":"eksdi.noEdit","notAllAnswers":"eksdi.notAllAnswers","confirm":"eksdi.confirm"},"maintenance":{"title":"maintenance.title","text":"maintenance.text {{endtime}}","banner":"maintenance.banner {{starttime}} {{endtime}}"},"aiTeaser":{"loadingMessage":"aiTeaser.loadingMessage","iqBuddy":{"teaserText":"aiTeaser.iqBuddy.teaserText","iconLabel":"aiTeaser.iqBuddy.iconLabel","title":"aiTeaser.iqBuddy.title","text":"aiTeaser.iqBuddy.text","ok":"aiTeaser.iqBuddy.ok"},"aiFeedback":{"teaserText":"aiTeaser.aiFeedback.teaserText","iconLabel":"aiTeaser.aiFeedback.iconLabel","title":"aiTeaser.aiFeedback.title","text":"aiTeaser.aiFeedback.text","ok":"aiTeaser.aiFeedback.ok"},"pronounceLesson":{"teaserText":"aiTeaser.pronounceLesson.teaserText","iconLabel":"aiTeaser.pronounceLesson.iconLabel","title":"aiTeaser.pronounceLesson.title","text":"aiTeaser.pronounceLesson.text","ok":"aiTeaser.pronounceLesson.ok"}},"iqBuddy":{"logoText":"iqBuddy.logoText","createCollectionButtonText":"iqBuddy.createCollectionButtonText","invali
2dName":"iqBuddy.invalidName","namePlaceholder":"iqBuddy.namePlaceholder","nameLabel":"iqBuddy.nameLabel","addToCollection":"iqBuddy.addToCollection","addToCollectionButtonText":"iqBuddy.addToCollectionButtonText","addCollectionSuccess":"iqBuddy.addCollectionSuccess","backToCollectionList":"iqBuddy.backToCollectionList","jumpToCollection":"iqBuddy.jumpToCollection","trainingLinkText":"iqBuddy.trainingLinkText","trainingInfo":{"iconAria":"iqBuddy.trainingInfo.iconAria","title":"iqBuddy.trainingInfo.title","text":"iqBuddy.trainingInfo.text","ok":"iqBuddy.trainingInfo.ok"},"yourTranslation":"iqBuddy.yourTranslation","checkmark":"iqBuddy.checkmark","licence":{"teaser":{"title":"iqBuddy.licence.teaser.title","imgAlt":"iqBuddy.licence.teaser.imgAlt","text":"iqBuddy.licence.teaser.text","textDemoExpired":"iqBuddy.licence.teaser.textDemoExpired","textLicenceExpired":"iqBuddy.licence.teaser.textLicenceExpired","buttonLater":"iqBuddy.licence.teaser.buttonLater","buttonBuy":"iqBuddy.licence.teaser.buttonBuy","buttonDemo":"iqBuddy.licence.teaser.buttonDemo","license":{"title":"iqBuddy.licence.teaser.license.title","text":"iqBuddy.licence.teaser.license.text","unauthed":"iqBuddy.licence.teaser.license.unauthed"}}},"limit":{"cardsLimit":{"title":"iqBuddy.limit.cardLimit.title","text":"iqBuddy.limit.cardLimit.text","webshopText":"iqBuddy.limit.cardLimit.webshopText","webshopLink":"iqBuddy.limit.cardLimit.webshopLink","list":"iqBuddy.limit.cardLimit.list"},"playStore":"iqBuddy.limit.playStore","playStoreLink":"iqBuddy.limit.playStoreLink","appStore":"iqBuddy.limit.appStore","appStoreLink":"iqBuddy.limit.appStoreLink","ok":"iqBuddy.limit.ok"}},"meta":{"title":"meta.title","description":"meta.description","keywords":"meta.keywords"}}'),Ne=({error:e,resetErrorBoundary:t})=>{const[n,a]=(0,r.useState)(null),[o,s]=(0,r.useState)(Se.error.privateMode),l=navigator.language||navigator.language;(0,r.useEffect)((()=>{const e=l.substring(0,2);"de"===e&&s(Se.error.privateMode),"en"===e&&s(Ee.error.privateMode),"es"===e&&s(Ie.error.privateMode),"fr"===e&&s(Ce.error.privateMode),"it"===e&&s(_e.error.privateMode),"ek"===e&&s(je.error.privateMode)}),[l]);const c=(0,r.useCallback)((async()=>{try{await xe.db.mediaBookStructures.toArray()}catch(e){a(!0)}}),[]);return(0,r.useEffect)((()=>{c()}),[e,c]),null===n?(0,i.jsxs)("div",{children:[(0,i.jsx)("header",{className:"page-header",children:(0,i.jsxs)("div",{className:"page-header__block",children:[(0,i.jsx)("div",{className:"page-header__brand",children:(0,i.jsx)(Te,{})}),(0,i.jsx)("div",{className:"page-header__actions"})]})}),(0,i.jsxs)("div",{className:"p-4",children:[(0,i.jsx)("h1",{children:"Das sollte nicht passieren. Bitte gib folgende Meldung an den Support weiter:"}),(0,i.jsx)("p",{className:"mt-2 p-4 bg-surface inline-block",children:e.message}),(0,i.jsx)("button",{className:"button button--primary mt-2",onClick:t,children:"Try again"})]})]}):n?(0,i.jsxs)("div",{children:[(0,i.jsx)("header",{className:"page-header",children:(0,i.jsxs)("div",{className:"page-header__block",children:[(0,i.jsx)("div",{className:"page-header__brand",children:(0,i.jsx)(Te,{})}),(0,i.jsx)("div",{className:"page-header__actions"})]})}),(0,i.jsxs)("div",{className:"mx-10",children:[(0,i.jsx)("h1",{className:"heading-1",children:null==o?void 0:o.title}),(0,i.jsx)("p",{children:null==o?void 0:o.copy})]})]}):(0,i.jsxs)("div",{children:[(0,i.jsx)("header",{className:"page-header",children:(0,i.jsxs)("div",{className:"page-header__block",children:[(0,i.jsx)("div",{className:"page-header__brand",children:(0,i.jsx)(Te,{})}),(0,i.jsx)("div",{className:"page-header__actions"})]})}),(0,i.jsx)("h1",{children:e.message})]})};var Le=n(26653),Pe=n(25426),De=n(15719);const Me=({children:e})=>{const{authenticated:t}=(0,c.As)(),{t:n}=(0,k.Bd)();return t?t?e:void 0:(0,i.jsx)(pe,{children:(0,i.jsx)(Q,{title:n("protected.unauthTitle"),lead:(0,i.jsxs)("p",{children:[n("protected.unauthCopy"),(0,i.jsx)(De.M,{variant:"primary",className:"mt-2",text:n("protected.unauthCta")})]})})})};function Oe(e){(0,r.useEffect)((()=>{const t=document.title;return document.title=e,()=>{document.title=t}}),[e])}var Re=n(40160);function ze(e,t,n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,Re.V)(),o=(0,T.I)({queryKey:["get-augmented-access",e,t],queryFn:()=>(async()=>{const n=a.get("brand");let r="";return!n||e&&-1!==e.indexOf("&brand")||(r="&brand="+n),(await i.get(`/search/suggest/${t}?searchString=${e}${r}`)).data})(),retry:!1,enabled:!1});return(0,S.V)(o,n||{message:r("error.search.failedSuggestion")})}var Be=n(54801),Ue=n(34015),Fe=n(23682),Ve=n(35899),qe={};qe.styleTagTransform=q(),qe.setAttributes=B(),qe.insert=R().bind(null,"head"),qe.domAPI=M(),qe.insertStyleElement=F();P()(Ve.A,qe);Ve.A&&Ve.A.locals&&Ve.A.locals;const He=({resultCount:e,confirmButton:t,className:n,route:a,size:o="lg",hiddenShadow:s=!1,placeholder:l,inputName:c}
2)=>{const[d,u]=(0,r.useState)("title"),{t:p}=(0,k.Bd)(),[h,m]=(0,r.useState)(""),g=(0,fe.m)(),f=(0,Re.V)(),[v,b]=(0,r.useState)(!1),[y,x]=(0,r.useState)();(0,r.useEffect)((()=>{""!==f.get("searchString")?x(f.get("searchString")):x("")}),[f]);const{refetch:w,data:A,error:T}=ze(h,d,{hideToast:!0}),S=(0,r.useCallback)((async e=>{m(e);const t=new RegExp(/\d+-?/,"g");e.match(t)?u("isbn"):u("title"),e.length>=1&&(e.match(new RegExp(/\d+-?/,"g"))&&e.match(new RegExp(/\d+-?/,"g")).join("").length===e.length&&(e.startsWith("978")||m("978-3-12-"+e)),setTimeout((()=>{w()}),100))}),[w]),E=(0,r.useCallback)((e=>{const t=f.get("type")?"&type="+f.get("type"):"",n=encodeURIComponent(e);""!==n&&g((a||te.J.discover)+"?searchString="+n+t)}),[g,f,a]);(0,r.useEffect)((()=>{v&&b(!1)}),[v]);const I=(0,r.useCallback)((()=>{m(""),g(a||location.pathname)}),[g,a]);return(0,i.jsxs)("div",{className:n&&n,children:[(0,i.jsxs)("div",{className:"search__wrapper flex-wrap justify-end "+(s?"search__wrapper--no-shadow":""),children:[(0,i.jsx)(Be.a,{initialValue:y,onSelect:E,onKeyUp:S,inputName:c,suggestions:(null==A?void 0:A.suggestions)||[],placeholder:l||p("search.placeholder"),icon:(0,i.jsx)(Ue.I,{source:Fe.A}),onReset:I,isLarge:"lg"===o,offlineMessage:p("offline.disabledSearch"),className:"discover-search",errorMessage:T&&p("error.search.failedSuggestion"),hiddenShadow:s,classNameInput:"pr-4 sm:pr-12 md:pr-4 lg:pr-12"}),t&&(0,i.jsx)(N.$,{data_cy:"search-button",size:o,variant:"secondary",onClick:()=>{const e=f.get("type")?"&type="+f.get("type"):"";g((a||te.J.discover)+"?searchString="+encodeURIComponent(h)+e)},className:"w-fit",children:p("search.submitButton")})]}),e>0&&(0,i.jsx)(i.Fragment,{children:y&&(0,i.jsxs)("h2",{className:"mt-4 mb-8 text-body2 font-bold",children:[e," ",p(e<=1?"discover.result.resultsForSingle":"discover.result.resultsFor"),": ",y]})}),(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",children:0===e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"mt-4 mb-8 text-body2 font-bold",children:p("discover.result.noItemsFound")}),(0,i.jsxs)("div",{className:"mt-4 mb-8 text-body2",children:[(0,i.jsx)(k.x6,{i18nKey:"discover.result.noItemsFoundAdditionalText"}),(0,i.jsx)("a",{target:"_blank",href:p("discover.result.supportLink"),className:"text-body2 underline whitespace-nowrap text-interactive",rel:"noreferrer",children:p("discover.result.supportLinkText")})]})]})})]})};var Ge=n(15085),Ke=n(21346);function $e(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({licenseKey:e})=>(await t.put(`/entitlement/licensekey/${e.trim()}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.license.failActivateLicense")})}function We(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-license-check",e],queryFn:async()=>(await n.get(`/entitlement/licensekey/${e.trim()}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.license.failCheckLicense")})}var Xe=n(85959);const Ye=({isOpen:e,close:t,copy:n})=>(0,i.jsx)(Xe.y,{asPrompt:!0,open:e,close:t,copy:n});var Je=n(33119),Ze={};Ze.styleTagTransform=q(),Ze.setAttributes=B(),Ze.insert=R().bind(null,"head"),Ze.domAPI=M(),Ze.insertStyleElement=F();P()(Je.A,Ze);Je.A&&Je.A.locals&&Je.A.locals;var Qe=n(51031),et=n(21812);const tt=({successModal:e,book:t,possibleWarningCode:n,alternativeProductId:r,bookEditionType:a})=>{const{t:s}=(0,k.Bd)(),l=(0,o.U)(),c=(0,se.P)(),d=null==t?void 0:t.npNumber;return e?(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"group license-sub-content-item",children:[(0,i.jsx)("div",{className:"license-sub-content-item__icon-wrapper",children:(0,i.jsx)(W,{src:null==t?void 0:t.coverPath,width:56,height:70,className:"bookCover"})}),(0,i.jsxs)("div",{className:"license-sub-content-item__container",children:[(0,i.jsx)(ee.z,Object.assign({"data-cy":"digitalbook-item",className:"license-sub-content-item__title"},(()=>{if(a===et.OH.EKSDI&&t.isLicenseOnly){const e=d.replace("NP300","NP100");return(0,Qe.v)(e,et.OH.DAU)}return(0,Qe.v)(d,a)})(),{children:null==t?void 0:t.bookTitle})),(null==t?void 0:t.bestandteil)&&(0,i.jsx)("p",{className:"license-sub-content-item__isbn",children:null==t?void 0:t.bestandteil}),a&&(0,i.jsxs)("p",{className:"license-sub-content-item__isbn",children:[s("maxProduct."+(0,Qe.u)(a))," | ",null==t?void 0:t.npNumber]}
2)]})]})}):(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:""+(r?"mb-6 md:mb-0":""),children:n&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"text-h4 mb-6 text-text",children:s(`license.warnings.${n}.title`)}),(0,i.jsxs)("p",{className:"text-body2",children:[s(`license.warnings.${n}.subtitle`)," ",!r&&(0,i.jsx)("span",{children:s(`license.warnings.${n}.linkText`)}),r&&(0,i.jsx)("a",{target:"_blank",className:"max-product-edition__buy-now-link--license-check",href:`${"DELTA"===c?l.webshopUrlDelta:l.webshopUrlEks}${r}`,rel:"noreferrer",children:s(`license.warnings.${n}.linkText`)})]})]})}),(0,i.jsxs)("div",{className:"group license-sub-content-item",children:[(0,i.jsx)("div",{className:"license-sub-content-item__icon-wrapper",children:(0,i.jsx)(W,{src:null==t?void 0:t.coverPath,width:56,height:70,className:"bookCover"})}),(0,i.jsxs)("div",{className:"license-sub-content-item__container",children:[(0,i.jsx)("p",{className:"font-bold",children:null==t?void 0:t.bookTitle}),(null==t?void 0:t.bestandteil)&&(0,i.jsx)("p",{className:"font-bold",children:null==t?void 0:t.bestandteil}),a&&a!==et.OH.UNKNOWN&&(0,i.jsx)("p",{className:"font-bold",children:s("maxProduct."+(0,Qe.u)(a))})]})]})]})},nt=({successModal:e,activateLicense:t,close:n,compositLicenseCheck:r,closeTeaser:a})=>{var o,s,l,c,d,u,p,h,m;const{t:g}=(0,k.Bd)();return e?(0,i.jsx)("div",{className:"pt-6 px-2 flex justify-between",children:(0,i.jsxs)("div",{className:"flex flex-col justify-between w-full",children:[(null===(d=null==r?void 0:r.licenseChecks)||void 0===d?void 0:d.length)>1&&(0,i.jsx)("p",{className:"license-modal__mainText",children:g("license.successPlural")}),(null===(u=null==r?void 0:r.licenseChecks)||void 0===u?void 0:u.length)<=1&&(0,i.jsx)("p",{className:"license-modal__mainText",children:g("license.success")}),(0,i.jsx)("div",{className:"license-modal__card-container",children:null===(p=r.licenseChecks)||void 0===p?void 0:p.map((t=>(0,i.jsx)(tt,{successModal:e,book:t.book,bookEditionType:t.bookEditionType},t.license.productId)))}),(null===(h=null==r?void 0:r.licenseChecks)||void 0===h?void 0:h.length)>1&&(0,i.jsx)("p",{className:"mt-2",children:g("license.successInfoPlural")}),(null===(m=null==r?void 0:r.licenseChecks)||void 0===m?void 0:m.length)<=1&&(0,i.jsx)("p",{className:"mt-2",children:g("license.successInfo")}),(0,i.jsx)("div",{className:"license-modal__button-group",children:(0,i.jsx)(N.$,{onClick:()=>{n&&n(),a&&a()},"data-cy":"licence-decline",variant:"primary",children:g("license.accept")})})]})}):(0,i.jsxs)("div",{className:"pt-6 px-2",children:[(0,i.jsx)("div",{children:(null==r?void 0:r.errorCode)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"license-modal__mainText",children:g(`license.warnings.${null==r?void 0:r.errorCode}.title`)}),(0,i.jsxs)("p",{className:"text-body2",children:[g(`license.warnings.${null==r?void 0:r.errorCode}.subtitle`)," ",(0,i.jsx)("span",{children:g(`license.warnings.${null==r?void 0:r.errorCode}.linkText`)})]})]})}),(0,i.jsx)("div",{className:"flex justify-between items-end",children:(0,i.jsxs)("div",{className:"w-full",children:[!(null==r?void 0:r.errorCode)&&(null===(o=null==r?void 0:r.licenseChecks)||void 0===o?void 0:o.length)>1&&(null==r?void 0:r.packageTitle)&&(0,i.jsx)("h2",{className:"license-modal__mainText",children:g("license.textPluralWithPackageTitle",{packageTitle:null==r?void 0:r.packageTitle})}),!(null==r?void 0:r.errorCode)&&(null===(s=null==r?void 0:r.licenseChecks)||void 0===s?void 0:s.length)>1&&!(null==r?void 0:r.packageTitle)&&(0,i.jsx)("h2",{className:"license-modal__mainText",children:g("license.textPlural")}),!(null==r?void 0:r.errorCode)&&(null===(l=null==r?void 0:r.licenseChecks)||void 0===l?void 0:l.length)<=1&&(0,i.jsx)("h2",{className:"license-modal__mainText",children:g("license.text")}),(0,i.jsx)("div",{className:"license-modal__card-container",children:null===(c=null==r?void 0:r.licenseChecks)||void 0===c?void 0:c.map((t=>(0,i.jsx)(tt,{successModal:e,book:t.book,bookEditionType:t.bookEditionType},t.license.productId)))}),(0,i.jsxs)("div",{className:"license-modal__button-group",children:[(0,i.jsx)(N.$,{onClick:n,"data-cy":"licence-decline",variant:""+((null==r?void 0:r.errorCode)?"primary":"secondary"),children:g("license.decline")}),!(null==r?void 0:r.errorCode)&&(0,i.jsx)(N.$,{onClick:t,variant:"primary",children:g("license.confirm")}),(null==r?void 0:r.errorCode)&&(0,i.jsx)(N.$,{onClick:t,children:g("license.forceActivate")})]})]})})]})};var it=n(4336);const rt=({className:e="",label:t,help:n,cta:a,refetchProduct:o})=>{const[s,l]=(0,r.useState)(""),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),{mutateAsync:h}=$e(),{refetch:m,data:g}=We(s,{hideToast:!0}),{warning:f}=(0,A.e)(),{t:v}=(0,k.Bd)(),[b,y]=(0,r.useState)(!1),x=()=>{y(!1),setTimeout((()=>{p(!1),l("")}),300)},w=(0,r.useCallback)((async()=>{""!==s?m().then((e=>{"error"===e.status?f({copy:v("error.license.failCheckLicense")}):e.data.isValid?y(!0):f({copy:v("error.license.errorCode."+e.data.errorCode)})})):d(!0)}),[s,m,f,v]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:`license-input ${e}`,children:[(0,i.jsx)(Ke.p,{name:t||v("license.inputLabel"),label:t||v("license.inputLabel"),help:(0,i.jsx)("a",{href:v("license.base-url"),target:"_blank",rel:"noreferrer","aria-label":v("license.helpAria"),className:"text-right",children:n||v("license.inputHelp")}),placeholder:v("license.placeholder"),value:s,onChange:e=>l(e.target.value),onKeyDown:e=>{d(!1),"Enter"===e.key&&(e.preventDefault(),w())},error:c?{message:v("license.inputError"),id:"license-input-error"}:null,data_cy:"licenseKeyInput"}),(0,i.jsx)(N.$,{onClick:w,variant:"primary",className:"sm:mt-6",children:a||v("license.inputCta")})]}),(0,i.jsx)(Ye,{close:x,isOpen:b,copy:(0,i.jsx)(nt,{successModal:u,compositLicenseCheck:g,activateLicense:async()=>{var e,t,n,i;try{await h({licenseKey:s}),o&&o(),p(!0),(0,it.r)({productId:null!==(t=null===(e=null==g?void 0:g.licenseChecks[0].book)||void 0===e?void 0:e.isbn)&&void 0!==t?t:null===(n=null==g?void 0:g.licenseChecks[0].book)||void 0===n?void 0:n.npNumber,productName:null===(i=null==g?void 0:g.licenseChecks[0].book)||void 0===i?void 0:i.bookTitle,eventType:"activateLicense"})}catch(e){console.log("error",e)}},close:x})})]})}
2,at=({title:e,text:t,inputLabel:n,inputHelp:r,inputCta:a,refetchProduct:o,className:s})=>{const{t:l}=(0,k.Bd)();return(0,i.jsxs)("div",{className:`license-card ${s&&s}`,children:[(0,i.jsx)("h2",{className:"license-card__title",children:e||l("license.inputBoxTitle")}),(0,i.jsx)("p",{className:"license-card__text",children:t||l("license.inputBoxText")}),(0,i.jsx)(rt,{label:n,help:r,cta:a,refetchProduct:o||null})]})},ot=({title:e,text:t,cta:n,variant:r="primary",className:a="",buttonSize:o=""})=>(0,i.jsxs)("div",{className:`license-card ${a}`,"data-cy":"license-teaser",children:[(0,i.jsxs)("div",{children:[e&&(0,i.jsx)("h2",{className:"license-card__title",children:e}),(0,i.jsx)("p",{className:"license-card__text",children:t})]}),(0,i.jsx)(De.M,{text:n,variant:r,size:o})]});var st=n(16454),lt={};lt.styleTagTransform=q(),lt.setAttributes=B(),lt.insert=R().bind(null,"head"),lt.domAPI=M(),lt.insertStyleElement=F();P()(st.A,lt);st.A&&st.A.locals&&st.A.locals;var ct=n(51581),dt=n(8236);const ut=()=>{const{t:e}=(0,k.Bd)(),t=(0,se.P)(),n=(0,J.Ay)();Oe(e("metaTitle.welcome",{brand:t}));const[a,o]=(0,r.useState)(!1),s=(0,fe.m)(),{authenticated:l}=(0,c.As)();(0,it.a)({eventType:"pageType",data:{pageType:"Startseite"}});const d=(0,r.useCallback)((()=>{o(!1),s(te.J.welcome)}),[s]),u=(0,ct.pn)(a,dt.h);return(0,i.jsxs)(pe,{children:[(0,i.jsxs)("div",{className:"welcome__header-wrapper",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)(Q,{"data-cy":"user-content-title",title:e("welcome.title")}),(0,i.jsx)("p",{className:"welcome__text",children:e("welcome.copy")}),(0,i.jsxs)("div",{className:"welcome-actions",children:[(0,i.jsx)(ee.z,{className:"button button--secondary "+(n?"":"button--lg"),to:te.J.dashboard,children:e("welcome.dashboard")}),(0,i.jsx)(ee.z,{className:"button button--primary "+(n?"":"button--lg"),to:te.J.library,children:e("welcome.augmented")})]})]}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{className:"welcome__teaser",src:"./images/welcome-teaser.png",alt:"",role:"presentation"})})]}),(0,i.jsxs)("div",{className:"welcome__box-wrapper",children:[(0,i.jsxs)("div",{className:"welcome__search-wrapper",children:[(0,i.jsx)("h2",{className:"welcome__search-wrapper--title",children:e("welcome.search.title")}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"welcome__search-wrapper--text",children:(0,i.jsxs)("label",{htmlFor:"welcome-search",children:[e("welcome.search.label")," "]})}),(0,i.jsx)(He,{placeholder:e("welcome.search.placeholder"),inputName:"welcome-search",hiddenShadow:!0,className:"welcome-page__search",confirmButton:!0,resultCount:null})]})]}),(0,i.jsxs)("div",{children:[l&&(0,i.jsx)(at,{title:e("welcome.license.inputTitle"),text:e("welcome.license.inputText"),inputLabel:e("welcome.license.inputLabel"),inputCta:e("welcome.license.inputCta"),inputHelp:e("welcome.license.inputHelp")}),!l&&(0,i.jsx)(ot,{title:e("welcome.license.teaserTitle"),text:e("welcome.license.teaserText"),cta:e("welcome.license.teaserCta"),variant:"secondary",buttonSize:"lg"})]})]}),(0,i.jsx)(Ge.bL,{open:a,onOpenChange:o,children:(0,i.jsx)(Ge.ZL,{forceMount:!0,children:u(((t,n)=>n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ge.hJ,{className:"dialog__overlay dialog__overlay--top-prio"}),(0,i.jsx)(Ge.UC,{className:"dialog__content dialog__content--top-prio",onInteractOutside:()=>o(!1),onEscapeKeyDown:()=>o(!1),children:(0,i.jsxs)(ct.CS.div,{style:t,className:"dialog__body",children:[(0,i.jsx)(Ge.hE,{className:"dialog__title",children:e("welcome.modal.title")}),(0,i.jsx)("p",{className:"dialog__text",children:e("welcome.modal.copy")}),(0,i.jsxs)("div",{className:"dialog__buttons",children:[(0,i.jsx)(N.$,{variant:"default",onClick:d,children:e("welcome.modal.close")}),(0,i.jsx)(De.M,{variant:"primary",text:e("welcome.modal.login")})]})]})})]}):null))})})]})};var pt=n(28934),ht={};ht.styleTagTransform=q(),ht.setAttributes=B(),ht.insert=R().bind(null,"head"),ht.domAPI=M(),ht.insertStyleElement=F();P()(pt.A,ht);pt.A&&pt.A.locals&&pt.A.locals;const mt=()=>{const{refetch:e,data:t}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-last-bought-products"],queryFn:async()=>(await t.get("/entitlement/last?page=1&pagesize=3")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.augmented.failGetProduct")})}({hideToast:!0}),{t:n}=(0,k.Bd)();if((0,r.useEffect)((()=>{e()}),[e]),void 0===t||0===t.length)return(0,i.jsx)(i.Fragment,{});const a=e=>{if(e.bookEditionType===et.OH.EKSDI&&e.isLicenseOnly){const t=e.npNumbers[0].replace("NP300","NP100");return(0,Qe.v)(t,et.OH.DAU)}return(0,Qe.v)(e.npNumbers[0],e.bookEditionType,e.bookEditionType===et.OH.TOOL?e.toolLink:void 0)};return(0,i.jsxs)("div",{className:"mt-8 md:mt-0",children:[(0,i.jsxs)("div",{className:"flex justify-between items-end pb-4 text-xl",children:[(0,i.jsx)("h2",{className:"font-bold",children:n("dashboard.myBooks.title")}),(0,i.jsx)(ee.z,{to:te.J.library,className:"text-primary underline underline-offset-2",children:n("dashboard.myBooks.all")})]}),(0,i.jsx)("ul",{className:"grid grid-cols-1 gap-14 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-3",children:t&&t.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)(ee.z,Object.assign({className:"group last-augmented-item"},a(e),{children:(0,i.jsxs)("div",{className:"discover-item group sm:items-start","data-cy":"discover-item-group",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"sr-only",children:e.title}),(0,i.jsx)("div",{className:"discover-item__img-wrapper",children:(0,i.jsx)(W,{src:e.cover,width:160,height:200})})]}),(0,i.jsxs)("div",{className:"discover-item__block text-left",children:[(0,i.jsx)("h3",{className:"discover-item__title",dangerouslySetInnerHTML:{__html:e.title}}
2),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e.bestandteil?e.bestandteil:""}}),(0,i.jsx)("p",{children:n("maxProduct."+(0,Qe.u)(e.bookEditionType))})]})]})}))},e.id+"-"+t)))})]})},gt=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"dashboard__search-wrapper","data-cy":"dashboard-search",children:[(0,i.jsx)("h2",{className:"dashboard__search-wrapper--title",children:e("dashboard.search.title")}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"dashboard__search-wrapper--text",children:(0,i.jsx)("label",{htmlFor:"dashboard-search",children:e("dashboard.search.text")})}),(0,i.jsx)(He,{placeholder:e("dashboard.search.placeholder"),inputName:"dashboard-search",className:"dashboard__search",resultCount:null,confirmButton:!0})]})]})};var ft=n(89868),vt=n(26365);function bt(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-augmented-cover-path",e],queryFn:async()=>(await n.get(`/cover/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.augmented.failCover")})}const yt=({item:e})=>{const{authenticated:t}=(0,c.As)(),{refetch:n,data:a}=bt(e.isbn,{hideToast:!0}),[o,s]=(0,r.useState)(),{t:d}=(0,k.Bd)(),u=(0,l.n)(),{warning:p}=(0,A.e)();(0,r.useEffect)((()=>{t&&n()}),[t,n]),(0,r.useEffect)((()=>{s(a)}),[a]);return(0,i.jsxs)(ee.z,{className:"group last-augmented-item",to:(0,vt.tW)(te.J.product.augmented,{id:e.productId,isbn:e.isbn}),onClick:e=>{return t=e,void(u||(t.preventDefault(),p({copy:d("offline.disabledAction")})));var t},children:[(0,i.jsx)("div",{className:"last-augmented-item__icon-wrapper",children:(0,i.jsx)(W,{src:o||e.coverPath,className:"bookCover--sm",width:28,height:35})}),(0,i.jsxs)("div",{className:"last-augmented-item__container",children:[(0,i.jsx)("h3",{className:"last-augmented-item__title",children:e.title}),(0,i.jsxs)("p",{className:"last-augmented-item__isbn",children:[d("dashboard.isbnLabel")," ",e.isbn," ",e.alternativeISBNs?", "+e.alternativeISBNs:""]})]})]})};var xt,wt,kt,At;function Tt(){return Tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Tt.apply(null,arguments)}const St=e=>r.createElement("svg",Tt({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),xt||(xt=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8.17 3A3 3 0 0 1 11 1h2c1.306 0 2.417.835 2.83 2H21a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM4 5v14h16V5h-4.17A3 3 0 0 1 13 7h-2a3 3 0 0 1-2.83-2zm7-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zm-4 7h10v2H7zm8 6v-2H7v2z",clipRule:"evenodd"})),wt||(wt=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8.17 3A3 3 0 0 1 11 1h2c1.306 0 2.417.835 2.83 2H21a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM4 5v14h16V5h-4.17A3 3 0 0 1 13 7h-2a3 3 0 0 1-2.83-2zm7-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zm-4 7h10v2H7zm8 6v-2H7v2z",clipRule:"evenodd"})),kt||(kt=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8.17 3A3 3 0 0 1 11 1h2c1.306 0 2.417.835 2.83 2H21a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM4 5v14h16V5h-4.17A3 3 0 0 1 13 7h-2a3 3 0 0 1-2.83-2zm7-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zm-4 7h10v2H7zm8 6v-2H7v2z",clipRule:"evenodd"})),At||(At=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8.17 3A3 3 0 0 1 11 1h2c1.306 0 2.417.835 2.83 2H21a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM4 5v14h16V5h-4.17A3 3 0 0 1 13 7h-2a3 3 0 0 1-2.83-2zm7-2a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zm-4 7h10v2H7zm8 6v-2H7v2z",clipRule:"evenodd"}))),Et=({item:e})=>{const{t}=(0,k.Bd)();return(0,i.jsxs)(ee.z,{className:"group last-augmented-item",to:(0,vt.tW)(e.curated?te.J.playlist.allango:te.J.playlist.detail,{id:e.id})+(e.shared?"?shared=true":""),children:[(0,i.jsx)("div",{className:"last-augmented-item__icon-wrapper",children:(0,i.jsx)(Ue.I,{source:St})}),(0,i.jsxs)("div",{className:"last-augmented-item__container",children:[(0,i.jsx)("h3",{className:"last-augmented-item__title",children:e.title}),(0,i.jsx)("p",{className:"last-augmented-item__isbn",children:t("interactions.playlist")})]})]})};var It=n(44817);n(3960);const Ct=({item:e,bookType:t})=>{const{refetch:n,data:a}=bt(e.id,{hideToast:!0}),[o,s]=(0,r.useState)(),{t:l}=(0,k.Bd)();return(0,r.useEffect)((()=>{n()}),[n]),(0,r.useEffect)((()=>{s(a)}),[a]),(0,i.jsxs)(ee.z,Object.assign({className:"group last-augmented-item"},(0,Qe.v)(e.id,t,e.page?"?page="+e.page:""),{children:[(0,i.jsx)("div",{className:"last-augmented-item__icon-wrapper",children:(0,i.jsx)(W,{src:o,className:"bookCover--sm",width:28,height:35})}),(0,i.jsxs)("div",{className:"last-augmented-item__container",children:[(0,i.jsx)("h3",{className:"last-augmented-item__title",children:e.title}),(0,i.jsx)("p",{className:"last-augmented-item__isbn",children:e.description?e.description:l("dashboard.npLabel")+" "+e.id}),(0,i.jsx)("p",{className:"last-augmented-item__isbn",children:l("maxProduct."+(0,Qe.u)(t))})]})]}))},_t=({npNumber:e,title:t,description:n})=>{const{refetch:a,data:o}=bt(e,{hideToast:!0}),[s,l]=(0,r.useState)(),{t:c}=(0,k.Bd)();return(0,r.useEffect)((()=>{a()}),[a]),(0,r.useEffect)((()=>
2{l(o)}),[o]),(0,i.jsxs)(ee.z,Object.assign({className:"group last-augmented-item"},(0,Qe.v)(e,et.OH.EKSDI),{children:[(0,i.jsx)("div",{className:"last-augmented-item__icon-wrapper",children:(0,i.jsx)(W,{src:s,className:"bookCover--sm",width:28,height:35})}),(0,i.jsxs)("div",{className:"last-augmented-item__container",children:[(0,i.jsx)("h3",{className:"last-augmented-item__title",children:t}),(0,i.jsx)("p",{className:"last-augmented-item__isbn",children:n||c("dashboard.npLabel")+" "+e}),(0,i.jsx)("p",{className:"last-augmented-item__isbn",children:c("maxProduct."+(0,Qe.u)(et.OH.EKSDI))})]})]}))},jt=({userInteractions:e=[]})=>{const{t}=(0,k.Bd)();return(0,i.jsxs)(i.Fragment,{children:[e&&e.length>0&&(0,i.jsxs)("div",{className:"last-augmented-section",children:[(0,i.jsx)("h2",{className:"text-body2 font-bold mb-4",children:t("dashboard.recent")}),(0,i.jsx)("div",{className:"last-augmented-container md:mr-8",children:e.map(((e,t)=>{var n;return(0,i.jsxs)("div",{children:[e.targetType===et.yK.AUGMENTED&&(0,i.jsx)(yt,{item:{isbn:e.targetId,title:e.targetTitle,productId:e.productId||"1",alternativeISBNs:e.alternativeISBNs&&e.alternativeISBNs.length>0?null===(n=e.alternativeISBNs)||void 0===n?void 0:n.toString().replaceAll(",",", "):void 0,coverPath:null==e?void 0:e.coverPath}}),(e.targetType===et.yK.DAU||e.targetType===et.yK.UHB)&&(0,i.jsx)(Ct,{item:{id:e.targetId,title:e.targetTitle,page:e.targetDetail,description:e.targetBookDescription},bookType:e.targetType}),e.targetType===et.yK.EKSDI&&(0,i.jsx)(_t,{npNumber:e.productId,title:e.targetTitle,description:e.targetBookDescription}),(e.targetType===et.yK.PLAYLIST||e.targetType===et.yK.SHARED_PLAYLIST)&&(0,i.jsx)(Et,{item:{id:e.targetId,title:e.targetTitle,shared:e.targetType===et.yK.SHARED_PLAYLIST,curated:!1}}),(e.targetType===et.yK.CURATEDLIST||e.targetType===et.yK.SHARED_CURATEDLIST)&&(0,i.jsx)(Et,{item:{id:e.targetId,title:e.targetTitle,shared:e.targetType===et.yK.SHARED_CURATEDLIST,curated:!0}})]},t)}))})]}),(!e||0===e.length)&&(0,i.jsxs)("div",{className:"dashboard-teaser-container",children:[(0,i.jsx)("h2",{className:"dashboard-teaser-text",children:t("dashboard.nointeractions")}),(0,i.jsx)(ee.z,{to:te.J.discover,children:(0,i.jsx)(N.$,{icon:(0,i.jsx)(Ue.I,{source:It.A}),variant:"primary",children:t("dashboard.teaser-button")})})]})]})},Nt=()=>{const{refetch:e,isFetching:t,data:n}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-last-user-interaction",e.size],queryFn:async()=>(await n.get(`/interaction/last?page=1&pagesize=${e.size}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.interaction.failGetInteraction")})}({size:5},{hideToast:!0});return(0,r.useEffect)((()=>{e()}),[e]),(0,i.jsx)(ft.o,{inProgress:t,children:(0,i.jsx)(jt,{userInteractions:null==n?void 0:n.content})})},Lt=()=>{const[e,t]=(0,r.useState)(!0),[n,a]=(0,r.useState)([]);return(0,r.useEffect)((()=>{(async()=>{const e=await xe.db.lastInteractions.orderBy("when").reverse().toArray();a(e),t(!1)})()}),[]),(0,i.jsx)(ft.o,{inProgress:e,children:(0,i.jsx)(jt,{userInteractions:n})})},Pt=()=>{const{t:e}=(0,k.Bd)();Oe(e("metaTitle.dashboard",{brand:(0,se.P)()}));const{settings:t}=C(),{authenticated:n}=(0,c.As)();return(0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Uebersicht"}}),n?(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:e("dashboard.title"),titleSuffix:n&&(null==t?void 0:t.displayName)!==e("settings.anonymsAuthor")&&(null==t?void 0:t.displayName)}),(0,i.jsxs)("div",{className:"dashboard__box-wrapper",children:[(0,i.jsx)(gt,{}),(0,i.jsx)("div",{className:"flex-1",children:n&&(0,i.jsx)(at,{title:e("dashboard.license.inputTitle"),text:e("dashboard.license.inputText"),inputLabel:e("dashboard.license.inputLabel"),inputCta:e("dashboard.license.inputCta"),inputHelp:e("dashboard.license.inputHelp")})})]}),n&&(0,i.jsxs)("div",{className:"mt-8 dashboard__box-wrapper",children:[(0,i.jsx)(Nt,{}),(0,i.jsx)(mt,{})]})]}):(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:e("dashboard.unauthTitle"),lead:(0,i.jsx)("p",{className:"welcome__text",children:e("dashboard.unauthCopy")})}),(0,i.jsxs)("div",{className:"dashboard__box-wrapper",children:[(0,i.jsx)(gt,{}),(0,i.jsx)(ot,{title:e("dashboard.license.teaserTitle"),text:e("dashboard.license.teaserText"),cta:e("dashboard.license.teaserCta"),className:"flex flex-col lg:items-end gap-3 justify-end"})]}),(0,i.jsx)("div",{className:"dashboard__card-wrapper",children:(0,i.jsx)(Lt,{})})]})};var Dt=n(62255),Mt=n(18131),Ot={};Ot.styleTagTransform=q(),Ot.setAttributes=B(),Ot.insert=R().bind(null,"head"),Ot.domAPI=M(),Ot.insertStyleElement=F();P()(Mt.A,Ot);Mt.A&&Mt.A.locals&&Mt.A.locals;const Rt=({tabs:e,current:t})=>{const n=e=>(0,i.jsxs)(i.Fragment,{children:[e.label,e.items>-1&&(0,i.jsx)(Dt.E,{className:"ml-2",type:"default",children:e.items})]});return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("nav",{"data-cy":"tabs",className:"tabs",children:(0,i.jsx)("ul",{children:e.map((e=>(0,i.jsx)("li",{children:e.disabled?(0,i.jsx)("div",{children:n(e)}):(0,i.jsx)(ee.z,{to:e.disabled?void 0:e.href,"data-cy":"tabs-"+e.name,className:""+(t===e.name?"active-tab":""),"aria-current":null,"aria-selected":t===e.name,children:n(e)})},e.name)))})})})};var zt=n(65089),Bt={};Bt.styleTagTransform=q(),Bt.setAttributes=B(),Bt.insert=R().bind(null,"head"),Bt.domAPI=M(),Bt.insertStyleElement=F();P()(zt.A,Bt);zt.A&&zt.A.locals&&zt.A.locals;const Ut=({title:e,subitle:t,copy:n,image:r,cta:a,className:o,dataCy:s="teaser",withoutSeperator:l=!1})=>(0,i.jsxs)("div",{className:`card ${o||""}`,"data-cy":s,children:[(0,i.jsx)("h2",{className:l?"card__title card__title--noBorder":"card__title",children:e}),(0,i.jsxs)("div",{className:r?"card__body card__body--image":"card__body",children:[r&&(0,i.jsx)("div",{className:"card__image-wrapper",children:r}),(0,i.jsxs)("div",{className:"card__copy-wrapper",children:[t&&(0,i.jsx)("h3",{className:"card__subtitle",children:t}),(0,i.jsx)("div",{className:"card__text",children:n}),a&&(0,i.jsx)("div",{className:"card__cta",children:a})]})]})]}),Ft=()=>{const{t:e}=(0,k.Bd)(),t=(0,be.zy)(),{authenticated:n}=(0,c.As)();return Oe(e("metaTitle.userContent",{brand:(0,se.P)()})),n?(0,i.jsxs)(pe,{"data-cy":"user-content-page",children:[(0,i.jsx)(Q,{"data-cy":"user-content-title",title:e("user-content.title")}),(0,i.jsx)(Rt,{tabs:[{name:"bookmark",href:te.J.usercontent.bookmark,current:-1!==t.pathname.indexOf(te.u.bookmarks),label:e("user-content.nav.bookmarks"),id:"bookmark"},{name:"offline",href:te.J.usercontent.offline,current:-1!==t.pathname.indexOf(te.u.offline),label:e("user-content.nav.offline"),id:"offline"}],current:-1!==t.pathname.indexOf(te.u.bookmarks)?"bookmark":"offline"}),(0,i.jsx)(be.sv,{})]}):(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"playlist-title",title:e("user-content.unauthTitle"),withActions:!0}),(0,i.jsx)(Ut,{title:e("featureTeaser.favourits.title"),subitle:e("featureTeaser.favourits.subtitle"),dataCy:"favourits-teaser",copy:e("featureTeaser.favourits.copy"),image:(0,i.jsx)("img",{src:"./images/bookmarks.png",alt:"",role:"presentation"}),cta:(0,i.jsx)(De.M,{variant:"primary",text:e("featureTeaser.favourits.cta")})})]})};function Vt(e,t,n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,Re.V)(),o=(0,T.I)({queryKey:["get-search",e],queryFn:()=>(async()=>{const n=a.get("brand");let r="";!n||e&&-1!==e.indexOf("&brand")||(r="&brand="+n),n&&e&&-1!==e.indexOf("?brand")&&(e=e.replace("?brand="+n,""),r="&brand="+n),e||(e="?searchString=");let o=t?"&page="+t.page+"&pagesize="+t.pagesize:"&page=1&pagesize=10";return-1!==e.indexOf("page")&&(o=""),(await i.get(`/search/book${e}${o}${r}`)).data})(),retry:!1,enabled:!1}),s=n.message?n:Object.assign(Object.assign({},n),{message:r("error.search.failedBookSearch")});return(0,S.V)(o,s)}function qt(e,t,n,i,r){const a=(0,d.q)(),{t:o}=(0,k.Bd)(),s=(0,Re.V)(),l=(0,T.I)({queryKey:["get-my-search",e,t],queryFn:()=>(async()=>{const r=s.get("brand");let o="";!r||e&&-1!==e.indexOf("&brand")||(o="&brand="+r),r&&e&&-1!==e.indexOf("?brand")&&(e=e.replace("?brand="+r,""),o="&brand="+r),e||(e="?searchString=");let l=t?"&page="+t.page+"&pagesize="+t.pagesize:"&page=1&pagesize=10";-1!==e.indexOf("page")&&(l="");const c=n?"&sort="+n:"",d=i?"&hideExpired="+i:"";return(await a.get(`/search/mybook${e}${l}${o}${c}${d}`)).data})(),retry:!1,enabled:!1}),c=r.message?r:Object.assign(Object.assign({},r),{message:o("error.search.failedBookSearch")});return(0,S.V)(l,c)}var Ht=n(70906),Gt=n(86924),Kt={};Kt.styleTagTransform=q(),Kt.setAttributes=B(),Kt.insert=R().bind(null,"head"),Kt.domAPI=M(),Kt.insertStyleElement=F();P()(Gt.A,Kt);Gt.A&&Gt.A.locals&&Gt.A.locals;const $t=({loading:e,pagination:t,onNavigate:n,showTotal:a})=>{const{t:o}=(0,k.Bd)(),s=Math.ceil(t.totalCount/t.maxPageSize),l=(0,r.useCallback)((()=>{const r=s>5?[1,2,t.page-1,t.page,t.page+1,s-1,s]:[...Array(s+1).keys()],a=[...new Set(r)],l=Array.from(a).sort(((e,t)=>e-t));0===l[0]&&l.shift(),l[l.length-1]===s+1&&l.pop();const c=[];for(let r=0;r<l.length;r++){l[r]>l[r-1]+1&&c.push((0,i.jsx)("p",{className:"pagination--dots",children:"..."},r));const a=(0,i.jsx)(N.$,{variant:"plain",onClick:()=>n({page:l[r],pagesize:t.maxPageSize}),disabled:e,className:t.page===l[r]?"current-page":"",ariaLabel:o("pagination.ariaPage",{page:l[r]}),children:l[r]},`pagination-${l[r]}`);c.push(a)}return c}),[s,t,n,e,o]);return(0,r.useEffect)((()=>
2{l()}),[t,l]),(0,i.jsx)("div",{className:"discover-page__pagination",children:(0,i.jsxs)("div",{className:"pagination "+(e?"pagination--loading":""),children:[(0,i.jsxs)("nav",{className:"pagination-wrapper",children:[(0,i.jsx)(N.$,{ariaLabel:o("pagination.previous"),variant:"plain","data-testid":"arrow-left",onClick:()=>n({page:t.page-1,pagesize:t.maxPageSize}),disabled:1===t.page||e,icon:(0,i.jsx)(Ue.I,{source:Ht.A,accessibilityLabel:o("ui.icons.arrowLeft")})}),l(),(0,i.jsx)(N.$,{ariaLabel:o("pagination.next"),variant:"plain","data-testid":"arrow-left",onClick:()=>n({page:t.page+1,pagesize:t.maxPageSize}),disabled:t.page===s||e,icon:(0,i.jsx)(Ue.I,{source:It.A})})]}),a&&(0,i.jsxs)("p",{className:"pagination-total",children:[t.totalCount," ",o("pagination.elements")]})]})})};var Wt=n(95341);const Xt=e=>{const t=new Date,n=new Date(e.validTo);return n.setHours(0,0,0,0),t.setHours(0,0,0,0),n<t},Yt=(e,t)=>{const n=null==e?void 0:e.editions.find((e=>e.type===t));return n&&n.license&&!Xt(n.license)};var Jt;!function(e){e.IQ_BUDDY="iq_buddy",e.ARBEITSBLATTGENERATOR="arbeitsblattgenerator",e.TEACHERMATIC="teachermatic",e.ACTIVITY_SET="Activity-Set"}(Jt||(Jt={}));function Zt(e,t){const n=(0,d.q)(),i=(0,T.I)({queryKey:["get-feature-toggle",e],queryFn:()=>(async()=>(await n.get(`/feature-toggle/${e}`)).data)(),retry:!1,enabled:!0});return(0,S.V)(i,t)}const Qt=r.createContext({featureToggle:[]}),en=()=>(0,r.useContext)(Qt),tn="eksdi",nn="iqbuddy",rn="iqbuddyLicense",an="moreLangsAiFeedback",on=({children:e})=>{const[t,n]=(0,r.useState)([]),{data:a}=Zt(tn,{hideToast:!0}),{data:o}=Zt(nn,{hideToast:!0}),{data:s}=Zt(rn,{hideToast:!0}),{data:l}=Zt(an,{hideToast:!0});return(0,r.useEffect)((()=>{a&&!0===a.enabled&&-1===t.indexOf(tn)&&n([...t,tn])}),[a,t]),(0,r.useEffect)((()=>{o&&!0===o.enabled&&-1===t.indexOf(nn)&&n([...t,nn])}),[o,t]),(0,r.useEffect)((()=>{s&&!0===s.enabled&&-1===t.indexOf(rn)&&n([...t,rn])}),[s,t]),(0,r.useEffect)((()=>{l&&!0===l.enabled&&-1===t.indexOf(an)&&n([...t,an])}),[l,t]),(0,i.jsx)(Qt.Provider,{value:{featureToggle:t},children:e})};var sn=n(17912),ln={};ln.styleTagTransform=q(),ln.setAttributes=B(),ln.insert=R().bind(null,"head"),ln.domAPI=M(),ln.insertStyleElement=F();P()(sn.A,ln);sn.A&&sn.A.locals&&sn.A.locals;const cn=({setLicenseView:e,refetch:t,licenseValue:n,setLicenseValue:a})=>{const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(!1),{warning:c}=(0,A.e)(),d=(0,r.useCallback)((async()=>{""!==n?t().then((t=>{"error"===(null==t?void 0:t.status)?c({copy:o("error.license.failCheckLicense")}):t.data.isValid?e(!0):c({copy:o("error.license.errorCode."+t.data.errorCode)})})):l(!0)}),[t,n]);return(0,i.jsxs)("div",{className:"license-input",children:[(0,i.jsx)(Ke.p,{name:o("license.inputLabel"),label:o("license.inputLabel"),help:(0,i.jsx)("a",{href:o("license.base-url"),target:"_blank",rel:"noreferrer","aria-label":o("license.helpAria"),className:"text-right",children:o("license.inputHelp")}),placeholder:o("license.placeholder"),value:n,onChange:e=>a(e.target.value),onKeyUp:e=>{l(!1),"Enter"===e.key&&d()},error:s?{message:o("license.inputError"),id:"license-input-modal-error"}:null,data_cy:"licenseKeyInput"}),(0,i.jsx)(N.$,{onClick:d,variant:"primary",className:"mt-6",children:o("license.inputCta")})]})};function dn(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({type:e,productId:n})=>(await t.post(`/entitlement/demo/${e}/${n}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.demo.failStartDemo")})}const un="NP90010000000",pn=({previewTeaserOpen:e,closePreviewTeaser:t,licence:n})=>{const{authenticated:a}=(0,c.As)(),{t:s}=(0,k.Bd)(),l=(0,o.U)(),d=(0,se.P)(),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(""),{refetch:g,data:f}=We(h,{hideToast:!0}),[v,b]=(0,r.useState)(!1),{mutateAsync:y}=dn(),{mutateAsync:x}=$e(),{setEnableKeyboardNavigation:w}=(0,Pe.Us)();(0,r.useEffect)((()=>{e&&w(!1)}),[e]);const A=()=>{t(),w(!0)};return(0,i.jsx)(Xe.y,{title:s("iqBuddy.licence.teaser.title"),open:e,closeButton:!0,close:A,contentClassName:"px-2 md:px-4 lg:px-8 xl:max-w-[1000px]",copy:(0,i.jsx)(i.Fragment,{children:u?(0,i.jsx)(nt,{successModal:v,activateLicense:async()=>{try{await x({licenseKey:h}),b(!0)}catch(e){console.log("error",e)}},close:()=>{b(!1),p(!1),m("")},compositLicenseCheck:f}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"iqbuddy-teaser__text-wrapper",children:[(0,i.jsx)("div",{className:"iqbuddy-teaser__image-wrapper",children:(0,i.jsx)("img",{src:"./images/iqbuddy-teaser.png",alt:"",role:"presentation"})}),(0,i.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,i.jsx)("div",{className:"flex flex-col gap-5",children:(0,i.jsx)("p",{className:"iqbuddy-teaser__text",children:n&&n.validTo?n.isDemo?(0,i.jsx)(k.x6,{i18nKey:"iqBuddy.licence.teaser.textDemoExpired"}):(0,i.jsx)(k.x6,{i18nKey:"iqBuddy.licence.teaser.textLicenceExpired"}):(0,i.jsx)(k.x6,{i18nKey:"iqBuddy.licence.teaser.text"})})}),(0,i.jsx)("div",{className:"iqbuddy-teaser__button-wrapper",children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{data_cy:"button-commercial-iqbuddy",onClick:A,variant:"plain",children:s("iqBuddy.licence.teaser.buttonLater")}),(0,i.jsxs)("a",{target:"_blank",href:("DELTA"===d?l.webshopUrlDelta:l.webshopUrlEks)+un,className:"button button--buy",rel:"noreferrer",children:[(0,i.jsx)("span",{children:s("iqBuddy.licence.teaser.buttonBuy")}),(0,i.jsx)(Ue.I,{source:It.A,accessibilityLabel:s("commercialTeaser.opensNewTab")})]})]})})]})]}),(0,i.jsxs)("div",{className:"license-card mt-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2 mb-4",children:[(0,i.jsx)("p",{className:"font-bold text-textStrong text-base",children:s("iqBuddy.licence.teaser.license.title")}),(0,i.jsx)("p",{className:"text-textStrong text-base",children:s(a?"iqBuddy.licence.teaser.license.text":"iqBuddy.licence.teaser.license.unauthed")})]}),a?(0,i.jsx)(cn,{setLicenseView:p,refetch:g,licenseValue:h,setLicenseValue:m}):(0,i.jsx)(De.M,{variant:"secondary",text:s("protected.unauthCta")})]})]})})})};function hn(e,t){const n=(0,d.q)(),i=(0,T.I)({queryKey:["get-iqbuddy-licence"],queryFn:async()=>(await n.get("/klettbuddy/licence")).data,enabled:e,retry:!1});return(0,S.V)(i,t)}function mn(e){return e.toISOString().split("T")[0]}function gn(e){return mn(new Date(e))}function fn(e){const t=new Date(e);return mn(t)+" "+t.toLocaleTimeString("de")}var vn,bn=n(67940);function yn(){return yn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yn.apply(null,arguments)}const xn=e=>r.createElement("svg",yn({xmlns:"http://www.w3.org/2000/svg",fill:"
2currentColor",viewBox:"0 0 24 24"},e),vn||(vn=r.createElement("path",{d:"m11.566 10.313-7.94 7.94 2.12 2.121 1.415-1.414 2.121 2.121 3.536-3.535-2.121-2.121 2.99-2.99a5.002 5.002 0 0 0 5.849-7.97 5 5 0 0 0-7.97 5.848m5.848-.899a2 2 0 1 1-2.828-2.828 2 2 0 0 1 2.828 2.828"}))),wn=({license:e,className:t=""})=>{const{t:n}=(0,k.Bd)();if(!e)return;const r=()=>{const t=Date.now();return((e,t)=>{const n=e-t;return Math.round(n/60/60/24)})(e.validTo,t/1e3)>30?"bg-surfaceSuccess dark:text-black flex":Xt(e)?"bg-surfaceCritical flex":"bg-surfaceWarning flex"};return(0,i.jsxs)(i.Fragment,{children:[e&&e.isAssignedToUser&&!Xt(e)&&(0,i.jsxs)(Dt.E,{className:`${r()} ${t}`,icon:(0,i.jsx)(Ue.I,{source:e&&e.isAssignedToUser?Xt(e)?bn.A:xn:bn.A,className:"w-4 h-4"}),type:"custom",children:[n("maxProduct.license.validUntilLabel")," ",gn(e.validTo)]}),e&&e.isAssignedToUser&&Xt(e)&&(0,i.jsxs)(Dt.E,{className:`${r()} ${t}`,type:"custom",children:[n("maxProduct.license.invalidSince")," ",gn(e.validTo)]})]})},kn=({item:e,alternativeRoute:t})=>{var n;const{authenticated:a}=(0,c.As)(),{t:o}=(0,k.Bd)(),s=(0,l.n)(),{featureToggle:d}=en(),u=d.includes(nn)&&d.includes(rn),p=(0,r.useCallback)((()=>!!(u&&e&&s&&a&&e.toolLink&&e.bookEditionType===et.OH.TOOL)),[a,u,s,e]),{data:h,refetch:m}=hn(p()),[g,f]=(0,r.useState)(!1),v=()=>{f(!1),p()&&m()},b=(0,r.useCallback)((()=>{f(!0)}),[]),y=(0,Wt.kk)((()=>xe.db.mediaBookStructures.where({id:e.id}).first())),x=(0,Wt.kk)((()=>xe.db.maxProduct.where({id:e.id}).first()));if(!s&&void 0===y&&void 0===x)return(0,i.jsx)(i.Fragment,{});const w=()=>{if(e&&e.license&&e.license.length>0){const t=e.license.find((e=>!Xt(e)));return!t}return!1};return d.includes(rn)&&e.toolLink&&e.bookEditionType===et.OH.TOOL&&(!e.license||e.license.length<=0||!e.license[0]||!e.license[0].isAssignedToUser||Xt(e.license[0]))?(0,i.jsxs)(i.Fragment,{children:[u&&(0,i.jsx)(pn,{previewTeaserOpen:g,closePreviewTeaser:v,licence:h}),(0,i.jsxs)("div",{className:"discover-item group","data-cy":"discover-item-group",children:[(0,i.jsxs)("div",{className:"hover:cursor-pointer",onClick:b,children:[(0,i.jsx)("span",{className:"sr-only",children:e.title?e.title:e.bezeichnung?e.bezeichnung:""}),(0,i.jsx)("div",{className:"discover-item__img-wrapper",children:(0,i.jsx)(W,{src:e.cover,width:160,height:200})})]}),(0,i.jsxs)("div",{className:"discover-item__block",children:[(0,i.jsx)("div",{"data-cy":"discover-item",className:"discover-item hover:cursor-pointer",onClick:b,children:(0,i.jsx)("h3",{className:"discover-item__title",dangerouslySetInnerHTML:{__html:e.title}})}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e.bestandteil?e.bestandteil:""}}),w()&&(0,i.jsx)(Dt.E,{type:"expired",className:"bg-surfaceWarning w-fit",children:o("license.expired")})]})]})]}):(0,i.jsxs)(ee.z,{className:"discover-item group","data-cy":"discover-item-group",to:t?(0,vt.tW)(t,{id:e.id}):e.toolLink&&e.bookEditionType===et.OH.TOOL&&e.license&&e.license.length>0&&e.license[0]&&e.license[0].isAssignedToUser&&!Xt(e.license[0])?e.toolLink:e.npNumbers&&e.npNumbers.length>0||!e.isbn?(0,vt.tW)(te.J.product.index,{id:e.id||1}):(0,vt.tW)(te.J.product.augmented,{id:e.id||1,isbn:e.isbn}),target:e.bookEditionType===et.OH.TOOL?"_blank":void 0,children:[(0,i.jsx)("div",{className:"discover-item__img-wrapper","data-cy":`discover-item-book-cover-link-${e.id}`,children:(0,i.jsx)(W,{src:e.cover,width:160,height:200})}),(0,i.jsxs)("div",{className:"discover-item__block",children:[(0,i.jsx)("div",{"data-cy":"discover-item",className:"discover-item",children:(0,i.jsx)("h3",{className:"discover-item__title",dangerouslySetInnerHTML:{__html:e.title?e.title:e.bezeichnung?e.bezeichnung:""}})}),(0,i.jsx)("p",{dangerouslySetInnerHTML:{__html:e.bestandteil?e.bestandteil:""}}),u&&e.bookEditionType===et.OH.TOOL&&(null===(n=e.license)||void 0===n?void 0:n.length)>0&&(0,i.jsx)(wn,{license:e.license[0],className:"w-fit"}),w()&&(0,i.jsx)(Dt.E,{type:"expired",className:"bg-surfaceWarning w-fit",children:o("license.expired")})]})]})};var An=n(7550),Tn={};Tn.styleTagTransform=q(),Tn.setAttributes=B(),Tn.insert=R().bind(null,"head"),Tn.domAPI=M(),Tn.insertStyleElement=F();P()(An.A,Tn);An.A&&An.A.locals&&An.A.locals;var Sn,En;!function(e){e.ALL="all",e.PERSONAL="personal",e.TOOLS="tools"}(Sn||(Sn={})),function(e){e.ALL="all-books",e.PERSONAL="my-books",e.TOOLS="all-tools"}(En||(En={}));const In=({searchResult:e,personalBooks:t,routeString:n})=>{const a=(0,Re.V)(),[o,s]=(0,r.useState)(En.ALL),{authenticated:l}=(0,c.As)(),{t:d}=(0,k.Bd)(),{featureToggle:u}
2=en(),p=u.includes(nn)&&u.includes(rn);(0,r.useEffect)((()=>{l?a.get("type")===Sn.TOOLS?s(En.TOOLS):a.get("type")!==Sn.ALL&&(null==t?void 0:t.resultPage.totalCount)>0?s(En.PERSONAL):s(En.ALL):s(null)}),[a,l,null==t?void 0:t.resultPage.totalCount]);const h=(0,r.useCallback)((e=>{const t=null!==a.get("searchString")?"&searchString="+a.get("searchString"):"";return n+`?type=${e}`+t}),[a,n]),m=(0,r.useCallback)((()=>{const e=[{href:h(Sn.PERSONAL),name:En.PERSONAL,current:!0,label:n!==te.J.library?d("search.myBooks"):d("library.myBooks"),id:En.PERSONAL,items:null==t?void 0:t.resultPage.totalCount,disabled:0===(null==t?void 0:t.resultPage.totalCount)},{href:h(Sn.ALL),name:En.ALL,current:!0,label:n!==te.J.library?d("search.allBooks"):d("library.allBooks"),id:En.ALL,disabled:!1}];return p&&e.push({href:h(Sn.TOOLS),name:En.TOOLS,current:!0,label:(te.J.library,d("search.allTools")),id:En.TOOLS,disabled:!1}),e}),[h,d,n,null==t?void 0:t.resultPage.totalCount,p]);if(l&&(null==e?void 0:e.resultPage.totalCount)>0)return(0,i.jsx)(Rt,{current:o,tabs:m()})};function Cn(e,t,n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,Re.V)(),o=(0,T.I)({queryKey:["get-tools",e],queryFn:()=>(async()=>{const n=a.get("brand");let r="";!n||e&&-1!==e.indexOf("&brand")||(r="&brand="+n),n&&e&&-1!==e.indexOf("?brand")&&(e=e.replace("?brand="+n,""),r="&brand="+n),e||(e="?searchString=");let o=t?"&page="+t.page+"&pagesize="+t.pagesize:"&page=1&pagesize=10";return-1!==e.indexOf("page")&&(o=""),(await i.get(`/search/tools${e}${o}${r}`)).data})(),retry:!1,enabled:!1}),s=n.message?n:Object.assign(Object.assign({},n),{message:r("error.search.failedToolSearch")});return(0,S.V)(o,s)}var _n=n(62623);const jn=()=>{const e=localStorage.getItem(f.Qg);if(e)return JSON.parse(e)},Nn=({sortChange:e})=>{const{t}=(0,k.Bd)(),n=jn(),[a,o]=(0,r.useState)((null==n?void 0:n.label)?null==n?void 0:n.label:t("resourceList.sorters.recentlyUsed")),s=(0,r.useCallback)((()=>[{label:t("resourceList.sorters.titleAsc"),value:"asc",data_cy:"titleAscending"},{label:t("resourceList.sorters.titleDesc"),value:"desc",data_cy:"titleDescending"},{label:t("resourceList.sorters.recentlyUsed"),value:"recent",data_cy:"recentlyUsed"},{label:t("resourceList.sorters.activation"),value:"activate",data_cy:"activation"}]),[t]),l=(0,r.useCallback)((t=>{o(t.label),e(t.value),localStorage.setItem(f.Qg,JSON.stringify(t))}),[e]),c=(0,r.useCallback)((()=>({options:s,onSelect:l,label:a})),[l,a,s]);return(0,i.jsx)(_n.O,{preLabel:t("resourceList.sortPrefix"),label:c().label,onSelect:c().onSelect,options:c().options()})};var Ln=n(97368);const Pn=()=>{const e=localStorage.getItem(f.ke);return!(!e||"false"===e)},Dn=({setHideExpired:e})=>{const{t}=(0,k.Bd)();return(0,i.jsx)(Ln.o,{initValue:Pn(),onChange:t=>{e(t.target.checked),localStorage.setItem(f.ke,JSON.stringify(t.target.checked))},id:"hide-expired",className:"gap-0",children:t("discover.hideExpired")})},Mn=({searchResultCount:e=0,personalBooksCount:t=0})=>{const{t:n}=(0,k.Bd)(),a=(0,Re.V)(),[o,s]=(0,r.useState)(),[l,c]=(0,r.useState)("");return(0,r.useEffect)((()=>{""!==a.get("searchString")?s(a.get("searchString")):s("")}),[a]),(0,r.useEffect)((()=>{c(""),setTimeout((()=>{if(e>0){const i=`${t} ${n(t<=1?"discover.result.resultsInSingle":"discover.result.resultsInFor",{tabName:n("search.myBooks")})}\n                    ${e} ${n(e<=1?"discover.result.resultsInSingle":"discover.result.resultsInFor",{tabName:n("search.allBooks")})}`;c(i)}}),0)}),[o,t,e,n]),e?(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:l}):null},On=()=>{var e,t;const{search:n}=(0,be.zy)(),{t:a}=(0,k.Bd)(),o=(0,Re.V)(),s=(0,fe.m)(),{authenticated:l}=(0,c.As)(),d=jn(),[u,p]=(0,r.useState)((null==d?void 0:d.value)?null==d?void 0:d.value:"recent"),[h,m]=(0,r.useState)(Pn()),{refetch:g,data:f,error:v}=Vt(n,{pagesize:parseInt(o.get("pagesize"))||15,page:parseInt(o.get("page"))||1},{hideToast:!0}),{refetch:b,data:y}=qt(n,{pagesize:15,page:1},u,h,{hideToast:!0}),{refetch:x,data:w}=Cn("",{pagesize:parseInt(o.get("pagesize"))||15,page:parseInt(o.get("page"))||1},{hideToast:!0}),[A,T]=(0,r.useState)([]),{featureToggle:S}=en(),E=S.includes(nn),[I,C]=(0,r.useState)([]);f&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"internalSearchResults",data:{internalSearch_results:f.resultPage.totalCount}})),(0,r.useEffect)((()=>{g(),x()}),[o,g,x]),(0,r.useEffect)((()=>{E&&w&&T(w.resultPage.content)}),[E,w]),(0,r.useEffect)((()=>{l&&b()}),[o,l,b,u,h]),(0,r.useEffect)((()=>{const e=o.get("type");e===Sn.ALL&&f?C(f.resultPage.content):e===Sn.TOOLS&&A?C(A||[]):y&&y.resultPage.totalCount>0?C(y.resultPage.content):C((null==f?void 0:f.resultPage.content)||[])}),[o,f,y,A]);const _=(0,r.useCallback)((async e=>{o.set("page",e.page),o.set("pagesize",e.pagesize),s(te.J.discover+"?"+o.toString())}),[o,s]);return(0,i.jsxs)(pe,{children:[(0,i.jsx)(He,{className:"mt-8",resultCount:null==f?void 0:f.resultPage.totalCount,confirmButton:!0}),(0,i.jsx)(In,{searchResult:f,personalBooks:y,routeString:te.J.discover}),(0,i.jsx)(Mn,{searchResultCount:null===(e=null==f?void 0:f.resultPage)||void 0===e?void 0:e.totalCount,personalBooksCount:null===(t=null==y?void 0:y.resultPage)||void 0===t?void 0:t.totalCount}),o.get("type")!==Sn.ALL&&o.get("type")!==Sn.TOOLS&&y&&y.resultPage.totalCount>0&&(0,i.jsxs)("div",{className:"discover-page__filter",children:[(0,i.jsx)(Nn,{sortChange:p}),(0,i.jsx)(Dn,{setHideExpired:m})]}),(0,i.jsx)("ul",{className:"discover-page__items",children:I.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)(kn,{item:e})},t)))}),v&&(0,i.jsx)("p",{children:a("error.search.failedBookSearch")}),(()=>{if(f){const e=o.get("type");return null!==o.get("searchString")||(e===Sn.ALL||!l||e!==Sn.ALL)}return!1})()&&(o.get("type")===Sn.ALL||!l)&&f.resultPage.totalCount>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:Object.assign(Object.assign({},null==f?void 0:f.resultPage),{pagesize:null==f?void 0:f.resultPage.size,page:null==f?void 0:f.resultPage.pageNumber})}),o.get("type")!==Sn.ALL&&o.get("type")!==Sn.TOOLS&&y&&y.resultPage.totalCount>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:Object.assign(Object.assign({},null==y?void 0:y.resultPage),{pagesize:null==y?void 0:y.resultPage.size,page:null==y?void 0:y.resultPage.pageNumber})}),o.get("type")===Sn.TOOLS&&A&&A.length>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:{pagesize:1,page:1,totalCount:A.length,maxPageSize:10}})]})},Rn=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"discover-title",title:e("discover.title")}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-body2 py-6",children:(0,i.jsx)("label",{htmlFor:"discover-search",children:e("discover.searchLabel")})}),(0,i.jsx)(He,{resultCount:null,confirmButton:!0,inputName:"discover-search"})]})]})},zn=()=>{const e=(0,Re.V)(),{t}=(0,k.Bd)();return Oe(t("metaTitle.discover",{brand:(0,se.P)()})),(0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Suche"}}),(0,i.jsxs)(i.Fragment,{children:[null===e.get("searchString")&&(0,i.jsx)(Rn,{}),null!==e.get("searchString")&&(0,i.jsx)(On,{})]})};var Bn=n(73505);var Un=n(20136);function Fn(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({request:e})=>(await t.post("/interaction",e)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.interaction.failPostInteraction")})}function Vn(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({shareId:e})=>(await t.post(`/playlists/received/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failCopy")})}function qn(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({id:e})=>(await t.delete(`/playlists/received/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failRemoveReceived")})}var Hn=n(19176),Gn=n(54759);var Kn,$n=n(47665),Wn=n(6967);function Xn(){return Xn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xn.apply(null,arguments)}const Yn=e=>r.createElement("svg",Xn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Kn||(Kn=r.createElement("path",{fill:"#111212",d:"M18.364 15.536 16.95 14.12l1.414-1.414a5 5 0 1 0-7.07-7.071L9.878 7.05 8.464 5.636 9.88 4.222a7 7 0 1 1 9.9 9.9l-1.415 1.414m-2.828 2.828-1.415 1.414a7 7 0 0 1-9.9-9.9l1.415-1.414L7.05 9.88l-1.414 1.414a5 5 0 1 0 7.071 7.071l1.414-1.414zm-.708-10.607 1.415 1.415-7.07 7.07-1.416-1.414z"})));var Jn;function Zn(){return Zn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Zn.apply(null,arguments)}const Qn=e=>r.createElement("svg",Zn({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Jn||(Jn=r.createElement("path",{fill:"#111212",d:"M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.007-1zM5.003 8 5 20h10V8zM9 6h8v10h2V4H9z"})));var ei=n(72967);const ti=({playlist:e,shareInfo:t,onClose:n,onShareLinkDelete:a,onSetShareInfo:s,type:l})=>{const[c,u]=(0,r.useState)(!0),p=(0,Re.V)(),[h,g]=(0,r.useState)(!1),[f,v]=(0,r.useState)(""),{refetch:b,data:y,isInitialLoading:x}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["share-playlist",e],queryFn:async()=>(await n.get(`playlists/share/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.failSharePlaylist")})}(e.playlist.id),{refetch:w,data:A,isInitialLoading:I}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["share-curatedlist",e],queryFn:async()=>(await n.get(`curatedlists/share/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.failSharePlaylist")})}(e.playlist.id),{mutateAsync:C}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({shareId:e})=>(await t.delete(`/playlists/shared/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failRemoveReceived")})}(),{mutateAsync:_}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({shareId:e})=>(await t.delete(`/curatedlists/shared/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failRemoveReceived")})}(),{basename:j}=(0,o.U)(),{t:L}=(0,k.Bd)(),{setError:P}=(0,m.q)(),{mutateAsync:D}=(0,ge.u)(),M=p.get("brand")?`&brand=${p.get("brand")}`:"";const O=(0,r.useCallback)((()=>{"allango"===l?w().then((e=>{s([{privilege:"read",shareId:e.data}])})):b().then((e=>{s([{privilege:"read",shareId:e.data}])}))}),[b,s,w,l]),R=(0,r.useCallback)((async e=>{"allango"===l?await _({shareId:e}):await C({shareId:e}),a()}),[C,a,l,_]);(0,r.useEffect)((()=>{y&&v(j.absoluteBasename+te.u.playlistDetail+encodeURIComponent(y)+"?shared=true"+M),A&&v(j.absoluteBasename+te.u.playlistDetail+encodeURIComponent(A)+"?allangoShared=true"+M)}),[y,j,A,M]),(0,r.useEffect)((()=>{var e,n;if(null===(e=t[0])||void 0===e?void 0:e.shareId){const e="allango"===l?te.u.playlistDetailCurated:te.u.playlistDetail;v(j.absoluteBasename+e+encodeURIComponent(null===(n=t[0])||void 0===n?void 0:n.shareId)+"?shared=true"+M)}}),[t,j,l,M]);const z=(0,r.useCallback)((()=>{(async function(e){return"clipboard"in navigator?await navigator.clipboard.writeText(e):document.execCommand("copy",!0,e)})(f).then((()=>{g(!0),setTimeout((()=>{g(!1)}),3e3)})).catch((e=>{P(L("error.playlist.failCopyToClipboard")),D({errorMessage:"Error copying link.",errorObject:e})}))}),[f,L,P,D]);(0,r.useEffect)((()=>()=>{g(!1)}),[]);const B=(0,r.useCallback)((()=>{let t=!1;
2return e.playlist.entries.forEach((e=>{var n;!0!==(null===(n=e.asset)||void 0===n?void 0:n.teacherOnly)||(t=!0)})),t}),[e]),U=(0,r.useCallback)((e=>{const t="allango"===l?te.u.playlistDetailCurated:te.u.playlistDetail;return j.absoluteBasename+t+e.shareId+"?shared=true"+M}),[j.absoluteBasename,l,M]),F=(0,ct.pn)(c,dt.h),V=e=>{"pointerdown"===e.detail.originalEvent.type&&n()};return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Ge.bL,{open:c,onOpenChange:u,children:(0,i.jsx)(Ge.ZL,{forceMount:!0,children:F(((r,a)=>(0,i.jsxs)(i.Fragment,{children:[a?(0,i.jsx)(Ge.hJ,{className:"dialog__overlay"}):null,a?(0,i.jsx)(Ge.UC,{onEscapeKeyDown:n,onInteractOutside:V,className:"dialog__content","data-cy":"playlist-share-content",children:(0,i.jsxs)(ct.CS.div,{style:r,className:"dialog__body max-w-2xl flex flex-col-reverse md:flex-row gap-6",children:[null==t?void 0:t.map(((e,t)=>(0,i.jsx)(Gn.Ay,{className:"border border-borderColor aspect-square h-full w-full md:w-60 md:h-60",value:U(e),viewBox:"0 0 256 256"},t))),(0,i.jsxs)("div",{className:"flex-1","aria-live":"polite","aria-atomic":"true",children:[(0,i.jsxs)("header",{className:"dialog__header",children:[(0,i.jsx)(Ge.hE,{className:"dialog__title",children:L("playlist.share.title")}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:L("ui.ariaClose"),title:L("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:n,data_cy:"close-share-modal"})]}),(0,i.jsx)("p",{className:"text-textStrong font-bold text-lg my-3",children:e.playlist.title}),B()&&(0,i.jsx)($n.w,{icon:(0,i.jsx)(Ue.I,{source:ei.A}),className:"warning",copy:(0,i.jsx)("p",{children:L("playlist.share.warning")})}),null==t?void 0:t.map(((e,t)=>(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"playlist-share__share-wrapper",children:[(0,i.jsx)("p",{className:"playlist-share__link","data-cy":"playlist-share-link",children:U(e)}),(0,i.jsxs)("div",{className:"playlist-share__buttons",children:[(0,i.jsx)(N.$,{disabled:x||I,onClick:z,icon:(0,i.jsx)(Ue.I,{source:Qn}),variant:"primary","data-cy":"playlist-share-link-button",autofocus:!0,children:L("playlist.share.copy")}),(0,i.jsx)(N.$,{modifier:"destructive",onClick:()=>R(e.shareId),children:L("playlist.share.revoke")})]})]})},t))),0===(null==t?void 0:t.length)&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"playlist-share__share-wrapper",children:(0,i.jsx)(N.$,{disabled:x,onClick:O,icon:(0,i.jsx)(Ue.I,{source:Yn}),variant:"primary","data-cy":"playlist-share-link-button",autofocus:!0,children:L("playlist.share.generate")})})}),(0,i.jsx)("div",{"aria-live":"polite",children:h&&(0,i.jsx)($n.w,{className:"text-center mt-4",copy:(0,i.jsx)("p",{children:L("playlist.share.copied")})})}),(0,i.jsx)("input",{className:"playlist-share__link-input",type:"text",value:f,readOnly:!0})]})]})}):null]})))})})})};var ni=n(91424),ii=n(49206);const ri={sideEffects:(0,ni.WB)({styles:{active:{opacity:"0.4"}}})};function ai({children:e}){return(0,i.jsx)(ni.Hd,{dropAnimation:ri,children:e})}var oi=n(10870),si=n(74187),li={};li.styleTagTransform=q(),li.setAttributes=B(),li.insert=R().bind(null,"head"),li.domAPI=M(),li.insertStyleElement=F();P()(si.A,li);si.A&&si.A.locals&&si.A.locals;const ci=(0,r.createContext)({attributes:{},listeners:void 0,ref(){}});class di extends ni.uN{}di.activators=[{eventName:"onKeyDown",handler:()=>{const e=document.getElementsByClassName("modal-dialog__body");return!(e&&e.length>0)}}];const ui=({items:e,onChange:t,renderItem:n})=>{const{t:a}=(0,k.Bd)(),[o,s]=(0,r.useState)(e);(0,r.useEffect)((()=>{s(e)}),[e]);const[l,c]=(0,r.useState)(null),d=(0,r.useMemo)((()=>e.find((e=>e.id===(null==l?void 0:l.id)))),[l,e]),u=(0,ni.FR)((0,ni.MS)(ni.cA,{activationConstraint:{distance:10}}),(0,ni.MS)(ni.IG,{activationConstraint:{delay:250,tolerance:5}}),(0,ni.MS)(ni.uN,{coordinateGetter:ii.JR})),p=e=>o.findIndex((t=>t.id===e))+1,h=o.length,m={onDragStart:({active:e})=>a("eksdi.accessibility.sorting.onDragStart",{position:p(e.id),itemsCount:h}),onDragOver({over:e}){if(e)return a("eksdi.accessibility.sorting.onDragOver",{position:p(e.id),itemsCount:h})},onDragEnd({over:e}){if(e)return a("eksdi.accessibility.sorting.onDragEnd",{position:p(e.id),itemsCount:h})},onDragCancel:()=>
2a("eksdi.accessibility.sorting.onDragCancel")};return(0,i.jsxs)(ni.Mp,{accessibility:{announcements:m,screenReaderInstructions:{draggable:a("eksdi.accessibility.sorting.screenReaderInstructions")}},sensors:u,onDragStart:({active:e})=>{c(e)},onDragEnd:({active:n,over:i})=>{if(i&&n.id!==(null==i?void 0:i.id)){const r=e.findIndex((({id:e})=>e===n.id)),a=e.findIndex((({id:e})=>e===i.id));s((0,ii.be)(e,r,a)),t((0,ii.be)(e,r,a))}c(null)},onDragCancel:()=>{c(null)},children:[(0,i.jsx)(ii.gB,{items:o,children:(0,i.jsx)("ul",{className:"w-full flex flex-col gap-3 list-none pl-0",role:"application",children:o.map(((e,t)=>(0,i.jsx)(r.Fragment,{children:n(e,t)},e.id)))})}),(0,i.jsx)(ai,{children:d&&(0,i.jsx)("div",{className:"sortable-list__overlay",children:n(d)})})]})};ui.Item=function({children:e,id:t}){const{attributes:n,isDragging:a,listeners:o,setNodeRef:s,setActivatorNodeRef:l,transform:c,transition:d}=(0,ii.gl)({id:t}),u=(0,r.useMemo)((()=>({attributes:n,listeners:o,ref:l})),[n,o,l]),p={opacity:a?.4:void 0,transform:oi.Ks.Translate.toString(c),transition:d,cursor:"grab"};return(0,i.jsx)(ci.Provider,{value:u,children:(0,i.jsx)("li",Object.assign({className:"list-none sortable-list-item"},n,o,{ref:s,style:p,children:e}))})};var pi,hi=n(54479),mi=n(45929),gi=n(33182),fi=n(94301),vi=n(66725);function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bi.apply(null,arguments)}const yi=e=>r.createElement("svg",bi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),pi||(pi=r.createElement("path",{fill:"#111212",d:"m12.9 6.858 4.242 4.243L7.242 21H3v-4.243zm1.414-1.414 2.121-2.122a1 1 0 0 1 1.414 0l2.829 2.829a1 1 0 0 1 0 1.414l-2.122 2.121z"})));var xi;function wi(){return wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},wi.apply(null,arguments)}const ki=e=>r.createElement("svg",wi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),xi||(xi=r.createElement("path",{fill:"#111212",d:"M5 11h14v2H5z"}))),Ai=(e,t,n,i,r)=>e.find((e=>{var a,o,s,l,c;return(null===(a=e.dauPage)||void 0===a?void 0:a.book.npNumber)===t&&(null===(o=e.dauPage)||void 0===o?void 0:o.versionId)===n&&(null===(s=e.dauPage)||void 0===s?void 0:s.page)===i.toString()&&((null===(l=e.dauPage)||void 0===l?void 0:l.isDoublePage)===r||void 0===r&&!(null===(c=e.dauPage)||void 0===c?void 0:c.isDoublePage))}));function Ti(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-dau-by-np",e],queryFn:async()=>(await n.get(`/digital/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.augmented.failGetProduct")})}var Si=n(17407),Ei=n(12123);function Ii(e,t=!1,n){var i;const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,l.n)(),s=(0,c.As)(),u=(0,T.I)({queryKey:["get-asset-by-assetId",e,null===(i=null==s?void 0:s.profile)||void 0===i?void 0:i.id],queryFn:async()=>{if(o)return(await r.get(`/asset/${e}`)).data;if(s&&s.profile&&s.profile.id){const t=e.endsWith("/daupdf")?e.substr(0,e.indexOf("/daupdf")):e,n=await xe.db.storageRequests.where({"asset.id":t,user:s.profile.id}).first();if(n)return n.asset;throw{message:a("error.asset.failGetAccess"),response:{data:a("error.asset.failGetAccess"),status:403}}}},retry:!1,enabled:t});return(0,S.V)(u,n||{message:a("error.asset.failGetAsset")})}const Ci=(e,t,n,i)=>{var r,a;return Object.assign(Object.assign({},e),{id:e.assetId,format:t,title:e.title,book:null==n?void 0:n.book,page:i.toString(),subassets:(null===(r=e.submedias)||void 0===r?void 0:r.map((e=>Ci(e,Si.i_.ASSESSMENT,n,i))))||[],relatedAssets:(null===(a=e.relatedAssets)||void 0===a?void 0:a.map((e=>Ci(e,e.format||Si.i_.ASSESSMENT,n,i))))||[]})},_i=(e,t,n)=>{if(e){const i=[null==e?void 0:e.pages.filter((e=>e.pageNumber===t.toString()))[0]];if(n){const n=e.pages.filter((e=>e.pageNumber===(t+1).toString()))[0];i.push(n)}const r=[];return i.forEach((n=>{n&&(n.audios&&r.push(...n.audios.map((n=>Ci(n,Si.i_.AUDIO,e,t)))),n.pdfs&&r.push(...n.pdfs.map((n=>Ci(n,Si.i_.PDF,e,t)))),n.videos&&r.push(...n.videos.map((n=>Ci(n,Si.i_.VIDEO,e,t)))),n.htmls&&r.push(...n.htmls.map((n=>Ci(n,Si.i_.HTML,e,t)))))})),r}return[]},ji=(e,t,n)=>_i(e,t,n).filter((e=>e.allowed));var Ni=n(30013);const Li=({data:e})=>{const{refetch:t}=Ti(e.book.npNumber,{hideToast:!0}),n=(0,g.yv)(),{warning:r}=(0,A.e)(),{t:a}=(0,k.Bd)(),{refetch:o}=Ii(e.book.npNumber+"/daupdf"),s=(0,Ei.A)(e.book.npNumber),l=t=>{const i=_i(t,parseInt(e.page),e.isDoublePage);0===i.length&&r({copy:a("dau.tools.noAssetsAvailableForDownload")}),s||o().then((t=>{n.downloadDau(Object.assign(Object.assign({},t.data),{format:Si.i_.PDF,bookFormat:e.format}))})),n.downloadAssets(i)};return(0,i.jsx)(N.$,{variant:"plain",onClick:e=>{e.stopPropagation(),t().then((e=>{l(e.data)}))},icon:(0,i.jsx)(Ue.I,{source:Ni.A}),ariaLabel:a("bookmark.savePageOffline"),children:a("bookmark.savePageOffline")},"download-dau-page")};var Pi=n(808),Di=n(33125);const Mi=({dauPage:e,asset:t,editable:n=!1,removeThisEntry:a,onShowComment:o,openVersionChange:s,entryId:l})=>{const{t:c}=(0,k.Bd)(),d=(0,J.Ay)(),{cacheAllowed:u,downloadAllowed:p}=(0,hi.H)(),{bookmarks:m,deleteBookmarks:g,bookmarkDauPage:f}=(0,h.wn)(),v=(0,r.useCallback)((()=>
2{if(e){return!!Ai(m,e.book.npNumber,e.versionId,e.page,e.isDoublePage)}return!1}),[m,e]),b=(0,r.useCallback)((t=>{var n;t.stopPropagation();const i=Ai(m,e.book.npNumber,e.versionId,e.page,e.isDoublePage);i?g([{bookmarkId:i.bookmarkId,dauPage:i.dauPage}]):(f({versionId:e.versionId,versionName:e.versionName,isDoublePage:e.isDoublePage,page:e.page,bookId:e.book.npNumber}),(0,it.r)({productId:null!==(n=e.book.isbn)&&void 0!==n?n:e.book.npNumber,productName:e.book.bookTitle,eventType:"addBookmark"}))}),[f,m,e,g]),y=(0,r.useCallback)((()=>{const r=[];return n&&r.push((0,i.jsx)(N.$,{variant:"plain",onClick:a,icon:(0,i.jsx)(Ue.I,{source:ki,accessibilityLabel:c("ui.icons.subtract")}),children:c("playlist.removeFromList")})),t&&t.bookmarkAllowed&&n&&r.push((0,i.jsx)(fi.X,{className:"asset-menu__item--bookmark",copy:!0,asset:{asset:t}})),d&&n&&r.push((0,i.jsx)(N.$,{variant:"plain",onClick:o,icon:(0,i.jsx)(Ue.I,{source:yi,accessibilityLabel:c("ui.icons.edit")}),children:c("playlist.addComment")})),e&&n&&r.push((0,i.jsx)(N.$,{variant:"plain",onClick:()=>s(e,l),ariaLabel:c("bookmark.preview.changeVersion"),icon:(0,i.jsx)(Ue.I,{source:yi}),children:c("bookmark.preview.changeVersion")},"change-version"),(0,i.jsx)(N.$,{onClick:b,icon:(0,i.jsx)(Ue.I,{source:v()?Pi.A:Di.A}),className:v()?"text-attraction":"",title:c("dau.tools.bookmark.hoverTitle"),variant:"plain",children:v()?c("bookmark.removeSingle"):c("bookmark.add")})),e&&r.push((0,i.jsx)(Li,{data:e},"download-dau-page")),u(t)&&t.format!==Si.i_.ASSESSMENT&&t.format!==Si.i_.DIDACTIC_UNIT&&t.format!==Si.i_.SELFTEST&&r.push((0,i.jsx)(gi.o,{asset:t})),p(t)&&(null==t?void 0:t.format)!==Si.i_.FILE&&r.push((0,i.jsx)(mi.D,{asset:t})),r}),[n,t,d,e,u,p,a,c,o,b,v,s,l]);return(0,i.jsx)(vi.u,{elements:y(),ariaLabel:c("ui.menuAria")})};var Oi,Ri=n(18354);function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},zi.apply(null,arguments)}const Bi=e=>r.createElement("svg",zi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},e),Oi||(Oi=r.createElement("path",{fill:"#000",d:"M12.333 22c-5.523 0-10-4.477-10-10s4.477-10 10-10 10 4.477 10 10-4.477 10-10 10m-1-7v2h2v-2zm0-8v6h2V7z"})));var Ui=n(84050),Fi=(n(77582),function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n});const Vi=r.forwardRef(((e,t)=>{var{ariaLabel:n,label:r,prefixLabel:a,id:o,name:s,role:l,placeholder:c,onKeyUp:d,onChange:u,onKeyDown:p,onFocus:h,autoFocus:m,value:g,className:f="",inputGroupClassName:v="",help:b,error:y,disabled:x,data_cy:w=(r?"input"+r:"input"),minRows:A,maxRows:T,spellCheck:S="true",children:E,autoComplete:I}=e,C=Fi(e,["ariaLabel","label","prefixLabel","id","name","role","placeholder","onKeyUp","onChange","onKeyDown","onFocus","autoFocus","value","className","inputGroupClassName","help","error","disabled","data_cy","minRows","maxRows","spellCheck","children","autoComplete"]);const{t:_}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"input",id:o,children:[r&&!a&&(0,i.jsx)("label",{className:"input__label",htmlFor:s,children:r}),(0,i.jsxs)("div",{className:`input__inputGroup ${v}`,children:[r&&a&&(0,i.jsx)("label",{className:"input__prefix",htmlFor:s,children:r}),n&&(0,i.jsx)("label",{className:"sr-only",htmlFor:s,children:n}),E&&E,(0,i.jsx)(Ri.A,Object.assign({ref:t,role:l,name:s,id:s,className:`input__input ${f}`,onChange:u,onKeyUp:d,onKeyDown:p,onFocus:h,autoFocus:m,placeholder:c,"data-cy":w,value:g,disabled:x,minRows:A,maxRows:T,spellCheck:S,autoComplete:I},C))]}),y&&(0,i.jsxs)("div",{className:"text-textCritical input__helpText",children:[(0,i.jsx)(Ue.I,{source:Bi,accessibilityLabel:_("ui.icons.alertActive")}
2),y]}),b&&(0,i.jsxs)("div",{className:"input__helpText",children:[(0,i.jsx)(Ue.I,{source:Ui.A}),b]})]})}));var qi=n(35584),Hi={};Hi.styleTagTransform=q(),Hi.setAttributes=B(),Hi.insert=R().bind(null,"head"),Hi.domAPI=M(),Hi.insertStyleElement=F();P()(qi.A,Hi);qi.A&&qi.A.locals&&qi.A.locals;const Gi=({playlistEntry:e,onSaveComment:t,closeEditMode:n})=>{const[a,o]=(0,r.useState)({title:e.title,comment:e.comment||"",description:e.description||"",url:e.url||""}),{t:s}=(0,k.Bd)(),[l,c]=(0,r.useState)(!1),d=(0,r.useCallback)((e=>{o(Object.assign(Object.assign({},a),{[e.target.name]:e.target.value}))}),[a]),u=(0,r.useCallback)((n=>{n.preventDefault(),a.title?t(Object.assign(Object.assign({},e),a)):c(!0)}),[t,a,e]);return(0,i.jsx)("div",{className:"playlist-entry-edit "+(e.asset?"":"playlist-entry-edit--custom"),children:(0,i.jsxs)("form",{onSubmit:u,className:"playlist-entry-edit__form",children:[(0,i.jsxs)("div",{className:"playlist-entry-edit__form-inputs",children:[e.asset&&(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"resource-item__title text-textStrong",children:a.title}),(0,i.jsx)("p",{className:"resource-item__description",children:e.asset.book.bookTitle}),(0,i.jsx)("p",{className:"resource-item__description",children:e.asset.description})]}),e.dauPage&&(0,i.jsxs)("div",{children:[(0,i.jsx)("h2",{className:"resource-item__title text-textStrong",children:a.title}),(0,i.jsx)("p",{className:"resource-item__description",children:e.dauPage.book.bookTitle}),(0,i.jsx)("p",{className:"resource-item__description",children:(e.dauPage.isDoublePage?s("bookmark.preview.pages",{p1:e.dauPage.page,p2:parseInt(e.dauPage.page)+1}):s("bookmark.preview.page")+" "+e.dauPage.page)+" - "+s("bookmark.preview.version")+" "+("-1"===e.dauPage.versionId?s("dau.version.originalVersion"):e.dauPage.versionName)})]}),!e.asset&&!e.dauPage&&(0,i.jsx)(Ke.p,{label:s("playlist.entryForm.title.label"),placeholder:s("playlist.entryForm.title.placeholder"),onChange:d,onKeyDown:e=>e.stopPropagation(),value:a.title,name:"title",type:"text",autoFocus:!0,error:l&&{message:s("playlist.entryForm.required"),id:"playlist-title-error"},data_cy:"playlist-entry-title-input"}),!e.asset&&!e.dauPage&&(0,i.jsx)(Vi,{label:s("playlist.entryForm.description.label"),placeholder:s("playlist.entryForm.description.placeholder"),help:s("playlist.entryForm.description.help"),onChange:d,onKeyDown:e=>e.stopPropagation(),value:a.description,name:"description"}),(0,i.jsx)(Vi,{label:s("playlist.entryForm.comment.label"),placeholder:s("playlist.entryForm.comment.placeholder"),help:s("playlist.entryForm.comment.help"),onChange:d,value:a.comment,onKeyDown:e=>e.stopPropagation(),name:"comment",autoFocus:!(!e.asset&&!e.dauPage)}),!e.asset&&!e.dauPage&&(0,i.jsx)(Ke.p,{label:s("playlist.entryForm.url.label"),placeholder:s("playlist.entryForm.url.placeholder"),onChange:d,onKeyDown:e=>e.stopPropagation(),value:a.url,name:"url",type:"text"})]}),(0,i.jsxs)("div",{className:"playlist-entry-edit__form-buttons",children:[(0,i.jsx)(N.$,{variant:"plain",type:"button",onClick:n,children:s("ui.abort")}),(0,i.jsx)(N.$,{variant:"primary",type:"submit",data_cy:"save-button",children:s("ui.save")})]})]})})};var Ki,$i=n(89459);function Wi(){return Wi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Wi.apply(null,arguments)}const Xi=e=>r.createElement("svg",Wi({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ki||(Ki=r.createElement("path",{fill:"#111212",d:"m12 13.172 4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z"})));var Yi;function Ji(){return Ji=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ji.apply(null,arguments)}const Zi=e=>r.createElement("svg",Ji({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Yi||(Yi=r.createElement("path",{fill:"#111212",d:"m12 10.828-4.95 4.95-1.414-1.414L12 8l6.364 6.364-1.414 1.414z"}))),Qi=({children:e,type:t,isDisabled:n,link:r})=>{const{t:a}=(0,k.Bd)();return t!==Si.i_.LINK||n?(0,i.jsx)("div",{className:n?"resource-item--disabled ":"",children:e}):(0,i.jsxs)("a",{title:a("ui.linkTitle")+r,target:"_blank",href:(null==r?void 0:r.startsWith("http"))?r:"http://"+r,rel:"nofollow noreferrer",children:[" ",e]})},er=({playlistEntry:e,editable:t,index:n,playlistLength:a,onSaveComment:o,onRemovePlaylistEntry:s,navigate:c})=>{const[d,u]=(0,r.useState)(!1),p=(0,l.n)(),h=(0,J.Ay)(),{t:m}=(0,k.Bd)(),g=(0,r.useCallback)((t=>{t.stopPropagation(),s(e.id)}),[e,s]),f=(0,r.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),u(!0)}),[]),v=(0,r.useCallback)((e=>{o(e),u(!1)}),[o,u]);return(0,i.jsxs)("div",{className:"custom-playlist-entry playlist-entry",children:[!d&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Qi,{type:e.url?Si.i_.LINK:"",link:e.url?e.url:null,isDisabled:!p&&e.url,children:(0,i.jsx)($i.K,{title:e.title,format:"user-generated",description:e.description,note:e.comment,
2isOffline:!1,link:e.url?e.url:null,actions:(0,i.jsxs)(i.Fragment,{children:[t&&!h&&(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"plain",onClick:f,icon:(0,i.jsx)(Ue.I,{source:yi}),ariaLabel:m("playlist.showCommentAria")}),t&&(0,i.jsx)(Mi,{editable:t,removeThisEntry:g,onShowComment:f,entryId:e.id})]})})}),t&&p&&(0,i.jsxs)("div",{className:"reorder-buttons",children:[(0,i.jsxs)("button",{"aria-label":m("playlist.reorderUpAria"),disabled:0===n||null,className:`${0===n&&"reorder-buttons__button--disabled"}`,onClick:()=>c("up",e),children:[(0,i.jsx)("span",{className:"sr-only",children:m("playlist.reorderUpAria")}),(0,i.jsx)(Ue.I,{source:Zi})]}),(0,i.jsxs)("button",{"aria-label":m("playlist.reorderDownAria"),disabled:n===a-1||null,className:`${n===a-1&&"reorder-buttons__button--disabled"} rounded-t-none rounded-b`,onClick:()=>c("down",e),children:[(0,i.jsx)("span",{className:"sr-only",children:m("playlist.reorderDownAria")}),(0,i.jsx)(Ue.I,{source:Xi})]})]})]}),d&&p&&(0,i.jsx)(Gi,{closeEditMode:()=>u(!1),playlistEntry:e,onSaveComment:v})]})};var tr=n(94456),nr=n(56455);const ir=({children:e,className:t,link:n,isDisabled:r,actionsHidden:a,onClickHandler:o,preventDefault:s})=>{if(a||r)return(0,i.jsx)("div",{className:r?"resource-item--disabled":"",children:e});return(0,i.jsx)(ee.z,Object.assign({},n,{className:`${t||""}`,onClick:e=>{s&&e.preventDefault(),o()},children:e}))},rr=({showFeaturesMobile:e=!0,dauPage:t,menu:n,feature:a,comment:o,className:s,inBulkMode:l=!1,onChange:d,isChecked:u,withBooktitle:p=!0,value:m,creatorId:f,onOpenAsset:v,clickNotAllowedEntry:b,isAllowed:y=!0,licenseInfo:x=!1})=>{const{t:w}=(0,k.Bd)(),A=(0,J.Ay)(),{bookmarks:T}=(0,h.wn)(),[S,E]=(0,r.useState)(!0),[I,C]=(0,r.useState)(!1),_=(0,c.As)(),{downloading:j}=(0,g.yv)(),N=(0,Ei.A)(t.book.npNumber),L=(0,r.useCallback)((()=>{const e=t.isDoublePage?"&mode=double":"",n=f?`&u=${f}`:"";return(0,Qe.v)(t.book.npNumber,t.format,"?page="+t.page+"&version="+t.versionId+e+n+"&type=link")}),[t,f]),[P,D]=(0,r.useState)(!1),M=(0,tr.A)(t.book.npNumber);(0,r.useEffect)((()=>{let e=!0;return(async()=>{const t=await M();e&&D(t)})(),()=>{e=!1}}),[t,M]);const O=(0,r.useCallback)((()=>{if(t){const e=Ai(T,t.book.npNumber,t.versionId,t.page,t.isDoublePage);return e&&e.bookmarkId?e.bookmarkId:void 0}}),[T,t]),R=(0,r.useCallback)((async()=>{const e=await xe.db.mediaBookStructures.get({id:t.book.npNumber}),n=e?e.structure:null;ji(n,parseInt(t.page),t.isDoublePage).forEach((async e=>{var t;if(e.accessLockState&&e.accessLockState===nr.Jm.LOCKED&&C(!0),e.offlineAllowed&&e.accessLockState!==nr.Jm.LOCKED){await xe.db.storageRequests.get({"asset.id":e.id,state:g.iF.CACHED,user:null===(t=_.profile)||void 0===t?void 0:t.id})||E(!1)}}))}),[t,_]);(0,r.useEffect)((()=>{j||(E(!0),R())}),[j,R]),(0,r.useEffect)((()=>{R()}),[R]);return(0,i.jsx)(ir,{className:s,link:L(),isDisabled:P,actionsHidden:l,onClickHandler:()=>{if(v&&y){const e=t.book.npNumber,n=t.book.bookTitle,i=t.book.npNumber,r=t.format;v(e,n,i,r)}b&&!y&&b()},preventDefault:!y,children:(0,i.jsx)($i.K,{title:t.book.bookTitle,format:Si.i_.DAU_LINK,booktitle:p&&t.format?w("maxProduct."+(0,Qe.u)(t.format)):null,description:(t.isDoublePage?w("bookmark.preview.pages",{p1:t.page,p2:parseInt(t.page)+1}):w("bookmark.preview.page")+" "+t.page)+" - "+w("bookmark.preview.version")+" "+("-1"===t.versionId?w("dau.version.originalVersion"):t.versionName),note:o,isOffline:!!N&&S,badges:(0,i.jsxs)(i.Fragment,{children:[N&&S&&(0,i.jsx)(Dt.E,{type:"success",children:w("offline.offline")}),!y&&(0,i.jsx)(Dt.E,{type:"expired",className:"bg-surfaceWarning w-fit",children:w("license.noLicense")}),x&&t&&"uhbpage"===t.format&&(0,i.jsx)(Dt.E,{type:"plus",children:w("badge.uPlus")}),x&&t&&"daupage"===t.format&&(0,i.jsx)(Dt.E,{type:"plus",children:w("badge.dau")}),I&&(0,i.jsxs)(Dt.E,{type:"vip",children:[" ",w("badge.dauaccesslocked")," "]})]}),actions:(0,i.jsx)(i.Fragment,{children:!l&&(0,i.jsxs)(i.Fragment,{children:[(!A||e&&A)&&a,(!A||e&&A)&&!a&&(0,i.jsx)(fi.X,{asset:{dauPage:t,bookmarkId:m||O()}}),n]})}),inBulkMode:l,onChange:d,isChecked:u,value:m})})};var ar=n(59110);const or=e=>{if(e)return"MAXP-"+e.substring(5,11)};function sr(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-maxp-by-id",e],queryFn:async()=>(await n.get(`/product/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.augmented.failGetProduct")})}const lr=({isModalOpen:e,closeModal:t,maxProdId:n})=>{const{authenticated:a}=(0,c.As)(),{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(!1),[d,u]=(0,r.useState)(""),{refetch:p,data:h}=We(d,{hideToast:!0}),[m,g]=(0,r.useState)(!1),{mutateAsync:f}=$e(),{refetch:v}=sr(n,{hideToast:!0}),b=(0,r.useRef)(),y=()=>{t(),setTimeout((()=>{g(!1),l(!1),u("")}),200)};return(0,i.jsx)(Xe.y,{title:o("license.inputBoxTitle"),open:e,closeButton:!0,close:y,copy:(0,i.jsx)(i.Fragment,{children:a?s?(0,i.jsx)(nt,{successModal:m,compositLicenseCheck:
2h,activateLicense:async()=>{try{await f({licenseKey:d}),v&&v(),b.current.postMessage({message:"reload"}),g(!0)}catch(e){console.log("error",e)}},close:y}):(0,i.jsxs)("div",{className:"license-card",children:[(0,i.jsx)("h2",{className:"license-card__title",children:o("license.inputBoxTitle")}),(0,i.jsx)("p",{className:"license-card__text",children:o("license.inputBoxText")}),(0,i.jsx)(cn,{setLicenseView:l,refetch:p,licenseValue:d,setLicenseValue:u})]}):(0,i.jsx)(ot,{title:o("welcome.license.teaserTitle"),text:o("welcome.license.teaserText"),cta:o("welcome.license.teaserCta"),variant:"secondary"})})})},cr=({removePlaylistEntry:e,onSaveComment:t,playlistEntry:n,index:a,playlistLength:o,navigate:s,editable:c=!1,openVersionChange:d,creatorId:u})=>{const[p,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(!1),f=(0,l.n)(),v=(0,J.Ay)(),{t:b}=(0,k.Bd)(),{warning:y}=(0,A.e)(),x=(0,r.useCallback)((t=>{t.stopPropagation(),e(n.id)}),[n,e]),w=(0,r.useCallback)((e=>{e.preventDefault(),e.stopPropagation(),h(!0)}),[]),T=(0,r.useCallback)((e=>{t(e),h(!1)}),[t]),S=(0,r.useCallback)((()=>v?(0,i.jsx)(i.Fragment,{}):c?(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"plain",onClick:w,icon:(0,i.jsx)(Ue.I,{source:yi,accessibilityLabel:b("ui.icons.edit")})}):null),[v,c,w,b]),E=e=>{g(e),e&&y({copy:b("license.warnings.noLicense")})};return(0,i.jsxs)("div",{className:"playlist-entry",children:[!p&&(0,i.jsxs)(i.Fragment,{children:[(null==n?void 0:n.asset)&&(0,i.jsx)(ar.d,{menu:(0,i.jsx)(Mi,{asset:n.asset,editable:c,removeThisEntry:x,onShowComment:w,entryId:n.id}),asset:Object.assign(Object.assign({},n.asset),{title:n.title}),comment:n.comment,feature:S(),isAllowed:n.allowed,clickNotAllowedEntry:()=>E(!0),licenseInfo:!0}),(null==n?void 0:n.dauPage)&&(0,i.jsx)(rr,{menu:(0,i.jsx)(Mi,{dauPage:n.dauPage,editable:c,removeThisEntry:x,onShowComment:w,openVersionChange:d,entryId:n.id}),dauPage:n.dauPage,comment:n.comment,feature:S(),creatorId:u,isAllowed:n.allowed,clickNotAllowedEntry:()=>E(!0),licenseInfo:!0}),!n.allowed&&(0,i.jsx)(lr,{maxProdId:(null==n?void 0:n.asset)?n.asset.addedBy:n.dauPage.book.npNumber,isModalOpen:m,closeModal:()=>E(!1)}),c&&f&&(0,i.jsxs)("div",{className:"reorder-buttons",children:[(0,i.jsxs)("button",{"aria-label":b("playlist.reorderUpAria"),"data-cy":"reorder-up",disabled:0===a||null,className:`${0===a&&"reorder-buttons__button--disabled"}`,onClick:()=>s("up",n),children:[(0,i.jsx)("span",{className:"sr-only",children:b("playlist.reorderUpAria")}),(0,i.jsx)(Ue.I,{source:Zi})]}),(0,i.jsxs)("button",{"aria-label":b("playlist.reorderDownAria"),"data-cy":"reorder-down",disabled:a===o-1||null,className:`${a===o-1&&"reorder-buttons__button--disabled"} rounded-t-none rounded-b`,onClick:()=>s("down",n),children:[(0,i.jsx)("span",{className:"sr-only",children:b("playlist.reorderDownAria")}),(0,i.jsx)(Ue.I,{source:Xi})]})]})]}),p&&(0,i.jsx)(Gi,{playlistEntry:n,onSaveComment:T,closeEditMode:()=>h(!1)})]})};var dr=n(10027),ur={};ur.styleTagTransform=q(),ur.setAttributes=B(),ur.insert=R().bind(null,"head"),ur.domAPI=M(),ur.insertStyleElement=F();P()(dr.A,ur);dr.A&&dr.A.locals&&dr.A.locals;const pr=({entries:e,onLayoutChange:t,editable:n,onRemovePlaylist:r,onSaveComment:a,navigate:o,openVersionChange:s,creatorId:l})=>(0,i.jsx)(ui,{items:e,onChange:t,renderItem:(t,c)=>(0,i.jsxs)(ui.Item,{id:t.id,children:[t&&!t.asset&&!t.dauPage&&(0,i.jsx)(er,{editable:n,playlistEntry:t,onRemovePlaylistEntry:r,onSaveComment:a,navigate:e=>o(e,c),index:c,playlistLength:e.length}),t&&(t.asset||t.dauPage)&&(0,i.jsx)(cr,{editable:n,playlistEntry:t,removePlaylistEntry:r,onSaveComment:a,navigate:e=>o(e,c),index:c,playlistLength:e.length,openVersionChange:s,creatorId:l})]})});var hr=n(67443),mr=n(71725),gr={};gr.styleTagTransform=q(),gr.setAttributes=B(),gr.insert=R().bind(null,"head"),gr.domAPI=M(),gr.insertStyleElement=F();P()(mr.A,gr);mr.A&&mr.A.locals&&mr.A.locals;const fr=({title:e,className:t="",body:n,link:r,linkTo:a,customAction:o,dataCy:s})=>(0,i.jsxs)("div",{className:`empty-list-teaser ${t}`,"data-cy":s,children:[(0,i.jsx)("div",{className:"empty-list-teaser__header",children:(0,i.jsx)("p",{className:"heading-4",children:e})}),(0,i.jsx)("div",{className:"empty-list-teaser__body",children:n}),(r||o)&&(0,i.jsxs)("div",{className:"empty-list-teaser__action",children:[r&&(0,i.jsx)(ee.z,{to:a,className:"button button--primary button--lg empty-list-teaser__link",children:r}),o&&o]})]}),vr=({editable:e,onSetCustomContent:t})=>{const{t:n}=(0,k.Bd)(),r=(0,l.n)();return(0,i.jsx)(fr,{title:n("playlist.emptyListTitle"),dataCy:"empty-playlist-teaser",body:r?(0,i.jsxs)("p",{children:[n("playlist.emptyListLink.0"),(0,i.jsx)(ee.z,{to:te.J.usercontent.bookmark,children:n("playlist.emptyListLink.1")}),n("playlist.emptyListLink.2"),(0,i.jsx)(ee.z,{to:te.J.discover,children:n("playlist.emptyListLink.3")})]}):(0,i.jsx)("p",{children:n("playlist.emptyListOffline")}),customAction:(()=>
2{if(e&&r)return(0,i.jsx)(N.$,{"data-cy":"empty-playlist-teaser-button",variant:"primary",size:"lg",onClick:t,icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:n("playlist.addFirstEntry")})})()})};var br=n(32802),yr=n(37365),xr={};xr.styleTagTransform=q(),xr.setAttributes=B(),xr.insert=R().bind(null,"head"),xr.domAPI=M(),xr.insertStyleElement=F();P()(yr.A,xr);yr.A&&yr.A.locals&&yr.A.locals;const wr=({items:e,defaultValue:t,onValueChange:n,ariaLabel:r})=>(0,i.jsx)("form",{children:(0,i.jsx)(br.bL,{className:"radiogroup",defaultValue:t,onValueChange:n,"aria-label":r,children:e.map(((e,t)=>(0,i.jsxs)("div",{className:"radiogroup__item-wrapper",children:[(0,i.jsx)(br.q7,{className:"radiogroup__item",value:e.value,id:e.value,children:(0,i.jsx)(br.C1,{className:"radiogroup__indicator"})}),(0,i.jsx)("label",{className:"radiogroup__label",htmlFor:e.value,children:e.label})]},t)))})});var kr=n(71903);const Ar=({isOpen:e,setIsOpen:t,version:n,bookmarkId:a,playlistEntryId:o,changePlaylistDauVerion:s})=>{const{t:l}=(0,k.Bd)(),{refetch:c,data:u}=(0,kr.l)(null==n?void 0:n.book.npNumber,""),[p,h]=(0,r.useState)(),{mutateAsync:m,isPending:g}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({bookmark:e})=>(await t.put("/bookmarks/dau",e)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.bookmark.addedFailure")})}(),{warning:f}=(0,A.e)();(0,r.useEffect)((()=>{n&&h(n)}),[n]);(0,r.useEffect)((()=>{e&&n&&c()}),[c,e,n]);const v=e=>e===(null==n?void 0:n.versionId)?", "+l("dau.version.change.currentVersion"):"";return(0,i.jsx)(Xe.y,{open:e,asPrompt:!0,close:()=>t(!1),title:l("dau.version.change.title"),copy:(0,i.jsx)("div",{children:(0,i.jsx)(wr,{items:(()=>{const e=[];return null==u||u.content.forEach((t=>{e.push({label:t.versionName+" "+fn(t.modified)+v(t.versionId),value:t.versionId})})),e.push({label:l("dau.version.originalVersion")+v("-1"),value:"-1"}),e})(),onValueChange:e=>{const t=null==u?void 0:u.content.find((t=>t.versionId===e)),n=t?t.versionName:l("dau.version.originalVersion");h({versionId:e,versionName:n})},defaultValue:null==p?void 0:p.versionId,ariaLabel:l("dau.version.change.radioAria")})}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:async()=>{try{a?await m({bookmark:{bookmarkId:a,versionId:p.versionId,versionName:p.versionName,page:n.page,isDoublePage:n.isDoublePage}}):await s(o,{versionId:p.versionId,versionName:p.versionName,page:n.page,isDoublePage:n.isDoublePage}),t(!1)}catch(e){f({copy:e})}},loading:g,children:l("dau.version.change.save")})]})})},Tr=({playlist:e,editable:t=!1,onPlaylistChange:n,onSetCustomContent:a})=>{const[o,s]=(0,r.useState)(),[l,d]=(0,r.useState)(),[u,p]=(0,r.useState)(),[h,m]=(0,r.useState)(),g=(0,c.As)(),f=(0,r.useCallback)((async t=>{try{await n(t)}catch(n){s(t),setTimeout((()=>{s(e.entries)}),100)}}),[n,e]);(0,r.useEffect)((()=>{s(e.entries)}),[e]);const v=(0,r.useCallback)((async e=>{const t=[...o],i=o.findIndex((t=>t.id===e)),r=t[i];t.splice(i,1),await n(t),s(t),(0,it.r)(Object.assign(Object.assign({},(e=>e.dauPage||e.asset?{productId:e.dauPage?e.dauPage.book.npNumber:e.asset.book.isbn,productName:e.dauPage?e.dauPage.book.bookTitle:e.asset.title,contentId:e.dauPage?e.dauPage.book.npNumber:e.asset.id,format:e.dauPage?e.dauPage.format:e.asset.format}:{productId:"CustomEntry",productName:e.title,contentId:"CustomEntry",format:"CustomEntry"})(r)),{eventType:"removeFromPlaylist"}))}),[n,o]),b=(0,r.useCallback)((async e=>{const t=o.map((e=>Object.assign({},e)));t.forEach((t=>{t.id===e.id&&(t.comment=e.comment,t.title=e.title,t.description=e.description,t.url=e.url)})),await n(t)}),[n,o]),y=(0,r.useCallback)((async(e,t)=>{const i=o.map((e=>Object.assign({},e)));i.forEach((n=>{n.id===e&&n.dauPage&&(n.dauPage.isDoublePage=t.isDoublePage,n.dauPage.page=t.page,n.dauPage.versionId=t.versionId,n.dauPage.versionName=t.versionName)})),await n(i)}),[n,o]);return(0,i.jsxs)("div",{className:"playlist-content",children:[o&&o.length>0&&(0,i.jsx)(pr,{onLayoutChange:f,onSaveComment:b,onRemovePlaylist:v,editable:t,entries:o,navigate:async(t,i)=>{let r=i;r="down"===t?r+1:r-1;const a=(0,ii.be)(e.entries,i,r);await n(a)},openVersionChange:(e,t)=>
2{m(t),p(e),d(!0)},creatorId:g.profile.id===e.creator.userId?void 0:e.creator.userId}),o&&0===o.length&&t&&(0,i.jsx)(vr,{editable:t,onSetCustomContent:a}),(0,i.jsx)(Ar,{isOpen:l,setIsOpen:()=>{d(!1)},version:u,playlistEntryId:h,changePlaylistDauVerion:y})]})};var Sr,Er=n(36633);function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ir.apply(null,arguments)}const Cr=e=>r.createElement("svg",Ir({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Sr||(Sr=r.createElement("path",{fill:"#111212",d:"M7 4V2h10v2h5v2h-2v15a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6H2V4zM6 6v14h12V6zm3 3h2v8H9zm4 0h2v8h-2z"})));var _r;function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},jr.apply(null,arguments)}const Nr=e=>r.createElement("svg",jr({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),_r||(_r=r.createElement("path",{fill:"#111212",d:"m13.576 17.271-5.11-2.787a3.5 3.5 0 1 1 0-4.968l5.11-2.787a3.5 3.5 0 1 1 .958 1.755l-5.11 2.787c.102.48.102.977 0 1.458l5.11 2.787a3.5 3.5 0 1 1-.958 1.755"})));const Lr=({entries:e,buttonText:t,buttonVariant:n})=>{const{t:a}=(0,k.Bd)(),{success:o}=(0,A.e)(),{profile:s}=(0,c.As)(),u=(0,g.yv)(),[p,h]=(0,r.useState)([]),[m,f]=(0,r.useState)([]),[v,b]=(0,r.useState)({message:"",showAlert:!1}),{refetch:y}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-dau-by-np",e],queryFn:async()=>{const t=e.map((async e=>(await n.get(`/digital/${e}`)).data));return Promise.allSettled(t)},retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.augmented.failGetProduct")})}(p),{refetch:x}=function(e,t){var n;const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,l.n)(),o=(0,c.As)(),s=(0,T.I)({queryKey:["get-asset-by-assetId",e,null===(n=null==o?void 0:o.profile)||void 0===n?void 0:n.id],queryFn:async()=>{if(a){const t=e.map((async e=>(await i.get(`/asset/${e}/daupdf`)).data));return Promise.allSettled(t)}if(o&&o.profile&&o.profile.id){const t=e.map((async e=>(await xe.db.storageRequests.where({"asset.id":e,user:o.profile.id})).first())),n=Promise.allSettled(t);if(n)return n;throw{message:r("error.asset.failGetAccess"),response:{data:r("error.asset.failGetAccess"),status:403}}}},retry:!1,enabled:!1});return(0,S.V)(s,t||{message:r("error.asset.failGetAsset")})}(p);(0,r.useEffect)((()=>{v.showAlert&&o({copy:v.message})}),[v,o,a]),(0,r.useEffect)((()=>{let e=!1;y().then((t=>{if(t.data){const n=[],i=[];t.data.forEach((t=>{var r;const o=null===(r=t.value)||void 0===r?void 0:r.book.npNumber;t.value&&o?(n.push(o),i.push(t.value)):"rejected"!==t.status||v.message.includes(a("playlist.containsNotDownloadableAsset"))||e||(e=!0,b({message:v.message+a("playlist.containsNotDownloadableAsset"),showAlert:!0}))})),m.forEach((e=>{n.includes(e.npNumber)&&((e,t)=>{const n=t.find((t=>t.book.npNumber===e.npNumber)),i=_i(n,e.page,e.isDoublePage);i.length>0&&u.downloadAssets(i)})(e,i)}))}})),x().then((t=>{null==t||t.data.forEach((t=>{t.value?(async e=>{void 0===await xe.db.storageRequests.get({"asset.id":e.book.npNumber,state:g.iF.CACHED,user:null==s?void 0:s.id})&&u.downloadDau(Object.assign(Object.assign({},e),{format:Si.i_.PDF,bookFormat:e.id.startsWith("NP200")?"uhbpage":"daupage"}))})(t.value):"rejected"!==t.status||v.message.includes(a("playlist.containsNotDownloadableAsset"))||e||(e=!0,b({message:v.message+a("playlist.containsNotDownloadableAsset"),showAlert:!0}))}))}))}),[p,y,x,a,m]);const w=(0,r.useCallback)(((e,t,n)=>{b(n),h(t),f(e)}),[]),E=(0,r.useCallback)((()=>!(!window.MediaSource||!(null===MediaSource||void 0===MediaSource?void 0:MediaSource.isTypeSupported))),[]),I=(0,r.useCallback)((()=>{(0,it.r)({eventType:"cachePlaylist"});const t=e.filter((e=>{var t,n;return(null===(t=e.asset)||void 0===t?void 0:t.format)===Si.i_.AUDIO||(null===(n=e.asset)||void 0===n?void 0:n.format)===Si.i_.VIDEO})),n=e.filter((e=>{var t;return(null===(t=e.asset)||void 0===t?void 0:t.format)===Si.i_.LINK||null===e.asset&&"url"in e&&null!==e.url})),i=e.filter((e=>{var t,n;return(null===(t=e.asset)||void 0===t?void 0:t.accessLockState)===nr.Jm.LOCKED||!1===(null===(n=e.asset)||void 0===n?void 0:n.offlineAllowed)})),r=[],o=new Set;e.forEach((e=>{e.dauPage&&(r.push({page:parseInt(e.dauPage.page),isDoublePage:e.dauPage.isDoublePage,npNumber:e.dauPage.book.npNumber}),o.add(e.dauPage.book.npNumber))}));let s="",l=!1;t.length>0&&!E()&&(s+=a("playlist.containsAudioVideo")+" ",l=!0),(n.length>0||i.length>0)&&(s+=a("playlist.containsNotDownloadableAsset"),l=!0),w(r,[...o],{message:s,showAlert:l}),u.downloadAssets(e.map((e=>e.asset)))}),[e,E,w,u,a]);return(0,i.jsx)(N.$,{variant:n,onClick:I,icon:(0,i.jsx)(Ue.I,{source:Ni.A}),offlineDisabled:!0,children:t})},Pr=({privilige:e,isOffline:t,onDelete:n,onShare:a,onDeleteReceivedPlaylist:o,onAddCustomContent:s,onCopyReceivedPlaylist:l,playlist:c,data_cy:d})=>{const{t:u}=(0,k.Bd)(),p=(0,r.useCallback)((e=>{e.preventDefault(),n()}),[n]),h=(0,r.useCallback)((e=>{e.preventDefault(),o()}),[o]),m=(0,r.useCallback)((e=>{e.preventDefault(),setTimeout((()=>{a()}),100)}),[a]),g=(0,r.useCallback)((e=>{e.preventDefault(),setTimeout((()=>{s()}),100)}),[s]),f=(0,r.useCallback)((e=>{e.preventDefault(),l()}),[l]),v=(0,r.useCallback)((()=>{const r=[];return"own"===e&&(n&&r.push((0,i.jsx)(N.$,{variant:"plain",modifier:"destructive","data-cy":"playlist-menu-delete",onClick:p,icon:(0,i.jsx)(Ue.I,{source:Cr}),children:u("playlist.menu.delete")})),s&&r.push((0,i.jsx)(N.$,{variant:"plain",onClick:g,icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:u("playlist.menu.customContent")})),a&&r.push((0,i.jsx)(N.$,{variant:"plain","data-cy":"playlist-menu-share",onClick:m,icon:(0,i.jsx)(Ue.I,{source:Nr}),children:u("playlist.menu.share")}))),"read"===e&&o&&r.push((0,i.jsx)(N.$,{variant:"plain",modifier:"destructive",onClick:h,icon:(0,i.jsx)(Ue.I,{source:Cr}),children:u("playlist.menu.remove")})),"read"===e&&l&&r.push((0,i.jsx)(N.$,{variant:"plain","data-cy":"playlist-copy-received",onClick:f,icon:(0,i.jsx)(Ue.I,{source:Qn}),children:u("playlist.menu.copy")})),t||r.push((0,i.jsx)(Lr,{entries:null==c?void 0:c.entries,buttonText:u("playlist.menu.storeOffline"),buttonVariant:"plain"})),r}),[e,t,n,p,g,u,m,a,s,h,o,f,l,c]);return(0,i.jsx)(vi.u,{data_cy:d,elements:v(),ariaLabel:u("playlist.menu.ariaLabel")})},Dr=async(e,t,n)=>{if(e&&e.playlist&&e.playlist.entries){for(const i of e.playlist.entries){if(i.asset){if(i.asset.format===Si.i_.LINK||!(null==t?void 0:t.find((e=>i.asset.id===e.asset.id))))return!1}else if(i.dauPage){if(!(null==t?void 0:t.find((e=>e.asset.isDau&&i.dauPage.book.npNumber===e.asset.id))))return!1;const e=await xe.db.mediaBookStructures.get({id:i.dauPage.book.npNumber}),r=e&&e.structure?e.structure:null;if(r){const e=ji(r,parseInt(i.dauPage.page),i.dauPage.isDoublePage);for(const t of e)if(t.offlineAllowed&&t.accessLockState!==nr.Jm.LOCKED){if(!await xe.db.storageRequests.get({"asset.id":t.id,state:g.iF.CACHED,user:n}))return!1}}}if(i.url)return!1}return 0!==e.playlist.entries.length}},Mr=({list:e,onSetPlaylist:t,isEditable:n,onSetIsOpen:a,deleteReceivedList:o,onPlaylistCopyOrDelete:s,copyReceivedList:l,renameList:d,deleteList:u})=>{const[p,h]=(0,r.useState)(!1),[m,f]=(0,r.useState)(!0),v=(0,J.Ay)(),{t:b}=(0,k.Bd)(),y=(0,c.As)(),x=(0,fe.m)(),{storedAssets:w}=(0,g.yv)(),A=(0,r.useCallback)((async n=>{await d({playlist:Object.assign(Object.assign({},e.playlist),{title:n})}),t(Object.assign(Object.assign({},e),{playlist:Object.assign(Object.assign({},e.playlist),{title:n})}
2))}),[e,d,t]),T=(0,r.useCallback)((async()=>{await u({id:e.playlist.id}),x(te.J.playlist.index)}),[e,u,x]),S=(0,r.useCallback)((async()=>{await o({id:e.sharingInfos[0].shareId}),s()}),[e,o,s]),E=(0,r.useCallback)((async()=>{await l(),s()}),[l,s]),I=(0,r.useCallback)((async()=>{var t;f(await Dr(e,w,null===(t=y.profile)||void 0===t?void 0:t.id))}),[e,w,y]);return(0,r.useEffect)((()=>{f(!0),I()}),[I]),(0,i.jsxs)("div",{className:"playlist-details__header",children:[!p&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(Q,{title:null==e?void 0:e.playlist.title,withActions:!0,children:[n&&(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"plain",onClick:()=>h(!0),icon:(0,i.jsx)(Ue.I,{source:yi}),ariaLabel:b("playlist.editListNameAria"),data_cy:"rename-playlist"}),n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pr,{onDelete:T,privilige:null==e?void 0:e.highestPrivilege,isOffline:m,onShare:v?()=>a(!0):null,data_cy:"playlist-header-dropdown",playlist:null==e?void 0:e.playlist}),(0,i.jsx)(N.$,{offlineDisabled:!0,onClick:()=>a(!0),icon:(0,i.jsx)(Ue.I,{source:Nr}),variant:"primary",data_cy:"share-playlist",children:b("playlist.shareButton")})]}):(0,i.jsx)(i.Fragment,{children:y.authenticated&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pr,{onDeleteReceivedPlaylist:S,privilige:null==e?void 0:e.highestPrivilege,isOffline:!1,data_cy:"playlist-header-dropdown",playlist:null==e?void 0:e.playlist}),(0,i.jsx)(N.$,{offlineDisabled:!0,onClick:E,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:Qn}),"data-cy":"playlist-copy-button",children:b("playlist.copyPlaylist")})]})})]})}),p&&(0,i.jsx)(Er.R,{className:"playlist-details__title-edit",title:e.playlist.title,onSetEditMode:h,onAbortTitleChange:()=>h(!1),onSavePlaylist:A}),e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"playlist-details__author",children:b("playlist.author")+" "+((null===(C=e.playlist.creator)||void 0===C?void 0:C.displayName)?null===(_=e.playlist.creator)||void 0===_?void 0:_.displayName:b("playlist.anonymsAuthor"))}),(0,i.jsxs)("p",{className:"playlist-details__creation",children:[b("playlist.creationDate",{date:gn(e.playlist.creationTimestamp)})," ",b("playlist.modified",{date:gn(e.playlist.modified)})]})]})]});var C,_},Or=({onCopyPlaylist:e,onHideTeaser:t,playlistId:n})=>{const{t:r}=(0,k.Bd)(),a=i=>{const r=localStorage.getItem("playlistTeaser"),a=r?r.split(","):[];a.push(n),localStorage.setItem("playlistTeaser",a.toString()),i?e():t()};return(0,i.jsx)($n.w,{className:"mb-6",copy:r("playlist.editInfoBox.copy"),onClose:()=>a(!1),optIn:()=>a(!0),optInText:r("playlist.editInfoBox.button"),optInIcon:(0,i.jsx)(Ue.I,{source:Qn})})};var Rr=n(84055),zr=n(30384),Br={};Br.styleTagTransform=q(),Br.setAttributes=B(),Br.insert=R().bind(null,"head"),Br.domAPI=M(),Br.insertStyleElement=F();P()(zr.A,Br);zr.A&&zr.A.locals&&zr.A.locals;const Ur=e=>({targetId:e.targetId,targetTitle:e.targetTitle,targetType:e.targetType,event:e.interactionCode,when:Date.now(),productId:e.productId||"",targetDetail:e.targetDetail,targetBookDescription:e.targetBookDescription,alternativeISBNs:e.alternativeISBNs,coverPath:e.coverPath||""}),Fr=async e=>{try{await xe.db.lastInteractions.put(e);const t=await xe.db.lastInteractions.orderBy("when").toArray();if(t.length>3){const e=t[0];await xe.db.lastInteractions.delete(e.targetId),console.log("remove",e)}}catch(e){console.error("Failed to store last interaction in Dexie:",e)}},Vr=()=>{var e,t;const{profile:n}=(0,c.As)(),{id:a}=(0,be.g)(),{t:o}=(0,k.Bd)(),s=(0,fe.m)();Oe(o("metaTitle.lists"));const{success:u}=(0,A.e)(),{refetchPlaylists:p,playlists:h,reorderPlaylist:m}=(0,x.W)(),{refetch:g,data:f,isInitialLoading:v,error:b}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-playlist-by-id",e],queryFn:async()=>(await n.get(`playlists/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.failRemoveReceived")})}(a,{hideToast:!0}),{refetch:y,data:E,isInitialLoading:I,error:C}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-shared-playlist-by-id",e],queryFn:async()=>(await n.get(`playlists/shared/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.playlistNotFound")})}(a,{hideToast:!0}),{mutateAsync:_}=qn(),{mutateAsync:j}=(0,Hn.F)(),{mutateAsync:L}=(0,Un.V)({message:o("error.playlist.failRename")}),[P,D]=(0,r.useState)(""),{mutateAsync:M}=(0,Un.V)({message:P}),{mutateAsync:O}=Fn({hideToast:!0}),{mutateAsync:R}=Vn(),[z,B]=(0,r.useState)(),[U,F]=(0,r.useState)(null==z?void 0:z.sharingInfos),[V,q]=(0,r.useState)(!1),[H,G]=(0,r.useState)(!1),[K,$]=(0,r.useState)(!1),[W,X]=(0,r.useState)(!1),Y=(0,c.As)(),J=(0,Re.V)(),Z=(0,l.n)(),ne=(null==z?void 0:z.playlist.creator.userId)===(null==n?void 0:n.id);f&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Listenbearbeitung"}}
2)),(0,r.useEffect)((()=>{if(J.get("shared")){const e=localStorage.getItem("playlistTeaser");(e?e.split(","):[]).find((e=>e===a))?$(!1):$(!0)}}),[J,a]);const ie=(0,r.useCallback)((()=>{J.get("shared")?y():g()}),[Y,g,y,J]);(0,r.useEffect)((()=>{Z?ie():h&&(J.get("shared")?B(h.filter((e=>{var t;return(null===(t=e.sharingInfos[0])||void 0===t?void 0:t.shareId)===a}))[0]):B(h.filter((e=>e.playlist.id===a))[0]))}),[Y,Z,h,a,ie,J]),(0,r.useEffect)((()=>{if(h&&E){-1===h.findIndex((e=>"read"===e.highestPrivilege&&e.playlist.title===E.playlist.title))&&"own"!==E.highestPrivilege&&Y.authenticated&&u({copy:o("playlist.addedReceived"),id:"addedRecheived"}),B(E),F(E.sharingInfos)}else E&&(B(E),F(E.sharingInfos));f&&(B(f),F(f.sharingInfos))}),[Y.authenticated,E,B,f,h,u,o]),(0,r.useEffect)((()=>{if(z){const e={targetId:J.get("shared")?z.sharingInfos[0].shareId:z.playlist.id,targetTitle:z.playlist.title,targetType:J.get("shared")?et.yK.SHARED_PLAYLIST:et.yK.PLAYLIST,interactionCode:et.w2.OPENED};Y.authenticated?O({request:e}):e.targetType===et.yK.SHARED_PLAYLIST&&Fr(Ur(e))}}),[z,Y,O,J]);const re=(0,r.useCallback)((async e=>{D(o("error.playlist.failModify")),await M({playlist:Object.assign(Object.assign({},z.playlist),{entries:e})}),m(Object.assign(Object.assign({},z),{playlist:Object.assign(Object.assign({},z.playlist),{entries:e})}))}),[M,z,m,o]),ae=(0,r.useCallback)((()=>{g()}),[g]),{refetch:oe}=(0,w.s)();(0,r.useEffect)((()=>{oe.current=ae}),[oe,ae]);const se=(0,r.useCallback)((async e=>{D(o("error.playlist.failAddEntry")),await M({playlist:Object.assign(Object.assign({},z.playlist),{entries:[Object.assign(Object.assign({},e),{id:(0,Bn.A)()}),...z.playlist.entries]})}),""===e.id&&(0,it.r)({productId:"CustomEntry",productName:e.title,contentId:"CustomEntry",format:"CustomEntry",eventType:"addToPlaylist"}),G(!1),ie()}),[z,M,ie,o]),le=async()=>{Y.authInitialized&&!Y.authenticated?X(!0):(await R({shareId:z.sharingInfos[0].shareId}),p(),u({copy:o("playlist.copySuccess")}),s(te.J.playlist.index))};if((0,r.useEffect)((()=>()=>{p()}),[p]),b||C)return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:o("playlist.notFoundTitle")}),(0,i.jsx)(ee.z,{className:"text-textLink",to:te.J.playlist.index+"?type=shared",children:o("playlist.backToOverview")})]});return(0,i.jsxs)(ft.o,{inProgress:v||I,children:[(0,i.jsx)(pe,{children:!b&&!C&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Mr,{onSetIsOpen:e=>{q(e),(0,it.r)({eventType:"sharePlaylist"})},onSetPlaylist:B,list:z,isEditable:ne,deleteReceivedList:_,onPlaylistCopyOrDelete:()=>{p(),s(te.J.playlist.index)},copyReceivedList:le,renameList:L,deleteList:j}),K&&(0,i.jsx)(Or,{onCopyPlaylist:le,onHideTeaser:()=>$(!1),playlistId:a}),(0,i.jsxs)("div",{className:"playlist-details__list",children:[ne&&!H&&(null===(t=null===(e=null==z?void 0:z.playlist)||void 0===e?void 0:e.entries)||void 0===t?void 0:t.length)>0&&(0,i.jsx)("div",{className:"playlist-details__list-actions",children:(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"secondary",onClick:()=>G(!0),icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:o("playlist.addEntry")})}),H&&(0,i.jsx)(Gi,{playlistEntry:{title:"",id:""},closeEditMode:()=>G(!1),onSaveComment:se}),z&&!v&&!I&&(0,i.jsx)(Tr,{onSetCustomContent:()=>G(!0),editable:"own"===(null==z?void 0:z.highestPrivilege),onPlaylistChange:re,playlist:z.playlist})]})]})}),V&&(0,i.jsx)(ti,{type:J.get("type"),playlist:z,shareInfo:U,onClose:()=>q(!1),onShareLinkDelete:()=>F([]),onSetShareInfo:e=>F(e)}),(0,i.jsx)(Rr.M,{open:W,onClose:()=>X(!1)})]})};var qr=n(3452),Hr={};Hr.styleTagTransform=q(),Hr.setAttributes=B(),Hr.insert=R().bind(null,"head"),Hr.domAPI=M(),Hr.insertStyleElement=F();P()(qr.A,Hr);qr.A&&qr.A.locals&&qr.A.locals;var Gr=n(2236);const Kr=()=>{const{i18n:e}=(0,k.Bd)(),t=(0,d.q)(),n=(0,c.As)(),{t:a}=(0,k.Bd)(),o=(0,Gr.U)(),s=(0,r.useCallback)((n=>{t.defaults.headers["accept-language"]=n.value,e.changeLanguage(n.value)}),[t,e]),l=(0,r.useCallback)((()=>{const e=[{label:a("lang.de"),value:"de",data_cy:"langDE",lang:"de"},{label:a("lang.en"),value:"en",data_cy:"langEN",lang:"en"},{label:a("lang.es"),value:"es",data_cy:"langES",lang:"es"},{label:a("lang.fr"),value:"fr",data_cy:"langFR",lang:"fr"},{label:a("lang.it"),value:"it",data_cy:"langIT",lang:"it"}];
2return n.authenticated&&-1!==n.authorization.realmAccessRoles.indexOf("eks_content_admin")&&e.push({label:"EKS",value:"eks",data_cy:"langEKS",lang:"de"}),e}),[n,a]),u=(0,r.useCallback)((()=>{const e=l().find((e=>e.value===o()));return null==e?void 0:e.label}),[o,l]);return(0,i.jsx)(vi.u,{data_cy:"language-switcher",items:l(),label:u(),onSelect:s,asSelect:!0,offlineDisabled:!1,markSelected:!0,selected:e.language,buttonType:"plain",contentClass:"z-20"})},$r=({text:e,options:t,variant:n="primary",icon:a,size:o,id:s,className:l})=>{const d=(0,c.As)(),u=(0,Gr.U)(),p=(0,r.useCallback)((()=>{const e=(null==t?void 0:t.redirectUri)?t.redirectUri:window.location.origin+window.location.pathname+window.location.search;d.changePassword({locale:u(),redirectUri:e,extraQueryParams:null==t?void 0:t.action}).catch((e=>{console.log("Error login",e)}))}),[d,u,null==t?void 0:t.redirectUri,null==t?void 0:t.action]);return(0,i.jsx)(N.$,{className:l,id:s,onClick:p,variant:n,icon:a,size:o,offlineDisabled:!0,children:e})};var Wr;!function(e){e.MEMBER="memberships",e.COLLABORATOR="collaborations"}(Wr||(Wr={}));const Xr=({isOpen:e,setIsOpen:t,deleteApproved:n,text:r})=>{const{t:a}=(0,k.Bd)();return(0,i.jsx)(Xe.y,{open:e,asPrompt:!0,asPortal:!1,close:()=>t(!1),title:a("course.menu.deleteModal.warningTitle"),copy:r,contentClassName:"max-w-md",actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>t(!1),children:a("ui.abort")}),(0,i.jsx)(N.$,{variant:"destructive",onClick:()=>{t(!1),n()},children:a("course.menu.deleteModal.warningButton")})]})})},Yr=({onEditModeChange:e})=>{const{t}=(0,k.Bd)(),[n,a]=(0,r.useState)(""),[o,s]=(0,r.useState)(!1),{postSettings:l,settings:c}=C(),d=(0,r.useRef)();(0,r.useEffect)((()=>{c&&a(c.displayName)}),[c]),(0,r.useEffect)((()=>{e&&e(o)}),[o,e]);const u=(0,r.useCallback)((e=>{"Enter"===e.code&&(l({displayName:n}),s(!1))}),[l,n]),p=(0,r.useCallback)((()=>{l({displayName:n}),s(!1)}),[n,l]),h=(0,r.useCallback)((()=>{s(!0)}),[]);return(0,r.useEffect)((()=>{o&&d.current.focus()}),[o]),(0,i.jsxs)(i.Fragment,{children:[o?(0,i.jsx)("div",{className:"flex-grow",children:(0,i.jsx)(Ke.p,{ref:d,ariaLabel:t("settings.username"),onKeyUp:u,data_cy:"input-username",onChange:e=>a(e.target.value),value:n,name:"username"})}):(0,i.jsx)("span",{"data-cy":"settings-username",className:"settings__item-value",children:n}),(0,i.jsx)("span",{className:"settings__item-action",children:o?(0,i.jsxs)("div",{className:"flex flex-row-reverse sm:flex-row justify-end gap-2 w-full",children:[(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"primary",onClick:p,children:t("ui.save")}),(0,i.jsx)(N.$,{variant:"plain",onClick:()=>{a(c.displayName),s(!1)},children:t("ui.abort")})]}):(0,i.jsx)(N.$,{offlineDisabled:!0,size:"sm",variant:"plain",ariaLabel:t("settings.ariaUsername"),data_cy:"button-edit-username",onClick:h,icon:(0,i.jsx)(Ue.I,{source:yi})})})]})},Jr=new Set(["schooladmin","teacher","student","eks_content_admin","editor"]),Zr=()=>{const{t:e}=(0,k.Bd)(),[t,n]=(0,r.useState)(!1),[a,o]=(0,r.useState)(),{profile:s,authorization:l}=(0,c.As)(),u=(0,se.P)();Oe(e("metaTitle.settings",{brand:u}));const{refetch:p,data:h}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-course-list"],queryFn:async()=>(await t.get("courses/memberships")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.course.courseNotFound")})}({hideToast:!0}),{mutateAsync:m,isSuccess:g}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async({id:t})=>(await n.delete(`/courses/${e}/${t}/join`)).data,retry:!1});return(0,S.s)(r,t||{message:i("error.course.failLeave")})}(Wr.MEMBER),{success:f}=(0,A.e)();return(0,r.useEffect)((()=>{g&&(f({copy:e("course.join.leaveSuccessful"),id:"join-course-success"}),p())}),[g]),(0,r.useEffect)((()=>{p&&p()}),[p]),s&&l&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Nutzerprofil"}})),(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:e("settings.title")}),(0,i.jsxs)("section",{className:"settings__group",children:[(0,i.jsx)("h2",{className:"heading-4",children:e("settings.personalTitle")}),(0,i.jsxs)("dl",{className:"",children:[(0,i.jsx)("dt",{className:"settings__item",children:e("settings.name")}
2),(0,i.jsxs)("dd",{className:"settings__item",children:[(0,i.jsxs)("span",{className:"settings__item-value",children:[s.firstName," ",s.lastName]}),(0,i.jsx)("span",{className:"settings__item-action"})]}),(0,i.jsx)("dt",{className:"settings__item",children:e("settings.email")}),(0,i.jsxs)("dd",{className:"settings__item",children:[(0,i.jsx)("span",{className:"settings__item-value",children:s.email}),(0,i.jsx)("span",{className:"settings__item-action"})]}),(0,i.jsx)("dt",{className:"settings__item",children:e("settings.roles")}),(0,i.jsx)("dd",{className:"settings__item settings__item-list",children:l.realmAccessRoles.filter((e=>Jr.has(null==e?void 0:e.toLowerCase()))).map(((t,n)=>(0,i.jsx)(r.Fragment,{children:(0,i.jsx)("div",{className:"settings__item-list__entry",children:(0,i.jsx)("span",{className:"settings__item-value",children:e("settings.rolenames."+t.toLowerCase())})})},n)))}),(0,i.jsx)("dt",{className:"settings__item",children:e("settings.username")}),(0,i.jsx)("dd",{className:"settings__item",children:(0,i.jsx)(Yr,{})}),(0,i.jsx)("dt",{className:"settings__item",children:e("settings.ssoId")}),(0,i.jsxs)("dd",{className:"settings__item",children:[(0,i.jsx)("span",{className:"settings__item-value",children:s.id}),(0,i.jsx)("span",{className:"settings__item-action"})]})]})]}),!!h&&!!(null==h?void 0:h.length)&&(0,i.jsxs)("section",{className:"settings__group","data-cy":"settings-courses",children:[(0,i.jsx)("h2",{className:"heading-4",children:e("settings.courses")}),(0,i.jsx)("dl",{className:"",children:null==h?void 0:h.map((t=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("dt",{className:"settings__item settings__item-dt",children:e("settings.rolenames.student")}),(0,i.jsxs)("dd",{className:"settings__item settings__item-dd",children:[(0,i.jsx)("span",{className:"settings__item-value",children:t.courseTitle}),(0,i.jsx)("span",{className:"settings__item-action",children:(0,i.jsx)(N.$,{className:"text-textCritical",ariaLabel:e("settings.leaveCourse"),title:e("settings.leaveCourse"),onClick:()=>{return e=t.courseId,n(!0),void o(e);var e},icon:(0,i.jsx)(Ue.I,{source:Cr})})})]})]},t.courseId)))})]}),(0,i.jsxs)("section",{className:"settings__group",children:[(0,i.jsx)("h2",{className:"heading-4",children:e("settings.settings")}),(0,i.jsxs)("dl",{className:"",children:[(0,i.jsx)("dt",{className:"settings__item settings__item-dt",children:e("settings.language")}),(0,i.jsxs)("dd",{className:"settings__item settings__item-dd",children:[(0,i.jsx)(Kr,{}),(0,i.jsx)("span",{className:"settings__item-action"})]})]})]}),(0,i.jsxs)("section",{className:"settings__group",children:[(0,i.jsx)("h2",{className:"heading-4",children:e("settings.security")}),(0,i.jsxs)("dl",{className:"",children:[(0,i.jsx)("dt",{className:"settings__item settings__item-dt",children:e("settings.password")}),(0,i.jsxs)("dd",{className:"settings__item settings__item-dd",children:[(0,i.jsx)("span",{className:"settings__item-value",children:"••••••••••••"}),(0,i.jsx)("span",{className:"settings__item-action",children:(0,i.jsx)($r,{size:"sm",variant:"primary",options:{action:"UPDATE_PASSWORD"},icon:(0,i.jsx)(Ue.I,{source:yi}),text:e("settings.changePassword")})})]})]})]}),(0,i.jsx)(Xr,{isOpen:t,setIsOpen:n,deleteApproved:()=>{m({id:a}),o(void 0)},text:e("course.menu.deleteModal.warningTextMembership")})]})},Qr=()=>{const[e,t]=(0,r.useState)(),n=(0,Gr.U)(),{t:a}=(0,k.Bd)();return Oe(a("metaTitle.imprint",{brand:(0,se.P)()})),(0,r.useEffect)((()=>{const e=n(),i=new URLSearchParams(window.location.search).get("brand");let r="klett";i&&"delta"===i&&(r="delta"),async function(e,n){const i=await fetch(`./static-pages/imprint/${n}/impressum_${e}.html`),r=await i.text();t(r)}(e,r)}),[n]),(0,i.jsx)(pe,{children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})};var ea=n(60174),ta={};ta.styleTagTransform=q(),ta.setAttributes=B(),ta.insert=R().bind(null,"head"),ta.domAPI=M(),ta.insertStyleElement=F();P()(ea.A,ta);ea.A&&ea.A.locals&&ea.A.locals;const na=()=>{const[e,t]=(0,r.useState)(),n=(0,Gr.U)(),{t:a}=(0,k.Bd)();Oe(a("metaTitle.privacy",{brand:(0,se.P)()}));const o=(0,r.useCallback)((async(e,n)=>{const i=await fetch(`./static-pages/privacy/${n}/datenschutz_${e}.html`),r=await i.text();t(r)}),[]);return(0,r.useEffect)((()=>{const e=n(),t=new URLSearchParams(window.location.search).get("brand");let i="klett";t&&"delta"===t&&(i="delta"),o(e,i)}),[n,o]),(0,i.jsx)(pe,{children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})};var ia=n(27134),ra={};ra.styleTagTransform=q(),ra.setAttributes=B(),ra.insert=R().bind(null,"head"),ra.domAPI=M(),ra.insertStyleElement=F();P()(ia.A,ra);ia.A&&ia.A.locals&&ia.A.locals;const aa=()=>{const[e,t]=(0,r.useState)(),n=(0,Gr.U)(),{t:a}=(0,k.Bd)();return Oe(a("metaTitle.agb",{brand:(0,se.P)()})),(0,r.useEffect)((()=>{const e=n(),i=new URLSearchParams(window.location.search).get("brand");let r="klett";i&&"delta"===i&&(r="delta"),async function(e,n){const i=await fetch(`./static-pages/agb/${n}/agb_${e}.html`),r=await i.text();t(r)}(e,r)}),[n]),(0,i.jsx)(pe,{children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})},oa=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:e("error.pageNotFound.title")}),(0,i.jsx)("p",{children:(0,i.jsx)(ee.z,{to:te.J.welcome,children:e("error.pageNotFound.link")})})]})},sa=()=>{const{t:e}=(0,k.Bd)(),t=(0,Re.V)(),n=(0,fe.m)();(0,r.useEffect)((()=>{(0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Fehler"}})}),[]);return(0,i.jsxs)(he,{children:[(0,i.jsx)(Q,{title:e("error.serviceUnavailable.title")}),(!t||!(null==t?void 0:t.get("code")))&&(0,i.jsx)("p",{className:"mb-4",children:e("error.serviceUnavailable.copy")}),t&&t.get("code")&&(0,i.jsx)("p",{className:"mb-4",children:e("error.serviceTimeout.copy")}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{const e=localStorage.getItem("lastWorkingUrl");e?(localStorage.removeItem("lastWorkingUrl"),n(e)):n(-1)},children:e("error.serviceUnavailable.reload")})]})};var la=n(62767);const ca=({playlist:e,type:t,onSavePlaylist:n,onDeletePlaylist:a,onSharePlaylist:o,onAbortTitleChange:s,onDeleteReceivedPlaylist:l,onCopyReceivedPlaylist:d})=>{var u,p;const[h,m]=(0,r.useState)(e.playlist.newPlaylist),f=(0,c.As)(),v=(null===(u=e.playlist.creator)||void 0===u?void 0:u.userId)===(null===(p=f.profile)||void 0===p?void 0:p.id),{t:b}=(0,k.Bd)(),{storedAssets:y}=(0,g.yv)(),x=(0,J.Ay)(),[w,A]=(0,r.useState)(!0),T=(0,r.useCallback)((()=>e.playlist.id?"allango"===t||"allangoShared"===t?"read"===e.highestPrivilege?(0,vt.tW)(te.J.playlist.allango,{id:e.sharingInfos[0].shareId})+"?shared=true":(0,vt.tW)(te.J.playlist.allango,{id:e.playlist.id}):"read"===e.highestPrivilege?(0,vt.tW)(te.J.playlist.detail,{id:e.sharingInfos[0].shareId})+"?shared=true":(0,vt.tW)(te.J.playlist.detail,{id:e.playlist.id}):(0,vt.tW)(te.J.playlist.detail,{id:"1"})),[e,t]),S=(0,r.useCallback)((async()=>{var t;A(await Dr(e,y,null===(t=f.profile)||void 0===t?void 0:t.id))}),[e,y,f]);(0,r.useEffect)((()=>{A(!0),S()}),[S]);const E=(0,r.useCallback)((()=>{var t;if((null===(t=e.sharingInfos)||void 0===t?void 0:t.length)>0)return!0}),[e]);return(0,i.jsxs)("div",{className:"playlist-header",children:[!h&&(0,i.jsxs)("div",{onClick:e=>e.preventDefault(),className:"playlist-header__title-wrapper",children:[(0,i.jsxs)("div",{className:"playlist-header__block",children:[!e.deleted&&(0,i.jsx)(ee.z,{to:T(),children:(0,i.jsx)("h2",{className:"playlist-header__title nice-word-break","data-cy":"playlist-header-title",children:e.playlist.title})}),e.deleted&&(0,i.jsx)("h2",{className:"playlist-header__title nice-word-break","data-cy":"playlist-header-title",children:e.playlist.title}),(0,i.jsxs)("div",{className:"playlist-header__meta",children:[!v&&(0,i.jsx)("span",{className:"playlist-header__author",children:b("playlist.author")+" "+(()=>{var t,n;return(null===(t=e.playlist.creator)||void 0===t?void 0:t.displayName)?null===(n=e.playlist.creator)||void 0===n?void 0:n.displayName:b("playlist.anonymsAuthor")})()}),w&&(0,i.jsx)(Dt.E,{type:"success",children:b("offline.offline")}),e.deleted&&(0,i.jsx)(Dt.E,{type:"error",children:b("playlist.deleted")}),E()&&v&&(0,i.jsx)(Dt.E,{type:"brand",children:b("shared")})]})]}),"own"===e.highestPrivilege&&!x&&(0,i.jsx)(N.$,{offlineDisabled:!0,size:"sm",variant:"plain","data-cy":"playlist-header-rename",onClick:()=>m(!0),ariaLabel:b("playlist.editListNameAria"),icon:(0,i.jsx)(Ue.I,{source:yi})})]}),h&&!e.deleted&&(0,i.jsx)(Er.R,{className:"playlist-header__title-wrapper",onSavePlaylist:n,onSetEditMode:m,onAbortTitleChange:s,title:e.playlist.title}),!h&&!e.deleted&&(0,i.jsx)(Pr,{isOffline:w,privilige:e.highestPrivilege,onDelete:a,onShare:o,onDeleteReceivedPlaylist:l,onCopyReceivedPlaylist:d,playlist:e.playlist}),e.deleted&&(0,i.jsx)(N.$,{variant:"plain",modifier:"destructive",onClick:l,icon:(0,i.jsx)(Ue.I,{source:Cr}),children:b("playlist.menu.remove")})]})};var da=n(41761);function ua(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({id:e})=>(await t.delete(`/curatedlists/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failDelete")})}function pa(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({id:e})=>(await t.delete(`/curatedlists/received/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failRemoveReceived")})}function ha(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({shareId:e})=>(await t.post(`/curatedlists/received/${e}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failCopy")})}const ma=({playlist:e,onCreateErrorOrSuccess:t,onCreateCurateErrorOrSuccess:n,onResetNewPlaylist:a})=>{const o=(0,se.P)(),s=(0,Re.V)(),{t:l}=(0,k.Bd)(),{success:c}=(0,A.e)(),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(e.sharingInfos),g="own"===e.highestPrivilege;Oe(l("metaTitle.lists",{brand:o}));const{mutateAsync:f}=(0,Un.V)({message:l("error.playlist.failRename")}),{mutateAsync:v}=(0,da.x)({message:l("error.playlist.failRename")}),{mutateAsync:b,error:y,isSuccess:w}=(0,la.A)(),{mutateAsync:T,error:I,isSuccess:C}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({playlist:e})=>(await t.post("/curatedlists",Object.assign({},e))).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failCreate")})}(),{mutateAsync:_}=qn(),{mutateAsync:j}=pa(),{mutateAsync:N}=ua(),{mutateAsync:L}=Vn(),{mutateAsync:P}=ha(),{updateList:D,deletePlaylist:M}=(0,x.W)();(0,r.useEffect)((()=>{(y||w)&&t(),(I||C)&&n()}),[y,t,w,n,I,C]);const O=(0,r.useCallback)((async i=>{e.playlist.newPlaylist?"private"===s.get("type")?b({playlist:{title:i,entries:[]}}):T({playlist:{title:i,entries:[]}}):"private"===s.get("type")?(await f({playlist:Object.assign(Object.assign({},e.playlist),{title:i})}),t()):(await v({playlist:Object.assign(Object.assign({},e.playlist),{title:i})}),n())}),[b,f,e,t,T,s,v,n]),R=(0,r.useCallback)((async()=>{"private"===s.get("type")?await M(e.playlist.id):(await N({id:e.playlist.id}),n())}),[e,M,s,N,n]),z=(0,r.useCallback)((async()=>{"allangoShared"===s.get("type")?(await j({id:e.sharingInfos[0].shareId}),n()):(await _({id:e.sharingInfos[0].shareId}),t())}),[s,_,e.sharingInfos,t,j,n]),B=(0,r.useCallback)((()=>{e.playlist.newPlaylist&&a()}),[e,a]),U=(0,r.useCallback)((()=>{p(!0),(0,it.r)({eventType:"sharePlaylist"})}),[]),F=(0,r.useCallback)((t=>{m(t),D(Object.assign(Object.assign({},e),{sharingInfos:t}))}),[e,D]),V=(0,r.useCallback)((async()=>{e.curated?await P({shareId:e.sharingInfos[0].shareId}):await L({shareId:e.sharingInfos[0].shareId}),t(),c({copy:l("playlist.copySuccess")})}),[L,e,t,P,c,l]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"playlist-accordion__header",children:(0,i.jsx)(ca,{playlist:e,onSharePlaylist:U,onDeletePlaylist:R,onSavePlaylist:O,onCopyReceivedPlaylist:V,onAbortTitleChange:B,onDeleteReceivedPlaylist:g?null:z,type:s.get("type")})}),u&&(0,i.jsx)(ti,{playlist:e,type:s.get("type"),shareInfo:h,onClose:()=>p(!1),onShareLinkDelete:()=>F([]),onSetShareInfo:e=>F(e)})]})},ga=({onAddPlaylist:e})=>{const t=(0,Re.V)(),{t:n}=(0,k.Bd)();return(0,i.jsx)(fr,{dataCy:"empty-playlists-teaser",title:"shared"===t.get("type")?n("playlist.emptyListsTitleShared"):"private"===t.get("type")?n("playlist.emptyListsTitle"):"allango"===t.get("type")?n("playlist.emptyListsTitleCurated"):"allangoShared"===t.get("type")?n("playlist.emptyListsTitleCuratedShared"):void 0,customAction:(()=>
2{if("private"===t.get("type")||"allango"===t.get("type"))return(0,i.jsx)(N.$,{className:"empty-list-teaser__button","data-cy":"empty-playlists-teaser-button",onClick:e,icon:(0,i.jsx)(Ue.I,{source:hr.A}),variant:"primary",size:"lg",children:n("playlist.emptyListsLink")})})(),body:"shared"===t.get("type")?(0,i.jsx)("p",{children:n("playlist.emptyListsCopyShared")}):"private"===t.get("type")?(0,i.jsx)("p",{children:n("playlist.emptyListsCopy")}):"allango"===t.get("type")?(0,i.jsx)("p",{children:n("playlist.emptyListsCopyCurated")}):"allangoShared"===t.get("type")?(0,i.jsx)("p",{children:n("playlist.emptyListsCopyCuratedShared")}):void 0})},fa=()=>{var e,t;const n=(0,Re.V)(),{playlists:a,refetchPlaylists:o,isFetching:s}=(0,x.W)(),{t:l}=(0,k.Bd)(),d=(0,fe.m)(),u=(0,be.zy)(),p=(0,se.P)(),h=(0,c.As)();Oe(l("metaTitle.lists",{brand:p}));const m=n.get("type"),[g,f]=(0,r.useState)([]);a&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Meine Listen"}}));const v=(0,r.useCallback)((()=>{if("shared"===m)n.set("type","private"),n.set("add","true"),d(u.pathname+"?"+n.toString());else if("allangoShared"===m)n.set("type","allango"),n.set("add","true"),d(u.pathname+"?"+n.toString());else{const e=[{playlist:{title:"",entries:[],newPlaylist:!0}},...g];f(e)}}),[d,u,n,g,m]);(0,r.useEffect)((()=>{n.get("type")||(n.set("type","private"),d(u.pathname+"?"+n.toString()))}),[d,n,u]),(0,r.useEffect)((()=>{if(a)if(m&&"shared"===m){const e=a.filter((e=>"read"===e.highestPrivilege&&!e.curated));f(e)}else if(m&&"private"===m){let e;e=a.filter((e=>"own"===e.highestPrivilege&&!e.curated)),n.get("add")&&(e=[{playlist:{title:"",entries:[],newPlaylist:!0}},...e]),f(e)}else if("allangoShared"===m){const e=a.filter((e=>"read"===e.highestPrivilege&&e.curated));f(e)}else if("allango"===m){let e=a.filter((e=>"own"===e.highestPrivilege&&e.curated));n.get("add")&&(e=[{playlist:{title:"",entries:[],newPlaylist:!0}},...e]),f(e)}}),[a,m,n]),(0,r.useEffect)((()=>(o(),()=>{o()})),[o,null===(e=h.authorization)||void 0===e?void 0:e.realmAccessRoles]);const b=(0,r.useCallback)((e=>{const t=[...g];t.splice(e,1),f(t)}),[g]),y=(0,r.useCallback)((()=>{n.delete("add"),d(u.pathname+"?"+n.toString()),o()}),[n,d,u.pathname,o]),A=(0,r.useCallback)((()=>{o()}),[o]),{refetch:T}=(0,w.s)();(0,r.useEffect)((()=>{T.current=A}),[]);const S=(0,r.useCallback)((()=>{var e;const t=[{href:te.J.playlist.index+"?type=private",name:"private",label:l("playlist.nav.private"),current:!0,id:"private"},{href:te.J.playlist.index+"?type=shared",name:"shared",label:l("playlist.nav.received"),current:!1,id:"shared"}];return-1!==(null===(e=h.authorization)||void 0===e?void 0:e.realmAccessRoles.indexOf("editor"))&&t.push({href:te.J.playlist.index+"?type=allango",name:"allango",label:l("playlist.nav.curated"),current:!1,id:"allango"}),t.push({href:te.J.playlist.index+"?type=allangoShared",name:"allangoShared",label:l("playlist.nav.curatedReceived"),current:!1,id:"allangoShared"}),t}),[l,null===(t=h.authorization)||void 0===t?void 0:t.realmAccessRoles]);return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"playlist-title",title:l("playlist.title"),withActions:!0,children:(0,i.jsx)(N.$,{offlineDisabled:!0,id:"create-playlist-btn",disabled:s||!!g.find((e=>!0===e.playlist.newPlaylist)),onClick:v,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:l("playlist.newList")})}),(0,i.jsx)(Rt,{tabs:S(),current:m}),(0,i.jsx)("ol",{className:"playlist-page__content","data-cy":"playlist-page-content",children:(0,i.jsx)(ft.o,{inProgress:s,children:null==g?void 0:g.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)(ma,{playlist:e,onCreateErrorOrSuccess:y,onCreateCurateErrorOrSuccess:y,onResetNewPlaylist:()=>b(t)})},t+e.playlist.title)))})}),!s&&g&&0===g.length&&(0,i.jsx)(ga,{onAddPlaylist:v})]})},va=()=>{const{authenticated:e}=(0,c.As)(),{t}=(0,k.Bd)();return Oe(t("metaTitle.lists",{brand:(0,se.P)()})),e?e?(0,i.jsx)(fa,{}):void 0:(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"playlist-title",title:t("playlist.title")}),(0,i.jsx)(Ut,{title:t("featureTeaser.playlist.title"),dataCy:"playlist-teaser",subitle:t("featureTeaser.playlist.subtitle"),copy:t("featureTeaser.playlist.copy"),image:(0,i.jsx)("img",{src:"./images/lists.png",alt:"",role:"presentation"}),cta:(0,i.jsx)(De.M,{variant:"primary",text:t("featureTeaser.playlist.cta")})})]})};var ba=n(23093);var ya=n(42642),xa=n(55434);const wa=({onNavigate:e,pagination:t})=>(0,i.jsx)("div",{children:t.page&&(0,i.jsx)($t,{showTotal:!0,onNavigate:e,pagination:t})}),ka=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsx)(fr,{title:e("bookmark.teaserTitle"),dataCy:"empty-bookmark-teaser",body:(0,i.jsxs)("p",{children:[e("bookmark.hint1")," ",(0,i.jsx)(Ue.I,{source:Di.A,accessibilityLabel:e("ui.icons.bookmark")})," ",e("bookmark.hint2")]}),link:e("bookmark.link"),linkTo:te.J.discover})},Aa=({deleteSelected:e,selectedBookmarks:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{onClick:e,variant:"default",icon:(0,i.jsx)(Ue.I,{source:Cr}),children:n("bookmark.bulk.remove")}),(0,i.jsx)(Lr,{entries:t,buttonText:n("bookmark.bulk.download"),buttonVariant:"default"})]})},Ta=()=>{const{t:e}=(0,k.Bd)(),t=(0,Re.V)(),n=(0,fe.m)(),a=(0,r.useCallback)((e=>{const i=e.value.split(",")[0],r=e.value.split(",")[1];t.set("sortField",i),t.set("sortDirection",r),n(te.J.usercontent.bookmark+"?"+t.toString())}),[n,t]),[o,s]=(0,r.useState)(""),l=(0,r.useCallback)((()=>[{label:e("resourceList.sorters.titleAsc"),value:"title,ascending",data_cy:"titleAscending"}
2,{label:e("resourceList.sorters.titleDesc"),value:"title,descending",data_cy:"titleDescending"},{label:e("resourceList.sorters.timelinessDesc"),value:"timeliness,descending",data_cy:"timelinessDescending"},{label:e("resourceList.sorters.timelinessAsc"),value:"timeliness,ascending",data_cy:"timelinessAsccending"}]),[e]);(0,r.useEffect)((()=>{const e=l().find((e=>e.value===t.get("sortField")+","+t.get("sortDirection")));if(null==e?void 0:e.label)s(null==e?void 0:e.label);else{const e=l().find((e=>"timeliness,descending"===e.value));s(null==e?void 0:e.label)}}),[t,l,n]);const c=(0,r.useCallback)((()=>{const e=[];return"title"===t.get("sortField")&&(e.push(l().find((e=>-1!==e.value.indexOf("title")&&-1===e.value.indexOf(t.get("sortDirection"))))),e.push(l().find((e=>-1!==e.value.indexOf("timeliness")&&-1!==e.value.indexOf("descending"))))),"timeliness"===t.get("sortField")&&(e.push(l().find((e=>-1!==e.value.indexOf("title")&&-1!==e.value.indexOf("ascending")))),e.push(l().find((e=>-1!==e.value.indexOf("timeliness")&&-1===e.value.indexOf(t.get("sortDirection")))))),t.get("sortField")||(e.push(l().find((e=>-1!==e.value.indexOf("title")&&-1!==e.value.indexOf("ascending")))),e.push(l().find((e=>-1!==e.value.indexOf("timeliness")&&-1!==e.value.indexOf("ascending"))))),{options:e,onSelect:a,label:o}}),[a,t,o,l]);return(0,i.jsx)(_n.O,{preLabel:e("resourceList.sortPrefix"),label:c().label,onSelect:c().onSelect,options:c().options})};var Sa=n(14936);const Ea=({facets:e})=>{const[t,n]=(0,r.useState)([]),{t:a}=(0,k.Bd)(),o=(0,Re.V)(),s=(0,fe.m)();return(0,r.useEffect)((()=>{n(null==e?void 0:e.facets.filter((e=>"bookDescribedTitle"!==e.name)).map((e=>({label:a("facet."+e.name),name:e.name,values:e.entries.map((t=>{let n=t.label;return"format"===e.name&&(n=a(`asset.${t.label}`)),{label:n,value:t.label}})),preSelected:o.get(e.name)?"format"===e.name?o.get(e.name).split(",").map((e=>({label:a(`asset.${e}`),value:e}))):{label:o.get(e.name),value:o.get(e.name)}:null,onFilterValue:t=>{t===a(Sa.g)||0===t.length?o.delete(e.name):(o.set(e.name,Array.isArray(t)?t.map((e=>e.value)).join(","):t),o.set("page","1")),s(te.J.usercontent.bookmark+"?"+o.toString())},filterOfflineDisabled:!0,isSelect:"format"===e.name}))))}),[null==e?void 0:e.facets,s,o,a]),(0,i.jsx)(i.Fragment,{children:null==t?void 0:t.map(((e,t)=>{if(e.values.length>0)return(0,i.jsx)(Sa.n,{label:e.label,preSelected:e.preSelected,values:e.values,hideNeutralFilter:!1,onFilterValue:e.onFilterValue,name:e.name,isSelect:e.isSelect},t)}))})};var Ia=n(86165),Ca=n(81850);const _a=({onChangeVersion:e,data:t,isOffline:n=!1,onAddPageToPlaylistOfCurrentVersion:a})=>{const{t:o}=(0,k.Bd)(),s=(0,g.yv)(),[l,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)([]),p=(0,r.useCallback)((async()=>{s.deleteAsset(t)}),[s,t]),h=(0,r.useCallback)((async()=>{p()}),[p]);if(n)return(0,i.jsx)(vi.u,{ariaLabel:o("ui.menuAria"),elements:[(0,i.jsx)(N.$,{variant:"plain",onClick:h,className:"offline-remove",disabled:!1,icon:(0,i.jsx)(Ue.I,{source:bn.A}),children:o("augmented.offline-remove")},"offline")]});const m=[(0,i.jsx)(Ia.Ue,{children:(0,i.jsx)(Ca.y,{showPlaylists:l,setShowPlaylists:c,onAddPageToPlaylistOfCurrentVersion:a,setMenuItems:u})}),...d];return(0,i.jsx)(vi.u,{ariaLabel:o("ui.menuAria"),elements:l?m:[...m,(0,i.jsx)(N.$,{variant:"plain",onClick:()=>e(t),ariaLabel:o("bookmark.preview.changeVersion"),icon:(0,i.jsx)(Ue.I,{source:yi}),children:o("bookmark.preview.changeVersion")},"change-version"),(0,i.jsx)(Li,{data:t.dauPage},"download-dau-page")]})};var ja=n(91706);const Na=({data:e,editMode:t,selected:n,updateSelected:r,changeVersion:a,onOpenAsset:o})=>{const{addDauPageToPlayList:s}=(0,x.W)();if(e.dauPage){const l=t=>{s(e.dauPage,t),(0,it.r)({productId:e.dauPage.book.npNumber,productName:e.dauPage.book.bookTitle,contentId:e.dauPage.book.npNumber,format:e.dauPage.format,eventType:"addToPlaylist"})};return(0,i.jsx)(rr,{value:e.bookmarkId,dauPage:e.dauPage,inBulkMode:t,isChecked:-1!==n.indexOf(e.bookmarkId),onChange:r,onOpenAsset:o,menu:(0,i.jsx)(_a,{data:e,onChangeVersion:a,onAddPageToPlaylistOfCurrentVersion:l})})}return(0,i.jsx)(ar.d,{asset:e.asset,inBulkMode:t,isChecked:-1!==n.indexOf(e.asset.id),onChange:r,onOpenAsset:o,menu:(0,i.jsx)(ja._,{asset:e.asset})})},La=()=>{const{t:e}=(0,k.Bd)(),{search:t}=(0,be.zy)(),n=(0,Re.V)(),a=(0,fe.m)(),o=(0,se.P)();Oe(e("metaTitle.bookmark",{brand:o}));const{bookmarks:s,deleteBookmarks:c,refetch:u,allBookmarkPages:p}=(0,h.wn)(),m=(0,l.n)(),{warning:g}=(0,A.e)(),[f,v]=(0,r.useState)({pagesize:h.c6,page:1}),[b,y]=(0,r.useState)(),[x,E]=(0,r.useState)({pagesize:10,page:1}),[I,C]=(0,r.useState)([]),[_,j]=(0,r.useState)(!1),[N,L]=(0,r.useState)(),[P,D]=(0,r.useState)(""),{refetch:M,data:O,isLoading:R}=(0,ba.K)(t||"?searchString=&sortField=timeliness&sortDirection=descending",x,{hideToast:!0},!0),{refetch:z,data:B}=(0,ba.K)(n.get("searchString")?"?searchString="+n.get("searchString"):"?searchString=",x,{hideToast:!0}),{refetch:U,data:F}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-bookmark-suggestion",e],queryFn:async()=>(await n.get(`/bookmarks/search/suggest?searchString=${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.bookmark.suggestionFail")})}(P,{hideToast:!0});s&&O&&B&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"MyContent"}}));const V=(0,r.useCallback)((e=>{const t=new Set(I);t.has(e)?t.delete(e):t.add(e),C(Array.from(t))}),[I]),q=(0,r.useCallback)((e=>{if(e){const e=[];
2null==N||N.forEach((t=>{t.asset&&e.push(t.asset.id),t.bookmarkId&&e.push(t.bookmarkId)})),C(e)}else C([])}),[N]),H=(0,r.useCallback)((e=>{q(e)}),[q]);(0,r.useEffect)((()=>{M(),z()}),[M,n,z]),(0,r.useEffect)((()=>{m&&O?(y(O),L(O.resultPage.content.map((e=>e.bookmark)))):m||(p&&p.length>0&&p[f.page-1]&&p[f.page-1].data?(y(p[f.page-1].data),L(p[f.page-1].data.resultPage.content.map((e=>e.bookmark)))):s&&s.length>0?(y(null),L(s)):document.getElementById("broken-offline-bookmarks-warning")||s||p||g({copy:e("error.bookmark.failSearch"),id:"broken-offline-bookmarks-warning"}))}),[O,n,a,t,z,B,e,m,p,f.page,g,s]);const G=(0,r.useCallback)((async()=>{const e=N.filter((e=>{var t;return-1!==I.indexOf(null===(t=e.asset)||void 0===t?void 0:t.id)||-1!==I.indexOf(e.bookmarkId)}));c(e),await M(),C([])}),[N,c,M,C,I]),K=(0,r.useCallback)((e=>{D(e)}),[]);(0,r.useEffect)((()=>{U()}),[P,U]);const $=(0,r.useCallback)((async e=>{m&&E({page:e.page,pagesize:e.pagesize}),v({page:e.page,pagesize:h.c6}),n.set("page",e.page),n.set("pagesize",e.pagesize),a(te.J.usercontent.bookmark+"?"+n.toString())}),[n,a,m]),W=(0,r.useCallback)((e=>{n.set("page","1"),n.set("searchString",e),a(te.J.usercontent.bookmark+"?"+n.toString()),D(e)}),[a,n]),X=(0,r.useCallback)((()=>{M()}),[M]),{refetch:Y}=(0,w.s)();(0,r.useEffect)((()=>{Y.current=X}),[X,Y]);const J=(0,r.useCallback)((e=>{j(e),q(e)}),[q]);(0,r.useEffect)((()=>{M()}),[s,M]);const[Z,Q]=(0,r.useState)(),[ee,ne]=(0,r.useState)(),[ie,re]=(0,r.useState)(""),ae=e=>{re(e.bookmarkId),ne(e.dauPage),Q(!0)},oe=(e,t,n,i)=>{(0,it.r)({productId:e,productName:t,contentId:n,format:i,eventType:"openFromBookmarks"})};return(0,i.jsxs)(i.Fragment,{children:[(null==s?void 0:s.length)>0&&(0,i.jsx)(xa.O,{bulkMode:_,search:m?{onKeyUp:K,searchList:W,placeholder:e("bookmark.searchPlaceholder"),suggestions:(null==F?void 0:F.suggestions)||[],initalValue:n.get("searchString")||void 0}:void 0,toggleBulkSelection:H,onSetBulkMode:J,selected:null==I?void 0:I.length,fullArray:null==N?void 0:N.length,children:_?(0,i.jsx)(Aa,{deleteSelected:G,selectedBookmarks:s.filter((e=>{var t;return-1!==I.indexOf(null===(t=e.asset)||void 0===t?void 0:t.id)||e.dauPage&&-1!==I.indexOf(e.bookmarkId)}))}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ta,{}),(0,i.jsx)(Ea,{facets:B})]})}),(0,i.jsx)("span",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:e("bookmark.assetsFound",{count:null==s?void 0:s.length})}),(0,i.jsxs)(ft.o,{inProgress:R&&navigator.onLine,children:[(0,i.jsx)(ya.j,{emptyElement:(0,i.jsx)(ka,{}),fullArray:s.length,editMode:_,selected:I,updateSelected:V,elements:null==N?void 0:N.map((e=>(0,i.jsx)(Na,{data:e,editMode:_,selected:I,updateSelected:V,changeVersion:ae,onOpenAsset:oe},"bookmark-entry"+(e.asset?e.asset.id:e.bookmarkId))))}),b&&N&&N.length>0&&!_&&(0,i.jsx)(wa,{onNavigate:$,pagination:Object.assign(Object.assign({},null==b?void 0:b.resultPage),{pagesize:null==b?void 0:b.resultPage.size,page:null==b?void 0:b.resultPage.pageNumber})})]}),(0,i.jsx)(Ar,{isOpen:Z,setIsOpen:()=>{Q(!1),u()},version:ee,bookmarkId:ie})]})};var Pa=n(74762);const Da=({children:e,className:t,link:n,isDisabled:r,actionsHidden:a})=>a||r?(0,i.jsx)("div",{className:r?"resource-item--disabled":"",children:e}):(0,i.jsx)(ee.z,Object.assign({},n,{className:`${t||""}`,children:e})),Ma=({showFeaturesMobile:e=!0,asset:t,menu:n,feature:r,comment:a,className:o,inBulkMode:s=!1,onChange:l,isChecked:c,withBooktitle:d=!0})=>{const{t:u}=(0,k.Bd)(),p=(0,J.Ay)();return(0,i.jsx)(Da,{className:o,link:(0,Qe.v)(t.id,t.bookFormat),isDisabled:!1,actionsHidden:s,children:(0,i.jsx)($i.K,{title:t.book.bookTitle,format:Si.i_.DAU_LINK,booktitle:d?(e=>{const n=e?", "+u("maxProduct."+(0,Qe.u)(e)):"";return t.book.bookTitle+n})(t.bookFormat):null,description:"",note:a,isOffline:!0,badges:(()=>{if(t)return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Dt.E,{type:"success",children:u("offline.offline")})})})(),actions:(0,i.jsx)(i.Fragment,{children:!s&&(0,i.jsxs)(i.Fragment,{children:[(!p||e&&p)&&r,n]})}),inBulkMode:s,onChange:l,isChecked:c,value:t.id})})},Oa=({data:e,editMode:t,selected:n,updateSelected:r})=>e.isDau?(0,i.jsx)(Ma,{asset:e,inBulkMode:t,isChecked:-1!==n.indexOf(e.id),onChange:r,menu:(0,i.jsx)(_a,{data:e,isOffline:!0})}):(0,i.jsx)(ar.d,{asset:e,inBulkMode:t,isChecked:-1!==n.indexOf(e.id),onChange:r,menu:(0,i.jsx)(ja._,{asset:e})}),Ra=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsx)(fr,{title:e("user-content.offline.teaserTitle"),body:(0,i.jsxs)("p",{children:[e("user-content.offline.hint1")," ",(0,i.jsx)(Ue.I,{accessibilityLabel:"ui.icons.menu",source:Pa.A})," ",e("user-content.offline.hint2")]}),link:e("user-content.offline.link"),linkTo:te.J.usercontent.bookmark})},za=()=>{var e,t,n,a;const{storedAssets:o,deleteAsset:s}=(0,g.yv)(),{t:l}=(0,k.Bd)(),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)([]),[h,m]=(0,r.useState)([]),[f,v]=(0,r.useState)(l(Sa.g)),[b,y]=(0,r.useState)([]),[x,w]=(0,r.useState)(""),[A,T]=(0,r.useState)(""),S=(0,se.P)();Oe(l("metaTitle.offline",{brand:S}));const E=(0,r.useRef)(o);o&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"MyContent"}})),(0,r.useEffect)((()=>{E.current=o,m(o)}),[o]);const I=(0,r.useCallback)((()=>[{label:l("resourceList.sorters.titleAsc"),value:"title,ascending"}
2,{label:l("resourceList.sorters.titleDesc"),value:"title,descending"},{label:l("resourceList.sorters.timelinessDesc"),value:"timeliness,descending"},{label:l("resourceList.sorters.timelinessAsc"),value:"timeliness,ascending"}]),[l]),C=(0,r.useCallback)(((e,t)=>{switch(x){case"timeliness":return"ascending"===A?e.modified-t.modified:t.modified-e.modified;case"title":return"ascending"===A?e.asset.title.localeCompare(t.asset.title):t.asset.title.localeCompare(e.asset.title);default:return t.modified-e.modified}}),[A,x]);(0,r.useEffect)((()=>{var e;const t=null===(e=E.current)||void 0===e?void 0:e.filter((e=>{var t,n;return(b.find((t=>e.asset.format===t.value))||0===b.length)&&((null===(t=e.asset.book)||void 0===t?void 0:t.bezeichnung)===f||(null===(n=e.asset.book)||void 0===n?void 0:n.bookDescribedTitle)===f||f===l(Sa.g))})),n=null==t?void 0:t.sort(((e,t)=>C(e,t)));m(n)}),[C,f,b,E,l]);const _=(0,r.useCallback)((e=>{const t=e.value.split(",")[0],n=e.value.split(",")[1];w(t),T(n)}),[]),[j,L]=(0,r.useState)("");(0,r.useEffect)((()=>{const e=I().find((e=>e.value===x+","+A));L((null==e?void 0:e.label)||"")}),[x,A,I]);const P=(0,r.useCallback)((()=>{const e=[];return"title"===x&&(e.push(I().find((e=>-1!==e.value.indexOf("title")&&-1===e.value.indexOf(A)))),e.push(I().find((e=>-1!==e.value.indexOf("timeliness")&&-1!==e.value.indexOf("descending"))))),"timeliness"===x&&(e.push(I().find((e=>-1!==e.value.indexOf("title")&&-1!==e.value.indexOf("ascending")))),e.push(I().find((e=>-1!==e.value.indexOf("timeliness")&&-1===e.value.indexOf(A))))),x||(e.push(I().find((e=>-1!==e.value.indexOf("title")&&-1!==e.value.indexOf("ascending")))),e.push(I().find((e=>-1!==e.value.indexOf("timeliness")&&-1!==e.value.indexOf("descending"))))),{options:e,onSelect:_,label:j}}),[_,j,x,A,I]),D=(0,r.useCallback)((e=>{v(e)}),[]),M=(0,r.useCallback)((e=>{y(e)}),[]),[O,R]=(0,r.useState)([{label:l("facet.bookTitle"),values:[{label:"-",value:"-"}],name:"bookDescribedTitle",onFilterValue:D},{label:l("facet.format"),values:[{label:"-",value:"-"}],name:"format",onFilterValue:M}]),z=(0,r.useCallback)((e=>{const t=new Set(u);t.has(e)?t.delete(e):t.add(e),p(Array.from(t))}),[u]);(0,r.useEffect)((()=>{var e;const t=new Set,n=new Set;null===(e=E.current)||void 0===e||e.forEach((e=>{var i,r,a,o,s,l;((null===(i=e.asset.book)||void 0===i?void 0:i.bezeichnung)||(null===(r=e.asset.book)||void 0===r?void 0:r.bookDescribedTitle))&&((null===(a=e.asset.book)||void 0===a?void 0:a.bezeichnung)?t.add(null===(o=e.asset.book)||void 0===o?void 0:o.bezeichnung):(null===(s=e.asset.book)||void 0===s?void 0:s.bookDescribedTitle)&&t.add(null===(l=e.asset.book)||void 0===l?void 0:l.bookDescribedTitle)),e.asset.format&&n.add(e.asset.format)}));const i=Array.from(t),r=Array.from(n);R([{label:l("facet.bookTitle"),name:"bookDescribedTitle",values:i.map((e=>({label:e,value:e}))),onFilterValue:D,isSelect:!1},{label:l("facet.format"),name:"format",values:r.map((e=>({value:e,label:l(`asset.${e}`)}))),onFilterValue:M,isSelect:!0}])}),[E,h]);const B=(0,r.useCallback)((()=>{u.forEach((e=>{const t=E.current.filter((t=>t.asset.id===e))[0];s(t.asset);const n=new Set(u);n.delete(e),p(Array.from(n))}))}),[u,E,s]);(0,r.useEffect)((()=>{var e;E&&0===(null===(e=E.current)||void 0===e?void 0:e.length)&&d(!1)}),[E]);const U=(0,r.useCallback)((e=>{if(e){const e=h.map((e=>e.asset.id));p(e)}else p([])}),[h]),F=(0,r.useCallback)((e=>{U(e)}),[U]),V=(0,r.useCallback)((e=>{d(e),U(e)}),[U]),q=(0,r.useCallback)((()=>null==h?void 0:h.map(((e,t)=>(0,i.jsx)(Oa,{data:e.asset,editMode:c,selected:u,updateSelected:z},"bookmark-entry"+t)))),[c,u,h,z]);return(0,i.jsxs)(i.Fragment,{children:[(null===(e=E.current)||void 0===e?void 0:e.length)>0&&(0,i.jsxs)(xa.O,{bulkMode:c,toggleBulkSelection:F,onSetBulkMode:V,selected:u.length,fullArray:null===(t=E.current)||void 0===t?void 0:t.length,children:[c&&(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(N.$,{onClick:B,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:Cr}),children:l("bookmark.bulk.remove")})}),!c&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(_n.O,{preLabel:l("resourceList.sortPrefix"),label:P().label,onSelect:P().onSelect,options:P().options}),null==O?void 0:O.map(((e,t)=>{if(e.values.length>0)return(0,i.jsx)(Sa.n,{label:e.label,preSelected:e.preSelected,values:e.values,hideNeutralFilter:!1,onFilterValue:e.onFilterValue,name:"medium-filter",isSelect:e.isSelect},t)}))]})]}),(0,i.jsx)("span",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:l("bookmark.assetsFound",{count:null===(n=null==E?void 0:E.
2current)||void 0===n?void 0:n.length})}),(0,i.jsx)(ya.j,{emptyElement:Ra(),fullArray:null===(a=E.current)||void 0===a?void 0:a.length,updateSelected:z,selected:u,editMode:c,elements:q()})]})};var Ba;function Ua(){return Ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ua.apply(null,arguments)}const Fa=e=>r.createElement("svg",Ua({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ba||(Ba=r.createElement("path",{fill:"#000",d:"M10.036 7.698c-1.651 1.861-3.523 4.546-5.141 7.784a1 1 0 1 1-1.79-.895c1.692-3.383 3.66-6.215 5.434-8.216.886-.999 1.74-1.81 2.506-2.38.382-.285.76-.523 1.123-.693.351-.166.753-.298 1.166-.298a1.24 1.24 0 0 1 1.116.69c.157.312.174.645.17.87-.008.477-.135 1.073-.298 1.68-.335 1.243-.923 2.891-1.507 4.518l-.082.228c-.566 1.574-1.123 3.123-1.485 4.36q-.146.501-.239.895c.694-.557 1.55-1.396 2.457-2.288l.03-.029c.881-.866 1.814-1.782 2.6-2.411.391-.312.812-.609 1.218-.78.34-.145 1.12-.38 1.727.227.384.384.49.884.518 1.256.03.39-.016.81-.087 1.21-.14.8-.424 1.733-.683 2.575l-.041.135c-.232.751-.438 1.422-.555 1.96.26-.26.58-.674.954-1.285a1 1 0 1 1 1.706 1.045c-.543.886-1.105 1.606-1.701 2.053-.624.468-1.44.732-2.266.319-.608-.305-.746-.91-.777-1.246-.033-.363.02-.759.089-1.115.13-.673.385-1.497.625-2.276l.055-.178c.267-.868.51-1.679.625-2.334l.024-.145-.181.14c-.698.559-1.561 1.405-2.478 2.306l-.03.03c-.881.865-1.814 1.782-2.6 2.41-.391.313-.812.61-1.218.781-.34.145-1.12.38-1.727-.227-.309-.309-.388-.699-.413-.936a3.5 3.5 0 0 1 .023-.803c.068-.528.226-1.17.426-1.85.38-1.298.955-2.9 1.512-4.449l.092-.255c.593-1.652 1.149-3.214 1.457-4.36l.074-.286a7 7 0 0 0-.224.16c-.623.464-1.377 1.17-2.204 2.103"})));var Va;function qa(){return qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},qa.apply(null,arguments)}const Ha=e=>r.createElement("svg",qa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Va||(Va=r.createElement("path",{fill:"#111212",d:"m15.95 2.393 5.657 5.657a1 1 0 0 1 0 1.414l-7.779 7.779-2.12.707-1.415 1.414a1 1 0 0 1-1.414 0l-4.243-4.243a1 1 0 0 1 0-1.414l1.414-1.414.707-2.121 7.78-7.779a1 1 0 0 1 1.413 0m.707 3.536-6.364 6.364 1.414 1.414 6.364-6.364zM4.282 16.889l2.83 2.829-1.415 1.414-4.243-1.414z"})));var Ga,Ka;function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$a.apply(null,arguments)}const Wa=e=>r.createElement("svg",$a({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ga||(Ga=r.createElement("path",{stroke:"#111212",strokeWidth:2,d:"M4 4h16v16H4z"})),Ka||(Ka=r.createElement("path",{fill:"#fff",d:"M5 3h2v2H5zM17 3h2v2h-2zM3 5h2v2H3zM19 5h2v2h-2zM19 17h2v2h-2zM17 19h2v2h-2zM5 19h2v2H5zM3 17h2v2H3z"})));var Xa;function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ya.apply(null,arguments)}const Ja=e=>r.createElement("svg",Ya({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Xa||(Xa=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M5 4h10v4h4v7H5zM3 15V2.992C3 2.444 3.447 2 3.999 2H16l5 5v15H3v-7",clipRule:"evenodd"})));var Za;function Qa(){return Qa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Qa.apply(null,arguments)}const eo=e=>r.createElement("svg",Qa({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Za||(Za=r.createElement("path",{fill:"#111212",d:"M14 3v2H4v13.385L5.763 17H20v-7h2v8a1 1 0 0 1-1 1H6.455L2 22.5V4a1 1 0 0 1 1-1zm5 0V0h2v3h3v2h-3v3h-2V5h-3V3z"})));var to;function no(){return no=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},no.apply(null,arguments)}const io=e=>r.createElement("svg",no({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),to||(to=r.createElement("path",{fill:"#111212",d:"M5 5v14h14V5zM4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m5.869 12-.82 2H6.833L11 7h2l4.167 10H14.95l-.82-2zm.82-2h2.623L12 9.8z"})));var ro;function ao(){return ao=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ao.apply(null,arguments)}const oo=e=>r.createElement("svg",ao({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 164.43 140.39"},e),ro||(ro=r.createElement("path",{d:"M42.44 51.36c-7.42-9.26-10.54-18-11.82-23.16h23.65c-1.28 5.17-4.4 13.9-11.82 23.16m42.5-23.16V11.84h-34.3V0H34.3v11.84H0v16.35h13.92c1.14 6.35 4.89 20.37 16.86 34.74C23.17 69.02 13.2 74.77.12 79.26l5.31 15.47c15.83-5.44 27.86-12.56 37.02-20.18 9.16 7.62 21.18 14.74 37.02 20.18l5.31-15.47C71.7 74.77 61.73 69.02 54.12 62.93c11.96-14.37 15.72-28.39 16.86-34.74h13.99ZM117.18 67.37l-13.59 38.84h27.58l-13.98-38.84Zm-25.5 73.02H70.71l38.84-95.8h16.96l37.93 95.8h-21.1l-6.99-18.77h-37.8l-6.86 18.77Z",className:"translate_svg__cls-1"})));var so;function lo(){return lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lo.apply(null,arguments)}const co=e=>r.createElement("svg",lo({xmlns:"http://www.w3.org/2000/svg",fill:"
2currentColor",viewBox:"0 0 24 24"},e),so||(so=r.createElement("path",{d:"M14 18.997h7v2h-9l-3.998.002-6.487-6.488a1 1 0 0 1 0-1.414L12.12 2.491a1 1 0 0 1 1.414 0l7.779 7.778a1 1 0 0 1 0 1.414zm1.657-4.486 3.535-3.535-6.364-6.364-3.535 3.535z"})));var uo;!function(e){e[e.PEN=0]="PEN"}(uo||(uo={}));const po=r.createContext(null),ho=()=>(0,r.useContext)(po),mo=({children:e})=>{const t=(0,J.Ay)(J.ml),[n,a]=(0,r.useState)([]),[o,s]=(0,r.useState)([]),{dauEdits:l,page:c,numPages:d,addDauEdit:u,isDoublePage:p,documentDimensions:h,tool:m,checkSelectThreshold:g,isTemporalZooming:f}=au(),v=(0,r.useRef)(),[b,y]=(0,r.useState)(null),[x,w]=(0,r.useState)(5),{currentVersion:k}=(0,Ia.BU)(),[A,T]=(0,r.useState)([]),[S,E]=(0,r.useState)([]),I=p&&c>0&&c<d;(0,r.useEffect)((()=>{if(h&&void 0!==h.width){const e=l.filter((e=>{const t=void 0!==c?c:1;return e.page==t.toString()&&("draw"===e.tool||"marker"===e.tool)}));T(e);const t=l.filter((e=>{const t=void 0!==c?c+1:2;return e.page==t.toString()&&("draw"===e.tool||"marker"===e.tool)}));E(t)}}),[l,c,h]);const C=(0,r.useRef)(!1),_=(0,r.useCallback)(((e,t)=>{"color"===e&&y(t),"stroke"===e&&w(t)}),[]),j=(0,r.useCallback)((()=>(I?(null==h?void 0:h.width)/2:null==h?void 0:h.width)/tu/nu),[I,h]),N=(0,r.useCallback)(((e,t=!1)=>{const n=null==h?void 0:h.width,i=null==h?void 0:h.height,r=[],a=I?2*tu:tu;return e.forEach(((e,o)=>{o%2==0?t?r.push(n/a*e+n/2):r.push(n/a*e):r.push(i/tu*e)})),r}),[I,h]),L=(0,r.useCallback)((e=>{const t=null==h?void 0:h.width,n=null==h?void 0:h.height;let i=e.x;I&&e.x>t/2&&(i=e.x-t/2);return{x:I?i/t*tu*2:i/t*tu,y:e.y/n*tu}}),[I,h]),P=(0,r.useCallback)(((e,t)=>{const n=null==h?void 0:h.width,i=null==h?void 0:h.height,r=t?e.x+tu:e.x;return{x:I?n*(r/tu)/2:n*(r/tu),y:i/tu*e.y}}),[I,h]);(0,r.useEffect)((()=>{const e=[],t=[];h&&(null==A||A.forEach((n=>{const i=P({x:n.data.x,y:n.data.y},!1);e.push(n.data),t.push(Object.assign(Object.assign({},n.data),{strokeWidth:n.data.normedStroke*j(),x:i.x,y:i.y,points:N(n.data.points),tool:n.tool}))})),p&&(null==S||S.forEach((n=>{const i=P({x:n.data.x,y:n.data.y},0!==c);e.push(n.data),t.push(Object.assign(Object.assign({},n.data),{strokeWidth:n.data.normedStroke*j(),x:i.x,y:i.y,points:N(n.data.points),tool:n.tool}))})))),a(e),s(t)}),[N,A,P,S,p,j,h,c]);const D=e=>{var t;e&&(null===(t=e.evt)||void 0===t||t.preventDefault(),e.cancelBubble=!0)},M=(0,r.useCallback)((e=>{D(e),C.current=!0;const t=e.target.getStage().getPointerPosition(),i=L(e.target.getStage().getPointerPosition()),r=(0,Bn.A)(),l=null==h?void 0:h.width;p&&t.x>l/2&&0!==c&&c<d&&(v.current=!0),a([...n,{tool:uo.PEN,stroke:b,strokeWidth:x,normedStroke:x,points:[i.x,i.y],id:r,rotation:0,x:0,y:0}]),s([...o,{tool:uo.PEN,stroke:b,strokeWidth:x*j(),normedStroke:x,points:[t.x,t.y],id:r,rotation:0,x:0,y:0}])}),[L,null==h?void 0:h.width,p,c,d,n,b,x,o,j]),O=(0,r.useCallback)((e=>{if(f.current)return void(C.current&&(C.current=!1));if(D(e),!C.current)return;t&&document.querySelector("body").classList.add("overflow-hidden");const i=null==h?void 0:h.width,r=e.target.getStage().getPointerPosition();I&&v.current&&r.x<=i/2&&(r.x=i/2+1),I&&!v.current&&r.x>=i/2&&(r.x=i/2-1);const l=L(r),c=n[n.length-1],d=o[o.length-1];c.points=c.points.concat([l.x,l.y]),d.points=d.points.concat([r.x,r.y]),n.splice(n.length-1,1,c),o.splice(o.length-1,1,d),a([...n]),s([...o])}),[f,n,o,L,I,h,t]),R=(0,r.useCallback)((e=>{var i,r;if(D(e),C.current){C.current=!1,t&&document.querySelector("body").classList.remove("overflow-hidden");const a=v.current||0===c?c+1:c,o=n[n.length-1]&&n[n.length-1].points?n[n.length-1].points.length:0;if(o<=2){if(g(null===(r=null===(i=e.target)||void 0===i?void 0:i.attrs)||void 0===r?void 0:r.id))return void(v.current=null);if(2===o){const e=n[n.length-1].points[0]+.1,t=n[n.length-1].points[1]-.1;n[n.length-1].points.push(e),n[n.length-1].points.push(t)}}u({dauEditId:n[n.length-1].id,versionId:"-1"!==k.versionId?k.versionId:void 0,tool:m===ts.DRAW||m===ts.MARKER?m:ts.DRAW,data:n[n.length-1],page:a.toString(),modified:Date.now()}),v.current=null}}),[t,c,n,u,k.versionId,m,g]),z=(0,r.useCallback)((()=>{const e=[];
2n.forEach((t=>{const n=S.find((e=>e.data.id===t.id));e.push(Object.assign(Object.assign({},t),{strokeWidth:t.strokeWidth*j(),points:N(t.points,!!n)}))})),s(e)}),[n,N,j,S]),B=(e,t)=>{const i=(e=>{const t=null==h?void 0:h.width,n=null==h?void 0:h.height,i=[],r=I?2*tu:tu;return e.forEach(((e,a)=>{a%2==0?i.push(e/t*r):i.push(e/n*tu)})),i})(e.points?e.points:e.event.target.attrs.points),r=L({x:e.x,y:e.y});let a=0===c?c+1:c;if(I){const t=null==h?void 0:h.width;e.x>t/2&&(a=c+1)}const s=n.find((e=>e.id===t)),l=o.find((e=>e.id===t));u({tool:l.tool,versionId:"-1"!==k.versionId?k.versionId:void 0,dauEditId:t,modified:Date.now(),page:a.toString(),data:{id:t,tool:uo.PEN,stroke:e.event.target.attrs.stroke,strokeWidth:s.strokeWidth,normedStroke:s.normedStroke,points:i,rotation:e.rotation?e.rotation:s.rotation,x:r.x,y:r.y}})};return(0,r.useEffect)((()=>(window.addEventListener("resize",z),()=>window.removeEventListener("resize",z))),[z]),(0,i.jsx)(po.Provider,{value:{moveLine:B,setDefaultConfig:_,defaultColor:b,transformLine:(e,t)=>{const n=e.node,i=n.points().filter((e=>!isNaN(e)));if(i&&i.length>0){const r=[];for(let e=0;e<i.length/2;e++){const t={x:i[2*e]*n.scaleX(),y:i[2*e+1]*n.scaleY()};r.push(t.x,t.y)}e.points=r,e.x=n.x(),e.y=n.y(),e.rotation=n.rotation(),n.scaleY(1),n.scaleX(1),n.points(r),B(e,t)}},attributeChange:(e,t)=>
2{const i=n.find((t=>t.id===e)),r=o.find((t=>t.id===e));let a=0===c?c+1:c;if(I){const e=null==h?void 0:h.width;t.x>=e/2&&(a=c+1)}u({tool:r.tool,dauEditId:e,versionId:"-1"!==k.versionId?k.versionId:void 0,modified:Date.now(),page:a.toString(),data:Object.assign(Object.assign({},i),{id:e,tool:uo.PEN,stroke:t.stroke||i.stroke,normedStroke:t.strokeWidth||i.strokeWidth})})},lines:o,handleMouseUp:R,handleResize:z,handleMouseMove:O,handleMouseDown:M},children:e})};var go,fo=n(61654),vo=n(41146);function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},bo.apply(null,arguments)}const yo=e=>r.createElement("svg",bo({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),go||(go=r.createElement("path",{fill:"#111212",d:"M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"})));var xo=n(92174),wo={};wo.styleTagTransform=q(),wo.setAttributes=B(),wo.insert=R().bind(null,"head"),wo.domAPI=M(),wo.insertStyleElement=F();P()(xo.A,wo);xo.A&&xo.A.locals&&xo.A.locals;var ko=n(66961);const Ao=({color:e,onChangeComplete:t,type:n})=>{const{setEnableKeyboardNavigation:a}=(0,Pe.Us)();return(0,r.useEffect)((()=>{const e=()=>a(!1),t=()=>a(!0),n=document.querySelector(".chrome-picker");if(n){const i=n.querySelectorAll("input");null==i||i.forEach((n=>(n.addEventListener("focus",e),n.addEventListener("blur",t),()=>{n.removeEventListener("focus",e),n.removeEventListener("blur",t)})))}}),[a,n]),(0,i.jsx)(ko.xk,{color:e,onChangeComplete:t})};var To=n(1062),So={};So.styleTagTransform=q(),So.setAttributes=B(),So.insert=R().bind(null,"head"),So.domAPI=M(),So.insertStyleElement=F();P()(To.A,So);To.A&&To.A.locals&&To.A.locals;const Eo=e=>{const{setEnableKeyboardNavigation:t}=(0,Pe.Us)();return(0,i.jsx)(Ke.p,Object.assign({onFocus:()=>t(!1),onBlur:()=>t(!0)},e))},Io=({color:e,onColorChange:t,stroke:n,onStrokeChange:a,type:o,isReversed:s})=>{const{t:l}=(0,k.Bd)(),[c,d]=(0,r.useState)(n),u=e=>{(""===e||""!==e&&parseInt(e)>0)&&(d(Number(e)),""!==e&&a(parseInt(e)))};return(0,i.jsxs)("div",{className:"custom-color-picker "+(s?"custom-color-picker--reversed":""),children:["stroke"===o&&(0,i.jsx)("div",{className:"custom-color-picker__stroke",children:(0,i.jsxs)("fieldset",{children:[(0,i.jsx)("legend",{children:l("dau.tools.config.strokeWidthLabel")}),(0,i.jsxs)("div",{className:"custom-color-picker__stroke-input",children:[(0,i.jsx)(N.$,{ariaLabel:l("dau.tools.config.strokeWidthSubtstractAria"),onClick:()=>u((n-1).toString()),variant:"plain",icon:(0,i.jsx)(Ue.I,{source:ki})}),(0,i.jsx)(Eo,{ariaLabel:l("dau.tools.config.strokeWidthInputAria"),value:c,onChange:e=>u(e.target.value)}),(0,i.jsx)(N.$,{ariaLabel:l("dau.tools.config.strokeWidthAddAria"),onClick:()=>u((n+1).toString()),variant:"plain",icon:(0,i.jsx)(Ue.I,{source:yo})})]})]})}),(0,i.jsx)(Ao,{color:e,onChangeComplete:t,type:o})]})};var Co=n(44115);function _o(e,t,n,i,r){const a=Math.sqrt(n*n+i*i);r+=Math.atan2(i,n);return{x:e+a*Math.cos(r),y:t+a*Math.sin(r)}}function jo(e){let t=1/0,n=1/0,i=-1/0,r=-1/0;return e.forEach((e=>{t=Math.min(t,e.x),n=Math.min(n,e.y),i=Math.max(i,e.x+e.width),r=Math.max(r,e.y+e.height)})),{x:t,y:n,width:i-t,height:r-n}}const No=({Component:e,onDragEnd:t,onTransform:n,props:a,menu:o=null,colorPickerVisible:s="",onChangeColor:l=null,config:c=null,onStrokeChange:d=null,onClick:u=null,onDoubleClick:p=null,onTap:h=null,onClose:m=null,onDrag:g=null,rotateEnabled:f=!0,menuProps:v=null,setMenuProps:b=null,isMenuTop:y=!1,setIsMenuTop:x=null,onPointerEnter:w=null,userTransformedTextBoxManually:A=!1})=>{const{selectedDauEditId:T,setSelectedDauEditId:S,deleteSelected:E,deleteDauEdit:I,setTool:C,tool:_,isMouseDown:j}=au(),[L,P]=(0,r.useState)({top:"0"}),[D,M]=(0,r.useState)(!1),{t:O}=(0,k.Bd)(),R=r.useRef(null),z=r.useRef(null);(0,r.useEffect)((()=>{var e,t;a.id===T&&(null===(e=z.current)||void 0===e||e.nodes([R.current]),null===(t=z.current)||void 0===t||t.getLayer().batchDraw())}),[a.id,T]);const B=e=>{let t=e.target.getClientRect().x+e.target.getClientRect().width/2;t>e.target.getStage().attrs.width-120?t=e.target.getStage().attrs.width-120:t<120&&(t=120);let n=e.target.getClientRect().y+e.target.getClientRect().height+10;n>e.target.getStage().attrs.height/2+e.target.getClientRect().height/2?(n=e.target.getClientRect().y-10,x(!0)):x(!1),b({to
2p:n+"px",left:t+"px"})},U=e=>{C(a.tool);S(a.id)&&(B(e),M(!0),u&&u(),h&&h())},F=()=>{I(a.id)},[V,q]=(0,r.useState)(a[s]);(0,r.useEffect)((()=>{q(a[s])}),[s,a]);(0,r.useEffect)((()=>{var e;if(D&&T===a.id){const t=null===(e=document.querySelector("#spawn-point"))||void 0===e?void 0:e.getBoundingClientRect();if(t){const e=(null==a?void 0:a.tool)!==ts.TEXT||y?void 0:document.getElementById("textinput"+a.id);if(e){const n=e.getBoundingClientRect(),i=n.top+n.height+window.scrollY+5;P({top:i+"px",left:t.left+"px"})}else P({top:t.top+window.scrollY+"px",left:t.left+"px"})}}}),[v,D,T,a,null==a?void 0:a.text,y,A]);const H=()=>{a.id===T?document.querySelector("#drawing-layer").style.cursor="move":j&&_===ts.ERASER&&F()},G=()=>{document.querySelector("#drawing-layer").style.cursor=""};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(e,Object.assign({forwardedRef:R,draggable:a.id===T,onMouseEnter:H,onMouseLeave:G,onTouchEnter:H,onTouchLeave:G,onTransformEnd:e=>{const t=R.current;n({event:e,node:t,transformer:z.current}),B(e),M(!0)},onTransformStart:()=>{M(!1)},onDragEnd:e=>{t({x:e.target.x(),y:e.target.y(),event:e}),B(e),M(!0)},onDragStart:()=>{M(!1)},onClick:_===ts.ERASER?F:U,onTap:_===ts.ERASER?F:U,onDblClick:()=>{p&&p()},onDragMove:()=>{const e=jo(z.current.nodes().map((e=>e.getClientRect())));z.current.nodes().forEach((t=>{const n=t.getAbsolutePosition(),i=e.x-n.x,r=e.y-n.y,a=Object.assign({},n);e.x<0&&(a.x=-i),e.y<0&&(a.y=-r),e.x+e.width>z.current.getStage().width()&&(a.x=z.current.getStage().width()-e.width-i),e.y+e.height>z.current.getStage().height()&&(a.y=z.current.getStage().height()-e.height-r),t.setAbsolutePosition(a),g&&g(a)}))}},a)),a.id===T&&(0,i.jsx)(fo.Ge,{ref:z,rotateEnabled:f,boundBoxFunc:(e,t)=>{if(t.width<5||t.height<5)return e;const n=function(e){const{x:t,y:n,width:i,height:r}=e,a=e.rotation,o=_o(t,n,0,0,a),s=_o(t,n,i,0,a),l=_o(t,n,i,r,a),c=_o(t,n,0,r,a),d=Math.min(o.x,s.x,l.x,c.x),u=Math.min(o.y,s.y,l.y,c.y);return{x:d,y:u,width:Math.max(o.x,s.x,l.x,c.x)-d,height:Math.max(o.y,s.y,l.y,c.y)-u}}(t);return n.x<0||n.y<0||n.x+n.width>z.current.getStage().width()||n.y+n.height>z.current.getStage().height()?_===ts.DRAW||_===ts.MARKER?Object.assign(Object.assign({},e),{x:e.x<0?0:n.x+n.width>z.current.getStage().width()&&n.width>e.width?z.current.getStage().width()-n.width:e.x,y:e.y<0?0:n.y+n.height>z.current.getStage().height()&&n.height>e.height?z.current.getStage().height()-n.height:e.y}):e:t},onPointerEnter:w}),o&&T===a.id&&D&&(0,i.jsxs)(vo.Ed,{divProps:{style:Object.assign({},v)},children:[(0,i.jsx)("div",{id:"spawn-point"}),(0,i.jsx)(Co.Z,{container:document.getElementById("fullscreen-container"),children:(0,i.jsxs)("div",{className:"dau-edit-menu__portal "+(y?"-translate-y-full flex-col-reverse":""),style:Object.assign({},L),children:[(0,i.jsxs)("div",{className:"dau-edit-menu",id:"modal",children:[o,(0,i.jsx)(N.$,{className:"dau-edit-menu__delete",ariaLabel:O("dau.tools.config.delete"),title:O("dau.tools.config.delete"),onClick:E,icon:(0,i.jsx)(Ue.I,{source:Cr})}),(0,i.jsx)(N.$,{variant:"plain",onClick:()=>{M(!1),m&&m()},children:"OK"})]}),""!==s&&(0,i.jsx)(Io,{isReversed:y,type:s,color:V,onColorChange:e=>{l(e),"1"!==e.rgb.a?q(e.rgb):q(e.hex)},stroke:parseInt(a.strokeInput),onStrokeChange:d}),c&&c.map(((e,t)=>{if(e.visible)return(0,i.jsx)("div",{children:e.element},t)}))]})})]})]})};var Lo,Po,Do,Mo;function Oo(){return Oo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Oo.apply(null,arguments)}const Ro=e=>r.createElement("svg",Oo({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),r.createElement("mask",{id:"change-shape-base_svg__a",width:20,height:20,x:2,y:2,maskUnits:"userSpaceOnUse",style:{maskType:"alpha"}},Lo||(Lo=r.createElement("circle",{cx:12,cy:12,r:10,fill:"#F7F7F7"}))),Po||(Po=r.createElement("g",{fill:"#DDD",mask:"url(#change-shape-base_svg__a)"},r.createElement("path",{d:"M2 10h4v4H2zM6 14h4v4H6zM10 10h4v4h-4zM14 14h4v4h-4zM18 10h4v4h-4zM2 18h4v4H2zM10 18h4v4h-4zM18 18h4v4h-4zM2 2h4v4H2zM6 6h4v4H6zM10 2h4v4h-4zM14 6h4v4h-4zM18 2h4v4h-4z"}))),Do||(Do=r.createElement("circle",{cx:12,cy:12,r:10,fill:"#111212"})),Mo||(Mo=r.createElement("circle",{cx:12,cy:12,r:9.5,stroke:"#111212"})));var zo=n(60283),Bo={};Bo.styleTagTransform=q(),Bo.setAttributes=B(),Bo.insert=R().bind(null,"head"),Bo.domAPI=M(),Bo.insertStyleElement=F();P()(zo.A,Bo);zo.A&&zo.A.locals&&zo.A.locals;var Uo=n(76004),Fo={};Fo.styleTagTransform=q(),Fo.setAttributes=B(),Fo.insert=R().bind(null,"head"),Fo.domAPI=M(),Fo.insertStyleElement=F();P()(Uo.A,Fo);Uo.A&&Uo.A.locals&&Uo.A.locals;const Vo=(e,t,n)=>{e.style.transform="translate("+t+"px, "+n+"px)"},qo=e=>{var t,n,i;if(null===(t=e.current)||void 0===t?void 0:t.getBoundingClientRect()){const t=window.innerHeight>0?window.innerHeight:screen.height,r=document.getElementById("mobile-nav"),a=0|(null===(n=null==r?void 0:r.getBoundingClientRect())||void 0===n?void 0:n.height),o=t-(null===(i=e.current)||void 0===i?void 0:i.getBoundingClientRect().top)-window.scrollY-a;if(o>0)return o}},Ho=({setBoxHidden:e,penList:t,type:n})=>{const{t:a}=(0,k.Bd)(),{setEnableKeyboardNavigation:o}=(0,Pe.Us)(),{toolSettings:s,setToolSettings:l,deleteSelected:c,selectedDauEditId:d,setSelectedDauEditId:u}=au(),p="draw"===n?Jo:Wo,[h,m]=(0,r.useState)(p),[g,f]=(0,r.useState)(!1),[v,b]=(0,r.useState)(null),[y,x]=(0,r.useState)(),{lines:w,attributeChange:A,defaultColor:T,setDefaultConfig:S}=ho(),E="draw"===n?s.draw?{color:s.draw.color,strokeWidth:s.draw.strokeWidth}:void 0:s.marker?{color:s.marker.color,strokeWidth:s.marker.strokeWidth}:void 0,[I,C]=(0,r.useState)(E),_=e=>e.stroke.startsWith("--")?getComputedStyle(document.documentElement).getPropertyValue(e.stroke):e.stroke,j=e=>{C(e),l(Object.assign(Object.assign({},s),{[n]:e,["last"+n]:e}))},L=(0,r.useCallback)(((e,t)=>{S("color",e),"number"==typeof t&&t>=1&&S("stroke",t)}),[S]);(0,r.useEffect)((()=>{var e,i,r,a;const o="draw"==n?null===(e=null==s?void 0:s.lastdraw)||void 0===e?void 0:e.color:null===(i=null==s?void 0:s.lastmarker)||void 0===i?void 0:i.color,l="draw"==n?null===(r=null==s?void 0:s.lastdraw)||void 0===r?void 0:r.strokeWidth:null===(a=null==s?void 0:s.lastmarker)||void 0===a?void 0:a.strokeWidth;o?(m(l),L(o,l)):L(t[0].color,"draw"===n?2:13)}),[]);const P=e=>{const t=Number(e.target.value);t&&"number"==typeof t&&(m(t),L(T,t),T===(null==I?void 0:I.color)?j(Object.assign(Object.assign({},I),{strokeWidth:t})):(e=>{l(Object.assign(Object.assign({},s),{["last"+n]:{color:T,strokeWidth:e}}))})(t),(null==v?void 0:v.id)===d&&A(v.id,{strokeWidth:t,x:v.x}))};(0,r.useEffect)((()=>{d?((()=>{const e=w.find((e=>e.id===d));e&&(x(_(e)),m(e.normedStroke),b(e))})(),f(!0)):f(!1)}),[d]);const[D,M]=(0,r.useState)();return(0,r.useEffect)((()=>{const e=document.getElementById("toolConfigDiv");if(null==e?void 0:e.style)if(g){const t=(()=>{var e;const t=document.getElementById("drawingToolConfig"),n=document.querySelector(".collapsible-edit"),i=document.querySelector(".dau-edit-tools--mobile");if(t&&n){const r=t.getBoundingClientRect().height,a=n.getBoundingClientRect().height;return r>((null===(e=null==i?void 0:i.getBoundingClientRect())||void 0===e?void 0:e.he
2ight)?i.getBoundingClientRect().height:a)?(n.style.zIndex="30",a-r+"px"):(n.style.zIndex="20",null)}})();M(e.style.top),t&&(e.style.top=t)}else if(D){e.style.top=D;const t=document.querySelector(".collapsible-edit");(null==t?void 0:t.style)&&(t.style.zIndex="20")}}),[g]),(0,i.jsxs)("div",{className:"dau-penTool",children:[(0,i.jsxs)("fieldset",{children:[(0,i.jsx)("legend",{className:"dau-penTool__label",children:a("dau.tools.config.strokeWidthLabel")}),(0,i.jsxs)("div",{className:"dau-penTool__box",children:[(0,i.jsx)("input",{type:"range",min:"1",max:"draw"===n?20:40,value:h,onChange:P,className:"dau-penTool__range-slider",onFocus:()=>o(!1),onBlur:()=>o(!0)}),(0,i.jsx)(Eo,{className:"dau-penTool__range",value:h,min:1,onChange:P})]})]}),(0,i.jsx)("p",{className:"dau-penTool__label",children:a("dau.tools.config.colorLabel")}),(0,i.jsxs)("div",{className:"dau-penTool__box gap-1",children:[(I?[...t,I]:t).map((e=>(0,i.jsx)($o,{color:e.color,onClick:()=>(e=>{(null==v?void 0:v.id)===d?A(v.id,{stroke:e.color,x:v.x,strokeWidth:h}):l(Object.assign(Object.assign({},s),{["last"+n]:{color:e.color,strokeWidth:h||e.strokeWidth}})),L(e.color),f(!1)})(e)},"button-pen-"+e.color))),(0,i.jsx)(N.$,{className:"add",ariaLabel:a("dau.tools.config."+(g?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),title:a("dau.tools.config."+(g?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),variant:"plain",autofocus:!1,onClick:()=>{if(f(!g),!g){const e=v?_(v):null,t=e&&e===T?e:null,n=t||(I?I.color:"");x(n)}},icon:(0,i.jsx)(Ue.I,{source:yo})})]}),g&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"dau-penTool__colorPicker",children:(0,i.jsx)(Ao,{color:y,onChangeComplete:e=>{const t=1!==e.rgb.a?`rgba(${(n=e.rgb).r},${n.g},${n.b},${n.a})`:e.hex;var n;x(t);const i={color:t,strokeWidth:h||p,additionalColor:!0};L(i.color,i.strokeWidth),(null==v?void 0:v.id)===d&&A(v.id,{stroke:t,x:v.x,strokeWidth:h}),j(i)}})}),d&&(0,i.jsxs)("div",{className:"dau-edit-menu",children:[(0,i.jsx)(N.$,{ariaLabel:a("dau.tools.config.currentColor")+" "+y,title:a("dau.tools.config.currentColor")+" "+y,variant:"plain",children:(0,i.jsx)("span",{className:"divider",style:{backgroundColor:y}})}),(0,i.jsx)(N.$,{className:"dau-edit-menu__delete",ariaLabel:a("dau.tools.config.delete"),title:a("dau.tools.config.delete"),onClick:()=>{f(!1),c(),e(!0)},icon:(0,i.jsx)(Ue.I,{source:Cr})}),(0,i.jsx)(N.$,{variant:"plain",onClick:()=>{f(!1),b(null),u(null)},children:a("dau.tools.config.confirm")})]})]})]})};var Go=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Ko=e=>{var{forwardedRef:t}=e,n=Go(e,["forwardedRef"]);return(0,i.jsx)(fo.N1,Object.assign({ref:t,tension:.5,lineCap:"round",lineJoin:"round",globalCompositeOperation:"source-over"},n))},$o=({color:e,onClick:t})=>{const{t:n}=(0,k.Bd)(),{defaultColor:r}=ho(),a=(()=>{const t=e.match(/-(\w+)$/);return t&&t.length>0?n("dau.tools.config.colorLabel")+" "+n(`dau.tools.config.color.${t[1]}`):n("dau.tools.config.color.custom",{colorCode:e})})();return(0,i.jsx)(N.$,{onClick:t,icon:(0,i.jsx)(Ue.I,{className:r===e&&"ring-2 ring-textStrong rounded-full",source:Ro}),style:{color:(null==e?void 0:e.includes("rgba"))||(null==e?void 0:e.startsWith("#"))?e:`var(${e})`},ariaLabel:a,title:a})},Wo=13,Xo=[{color:"--marker-yellow",strokeWidth:Wo},{color:"--marker-orange",strokeWidth:Wo},{color:"--marker-green",strokeWidth:Wo}],Yo=({setBoxHidden:e})=>{const{toolSettings:t,isMouseDown:n}=au(),a=t.markerList?t.markerList:Xo;return(0,r.useEffect)((()=>{n&&e(!0)}),[n]),(0,i.jsx)("div",{className:"shutter__config drawingTool",id:"drawingToolConfig",children:(0,i.jsx)(Ho,{penList:a,type:"marker",setBoxHidden:e})})},Jo=2,Zo=[{color:"--draw-black",strokeWidth:Jo},{color:"--draw-red",strokeWidth:Jo},{color:"--draw-blue",strokeWidth:Jo}],Qo=({setBoxHidden:e})=>{const{toolSettings:t,isMouseDown:n}=au(),a=t.drawList?t.drawList:Zo;return(0,r.useEffect)((()=>{n&&e(!0)}),[n]),(0,i.jsx)("div",{className:"shutter__config drawingTool",id:"drawingToolConfig",children:(0,i.jsx)(Ho,{penList:a,type:"draw",setBoxHidden:e})})},es=()=>{const{lines:e,moveLine:t,transformLine:n}=ho(),{tool:a}=au(),[o,s]=(0,r.useState)({top:"0"}),[l,c]=(0,r.useState)(!1),d=(0,r.useCallback)((e=>a&&ts.ERASER!==a?e.strokeWidth:(e=>{if(e.strokeWidth<50){const t=(e=>{let t=e[0],n=e[1],i=e[0],r=e[1];for(let a=0;a<e.length;a+=2){const o=e[a],s=e[a+1];o<t&&(t=o),o>i&&(i=o),s<n&&(n=s),s>r&&(r=s)}return[t,n,i-t,r-n]})(e.points);if(t[2]<50&&t[3]<50)return 50}return e.strokeWidth>25?e.strokeWidth:25})(e)),[a]);return(0,i.jsx)(i.Fragment,{children:e.map(((e,r)=>{var a;return(0,i.jsx)(No,{Component:Ko,onDragEnd:n=>{return i=n,r=e.id,void t(i,r);var i,r},onTransform:t=>{return i=t,r=e.id,void n(i,r);var i,r},props:{id:e.id,tool:e.tool,points:e.points,stroke:(null===(a=e.stroke)||void 0===a?void 0:a.startsWith("--"))?getComputedStyle(document.documentElement).getPropertyValue(e.stroke):e.stroke,strokeWidth:e.strokeWidth,strokeInput:e.normedStroke,tension:.5,rotation:e.rotation,x:e.x,y:e.y,hitStrokeWidth:d(e)},menuProps:o,setMenuProps:s,isMenuTop:l,setIsMenuTop:c,onPointerEnter:e=>{if("rotater _anchor"===e.target.attrs.name){e.target.getStage().content.style.cursor="url(loop-right-line.cur) 12 12, grab"}}},r)}))})};var ts;!function(e){e.DRAW="draw",e.SHAPE="shape",e.SHUTTERS="shutters",e.NOTE="note",e.TEXT="text",e.MARKER="marker",e.GRAB="grab",e.TRANSLATE="translate",e.ERASER="eraser"}(ts||(ts={}));const ns={lastdraw:void 0,draw:void 0,drawList:Zo,marker:void 0,markerList:Xo,lastmarker:void 0,shape:{fill:"#006688",stroke:"#000",strokeWidth:3,strokeWidthNormed:3},text:{textColor:"#000000",fontSize:9,fontSizeNormed:9,backgroundColor:"#f4eb2b33"}};var is;!function(e){e[e.LEFT=0]="LEFT",e[e.RIGHT=1]="RIGHT",e[e.SINGLE=2]="SINGLE"}(is||(is={}));const rs=(e,t)=>
2e.startsWith("-1")?e.substring(2):"-1"!==t&&e.length>t.length?e.substring(t.length):e,as=r.createContext(null),os=()=>(0,r.useContext)(as),ss=({children:e})=>{const[t,n]=(0,r.useState)(),[a,o]=(0,r.useState)(),{dauEdits:s,page:l,addDauEdit:c,deleteDauEdit:d,isDoublePage:u,documentDimensions:p,numPages:h}=au(),{currentVersion:m}=(0,Ia.BU)(),[g,f]=(0,r.useState)([]),[v,b]=(0,r.useState)([]);(0,r.useEffect)((()=>{if(p&&void 0!==p.height){const e=s.filter((e=>{const t=void 0!==l?l:1;return e.page==t.toString()&&e.tool===ts.SHUTTERS}));f(e);const t=s.filter((e=>{const t=void 0!==l?l+1:2;return e.page==t.toString()&&e.tool===ts.SHUTTERS}));b(t)}}),[s,l,p]);const y=(0,r.useCallback)((e=>{const t=p.height;return{height:e.height/t*tu,direction:e.direction,id:e.id,side:e.side}}),[p]),x=(0,r.useCallback)(((e,t)=>{const n=p.height,i=u&&l>0&&l<h?t?is.RIGHT:is.LEFT:is.SINGLE;return{height:n*(e.height/tu),direction:e.direction,id:e.id,side:i}}),[p,u,l,h]);(0,r.useEffect)((()=>{const e=[],t=[];if(g||v){const i=new Map;g&&g.forEach((e=>{i.set(e.data.id,e)}),[]),v&&u&&v.forEach((e=>{i.set(e.data.id,e)}),[]),Array.from(i.values()).forEach((n=>{t.push(n.data),e.push(x(n.data,n.page!=l.toString()))})),n(e),o(t)}}),[x,g,v,u,l]);const w=(0,r.useCallback)(((e,n)=>{const i=t.find((e=>e.id===n)),r=rs(i.id,m.versionId),a={tool:ts.SHUTTERS,versionId:"-1"!==m.versionId?m.versionId:void 0,dauEditId:r,modified:Date.now(),page:(i.side===is.RIGHT?l+1:l).toString(),data:y(Object.assign(Object.assign({},i),e))};c(a,r!==i.id?i.id:void 0)}),[t,l,y,m,c]),k=(0,r.useCallback)(((e,t)=>{const n=e.node,i=n.scaleY();e.width=n.width(),e.height=Math.max(5,n.height()*i),e.x=n.x(),e.y=n.y(),n.scaleY(1),n.scaleX(1),n.width(e.width),n.height(e.height),w(e,t)}),[w]),A=(0,r.useCallback)((()=>{const e=null==p?void 0:p.width,i=null==p?void 0:p.height,r=[];e&&i&&(t.forEach(((t,n)=>{r.push(Object.assign(Object.assign({},t),{width:e,height:i*(a[n].height/tu)}))})),n([...r]))}),[t,a,p]);return(0,r.useEffect)((()=>(window.addEventListener("resize",A),()=>window.removeEventListener("resize",A))),[A]),(0,i.jsx)(as.Provider,{value:{shutters:t,toggleShutter:(e,t,n,i)=>{i?c({tool:ts.SHUTTERS,versionId:"-1"!==m.versionId?m.versionId:void 0,dauEditId:e,modified:Date.now(),page:t,data:{height:10,direction:n,id:e,side:is.SINGLE}}):d(e)},transformShutter:k},children:e})};function ls(e,t,n,i){const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-dau-learning-progress",t,n],queryFn:async()=>(await r.get("/digital/sessionedmap/"+t+(n||""))).data,retry:!1,enabled:e});return(0,S.V)(o,i||{message:a("error.dau.failGetDauLearningProgress")})}n(40157);const cs=(e,t,n,i,r)=>{const a=t/100*n;return r&&e<t?e+a>t?t-a:e:e+a>i?i-a:e},ds=(e,t,n=0)=>Math.abs(t-e-n),us=(e,t,n)=>{const i=n/100*t;return e+i>n?n-i:e},ps=r.createContext(null),hs=()=>(0,r.useContext)(ps),ms=({children:e})=>{const[t,n]=(0,r.useState)([]),[a,o]=(0,r.useState)([]),[s,l]=(0,r.useState)(!1),{page:c,dauEdits:d,addDauEdit:u,isDoublePage:p,documentDimensions:h,numPages:m}=au(),{currentVersion:g}=(0,Ia.BU)(),f=p&&c>0&&c<m,[v,b]=(0,r.useState)([]),[y,x]=(0,r.useState)([]);(0,r.useEffect)((()=>{if(h&&void 0!==h.height){const e=d.filter((e=>{const t=void 0!==c?c:1;return e.page===t.toString()&&e.tool===ts.NOTE}));b(e);const t=d.filter((e=>{const t=void 0!==c?c+1:2;return e.page===t.toString()&&e.tool===ts.NOTE}));x(t)}}),[d,c,h]);const w=(0,r.useCallback)((e=>{const t=null==h?void 0:h.width,n=null==h?void 0:h.height;let i=e.x;f&&e.x>t/2&&(i=e.x-t/2);return{x:f?i/t*tu*2:i/t*tu,y:e.y/n*tu}}),[f,h]),k=(0,r.useCallback)((e=>{if(s)return void l(!1);const t=e.target===e.target.getStage(),n=e.target.getStage().getPointerPosition(),i=f?(null==h?void 0:h.width)/2:null==h?void 0:h.width,r={x:cs(n.x,i,8,null==h?void 0:h.width,f),y:us(n.y,5,h.height)},a=w(r);let o=0===c?c+1:c;if(f&&(r.x>i||0===c)&&(o=c+1),t){const e=(0,Bn.A)();u({dauEditId:e,versionId:"-1"!==g.versionId?g.versionId:void 0,tool:ts.NOTE,data:{currentlyCreated:!0,visible:!0,x:a.x,y:a.y,rotation:0,id:e,text:"",width:10,height:5},page:o.toString(),modified:Date.now()})}}),[s,u,c,w,f,g,h]),A=(0,r.useCallback)((e=>{const t=h.width,n=h.height;let i=e.x;f&&e.x>t/2&&(i=e.x-t/2);const r=f?i/t*tu*2:i/t*tu;return{id:e.id,rotation:e.rotation,y:e.y/n*tu,x:r,text:e.text,visible:e.visible}}),[f,h]),T=(0,r.useCallback)(((e,t)=>{const n=null==h?void 0:h.width,i=null==h?void 0:h.height,r=t?e.x+tu:e.x,a=f?n*(r/tu)/2:n*(r/tu);return Object.assign(Object.assign({},e),{x:a,y:i*(e.y/tu)})}),[f,h]);(0,r.useEffect)((()=>{const e=[],t=[];if(v||y){const i=new Map;null==v||v.forEach((e=>{i.set(e.data.id,e)}
2),[]),y&&p&&y.forEach((e=>{i.set(e.data.id,e)}),[]),Array.from(i.values()).forEach((n=>{t.push(n.data),e.push(T(n.data,0!==c&&n.page!==c.toString()))})),n(e),o(t)}}),[v,y,T,c,p]);const S=(0,r.useCallback)(((e,n)=>{const i=t.find((e=>e.id===n));let r=0===c?c+1:c;if(f){const t=null==h?void 0:h.width;e.x>t/2&&(r=c+1)}const a={tool:ts.NOTE,dauEditId:i.id,versionId:"-1"!==g.versionId?g.versionId:void 0,modified:Date.now(),page:r.toString(),data:A({id:i.id,text:e.text,rotation:i.rotation,x:e.x,y:e.y,visible:!0})};u(a)}),[t,c,A,g,u,f,h]),E=(0,r.useCallback)((()=>{const e=null==h?void 0:h.width,t=null==h?void 0:h.height,i=[];e&&t&&(a.forEach((n=>{const r=(c>0?!!y.find((e=>e.data.id===n.id)):!!v.find((e=>e.data.id===n.id)))?n.x+tu:n.x,a=f?e*(r/tu)/2:e*(r/tu);i.push(Object.assign(Object.assign({},n),{x:a,y:t*(n.y/tu)}))})),n([...i]))}),[f,a,y,v,c,h]);return(0,r.useEffect)((()=>(window.addEventListener("resize",E),()=>window.removeEventListener("resize",E))),[E]),(0,i.jsx)(ps.Provider,{value:{notes:t,moveNote:S,handleMouseUp:k,setIsDragging:l},children:e})},gs={x:10,y:10,width:20,height:20,rotation:0},fs=r.createContext(null),vs=()=>(0,r.useContext)(fs),bs=({children:e})=>{const[t,n]=(0,r.useState)([]),[a,o]=(0,r.useState)([]),{page:s,dauEdits:l,addDauEdit:c,isDoublePage:d,documentDimensions:u,numPages:p}=au(),{currentVersion:h}=(0,Ia.BU)(),{toolSettings:m}=au(),g=d&&s>0&&s<p,[f,v]=(0,r.useState)([]),[b,y]=(0,r.useState)([]);(0,r.useEffect)((()=>{if(u&&void 0!==u.height){const e=l.filter((e=>{const t=void 0!==s?s:1;return e.page===t.toString()&&e.tool===ts.SHAPE}));v(e);const t=l.filter((e=>{const t=void 0!==s?s+1:2;return e.page===t.toString()&&e.tool===ts.SHAPE}));y(t)}}),[l,s,u]);const x=(0,r.useCallback)((()=>(g?(null==u?void 0:u.width)/2:null==u?void 0:u.width)/tu/nu),[g,u]),w=(0,r.useCallback)(((e,t)=>{const n=null==u?void 0:u.width,i=null==u?void 0:u.height,r=t?e.x+tu:e.x,a=g?n*(r/tu)/2:n*(r/tu),o=g?n*(e.width/tu)/2:n*(e.width/tu);return Object.assign(Object.assign({},e),{x:a,y:i*(e.y/tu),width:o,strokeWidth:e.strokeWidthNormed*x(),height:i*(e.height/tu),tool:ts.SHAPE})}),[g,x,u]),k=(0,r.useCallback)((e=>{const t=null==u?void 0:u.width,n=null==u?void 0:u.height;let i=e.x;g&&e.x>t/2&&(i=e.x-t/2);return{x:g?i/t*tu*2:i/t*tu,y:e.y/n*tu}}),[g,u]);(0,r.useEffect)((()=>{const e=[],t=[];if(f||b){const i=new Map;f&&f.forEach((e=>{i.set(e.data.id,e)}),[]),b&&d&&b.forEach((e=>{i.set(e.data.id,e)}),[]),Array.from(i.values()).forEach((n=>{t.push(n.data),e.push(w(n.data,0!==s&&n.page!==s.toString()))})),o(e),n(t)}}),[f,w,b,d,s]);const A=(0,r.useCallback)((()=>{}),[]),T=(0,r.useCallback)((()=>{}),[]),S=(0,r.useCallback)((e=>{const t=e.target===e.target.getStage(),n=e.target.getStage().getPointerPosition(),i=g?(null==u?void 0:u.width)/2:null==u?void 0:u.width,r={x:cs(n.x,i,gs.width,null==u?void 0:u.width,g),y:us(n.y,gs.height,u.height)},a=k(r);let o=0===s?s+1:s;if(g&&r.x>i&&(o=s+1),t){const e=(0,Bn.A)();c({dauEditId:e,tool:ts.SHAPE,versionId:"-1"!==h.versionId?h.versionId:void 0,data:Object.assign(Object.assign(Object.assign({},gs),{fill:getComputedStyle(document.documentElement).getPropertyValue("--primary"),x:a.x,y:a.y,id:e}),null==m?void 0:m.shape),page:o.toString(),modified:Date.now()})}}),[s,g,k,c,h,u,null==m?void 0:m.shape]),E=(0,r.useCallback)((e=>{const t=null==u?void 0:u.width,n=null==u?void 0:u.height;let i=e.x;const r=e.width;g&&e.x>t/2&&(i=e.x-t/2);const a=g?i/t*tu*2:i/t*tu,o=g?r/t*tu*2:r/t*tu;return{id:e.id,rotation:e.rotation,stroke:e.stroke,strokeWidth:e.strokeWidth*x(),strokeWidthNormed:e.strokeWidthNormed,fill:e.fill,height:e.height/n*tu,width:o,y:e.y/n*tu,x:a}}),[g,x,u]),I=(0,r.useCallback)(((e,t)=>{const n=a.find((e=>e.id===t));let i=0===s?s+1:s;if(g){const t=null==u?void 0:u.width;e.x>t/2&&(i=s+1)}const r={tool:ts.SHAPE,dauEditId:n.id,versionId:"-1"!==h.versionId?h.versionId:void 0,modified:Date.now(),page:i.toString(),data:E(Object.assign(Object.assign(Object.assign({},n),e),{visible:!0}))};c(r)}),[a,s,g,h,E,c,u]),C=(0,r.useCallback)(((e,t)=>{const n=e.node,i=n.scaleX(),r=n.scaleY();e.width=Math.max(5,n.width()*i),e.height=Math.max(5,n.height()*r),e.x=n.x(),e.y=n.y(),e.rotation=n.rotation(),n.scaleY(1),n.scaleX(1),n.width(e.width),n.height(e.height),I(e,t)}),[I]),_=(0,r.useCallback)((()=>{const e=null==u?void 0:u.width,n=null==u?void 0:u.height,i=[];a.forEach(((r,a)=>{const o=(s>0?!!b.find((e=>e.data.id===r.id)):!!f.find((e=>e.data.id===r.id)))&&g?(t[a].x+tu)/tu:t[a].x/tu,l=g?e*(o/2):e*o,c=g?e*(t[a].width/tu)/2:e*(t[a].width/tu);i.push(Object.assign(Object.assign({},r),{x:l,y:n*(t[a].y/tu),width:c,strokeWidth:r.strokeWidthNormed*x(),height:n*(t[a].height/tu)}))})),o([...i])}),[a,t,g,b,x,u,f,s]);return(0,r.useEffect)((()=>(window.addEventListener("resize",_),()=>window.removeEventListener("resize",_))),[_]),(0,i.jsx)(fs.Provider,{value:{moveRectangle:I,transformRectangle:C,attributeChange:(e,t)=>
2{const n=a.find((t=>t.id===e));let i=0===s?s+1:s;if(g){const e=null==u?void 0:u.width;n.x>e/2&&(i=s+1)}const r={tool:ts.SHAPE,dauEditId:n.id,modified:Date.now(),versionId:"-1"!==h.versionId?h.versionId:void 0,page:i.toString(),data:E(Object.assign(Object.assign(Object.assign({},n),t),{strokeWidthNormed:t.strokeWidth||n.strokeWidthNormed}))};c(r)},shapes:a,handleMouseUp:S,handleResize:_,handleMouseMove:T,handleMouseDown:A},children:e})},ys={width:0,height:3},xs=r.createContext(null),ws=()=>(0,r.useContext)(xs),ks=({children:e})=>{const{toolSettings:t,setToolSettings:n}=au(),[a,o]=(0,r.useState)([]),[s,l]=(0,r.useState)([]),{page:c,dauEdits:d,addDauEdit:u,isDoublePage:p,documentDimensions:h,numPages:m}=au(),{currentVersion:g}=(0,Ia.BU)(),f=p&&c>0&&c<m,[v,b]=(0,r.useState)([]),[y,x]=(0,r.useState)([]);(0,r.useEffect)((()=>{if(h&&void 0!==h.height){const e=d.filter((e=>{const t=void 0!==c?c:1;return e.page===t.toString()&&e.tool===ts.TEXT}));b(e);const t=d.filter((e=>{const t=void 0!==c?c+1:2;return e.page===t.toString()&&e.tool===ts.TEXT}));x(t)}}),[d,c,h]);const w=(0,r.useCallback)((()=>(null==h?void 0:h.height)/tu/iu),[h]),k=(0,r.useCallback)((()=>5),[]),A=(0,r.useCallback)((e=>{const t=null==h?void 0:h.width,n=null==h?void 0:h.height;let i=e.x;f&&e.x>t/2&&(i=e.x-t/2);return{x:f?i/t*tu*2:i/t*tu,y:e.y/n*tu}}),[f,h]),T=(0,r.useCallback)((e=>{var n,i,r,a;const o=e.target===e.target.getStage(),s=e.target.getStage().getPointerPosition(),l=f?(null==h?void 0:h.width)/2:null==h?void 0:h.width,d=100/ns.text.fontSize*(null==t?void 0:t.text.fontSizeNormed),p=ys.width/100*d,m=ys.height/100*d,v=o?p:null===(i=null===(n=null==e?void 0:e.target)||void 0===n?void 0:n.attrs)||void 0===i?void 0:i.width,b=o?m:null===(a=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.attrs)||void 0===a?void 0:a.height,y={x:cs(s.x,l,v,null==h?void 0:h.width,f),y:((e,t,n)=>{const i=n/100*t/2,r=e-i;return r+i>n?n-i:r<0?e:r})(s.y+8,b,h.height)},x=A(y);let w=0===c?c+1:c;if(f&&y.x>l&&(w=c+1),o){const e=(0,Bn.A)(),n={width:p,height:m};u({dauEditId:e,versionId:"-1"!==g.versionId?g.versionId:void 0,tool:ts.TEXT,data:Object.assign(Object.assign(Object.assign(Object.assign({x:x.x,y:x.y,rotation:0,id:e},null==t?void 0:t.text),ys),n),{text:""}),page:w.toString(),modified:Date.now()}),(e=>{setTimeout((()=>{const t=document.querySelector("#textinput"+e);t&&t.focus()}),100)})(e)}}),[u,c,A,f,h,g,null==t?void 0:t.text]),S=(0,r.useCallback)(((e,t=!1)=>{const n=h.width,i=h.height;let r=e.x;f&&e.x>n/2&&(r=e.x-n/2);const a=document.getElementById("textinput"+e.id),o=null==a?void 0:a.getBoundingClientRect(),s=o.width+10,l=e.width,c=t?l:s,d=f?r/n*tu*2:r/n*tu,u=f?c/n*tu*2:c/n*tu,p=o.height+10,m=e.height,g=t?m:p;return{id:e.id,rotation:e.rotation,y:e.y/i*tu,x:d,text:e.text,height:g/i*tu,width:u,textColor:e.textColor,fontSize:e.fontSizeNormed*w(),fontSizeNormed:e.fontSizeNormed,backgroundColor:e.backgroundColor}}),[h,f,w]),E=(0,r.useCallback)(((e,t)=>{const n=null==h?void 0:h.width,i=null==h?void 0:h.height,r=t?e.x+tu:e.x,a=f?n*(r/tu)/2:n*(r/tu),o=f?n*(e.width/tu)/2:n*(e.width/tu);return Object.assign(Object.assign({},e),{x:a,y:i*(e.y/tu),width:o,height:i*(e.height/tu),fontSize:e.fontSizeNormed*w()})}),[f,w,h]);(0,r.useEffect)((()=>{const e=[],t=[];if(v||y){const n=new Map;null==v||v.forEach((e=>{n.set(e.data.id,e)}),[]),y&&p&&y.forEach((e=>{n.set(e.data.id,e)}),[]),Array.from(n.values()).forEach((n=>{t.push(n.data),e.push(E(n.data,0!==c&&n.page!==c.toString()))})),o(e),l(t)}}),[v,y,E,c,p]);const I=(0,r.useCallback)(((e,t,n=!1)=>{const i=a.find((e=>e.id===t));let r=0===c?c+1:c;if(f){const t=null==h?void 0:h.width;e.x>t/2&&(r=c+1)}const o={tool:ts.TEXT,dauEditId:i.id,modified:Date.now(),versionId:"-1"!==g.versionId?g.versionId:void 0,page:r.toString(),data:S({id:i.id,text:e.text,rotation:i.rotation,x:e.x,y:e.y,width:e.width,height:e.height,textColor:i.textColor,fontSize:i.fontSize,backgroundColor:i.backgroundColor,fontSizeNormed:i.fontSizeNormed},n)};u(o)}),[a,c,g,S,u,f,h]),C=(0,r.useCallback)(((e,t)=>{const n=a.find((e=>e.id===t));let i=0===c?c+1:c;if(f){const t=null==h?void 0:h.width;e.x>t/2&&(i=c+1)}const r={tool:ts.TEXT,dauEditId:n.id,versionId:"-1"!==g.versionId?g.versionId:void 0,modified:Date.now(),page:i.toString(),data:S(Object.assign(Object.assign({},n),e),!0)};u(r)}),[a,c,f,S,g,u,h]),_=(0,r.useCallback)(((e,t)=>{const n=e.node,i=n.scaleX(),r=n.scaleY();e.width=Math.max(5,n.width()*i),e.height=Math.max(5,n.height()*r),e.x=n.x(),e.y=n.y(),e.rotation=n.rotation(),n.scaleY(1),n.scaleX(1),n.width(e.width),n.height(e.height),C(e,t)}),[C]),j=(0,r.useCallback)((()=>{var e,t;const n=null===(e=document.querySelector("#drawing-layer"))||void 0===e?void 0:e.clientWidth,i=null===(t=document.querySelector("#drawing-layer"))||void 0===t?void 0:t.clientHeight,r=[];n&&i&&(s.forEach(((e,t)=>{const a=(c>0?!!y.find((t=>t.data.id===e.id)):!!v.find((t=>t.data.id===e.id)))?e.x+tu:e.x,o=f?n*(a/tu)/2:n*(a/tu),l=f?n*(s[t].width/tu)/2:n*(s[t].width/tu);r.push(Object.assign(Object.assign({},e),{x:o,y:i*(e.y/tu),width:l,height:i*(s[t].height/tu),fontSize:e.fontSizeNormed*w()}))})),o([...r]))}),[f,s,y,w,v,c]);return(0,r.useEffect)((()=>
2(window.addEventListener("resize",j),()=>window.removeEventListener("resize",j))),[j]),(0,i.jsx)(xs.Provider,{value:{texts:a,moveText:I,handleMouseUp:T,transformText:_,attributeChange:(e,i,r=!1)=>{const o=a.find((t=>t.id===e));let s=0===c?c+1:c;if(f){const e=null==h?void 0:h.width;o.x>e/2&&(s=c+1)}n(Object.assign(Object.assign({},t),{text:Object.assign(Object.assign({},t.text),i)}));const l={tool:ts.TEXT,dauEditId:o.id,versionId:"-1"!==g.versionId?g.versionId:void 0,modified:Date.now(),page:s.toString(),data:S(Object.assign(Object.assign({},o),i),r)};u(l)},getTextPadding:k},children:e})};var As;function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ts.apply(null,arguments)}const Ss=e=>r.createElement("svg",Ts({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),As||(As=r.createElement("circle",{cx:12,cy:12,r:8,stroke:"#111212",strokeWidth:4})));var Es=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Is=e=>{var{forwardedRef:t}=e,n=Es(e,["forwardedRef"]);return(0,i.jsx)(fo.rw,Object.assign({ref:t},n))};var Cs;!function(e){e.STROKE="stroke",e.FILL="fill"}(Cs||(Cs={}));const _s=()=>{const{shapes:e,moveRectangle:t,transformRectangle:n,attributeChange:a}=vs(),{selectedDauEditId:o,toolSettings:s,setToolSettings:l}=au(),[c,d]=(0,r.useState)({top:"0"}),[u,p]=(0,r.useState)(!1),{t:h}=(0,k.Bd)(),[m,g]=(0,r.useState)(),f=e=>{g(e===m?void 0:e)};return(0,r.useEffect)((()=>{o||g(void 0)}),[o]),(0,i.jsx)(i.Fragment,{children:e.map(((e,r)=>(0,i.jsx)(No,{props:Object.assign(Object.assign({},e),{strokeInput:e.strokeWidthNormed,tool:ts.SHAPE}),Component:Is,onDragEnd:n=>{return i=n,r=e.id,void t(i,r);var i,r},onTransform:t=>{return i=t,r=e.id,void n(i,r);var i,r},colorPickerVisible:m,onChangeColor:t=>((e,t)=>{e.tool===ts.SHAPE&&l(Object.assign(Object.assign({},s),{shape:Object.assign(Object.assign({},s.shape),{[m]:`rgba(${t.rgb.r},${t.rgb.g},${t.rgb.b},${t.rgb.a})`})})),"1"!==t.rgb.a?a(e.id,{[m]:`rgba(${t.rgb.r},${t.rgb.g},${t.rgb.b},${t.rgb.a})`}):a(e.id,{[m]:t.hex})})(e,t),onStrokeChange:t=>((e,t)=>{e.tool===ts.SHAPE&&l(Object.assign(Object.assign({},s),{shape:Object.assign(Object.assign({},s.shape),{strokeWidth:t,strokeWidthNormed:t})})),a(e.id,{strokeWidth:t})})(e,t),menu:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{className:"button--icon-only",onClick:()=>f(Cs.FILL),variant:m===Cs.FILL?"hovered":"plain",ariaLabel:h("dau.tools.config."+(m===Cs.FILL?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),title:h("dau.tools.config."+(m===Cs.FILL?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),children:(0,i.jsx)("span",{className:"h-4 w-4 rounded-full block",style:{backgroundColor:e.fill}})}),(0,i.jsx)(N.$,{style:{color:e.stroke},onClick:()=>f(Cs.STROKE),variant:m===Cs.STROKE?"hovered":"plain",ariaLabel:h("dau.tools.config."+(m===Cs.STROKE?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),title:h("dau.tools.config."+(m===Cs.STROKE?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),icon:(0,i.jsx)(Ue.I,{fill:"none",source:Ss})})]}),menuProps:c,setMenuProps:d,isMenuTop:u,setIsMenuTop:p,onPointerEnter:e=>{if("rotater _anchor"===e.target.attrs.name){e.target.getStage().content.style.cursor="url(loop-right-line.cur) 12 12, grab"}}},r)))})},js=({shutter:e,onTransform:t})=>{const{setTool:n,tool:a,setSelectedDauEditId:o}=au(),s=(0,r.useRef)(null),l=(0,r.useRef)(null),[c,d]=(0,r.useState)(500),[u,p]=(0,r.useState)(20);function h(e,t){return!(t.y>e.y+e.height||t.y+t.height<e.y)}(0,r.useEffect)((()=>{l.current.nodes([s.current])}),[]),(0,r.useEffect)((()=>{var e,t;d(null===(e=document.querySelector(".react-pdf__Document"))||void 0===e?void 0:e.clientWidth),p(null===(t=document.querySelector(".react-pdf__Document"))||void 0===t?void 0:t.clientHeight)}),[e]);const m=()=>{if(s.current.height()*s.current.scaleY()>u){l.current.stopTransform();const e=u/s.current.height();s.current.scaleY(e)}};
2return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(fo.rw,{x:e.side===is.RIGHT?c/2:0,y:"down"===e.direction?0:u-e.height||0,width:e.side===is.SINGLE?c:c/2,height:e.height,fill:"#000000",ref:s,name:`${e.side}${e.direction}-rect`,onTransformEnd:n=>{m();let i;n.target.parent.children.forEach((function(e){(n.target.hasName(is.SINGLE+"up-rect")&&e.hasName(is.SINGLE+"down-rect")||n.target.hasName(is.SINGLE+"down-rect")&&e.hasName(is.SINGLE+"up-rect")||n.target.hasName(is.LEFT+"up-rect")&&e.hasName(is.LEFT+"down-rect")||n.target.hasName(is.LEFT+"down-rect")&&e.hasName(is.LEFT+"up-rect")||n.target.hasName(is.RIGHT+"up-rect")&&e.hasName(is.RIGHT+"down-rect")||n.target.hasName(is.RIGHT+"down-rect")&&e.hasName(is.RIGHT+"up-rect"))&&(i=e)})),i&&h(n.target.getClientRect(),i.getClientRect())&&(s.current.scaleY(1),"down"===e.direction?s.current.height(i.getClientRect().y):s.current.height(u-i.getClientRect().height));const r=s.current;t({event:n,node:r,transformer:l.current},e.id)},onTransform:e=>{a!==ts.SHUTTERS&&(o(null),n(ts.SHUTTERS)),(()=>{if(s.current.height()*s.current.scaleY()<20){l.current.stopTransform();const e=20/s.current.height();s.current.scaleY(e)}})(),m(),(e=>{const t=e.target.parent,n=[];t.children.forEach((function(t){e.target.hasName(is.SINGLE+"up-rect")&&t.hasName(is.SINGLE+"down-rect")&&n.push(t),e.target.hasName(is.SINGLE+"down-rect")&&t.hasName(is.SINGLE+"up-rect")&&n.push(t),e.target.hasName(is.LEFT+"up-rect")&&t.hasName(is.LEFT+"down-rect")&&n.push(t),e.target.hasName(is.LEFT+"down-rect")&&t.hasName(is.LEFT+"up-rect")&&n.push(t),e.target.hasName(is.RIGHT+"up-rect")&&t.hasName(is.RIGHT+"down-rect")&&n.push(t),e.target.hasName(is.RIGHT+"down-rect")&&t.hasName(is.RIGHT+"up-rect")&&n.push(t)})),0!==n.length&&h(e.target.getClientRect(),n[0].getClientRect())&&l.current.stopTransform()})(e)}}),(0,i.jsx)(fo.Ge,{ref:l,padding:-20,enabledAnchors:"down"===e.direction?["bottom-center"]:["top-center"],borderEnabled:!1,rotateEnabled:!1,anchorSize:20,anchorStroke:"none",boundBoxFunc:(e,t)=>t.width<5||t.height<5?e:t})]})};var Ns=n(92811),Ls={};Ls.styleTagTransform=q(),Ls.setAttributes=B(),Ls.insert=R().bind(null,"head"),Ls.domAPI=M(),Ls.insertStyleElement=F();P()(Ns.A,Ls);Ns.A&&Ns.A.locals&&Ns.A.locals;var Ps=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Ds=e=>{var{closeTool:t}=e,n=Ps(e,["closeTool"]);const{t:r}=(0,k.Bd)(),{shutters:a,toggleShutter:o}=os(),{isDoublePage:s,page:l,numPages:c}=au(),d=l+1,u=l+"down",p=l+"up",h=d+"down",m=d+"up",g=s&&l>0&&l<c,f=(e,t,n,i)=>{o(t,n.toString(),e,!i)};return(0,i.jsxs)("div",Object.assign({className:"shutter__config"},n,{children:[l>0&&(0,i.jsx)(Ln.o,{id:"down-left",initValue:!!a.find((e=>e.id.endsWith(u))),checked:!!a.find((e=>e.id.endsWith(u))),onClick:()=>f("down",u,l,!!a.find((e=>e.id.endsWith(u)))),children:r(g?"dau.tools.shutters.topleft":"dau.tools.shutters.top")}),l>0&&(0,i.jsx)(Ln.o,{id:"up-left",initValue:!!a.find((e=>e.id.endsWith(p))),checked:!!a.find((e=>e.id.endsWith(p))),onClick:()=>f("up",p,l,!!a.find((e=>e.id.endsWith(p)))),children:r(g?"dau.tools.shutters.bottomleft":"dau.tools.shutters.bottom")}),s&&l<c&&(0,i.jsx)(Ln.o,{id:"down-right",initValue:!!a.find((e=>e.id.endsWith(h))),checked:!!a.find((e=>e.id.endsWith(h))),onClick:()=>f("down",h,d,!!a.find((e=>e.id.endsWith(h)))),children:r(g?"dau.tools.shutters.topright":"dau.tools.shutters.top")}),s&&l<c&&(0,i.jsx)(Ln.o,{id:"up-right",initValue:!!a.find((e=>e.id.endsWith(m))),checked:!!a.find((e=>e.id.endsWith(m))),onClick:()=>f("up",m,d,!!a.find((e=>e.id.endsWith(m)))),children:r(g?"dau.tools.shutters.bottomright":"dau.tools.shutters.bottom")}),(0,i.jsx)(N.$,{onClick:t,ariaLabel:r("ui.ariaClose"),title:r("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A})})]}))},Ms=()=>{const{shutters:e,transformShutter:t}=os();return(0,i.jsx)(i.Fragment,{children:null==e?void 0:e.map(((e,n)=>(0,i.jsx)(js,{onTransform:t,shutter:e},n)))})},Os=({note:e})=>{const{moveNote:t,setIsDragging:n}=hs(),{setEnableKeyboardNavigation:a}=(0,Pe.Us)(),{selectedDauEditId:o,setSelectedDauEditId:s,deleteDauEdit:l,isDoublePage:c,setTool:d,tool:u,isMouseDown:p,page:h,numPages:m}=au(),{t:g}=(0,k.Bd)(),f=(0,r.useRef)(null),v=(0,r.useRef)(null),[b,y]=(0,r.useState)({top:"0"}),[x,w]=(0,r.useState)(!1),[A,T]=(0,r.useState)(e.text),[S,E]=(0,r.useState)(!0),I=e=>{let t=e.getClientRect().x+e.getClientRect().width/2;t>e.getStage().attrs.width-120?t=e.getStage().attrs.width-120:t<120&&(t=120);let n=e.getClientRect().y+e.getClientRect().height;n>e.getStage().attrs.height/2+e.getClientRect().height/2?(n=e.getClientRect().y-10,w(!0)):w(!1),y({top:n+"px",left:t+"px"})},C=()=>{setTimeout((()=>{var t,n;s(e.id);const i=document.querySelector(`#note-textarea-${e.id}`);i&&(i.focus(),i.setSelectionRange(null===(t=i.value)||void 0===t?void 0:t.length,null===(n=i.value)||void 0===n?void 0:n.length))}),1)},_=()=>{d(ts.NOTE),I(f.current),s(e.id),E(!0),C()};(0,r.useEffect)((()=>{e.currentlyCreated&&(_(),t(Object.assign(Object.assign({},e),{currentlyCreated:!1}),e.id))}),[e.currentlyCreated]);const j=()=>
2{l(e.id)},L=()=>{E(!1),s(null)};(0,r.useEffect)((()=>{L()}),[c,h]),(0,r.useEffect)((()=>{u!==ts.NOTE&&L()}),[u]),(0,r.useEffect)((()=>{v.current.nodes([f.current]),e.currentlyCreated&&(I(f.current),E(!0),C())}),[]);const[P]=(0,vo.lK)("/assets/comment-marker.svg"),D=document.querySelector("#drawing-layer").clientWidth,M=c&&h>0&&h<m,O=e=>M?e*(D/1e3):e*(D/500),R=()=>{e.id===o?document.querySelector("#drawing-layer").style.cursor="move":p&&u===ts.ERASER?j():e.id!==o&&(document.querySelector("#drawing-layer").style.cursor=u===ts.ERASER?"eraser":"pointer")},z=()=>{document.querySelector("#drawing-layer").style.cursor=""};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(fo.YJ,{draggable:!0,ref:f,onDragEnd:()=>{I(f.current),t(Object.assign(Object.assign({},f.current.attrs),{x:f.current.attrs.x,y:f.current.attrs.y,text:A}),e.id),setTimeout((()=>{E(!0),n(!1),C()}),100)},onDragStart:()=>{n(!0),E(!1)},onClick:u===ts.ERASER?j:_,onMouseEnter:R,onMouseLeave:z,onTouchEnter:R,onTouchLeave:z,x:e.x,y:e.y,height:O(40),width:O(40),onDragMove:()=>{const e=jo(v.current.nodes().map((e=>e.getClientRect())));v.current.nodes().forEach((t=>{const n=t.getAbsolutePosition(),i=n.x<0?0:2*(e.x-n.x),r=n.y<0?0:2*(e.y-n.y),a=Object.assign({},n);e.x<0&&(a.x=-i),e.y<0&&(a.y=-r),e.x+e.width>v.current.getStage().width()&&(a.x=v.current.getStage().width()-e.width-i),e.y+e.height>v.current.getStage().height()&&(a.y=v.current.getStage().height()-e.height-r),t.setAbsolutePosition(a)}))},onTap:u===ts.ERASER?j:_,children:[(0,i.jsx)(fo.rw,{height:O(40),width:O(40),fill:"#ffffff",cornerRadius:4,shadowColor:"#2021231F",shadowOpacity:88,shadowBlur:8}),(0,i.jsx)(fo._V,{x:O(10),y:O(10),height:O(20),width:O(20),margin:O(10),image:P})]}),(0,i.jsx)(fo.Ge,{ref:v,visible:e.id===o,enabledAnchors:[],rotateEnabled:!1,boundBoxFunc:function(e,t){return t.width=Math.max(30,t.width),t}}),e.id===o&&(0,i.jsxs)(vo.Ed,{divProps:{style:Object.assign({},b)},children:[(0,i.jsx)("div",{id:"spawn-point-node"}),S&&(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"dau-note__portal cursor-auto "+(x?"-translate-y-full flex-col-reverse":""),children:(0,i.jsxs)("div",{className:"dau-note",id:"modal",children:[(0,i.jsx)("textarea",{id:`note-textarea-${e.id}`,autoFocus:!0,placeholder:g("dau.tools.note.placeholder"),value:A,onChange:e=>T(e.target.value),onFocus:()=>a(!1),onBlur:()=>a(!0)}),(0,i.jsxs)("div",{className:"dau-note__buttons",children:[(0,i.jsx)(N.$,{className:"dau-note__delete",ariaLabel:g("dau.tools.config.delete"),title:g("dau.tools.config.delete"),onClick:()=>{l(e.id),L()},icon:(0,i.jsx)(Ue.I,{source:Cr})}),(0,i.jsx)(N.$,{variant:"plain",onClick:()=>{E(!1),t(Object.assign(Object.assign({},e),{text:A}),e.id)},children:g("dau.tools.config.confirm")})]})]})})})]})]})},Rs=()=>{const{notes:e}=hs();return(0,i.jsx)(i.Fragment,{children:e.map(((e,t)=>(0,i.jsx)(Os,{note:e},t+e.id)))})},zs=({fontSize:e,onFontSizeChange:t,onFontSizeKeyUp:n})=>{const{t:r}=(0,k.Bd)();return(0,i.jsx)("div",{className:"font-config",children:(0,i.jsx)(Eo,{type:"number",min:1,label:r("dau.tools.config.fontSizeLabel"),value:e,onChange:t,onKeyUp:n})})},Bs=(e,t,n)=>{const i=document.createElement("canvas").getContext("2d");i.font=`${t}px "Lato"`;const r=e.split(/\r?\n|\r|\n/g);let a=i.measureText((e?"":n)+"ww").width;return r.forEach((e=>{const t=i.measureText(e+"ww").width;t>a&&(a=t)})),a},Us=({text:e,textText:t,textAreaAttr:n,textChange:a,isEditable:o,setIfTextAreaIsFocused:s,userTransformedTextBoxManually:l,setUserTransformedTextBoxManually:c})=>{const{t:d}=(0,k.Bd)(),{getTextPadding:u,attributeChange:p}=ws(),{documentDimensions:h}=au(),m=((e,t,n=0)=>t-e-n)(n.x,null==h?void 0:h.width,2.5*u()),g=ds(null==h?void 0:h.height,n.y,u()),[f,v]=(0,r.useState)(m),[b,y]=(0,r.useState)(g),x=t=>Math.floor(t/(1.5*e.fontSize)),[w,A]=(0,r.useState)(x(b));(0,r.useEffect)((()=>{const t=l?e.height:ds(null==h?void 0:h.height,n.y,u());y(t),A(x(t))}),[null==h?void 0:h.height,l,n.y]),(0,r.useEffect)((()=>{l&&0!==e.width?(v(n.width),y(n.height)):(c(!1),v(m),y(g),0===e.width&&p(e.id,{width:Bs(t,e.fontSize,d("dau.tools.text.placeholder"))}))}),[null==n?void 0:n.width,n.height,l,e.width]);const T=(0,r.useCallback)((()=>
2{if(l&&0!==e.width)return f;return Bs(t,e.fontSize,d("dau.tools.text.placeholder"))+u()}),[l,f,t]),S=(0,r.useCallback)((()=>{if(l&&0!==e.width)return b-2.5*u()}),[l,b,e.width]);return(0,i.jsx)(Ri.A,{id:"textinput"+e.id,minRows:1,maxRows:w,style:{zIndex:0,top:n.y,left:n.x+1.25*u(),position:"absolute",width:T()-2.5*u(),maxWidth:f+"px",height:S(),color:e.textColor,pointerEvents:o?"auto":"none",resize:"none",outline:"none",fontSize:e.fontSize+"px",backgroundColor:e.backgroundColor},placeholder:d("dau.tools.text.placeholder"),"aria-label":d("dau.tools.text.ariaLabel"),value:t,onFocus:()=>s(!0),onBlur:()=>s(!1),onChange:n=>{a(n);Bs(t,e.fontSize,d("dau.tools.text.placeholder"))>f&&c(!1)}})};var Fs,Vs=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};!function(e){e.TEXT="textColor",e.BACKGROUND="backgroundColor"}(Fs||(Fs={}));const qs=e=>{var{forwardedRef:t}=e,n=Vs(e,["forwardedRef"]);return(0,i.jsx)(fo.rw,Object.assign({ref:t},n))},Hs=({text:e})=>{const{moveText:t,transformText:n,attributeChange:a,getTextPadding:o}=ws(),{setEnableKeyboardNavigation:s}=(0,Pe.Us)(),{setSelectedDauEditId:l,selectedDauEditId:c,setTool:d,tool:u}=au(),[p,h]=(0,r.useState)(e.text),[m,g]=(0,r.useState)({x:e.x,y:e.y,width:e.width,height:e.height}),[f,v]=(0,r.useState)(),[b,y]=(0,r.useState)(!1),[x,w]=(0,r.useState)(e.fontSizeNormed.toString()),[A,T]=(0,r.useState)({top:"0"}),[S,E]=(0,r.useState)(!1),[I,C]=(0,r.useState)(!1),{t:_}=(0,k.Bd)(),[j,L]=(0,r.useState)(void 0);(0,r.useEffect)((()=>{const t=Bs(p,e.fontSize,_("dau.tools.text.placeholder")),n=e.text?1:2,i=e.width>t&&e.width<t+o()*n;L(!i)}),[]);const P=(0,r.useCallback)((e=>{C(e),s(!e)}),[s]);(0,r.useEffect)((()=>{u!==ts.TEXT&&P(!1)}),[P,u]),(0,r.useEffect)((()=>{g({x:e.x,y:e.y,width:e.width,height:e.height})}),[e]),(0,r.useEffect)((()=>{c||v(void 0)}),[c]);const D=()=>{d(ts.TEXT),l(e.id);const t=document.querySelector("#textinput"+e.id);t&&t.focus(),c===e.id&&y(!0)},M=e=>{v(e===f?void 0:e)};(0,r.useEffect)((()=>{c===e.id?y(!0):y(!1)}),[c,e]);const O=(0,r.useRef)(),R=(0,r.useCallback)((t=>{w(t.target.value||""),t.target.value&&a(e.id,{fontSizeNormed:parseInt(t.target.value)},j)}),[a,e]),[z,B]=(0,r.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(No,{props:Object.assign(Object.assign({},e),{stroke:"transparent",strokeWidth:1,tool:ts.TEXT}),Component:qs,onDragEnd:n=>{t(n.event.target.attrs,e.id,j),g(Object.assign(Object.assign({},m),{x:n.event.target.attrs.x,y:n.event.target.attrs.y}))},onTransform:t=>{L(!0),n(t,e.id),g(Object.assign(Object.assign({},m),{x:t.x,y:t.y,width:t.width,height:t.height}))},onClick:D,onDoubleClick:()=>y(!0),onTap:D,onDrag:e=>{g(Object.assign(Object.assign({},m),{x:e.x,y:e.y}))},onClose:()=>{y(!1),B(!1)},colorPickerVisible:f,onChangeColor:t=>{return n=e,void("1"!==(i=t).rgb.a?a(n.id,{[f]:`rgba(${i.rgb.r},${i.rgb.g},${i.rgb.b},${i.rgb.a})`},j):a(n.id,{[f]:i.hex},j));var n,i},rotateEnabled:!1,menu:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{className:"button--icon-only",ariaLabel:_("dau.tools.config.fontSizeButtonAriaLabel"),title:_("dau.tools.config.fontSizeButtonAriaLabel"),variant:z?"hovered":"plain",onClick:()=>(w(e.fontSizeNormed.toString()),void B(!z)),children:e.fontSizeNormed+"pt"}),(0,i.jsx)(N.$,{className:"button--icon-only dark:text-text",onClick:()=>M(Fs.TEXT),variant:f===Fs.TEXT?"hovered":"plain",ariaLabel:_("dau.tools.config."+(f===Fs.TEXT?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),title:_("dau.tools.config."+(f===Fs.TEXT?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),style:{color:e.textColor,textDecoration:"underline"},children:"A"}),(0,i.jsx)(N.$,{className:"button--icon-only",onClick:()=>M(Fs.BACKGROUND),variant:f===Fs.BACKGROUND?"hovered":"plain",ariaLabel:_("dau.tools.config."+(f===Fs.BACKGROUND?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),title:_("dau.tools.config."+(f===Fs.BACKGROUND?"colorChangeButtonAriaLabelClose":"colorChangeButtonAriaLabelOpen")),children:(0,i.jsx)("span",{className:"h-4 w-4 roun
2ded-full block",style:{backgroundColor:e.backgroundColor,border:"1px solid grey"}})})]}),config:[{visible:z,element:(0,i.jsx)(zs,{fontSize:x,onFontSizeKeyUp:t=>{"Enter"===t.key&&parseInt(t.target.value)>0&&""!==t.target.value&&a(e.id,{fontSizeNormed:parseInt(t.target.value)},j)},onFontSizeChange:R})}],menuProps:A,setMenuProps:T,isMenuTop:S,setIsMenuTop:E,userTransformedTextBoxManually:j}),(0,i.jsx)(vo.Ed,{divProps:{style:{zIndex:I?"10":"0"}},children:void 0!==j&&(0,i.jsx)(Us,{text:e,textText:p,textAreaAttr:m,textChange:t=>{h(t.target.value),clearTimeout(O.current),O.current=setTimeout((()=>{a(e.id,{text:t.target.value},j)}),500)},isEditable:b,setIfTextAreaIsFocused:P,userTransformedTextBoxManually:j,setUserTransformedTextBoxManually:L})})]})},Gs=()=>{const{texts:e}=ws();return(0,i.jsx)(i.Fragment,{children:e.map((e=>(0,i.jsx)(Hs,{text:e},e.id)))})},Ks=({layerClass:e,layerVisible:t,width:n,height:a})=>{const{selectedDauEditId:o,setSelectedDauEditId:s,checkSelectThreshold:l,tool:c,isMouseDown:d,setIsMouseDown:u}=au(),{handleMouseDown:p,handleMouseMove:h,handleMouseUp:m}=(()=>{const{tool:e}=au(),{handleMouseDown:t,handleMouseMove:n,handleMouseUp:i}=ho(),{handleMouseDown:r,handleMouseMove:a,handleMouseUp:o}=vs(),{handleMouseUp:s}=hs(),{handleMouseUp:l}=ws();return e===ts.DRAW||e===ts.MARKER?{handleMouseDown:t,handleMouseMove:n,handleMouseUp:i}:e===ts.SHAPE?{handleMouseDown:r,handleMouseMove:a,handleMouseUp:o}:e===ts.NOTE?{handleMouseUp:s}:e===ts.TEXT?{handleMouseUp:l}:{}})(),[g,f]=(0,r.useState)(e);(0,r.useEffect)((()=>{f(e)}),[e]);const v=e=>{var t;e&&(null===(t=e.evt)||void 0===t||t.preventDefault(),e.cancelBubble=!0)},b=e=>{var t,n,i,r;v(e),u(!0);e.target===e.target.getStage()?o||p&&p(e):"rotater _anchor"===(null===(n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.attrs)||void 0===n?void 0:n.name)?setTimeout((()=>{f("cursor-rotate")}),1):(console.log("mouseDown, check",e),c!==ts.DRAW&&c!==ts.MARKER||!l(null===(r=null===(i=e.target)||void 0===i?void 0:i.attrs)||void 0===r?void 0:r.id)||!p||o||p(e))},y=t=>{v(t),u(!1),f(e),!o&&m&&m(t)};return(0,r.useEffect)((()=>(!d||c!==ts.DRAW&&c!==ts.MARKER&&c!==ts.ERASER?window.removeEventListener("mouseup",y):window.addEventListener("mouseup",y),()=>{window.removeEventListener("mouseup",y)})),[d,c]),(0,i.jsx)("div",{className:`${g} dau-stage`,children:t&&(0,i.jsx)("div",{className:"drawing-layer",id:"drawing-layer",children:(0,i.jsx)(fo.BI,{id:"drawing-layer__stage",width:n,height:a,onMouseDown:b,onMousemove:h,onMouseup:y,onTouchStart:b,onTouchMove:h,onTouchEnd:y,onClick:e=>{e.target===e.target.getStage()&&o&&s(null)},children:(0,i.jsxs)(fo.Wd,{listening:c!==ts.GRAB,children:[(0,i.jsx)(es,{}),(0,i.jsx)(_s,{}),(0,i.jsx)(Rs,{}),(0,i.jsx)(Gs,{}),(0,i.jsx)(Ms,{})]})})})})};var $s=n(59433),Ws=n(44224),Xs=n(43723),Ys=(n(75643),n(49050));var Js=n(98882),Zs=n(76511),Qs=n(99525);const el=[{label:"lang.en",value:"en-GB"},{label:"lang.de",value:"de-DE"},{label:"lang.es",value:"es-ES"},{label:"lang.fr",value:"fr-FR"},{label:"lang.it",value:"it-IT"},{label:"lang.pt",value:"pt-PT"},{label:"lang.pt-br",value:"pt-BR"},{label:"lang.tr",value:"tr-TR"},{label:"lang.ru",value:"ru-RU"},{label:"lang.ua",value:"uk-UA"},{label:"lang.ae",value:"ar-AE"}],tl=({children:e,value:t,selectedLanguage:n,icon:r,className:a=""})=>{const{t:o}=(0,k.Bd)();return(0,i.jsxs)(Js.q7,{value:t,className:"hover:bg-surfaceSubdued hover:outline-none py-3 px-4 font-bold flex items-center justify-between "+a,children:[(0,i.jsx)(Js.p4,{children:e}),r&&(0,i.jsx)("span",{className:"ml-3",children:r}),n===t&&!r&&(0,i.jsx)("span",{className:"w-5 h-5 ml-3",children:(0,i.jsx)(Ue.I,{source:Qs.A,accessibilityLabel:o("iqBuddy.checkmark")})})]})},nl=({selectedLanguage:e,handleSelectChange:t,children:n,triggerClassName:a="",contentClassName:o="",sideOffset:s=-10,customSetOpen:l=!0})=>{const[c,d]=(0,r.useState)(!1);return(0,i.jsxs)(Js.bL,{onValueChange:t,value:e,open:l?c:void 0,onOpenChange:l?e=>d(e):void 0,children:[(0,i.jsxs)(Js.l9,{className:`iqbuddy-select__trigger ${a}`,onClick:()=>d((e=>!e)),children:[(0,i.jsx)(Js.WT,{className:"text-left"}),(0,i.jsx)(Js.In,{children:(0,i.jsx)(Ue.I,{source:Xi,className:"iqbuddy-select__trigger-icon"})})]}),(0,i.jsx)(Js.UC,{position:"popper",sideOffset:s,className:`iqbuddy-select__content ${o}`,children:(0,i.jsx)(Js.LM,{className:"iqbuddy-select__viewport",children:(0,i.jsx)(Zs.FK,{type:"always",style:{overflowY:void 0},className:"iqbuddy-select__viewport-scroll ",children:n})})})]})};var il=n(33692);const rl=({closeNewCollectionForm:e,afterCreation:t,defaultValue:n})=>{const{t:a}=(0,k.Bd)(),{mutateAsync:o}=function(){const e=(0,d.q)();return(0,E.n)({mutationFn:async({createCollectionRequest:t})=>(await e.post("/klettbuddy/collections",t)).data,retry:!1})}(),[s,l]=(0,r.useState)(n||""),c=(0,r.useRef)(),[u,p]=(0,r.useState)();(0,r.useEffect)((()=>{c.current.focus()}),[]);const h=(0,r.useCallback)((n=>{o({createCollectionRequest:{name:n}}).then((n=>{(null==n?void 0:n.id)&&(null==n?void 0:n.name)&&(t(),e())})).catch((e=>{var t,n;p(a("error.iqBuddy.createCollectionFailed",{code:null===(n=null===(t=null==e?void 0:e.response)||void 0===t?void 0:t.data)||void 0===n?void 0:n.code}))}))}),[t,e,o,a]),m=(0,r.useCallback)((()=>{s&&""!==s&&""!==s.trim()?h(s):p(a("iqBuddy.invalidName"))}),[s,h,a]),g=(0,r.useCallback)((()=>
2{l(""),e()}),[e]),f=(0,r.useCallback)((e=>{"Enter"===e.key&&(""!==e.target.value&&""!==e.target.value.trim()?h(e.target.value):p(a("iqBuddy.invalidName")))}),[h,a]);return(0,i.jsxs)("div",{onClick:e=>{e.preventDefault(),e.stopPropagation()},className:"flex flex-col gap-2",children:[(0,i.jsx)(Ke.p,{placeholder:a("iqBuddy.namePlaceholder"),name:"iqbuddyCollectionName",value:s,onKeyUp:f,onChange:e=>l(e.target.value),ref:c,label:a("iqBuddy.nameLabel"),error:{message:u,id:"iqbuddy-collection-name-error"},maxLength:1e3}),(0,i.jsxs)("div",{className:"flex flex-row gap-2",children:[(0,i.jsx)(N.$,{variant:"plain",onClick:g,children:a("ui.abort")}),(0,i.jsx)(N.$,{variant:"primary",onClick:m,children:a("ui.save")})]})]})},al=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"collection-container",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("span",{className:"text-sm text-textSubdued",children:e("iqBuddy.addToCollection")}),(0,i.jsx)("div",{className:"w-3/4 h-5 animate-pulse rounded-md bg-borderColor dark:bg-textSubdued"})]}),(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"w-20 h-9 animate-pulse rounded-md bg-borderColor dark:bg-textSubdued"})})]})},ol=({errorMessage:e})=>{const{t}=(0,k.Bd)(),[n,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)();(0,r.useEffect)((()=>{e&&(a(!0),s(e.includes("CARDS_LIMIT_EXCEEDED")?"cardsLimit":void 0))}),[e]);const l=()=>{a(!1),s(void 0)};if(e&&o)return(0,i.jsx)(Xe.y,{open:n,asPrompt:!0,close:l,title:t(`iqBuddy.limit.${o}.title`),asPortal:!0,copy:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("p",{children:[(0,i.jsx)(k.x6,{i18nKey:`iqBuddy.limit.${o}.text`}),(0,i.jsx)("a",{href:t(`iqBuddy.limit.${o}.webshopLink`),target:"_blank",rel:"noopener noreferrer",className:"underline whitespace-nowrap text-interactive",children:(0,i.jsx)(k.x6,{i18nKey:`iqBuddy.limit.${o}.webshopText`})})]}),(0,i.jsx)("ul",{className:"list-disc list-inside",children:(0,i.jsx)(k.x6,{i18nKey:`iqBuddy.limit.${o}.list`,components:{item:(0,i.jsx)("li",{})}})}),(0,i.jsxs)("div",{className:"iqbuddy-app-teaser__link",children:[(0,i.jsxs)("div",{className:"iqbuddy-app-teaser__link-box",children:[(0,i.jsx)("img",{src:"./images/allango_buddy_GooglePlayStore.png",alt:"",role:"presentation"}),(0,i.jsx)("a",{href:t("iqBuddy.limit.playStoreLink"),target:"_blank",rel:"noopener noreferrer","aria-label":t("iqBuddy.limit.playStore"),children:(0,i.jsx)("img",{src:"./images/allango_buddy_GooglePlayStore_Logo.png",alt:"",role:"presentation"})})]}),(0,i.jsxs)("div",{className:"iqbuddy-app-teaser__link-box",children:[(0,i.jsx)("img",{src:"./images/allango_buddy_AppleAppStore.png",alt:"",role:"presentation"}),(0,i.jsx)("a",{href:t("iqBuddy.limit.appStoreLink"),target:"_blank",rel:"noopener noreferrer","aria-label":t("iqBuddy.limit.appStore"),children:(0,i.jsx)("img",{src:"./images/allango_buddy_ApplePlayStore_Logo.png",alt:"",role:"presentation"})})]})]})]}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:l,children:t("iqBuddy.limit.ok")})]})})};var sl=n(79823);const ll=({sourcePhrase:e,sourceContext:t,translatedPhrase:n,translatedContext:a,sourceLanguageCode:s,targetLanguageCode:l,bookTitle:c,disabledCollectionButton:u,setDisabledCollectionButton:p,lPlusNp:h})=>{var m,g;const v=(0,o.U)(),{t:b}=(0,k.Bd)(),y="Personal",{refetch:x,data:w,error:S,isLoading:I}=function(){const e=(0,d.q)();return(0,T.I)({queryKey:["get-collections"],queryFn:async()=>(await e.get("/klettbuddy/collections")).data,retry:!1})}(),{mutateAsync:C,error:_}=function(){const e=(0,d.q)(),{t}=(0,k.Bd)(),{success:n}=(0,A.e)();return(0,E.n)({mutationFn:async({collectionId:i,addToCollectionRequest:r,lPlusNp:a})=>{const o=await e.post(`/klettbuddy/collections/add/${i}${a?`?lPlusNp=${a}`:""}`,r);return 200===o.status&&n({copy:t("iqBuddy.addCollectionSuccess"),id:"add-to-collection-success"}),o},retry:!1})}(),[j,L]=(0,r.useState)(!1),[P,D]=(0,r.useState)(y),{warning:M}=(0,A.e)();(0,r.useEffect)((()=>{var e,t,n,i,r,a;if(S&&M({copy:b("error.iqBuddy.getCollectionRequestFailed",{code:null===(t=null===(e=null==S?void 0:S.response)||void 0===e?void 0:e.data)||void 0===t?void 0:t.code})}),_){((null===(i=null===(n=null==_?void 0:_.response)||void 0===n?void 0:n.data)||void 0===i?void 0:i.message)||"").includes("CARDS_LIMIT_EXCEEDED")||M({copy:b("error.iqBuddy.addPhraseToCollectionFailed",{code:null===(a=null===(r=null==_?void 0:_.response)||void 0===r?void 0:r.data)||void 0===a?void 0:a.code})})}}),[S,_,M,b]),(0,r.useEffect)((()=>{const e=()=>{const e=w.find((e=>e.name===y));return(e||w[w.length-1]).id};if(w&&w.length>0){const t=JSON.parse(localStorage.getItem(f.WQ));if(null==t?void 0:t.collectionId){if(null==t?void 0:t.collectionId){const n=w.find((e=>e.id===(null==t?void 0:t.collectionId)));D(n?null==t?void 0:t.collectionId:e())}}else D(e())}}),[w]);const O=e=>{e.stopPropagation(),L(!j)};return I?(0,i.jsx)(al,{}):(0,i.jsxs)("div",{className:"collection-container",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("span",{className:"text-sm text-textSubdued",children:b("iqBuddy.addToCollection")}),(0,i.jsx)(nl,{selectedLanguage:P,handleSelectChange:e=>{P!==e&&p(!1),D(e);const t=Object.assign(Object.assign({},JSON.parse(localStorage.getItem(f.WQ))),{collectionId:e});localStorage.setItem(f.WQ,JSON.stringify(t))},contentClassName:j?"w-auto":"w-64",children:j?[(0,i.jsxs)(N.$,{variant:"iconOnly",onClick:O,className:"!w-auto flex items-center gap-4 border-0",children:[(0,i.jsx)(Ue.I,{source:il.A}),(0,i.jsx)("span",{className:"flex-1 text-sm text-textSubdued",children:b("iqBuddy.backToCollectionList")})]},"back"),(0,i.jsx)(rl,{closeNewCollectionForm:()=>L(!1),afterCreation:()=>x(),defaultValue:c},"input")]:[...w&&w.length>0?w.map(((e,t)=>(0,i.jsx)(tl,{value:e.id,selectedLanguage:P,icon:(0,i.jsx)(Ue.I,{source:yo,accessibilityLabel:b("ui.icons.add"),className:"w-5 h-5"}),children:e.name},"collection-"+t))):[],(0,i.jsx)(N.$,{variant:"secondary",onClick:O,children:b("iqBuddy.createCollectionButtonText")},"new-collection")]})]}),(0,i.jsx)("div",{children:u?(0,i.jsxs)("a",{className:"button button--sm button--primary button--center",target:"_blank",href:v.iqBuddyUrl,rel:"noreferrer",children:[(0,i.jsx)("span",{children:b("iqBuddy.jumpToCollection")}),(0,i.jsx)(Ue.I,{source:sl.A,"aria-hidden":"true"})]}):(0,i.jsx)(N.$,{variant:"primary",onClick:()=>(C({collectionId:P,addToCollectionRequest:{front_card_short_text:e,front_card_long_text:t,front_card_language_code:s,back_card_short_text:n,back_card_long_text:a,back_card_language_code:l},lPlusNp:h}),void p(!0)),size:"sm",disabled:u||!w||0==(null==w?void 0:w.length),children:b("iqBuddy.addToCollectionButtonText")})}),(0,i.jsx)(ol,{errorMessage:null===(g=null===(m=null==_?void 0:_.response)||void 0===m?void 0:m.data)||void 0===g?void 0:g.message})]})};var cl=n(58454),dl={};dl.styleTagTransform=q(),dl.setAttributes=B(),dl.insert=R().bind(null,"head"),dl.domAPI=M(),dl.insertStyleElement=F();P()(cl.A,dl);cl.A&&cl.A.locals&&cl.A.locals;function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ul.apply(null,arguments)}const pl=e=>r.createElement("svg",ul({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 161.97 208.52"},e),r.createElement("path",{d:"m124.85 148.91 9.66 28.46-27.49-9.33c-6.26 3.52-13.85 5.73-23 5.73-20.11 0-33.34-10.47-40.22-24.24-3.58-6.61-5.23-13.77-5.78-21.21-.28-7.16 1.1-14.6 4.13-21.21 6.34-14.33 20.39-26.72 42.15-26.72 29.2 0 45.73 23.69 45.73 47.11v.27c0 6.52-1.68 14.07-5.18 21.15m37.12-21.38c0-53.44
2-39.66-79.6-75.47-79.6-13.77 0-35.54 4.96-50.41 23.41V0H0v203.84h34.71v-21.76c7.99 14.88 26.45 26.45 50.13 26.45 41.32 0 77.13-29.75 77.13-80.99",style:{fill:"#f60",strokeWidth:0}}));var hl=n(1458),ml=n(3990),gl={};gl.styleTagTransform=q(),gl.setAttributes=B(),gl.insert=R().bind(null,"head"),gl.domAPI=M(),gl.insertStyleElement=F();P()(ml.A,gl);ml.A&&ml.A.locals&&ml.A.locals;const fl=({teaserText:e,iconButtonLabel:t,modalTitle:n,modalText:a,modalOk:o,modalAsPortal:s=!1,className:l=""})=>{const[c,d]=(0,r.useState)(!1),u=()=>{d(!1)};return(0,i.jsxs)("div",{className:`ai-teaser ${l}`,children:[e?(0,i.jsx)("span",{className:"text-sm",children:e}):"",(0,i.jsx)(N.$,{size:"sm",onClick:()=>d(!0),icon:(0,i.jsx)(Ue.I,{source:hl.A}),autofocus:!1,ariaLabel:t,className:"ai-teaser__button"}),(0,i.jsx)(Xe.y,{open:c,asPrompt:!0,close:u,title:n,asPortal:s,copy:(0,i.jsx)("p",{children:(0,i.jsx)(k.x6,{i18nKey:a})}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:u,children:o})]})})]})},vl=()=>{const e=(0,o.U)(),{t}=(0,k.Bd)(),[n,a]=(0,r.useState)(!1),s=()=>{a(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("a",{className:"flex flex-row gap-1 text-sm items-center text-textLink",target:"_blank",href:e.iqBuddyUrl,rel:"noreferrer",children:[(0,i.jsx)("div",{children:(0,i.jsx)(Ue.I,{source:sl.A,className:"w-6 h-6"})}),(0,i.jsx)("span",{className:"py-2",children:t("iqBuddy.trainingLinkText")}),(0,i.jsx)(N.$,{size:"sm",onClick:e=>{e.preventDefault(),e.stopPropagation(),a(!0)},icon:(0,i.jsx)(Ue.I,{source:hl.A}),ariaLabel:t("iqBuddy.trainingInfo.iconAria")})]}),(0,i.jsx)(Xe.y,{open:n,asPrompt:!0,close:s,title:t("iqBuddy.trainingInfo.title"),asPortal:!0,copy:(0,i.jsx)("p",{children:(0,i.jsx)(k.x6,{i18nKey:"iqBuddy.trainingInfo.text"})}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:s,children:t("iqBuddy.trainingInfo.ok")})]})})]})};var bl;function yl(){return yl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yl.apply(null,arguments)}const xl=e=>r.createElement("svg",yl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),bl||(bl=r.createElement("path",{fill:"#111212",d:"M5.889 16H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.889l5.294-4.332a.5.5 0 0 1 .817.387v15.89a.5.5 0 0 1-.817.387zm13.517 4.134-1.416-1.416A8.98 8.98 0 0 0 21 12a8.98 8.98 0 0 0-3.304-6.968l1.42-1.42A10.98 10.98 0 0 1 23 12c0 3.223-1.386 6.122-3.594 8.134m-3.543-3.543-1.422-1.422A4 4 0 0 0 16 12c0-1.43-.75-2.685-1.88-3.392l1.439-1.439A5.99 5.99 0 0 1 18 12c0 1.842-.83 3.49-2.137 4.591"})));const wl=({language:e,text:t,callbackWhenSpeakCalled:n})=>{const{t:r}=(0,k.Bd)(),{mutateAsync:a,isPending:o}=function(){const e=(0,d.q)();return(0,E.n)({mutationFn:async({audioRequest:t})=>(await e.post("/klettbuddy/audio",t)).data,retry:!1})}(),{mutateAsync:s}=(0,ge.u)(),{setError:l}=(0,m.q)();return t&&"uk-UA"!==e?(0,i.jsx)(N.$,{variant:"plain",onClick:async()=>{if(!t)return;const i=new Audio;try{const r=await a({audioRequest:{language:e,text:t}});i.src=r.audioUrl,i.play().then((()=>{n()})).catch((e=>{console.error("Browser blocked autoplay:",e)}))}catch(e){l(r("error.iqBuddy.textToSpeechFailed")),s({errorMessage:"Error fetching audio URL from backend",errorObject:e})}},disabled:o,icon:(0,i.jsx)(Ue.I,{accessibilityLabel:r("ui.icons.sound"),source:xl,className:"w-5 h-5 m-0 "+(o?"opacity-50":"")}),size:"sm"}):(0,i.jsx)("span",{className:"w-9"})},kl=({sourceLanguageValue:e,sourceText:t,handleSelectChangeSourceLang:n,callbackWhenSpeakCalledSource:r,targetLanguageValue:a,targetText:o,handleSelectChangeTargetLang:s,callbackWhenSpeakCalledTarget:l,editTranslation:c,doEditTranslation:d,onChangeDisplayTranslationInput:u,translationIsPending:p,isTranslationError:h,translationError:m})=>{var g,f;const{t:v}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"iqbuddy-popover-content-translation-box",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(nl,{selectedLanguage:e,handleSelectChange:n,triggerClassName:"pl-12",children:el.map((t=>(0,i.jsx)(tl,{value:t.value,selectedLanguage:e,className:"text-sm",children:(0,i.jsx)("span",{lang:t.value,children:v(t.label)})},t.value)))}),(0,i.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,i.jsx)(wl,{language:e,text:t,callbackWhenSpeakCalled:r}),(0,i.jsx)("span",{lang:e,dir:"ar-AE"===e?"rtl":void 0,children:t})]})]}),(0,i.jsx)("div",{className:"pt-4 mb-4 border-b border-dashed border-borderColor"}),p?(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)("div",{className:"w-1/2 ml-12 animate-pulse h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsxs)("div",{className:"flex gap-4 items-center",children:[(0,i.jsx)("div",{className:"w-7 h-6 m-1 animate-pulse rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-full animate-pulse h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]})]}):(0,i.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,i.jsx)(nl,{selectedLanguage:a,handleSelectChange:s,triggerClassName:"pl-12",children:el.map((e=>(0,i.jsx)(tl,{value:e.value,selectedLanguage:a,className:"text-sm",children:(0,i.jsx)("span",{lang:e.value,children:v(e.label)})},e.value)))}),h?(0,i.jsx)("div",{className:"p-2",children:(0,i.jsx)("div",{className:"warning p-2",children:v("error.iqBuddy.requestFailed",{code:null===(f=null===(g=null==m?void 0:m.response)||void 0===g?void 0:g.data)||void 0===f?void 0:f.code})})}):(0,i.jsxs)("div",{className:"flex gap-3 items-center",children:[(0,i.jsx)(wl,{language:a,text:o,callbackWhenSpeakCalled:l}),c?(0,i.jsx)(Ke.p,{name:"iqbuddyTranslation",value:o,onChange:u,maxLength:180,placeholder:v("iqBuddy.yourTranslation"),autoFocus:!0,lang:a,dir:"ar-AE"===a?"rtl":void 0}):(0,i.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,i.jsx)("span",{lang:a,dir:"ae-AE"===a?"rtl":void 0,children:o}),(0,i.jsx)(N.$,{variant:"plain",size:"sm",onClick:d,icon:(0,i.jsx)(Ue.I,{source:yi,accessibilityLabel:v("ui.icons.edit")})})]})]})]})]})},Al=({onOpenChange:e,selection:t,context:n,rangeStart:a,coordinatesOfSelection:o,isOpen:s,sourceLanguage:c,bookTitle:u,lPlusNp:p})=>{const{t:h}=(0,k.Bd)(),m=(0,Gr.U)()(),[g,v]=(0,r.useState)((e=>{var t;const n=null===(t=JSON.parse(localStorage.getItem(f.WQ)))||void 0===t?void 0:t.targetLanguage;if(n)return n;const i=navigator.language,r=el.find((e=>e.value.startsWith(i)));if(r&&(null==r?void 0:r.value))return r.value;const a=el.find((t=>t.value.startsWith(e)));return a&&a.value?a.value:"en-GB"})(m)),[b,y]=(0,r.useState)(c),x=(0,l.n)(),{warning:w}=(0,A.e)(),{mutateAsync:T,isError:S,error:I,isPending:C}=function(){const e=(0,d.q)();return(0,E.n)({mutationFn:async({translationRequest:t})=>(await e.post("/klettbuddy/translate",t)).data,retry:!1})}(),[_,j]=(0,r.useState)(),[L,P]=(0,r.useState)(!1),[D,M]=(0,r.useState)(),[O,R]=(0,r.useState)(!0),[z,B]=(0,r.useState)(o.top);(0,r.useEffect)((()=>{_&&_.targetText?(M(_.targetText),R(!1)):(M(void 0),R(!0))}),[_]);const U=(0,r.useCallback)((async()=>{const e={context:n,rangeStart:a,rangeLength:t.length,sourceLanguage:b,targetLanguage:g};if(x)return await T({translationRequest:e});w({copy:h("offline.disabledAction")})}),[n,x,T,t,a,b,h,g,w]);(0,r.useEffect)((()=>{j(void 0),n&&""!==n&&g&&U().then((e=>{e&&j(e)}))}),[n,g,b]);const F=()=>{e(),P(!1)},V=(0,r.useRef)(null),q=()=>{if(V.current){const e=document.getSelection();e&&(e.removeAllRanges(),e.addRange(V.current))}},H=(e,t)=>{e&&(null==e?void 0:e.style)&&(e.style.maxHeight=t)},G=()=>{const e=(()=>{const e=window.innerHeight>0?window.innerHeight:screen.height,t=document.getElementById("iqbuddy-popover"),n=(null==t?void 0:t.clientHeight)||0;return e<n?(H(t,e+"px"),0):(H(t,"auto"),o.top-n<0&&o.top+n>e?e-n:o.top)})();B(e)};(0,r.useEffect)((()=>{s&&((()=>{const e=document.getSelection();e&&e.rangeCount>0&&(V.current=e.getRangeAt(0))})(),setTimeout(q,0),(0,it.r)({eventType:"clickWordAllangoBuddy"}),setTimeout(G,0))}),[s]);return 0===o.top&&0===o.left?null:(0,i.jsx)(Ys.bL,{onOpenChange:F,open:s,children:(0,i.jsx)(Ys.ZL,{container:document.getElementById("fullscreen-container"),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ys.l9,{asChild:!0,children:(0,i.jsx)("span",{className:"absolute",style:{to
2p:z,left:o.left}})}),(0,i.jsxs)(Ys.UC,{id:"iqbuddy-popover",className:"iqbuddy-popover",side:"top",align:"center",sideOffset:5,updatePositionStrategy:"always",children:[(0,i.jsx)("div",{className:"iqbuddy-popover-title",children:(0,i.jsx)("h2",{className:"p-4 font-bold",children:(0,i.jsxs)("div",{className:"flex flex-row gap-1 text-sm items-center",children:[(0,i.jsx)("div",{className:"flex",children:(0,i.jsx)(Ue.I,{source:pl,accessibilityLabel:h("iqBuddy.logoText"),className:"w-5 h-5"})}),(0,i.jsxs)("span",{className:"py-2",children:[" ",h("iqBuddy.logoText")]})]})})}),(0,i.jsxs)("div",{className:"iqbuddy-popover-content",children:[(0,i.jsxs)("div",{className:"iqbuddy-popover-content-translation",children:[(0,i.jsxs)("div",{className:"flex justify-between",children:[(0,i.jsx)(fl,{teaserText:h("aiTeaser.iqBuddy.teaserText"),iconButtonLabel:h("aiTeaser.iqBuddy.iconLabel"),modalTitle:h("aiTeaser.iqBuddy.title"),modalText:h("aiTeaser.iqBuddy.text"),modalOk:h("aiTeaser.iqBuddy.ok"),modalAsPortal:!0}),(0,i.jsx)(vl,{})]}),(0,i.jsx)(kl,{sourceLanguageValue:b,sourceText:t,handleSelectChangeSourceLang:e=>{y(e)},callbackWhenSpeakCalledSource:()=>{(0,it.r)({eventType:"clickPlaySourceAudioAllangoBuddy"})},targetLanguageValue:g,targetText:D,handleSelectChangeTargetLang:e=>{(0,it.r)({eventType:"clickChangeTargetLanguageAllangoBuddy"}),v(e);const t=Object.assign(Object.assign({},JSON.parse(localStorage.getItem(f.WQ))),{targetLanguage:e});localStorage.setItem(f.WQ,JSON.stringify(t))},callbackWhenSpeakCalledTarget:()=>{(0,it.r)({eventType:"clickPlayTargetAudioAllangoBuddy"})},editTranslation:L,doEditTranslation:()=>{P(!0)},onChangeDisplayTranslationInput:e=>{M(e.target.value),R(!1)},translationIsPending:C,isTranslationError:S,translationError:I})]}),!S&&!C&&(0,i.jsx)(i.Fragment,{children:L?(0,i.jsxs)("div",{className:"flex flex-row justify-end gap-2",children:[(0,i.jsx)(N.$,{variant:"secondary",size:"sm",onClick:()=>{M(_.targetText),P(!1)},children:h("ui.abort")}),(0,i.jsx)(N.$,{variant:"primary",size:"sm",onClick:()=>P(!1),children:h("ui.save")})]}):(0,i.jsx)(ll,{sourcePhrase:t,sourceContext:null==_?void 0:_.sourceContext,translatedPhrase:D||(null==_?void 0:_.targetText),translatedContext:null==_?void 0:_.targetContext,sourceLanguageCode:c,targetLanguageCode:g,bookTitle:u,disabledCollectionButton:O,setDisabledCollectionButton:R,lPlusNp:p})})]}),(0,i.jsx)(Ys.bm,{asChild:!0,"aria-label":"Close",children:(0,i.jsx)(N.$,{variant:"plain",ariaLabel:h("ui.ariaClose"),title:h("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:F,className:"inline-flex items-center justify-center absolute top-[5px] right-[5px] focus:shadow-[0_0_0_2px] outline-none"})})]})]})})})};var Tl=n(8339),Sl={};Sl.styleTagTransform=q(),Sl.setAttributes=B(),Sl.insert=R().bind(null,"head"),Sl.domAPI=M(),Sl.insertStyleElement=F();P()(Tl.A,Sl);Tl.A&&Tl.A.locals&&Tl.A.locals;const El={value:"",context:"",rangeStart:0,coordinates:{top:0,left:0}},Il=()=>{const[e,t]=(0,r.useState)(El),{warning:n}=(0,A.e)(),{t:i}=(0,k.Bd)(),{tool:a}=au(),o=(0,r.useCallback)((()=>{window.getSelection().removeAllRanges(),t(El)}),[]),s=(e,t=0,n,i)=>{if("BR"===e.nodeName)n.push("\n"),t++;else if(e.textContent){const r=e.textContent,a=r.substring(r.length-(i-t));n.push(a),t+=a.length}return t},l=(e,t=0,n,i)=>{var r;if(e.previousElementSibling&&(null===(r=e.previousElementSibling.children)||void 0===r?void 0:r.length)>0){const r=e.previousElementSibling.children.length,a=e.previousElementSibling.children[r-1];0===a.children.length&&(t=s(a,t,n,i)),t<=i&&l(a,t,n,i)}else(null==e?void 0:e.previousElementSibling)?(t=s(e.previousElementSibling,t,n,i))<=i&&l(e.previousElementSibling,t,n,i):(null==e?void 0:e.parentElement)&&!e.parentElement.className.includes("textLayer")&&l(e.parentElement,t,n,i);return n},c=(e,t=0,n,i)=>{if("BR"===e.nodeName)n.push("\n"),t++;else if(e.textContent){const r=e.textContent.substring(0,i-t);n.push(r),t+=r.length}return t},d=(e,t=0,n,i)=>{var r;if(e.nextElementSibling&&(null===(r=e.nextElementSibling.children)||void 0===r?void 0:r.length)>0){const r=e.nextElementSibling.children[0];0===r.children.length&&(t=c(r,t,n,i)),t<=i&&d(r,t,n,i)}else(null==e?void 0:e.nextElementSibling)?(t=c(e.nextElementSibling,t,n,i))<=i&&d(e.nextElementSibling,t,n,i):(null==e?void 0:e.parentElement)&&!e.parentElement.className.includes("textLayer")&&d(e.parentElement,t,n,i);return n},u=e=>e?e.replaceAll("-\n","").replaceAll("\n"," "):"",p=(e,t)=>{const n=(e=>{const t=document.createRange();return t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset),!t.collapsed})(e),i=e.anchorNode.parentElement,r=e.focusNode.parentElement,a=n?i:r,o=n?r:i,s=n?e.anchorOffset:e.focusOffset,c=n?e.focusOffset:e.anchorOffset,p=Math.ceil(200-t.length/2),h=[a.textContent.substring(0,s)],m=l(a,h[0].length+1,h,p).reverse().join(""),g=Math.floor(200-t.length/2),f=[o.textContent.substring(c)],v=d(o,f[0].length+1,f,g).join("");return{previous:u(m),next:u(v)}},{documentRef:h}=((e,t=500)=>{const n=(0,r.useRef)(null),i=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const r=()=>{var t,i;const r=window.getSelection();if(r.rangeCount>0){const a=r.getRangeAt(0),o=null===(t=n.current)||void 0===t?void 0:t.contains(a.endContainer),s=null===(i=n.current)||void 0===i?void 0:i.contains(a.startContainer);o&&s&&e(r)}},a=()=>{i.current&&clearTimeout(i.current),i.current=setTimeout(r,t)};return document.addEventListener("selectionchange",a),document.addEventListener("selectstart",a),()=>{document.removeEventListener("selectchange",a),document.removeEventListener("selectstart",a)}}),[e,t]),{documentRef:n}})((e=>{if(!e||0===(null==e?void 0:e.rangeCount))return;const r=e.toString()?e.toString():e.getRangeAt(0).toString();if(!r||!r.trim().length)return;if(a!==ts.TRANSLATE)return void o();if(e.toString().length>160)return o(),void n({copy:i("error.select.tooLong")});if(e.rangeCount>1)return o(),void n({copy:i("error.select.multiselect")});const s=u(r),{previous:l,next:c}=p(e,s),d=l+s+c,h=l.length,m=e.getRangeAt(0),g=m?m.getBoundingClientRect():{top:0,left:0};t({value:s.trim(),context:d,rangeStart:h,coordinates:{top:g.top+window.scrollY,left:g.left}})}),1750);return{documentRef:h,resetUserSelection:o,userSelection:e}},Cl=r.createContext(null),_l=()=>(0,r.useContext)(Cl),jl=({children:e})=>{const[t,n]=(0,r.useState)(!1);return(0,i.jsx)(Cl.Provider,{value:{setLoadingError:n,loadingError:t},children:e})},Nl=(e,t)=>{const n=t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");const i=/[\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Han}]/u.test(e)?new RegExp(`(^|\\b)(${n})(?=$|\\s|[.!?,-;])`,"gu"):new RegExp(`(?<![\\p{L}áéíóúäëïöüãõåß]+)(^|\\b)(${n})(?=[\\s.!?/,:;=$€"'%)|\\-]|$)`,"ig");return e.replaceAll(i,"<mark>$2</mark>")},Ll=r.createContext(null),Pl=()=>(0,r.useContext)(Ll),Dl=({children:e})=>{const[t,n]=(0,r.useState)(""),[a,o]=(0,r.useState)(0);(0,r.useEffect)((()=>{document.querySelectorAll("mark").forEach((e=>{const t=e.textContent;e.replaceWith(t)}))}),[t]);const s=e=>{for(const n of e)n.children&&n.children.length>0?s(n.children):n.innerHTML&&"string"==typeof n.innerHTML&&n.innerHTML.toLowerCase().includes(t.toLowerCase())&&(n.innerHTML=Nl(n.innerHTML,t))},l=(0,r.useCallback)((()=>{var e;const t=document.querySelectorAll("mark");t&&t.length>0&&(t.forEach((e=>{null==e||e.classList.remove("higlighted")})),null===(e=t[a])||void 0===e||e.classList.add("higlighted"))}),[a]);return(0,i.jsx)(Ll.Provider,{value:{searchString:t,setSearchString:n,setCurrentPageIndex:o,currentPageIndex:a,markText:e=>{e&&e.children&&s(e.children)},highlightText:l},children:e})};$s.EA.workerSrc=new URL(n(23827),n.b).toString();const Ml=({onDocumentLoadSuccess:e,onRenderSuccess:t,pdf:n,pdfUrl:a,documentWrapperRef:s,book:u,handleLoadError:p,lPlusNp:h})=>{const{page:m,isDoublePage:g,scale:f,numPages:v,tool:b,unsavedChanges:y,id:x}=au(),{setTriggerDauLearningProgressRefetch:w,enableKeyboardNavigation:A,setEnableKeyboardNavigation:T}=(0,Pe.Us)(),{searchString:I,markText:C,highlightText:_}=Pl(),j=(0,r.useRef)(null),N=(0,r.useRef)(null),{documentRef:L,resetUserSelection:P,userSelection:D}=Il(),{isFullscreen:M}=ae(),O=(0,J.Ay)(),{featureToggle:R}=en(),z=R.includes(nn),B=z&&b===ts.TRANSLATE,U=(0,c.As)(),F=(0,o.U)(),V=(0,l.n)(),{loadingError:q}=_l(),{t:H}=(0,k.Bd)(),{mutateAsync:G}=function(e=!0){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({pageRead:e})=>
2(await t.put(`/digital/sessionedmap/${e.npNumber}/pageread/${e.page}`)).data,retry:!1}),r=(0,S.s)(i,{message:n("error.dau.failSetDauPageReadProgress")});return e?r:i}(U.authenticated),K=(0,r.useCallback)((()=>{const e=qo(s);return e||(O?600:800)}),[s,O]),[$,W]=(0,r.useState)(K());(0,r.useEffect)((()=>{s.current.style.height=$+"px"}),[s,$]);const X=(0,r.useCallback)((()=>{1===f&&W(K())}),[]);(0,r.useEffect)((()=>(window.addEventListener("resize",X),()=>{window.removeEventListener("resize",X)})),[X]),(0,r.useEffect)((()=>{setTimeout((()=>{W(K())}),1)}),[M]),(0,r.useEffect)((()=>{O&&X()}),[O,y]);const Y=e=>{I.length>0&&setTimeout((()=>{C(L.current),_()}),e)},Z=(0,r.useRef)(),Q=()=>{Z.current&&clearTimeout(Z.current)};(0,r.useEffect)((()=>()=>Q()),[]);(0,r.useEffect)((()=>{Y(10)}),[I]),(0,r.useEffect)((()=>{document.querySelectorAll(".react-pdf__Page__textContent").forEach((e=>{const{style:t}=e;t.zIndex=b===ts.TRANSLATE?"11":"0",B?e.classList.add("dau-text-layer"):e.classList.remove("dau-text-layer")})),b!==ts.TRANSLATE&&P()}),[b,P,B]),(0,r.useEffect)((()=>{P()}),[n,m,g,f,P]);(0,r.useEffect)((()=>{D.value&&A&&T(!1)}),[D]);const ee=(0,r.useMemo)((()=>({cMapUrl:"cmaps/"})),[]),te=(0,r.useMemo)((()=>(F.isRealProduction||console.log("set dau documentFile: with Buffer",n,"or URL",a),n||(a?{url:a,disableStream:!0,disableRange:!1,disableAutoFetch:!0,rangeChunkSize:1048576}:void 0))),[a,n]);if(q&&V)return(0,i.jsx)("div",{className:"pdf-page",children:(0,i.jsx)("p",{className:"my-4",children:H("error.dau.failGetPdf")})});if(!te)return(0,i.jsx)(i.Fragment,{});const ne=(0,i.jsx)(ft.o,{inProgress:!0});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)(Ws.A,{options:ee,className:`dau-pdf-document ${g?"dau-pdf-document--double":""} ${B?"selection:bg-[#ff660066]":""} `,inputRef:L,onContextMenu:e=>{B&&e.preventDefault()},file:te,onLoadSuccess:t=>{e(t)},onLoadError:p,loading:ne,children:[0===m&&(0,i.jsx)("div",{}),(0,i.jsx)(Xs.A,{inputRef:j,scale:f,renderAnnotationLayer:!0,renderTextLayer:!0,height:$,pageNumber:0===m?1:m,onRenderSuccess:e=>{t(e.height,e.width);document.querySelectorAll(".react-pdf__Page__textContent").forEach((e=>{const{style:t}=e;t.top="0",t.left="0",t.transform="",t.zIndex=b===ts.TRANSLATE?"11":"",B?e.classList.add("dau-text-layer"):e.classList.remove("dau-text-layer"),e.tabIndex=1}));document.querySelectorAll(".react-pdf__Page__canvas").forEach((e=>{const{style:t}=e;t.zIndex="11",e.tabIndex=2}));var n;document.querySelectorAll(".react-pdf__Page__annotations").forEach((e=>{const{style:t}=e;t.zIndex="11",e.tabIndex=3})),Y(300),n=3e3,m&&m>0&&(Q(),Z.current=setTimeout((async()=>{x&&m&&(await G({pageRead:{npNumber:x,page:m}}),g&&m<v&&await G({pageRead:{npNumber:x,page:m+1}}),w(!0))}),n))},className:"bg-transparent",loading:ne},m+"_1"),g&&0!=m&&m+1<=v&&(0,i.jsx)(Xs.A,{inputRef:N,scale:f,renderAnnotationLayer:!0,renderTextLayer:!0,height:$,pageNumber:m+1,className:"bg-transparent",loading:""},m+"_2"),g&&m+1>v&&(0,i.jsx)("div",{})]}),z&&(0,i.jsx)(Al,{selection:D.value,context:D.context,rangeStart:D.rangeStart,coordinatesOfSelection:{top:D.coordinates.top,left:D.coordinates.left},isOpen:!!D.value,onOpenChange:()=>{A||T(!0),P()},sourceLanguage:null==u?void 0:u.trslSrcLanguage,bookTitle:null==u?void 0:u.bookTitle,lPlusNp:h})]})};var Ol=n(30253);const Rl=(e,t,n,i)=>"next"===i?((e,t,n)=>{let i=e;return t&&i<n&&i++,Math.min(n,i)})(e,t,n):"prev"===i?((e,t)=>{let n=e;return t&&n>0&&n--,Math.max(0,n)})(e,t):Math.max(0,Math.min(n,e));var zl;!function(e){e.SINGLE="single",e.ODD_DOUBLE="odd_double",e.EVEN_DOUBLE="even_double",e.AUTO="auto"}(zl||(zl={}));const Bl=({viewLayout:e,changeLayout:t,page:n,numPages:r})=>{var a,o;const{t:s}=(0,k.Bd)(),{setEnableKeyboardNavigation:l}=(0,Pe.Us)(),c=au(),d=null!==(a=null!=n?n:null==c?void 0:c.page)&&void 0!==a?a:1,u=null!==(o=null!=r?r:null==c?void 0:c.numPages)&&void 0!==o?o:0,p=()=>d%2==0,h=[{id:"r1",value:zl.SINGLE,label:0===d?1:d},{id:"r2",value:zl.ODD_DOUBLE,label:(()=>{if(0===d)return"1/2";if(p())return d-1+"/"+d;return d+"/"+(d+1>u?"-":d+1)})()},{id:"r3",value:zl.EVEN_DOUBLE,label:(()=>{if(0===d)return"-/1";if(p()){return d+"/"+(d+1>u?"-":d+1)}return d+1>u?u-1+"/"+u:d+2>u?d+1+"/-":d+1+"/"+(d+2)})()},{id:"r4",value:zl.AUTO,label:s("dau.layout.auto")}];return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"dau-layout-radioGroup",children:(0,i.jsxs)("form",{className:"dau-layout-radioGroup__form",children:[(0,i.jsx)("p",{id:"layout-label",className:"dau-layout-radioGroup__form-label",children:s("dau.layout.label")}),(0,i.jsx)(br.bL,{className:"dau-layout-radioGroup__root",value:e,"aria-labelledby":"layout-label",onValueChange:t,children:h.map((t=>(0,i.jsxs)("div",{className:"dau-layout-radioGroup__item-wrapper",children:[(0,i.jsx)(br.q7,{className:e===t.value?"dau-layout-radioGroup__item dau-layout-radioGroup__item--selected":"dau-layout-radioGroup__item",value:t.value,id:t.id,onFocus:()=>l(!1),onBlur:()=>l(!0),children:(0,i.jsx)(br.C1,{className:"dau-layout-radioGroup__indicator"})}),(0,i.jsx)("label",{className:"dau-layout-radioGroup__label",htmlFor:t.i
2d,children:t.label})]},t.id)))})]})})})},Ul=({numPages:e,setPage:t,page:n,isDoublePage:r,viewLayout:a})=>(0,i.jsx)("div",{className:"tool-group","data-cy":"dau-navigation",children:(0,i.jsx)(Ol.i,{maxPage:!r||e<=1?e:a===zl.EVEN_DOUBLE?e%2==1?e-1:e:e%2==0?e-1:e,page:n,onPageChange:(n,i)=>{const a=Rl(n,r,e,i);t(a)},prefix:!1})});var Fl=n(45201),Vl={};Vl.styleTagTransform=q(),Vl.setAttributes=B(),Vl.insert=R().bind(null,"head"),Vl.domAPI=M(),Vl.insertStyleElement=F();P()(Fl.A,Vl);Fl.A&&Fl.A.locals&&Fl.A.locals;const ql=({asset:e,viewLayout:t})=>{const{t:n}=(0,k.Bd)(),[a,o]=(0,r.useState)(""),{setSearchString:s,searchString:l,setCurrentPageIndex:c,currentPageIndex:u,highlightText:p}=Pl(),{page:h,setPage:m,isDoublePage:g}=au(),{refetch:f,data:v}=function(e,t,n){const i=(0,d.q)(),r=(0,T.I)({queryKey:["get-dau-search",e,t,n],queryFn:async()=>(await i.get(`search/pdf?searchTerm=${n}&bookId=${e}&pdfId=${t}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,{hideToast:!0})}(e.id,e.value,`"${l}"`),[b,y]=(0,r.useState)(1),[x,w]=(0,r.useState)([]),A=e=>{s(e),y(1),c(0),setTimeout((()=>{f()}),100)},E=(0,r.useCallback)((e=>{"Enter"===e.key&&A(e.target.value)}),[f,s,c]),I=(0,r.useCallback)(((e,n)=>{if(g){if(t===zl.EVEN_DOUBLE)if(e%2!=0){e-=1;const t=x.filter((t=>t.page==e-1));c(t.length+n)}else c(n);else if(e%2==0){e-=1;const t=x.filter((t=>t.page==e));c(t.length+n)}else c(n);m(e)}else c(n),m(e);p()}),[m,g,t,x,c,p]);(0,r.useEffect)((()=>{var e;if(v){const t=[];v.hits.forEach((e=>{for(let n=0;n<e.count;n++)t.push({page:e.page,pageIndex:n})})),w(t),t[0]&&I(parseInt(null===(e=t[0])||void 0===e?void 0:e.page),0)}}),[v]),(0,r.useEffect)((()=>{if(v&&x.length>0){const e=v.hits.findIndex((e=>e.page===h));-1!==e&&y(e+1)}}),[x,h,v]);const C=(0,r.useCallback)((e=>{let t,n;"prev"===e?1===b?(y(v.totalHits),t=parseInt(x[x.length-1].page),n=x[x.length-1].pageIndex):(y(b-1),t=parseInt(x[b-2].page),n=x[b-2].pageIndex):b===v.totalHits?(y(1),t=parseInt(x[0].page),n=x[0].pageIndex):(y(b+1),t=parseInt(x[b].page),n=x[b].pageIndex),I(t,n)}),[v,b,x,I]);return(0,r.useEffect)((()=>()=>{s("")}),[s]),(0,r.useEffect)((()=>{-1!==u&&p()}),[p,u]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"dau-search",children:[(0,i.jsx)("div",{className:"dau-search__icon-wrapper",children:(0,i.jsx)(Ue.I,{source:Fe.A})}),(0,i.jsx)(Eo,{data_cy:"dau-search-input",className:"dau-search__input",placeholder:n("dau.tools.search.placeholder"),value:a,onKeyUp:E,onChange:e=>o(e.target.value)}),(0,i.jsx)("span",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:n("bookmark.assetsFound",{count:null==v?void 0:v.totalHits})}),(0,i.jsxs)("div",{className:"dau-search__result-count-wrapper",children:[v&&v.totalHits>0&&(0,i.jsxs)("div",{"data-cy":"data-search-result-count",className:"dau-search__result-count",children:[b,"/",null==v?void 0:v.totalHits]}),v&&v.totalHits>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{data_cy:"data-search-prev",onClick:()=>C("prev"),size:"sm",variant:"plain",icon:(0,i.jsx)(Ue.I,{source:Zi})}),(0,i.jsx)(N.$,{data_cy:"data-search-next",onClick:()=>C("next"),size:"sm",variant:"plain",icon:(0,i.jsx)(Ue.I,{source:Xi})})]}),v&&0===v.totalHits&&(0,i.jsxs)("div",{"data-cy":"data-search-empty",className:"dau-search__result-count--empty",children:["0 ",n("dau.tools.search.hits")]})]})]}),(0,i.jsx)(N.$,{variant:"default",type:"submit",onClick:()=>A(a),children:n("dau.tools.search.submit")})]})};var Hl;function Gl(){return Gl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Gl.apply(null,arguments)}const Kl=e=>r.createElement("svg",Gl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Hl||(Hl=r.createElement("path",{fill:"#111212",d:"M13 21v2h-2v-2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a4 4 0 0 1 3 1.354A4 4 0 0 1 15 3h6a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1zm7-2V5h-5a2 2 0 0 0-2 2v12zm-9 0V7a2 2 0 0 0-2-2H4v14z"})));var $l,Wl;function Xl(){return Xl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xl.apply(null,arguments)}const Yl=e=>r.createElement("svg",Xl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),$l||($l=r.createElement("path",{fill:"#111212",d:"M13 21h8a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1h-5a3 3 0 0 0-3 3z"})),Wl||(Wl=r.createElement("path",{fill:"#111212",d:"M13 21v2h-2v-2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6a4 4 0 0 1 3 1.354A4 4 0 0 1 15 3h6a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1zm7-2V5h-5a2 2 0 0 0-2 2v12zm-9 0V7a2 2 0 0 0-2-2H4v14z"})));var Jl;function Zl(){return Zl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Zl.apply(null,arguments)}const Ql=e=>r.createElement("svg",Zl({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Jl||(Jl=r.createElement("path",{fill:"#111212",d:"M20 3h2v6h-2V5h-4V3zM4 3h4v2H4v4H2V3zm16 16v-4h2v6h-6v-2zM4 19h4v2H2v-6h2z"})));var ec;function tc(){return tc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},tc.apply(null,arguments)}const nc=e=>r.createElement("svg",tc({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ec||(ec=r.createElement("path",{fill:"#111212",d:"M18 7h4v2h-6V3h2zM8 9H2V7h4V3h2zm10 8v4h-2v-6h6v2zM8 15v6H6v-4H2v-2z"})));var ic,rc;function ac(){return ac=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ac.apply(null,arguments)}const oc=e=>r.createElement("svg",ac({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),ic||(ic=r.createElement("path",{stroke:"#111212",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4l2 2"})),rc||(rc=r.createElement("path",{stroke:"#111212",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M3.051 11a9 9 0 1 1 .5 4m-.5 5v-5h5"}))),sc=({setFullscreen:e,layoutActive:t,isDoublePage:n,toggleLayout:a,searchActive:o,toggleSearch:s,versionActive:l,toggleVersion:c,isUhb:d,downloadPdf:u,downloadAssets:p,asset:m,onBookmarkPage:f,onAddPageToPlaylist:v,zoomComponent:b})=>{const{t:y}=(0,k.Bd)(),x=(0,J.Ay)(),{isFullscreen:w}=ae(),A=(0,Ei.A)(m.id),{deleteAsset:T}=(0,g.yv)(),{currentVersion:S}=(0,Ia.BU)(),{bookmarks:E,deleteBookmarks:I}=(0,h.wn)(),{page:C}=au(),[_,j]=(0,r.useState)(!1),[L,P]=(0,r.useState)([]),D=()=>!!Ai(E,m.id,S.versionId,C.toString(),n),M=()=>{const e=Ai(E,m.id,S.versionId,C.toString(),n);e?I([{bookmarkId:e.bookmarkId,dauPage:e.dauPage}]):f({versionId:S.versionId,versionName:S.versionName})},O=()=>{T(Object.assign(Object.assign({},m),{bookFormat:d?"uhbpage":"daupage"}))},R=[(0,i.jsx)(Ca.y,{showPlaylists:_,setShowPlaylists:j,onAddPageToPlaylist:v,setMenuItems:P}),...L];return(0,i.jsx)("div",{className:"pdf-tools-right","data-cy":"dau-tools",children:(0,i.jsxs)("div",{className:"tool-group",children:[(0,i.jsx)(N.$,{onClick:s,className:o?"default button--hovered":"",ariaLabel:y("dau.tools.search.searchAria"),title:y("dau.tools.search.searchTooltip"),data_cy:"setDauSearchBar",icon:(0,i.jsx)(Ue.I,{source:Fe.A})}),!x&&(0,i.jsx)(N.$,{onClick:a,className:t?"plain button--hovered":"",ariaLabel:y("dau.tools.toggleLayoutAria"),title:y("dau.tools.toggleLayoutTooltip"),data_cy:"setDoublePage",icon:(0,i.jsx)(Ue.I,{source:n?Kl:Yl,accessibilityLabel:y("dau.tools.toggleLayoutAria")})}),(0,i.jsx)(N.$,{onClick:c,className:l?"default button--hovered":"",ariaLabel:y("dau.tools.toggleVersion"),title:y("dau.tools.toggleVersion"),icon:(0,i.jsx)(Ue.I,{source:oc,className:"dau-version-icon"})}),(0,i.jsx)(vi.u,{asPortal:!1,contentClass:"z-50 pdf-tools-right__menu",ariaLabel:y("ui.menuAria"),title:y("ui.menuAria"),elements:_?R:[...R,(0,i.jsx)(N.$,{variant:"plain",onClick:M,icon:(0,i.jsx)(Ue.I,{source:D()?Pi.A:Di.A}),className:D()?"text-attraction":"",title:y("dau.tools.bookmark.hoverTitle"),children:D()?y("bookmark.removeSingle"):y("bookmark.add")},"bookmark-dau-page"),(0,i.jsxs)(N.$,{variant:"plain",onClick:A?O:u,icon:(0,i.jsx)(Ue.I,{source:A?bn.A:Ni.A}),children:[A&&(0,i.jsx)("p",{children:y("dau.tools.removeOffline")}),!A&&(0,i.jsx)("p",{children:y("dau.tools.downloadPdf")})]},"onlineOffline"),(0,i.jsx)(N.$,{icon:(0,i.jsx)(Ue.I,{source:Ni.A}),variant:"plain",onClick:p,children:y("dau.tools.downloadAssets")},"download")]}),b&&b,!d&&(0,i.jsx)(N.$,{variant:"plain",icon:w?(0,i.jsx)(Ue.I,{source:nc}):(0,i.jsx)(Ue.I,{source:Ql}),onClick:e,ariaLabel:y(w?"dau.tools.fullscreenExit":"dau.tools.fullscreenEnter"),title:y(w?"dau.tools.fullscreenExit":"dau.tools.fullscreenEnter"),"aria-pressed":w},"fullscreen")]})})},lc=({withRevert:e,size:t="default"})=>{const n=(0,l.n)(),{currentVersion:a,versions:o}=(0,Ia.BU)(),{saveSession:s,resetDauEdits:c}=au(),{t:d}=(0,k.Bd)(),{success:u,warning:p}=(0,A.e)(),{structure:h}=au(),[m,g]=(0,r.useState)(!1),[f,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(mn(new Date)),[x,w]=(0,r.useState)(void 0),[T,S]=(0,r.useState)(!1);(0,r.useEffect)((()=>{h&&m&&y((null==h?void 0:h.book.bookTitle.substring(0,10))+" "+mn(new Date))}),[h,m]);const E=async()=>{try{await s(b),g(!1),v(!0),y(""),x&&w(void 0)}catch(e){w(e.response.data)}};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex gap-2 items-center "+(e?"flex-grow":""),children:[(0,i.jsx)(N.$,{size:t,className:`${e&&"flex-grow"}`,variant:"primary",onClick:async()=>
2{if(!n)return void p({copy:d("offline.disabledAction")});const e=0===(null==o?void 0:o.filter((e=>e.versionId===a.versionId)).length);if(e&&(x&&w(void 0),g(!0)),!e)try{S(!0),await s(),u({copy:d("dau.version.saveSuccess")}),S(!1)}catch(e){S(!1)}},loading:T,children:d("pdfplayer.save")}),e&&(0,i.jsx)(N.$,{size:t,className:"flex-grow",variant:"secondary",onClick:c,children:d("pdfplayer.close")})]}),(0,i.jsx)(Xe.y,{asPortal:!1,open:f||m,close:m?()=>g(!1):()=>v(!1),title:d(f?"dau.version.created.title":"dau.version.create.title"),closeButton:!0,copy:f?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{children:d("dau.version.created.copy.0",{title:b})}),(0,i.jsx)("p",{className:"mt-2",children:d("dau.version.created.copy.1")})]}):(0,i.jsx)(Eo,{error:{message:x,id:"create-dau-version-error"},placeholder:mn(new Date)+" "+d("dau.version.create.placeholder"),value:b,onChange:e=>y(e.target.value),onKeyUp:e=>{"Enter"===e.key&&E()},autoFocus:!0}),actions:f?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>v(!1),children:d("dau.version.created.confirm")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>{g(!1),w(void 0)},children:d("dau.version.create.abort")}),(0,i.jsx)(N.$,{variant:"primary",onClick:E,children:d("dau.version.create.save")})]})})]})};var cc;function dc(){return dc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dc.apply(null,arguments)}const uc=e=>r.createElement("svg",dc({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),cc||(cc=r.createElement("path",{fill:"#111212",d:"M21 18v2H3v-2zM17.05 3.55 22 8.5l-4.95 4.95zM12 11v2H3v-2zm0-7v2H3V4z"}))),pc=({mobileIconOnly:e,onToggle:t,size:n="default"})=>{const{t:r}=(0,k.Bd)(),a=(0,J.Ay)();if(a)return(0,i.jsx)(N.$,{ariaLabel:r("augmented.contentToggle"),data_cy:"openNavigation",className:`${e&&a?"button--icon-only":"sticky top-4"} ${a&&!e&&"w-full"} justify-end`,icon:(0,i.jsx)(Ue.I,{source:uc,accessibilityLabel:r("ui.icons.sideNavShow"),className:"ml-0"}),variant:"default",onClick:()=>t(!0),size:n,reverse:!0,children:(0,i.jsx)("span",{className:e&&"hidden sm:block",children:r("augmented.contentToggle")})})},hc=({downloadPdf:e,downloadAssets:t,asset:n,onBookmarkPage:a,toggleSearch:o,searchActive:s,viewLayout:l,onAddPageToPlaylist:c,isUhb:d,setFullscreen:u})=>{const{t:p}=(0,k.Bd)(),m=(0,Ei.A)(n.id),{deleteAsset:f}=(0,g.yv)(),{currentVersion:v}=(0,Ia.BU)(),{bookmarks:b,deleteBookmarks:y}=(0,h.wn)(),{page:x,setPage:w,isDoublePage:A,numPages:T}=au(),{setIsDrawerOpen:S}=(0,Pe.Us)(),[E,I]=(0,r.useState)(!1),[C,_]=(0,r.useState)([]),j=(0,J.Ay)(J.ml),L=(0,J.Ay)(J.L$),{isFullscreen:P}=ae(),D=()=>!!Ai(b,n.id,v.versionId,x.toString(),A),M=()=>{const e=Ai(b,n.id,v.versionId,x.toString(),A);e?y([{bookmarkId:e.bookmarkId,dauPage:e.dauPage}]):a({versionId:v.versionId,versionName:v.versionName})},O=()=>{f(Object.assign(Object.assign({},n),{bookFormat:d?"uhbpage":"daupage"}))},R=[(0,i.jsx)(Ca.y,{showPlaylists:E,setShowPlaylists:I,onAddPageToPlaylist:c,setMenuItems:_}),...C];return(0,i.jsxs)("div",{className:"pdf-tools-mobile tool-group justify-between "+(L?"m-0":""),"data-cy":"dau-tools",children:[(0,i.jsx)(pc,{onToggle:e=>S(e),mobileIconOnly:!0}),(0,i.jsx)(Ul,{numPages:T,viewLayout:l,page:x,setPage:w,isDoublePage:A}),(0,i.jsxs)("div",{className:"tool-group",children:[(0,i.jsx)(N.$,{className:s?"default button--hovered":"",ariaLabel:p("dau.tools.search.searchAria"),data_cy:"setDauSearchBar",onClick:o,icon:(0,i.jsx)(Ue.I,{source:Fe.A})}),(0,i.jsx)(vi.u,{asPortal:!1,contentClass:"z-[51] pdf-tools-right__menu",ariaLabel:p("ui.menuAria"),title:p("ui.menuAria"),elements:E?R:[...R,(0,i.jsx)(N.$,{variant:"plain",onClick:M,icon:(0,i.jsx)(Ue.I,{source:D()?Pi.A:Di.A}),className:D()?"text-attraction":"",title:p("dau.tools.bookmark.hoverTitle"),children:D()?p("bookmark.removeSingle"):p("bookmark.add")},"bookmark-dau-page"),(0,i.jsxs)(N.$,{variant:"plain",onClick:m?O:e,icon:(0,i.jsx)(Ue.I,{source:m?bn.A:Ni.A}),ariaLabel:p(m?"dau.tools.removeOffline":"dau.tools.downloadPdf"),children:[m&&(0,i.jsx)("p",{children:p("dau.tools.removeOffline")}),!m&&(0,i.jsx)("p",{children:p("dau.tools.downloadPdf")})]},"ubh"),(0,i.jsx)(N.$,{icon:(0,i.jsx)(Ue.I,{source:Ni.A}),variant:"plain",onClick:t,children:p("dau.tools.downloadAssets")},"ubh")]}),!j&&!d&&(0,i.jsx)(N.$,{variant:"plain",icon:P?(0,i.jsx)(Ue.I,{source:nc}):(0,i.jsx)(Ue.I,{source:Ql}),onClick:u,ariaLabel:p(P?"dau.tools.fullscreenExit":"dau.tools.fullscreenEnter"),title:p(P?"dau.tools.fullscreenExit":"dau.tools.fullscreenEnter"),"aria-pressed":P},"fullscreen")]})]})};var mc=n(13228),gc={};gc.styleTagTransform=q(),gc.setAttributes=B(),gc.insert=R().bind(null,"head"),gc.domAPI=M(),gc.insertStyleElement=F();P()(mc.A,gc);mc.A&&mc.A.locals&&mc.A.locals;const fc=({isOpen:e,close:t,bookTitle:n})=>{const{versions:a,refetchVersions:o,currentVersion:s,setCurrentVersion:l,sharedDauVersion:c}=(0,Ia.BU)(),{t:u}=(0,k.Bd)(),{mutateAsync:p}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({bookId:e,versionId:n})=>(await t.delete(`/digital/dauEdits/${e}/${n}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failDelete")})}(),{mutateAsync:h}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({bookId:e,versionId:n,newName:i})=>(await t.put(`/digital/dauEdits/${e}/${n}/rename`,{newName:i})).data,retry:!1});return(0,S.s)(i,e||{message:n("error.playlist.failDelete")})}({hideToast:!0}),{mutateAsync:m}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({info:e})=>(await t.post(`/digital/dauEdits/${e.bookId}/${e.versionId}/duplicate`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.augmented.failGetProduct")})}(),{id:g}=(0,be.g)(),[f,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)({versionId:"",versionName:"",bookId:""}),[x,w]=(0,r.useState)(""),[A,T]=(0,r.useState)(""),[I,C]=(0,r.useState)(!1),[_,j]=(0,r.useState)(void 0),[L,P]=(0,r.useState)(void 0),[D,M]=(0,r.useState)(void 0),{saveVersion:O}=(0,Ia.BU)(),R=()=>{y({versionId:"",bookId:"",versionName:""})},z=(0,r.useCallback)((()=>{j(void 0),P(void 0),w(""),T(""),C(!1),v(!1),R()}),[]),B=(0,r.useCallback)((async e=>{try{v(!0),await p({bookId:g,versionId:e.versionId}),e.versionId===s.versionId&&l({versionId:"-1",versionName:""}),o(),v(!1),M(u("dau.version.config.screenReader.deleteVersion",{name:e.versionName}))}catch(e){v(!1)}}),[p,g,o]),U=(e,t)=>{"rename"===e.value&&(y(t),w(t.versionName),C(!1)),"duplicate"===e.value&&(
2async e=>{try{v(!0),await m({info:{bookId:e.bookId,versionId:e.versionId}}),o()}finally{M(u("dau.version.config.screenReader.duplicateVersion",{name:e.versionName})),v(!1)}})(t)},F=async()=>{try{x?(await h({bookId:b.bookId,versionId:b.versionId,newName:x}),o(),R(),s.versionId===b.versionId&&l(Object.assign(Object.assign({},s),{versionName:x})),j("")):j(u("dau.version.config.error.missing-version-name"))}catch(e){j(e.response.data)}},V=(0,r.useCallback)((()=>{!A&&n&&T(n.substring(0,10)+" "+mn(new Date)),C(!0),R()}),[n,A]),q=(0,r.useCallback)((()=>{z(),t()}),[z,t]);return(0,i.jsx)(Xe.y,{open:e,asPortal:!1,close:q,title:u("dau.version.config.title"),closeButton:!0,preventOutsideInteraction:!0,copy:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"dau-config__text",children:u("dau.version.config.copy")}),(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:D}),(0,i.jsx)("ul",{children:a.map(((e,t)=>{if(e.versionId!==(null==c?void 0:c.info.versionId))return(null==b?void 0:b.versionId)!==e.versionId?(0,i.jsx)("li",{children:(0,i.jsx)($i.K,{description:u("dau.version.config.lastModified")+": "+e.modified,title:e.versionName,actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{loading:f,onClick:()=>B(e),variant:"destructive",icon:(0,i.jsx)(Ue.I,{source:Cr}),ariaLabel:u("dau.version.config.delete",{versionName:e.versionName})}),(0,i.jsx)(vi.u,{asPortal:!1,onSelect:t=>U(t,e),triggerClass:"dau-config__dropdown",items:[{label:u("dau.version.config.rename"),value:"rename",icon:(0,i.jsx)(Ue.I,{source:yi})},{label:u("dau.version.config.duplicate"),value:"duplicate",icon:(0,i.jsx)(Ue.I,{source:Qn})}]})]})})},t):(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(Eo,{error:{message:_,id:"rename-version-error"},value:x,onChange:e=>w(e.target.value),autoFocus:(null==b?void 0:b.versionId)===e.versionId}),(0,i.jsx)(N.$,{variant:"primary",onClick:F,children:u("dau.version.config.renameConfirm")})]},`rename-${t}`)}))}),I&&(0,i.jsxs)("div",{className:"flex",children:[(0,i.jsx)(Eo,{error:{message:L,id:"name-version-error"},value:A,onChange:e=>T(e.target.value),autoFocus:!0}),(0,i.jsx)(N.$,{variant:"primary",onClick:async()=>{try{A?(v(!0),await O([],A),o(),C(!1),T(""),P("")):P(u("dau.version.config.error.missing-new-version-name")),M(u("dau.version.config.screenReader.newVersion",{name:A}))}catch(e){P(e.response.data)}finally{v(!1)}},children:u("dau.version.config.renameConfirm")})]})]}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"secondary",onClick:V,icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:u("dau.version.config.newversion")}),(0,i.jsx)(N.$,{variant:"primary",onClick:q,children:u("dau.version.config.close")})]})})},vc=({bookTitle:e})=>{const{t}=(0,k.Bd)(),[n,a]=(0,r.useState)(!1),[o,s]=(0,r.useState)(!1),l=(0,J.Ay)(),{currentVersion:c,versions:d,setCurrentVersion:u,sharedDauVersion:p}=(0,Ia.BU)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"pdf-tools__version",children:[(0,i.jsx)("div",{className:"pdf-tools__version-dropdown",children:(0,i.jsx)(vi.u,{asPortal:!1,preLabel:t("pdfplayer.version")+" ",buttonType:"plain",label:p&&c.versionId===p.info.versionId?c.versionName+` (${t("dau.version.shared")})`:c&&""!==c.versionName?c.versionName:t("dau.version.originalVersion"),elements:(()=>{const e=[];return null==d||d.forEach((n=>{var r;e.push((r=n,(0,i.jsxs)(N.$,{align:"start",variant:"plain",className:"whitespace-normal",onClick:()=>u(r),icon:c.versionId===r.versionId&&(0,i.jsx)(Ue.I,{source:Qs.A,accessibilityLabel:t("dau.version.checkmark")}),children:[r.versionName,p&&r.versionId===p.info.versionId&&` (${t("dau.version.shared")})`]})))})),e.push((0,i.jsx)(N.$,{variant:"plain",align:"start",onClick:()=>u({versionId:"-1",versionName:""}),icon:"-1"===c.versionId&&(0,i.jsx)(Ue.I,{source:Qs.A,accessibilityLabel:t("dau.version.checkmark")}),children:t("dau.version.originalVersionUnedited")})),e.push((0,i.jsx)(N.$,{align:"start",variant:"plain",onClick:()=>s(!0),children:t("dau.version.manage")})),e})(),asSelect:!0,align:"start",contentClass:"max-h-[300px] max-w-[300px] z-[51]",triggerClass:"px-0 button--sm font-normal",data_cy:"dau-page-header-version"})}),!l&&(0,i.jsxs)("div",{className:"flex flex-row",children:[(0,i.jsx)(N.$,{onClick:()=>a(!0),icon:(0,i.jsx)(Ue.I,{source:hl.A,accessibilityLabel:t("ui.icons.info")})}),(0,i.jsx)(lc,{})]})]}),(0,i.jsx)(fc,{isOpen:o,close:()=>s(!1),bookTitle:e}),(0,i.jsx)(Xe.y,{open:n,asPrompt:!0,close:()=>a(!1),title:t("dau.version.about.title"),asPortal:!1,copy:(0,i.jsx)("p",{children:t("dau.version.about.copy")}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>a(!1),children:t("dau.version.about.ok")})]})})]})};var bc;function yc(){return yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yc.apply(null,arguments)}const xc=e=>r.createElement("svg",yc({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),bc||(bc=r.createElement("path",{fill:"#111212",d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20m-5-9h10v2H7z"})));var wc;function kc(){return kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kc.apply(null,arguments)}const Ac=e=>r.createElement("svg",kc({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),wc||(wc=r.createElement("path",{fill:"#111212",d:"M11 11V7h2v4h4v2h-4v4h-2v-4H7v-2zm1 11C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10m0-2a8 8 0 1 0 0-16.001A8 8 0 0 0 12 20"})));var Tc=n(93412),Sc={};Sc.styleTagTransform=q(),Sc.setAttributes=B(),Sc.insert=R().bind(null,"head"),Sc.domAPI=M(),Sc.insertStyleElement=F();P()(Tc.A,Sc);Tc.A&&Tc.A.locals&&Tc.A.locals;const Ec=({zoomOut:e,zoomIn:t,scaleLabel:n,zoomTo:a,doReset:o,isAssetPlayer:s,documentWrapperRef:l})=>{var c,d;const{t:u}=(0,k.Bd)(),{isFullscreen:p}=ae(),[h,m]=(0,r.useState)(!1),g=(0,r.useCallback)((()=>
2{if(s){const e=null==l?void 0:l.current;if(e&&e.getBoundingClientRect()){const t=e.getBoundingClientRect().bottom>window.innerHeight?window.innerHeight-60:e.getBoundingClientRect().bottom-80,n=document.querySelector("#pdf-zoom");n&&(n.style.top=t+"px",n.style.left=e.clientWidth+e.getBoundingClientRect().left-210+"px")}}}),[s,l]),f=(0,r.useCallback)((e=>{m(e)}),[]);(0,r.useEffect)((()=>{g()}),[null===(d=null===(c=null==l?void 0:l.current)||void 0===c?void 0:c.style)||void 0===d?void 0:d.height,g]),(0,r.useEffect)((()=>(g(),window.addEventListener("scroll",g),window.addEventListener("resize",g),()=>{window.removeEventListener("scroll",g),window.removeEventListener("resize",g)})),[g]);return(0,i.jsxs)("div",{id:s?"pdf-zoom":"dau-zoom",className:"tool-group button-group pdf-zoom",children:[(0,i.jsx)(N.$,{onClick:()=>e(),ariaLabel:u("dau.tools.zoomOutAria"),variant:"plain",title:u("dau.tools.zoomOutAria"),icon:(0,i.jsx)(Ue.I,{source:xc,accessibilityLabel:u("dau.tools.zoomOutAria")})}),(0,i.jsx)(vi.u,{align:s?void 0:"center",asPortal:!(s||p),asSelect:!0,label:n,ariaLabel:u("pdfplayer.zoomAria",{value:n}),ownIcon:(0,i.jsx)(Ue.I,{source:h?Zi:Xi,className:s?"m-0":""}),hiddenIcon:!0,triggerClass:"pdf-zoom__select "+(s?" ":"pdf-zoom__select--dau"),contentClass:"z-50",itemClass:"min-w-fit",handleOpenDropdown:f,offlineDisabled:!1,items:(()=>{const e=[{label:u("pdfplayer.zoomSizeOriginal"),value:"1",ariaLabel:u("pdfplayer.zoomSizeOriginal")+" 100%"},{label:"200%",value:"2"},{label:"150%",value:"1.5"},{label:"125%",value:"1.25"}];return s&&(e.push({label:"75%",value:"0.75"}),e.push({label:"50%",value:"0.5"})),e})(),onSelect:e=>{if("1"===e.value)o();else{const t=+e.value;a(t)}}}),(0,i.jsx)(N.$,{onClick:()=>t(),ariaLabel:u("dau.tools.zoomInAria"),variant:"plain",title:u("dau.tools.zoomInAria"),icon:(0,i.jsx)(Ue.I,{source:Ac,accessibilityLabel:u("dau.tools.zoomInAria")})})]})},Ic=({close:e})=>{const{t}=(0,k.Bd)();return(0,i.jsx)(N.$,{variant:"plain",ariaLabel:t("ui.ariaClose"),title:t("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:e})},Cc=({asset:e,isUhb:t,structure:n,zoomOut:a,zoomIn:o,scaleLabel:s,zoomTo:l,doReset:c})=>{var d;const[u,p]=(0,r.useState)(),[m,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),[w,T]=(0,r.useState)(!1),{setPage:S,page:E,isDoublePage:I,setIsDoublePage:C,setAutoLayout:_,unsavedChanges:j,numPages:N}=au(),L=(0,J.Ay)(),P=(0,Re.V)(),{setFullscreen:D}=ae(),{loadingError:M}=_l(),{t:O}=(0,k.Bd)(),R=(0,g.yv)(),z=()=>{R.downloadDau(Object.assign(Object.assign({},e),{format:Si.i_.PDF,bookFormat:t?"uhbpage":"daupage"}))},{warning:B}=(0,A.e)(),U=()=>{const e=ji(n,E,I);0===e.length&&B({copy:O("dau.tools.noAssetsAvailableForDownload")}),R.downloadAssets(e)},{bookmarkDauPage:F}=(0,h.wn)(),V=t=>{var n;F({bookId:e.id,page:E.toString(),versionId:t.versionId,versionName:t.versionName,isDoublePage:I}),(0,it.r)({productId:null!==(n=e.book.isbn)&&void 0!==n?n:e.book.npNumber,productName:e.book.bookTitle,eventType:"addBookmark"})},{addDauPageToPlayList:q}=(0,x.W)(),H=(n,i)=>{var r,a;q({book:e.book,page:E.toString(),versionId:n.versionId,versionName:n.versionName,isDoublePage:I,format:t?"uhbpage":"daupage"},i),(0,it.r)({productId:null!==(r=e.book.isbn)&&void 0!==r?r:e.book.npNumber,productName:e.book.bookTitle,contentId:null!==(a=e.book.isbn)&&void 0!==a?a:e.book.npNumber,format:t?"uhbpage":"daupage",eventType:"addToPlaylist"})},G=(0,r.useCallback)((()=>{y(!1),v(!1),T(!1)}),[]),K=e=>{localStorage.setItem(f.hY,e),_(e===zl.AUTO),e===zl.ODD_DOUBLE?(C(!0),p(zl.ODD_DOUBLE),E%2==0&&E>=1?S(E-1):E%2==0&&S(1)):e===zl.EVEN_DOUBLE?(C(!0),p(zl.EVEN_DOUBLE),E%2==1&&E<=N&&S(E+1)):e===zl.AUTO?p(zl.AUTO):(C(!1),p(zl.SINGLE),0===E&&S(1))},$=e=>{const t=e%2==0?zl.EVEN_DOUBLE:zl.ODD_DOUBLE;K(t)};(0,r.useEffect)((()=>{!E||u!==zl.ODD_DOUBLE&&u!==zl.EVEN_DOUBLE||$(E)}),[E]),(0,r.useEffect)((()=>{L&&I&&(K(zl.AUTO),C(!1))}),[L,I,C]);const W=(0,r.useCallback)((e=>{"doublePage"===e?(v(!0),y(!1),T(!1)):"search"===e?(v(!1),y(!0),T(!1)):"version"===e&&(v(!1),y(!1),T(!0))}),[]);return(0,r.useEffect)((()=>{!L&&j&&W("version")}),[L,j]),(0,r.useEffect)((()=>{const e=localStorage.getItem(f.hY),t=e?zl[null==e?void 0:e.toUpperCase()]:zl.AUTO;!L&&P.get("page")&&"link"===P.get("type")?P.get("mode")&&"double"===P.get("mode")?$(parseInt(P.get("page"))):K(zl.SINGLE):e?(t!==zl.ODD_DOUBLE&&t!==zl.EVEN_DOUBLE||C(!0),p(t),_(t===zl.AUTO)):K(zl.AUTO)}),[]),(0,i.jsxs)(i.Fragment,{children:[L&&(0,i.jsx)(hc,{downloadPdf:z,downloadAssets:U,searchActive:b,toggleSearch:()=>b?G():W("search"),viewLayout:u,asset:e,onBookmarkPage:V,onAddPageToPlaylist:H,isUhb:t,setFullscreen:()=>D()}),(0,i.jsxs)("div",{className:`dau-pdf-tools__wrapper ${t&&"dau-pdf-tools__wrapper--uhb"}`,children:[(!L||L&&j)&&(0,i.jsxs)("div",{className:"dau-pdf-tools",children:[L&&j&&(0,i.jsx)("div",{className:"dau-version-tools",id:"mobile-dau-save",children:(0,i.jsx)(lc,{withRevert:!0})}),!L&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ul,{numPages:N,viewLayout:u,page:E,setPage:S,isDoublePage:I}),(0,i.jsx)("div",{className:"dau-version-tools",children:(0,i.jsx)(sc,{isDoublePage:I,layoutActive:m,toggleLayout:()=>m?G():W("doublePage"),searchActive:b,toggleSearch:()=>b?G():W("search"),versionActive:w,toggleVersion:()=>w?G():W("version"),setFullscreen:()=>D(),isUhb:t,downloadPdf:z,downloadAssets:U,asset:e,zoomComponent:L?void 0:(0,i.jsx)(Ec,{zoomOut:a,zoomIn:o,scaleLabel:s,zoomTo:l,doReset:c,isAssetPlayer:!1}),onBookmarkPage:V,onAddPageToPlaylist:H})})]})]}),m&&!L&&(0,i.jsxs)("div",{className:"pdf-tools__dau-tools","data-cy":"dauDoublePageBar",children:[(0,i.jsx)(Bl,{viewLayout:u,changeLayout:K}),(0,i.jsx)(Ic,{close:G})]}),b&&(0,i.jsxs)("div",{className:"pdf-tools__dau-tools","data-cy":"dauSearchBar",children:[(0,i.jsx)(ql,{asset:e,viewLayout:u}),(0,i.jsx)(Ic,{close:G})]}),!L&&w&&!M&&(0,i.jsxs)("div",{className:"pdf-tools__dau-tools pdf-tools__dau-tools--version","data-cy":"dauVersionBar",children:[(0,i.jsx)(vc,{bookTitle:null===(d=null==n?void 0:n.book)||void 0===d?void 0:d.bookTitle}),(0,i.jsx)(Ic,{close:G})]})]})]})};var _c=n(7291);const jc=r.createContext(null),Nc=()=>(0,r.useContext)(jc),Lc=({children:e})=>{const[t,n]=(0,r.useState)(),[a,o]=(0,r.useState)(),[s,l]=(0,r.useState)(),[c,d]=(0,r.useState)(),[u,p]=(0,r.useState)(),[h,m]=(0,r.useState)(!1),[g,f]=(0,r.useState)(!1);return(0,i.jsx)(jc.Provider,{value:{dauData:t,setDauData:n,dauNp:a,setDauNp:o,lastDauPage:s,setLastDauPage:l,uhbData:c,setUhbData:d,uhbNp:u,setUhbNp:p,uhbPreviewTeaser:h,setUhbPreviewTeaser:m,eksdiPreviewTeaser:g,setEksdiPreviewTeaser:f,resetEditionData:()=>{n(void 0),o(void 0),l(void 0),d(void 0),p(void 0),m(!1)}},children:e})};var Pc,Dc=n(41319),Mc=n(52544);!function(e){e[e.DAU=0]="DAU",e[e.UHB=1]="UHB",e[e.PDF=2]="PDF"}(Pc||(Pc={}));const Oc=(e,t,n)=>{const i=(0,o.U)(),[a,s]=(0,r.useState)(),[c,u]=(0,r.useState)(!0),[p,h]=(0,r.useState)(),{mutateAsync:m}=(0,ge.u)(),{refetch:g,data:f,error:v}=(0,Mc.G)({format:"pdf",id:e,path:t===Pc.PDF?"":"/daupdf",isEnabled:!1,signal:n},{hideToast:!0}),b=(0,fe.m)(),[y,x]=(0,r.useState)(""),w=(0,l.n)(),{data:A,error:E}=function(e,t,n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,T.I)({queryKey:["get-pdf-binary",e],queryFn:async()=>(await i.get(e,{signal:t,responseType:"arraybuffer",headers:{"Content-Type":"application/json",Accept:"application/pdf"}})).data,retry:!1,enabled:n});return(0,S.V)(a,{message:r("error.asset.failGetPdf")})}(y,n,!!y&&w);return(0,r.useEffect)((()=>{A&&((!a||a&&a.byteLength!==A.byteLength)&&s(A),u(!1))}),[A]),(0,r.useEffect)((()=>
2{E&&("ERR_CANCELED"===(null==E?void 0:E.code)||(u(!1),m({errorMessage:"Error getting PDF in viewer",errorObject:E}),b(te.J.error)))}),[E]),(0,r.useEffect)((()=>{e&&(0,Dc.jC)(e,t===Pc.PDF?"pdf":"daupdf").then((e=>{e?((!a||a&&a.byteLength!==e.binary.byteLength)&&s(e.binary),u(!1)):w&&g()})).catch((e=>{w&&(m({errorMessage:`Error getting ${t}`,errorObject:e,level:"info"}),g())}))}),[e]),(0,r.useEffect)((()=>{if(f)if(i.isProduction)x(f.url);else{const e=f.url.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443");x(e)}}),[f]),(0,r.useEffect)((()=>{h(v)}),[v]),{pdf:a,isLoading:c,error:p}};var Rc=n(20987),zc=n(65155),Bc=n(25384),Uc={};Uc.styleTagTransform=q(),Uc.setAttributes=B(),Uc.insert=R().bind(null,"head"),Uc.domAPI=M(),Uc.insertStyleElement=F();P()(Bc.A,Uc);Bc.A&&Bc.A.locals&&Bc.A.locals;var Fc=n(82838),Vc=n(30457),qc={};qc.styleTagTransform=q(),qc.setAttributes=B(),qc.insert=R().bind(null,"head"),qc.domAPI=M(),qc.insertStyleElement=F();P()(Vc.A,qc);Vc.A&&Vc.A.locals&&Vc.A.locals;var Hc,Gc;function Kc(){return Kc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Kc.apply(null,arguments)}const $c=e=>r.createElement("svg",Kc({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),Hc||(Hc=r.createElement("g",{fill:"#111212",clipPath:"url(#check-circle_svg__a)"},r.createElement("path",{d:"M7 13.125A6.125 6.125 0 1 1 7 .875a6.125 6.125 0 0 1 0 12.25M7 14A7 7 0 1 0 7 0a7 7 0 0 0 0 14"}),r.createElement("path",{d:"m9.599 4.349-.018.019L6.542 8.24 4.711 6.408a.656.656 0 0 0-.928.927L6.1 9.651a.656.656 0 0 0 .944-.017l3.493-4.366a.657.657 0 0 0-.937-.92"}))),Gc||(Gc=r.createElement("defs",null,r.createElement("clipPath",{id:"check-circle_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h14v14H0z"})))));var Wc,Xc;!function(e){e.OPENQUESTION="openquestion",e.AIFEEDBACK="aifeedback",e.LPLUS="lplus",e.SELFTEST="selftest",e.INTERACTIVE_VIDEO="interactive_video"}(Wc||(Wc={})),function(e){e.ASSESSMENT="assessment",e.DIDACTIC_UNIT="didactic_unit",e.SELFTEST="selftest",e.INTERACTIVE_VIDEO="interactive_video"}(Xc||(Xc={}));const Yc=({resultPercentage:e,isNavigation:t=!1,lPlusBadge:n=!1,selftestBadge:r=!1,badges:a=[],className:o=""})=>{const{t:s}=(0,k.Bd)();return(0,i.jsxs)("div",{className:`chapter-info__badges ${o}`,children:[!t&&!isNaN(e)&&(0,i.jsxs)(Dt.E,{className:"chapter-info__badges-badge",type:"default",children:[(0,i.jsx)(Ue.I,{source:$c}),s("badge.resultPercentage",{percentage:e})]}),a.includes(Wc.OPENQUESTION)&&(0,i.jsx)(Dt.E,{className:"chapter-info__badges-badge",type:"default",children:s("badge.selfEvaluation")}),a.includes(Wc.AIFEEDBACK)&&(0,i.jsx)(Dt.E,{className:"chapter-info__badges-badge badge--default",type:"ai",children:s("badge.aiEvaluation")}),(r||a.includes(Wc.SELFTEST))&&(0,i.jsx)(Dt.E,{type:"eksdi",className:`bg-surfaceWarning ${o}`,children:s("badge.test")}),(n||a.includes(Wc.LPLUS))&&(0,i.jsx)(Dt.E,{type:"eksdi",className:`bg-surfaceSuccess text-textSuccess w-fit ${o}`,children:s("badge.lernPlus")}),a.includes(Wc.INTERACTIVE_VIDEO)&&(0,i.jsx)(Dt.E,{type:"eksdi",className:`bg-surfaceInformation w-fit ${o}`,children:s("badge.interactiveVideo")})]})};var Jc=n(15484),Zc={};Zc.styleTagTransform=q(),Zc.setAttributes=B(),Zc.insert=R().bind(null,"head"),Zc.domAPI=M(),Zc.insertStyleElement=F();P()(Jc.A,Zc);Jc.A&&Jc.A.locals&&Jc.A.locals;var Qc=n(72667);const ed=({children:e,asset:t,link:n,currentInlineId:r,playInlineId:a,format:o,isUhb:s,hasLPlusLicense:c,openUhbTeaser:d,openLPlusTeaser:u})=>{var p;const h=(0,Re.V)(),m=(null===(p=null==t?void 0:t.addedBy)||void 0===p?void 0:p.startsWith("NP300"))&&(o===Si.i_.ASSESSMENT||o===Si.i_.DIDACTIC_UNIT||o===Si.i_.SELFTEST),g=h.get("id")===t.assetId||r&&r===t.assetId?"asset-list-entry--current":"",f=(0,l.n)(),v=(0,Ei.A)(t.assetId),b="asset-list-entry",y=e=>{t.allowed||(m?(e.preventDefault(),u()):(e.preventDefault(),!s&&d&&d()))};if(!t.allowed||!f&&!v||m&&!c)return(0,i.jsx)("button",{type:"button",className:`${b} bg-surfaceSubdued text-textSubdued cursor-default ${g}`,onClick:y,children:e});if(o===Si.i_.LINK)return(0,i.jsx)("a",{onClick:()=>window.open(n,"_blank").focus(),href:n,target:"_blank",rel:"noopener noreferrer",className:`${b} asset-list-entry--clickable ${g}`,children:e});if(o===Si.i_.FILE)return(0,i.jsx)(Qc.Q,{className:`${b} asset-list-entry--clickable ${g} w-full`,asset:Object.assign(Object.assign({},t),{id:t.assetId,format:Si.i_.FILE}),productId:t.addedBy,children:e});const x=e=>{a&&(e.preventDefault(),a(t.assetId))};return a?(0,i.jsx)("button",{type:"button",className:`${b} asset-list-entry--clickable ${g} w-full`,onClick:x,children:e}):(0,i.jsx)(ee.z,{to:n||"",className:`${b} asset-list-entry--clickable ${g}`,children:e})},td=({asset:e,format:t,link:n,currentInlineId:r,playInlineId:a,isUhb:o,hasLPlusLicense:s,openUhbTeaser:l,openLPlusTeaser:c})=>{var d;return(0,i.jsxs)(ed,{asset:e,link:n,currentInlineId:r,playInlineId:a,isUhb:o,format:t,hasLPlusLicense:s,openUhbTeaser:l,openLPlusTeaser:c,children:[(0,i.jsx)("div",{children:(0,i.jsx)(Fc.c,{className:"dau-page-navigation__item__icon w-7 mr-0",format:t})}),(0,i.jsxs)("div",{children:[(0,i.jsxs)("span",{className:"asset-list-entry__title",children:[e.title,e.title&&e.description?", ":""]}),(0,i.jsx)("span",{className:"asset-list-entry__description",children:e.description}),(0,i.jsx)(Yc,{selftestBadge:t===Si.i_.SELFTEST,lPlusBadge:null===(d=null==e?void 0:e.addedBy)||void 0===d?void 0:d.startsWith("NP300"),className:"ml-2"})]})]})},nd=({audios:e,videos:t,others:n,assessments:a,selftests:o,npNumber:s,isUhb:c,hasLPlusLicense:d,isToolCollapsibleOpen:u})=>{const p=(0,fe.m)(),h=(0,J.Ay)(),m=(0,l.n)(),{t:g}=(0,k.Bd)(),{page:f,isDoublePage:v}=au(),{setUhbPreviewTeaser:b,setEksdiPreviewTeaser:y}=Nc(),x=(0,r.useCallback)(((e,t)=>{if(t===Si.i_.DAU_LINK){const t=`?page=${e.targetPage||1}`;return(0,Qe.v)(s===e.target?s:e.target,c?"uhbpage":"daupage",t).to}if(t===Si.i_.LINK&&e.value)return e.value;const n=(0,Si.sU)(e.assetId,t,f,v,h);return(0,vt.tW)(c?te.J.uhb:te.J.dau,{id:s})+n}),[v,h,c,s,f]),w=(0,r.useCallback)(((e,t)=>{p(x(e,t))}),[x,p]),A=(0,r.useCallback)((n=>{const i=n===Si.i_.AUDIO?e[0]:t[0];w(i,n)}),[e,t,w]),T=(null==t?void 0:t.filter(nr.x3))||[],S=(e,t)=>e.map((e=>(0,i.jsx)(td,{asset:e,format:t,link:x(e,t),isUhb:c,hasLPlusLicense:d,openUhbTeaser:()=>b(!0),openLPlusTeaser:()=>y(!0)},e.assetId)));return(0,i.jsxs)(i.Fragment,{children:[h&&m?(0,i.jsxs)(i.Fragment,{children:[e&&e.length>0&&(0,i.jsx)(N.$,{variant:"highlighted",icon:(0,i.jsx)(Fc.c,{format:Si.i_.AUDIO}),onClick:()=>A(Si.i_.AUDIO),className:"mb-2",ariaLabel:g("dau.tools.assetButtons.audioTooltip"),title:g("dau.tools.assetButtons.audioTooltip")}),t&&t.length>0&&(0,i.jsx)(N.$,{variant:"highlighted",icon:(0,i.jsx)(Fc.c,{format:Si.i_.VIDEO}),onClick:()=>A(Si.i_.VIDEO),className:"mb-2",ariaLabel:g("dau.tools.assetButtons.videoTooltip"),title:g("dau.tools.assetButtons.videoTooltip")})]}):(0,i.jsxs)(i.Fragment,{children:[e&&e.length>0&&(0,i.jsx)(vi.u,{align:h&&u?"start":"end",side:h?"left":"bottom",ownIcon:(0,i.jsx)(Fc.c,{format:Si.i_.AUDIO}),buttonType:"highlighted",iconOnly:!0,hiddenIcon:!0,asPortal:!1,contentClass:"p-0 z-50",triggerClass:"mb-2",ariaLabel:g("dau.tools.assetButtons.audioTooltip"),title:g("dau.tools.assetButtons.audioTooltip"),closeOnElementClick:!0,offlineDisabled:!1,elements:S(e,Si.i_.AUDIO)}),t&&t.length>0&&(0,i.jsx)(vi.u,{align:h&&u?"start":"end",side:h?"left":"bottom",ownIcon:(0,i.jsx)(Fc.c,{format:Si.i_.VIDEO}),buttonType:"highlighted",iconOnly:!0,hiddenIcon:!0,asPortal:!1,contentClass:"p-0 z-50",triggerClass:"mb-2",ariaLabel:g("dau.tools.assetButtons.videoTooltip"),title:g("dau.tools.assetButtons.videoTooltip"),closeOnElementClick:!0,offlineDisabled:!1,elements:S(t,Si.i_.VIDEO)})]}),n&&n.hasNonEmptyArrays&&(0,i.jsx)(vi.u,{align:h&&u?"start":"end",side:h?"left":"bottom",ownIcon:(0,i.jsx)(Fc.c,{format:Si.i_.HTML}),buttonType:"highlighted",iconOnly:!0,hiddenIcon:!0,asPortal:!1,contentClass:"p-0 z-50",triggerClass:"mb-2",ariaLabel:g("dau.tools.assetButtons.othersTooltip"),title:g("dau.tools.assetButtons.othersTooltip"),closeOnElementClick:!0,offlineDisabled:!1,elements:[...S(n.htmls,Si.i_.HTML),...S(n.pdfs,Si.i_.PDF),...S(n.links,Si.i_.LINK),...S(n.dauLinks,Si.i_.DAU_LINK),...S(n.files,Si.i_.FILE)]}),(null==a?void 0:a.length)+(null==o?void 0:o.length)+T.length>0&&(0,i.jsx)(vi.u,{align:h&&u?"start":"end",side:h?"left":"bottom",ownIcon:(0,i.jsx)(Fc.c,{format:Si.i_.ASSESSMENT}),buttonType:"highlighted",iconOnly:!0,hiddenIcon:!0,asPortal:!1,contentClass:"p-0 z-50",triggerClass:"mb-2",ariaLabel:g("dau.tools.assetButtons.exerciseTooltip"),title:g("dau.tools.assetButtons.exerciseTooltip"),closeOnElementClick:!0,offlineDisabled:!1,elements:[...S(a,Si.i_.ASSESSMENT),...S(o,Si.i_.SELFTEST),...S(T,Si.i_.VIDEO)]})]})},id=({tools:e,documentWrapperRef:t,structure:n,isUhb:a,setVisibleToolsNumber:o,maxProd:s})=>{const{t:l}=(0,k.Bd)(),c=(0,J.Ay)(J.ml),d=(0,J.Ay)(J.L$),[u,p]=(0,r.useState)(!0),{tool:h,page:m,isDoublePage:g}=au(),{isFullscreen:f}=ae(),[v,b]=(0,r.useState)({top:"auto",right:0,bottom:"auto",left:"auto"}),[y,x]=(0,r.useState)([]),[w,A]=(0,r.useState)([]),[T,S]=(0,r.useState)(),[E,I]=(0,r.useState)([]),[C,_]=(0,r.useState)([]),j=(0,r.useCallback)((()=>{var e;const n=null==t?void 0:t.current;if(n&&n.getBoundingClientRect())if(window.innerWidth>J.ml){const t=n.getBoundingClientRect().top,i=t<0?0:t,r=document.querySelector(".collapsible-edit"),a=56|(null===(e=null==r?void 0:r.getBoundingClientRect())||void 0===e?void 0:e.width),o=n.clientWidth+n.getBoundingClientRect().left-a;b({top:i,right:"auto",bottom:"auto",left:o})}else{const e=n.getBoundingClientRect().bottom<window.innerHeight-80?window.innerHeight-n.getBoundingClientRect().bottom+50:d?55:80,t=n.clientWidth+n.getBoundingClientRect().left-56;b({top:"auto",right:"auto",bottom:e,left:t})}}),[t,d]),N=(0,r.useCallback)((()=>{var n;const i=document.querySelector(".collapsible-edit");let r=2;if(i&&(null==t?void 0:t.current)){const a=t.current.clientHeight,s=56|(null===(n=document.getElementById("collapsible-trigger-button"))||void 0===n?void 0:n.getBoundingClientRect().height);if(c){i.style.maxHeight=a.toString()+"px",i.style.height="auto",y.length>0&&r++,w.length>0&&r++,(null==T?void 0:T.hasNonEmptyArrays)&&r++,C.length>0&&r++;const t=a-25;if((e.length+r)*s>t){let e=t/s;y.length>0&&e--,w.length>0&&e--,(null==T?void 0:T.hasNonEmptyArrays)&&e--,C.length>0&&e--,o(Math.ceil(e)-2)}else o(void 0)}else{i.style.maxHeight="auto",i.style.height=a.toString()+"px";if((e.length+r)*s>a){const e=a/s;o(Math.floor(e-2))}else o(void 0)}}}),[c,e.length,o,t,y.length,w.length,null==T?void 0:T.hasNonEmptyArrays,C.length]),L=(e,t)=>{const n=(e,n)=>"number"==typeof e?e+(n&&t?t:0)+"px":"auto";e&&(e.style.top=n(v.top),e.style.right=n(v.right),e.style.bottom=n(v.bottom),e.style.left=n(v.left,!0))};(0,r.useEffect)((()=>{var e;const t=document.querySelector(".collapsible-edit");if(L(t),!c){const n=document.querySelector(".asset-buttons");L(n,-(56|(null===(e=null==t?void 0:t.getBoundingClientRect())||void 0===e?void 0:e.width)))}}),[v]);const P=(0,r.useCallback)((()=>{j(),requestAnimationFrame((()=>{setTimeout((()=>{N()}),10)}))}),[j,N]);(0,r.useEffect)((()=>{t&&t.current&&setTimeout((()=>{P()}),100)}),[f,P,t]),(0,r.useEffect)((()=>{setTimeout((()=>{t&&t.current&&P()}),300)}),[t,P]),(0,r.useEffect)((()=>{const e=()=>{P()};return window.addEventListener("scroll",j),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",j),window.removeEventListener("resize",e)}}),[j,P]);(0,r.useEffect)((()=>{n&&n.pages&&(()=>{var e,t,i,r,a,o,s,l;const c=n.pages.find((e=>e.pageNumber===String(m))),d=g?n.pages.find((e=>e.pageNumber===String(m+1))):void 0;x([...null!==(e=null==c?void 0:c.audios)&&void 0!==e?e:[],...null!==(t=null==d?void 0:d.audios)&&void 0!==t?t:[]]),A([...null!==(i=null==c?void 0:c.videos)&&void 0!==i?i:[],...null!==(r=null==d?void 0:d.videos)&&void 0!==r?r:[]]),_([...null!==(a=null==c?void 0:c.assessments)&&void 0!==a?a:[],...null!==(o=null==d?void 0:d.assessments)&&void 0!==o?o:[]]),I([...null!==(s=null==c?void 0:c.selftests)&&void 0!==s?s:[],...null!==(l=null==d?void 0:d.selftests)&&void 0!==l?l:[]]),S(((e,t)=>{var n,i,r,a,o,s,l,c,d,u;const p=[...null!==(n=null==e?void 0:e.pdfs)&&void 0!==n?n:[],...null!==(i=null==t?void 0:t.pdfs)&&void 0!==i?i:[]],h=[...null!==(r=null==e?void 0:e.htmls)&&void 0!==r?r:[],...null!==(a=null==t?void 0:t.htmls)&&void 0!==a?a:[]],m=[...null!==(o=null==e?void 0:e.links)&&void 0!==o?o:[],...null!==(s=null==t?void 0:t.links)&&void 0!==s?s:[]],g=[...null!==(l=null==e?void 0:e.dauLinks)&&void 0!==l?l:[],...null!==(c=null==t?void 0:t.dauLinks)&&void 0!==c?c:[]],f=[...null!==(d=null==e?void 0:e.files)&&void 0!==d?d:[],...null!==(u=null==t?void 0:t.files)&&void 0!==u?u:[]],v=m.length>0||p.length>0||h.length>0||g.length>0||f.length>0;return{pageNumber:null==e?void 0:e.pageNumber,audios:[],videos:[],links:m,pdfs:p,htmls:h,dauLinks:g,files:f,assessments:[],selftests:[],hasNonEmptyArrays:v}})(c,d))})()}),[n,m,g]);const D=()=>c?u?Zi:Xi:u?zc.A:il.A;return(0,i.jsxs)("div",{children:[!c&&(0,i.jsx)("div",{className:"asset-buttons "+(u?"z-20":"z-30"),children:(0,i.jsx)(nd,{audios:y,videos:w,others:T,selftests:E,assessments:C,npNumber:null==n?void 0:n.book.npNumber,isUhb:a,hasLPlusLicense:Yt(s,nr.SE.EKSDI),isToolCollapsibleOpen:u})}),(0,i.jsx)("div",{className:"collapsible-edit "+(c?"overflow-x-auto":"overflow-x-visible"),"data-cy":"dauToolBar",children:(!c||"auto"!==v.left)&&(0,i.jsxs)(i.Fragment,{children:[c&&(0,i.jsx)("div",{className:"asset-buttons__mobile "+(u?"asset-buttons__mobile--open":""),children:(0,i.jsx)(nd,{audios:y,videos:w,others:T,selftests:E,assessments:C,npNumber:null==n?void 0:n.book.npNumber,isUhb:a,hasLPlusLicense:Yt(s,nr.SE.EKSDI),isToolCollapsibleOpen:u})}),(0,i.jsx)("div",{className:`${c?"dau-edit-tools--mobile":"dau-edit-tools--desktop"} ${u?"bg-surface":c?"":"absolute z-20"}`,children:(0,i.jsxs)(Rc.bL,{open:u,onOpenChange:p,className:`${c?"":"dau-edit-tools__
2collapsible--desktop"} ${u?"":"h-auto"}`,children:[(0,i.jsx)(Rc.l9,{asChild:!0,children:(0,i.jsx)("div",{className:`${u||c?"":"bg-surface"} ${c?"":"p-1"}`,"aria-expanded":void 0,children:(0,i.jsx)("button",{id:"collapsible-trigger-button",title:l(u?"dau.tools.closeToolsTooltip":"dau.tools.openToolsTooltip"),className:`button button--default button--icon button--icon-only ${!u&&h?"button--primary mt-1":"bg-surface mt-1"} `,children:(0,i.jsx)(Ue.I,{source:(()=>{if(u)return D();switch(h){case ts.DRAW:return Fa;case ts.TRANSLATE:return oo;case ts.MARKER:return Ha;case ts.SHAPE:return Wa;case ts.NOTE:return eo;case ts.TEXT:return io;case ts.SHUTTERS:return Ja;case ts.ERASER:return co;default:return D()}})()})})})}),(0,i.jsx)(Rc.UC,{className:"dau-edit-tools__content ",children:(0,i.jsx)("div",{className:c?"":"py-2 px-1",children:e})})]})})]})})]})};var rd=n(29673),ad=n.n(rd),od=n(96520),sd={};sd.styleTagTransform=q(),sd.setAttributes=B(),sd.insert=R().bind(null,"head"),sd.domAPI=M(),sd.insertStyleElement=F();P()(od.A,sd);od.A&&od.A.locals&&od.A.locals;const ld=({children:e,onPan:t,onPinch:n,onPinchEnd:a,onPinchStart:o,className:s="",id:l=""})=>{const c=(0,r.useRef)(),d=(0,r.useRef)(),u=(0,r.useRef)(!1),p=(0,r.useRef)(0),h=(0,r.useRef)(0);return(0,r.useEffect)((()=>{var e,i,r,s,l,m,g,f;c.current||(c.current=new(ad())(d.current,{}),null===(e=c.current)||void 0===e||e.add(new(ad().Pan)({direction:ad().DIRECTION_ALL})),null===(i=c.current)||void 0===i||i.add(new(ad().Pinch)({enable:!0}))),u.current||(null===(r=c.current)||void 0===r||r.on("panstart",(function(e){p.current=e.deltaX,h.current=e.deltaY})),null===(s=c.current)||void 0===s||s.on("panmove",(function(e){const n=e.deltaX-p.current,i=e.deltaY-h.current;p.current=e.deltaX,h.current=e.deltaY,t({deltaX:n,deltaY:i})})),null===(l=c.current)||void 0===l||l.on("panend",(function(){p.current=0,h.current=0})),null===(m=c.current)||void 0===m||m.on("pinchstart",(function(e){o({scale:e.scale,focusX:e.center.x,focusY:e.center.y,rest:e})})),null===(g=c.current)||void 0===g||g.on("pinchmove",(function(e){n({scale:e.scale,focusX:e.center.x,focusY:e.center.y,rest:e})})),null===(f=c.current)||void 0===f||f.on("pinchend",(function(e){a({scale:e.scale,focusX:e.center.x,focusY:e.center.y,rest:e})})),u.current=!0)}),[t,n,a,o]),(0,i.jsx)("div",{id:l,className:`pinch-component ${s}`,ref:d,children:e})},cd=({children:e,containerRef:t,documentWrapperRef:n,pinchScale:a,positionX:o,positionY:s,zoomFocusedTemporal:l,signalPinchEnd:c,signalPinchStart:d})=>{const{tool:u}=au(),p=(0,r.useRef)(u);(0,r.useEffect)((()=>{p.current=u}),[u]);const h=(0,r.useRef)(1),m=(0,r.useRef)(1),g=(0,r.useCallback)((e=>{h.current=a.current,m.current=a.current;const t=h.current*e.scale;d({newZoom:t,focusX:e.focusX,focusY:e.focusY})}),[a,d]),f=(0,r.useCallback)((e=>{const t=h.current*e.scale;l({newZoom:t,focusX:e.focusX,focusY:e.focusY}),m.current=t}),[l]),v=(0,r.useCallback)((e=>{const t=h.current*e.scale;m.current=t,c({newZoom:t,focusX:e.focusX,focusY:e.focusY})}),[c]);return(0,i.jsx)(ld,{id:"pinch-wrapper",onPan:({deltaX:e,deltaY:i})=>{var r,l;if(a.current>Jd&&p.current===ts.GRAB){let a=e;const c=null===(r=n.current.getBoundingClientRect())||void 0===r?void 0:r.height,d=null===(l=n.current.getBoundingClientRect())||void 0===l?void 0:l.width,u=t.current.getBoundingClientRect().width;u<d&&(a=0);const p=Math.abs(d-u)/2,h=-1*p,m=p,g=c-t.current.getBoundingClientRect().height,f=0;o.current=o.current+a<h?h:o.current+a>m?m:o.current+a,s.current=s.current+i<g?g:s.current+i>f?f:s.current+i,Vo(t.current,o.current,s.current)}},onPinch:f,onPinchEnd:v,onPinchStart:g,children:e})};var dd;function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},ud.apply(null,arguments)}const pd=e=>r.createElement("svg",ud({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),dd||(dd=r.createElement("path",{fill:"#111212",d:"M4 15h2v5h12V4H6v5H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm6-4V8l5 4-5 4v-3H2v-2z"})));var hd;function md(){return md=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},md.apply(null,arguments)}const gd=e=>r.createElement("svg",md({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),hd||(hd=r.createElement("path",{fill:"#111212",d:"M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4 5-4z"})));var fd=n(88990),vd={};vd.styleTagTransform=q(),vd.setAttributes=B(),vd.insert=R().bind(null,"head"),vd.domAPI=M(),vd.insertStyleElement=F();P()(fd.A,vd);fd.A&&fd.A.locals&&fd.A.locals;const bd=()=>{const{basename:{absoluteBasename:e}}=(0,o.U)(),t=(0,c.As)(),{t:n}=(0,k.Bd)(),a=(0,l.n)(),s="DELTA"===(0,se.P)()?"?brand=delta":"",d=(0,r.useCallback)((()=>{localStorage.removeItem(f.a$),t.logout({redirectUri:e+(0,vt.tW)(te.J.welcome)+s})}),[s,t,e]);return(0,i.jsxs)(i.Fragment,{children:[t.authenticated&&(0,i.jsx)(N.$,{variant:"plain",id:"logout",icon:(0,i.jsx)(Ue.I,{source:gd}),onClick:d,disabled:!a,children:n("menu.logout")}),!t.authenticated&&(0,i.jsx)(De.M,{text:n("menu.login"),variant:"secondary",id:"login",icon:(0,i.jsx)(Ue.I,{source:pd})})]})};var yd=n(91901),xd={};xd.styleTagTransform=q(),xd.setAttributes=B(),xd.insert=R().bind(null,"head"),xd.domAPI=M(),xd.insertStyleElement=F();P()(yd.A,xd);yd.A&&yd.A.locals&&yd.A.locals;const wd=[te.J.eksdi.taskGroupWithChapter,te.J.eksdi.taskGroupWithModule,te.J.eksdi.taskGroup],kd=(e,t)=>{for(const n of e){const e=n.replace(/:[^/]+/g,"([^/]+)");if(new RegExp(`^/?${e}/?$`).test(t))return!0}return!1};var Ad;function Td(){return Td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Td.apply(null,arguments)}const Sd=e=>r.createElement("svg",Td({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Ad||(Ad=r.createElement("path",{fill:"#000",d:"M12 2c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2M6.023 15.416C7.491 17.606 9.695 19 12.16 19s4.669-1.393 6.136-3.584A8.97 8.97 0 0 0 12.16 13a8.97 8.97 0 0 0-6.137 2.416M12 11a3 3 0 1 0 0-6 3 3 0 0 0 0 6"}))),Ed=()=>{const{t:e}=(0,k.Bd)(),[t,n]=(0,r.useState)(!1),[a,o]=r.useState(null),{settings:s}=C(),l=(0,J.Ay)(),c=(0,r.useCallback)((()=>{n(!1)}),[]),d=(0,ct.pn)(t,dt.h);return(0,i.jsx)("div",{className:"account-menu",ref:o,children:(0,i.jsxs)(Ge.bL,{open:t,onOpenChange:n,children:[l?(0,i.jsx)(N.$,{"data-cy":"account-menu-button",variant:"plain",ariaLabel:e("ui.ariaProfile"),icon:(0,i.jsx)(Ue.I,{source:Sd}),onClick:()=>n(!0)}):(0,i.jsx)(N.$,{"data-cy":"account-menu-button",variant:"plain",ariaLabel:e("ui.ariaProfile"),icon:(0,i.jsx)(Ue.I,{source:Sd}),onClick:()=>n(!0),children:null==s?void 0:s.displayName}),(0,i.jsx)(Ge.ZL,{forceMount:!0,container:a,children:d(((t,r)=>r?(0,i.jsx)(Ge.UC,{forceMount:!0,onInteractOutside:c,onEscapeKeyDown:c,className:"account-menu__dialog","aria-labelledby":void 0,"aria-describedby":void 0,children:(0,i.jsxs)(ct.CS.div,{style:t,className:"account-menu__content",children:[(0,i.jsxs)("div",{className:"account-menu__header",children:[(0,i.jsxs)("dl",{className:"account-menu__item",children:[(0,i.jsxs)("dt",{className:"text-textSubdued",children:[e("menu.loggedInAs"),":"]}),(0,i.jsx)("dd",{className:"font-bold",children:null==s?void 0:s.displayName})]}),(0,i.jsx)("div",{className:"header__actions",children:(0,i.jsx)(N.$,{variant:"plain",ariaLabel:e("ui.ariaClose"),title:e("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:()=>n(!1)})})]}),(0,i.jsx)("div",{className:"account-menu__item",children:(0,i.jsxs)(ee.z,{className:"button button--icon button--plain",to:te.J.settings,"data-cy":"account-settings-navlink",children:[e("menu.settings"),(0,i.jsx)(Ue.I,{source:Sd})]})}),(0,i.jsx)("div",{className:"account-menu__separator","aria-hidden":"true"}),(0,i.jsx)("div",{className:"account-menu__item",children:(0,i.jsxs)("a",{href:e("help.base-url"),target:"_blank",className:"button button--icon button--plain",rel:"noreferrer",children:[e("ui.ariaHelp"),(0,i.jsx)(Ue.I,{source:Ui.A})]})}),(0,i.jsx)("div",{className:"account-menu__separator","aria-hidden":"true"}),(0,i.jsx)("div",{className:"account-menu__item account-menu__item--auth",children:(0,i.jsx)(bd,{})})]})}):null))})]})})};var Id;function Cd(){return Cd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cd.apply(null,arguments)}const _d=e=>r.createElement("svg",Cd({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Id||(Id=r.createElement("path",{fill:"#111212",d:"M11.38 2.019a7.5 7.5 0 1 0 10.6 10.6C21.662 17.854 17.316 22 12.001 22 6.477 22 2 17.523 2 12c0-5.315 4.146-9.661 9.38-9.981"})));var jd;function Nd(){return Nd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Nd.apply(null,arguments)}const Ld=e=>r.createElement("svg",Nd({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),jd||(jd=r.createElement("path",{fill:"#111212",d:"M12 18a6 6 0 1 1 0-12 6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8 4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636 5.636 7.05zM16.95 18.364l1.414-1.414 2.121 2.121-1.414 1.414zm2.121-14.85 1.414 1.415-2.121 2.121-1.414-1.414 2.121-2.121zM5.636 16.95l1.414 1.414-2.121 2.121-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"}))),Pd=()=>{const{dark:e,setDark:t}=b(),{t:n}=(0,k.Bd)();return(0,i.jsx)(N.$,{variant:"plain",ariaLabel:n(e?"ui.darkModeTooltip.light":"ui.darkModeTooltip.dark"),"data-cy":"dark-mode-toggle",title:n(e?"ui.darkModeTooltip.light":"ui.darkModeTooltip.dark"),icon:e?(0,i.jsx)(Ue.I,{source:_d}):(0,i.jsx)(Ue.I,{source:Ld}),onClick:()=>t(!e)})},Dd=({auth:e})=>(0,i.jsx)("div",{className:"page-header__actions",children:(null==e?void 0:e.authenticated)?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"selectors",children:[(0,i.jsx)(Pd,{}),(0,i.jsx)(Ed,{})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"selectors",children:(0,i.jsx)(Pd,{})})})}),Md=({data_cy:e="pageHeader"})=>{const t=(0,c.As)(),{isFullscreen:n}=ae(),{pathname:r}=(0,be.zy)(),a=kd([te.J.dau],r)||kd([te.J.uhb],r)||kd(wd,r);if(!n&&!a)return(0,i.jsxs)("header",{className:"page-header "+(a?"page-header--compact":""),"data-cy":e,children:[(0,i.jsxs)("div",{className:"page-header__block",children:[!a&&(0,i.jsx)(ee.z,{to:te.J.welcome,children:(0,i.jsx)("div",{className:"page-header__brand",children:(0,i.jsx)(Te,{})})}),(0,i.jsx)(Dd,{auth:t})]}),!(null==t?void 0:t.authenticated)&&!(null==t?void 0:t.inErrorState)&&(0,i.jsxs)("div",{className:"page-header__actions",children:[(0,i.jsx)(bd,{}),(0,i.jsx)(Kr,{})]})]})};var Od=n(17185),Rd={};Rd.styleTagTransform=q(),Rd.setAttributes=B(),Rd.insert=R().bind(null,"head"),Rd.domAPI=M(),Rd.insertStyleElement=F();P()(Od.A,Rd);Od.A&&Od.A.locals&&Od.A.locals;var zd=n(52993),Bd={};Bd.styleTagTransform=q(),Bd.setAttributes=B(),Bd.insert=R().bind(null,"head"),Bd.domAPI=M(),Bd.insertStyleElement=F();P()(zd.A,Bd);zd.A&&zd.A.locals&&zd.A.locals;var Ud,Fd=n(79384);function Vd(){return Vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Vd.apply(null,arguments)}const qd=e=>r.createElement("svg",Vd({xmlns:"http://www.w3.org/2000/svg",width:16,height:18,fill:"none"},e),Ud||(Ud=r.createElement("path",{fill:"#111212",d:"M10.5 2.333H2.167v13.334h11.666v-10H10.5zm-10-.84a.83.83 0 0 1 .832-.826h10.001L15.5 4.833v11.66c0 .464-.37.84-.828.84H1.328a.833.833 0 0 1-.828-.826zM8 8.166v-2.5L11.333 9 8 12.333v-2.5H4.667V8.166z"}))),Hd=({previewTeaserOpen:e,setPreviewTeaserOpen:t,upCommercial:n,augmentedCommercials:a,edition:s,refetchProduct:l,demoLinks:d=!1})=>{var u;const{authenticated:p}=(0,c.As)(),h=(0,fe.m)(),{t:m}=(0,k.Bd)(),g=(0,o.U)(),f=(0,se.P)(),[v,b]=(0,r.useState)(!1),[y,x]=(0,r.useState)(""),{refetch:w,data:A}=We(y,{hideToast:!0}),[T,S]=(0,r.useState)(!1),{mutateAsync:E}=$e(),{setEnableKeyboardNavigation:I}=(0,Pe.Us)(),{setLearningProgressModalOpen:C,setScrollToLessonId:_}=(0,Pe.Us)(),j=(0,Re.V)(),L=(0,fe.m)(),P=()=>{setTimeout((()=>{S(!1),b(!1),x("")}),300)};(0,r.useEffect)((()=>{e&&I(!1)}),[e]);const D=s&&(null===(u=s.license)||void 0===u?void 0:u.isAssignedToUser)&&!Xt(s.license),M=s&&(null==s?void 0:s.type)&&s.type===nr.SE.DIGITAL?"dau":s&&(null==s?void 0:s.type)&&s.type===nr.SE.EKSDI?"eksdi":"uhb";return(0,i.jsx)(Xe.y,{title:m(`commercialTeaser.${M}.title`),open:e,closeButton:!0,close:()=>{if(t(!1),I(!0),s.type===nr.SE.EKSDI){const e=j.get("teaserAssetId");e&&(_(e),j.delete("teaserAssetId"),L(location.pathname+"?"+j.toString()),C(!0))}},contentClassName:"px-2 md:px-4 xl:px-8 xl:max-w-[1000px]",copy:(0,i.jsx)(i.Fragment,{children:v?(0,i.jsx)(nt,{successModal:T,compositLicenseCheck:A,activateLicense:async()=>{try{await E({licenseKey:y}),l&&l(),S(!0)}catch(e){console.log("error",e)}},close:P,closeTeaser:()=>t(!1)}):(0,i.jsxs)("div",{children:[(0,i.jsxs)("div",{className:"uhb-teaser__text-wrapper",children:[(0,i.jsx)("div",{className:"uhb-teaser__image-wrapper",children:(0,i.jsx)("img",{src:"uhb"===M?"./images/uhb-teaser.png":"eksdi"===M?"./images/lp-teaser.png":"./images/dau-teaser.png",alt:"",role:"presentation"})}),(0,i.jsxs)("div",{className:"flex flex-col justify-between",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-5",children:[(0,i.jsx)("p",{className:"uhb-teaser__text",children:!(null==s?void 0:s.type)||(null==s?void 0:s.type)!==nr.SE.UHB||n&&0!==(null==n?void 0:n.commercialCategories.length)?(0,i.jsx)(k.x6,{i18nKey:`commercialTeaser.${M}.text`}):(0,i.jsx)(k.x6,{i18nKey:`commercialTeaser.${M}.alternativeTextWithoutAdditionalAssets`})}),n&&(null==n?void 0:n.commercialCategories.length)>0&&(0,i.jsx)("ul",{children:null==n?void 0:n.commercialCategories.map(((e,n)=>(0,i.jsx)(Fd.h,{category:e,userHasLicense:D,demoLinks:d,closeModal:()=>t(!1)},n+e.label)))}),a&&(null==a?void 0:a.commercialCategories.length)>0&&(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"uhb-teaser__text",children:m(`commercialTeaser.${M}.additionalText`)}),(0,i.jsx)("ul",{children:null==a?void 0:a.commercialCategories.map(((e,n)=>(0,i.jsx)(Fd.h,{category:e,userHasLicense:D,demoLinks:d,closeModal:()=>t(!1)},n+e.label)))})]})]}),(0,i.jsx)("div",{className:"uhb-teaser__button-wrapper",children:D?(0,i.jsx)(N.$,{data_cy:"button-commercial-uhb",variant:"secondary",onClick:()=>{P(),t(!1),h((0,Qe.v)(s.npNumber,s.type).to)},icon:(0,i.jsx)(Ue.I,{source:qd}),children:m(`commercialTeaser.${M}.buttonOpen`)}
2):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{data_cy:"button-commercial-uhb",onClick:()=>t(!1),variant:"plain",children:m("commercialTeaser.buttonLater")}),(0,i.jsxs)("a",{target:"_blank",href:("DELTA"===f?g.webshopUrlDelta:g.webshopUrlEks)+(null==s?void 0:s.npNumber),className:"button button--buy",rel:"noreferrer",children:[(0,i.jsx)("span",{children:m("commercialTeaser.buttonBuy")}),(0,i.jsx)(Ue.I,{source:It.A,accessibilityLabel:m("commercialTeaser.opensNewTab")})]})]})})]})]}),D?"":(0,i.jsxs)("div",{className:"license-card mt-4",children:[(0,i.jsxs)("div",{className:"flex flex-col gap-2 mb-4",children:[(0,i.jsx)("p",{className:"font-bold text-textStrong text-base",children:m(`commercialTeaser.${M}.license.title`)}),(0,i.jsx)("p",{className:"text-textStrong text-base",children:m(p?`commercialTeaser.${M}.license.text`:"maxProduct.license.teaserText")})]}),p?(0,i.jsx)(cn,{setLicenseView:b,refetch:w,licenseValue:y,setLicenseValue:x}):(0,i.jsx)(De.M,{variant:"secondary",text:m("protected.unauthCta")})]})]})})})},Gd=({type:e,title:t,active:n,edition:a,commercials:o,refetchMaxProd:s,structure:l})=>{const c=(0,Re.V)(),{pathname:d}=(0,be.zy)(),{dauNp:u,lastDauPage:p,setLastDauPage:h}=Nc(),[m,g]=(0,r.useState)(!1),[f,v]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{a&&(a.license&&!Xt(a.license)?g(!0):g(!1))}),[a]),(0,r.useEffect)((()=>{const e=parseInt(c.get("page"))||1;kd([te.J.dau],d)&&h(e)}),[d,c]),!a)return;const b=()=>{v(!0)};if(!m){const e=null==o?void 0:o.find((e=>e.npNumber===a.npNumber));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:n?"primary":"plain",className:"edition-tab",size:"sm",onClick:b,children:t}),(0,i.jsx)(Hd,{upCommercial:e,previewTeaserOpen:f,setPreviewTeaserOpen:v,edition:a,refetchProduct:s})]})}const y=(e,t)=>{const n=[];return t&&n.push(t),e&&n.push(e),n.push("type=link"),"?"+n.join("&")};return(0,i.jsx)(ee.z,Object.assign({},(0,Qe.v)(a.npNumber,a.type,(()=>{var e;const t=parseInt(c.get("page"))||1,n=c.get("mode")?"mode=double":void 0;if(kd([te.J.dau],d)){if(a.type===nr.SE.UHB){const i=null===(e=null==l?void 0:l.uhbStructure)||void 0===e?void 0:e.find((e=>parseInt(e.pageFrom)<=t&&parseInt(e.pageTo)>=t)),r=(null==i?void 0:i.targetPage)?`page=${null==i?void 0:i.targetPage}`:void 0;return y(n,r)}}else if(a.type===nr.SE.DIGITAL){const e=p?`page=${p}`:void 0;return u!==a.npNumber?"":y(n,e)}return null})()),{children:(0,i.jsx)(N.$,{variant:n?"primary":"plain",className:"edition-tab",size:"sm",id:`tab-${e}`,children:t})}))},Kd=({maxProd:e,structure:t,refetchMaxProd:n,className:a=""})=>{var o,s;const[l,d]=(0,r.useState)(nr.SE.DIGITAL),{t:u}=(0,k.Bd)(),{pathname:p}=(0,be.zy)(),{authorization:h}=(0,c.As)(),m=0===h.realmAccessRoles.filter((e=>"teacher"===e||"schooladmin"===e||"eks_content_admin"===e||"editor"===e)).length;(0,r.useEffect)((()=>{p&&(kd([te.J.dau],p)?d(nr.SE.DIGITAL):kd([te.J.uhb],p)&&d(nr.SE.UHB))}),[p]),(0,r.useEffect)((()=>{if(l){const e=document.getElementById("edition-tabs-container"),t=document.getElementById(`tab-${l}`);e&&t&&e.scrollBy({left:null==t?void 0:t.offsetLeft,behavior:"smooth"})}}),[l]);return(e?null==e?void 0:e.editions.filter((e=>e.type===nr.SE.DIGITAL||e.type===nr.SE.UHB&&!m)).length:0)<2?(0,i.jsx)("div",{className:`edition-tabs__container ${a}`}):(0,i.jsx)("div",{className:`edition-tabs__container ${a}`,id:"edition-tabs-container",children:(0,i.jsxs)("div",{className:"edition-tabs",children:[(0,i.jsx)(Gd,{type:nr.SE.DIGITAL,title:u("maxProduct.tabs.dau"),active:l===nr.SE.DIGITAL,edition:null===(o=null==e?void 0:e.editions)||void 0===o?void 0:o.find((e=>e.type===nr.SE.DIGITAL)),commercials:null==e?void 0:e.commercials,refetchMaxProd:n,structure:t}),!m&&(0,i.jsx)(Gd,{type:nr.SE.UHB,title:u("maxProduct.tabs.uhb"),active:l===nr.SE.UHB,edition:null===(s=null==e?void 0:e.editions)||void 0===s?void 0:s.find((e=>e.type===nr.SE.UHB)),refetchMaxProd:n,structure:t})]})})};var $d=n(17931),Wd={};Wd.styleTagTransform=q(),Wd.setAttributes=B(),Wd.insert=R().bind(null,"head"),Wd.domAPI=M(),Wd.insertStyleElement=F();P()($d.A,Wd);$d.A&&$d.A.locals&&$d.A.locals;const Xd=({maxProd:e,structure:t,refetchMaxProd:n})=>{const{t:a}=(0,k.Bd)(),o=(0,c.As)(),{isFullscreen:s}=ae(),l=(0,J.Ay)(J.L$),[d,u]=(0,r.useState)(!1);if((0,r.useEffect)((()=>{u(l)}),[l]),!s)return o?l&&d?(0,i.jsx)("header",{className:"page-header flex p-0","data-cy":"pageHeader",children:(0,i.jsx)(N.$,{variant:"plain",size:"sm",onClick:()=>u(!1),className:"w-full",ariaLabel:a("dau.header.open"),title:a("dau.header.open")})}):(0,i.jsx)("header",{className:"page-header flex py-1 "+(l?"px-0":""),"data-cy":"pageHeader",children:(0,i.jsxs)("div",{className:"page-header__block--dau",children:[l&&(0,i.jsx)(N.$,{variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{className:"w-5 h-5",source:Zi,accessibilityLabel:a("dau.header.close")}),onClick:()=>u(!0),className:"text-surface hover:bg-primary"}),(0,i.jsx)(Kd,{maxProd:e,structure:t,refetchMaxProd:n,className:"page-header__edition-tabs"}),(0,i.jsx)(Dd,{auth:o})]})}):(0,i.jsx)(Md,{"data-cy":"PageHeader"})},Yd=.1,Jd=1,Zd=Jd,Qd=({asset:e,layerClass:t,tools:n,isUhb:a,structure:s,setVisibleToolsNumber:c,maxProd:d,refetchMaxProd:u})=>{var p;const h=(0,o.U)(),m=new AbortController,g=(0,J.Ay)(J.FD),{isDrawerOpen:v}=(0,Pe.Us)(),{setLoadingError:b}=_l(),{pdf:y,pdfUrl:x,isLoading:w,error:k,setStreamingError:A,shouldUseBuffer:T}=((e,t,n)=>{const i=(0,o.U)(),[a,s]=(0,r.useState)(),[c,d]=(0,r.useState)(!0),[u,p]=(0,r.useState)(null),{mutateAsync:h}=(0,ge.u)(),[m,g]=(0,r.useState)(),f=(0,l.n)(),[v,b]=(0,r.useState)(!1),[y,x]=(0,r.useState)(void 0),{pdf:w,isLoading:k,error:A}=Oc(v?e:null,t,n),T=()=>{const t=i.backendServiceBaseUrl.replace("a.","").replace("b.","");g(`${t}/asset/pdf-proxy/public/${e}`),d(!1),p(null)};return(0,r.useEffect)((()=>{e&&(0,Dc.jC)(e,t===Pc.PDF?Si.i_.PDF:Si.i_.DAU_PDF).then((e=>{if(e){const t=e.binary.slice(0);(!a||a&&a.byteLength!==t.byteLength)&&s(t),d(!1)}else f&&T()})).catch((e=>{f&&(h({errorMessage:`Error getting ${t}`,errorObject:e,level:"info"}),T())}))}),[e]),(0,r.useEffect)((()=>
2{if(v&&w&&w!==y){const e=w.slice(0);x(e)}}),[v,w]),(0,r.useEffect)((()=>{u&&!v&&(console.warn("Streaming failed. Initiating ArrayBuffer fallback."),h({errorMessage:`Streaming failed for ${e}`,errorObject:u,level:"error"}),g(void 0),b(!0),p(null))}),[u,v,h,e]),v?{pdf:y,pdfUrl:void 0,isLoading:k||!y,error:A,shouldUseBuffer:v}:{pdf:a,pdfUrl:m,isLoading:c,setStreamingError:p,shouldUseBuffer:v}})(e.id,a?Pc.UHB:Pc.DAU,m.signal),{dauNp:S,setDauNp:E,uhbNp:I,setUhbNp:C,resetEditionData:_}=Nc(),{page:j,setPage:N,isDoublePage:L,setIsDoublePage:P,autoLayout:D,scale:M,setScale:O,documentDimensions:R,setDocumentDimensions:z,numPages:B,setNumPages:U,tool:F,isZoomedIn:V,isTemporalZooming:q}=au(),{mutateAsync:H}=(0,ge.u)(),G=(0,r.useRef)(),K=(0,r.useRef)(),$=(0,r.useRef)(0),W=(0,r.useRef)(0),X=(0,r.useRef)(1),Y=(0,r.useRef)(1),Z=(0,r.useRef)(1),Q=(0,r.useRef)(1),ee=(0,r.useRef)(1),te=(0,r.useRef)(1),ne=(0,r.useRef)(M),ie=(0,r.useRef)(),re=j>0&&j<B,[ae,oe]=(0,r.useState)(!1);(0,r.useEffect)((()=>{oe(!1)}),[j]);const se=(0,r.useCallback)((t=>{"ERR_CANCELED"===(null==t?void 0:t.code)||(console.error("Error loading dau-pdf: ",t),T?(b(!0),H({errorMessage:"Error loading dau-pdf "+e.id,errorObject:t})):A(t))}),[e.id,H,b,A,T]);(0,r.useEffect)((()=>{k?se(k):b(!1)}),[k,se,b]),(0,r.useEffect)((()=>{var e;if(G&&0===(null===(e=G.current)||void 0===e?void 0:e.getBoundingClientRect().height)){const e=qo(G);e&&(G.current.style.height=e+"px")}}),[G]),(0,r.useEffect)((()=>((I||S)&&e.id&&(a&&I&&I!==e.id||!a&&S&&S!==e.id)&&_(),a?C(e.id):E(e.id),()=>{m.abort()})),[e.id]);const le=(0,r.useCallback)((e=>{U(e.numPages)}),[U]),ce=(0,r.useCallback)((()=>{let e=L&&re;if(!V&&D){const t=G.current.clientWidth,n=G.current.clientHeight/t;e=!!(n<Q.current&&re)||(Z.current,!1),P(e)}const t=te.current*(e?2:1),n=ee.current;R&&t===R.width&&n===R.height||z({width:t,height:n})}),[V,L,P,D,re,z,R]),de=(0,r.useCallback)(((e,t)=>{(null==h?void 0:h.isRealProduction)||console.log("onRenderSuccess"),1===M&&(X.current=e,Y.current=t,Z.current=e/t,Q.current=e/(2*t)),ee.current=e,te.current=t,ce(),oe(!0)}),[ce,M]),ue=(0,r.useCallback)((()=>{clearTimeout(ie.current),ie.current=setTimeout((function(){ce()}),100)}),[ce]);(0,r.useEffect)((()=>(window.addEventListener("resize",ue),()=>{window.removeEventListener("resize",ue)})),[ue]),(0,r.useEffect)((()=>{ce()}),[D,L]),(0,r.useEffect)((()=>{g||setTimeout((()=>{ce()}),300)}),[v]);const pe=e=>{let t=isNaN(e)?Jd:e;return t=t>4?4:t,t=t<Zd?Zd:t,t},he=()=>{Vo(K.current,$.current,W.current)};(0,r.useEffect)((()=>{ne.current=M}),[M]);const me=(0,r.useCallback)((e=>{const t=(n=e,Math.round(100*n)/100);var n;O(t),localStorage.setItem(f.C_,t.toString())}),[O]),fe=()=>{$.current=0,W.current=0,Vo(K.current,$.current,W.current)},ve=(0,r.useCallback)((()=>{me(Jd),fe()}),[me]),be=(0,r.useCallback)((()=>{const e=pe(M+Yd);e!==ne.current&&me(e)}),[M,me]),ye=(0,r.useRef)(),xe=(0,r.useRef)(),we=(0,r.useRef)(),ke=(0,r.useCallback)((e=>{const t=pe(e.newZoom);if(t!==ne.current)if(t<=Jd)ve();else{const n=K.current.getBoundingClientRect(),i=e.focusX-n.left,r=e.focusY-n.top,a=-1*(n.width/2-i),o=-1*(0-r),s=t/ne.current,l=a*s-a,c=o*s-o;me(t),$.current=$.current-l,W.current=W.current-c,he()}}),[ve,me]),Ae=(0,r.useCallback)((e=>{const t=pe(e);if(t<ne.current)if(t===Jd)ve();else{const e=ne.current-t,n=(ne.current-Jd)/e;if(n>0){const e=$.current/n;$.current-=e;const t=W.current/n;W.current-=t}me(t),he()}}),[ve,me]),Te=(0,r.useRef)(0),Se=(0,r.useCallback)((e=>{const t=pe(e.newZoom)/ne.current;if(t!==we.current){const n=K.current.getBoundingClientRect(),i=e.focusX-n.left,r=e.focusY-n.top,a=-1*(n.width/2-i),o=-1*(n.height/2-r),s=t/we.current,l=a*s-a,c=o*s-o;ye.current=ye.current-l,xe.current=xe.current-c,we.current=t,K.current.style.transform="translate("+ye.current+"px, "+xe.current+"px) scale("+t+")"}}),[]),Ee=(0,r.useCallback)((e=>{const t=K.current.getBoundingClientRect();Te.current=t.height*(Jd/ne.current),q.current=!0,ye.current=$.current,xe.current=W.current,we.current=1,ke(e)}),[ke]),Ie=(0,r.useRef)(null),Ce=()=>{q.current=!1},_e=(0,r.useCallback)((e=>{Ie.current=setTimeout(Ce,10),he(),ke(e)}),[ke]),je=(0,r.useCallback)((()=>{Ae(M-Yd)}),[M,Ae]),Ne=(0,r.useRef)(null),Le=(0,r.useRef)(0),De=(0,r.useCallback)((()=>{const e=Ne.current;if(K.current&&Ne.current){const t=(Le.current&&Le.current>=2?Math.round(Le.current/2):1)*Yd*2;e.deltaY<0?ke({newZoom:ne.current+t,focusX:e.pageX,focusY:e.pageY}):Ae(ne.current-t)}Le.current=0}),[ne.current]),Me=(0,r.useRef)(null);(0,r.useEffect)((()=>{K.current.addEventListener("wheel",(e=>{e.preventDefault(),Le.current=Le.current?Le.current+1:1,Me.current&&clearTimeout(
2Me.current),Ne.current=e,Me.current=setTimeout(De,15)}))}),[]);const Oe=(e,t)=>{const n=Rl(e,L,B,t);N(n),fe()},Re=(0,r.useCallback)((()=>{j>=B||F||V||Oe(j+1,"next")}),[V,B,j,F]),ze=(0,r.useCallback)((()=>{j<=1||F||V||Oe(j-1,"prev")}),[V,j,F]),Be=(0,_c.uh)({onSwipedLeft:Re,onSwipedRight:ze,swipeDuration:1/0,preventScrollOnSwipe:!0,trackMouse:!V,delta:(()=>{var e,t;const n=window.innerWidth?window.innerWidth:screen.width;return.1*((null===(e=document.querySelector(".react-pdf__Document"))||void 0===e?void 0:e.clientWidth)?null===(t=document.querySelector(".react-pdf__Document"))||void 0===t?void 0:t.clientWidth:n)})(),trackTouch:!0,rotationAngle:0,touchEventOptions:{passive:!0}});return(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(Xd,{maxProd:d,structure:s,refetchMaxProd:u}),(0,i.jsxs)("div",{className:"dau-pdf-page relative",children:[(0,i.jsx)(Cc,{asset:e,isUhb:a,structure:s,zoomOut:je,zoomIn:be,scaleLabel:(M?(100*M).toFixed():"")+"%",zoomTo:me,doReset:ve}),(0,i.jsxs)("div",{className:"dau-pdf-document-wrapper "+(L?"dau-pdf-document-wrapper--double":""),ref:G,children:[(0,i.jsx)(id,{tools:n,documentWrapperRef:G,structure:s,isUhb:a,setVisibleToolsNumber:c,maxProd:d}),(0,i.jsx)("div",Object.assign({className:"dau-pdf-document-slider"},Be,{children:(0,i.jsx)(cd,{containerRef:K,documentWrapperRef:G,pinchScale:ne,positionX:$,positionY:W,zoomFocusedTemporal:Se,signalPinchEnd:_e,signalPinchStart:Ee,children:(0,i.jsxs)("div",{ref:K,tabIndex:0,children:[(0,i.jsx)(ft.o,{inProgress:w,children:(0,i.jsx)("div",{"data-cy":"dau-loading"})}),(y||x)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ml,{onDocumentLoadSuccess:le,onRenderSuccess:de,pdf:y,pdfUrl:x,documentWrapperRef:G,book:e.book,handleLoadError:se,lPlusNp:null===(p=null==d?void 0:d.editions.find((e=>e.type===nr.SE.EKSDI)))||void 0===p?void 0:p.npNumber}),(0,i.jsx)(Ks,{layerClass:t,layerVisible:ae,width:null==R?void 0:R.width,height:null==R?void 0:R.height})]})]})})}))]})]})]})},eu=(e,t)=>{if(localStorage.getItem(e)){return"true"===localStorage.getItem(t)}return localStorage.setItem(e,"true"),localStorage.setItem(t,"true"),!0},tu=100,nu=5,iu=5,ru=r.createContext(null),au=()=>(0,r.useContext)(ru),ou=({setIsSelected:e,children:t,selectedTool:n,structure:a,isUhb:s,setTool:l,maxProduct:c,np:u})=>{const p=(0,r.useRef)(!1),{id:h}=(0,be.g)(),m=(0,Re.V)(),[g,v]=(0,r.useState)("double"===m.get("mode")),[b,y]=(0,r.useState)(),[x,w]=(0,r.useState)(1),[A,E]=(0,r.useState)(Jd),[I,C]=(0,r.useState)(null),{saveVersion:_,deleteDauEdits:j,currentVersion:N,sharedDauVersion:L}=(0,Ia.BU)(),[P,D]=(0,r.useState)([]),M=(0,r.useRef)(P),O=(0,r.useRef)(new Set),[R,z]=(0,r.useState)(""),{refetch:B,data:U}=function(e,t,n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,T.I)({queryKey:["get-dau-version-by-id",t,e],queryFn:async()=>(await i.get(`/digital/dauEdits/${t}/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(a,n||{message:r("error.augmented.failGetProduct")})}(null==N?void 0:N.versionId,h,{hideToast:!0}),[F,V]=(0,r.useState)(!1),q=(0,fe.m)(),{mutateAsync:H}=Fn({hideToast:!0}),[G,K]=(0,r.useState)(null),[$,W]=(0,r.useState)(null),{drawSelectThreshold:X}=(0,o.U)(),Y=X||500,[J,Z]=(0,r.useState)(!1),[Q,ee]=(0,r.useState)(!1),{triggerDauLearningProgressRefetch:te,setTriggerDauLearningProgressRefetch:ne,setIsDrawerOpen:ie}=(0,Pe.Us)(),{data:re,refetch:ae,isPending:oe}=ls(!!u&&!s&&te,u,""),se=r.useRef(""),le=r.useRef(null);(0,r.useEffect)((()=>{te&&(ae(),ne(!1))}),[te,ae]),(0,r.useEffect)((()=>{M.current=P}),[P]);const ce=(0,r.useCallback)((()=>"-1"===N.versionId?[]:(null==U?void 0:U.info.versionId)===N.versionId?U.dauEdits:(null==L?void 0:L.info.versionId)===N.versionId?L.dauEdits:null),[N.versionId,U,L]);(0,r.useEffect)((()=>{const e=!n||n===ts.GRAB;ee(A!==Jd&&!(J&&!e))}),[A,J,n]),(0,r.useEffect)((()=>{Q?n||l(ts.GRAB):n&&n===ts.GRAB&&l(null)}),[Q]);const de=e=>{m.set("page",e),m.get("type")!==Si.i_.AUDIO&&m.get("type")!==Si.i_.VIDEO&&(m.delete("id"),m.delete("type"),m.delete("minimized"),m.delete("background")),m.delete("exerciseId"),m.delete("selftestID"),m.delete("modal"),q(location.pathname+"?"+m.toString())};(0,r.useEffect)((()=>
2{if(!$){const e=(e=>e&&(!e.lastUpdate||e.lastUpdate<1729728e6)?Object.assign(Object.assign({},e),{text:Object.assign(Object.assign({},e.text),{fontSize:ns.text.fontSize,fontSizeNormed:ns.text.fontSizeNormed}),lastUpdate:Date.now()}):e)(JSON.parse(localStorage.getItem(f.pW))),t=Object.assign(Object.assign({},ns),e);W(e||t)}const e=localStorage.getItem(f.C_),t=Number(e);!isNaN(t)&&t>0?E(t):E(Jd);const n=localStorage.getItem(f.hY),i=n?zl[null==n?void 0:n.toUpperCase()]:zl.AUTO;m.get("page")||i!==zl.EVEN_DOUBLE||de(0),y(i===zl.AUTO);const r=i===zl.EVEN_DOUBLE||i===zl.ODD_DOUBLE;v(i?r:"double"===m.get("mode"))}),[]),(0,r.useEffect)((()=>{$&&localStorage.setItem(f.pW,JSON.stringify($))}),[$]);const ue=(0,r.useCallback)((()=>{if(a&&H){const e=s?et.yK.UHB:et.yK.DAU;H({request:{targetId:h,targetTitle:a.book.bookTitle,targetBookDescription:(null==c?void 0:c.bestandteil)?null==c?void 0:c.bestandteil:"",targetType:e,interactionCode:et.w2.OPENED,targetDetail:x}})}}),[h,H,a,s,null==c?void 0:c.bestandteil,x]);(0,r.useEffect)((()=>{ue()}),[ue]),(0,r.useEffect)((()=>{if(a){const e=eu(f.jf,f.yS);ie(e)}}),[ie,a]),(0,r.useEffect)((()=>{void 0!==g&&(!0===g?m.set("mode","double"):!1===g&&m.delete("mode"),q(location.pathname+"?"+m.toString()))}),[g]),(0,r.useEffect)((()=>{m.get("page")?w(parseInt(m.get("page"))):w(1),void 0!==g&&("double"===m.get("mode")?v(!0):v(!1))}),[m]),(0,r.useEffect)((()=>{"-1"!==(null==N?void 0:N.versionId)&&(null==N?void 0:N.versionId)!==(null==L?void 0:L.info.versionId)&&B()}),[N.versionId,B,L]);const pe=(0,r.useRef)(N.versionId),he=(0,r.useRef)(null);(0,r.useEffect)((()=>{const e=ce();if(null===e)return;const t=N.versionId!==pe.current,n=N.versionId!==he.current;t&&(V(!1),O.current.clear()),n?(D((n=>{const i=new Map(e.map((e=>[e.dauEditId,e])));return(t?[]:n).forEach((e=>i.set(e.dauEditId,e))),Array.from(i.values())})),he.current=N.versionId):F||D(e),pe.current=N.versionId}),[F,ce,N.versionId]),(0,r.useEffect)((()=>{e(R)}),[R,e]);const me=(0,r.useCallback)((async e=>{var t,n;const i=P,r=Array.from(O.current);try{let a;if(e)a=null===(t=await _(i,e))||void 0===t?void 0:t.versionId;else{const e=await j(r);a=null===(n=await _(i,void 0,e))||void 0===n?void 0:n.versionId}return O.current.clear(),M.current===i&&V(!1),B(),a}catch(e){throw e}}),[P,_,j,B]),ge=e=>!!(e&&e===se.current&&(new Date).getTime()-(le.current?le.current.getTime():0)<Y);return(0,i.jsx)(ru.Provider,{value:{dauEdits:P,setSelectedDauEditId:e=>!ge(e)&&(z(e),!0),checkSelectThreshold:ge,selectedDauEditId:R,addDauEdit:(e,t)=>{if(p.current)return;"draw"!==e.tool&&"marker"!==e.tool||(se.current=e.dauEditId,le.current=new Date),V(!0);const n=P.filter((n=>n.dauEditId!==e.dauEditId&&(!t||n.dauEditId!==t)));D([...n,e])},tool:n,toolSettings:$,setToolSettings:W,page:x,deleteSelected:async()=>{R&&(await(async e=>{O.current.add(e),D((t=>t.filter((t=>t.dauEditId!==e)))),V(!0)})(R),z(null))},deleteDauEdit:async e=>{D((t=>{const n=[];return t.forEach((t=>{rs(t.dauEditId,N.versionId)===e?(O.current.add(t.dauEditId),V(!0)):n.push(t)})),n}))},isDoublePage:g,setIsDoublePage:v,setPage:de,scale:A,setScale:E,documentDimensions:I,setDocumentDimensions:C,saveSession:me,unsavedChanges:F,resetDauEdits:()=>{F&&(B(),V(!1)),O.current.clear();const e=ce();null!==e&&D(e)},structure:a,numPages:G,setNumPages:K,setTool:l,isMouseDown:J,setIsMouseDown:Z,isZoomedIn:Q,setIsZoomedIn:ee,autoLayout:b,setAutoLayout:y,isTemporalZooming:p,id:h,dauLearningProgress:re,dauLearningProgressIsPending:oe},children:t})};var su;function lu(){return lu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lu.apply(null,arguments)}const cu=e=>r.createElement("svg",lu({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),su||(su=r.createElement("path",{d:"M4 3h16a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1m7 8H7v2h4v4h2v-4h4v-2h-4V7h-2z"})));var du=n(88629),uu={};uu.styleTagTransform=q(),uu.setAttributes=B(),uu.insert=R().bind(null,"head"),uu.domAPI=M(),uu.insertStyleElement=F();P()(du.A,uu);du.A&&du.A.locals&&du.A.locals;var pu=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const hu=({content:e,triggerButtonProps:t={},side:n,align:a,sideOffset:o=5,open:s,close:l,className:c=""})=>{const{ariaLabel:d}=t,u=pu(t,["ariaLabel"]),p=(0,r.useCallback)((()=>t?(0,N.Z)(t):""),[t]);return(0,i.jsxs)(Ys.bL,{open:s,children:[(0,i.jsx)(Ys.l9,Object.assign({},u,{"aria-label":d,className:p(),children:null==t?void 0:t.icon})),(0,i.jsx)(Ys.ZL,{container:document.getElementById("fullscreen-container"),children:(0,i.jsx)(Ys.UC,{className:`popover ${c}`,side:n,align:a,sideOffset:o,onEscapeKeyDown:e=>{l&&(e.preventDefault(),l())},children:e})})]})},mu=({tools:e,hideConfig:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsx)(hu,{content:(0,i.jsx)(i.Fragment,{children:e}),triggerButtonProps:{variant:"default",icon:(0,i.jsx)(Ue.I,{source:cu,accessibilityLabel:n("ui.icons.add")}
2),data_cy:"more-tools",title:n("dau.tools.moreToolsTooltip"),ariaLabel:n("dau.tools.moreToolsTooltip"),onClick:()=>t()},side:"left",align:"end",sideOffset:8,className:"z-50 shadow-md"})},gu=({asset:e,structure:t,tool:n,setTool:a,isUhb:o,maxProd:s,refetchMaxProd:l})=>{var c;const{t:d}=(0,k.Bd)(),{setSelectedDauEditId:u,selectedDauEditId:p,isZoomedIn:h}=au(),{featureToggle:m}=en(),g=m.includes(nn),[f,v]=(0,r.useState)(),[b,y]=(0,r.useState)(!1),x=(0,r.useCallback)((t=>{var i,r;t!==n||b?(t===ts.GRAB&&u(null),t===ts.TRANSLATE&&(0,it.r)({productId:null===(i=null==e?void 0:e.book)||void 0===i?void 0:i.npNumber,productName:null===(r=null==e?void 0:e.book)||void 0===r?void 0:r.bookTitle,eventType:"clickAllangoBuddy"}),y(!1),a(t)):(a(h?ts.GRAB:null),u(null))}),[n,a,u,b]);(0,r.useEffect)((()=>{p&&y(!1)}),[p]);const w=(0,r.useCallback)((()=>{switch(n){case ts.DRAW:return"cursor-draw";case ts.GRAB:return"cursor-grab";case ts.MARKER:return"cursor-draw";case ts.SHAPE:return"cursor-shape";case ts.NOTE:return"cursor-note";case ts.TEXT:return"cursor-writeText";case ts.TRANSLATE:return"cursor-text";case ts.ERASER:return"cursor-eraser";default:return""}}),[n]),A=(0,r.useCallback)((()=>{var t;const r=[(0,i.jsx)(hu,{triggerButtonProps:{variant:n===ts.DRAW?"primary":"default",icon:(0,i.jsx)(Ue.I,{source:Fa}),data_cy:"dauToolsDraw",title:d("dau.tools.selection.drawTooltip"),ariaLabel:d("dau.tools.selection.drawAria"),onClick:()=>x(ts.DRAW)},side:"left",align:"start",content:(0,i.jsx)(Qo,{setBoxHidden:y,"data-cy":"dauToolsDrawConfig"}),open:n===ts.DRAW&&!b,close:()=>a(null),className:"z-50"},"DRAW"),(0,i.jsx)(hu,{triggerButtonProps:{variant:n===ts.MARKER?"primary":"default",icon:(0,i.jsx)(Ue.I,{source:Ha}),data_cy:"dauToolsMark",title:d("dau.tools.selection.markTooltip"),ariaLabel:d("dau.tools.selection.markAria"),onClick:()=>x(ts.MARKER)},side:"left",align:"start",content:(0,i.jsx)(Yo,{setBoxHidden:y,"data-cy":"dauToolsMarkerConfig"}),open:n===ts.MARKER&&!b,close:()=>a(null),className:"z-50"},"MARKER"),(0,i.jsx)(N.$,{variant:n===ts.ERASER?"primary":"default",onClick:()=>x(ts.ERASER),icon:(0,i.jsx)(Ue.I,{source:co}),title:d("dau.tools.selection.eraserTooltip"),ariaLabel:d("dau.tools.selection.eraserAria")},"ERASER"),(0,i.jsx)(N.$,{variant:n===ts.TEXT?"primary":"default",onClick:()=>x(ts.TEXT),icon:(0,i.jsx)(Ue.I,{source:io}),title:d("dau.tools.selection.addTextTooltip"),ariaLabel:d("dau.tools.selection.addTextAria")},"TEXT"),(0,i.jsx)(hu,{triggerButtonProps:{variant:n===ts.SHUTTERS?"primary":"default",icon:(0,i.jsx)(Ue.I,{source:Ja}),data_cy:"dauToolsShutter",title:d("dau.tools.selection.coverPageTooltip"),ariaLabel:d("dau.tools.selection.coverPageAria"),onClick:()=>x(ts.SHUTTERS)},side:"left",align:"start",content:(0,i.jsx)(Ds,{"data-cy":"dauToolsShuttersConfig",closeTool:()=>a(null)}),open:n===ts.SHUTTERS&&!b,close:()=>a(null),className:"z-50"},"SHUTTERS"),(0,i.jsx)(N.$,{variant:n===ts.NOTE?"primary":"default",onClick:()=>x(ts.NOTE),icon:(0,i.jsx)(Ue.I,{source:eo}),title:d("dau.tools.selection.addCommentTooltip"),ariaLabel:d("dau.tools.selection.addCommentAria")},"NOTE"),(0,i.jsx)(N.$,{variant:n===ts.SHAPE?"primary":"default",onClick:()=>x(ts.SHAPE),icon:(0,i.jsx)(Ue.I,{source:Wa}),title:d("dau.tools.selection.rectangleTooltip"),ariaLabel:d("dau.tools.selection.rectangleAria")},"SHAPE")];if(g&&(null===(t=null==e?void 0:e.book)||void 0===t?void 0:t.trslSrcLanguage)&&r.splice(0,0,(0,i.jsx)(N.$,{variant:n===ts.TRANSLATE?"primary":"default",onClick:()=>x(ts.TRANSLATE),icon:(0,i.jsx)(Ue.I,{source:oo}),title:d("dau.tools.selection.translationTooltip"),ariaLabel:d("dau.tools.selection.translationAria")},"TRANSLATE")),"number"==typeof f){const e=()=>{n!==ts.DRAW&&n!==ts.MARKER||y(!0)};if(f<=0)return[(0,i.jsx)(mu,{tools:r,hideConfig:e},"ADD")];if(f<r.length-1){const t=r.slice(0,f),n=r.slice(f);return t.push((0,i.jsx)(mu,{tools:n,hideConfig:e},"ADD")),t}}return r}),[g,n,x,d,f,null===(c=null==e?void 0:e.book)||void 0===c?void 0:c.trslSrcLanguage]);return(0,i.jsx)(Qd,{tools:A(),asset:e,structure:t,layerClass:w(),isUhb:o,setVisibleToolsNumber:v,maxProd:s,refetchMaxProd:l})};var fu;function vu(){return vu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vu.apply(null,arguments)}const bu=e=>r.createElement("svg",vu({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),fu||(fu=r.createElement("path",{fill:"#111212",d:"M21 18v2H3v-2zM6.95 3.55v9.9L2 8.5zM21 11v2h-9v-2zm0-7v2h-9V4z"})));var yu=n(17257),xu={};xu.styleTagTransform=q(),xu.setAttributes=B(),xu.insert=R().bind(null,"head"),xu.domAPI=M(),xu.insertStyleElement=F();P()(yu.A,xu);yu.A&&yu.A.locals&&yu.A.locals;const wu=({inDrawer:e=!1})=>{const{isDrawerOpen:t,setIsDrawerOpen:n}=(0,Pe.Us)(),{t:r}=(0,k.Bd)();return(0,i.jsxs)(i.Fragment,{children:[!e&&(0,i.jsx)("div",{className:"w-6 "+(t?"xl:hidden":"")}),(0,i.jsx)(N.$,{id:"aside-button","data-cy":t?"hideNavigation":"openNavigation",className:`aside__button ${e?"":"fixed top-0 h-full"} ${!e&&t?"xl:hidden":""}`,variant:"plain",ariaLabel:r(t?"navigation.tooltipCloseSideNavigation":"navigation.tooltipOpenSideNavigation"),title:r(t?"navigation.tooltipCloseSideNavigation":"navigation.tooltipOpenSideNavigation"),onClick:()=>{n(!t),setTimeout((()=>{var e;null===(e=document.getElementById("aside-button"))||void 0===e||e.focus()}),300)},children:(0,i.jsx)("div",{className:"h-full max-h-screen flex",children:(0,i.jsx)(Ue.I,{source:t?il.A:zc.A})})})]})},ku=({children:e,header:t,headerClass:n,headerId:a,tabs:o})=>{const{isDrawerOpen:s,setIsDrawerOpen:l}=(0,Pe.Us)(),{t:c}=(0,k.Bd)(),d=(0,r.useRef)(null),u=(0,r.useRef)(null),[p,h]=(0,r.useState)(0),[m,g]=(0,r.useState)(0),f=!!d.current,v=(0,J.Ay)(),b=(0,ct.pn)(s,{from:{transform:s?"translateX(-100%)":"translateX(100%)",opacity:0}
2,enter:{transform:"translateX(0)",opacity:1},leave:{transform:s?"translateX(100%)":"translateX(-100%)",opacity:0},config:{duration:200}}),y=(0,r.useCallback)((()=>{if(s){const e=document.getElementById("aside-content");if(e){const t=(window.innerHeight>0?window.innerHeight:screen.height)-e.getBoundingClientRect().top;g(t>0?t:void 0)}}}),[s]);return(0,r.useEffect)((()=>(window.addEventListener("resize",y),()=>window.removeEventListener("resize",y))),[y]),(0,r.useLayoutEffect)((()=>{const e=e=>{const t=Math.ceil(e[0].contentRect.height+2*e[0].contentRect.top);h(t),y()};return"ResizeObserver"in window&&(u.current=new ResizeObserver(e),d.current&&u.current.observe(d.current)),()=>{var e;null===(e=u.current)||void 0===e||e.disconnect()}}),[d,f,y]),(0,i.jsxs)(i.Fragment,{children:[b(((r,u)=>u&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(ct.CS.aside,{className:s?"app-drawer-aside app-drawer-aside--open":"app-drawer-aside",children:[(0,i.jsx)(ct.CS.div,{style:{opacity:r.opacity},"data-cy":"app-drawer-aside__backdrop",className:"app-drawer-aside__backdrop",onClick:()=>l(!1)}),(0,i.jsxs)(ct.CS.div,{style:{transform:r.transform},className:"app-drawer__content",children:[(0,i.jsxs)("div",{className:"app-drawer__content-scroll",id:"app-drawer-content",children:[(0,i.jsxs)("header",{id:a,className:"aside__header "+n,ref:d,children:[t&&t,v&&(0,i.jsx)(N.$,{variant:"default",ariaLabel:c("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:bu,accessibilityLabel:c("ui.icons.sideNavHide")}),onClick:()=>l(!1),data_cy:"hideNavigation"})]}),o&&o,(0,i.jsx)("div",{className:"aside__content",id:"aside-content",style:{top:p,maxHeight:m},children:e})]}),!v&&(0,i.jsx)(wu,{inDrawer:!0})]})]})}))),!v&&(0,i.jsx)(wu,{inDrawer:!1})]})},Au=({renderItems:e,children:t,header:n,tabs:r,headerId:a="",activeTab:o})=>(0,i.jsxs)(ku,{headerClass:"flex items-start gap-2 justify-between",header:n,headerId:a,tabs:r,children:[t,(0,i.jsx)("nav",{className:"dau-page-navigation","aria-labelledby":o?`tab-${o}`:void 0,id:o?`panel-${o}`:void 0,role:o?"tabpanel":void 0,children:e()})]});var Tu=n(79134);const Su=({bookTitle:e,coverPath:t,bookDescription:n,npNumber:r,maxProdBookDescription:a,editionType:o,bookCoverLink:s,h1BookTitle:l})=>{const{t:c}=(0,k.Bd)();return(0,i.jsx)("div",{className:"flex gap-5",children:e&&t&&(0,i.jsxs)(i.Fragment,{children:[s?(0,i.jsx)(ee.z,{to:s,"aria-label":c("maxProduct.aria.bookCoverLinkToMaximalProductPage",{bookTitle:e}),children:(0,i.jsx)(W,{src:t,width:113,height:154})}):(0,i.jsx)(W,{src:t,width:113,height:154}),(0,i.jsxs)("div",{className:"flex-1 relative",children:[l?(0,i.jsx)("h1",{className:"font-bold text-h5 pb-1",children:e}):(0,i.jsx)("p",{className:"font-bold text-h5 pb-1",children:e}),o&&(0,i.jsx)("p",{children:c("maxProduct."+(0,Qe.u)(o))}),n&&""!==n&&(0,i.jsx)("p",{children:n}),a&&""!==a&&(0,i.jsx)("p",{className:a.length>78?"text-sm":"",children:a}),r&&(0,i.jsx)(Tu.A,{className:"mt-2",assetId:r,badgeCount:1})]})]})})};var Eu=n(54637),Iu=n(35604),Cu={};Cu.styleTagTransform=q(),Cu.setAttributes=B(),Cu.insert=R().bind(null,"head"),Cu.domAPI=M(),Cu.insertStyleElement=F();P()(Iu.A,Cu);Iu.A&&Iu.A.locals&&Iu.A.locals;var _u=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const ju=e=>{var{children:t,value:n}=e,r=_u(e,["children","value"]);return(0,i.jsx)(Eu.q7,Object.assign({className:"accordion-item",value:n},r,{children:t}))},Nu=e=>{var{children:t}=e,n=_u(e,["children"]);return(0,i.jsx)(Eu.Y9,{className:"accordion-header",children:(0,i.jsxs)(Eu.l9,Object.assign({className:"group accordion-trigger"},n,{children:[t,(0,i.jsx)(Ue.I,{source:Xi,className:"accordion-trigger-icon","aria-hidden":!0})]}))})},Lu=e=>{var{children:t}=e,n=_u(e,["children"]);return(0,i.jsx)(Eu.UC,Object.assign({className:"accordion-content"},n,{children:(0,i.jsx)("div",{className:"py-3 px-5",children:t})}))},Pu=({elements:e,checkedFilters:t,setCheckedFilters:n,accordionLabel:r,getCheckboxLabel:a})=>{const o=e=>{t.includes(e.target.value)?n((t=>t.filter((t=>t!==e.target.value)))):n((t=>[...t,e.target.value]))};return(0,i.jsx)(Eu.bL,{className:"accordion-root",type:"single",collapsible:!0,children:(0,i.jsxs)(ju,{value:"item-1",children:[(0,i.jsx)(Nu,{children:(0,i.jsx)("span",{className:"grow text-left",children:r})}),e.map((e=>(0,i.jsx)(Lu,{children:(0,i.jsx)(Ln.o,{onChange:o,checked:t.includes(e),value:e,id:e,children:a(e)})},e)))]})})},Du=[Si.i_.VIDEO,Si.i_.AUDIO,Si.i_.LINK,Si.i_.PDF,Si.i_.HTML,Si.i_.FILE,Si.i_.ASSESSMENT,Si.i_.SELFTEST],Mu=({checkedFilters:e,setCheckedFilters:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsx)(Pu,{elements:Du,checkedFilters:e,setCheckedFilters:t,accordionLabel:n("dau.navigation.filters.format"),getCheckboxLabel:e=>n(`asset.${e}s`)})},Ou=({searchString:e,setSearchString:t,onSetFilters:n,resetAssetSearch:r})=>{const{t:a}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"relative flex items-center",children:[(0,i.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-4",children:(0,i.jsx)(Ue.I,{className:"w-5 h-5 flex-shrink-0",source:Fe.A,accessibilityLabel:a("search.ariaIcon")})}),(0,i.jsx)(Eo,{className:"h-auto px-12 w-full","aria-label":a("search.placeholderAssets"),value:e,onCh
2ange:e=>t(e.target.value),placeholder:a("search.placeholderAssets"),type:"search",onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),n())}}),""!==e&&null!==e&&(0,i.jsx)(N.$,{className:"absolute right-0 fill-textSubdued opacity-80 hover:opacity-100",ariaLabel:a("ui.ariaClear"),variant:"plain",icon:(0,i.jsx)(Ue.I,{source:bn.A}),onClick:r})]})},Ru=({children:e,className:t,link:n,type:r,target:a,currentNpNumber:o,asset:s,assetId:c,uhb:d})=>{var u,p,h,m;const g=(0,l.n)(),f=(0,Ei.A)(c||""),v=(0,Re.V)().get("id")===c?"bg-surfaceInformation":"",{setUhbPreviewTeaser:b,setEksdiPreviewTeaser:y}=Nc(),x=t?t+((g||f)&&s.allowed?"":" dau-page-navigation__asset--disabled"):"";if(!g&&!f)return(0,i.jsx)("div",{className:`${x}`,children:e});const w=null==s?void 0:s.addedBy.startsWith("NP300");return!s.allowed&&w?(0,i.jsx)("div",{className:`${x}`,onClick:()=>y(!0),children:e}):s.allowed||d||w?"links"===r||"link"===r?(0,i.jsx)("a",{href:n,target:"blank",className:`${x}`,children:e}):"dauLinks"!==r&&"dauLink"!==r||a===o?"files"===r||"file"===r?(0,i.jsx)(Qc.Q,{className:""+(x+" cursor-pointer"),asset:Object.assign(Object.assign({},s),{id:c,format:Si.i_.FILE}),productId:null!==(m=null!==(p=null===(u=null==s?void 0:s.book)||void 0===u?void 0:u.isbn)&&void 0!==p?p:null===(h=null==s?void 0:s.book)||void 0===h?void 0:h.npNumber)&&void 0!==m?m:null==s?void 0:s.addedBy,children:e}):(0,i.jsx)(ee.z,{to:n,className:`${x} ${v}`,children:e}):(0,i.jsx)(ee.z,{target:"_blank",to:n,className:`${x}`,children:e}):(0,i.jsx)("div",{className:`${x}`,onClick:()=>b(!0),children:e})},zu=({asset:e,assetId:t,format:n,page:r,currentNpNumber:a,uhb:o,withIcon:s=!1,wrapperClassName:l=""})=>{const{t:c}=(0,k.Bd)(),d=(0,J.Ay)(500),u=(0,J.Ay)(),p=au();return(0,i.jsxs)(Ru,{link:(()=>{if(n===Si.i_.LINK)return e.value;if(n===Si.i_.DAU_LINK){const t=e.targetPage?e.targetPage:1;return(0,vt.tW)(o?te.J.uhb:te.J.dau,{id:e.target})+"?page="+t}return(0,vt.tW)(o?te.J.uhb:te.J.dau,{id:a})+(0,Si.sU)(t,n,r,p.isDoublePage,u,(()=>{if(t&&e.value!==Si.i_.SELFTEST)return t})())})(),target:e.target,currentNpNumber:a,asset:e,assetId:t,type:n,className:`dau-page-navigation__asset ${l}`,uhb:o,children:[(0,i.jsxs)("div",{className:"flex items-center",children:[s&&(0,i.jsx)("div",{children:(0,i.jsx)(Fc.c,{className:"dau-page-navigation__item__icon",format:n})}),(0,i.jsxs)("div",{className:"whitespace-break-spaces",children:[(0,i.jsxs)("span",{className:"dau-page-navigation__asset__title ",children:[e.title,n===Si.i_.DAU_LINK&&" "+(-1!==e.target.indexOf("NP200")?c("asset.uhbLinkLabel"):c("asset.dauLinkLabel"))+e.targetPage]}),(0,i.jsx)("p",{children:e.description})]})]}),(0,i.jsx)(Tu.A,{badgeCount:(()=>{if(d||!u)return 2})(),assetId:t,teacherOnly:e.teacherOnly,role:e.role,accessLocked:e.accessLockState===nr.Jm.LOCKED,accessUnlocked:e.accessLockState===nr.Jm.UNLOCKED,demo:e.demo,addedByNp:e.addedBy,isUhb:o,className:"justify-end sm:justify-start md:justify-end"})]})},Bu=({resetFilters:e,bookId:t,searchResult:n,isLoading:r,uhb:a})=>{const{t:o}=(0,k.Bd)();return r?(0,i.jsxs)("div",{role:"status",className:"animate-pulse mt-2",children:[(0,i.jsxs)("div",{className:"flex items-center mb-4",children:[(0,i.jsx)("div",{className:"w-24 h-5 bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-32 h-5 bg-borderColor dark:bg-textSubdued ml-auto"})]}),(0,i.jsx)("div",{children:Array.from({length:10},((e,t)=>t)).map((e=>(0,i.jsx)("div",{className:"w-full h-[57px] bg-borderColor dark:bg-textSubdued mb-0.5"},e)))}),(0,i.jsx)("span",{className:"sr-only",children:o("ui.ariaLoading")})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsxs)("p",{className:"text-sm",children:[o("dau.navigation.filters.totalResult"),": ",null==n?void 0:n.totalResult]}),(0,i.jsx)(N.$,{onClick:e,className:"ml-auto pr-0",icon:(0,i.jsx)(Ue.I,{source:bn.A}),variant:"plain",children:o("dau.navigation.filters.reset")})]}),(0,i.jsx)("ul",{className:"bg-surface",children:n&&n.assets.map(((e,n)=>(0,i.jsx)("li",{children:(0,i.jsx)(zu,{asset:e,assetId:e.id,format:e.format,page:e.page?e.page:1,currentNpNumber:t,uhb:a,withIcon:!0,wrapperClassName:"p-2"})},n)))})]})};function Uu(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),{bookId:r,searchString:a,format:o,edition:s,isEnabled:l=!1}=e,c=new URLSearchParams;c.append("page","1"),c.append("pagesize","1000"),c.append("bookId",r),a&&c.append("searchString",a),o.length&&c.append("format",o.join(",")),s.length&&c.append("license",s.join(","));const u=(0,T.I)({queryKey:["get-search-assets",r,a,o,s],queryFn:()=>(async()=>(await n.get(`/search/asset?${c}`)).data)(),retry:!1,enabled:l});return(0,S.V)(u,t||{message:i("error.dau.failedFilterAsset")})}const Fu=e=>{if(!e)return null;let t;return e.startsWith("NP100")?t=et.OH.DAU:e.startsWith("NP200")?t=et.OH.UHB:e.startsWith("NP300")&&(t=et.OH.EKSDI),t?`dau.learningprogress.filters.editions.${t}`:void 0},Vu=({checkedFilters:e,setCheckedFilters:t,editions:n})=>{const{t:r}=(0,k.Bd)(),a=n.reduce(((e,t)=>(t.npNumber&&e.push(t.npNumber),e)),[]);return(0,i.jsx)(Pu,{elements:a,checkedFilters:e,setCheckedFilters:t,accordionLabel:r("dau.navigation.filters.edition"),getCheckboxLabel:e=>{const t=Fu(e);return t?r(t):void 0}})},qu=({npNumber:e,uhb:t,editions:n})=>{const{t:a}=(0,k.Bd)(),o=(0,l.n)(),s=(0,Re.V)(),c=(0,fe.m)(),{warning:d}=(0,A.e)(),[u,p]=(0,r.useState)([]),[h,m]=(0,r.useState)([]),[g,f]=(0,r.useState)(""),[v,b]=(0,r.useState)(null),{refetch:y,isLoading:x}=Uu({bookId:e,searchString:g,format:u,edition:h}),w=e=>{e||0===u.length&&0===h.length&&0===g.length?s.delete("filter"):s.set("filter","true"),c(location.pathname+"?"+s.toString())},T=()=>{f(""),p([]),m([]),b(null),w(!0)},S=()=>{w(),0===u.length&&0===h.length&&0===g.length?T():y().then((e=>{(null==e?void 0:e.data)&&b(e.data)}))};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("form",{className:"flex flex-col gap-4 mb-5","data-cy":"asset-filter-form",children:[(0,i.jsx)(Ou,{searchString:g,setSearchString:f,onSetFilters:S,resetAssetSearch:()=>{f(""),0===u.length&&0===h.length&&T()}}),(0,i.jsx)(Mu,{checkedFilters:u,setCheckedFilters:p}),(0,i.jsx)(Vu,{editions:n.sort(((e,t)=>{var n,i;return parseInt(null===(n=e.npNumber)||void 0===n?void 0:n.slice(2))-parseInt(null===(i=t.npNumber)||void 0===i?void 0:i.slice(2))})),checkedFilters:h,setCheckedFilters:m}),(0,i.jsx)(N.$,{type:"submit",className:"ml-auto",variant:"primary",onClick:e=>{e.preventDefault(),o?S():d({copy:a("offline.disabledAction")})},children:a("dau.navigation.filters.apply")})]}),(v||x)&&(0,i.jsx)(Bu,{bookId:e,searchResult:v,isLoading:x,resetFilters:T,uhb:t})]})},Hu=({text:e,isActiveTab:t,num:n,onClick:r,id:a,icon:o,data_cy:s,className:l=""})=>
2{if(!n||"number"==typeof n&&n>0)return(0,i.jsx)("button",{className:`tab--asset ${t?"active-tab--asset":""} ${l}`,onClick:r,"data-cy":s,role:"tab","aria-selected":t,"aria-controls":`panel-${a}`,id:`tab-${a}`,children:(0,i.jsxs)("div",{className:"flex flex-row flex-nowrap items-center gap-2 min-w-9 md:h-9",children:[o&&o,(0,i.jsx)("span",{children:e}),n&&(0,i.jsx)("span",{className:"px-2 py-1 bg-surfaceSubdued",children:n})]})})},Gu=({tabs:e,currentId:t,className:n=""})=>{const a=(0,r.useCallback)((n=>{var i;const r=n.key,a=document.activeElement;if(!a||"tab"!==a.getAttribute("role"))return;let o;const s=e.findIndex((e=>e.id===t));switch(r){case"ArrowRight":o=e[(s+1)%e.length];break;case"ArrowLeft":o=e[(s-1+e.length)%e.length];break;case"Home":o=e[0];break;case"End":o=e[e.length-1];break;default:return}n.preventDefault(),o&&(null===(i=document.getElementById(`tab-${null==o?void 0:o.id}`))||void 0===i||i.focus(),null==o||o.onClick())}),[e,t]);return(0,r.useEffect)((()=>(window.addEventListener("keydown",a),()=>window.removeEventListener("keydown",a))),[a]),(0,i.jsx)("div",{className:"tabs-without-links flex",role:"tablist",children:e.map(((e,r)=>(0,i.jsx)(Hu,{data_cy:e.data_cy,text:e.text,id:e.id,isActiveTab:t===e.id,num:e.num,icon:e.icon,className:`${n}`,onClick:e.onClick},r)))})},Ku=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsx)("p",{className:"dau-page-navigation__asset--none",children:e("dau.navigation.noAttachments")})},$u=({mediaPage:e,uhb:t,npNumber:n})=>{const{t:a}=(0,k.Bd)(),o=(0,Re.V)(),s=Si.Fx,l=(0,r.useCallback)((()=>{var t;if(!e)return[];const n=[];for(const[i,r]of s)if(r in e&&e[r]&&(null===(t=e[r])||void 0===t?void 0:t.length)>0){const t=1===e[r].length?a(`asset.${i}`):a(`asset.${r}`);n.push(e[r].length+" "+t)}return n}),[a,s,e]),c=t=>{var n,i,r;const o=(null===(n=e[t])||void 0===n?void 0:n.length)>1?"Plural":"Singular",s=(null===(i=e[t])||void 0===i?void 0:i.length)>1?{number:null===(r=e[t])||void 0===r?void 0:r.length}:void 0;return a("asset."+t+"Text"+o,s)};return(0,i.jsx)(i.Fragment,{children:0===l().length?(0,i.jsx)(Ku,{}):(0,i.jsx)("div",{className:"dau-page-navigation__asset-list",children:[...s.entries()].map((([r,a],s)=>{var l,d;if(e&&a&&a in e&&(null===(l=e[a])||void 0===l?void 0:l.length)>0)return(0,i.jsxs)("section",{className:"dau-page-navigation__item flex-col",children:[(0,i.jsx)("div",{className:"dau-page-navigation__item",children:(0,i.jsxs)("h3",{className:"dau-page-navigation__item__text",children:[(0,i.jsx)(Fc.c,{className:"dau-page-navigation__item__icon",format:r}),c(a)]})}),(0,i.jsx)("ul",{children:e&&(null===(d=e[a])||void 0===d?void 0:d.map(((e,a)=>(0,i.jsxs)("li",{children:[(0,i.jsx)(zu,{asset:e,assetId:e.assetId,format:r,page:o.get("page")?o.get("page"):1,currentNpNumber:n,uhb:t}),!(0,nr.x3)(e)&&e.relatedAssets&&e.relatedAssets.length>0&&(0,i.jsx)("ul",{className:"ml-4",children:e.relatedAssets.map(((e,a)=>(0,i.jsx)("li",{children:(0,i.jsx)(zu,{asset:e,assetId:e.assetId,format:r,page:o.get("page")?o.get("page"):1,currentNpNumber:n,uhb:t})},e.assetId+a)))})]},e.assetId+a))))})]},s)}))})})},Wu=({pageNumber:e,uhb:t,npNumber:n,highlightCurrentPage:r=!1,className:a=""})=>{const{t:o}=(0,k.Bd)(),{page:s,isDoublePage:l}=au(),c=(0,J.Ay)(),{setIsDrawerOpen:d}=(0,Pe.Us)(),u=l?"&mode=double":";";return(0,i.jsx)(ee.z,{to:(0,vt.tW)(t?te.J.uhb:te.J.dau,{id:n})+"?page="+e+u,className:`border-t border-borderColor ${a}`,onClick:()=>c?d(!1):void 0,children:(0,i.jsxs)("p",{className:`product-site-asset__title px-4 py-2 ${(()=>{if(r){if(e===String(s)||e===s)return"bg-surfaceInformation";if(l&&(e===String(s+1)||e===s+1))return"bg-surfaceInformation"}return""})()}`,id:`page-${e}`,children:[o("augmented.contentNavigation.page")," ",e]})})},Xu=({page:e,uhb:t,npNumber:n})=>{const{isDoublePage:r}=au();return(0,i.jsxs)("div",{className:"mb-4",children:[r&&(0,i.jsx)(Wu,{pageNumber:e.pageNumber,uhb:t,npNumber:n,className:"border-t-0"}),(0,i.jsx)($u,{mediaPage:e,npNumber:n,uhb:t})]})},Yu=({radioValue:e,setRadioValue:t,overlappingContentPage:n})=>{const{t:r}=(0,k.Bd)();if(!n)return;const a=[{value:Ju.PAGE,label:r("dau.navigation.content.page")},{value:Ju.OVERLAPPING,label:r("dau.navigation.content.overlappingContent")}];return(0,i.jsxs)("div",{className:"dau-page-navigation__asset__radios","data-cy":"dau-nav-assets-radios",children:[(0,i.jsx)("p",{className:"font-bold",children:r("dau.navigation.content.dropdownTooltip")}),(0,i.jsx)(wr,{items:a,onValueChange:e=>{e===Ju.PAGE&&t(Ju.PAGE),e===Ju.OVERLAPPING&&t(Ju.OVERLAPPING)},defaultValue:e,ariaLabel:r("dau.navigation.content.dropdownTooltip")})]})};var Ju;!function(e){e.PAGE="page",e.OVERLAPPING="overlappingContent"}(Ju||(Ju={}));const Zu=({structure:e,uhb:t})=>{var n;const{page:a,isDoublePage:o}=au(),[s,l]=(0,r.useState)(Ju.PAGE),c=null==e?void 0:e.pages.find((e=>e.pageNumber===3..toString())),d=null==e?void 0:e.pages.filter((e=>parseInt(e.pageNumber)===a||o&&parseInt(e.pageNumber)===a+1));return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Yu,{radioValue:s,setRadioValue:l,overlappingContentPage:c}),s===Ju.OVERLAPPING&&(0,i.jsx)($u,{mediaPage:c,npNumber:null===(n=null==e?void 0:e.book)||void 0===n?void 0:n.npNumber,uhb:t}),s===Ju.PAGE&&(0,i.jsx)(i.Fragment,{children:d.length>0?d.map(((n,r)=>{var a;return(0,i.jsx)(Xu,{page:n,uhb:t,npNumber:null===(a=null==e?void 0:e.book)||void 0===a?void 0:a.npNumber},`page-${r}`)})):(0,i.jsx)(Ku,{})})]})},Qu=({uhb:e,chapter:t,structure:n})=>{const{page:r,isDoublePage:a}=au(),o=(0,J.Ay)(),{setIsDrawerOpen:s}=(0,Pe.Us)();return(0,i.jsx)(ee.z,Object.assign({},(0,Qe.v)(n.book.npNumber,e?nr.SE.UHB:nr.SE.DIGITAL,(()=>{let e="?page="+t.chapterFrom;return a&&(e+="&mode=double"),e})()),{onClick:()=>o?s(!1):void 0,children:(0,i.jsx)("div",{className:"dau-page-navigation__item "+(r>=Number(t.chapterFrom)&&r<=Number(t.chapterTo)||a&&r+1>=Number(t.chapterFrom)&&r+1<=Number(t.chapterTo)?"bg-surfaceInformation":""),id:`chapter-${t.title}`,children:(0,i.jsx)("div",{className:"dau-page-navigation__item__text",children:(0,i.jsx)("p",{children:t.title})})})}))},ep=(e,t,n)=>{var i,r,a,o;const s=document.getElementById("aside-content"),l=document.getElementById("app-drawer-content"),c=document.getElementById("page-"+e),d=n?document.getElementById("chapter-"+n):void 0,u=0|(null===(i=document.getElementById("maintenance-banner"))||void 0===i?void 0:i.offsetHeight),p=0|(null===(r=document.getElementById("offline-banner"))||void 0===r?void 0:r.offsetHeight),h=l&&l.getBoundingClientRect()&&l.getBoundingClientRect().top>0?l.getBoundingClientRect().top:0,m=null===(a=document.getElementById("dau-aside-header"))||void 0===a?void 0:a.offsetHeight,g=0|(null===(o=document.getElementById("navigation-tabs"))||void 0===o?void 0:o.offsetHeight),f=g&&g>0?g+16:0,v=null==s?void 0:s.getBoundingClientRect().top,b=m+f-document.documentElement.scrollTop,y=b>0?b-v:0,x=t?0:u+p,w=(d?null==d?void 0:d.offsetTop:0)+(c?c.offsetTop:0)-(t?g:y+h)-x;null==s||s.scrollTo({top:w,behavior:"smooth"}),null==l||l.scrollTo({top:w,behavior:"smooth"})},tp=()=>{const e=document.getElementById("aside-content");null==e||e.scrollTo({top:0,behavior:"smooth"})},np=({structure:e,uhb:t})=>{const n=(0,J.Ay)(J.FD),{page:a}=au(),{isDrawerOpen:o}=(0,Pe.Us)(),[s,l]=(0,r.useState)(null);(0,r.useEffect)((()=>{var t;if(e&&e.book)if(e.chapters&&0!==e.chapters.length){const n=[];null===(t=e.chapters)||void 0===t||t.forEach((t=>{let i;i=e.pages.filter((e=>parseInt(e.pageNumber)>=parseInt(t.chapterFrom)&&parseInt(e.pageNumber)<=parseInt(t.chapterTo)));const r=[];for(let e=parseInt(t.chapterFrom);e<=parseInt(t.chapterTo);e++)i.find((t=>parseInt(t.pageNumber)===e))||r.push({pageNumber:e});i=i.concat(r).sort(((e,t)=>parseInt(e.pageNumber)-parseInt(t.pageNumber))),n.push(Object.assign(Object.assign({},t),{pages:i,emptyPage:r,title:t.chapterTitle}))})),l({chapters:n,book:e.book})}else l(Object.assign(Object.assign({},e),{chapters:void 0}))}),[e,l]);const c=(0,r.useCallback)((t=>{var n;const i=null===(n=null==e?void 0:e.chapters)||void 0===n?void 0:n.find((e=>parseInt(e.chapterFrom)<=parseInt(t)&&parseInt(e.chapterTo)>=parseInt(t)));return null==i?void 0:i.chapterTitle}),[e]);return(0,r.useEffect)((()=>
2{if(a&&o)if(null==e?void 0:e.chapters){const e=c(a);setTimeout((()=>{ep(a,n,e)}),200)}else ep(a,n)}),[e,c,n,a,o]),(null==s?void 0:s.chapters)?(0,i.jsx)("ul",{children:null==s?void 0:s.chapters.map(((n,r)=>(0,i.jsx)("li",{children:(0,i.jsx)(Qu,{uhb:t,chapter:n,structure:e})},r)))}):(0,i.jsx)("ul",{children:null==s?void 0:s.pages.map(((n,r)=>(0,i.jsx)("li",{children:(0,i.jsx)(Wu,{pageNumber:n.pageNumber,uhb:t,npNumber:e.book.npNumber,highlightCurrentPage:!0})},r)))})};var ip=n(12084),rp={};rp.styleTagTransform=q(),rp.setAttributes=B(),rp.insert=R().bind(null,"head"),rp.domAPI=M(),rp.insertStyleElement=F();P()(ip.A,rp);ip.A&&ip.A.locals&&ip.A.locals;var ap=n(21907),op={};op.styleTagTransform=q(),op.setAttributes=B(),op.insert=R().bind(null,"head"),op.domAPI=M(),op.insertStyleElement=F();P()(ap.A,op);ap.A&&ap.A.locals&&ap.A.locals;const sp=({innerPercentage:e,circleId:t,size:n,ariaForScreenReader:a=!0})=>{const{t:o}=(0,k.Bd)(),s=t+"-inner";return(0,r.useEffect)((()=>{(()=>{const t=document.getElementById(s);if(t){const n=3.6*e;t.style.backgroundImage=0===n?"conic-gradient(var(--surface-subdued) 0 360deg)":`conic-gradient(var(--attraction) ${n}deg, var(--surface) 0 360deg)`}})()}),[e,s]),(0,i.jsx)("div",{"aria-label":a?o("dau.learningprogress.solvedAssignmentsPercentage",{percentage:e}):void 0,children:(0,i.jsx)("div",{className:"progress-circle progress-circle__inner "+(n?`progress-circle__inner--${n}`:""),id:s,title:o("dau.learningprogress.solvedAssignmentsPercentage",{percentage:e}),role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-hidden":!0,children:(0,i.jsx)("span",{className:"progress-circle__white-circle progress-circle__white-circle--inner "+(n?`progress-circle__white-circle--inner--${n}`:"")})})})},lp=({outerPercentage:e,innerPercentage:t,circleId:n,size:a})=>{const{t:o}=(0,k.Bd)(),s=n+"-outer";return(0,r.useEffect)((()=>{(()=>{const t=document.getElementById(s);if(t){const n=3.6*e;0===n&&(t.style.backgroundImage="conic-gradient(var(--surface-subdued) 0 360deg)"),t.style.backgroundImage=`conic-gradient(var(--primary) ${n}deg, var(--surface-subdued) 0 360deg)`}})()}),[e,s]),(0,i.jsx)("div",{"aria-label":isNaN(t)?o("dau.learningprogress.readPagesPercentage",{percentage:e}):o("dau.learningprogress.totalPercentage",{pagesPercentage:e,assignmentsPercentage:t}),children:(0,i.jsx)("div",{className:"progress-circle progress-circle--progress "+(a?`progress-circle--${a}`:""),id:s,title:o("dau.learningprogress.readPagesPercentage",{percentage:e}),role:"progressbar","aria-valuenow":e,"aria-valuemin":0,"aria-valuemax":100,"aria-hidden":"true",children:(0,i.jsx)("div",{className:"progress-circle__white-circle "+(a?`progress-circle__white-circle--${a}`:""),children:!isNaN(t)&&(0,i.jsx)(sp,{innerPercentage:t,circleId:n,size:a,ariaForScreenReader:!1})})})})},cp=e=>{if(e&&(null==e?void 0:e.total))return Math.round(((null==e?void 0:e.completed)+(null==e?void 0:e.attempted))/(null==e?void 0:e.total)*100)},dp=()=>{const e=(0,l.n)(),{t}=(0,k.Bd)(),{dauLearningProgress:n,dauLearningProgressIsPending:r}=au(),{setLearningProgressModalOpen:a}=(0,Pe.Us)();return e&&r?(0,i.jsx)(ft.o,{inProgress:!0,small:!0,className:"dau-page-navigation__eksdi"}):e&&n?(0,i.jsxs)(N.$,{variant:"plain",className:"dau-page-navigation__eksdi",onClick:()=>a(!0),children:[(0,i.jsx)("p",{className:"dau-page-navigation__eksdi-link",children:t("dau.navigation.learningProgressLink")}),(0,i.jsx)(lp,{outerPercentage:0|(null==n?void 0:n.readProgressPct),innerPercentage:cp(null==n?void 0:n.navTreeSessionsState),circleId:"book-circle"})]}):void 0};var up;!function(e){e.CHAPTERS="chapters",e.ASSETS="assets",e.FILTER="filter"}(up||(up={}));const pp=({structure:e,uhb:t,maxProduct:n})=>{var a;const{t:o}=(0,k.Bd)(),s=(0,J.Ay)(),[l,c]=(0,r.useState)(up.CHAPTERS),d=(0,r.useRef)(null);return(0,r.useEffect)((()=>{var e;null===(e=d.current)||void 0===e||e.focus()}),[n]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{ref:d,tabIndex:-1,className:"sr-only",children:[null==n?void 0:n.title," ",o("maxProduct."+(0,Qe.u)(et.OH.DAU))]}),e&&(0,i.jsx)(Au,{header:(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsx)(Su,{bookTitle:e.book.bookTitle,coverPath:e.book.coverPath,npNumber:e.book.npNumber,maxProdBookDescription:n?null==n?void 0:n.bestandteil:null,editionType:t?et.OH.UH
2B:et.OH.DAU,bookCoverLink:(0,vt.tW)(te.J.product.index,{id:n?null==n?void 0:n.id:"",isbn:e.book.isbn}),h1BookTitle:!0}),s&&(0,i.jsx)(vc,{bookTitle:null===(a=null==e?void 0:e.book)||void 0===a?void 0:a.bookTitle}),(0,i.jsx)(dp,{})]}),tabs:(0,i.jsx)("div",{id:"navigation-tabs",className:"aside_tabs",children:(0,i.jsx)(Gu,{currentId:l,tabs:[{id:up.CHAPTERS,text:o("dau.navigation.chapters"),onClick:()=>{c(up.CHAPTERS)}},{id:up.ASSETS,text:o("dau.navigation.attachments"),onClick:()=>{c(up.ASSETS),tp()},data_cy:"dau-nav-assets-tab"},{id:up.FILTER,text:o("dau.navigation.filter"),onClick:()=>{c(up.FILTER),tp()},data_cy:"dau-nav-filter-tab"}],className:"md:px-3 md:py-4 md:text-h5"})}),renderItems:()=>{var r;return l===up.ASSETS?(0,i.jsx)(Zu,{structure:e,uhb:t}):l===up.CHAPTERS?(0,i.jsx)(np,{structure:e,uhb:t}):l===up.FILTER?(0,i.jsx)(qu,{npNumber:null===(r=null==e?void 0:e.book)||void 0===r?void 0:r.npNumber,uhb:t,editions:n.editions.filter((e=>e.type!==nr.SE.AUGMENTED))}):void 0},headerId:"dau-aside-header",activeTab:l})]})},hp=({setIsSelected:e,children:t,selectedTool:n,structure:r,isUhb:a,setTool:o,maxProduct:s,np:l})=>(0,i.jsx)(jl,{children:(0,i.jsx)(ou,{setIsSelected:e,selectedTool:n,isUhb:a,structure:r,setTool:o,maxProduct:s,np:l,children:(0,i.jsx)(Dl,{children:(0,i.jsx)(mo,{children:(0,i.jsx)(bs,{children:(0,i.jsx)(ms,{children:(0,i.jsx)(ks,{children:(0,i.jsx)(ss,{children:t})})})})})})})});var mp=n(18),gp={};gp.styleTagTransform=q(),gp.setAttributes=B(),gp.insert=R().bind(null,"head"),gp.domAPI=M(),gp.insertStyleElement=F();P()(mp.A,gp);mp.A&&mp.A.locals&&mp.A.locals;var fp=n(15705),vp={};vp.styleTagTransform=q(),vp.setAttributes=B(),vp.insert=R().bind(null,"head"),vp.domAPI=M(),vp.insertStyleElement=F();P()(fp.A,vp);fp.A&&fp.A.locals&&fp.A.locals;var bp=n(45602);const yp=(e,t)=>{const n=(0,d.q)(),i=(0,bp.jE)(),{profile:r}=(0,c.As)(),{t:a}=(0,k.Bd)(),{success:o}=(0,A.e)(),{setTriggerDauLearningProgressRefetch:s}=(0,Pe.Us)(),l=(0,E.n)({mutationFn:async()=>{const t=(await n.post(`/eksdi/selftest/${e}/reset`)).data;s(!0);const l=e+"_"+r.id;return localStorage.removeItem(l),i.removeQueries({queryKey:["get-all-selftest-lesson-sessions",e],exact:!1}),t&&o({copy:a("eksdi.selftest.resetSuccessful"),id:"reset-selftest"}),t},retry:!1});return(0,S.s)(l,t||{message:a("error.eksdi.failResetSelftest")})},xp=(e,t)=>{let n=0,i=0,r=0;return null==e||e.forEach((e=>{switch(e.type){case Xc.SELFTEST:r++;break;case Xc.DIDACTIC_UNIT:n++;break;case Xc.ASSESSMENT:i++}})),`\n            ${n>0?`${n} ${t("eksdi.overview.chapterProgress.didacticUnit."+(n>1?"plural":"singular"))}`:""}\n            ${n>0&&i>0?" • ":""}\n            ${i>0?`${i} ${t("eksdi.overview.chapterProgress.topic."+(i>1?"plural":"singular"))}`:""}\n            ${r>0&&(i>0||n>0)?" • ":""}\n            ${r>0?`${r} ${t("eksdi.overview.chapterProgress.selftest."+(r>1?"plural":"singular"))}`:""}\n        `},wp=({children:e,link:t,page:n,assetId:r,disabled:a=!1,small:o=!1,className:s=""})=>{const{t:l}=(0,k.Bd)(),{setEksdiPreviewTeaser:c}=Nc(),{setLearningProgressModalOpen:d,setScrollToLessonId:u}=(0,Pe.Us)(),p=(0,Re.V)(),h=(0,fe.m)(),m=()=>{u(void 0),d(!1)};if(a){const t=()=>{c(!0),p.set("teaserAssetId",r),h(location.pathname+"?"+p.toString()),m()};return(0,i.jsx)("div",{onClick:t,className:`chapter-element__title ${o?"text-base":""} ${s}`,tabIndex:0,children:e})}return(0,i.jsx)(ee.z,{to:t,className:`chapter-element__title text-textLink ${o?"text-base":""} ${s}`,onClick:m,children:(0,i.jsxs)(i.Fragment,{children:[e,(0,i.jsx)("span",{className:"sr-only",children:l("dau.learningprogress.openAssessment",{page:n})})]})})},kp=({isOpen:e,setIsOpen:t,text:n,resetApproved:r,approveButtonText:a})=>{const{t:o}=(0,k.Bd)();return(0,i.jsx)(Xe.y,{open:e,asPrompt:!0,asPortal:!1,close:()=>t(!1),title:o("eksdi.resetAll.warningTitle"),copy:n,contentClassName:"max-w-md",actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>t(!1),children:o("ui.abort")}),(0,i.jsx)(N.$,{variant:"destructive",onClick:()=>{t(!1),r()},data_cy:"selftest-reset-modal",children:a||o("eksdi.resetAll.warningButton")})]})})},Ap=({item:e,link:t,isDidacticUnit:n=!1,hasLPlus:a})=>{const{t:o}=(0,k.Bd)(),{mutateAsync:s}=yp(e.navId),l=e.license.startsWith("NP300"),[c,d]=(0,r.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(wp,{link:t,page:e.navPage,assetId:e.navId,disabled:l&&!a,children:(0,i.jsxs)("div",{className:"chapter-info",children:[(0,i.jsx)(sp,{innerPercentage:e.navTreeSessionsState.total===e.navTreeSessionsState.attempted+e.navTreeSessionsState.completed?100:0,circleId:"circleid_"+e.n
2avId}),(0,i.jsxs)("div",{className:"chapter-info__text",children:[(0,i.jsxs)("div",{className:"chapter-info__title-with-badge items-center",children:[(0,i.jsxs)("p",{children:[" ",e.elementTitle," "]}),(0,i.jsx)(Yc,{resultPercentage:0|e.navTreeSessionsState.roundedPercent,lPlusBadge:l,selftestBadge:!n&&e.type===Xc.SELFTEST,badges:e.badges})]}),(0,i.jsx)("p",{className:"chapter-info__description",children:xp(e.subElements,o)})]})]})}),e.type===Xc.SELFTEST&&!n&&(l&&a||!l)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(vi.u,{asPortal:!1,triggerClass:"ml-auto mr-2",closeOnElementClick:!0,offlineDisabled:!0,elements:[(0,i.jsx)(N.$,{variant:"plain",onClick:()=>d(!0),children:o("eksdi.reset")},"resetSelftest")]}),(0,i.jsx)(kp,{isOpen:c,setIsOpen:d,text:(0,i.jsx)("p",{className:"px-6 pb-6 font-normal",children:o("eksdi.selftest.resetWarning")}),resetApproved:()=>s({})})]}),e.subElements&&e.subElements.length>0&&(0,i.jsx)(Ue.I,{source:Xi,className:"chapter-info__accordion-icon"})]})};const Tp=({chapter:e,paddingLeftValue:t,bookSessionId:n})=>{const{t:a}=(0,k.Bd)(),{setTriggerDauLearningProgressRefetch:o}=(0,Pe.Us)(),{mutateAsync:s}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({bookSessionId:e,data:n})=>await t.post(`/eksdi/booksession/${e}/chapter-completion`,n),retry:!1});return(0,S.s)(i,e||{message:n("error.dau.failSetChapterCompletion")})}(),[l,c]=(0,r.useState)(!!e.completedAt);return(0,i.jsx)("div",{className:"topic-info",style:{paddingLeft:t},children:(0,i.jsx)(Ln.o,{onChange:()=>{const t=!l,i={chapterId:e.chapterId,completed:t};s({bookSessionId:n,data:i}).then((e=>{200===e.status&&(c(t),o(!0))}))},checked:l,id:`chapter-completed-${e.chapterId}`,className:"text-sm",childWrapper:!0,children:(0,i.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,i.jsx)("span",{children:a("dau.learningprogress.chapterCompleted")}),(0,i.jsx)("span",{title:a("dau.learningprogress.chapterCompletedInfo"),children:(0,i.jsx)(Ue.I,{source:Ui.A,className:"w-6 h-6"})})]})})})},Sp=e=>{const t=e.split(":");return 60*parseInt(t[0],10)*60+60*parseInt(t[1],10)+parseInt(t[2],10)},Ep=({elements:e,openedNavIds:t,setOpenedNavIds:n,indentStep:r=0,selftestId:a,didacticUnitId:o,interactiveVideoId:s,hasLPlus:l,chapter:c,bookSessionId:d})=>{const u=(0,J.Ay)(),p=u?2:4,h=u?1:2,m=(0,Re.V)(),g=e=>{if(s){const t=(0,Si.sU)(s,Si.i_.ASSESSMENT,e.navPage,!!m.get("mode"),!1,void 0,!0,e.fromTime?Sp(e.fromTime):void 0,e.navId);return location.pathname+t}if(e.type===Xc.INTERACTIVE_VIDEO){const t=(0,Si.sU)(e.navId,Si.i_.ASSESSMENT,e.navPage,!!m.get("mode"),!1,void 0,!0);return location.pathname+t}const t=(0,Si.sU)(a||e.navId,a?Xc.SELFTEST:e.type,e.navPage,!!m.get("mode"),!1,(e=>o||(a&&e.navId?e.navId:void 0))(e),!0);return location.pathname+t};return(0,i.jsx)(Eu.bL,{type:"multiple",value:t,onValueChange:e=>{n&&n(e)},children:(0,i.jsxs)("ul",{children:[e.map(((e,o)=>{if(e.type===Xc.DIDACTIC_UNIT||e.type===Xc.SELFTEST)return(0,i.jsx)("li",{id:`${e.navId}`,children:(0,i.jsxs)(Eu.q7,{value:`${e.navId}`,children:[(0,i.jsx)(Eu.l9,{asChild:!0,className:"group",children:(0,i.jsx)("div",{role:"button",tabIndex:0,className:`chapter-element pr-6 ${0===r&&t.includes(e.navId),""} ${e.license.startsWith("NP300")&&!l?"chapter-element--disabled":""}`,style:{paddingLeft:""+(r>0?`${p+h*r}rem`:`${p}rem`)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},children:(0,i.jsx)(Ap,{item:e,link:g(e),isDidacticUnit:!!a||e.type===Xc.DIDACTIC_UNIT,hasLPlus:l})})}),(0,i.jsx)(Eu.UC,{children:e.subElements&&(0,i.jsx)(Ep,{elements:e.subElements,openedNavIds:t,setOpenedNavIds:n,indentStep:r+1,selftestId:e.type!==Xc.SELFTEST||a?a:e.navId,didacticUnitId:e.type===Xc.DIDACTIC_UNIT||a?e.navId:void 0,hasLPlus:l,chapter:c,bookSessionId:d})})]})},o);if(e.type===Xc.INTERACTIVE_VIDEO)return(0,i.jsx)("li",{id:`${e.navId}`,children:(0,i.jsxs)(Eu.q7,{value:`${e.navId}`,children:[(0,i.jsx)(Eu.l9,{asChild:!0,className:"group",children:(0,i.jsx)("div",{role:"button",tabIndex:0,className:"chapter-element pr-6 "+(e.license.startsWith("NP300")&&!l?"chapter-element--disabled":""),style:{paddingLeft:""+(r>0?`${p+h*r}rem`:`${p}rem`)},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},children:(0,i.jsx)(Ap,{item:e,link:g(e),isDidacticUnit:!0,hasLPlus:l})})}),(0,i.jsx)(Eu.UC,{children:e.subElements&&(0,i.jsx)(Ep,{elements:e.subElements,openedNavIds:t,setOpenedNavIds:n,indentStep:r+1,interactiveVideoId:e.navId,hasLPlus:l,chapter:c,bookSessionId:d})})]})},o);if(e.type===Xc.ASSESSMENT){const t=e.license.startsWith("NP300");return(0,i.jsx)("li",{className:"topic-element px-0 pr-6 "+(t&&!l?"topic-element--disabled":""),id:`${e.navId}`,children:(0,i.jsx)(wp,{link:g(e),page:e.navPage,assetId:e.navId,disabled:t&&!l,small:r>1,className:"w-full",children:(0,i.jsxs)("div",{className:"topic-info",style:{paddingLeft:""+(r>0?`${p+h*r}rem`:`${p}rem`)},children:[(0,i.jsx)(sp,{innerPercentage:cp(null==e?void 0:e.navTreeSessionsState),circleId:"circleid_"+e.n
2avId}),(0,i.jsxs)("div",{className:"chapter-info__title-with-badge",children:[(0,i.jsx)("p",{children:e.elementTitle}),(0,i.jsx)(Yc,{resultPercentage:0|e.navTreeSessionsState.roundedPercent,lPlusBadge:e.license.startsWith("NP300"),badges:e.badges})]})]})})},o)}})),!a&&!o&&!s&&(0,i.jsx)("li",{className:"topic-element px-0 pr-6",children:(0,i.jsx)(Tp,{chapter:c,bookSessionId:d,paddingLeftValue:""+(r>0?`${p+h*r}rem`:`${p}rem`)})})]})})},Ip=({chapter:e,openedNavIds:t,setOpenedNavIds:n,hasLPlus:r,bookSessionId:a})=>{const{t:o}=(0,k.Bd)(),s=(0,i.jsxs)("div",{className:"chapter-info",children:[(0,i.jsx)(lp,{outerPercentage:0|(null==e?void 0:e.readProgressPct),innerPercentage:cp(null==e?void 0:e.navTreeSessionsState),circleId:"circleid_"+e.chapterTitle.replace(" ","")}),(0,i.jsxs)("div",{className:"chapter-info__text",children:[(0,i.jsx)("div",{className:"chapter-info__title-with-badge",children:(0,i.jsx)("p",{className:"chapter-info__title text-text",children:e.chapterTitle})}),(0,i.jsx)("p",{className:"chapter-info__description",children:xp(e.elements,o)})]})]});return(0,i.jsxs)(Eu.q7,{value:`${e.chapterTitle}`,children:[(0,i.jsx)(Eu.l9,{asChild:!0,className:"group",children:(0,i.jsxs)("div",{className:"chapter-element px-6 border-b-2",role:"button",tabIndex:0,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),e.currentTarget.click())},children:[s,(0,i.jsx)(Ue.I,{className:"chapter-info__accordion-icon",source:Xi})]})}),(0,i.jsx)(Eu.UC,{className:"chapter-elements",children:(0,i.jsx)(Ep,{elements:e.elements||[],setOpenedNavIds:n,openedNavIds:t,hasLPlus:r,chapter:e,bookSessionId:a})})]})},Cp=({elements:e,checkedFilters:t,setCheckedFilters:n,accordionLabel:r,getLabel:a})=>{const o=e=>{t.includes(e.target.value)?n((t=>t.filter((t=>t!==e.target.value)))):n((t=>[...t,e.target.value]))};if(e&&0!==e.length)return(0,i.jsx)(vi.u,{label:r,checkboxItems:e.map((e=>(0,i.jsx)(Ln.o,{id:e,onChange:o,checked:t.includes(e),value:e,className:"py-3 px-2 text-text hover:bg-surfaceSubdued",children:a?a(e):e},e))),contentClass:"max-h-[50vh] md:max-w-md z-10",asPortal:!1,offlineDisabled:!0,isSelect:!0,asSelect:!0})},_p=({competencies:e,licenses:t,enabled:n,npNumber:a,setData:o,setIsLoading:s})=>{const{t:u}=(0,k.Bd)(),p=(0,l.n)(),{warning:h,success:m}=(0,A.e)(),{profile:g}=(0,c.As)(),[f,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)([]),[x,w]=(0,r.useState)([]),T=(0,r.useCallback)((()=>{let e=!0,t="";return x&&x.length>0&&(t=t+(e?"?":"&")+"keywords="+x,e=!1),b&&b.length>0&&(t=t+(e?"?":"&")+"license="+b),t}),[x,b]),{setTriggerDauLearningProgressRefetch:I}=(0,Pe.Us)(),{data:C,refetch:_}=ls(n&&f,a,T());(0,r.useEffect)((()=>{v(!1),C&&o(C)}),[C]);const{mutateAsync:j}=(e=>{const t=(0,d.q)(),n=(0,bp.jE)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async({params:e})=>{const{npNumber:i,ssoId:r}=e;return Object.keys(localStorage).forEach((e=>{e.startsWith(i+"/")&&e.endsWith("_"+r)&&localStorage.removeItem(e)})),n.removeQueries({queryKey:["get-eksdi-book-session"],exact:!1}),(await t.post(`/eksdi/map/${i}/booksession/reset`)).data},retry:!1});return(0,S.s)(r,e||{message:i("error.eksdi.failResetBookSession")})})(),[L,P]=(0,r.useState)(!1),D=(e=!0)=>{y([]),w([]),v(e)};if((0,r.useEffect)((()=>{p?(b.length>0||x.length>0)&&v(!0):h({copy:u("offline.disabledAction")})}),[b,x]),!e&&!t||0===e.length&&0===t.length)return;return(0,i.jsxs)("div",{className:"learning-progress-filter",children:[(0,i.jsxs)("div",{className:"learning-progress-filter__title",children:[(0,i.jsx)("span",{children:u("dau.learningprogress.filters.title")}),(0,i.jsx)(vi.u,{ariaLabel:u("asset.menu.ariaLabel"),closeOnElementClick:!0,asPortal:!1,offlineDisabled:!0,buttonType:"plain",elements:[(0,i.jsx)(N.$,{variant:"plain",ariaLabel:u("dau.learningprogress.filters.reset"),onClick:D,align:"start",children:(0,i.jsx)("span",{className:"text-base",children:u("dau.learningprogress.filters.reset")})},"resetFilters"),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:u("dau.learningprogress.reset"),onClick:()=>{P(!0)},align:"start",children:(0,i.jsx)("span",{className:"text-base",children:u("dau.learningprogress.reset")})},"reset-dau-session")]})]}),(0,i.jsxs)("form",{className:"learning-progress-filter__form",children:[(0,i.jsx)(Cp,{elements:e,checkedFilters:x,setCheckedFilters:w,accordionLabel:u("dau.learningprogress.filters.competences"),getLabel:e=>u(`eksdi.overview.chapterProgress.${e.toLowerCase()}`)}),(0,i.jsx)(Cp,{elements:t,checkedFilters:b,setCheckedFilters:y,accordionLabel:u("dau.learningprogress.filters.edition"),getLabel:e=>{const t=Fu(e);return t?u(t):void 0}})]}),(0,i.jsx)(kp,{isOpen:L,setIsOpen:P,text:(0,i.jsx)("p",{className:"px-6 pb-6 font-normal",children:u("dau.resetAll.warningText")}),resetApproved:()=>{a&&(s(!0),j({params:{npNumber:a,ssoId:null==g?void 0:g.id}}).then((e=>{D(!1)})).then((()=>_().then((e=>{e&&m({copy:u("dau.resetAll.successText"),id:"dau_resetAll_success"}),I(!0)})))).finally((()=>s(!1))))}})]})},jp=({element:e,className:t=""})=>(0,i.jsxs)("div",{className:`learn-progress-element ${t}`,children:[(null==e?void 0:e.icon)&&(0,i.jsx)("span",{className:"learn-progress-element__icon-circle",children:e.icon}),(0,i.jsxs)("div",{className:"flex flex-col justify-center",children:[(0,i.jsx)("span",{className:"learn-progress-element__text",children:e.text}),(0,i.jsx)("span",{className:"learn-progress-element__progress",children:e.progress})]})]}),Np=({data:e})=>{var t,n,a;const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(!1),{dauLearningProgress:c}=au();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"learning-progress-glossar",children:[(0,i.jsxs)("div",{className:"learning-progress-glossar__circle",children:[(0,i.jsx)(lp,{outerPercentage:0|(null==c?void 0:c.readProgressPct),innerPercentage:cp(null==c?void 0:c.navTreeSessionsState),circleId:"glossarcircle"}),(0,i.jsxs)("div",{className:"learning-progress-glossar__col",children:[!!(null===(t=null==c?void 0:c.navTreeSessionsState)||void 0===t?void 0:t.total)&&(0,i.jsxs)("div",{className:"learning-progress-glossar__content",children:[(0,i.jsx)("span",{className:"bg-progress learning-progress-glossar__content__line"}),(0,i.jsx)("span",{className:"whitespace-nowrap",children:o("dau.learningprogress.solvedAssignments")})]}),(0,i.jsxs)("div",{className:"learning-progress-glossar__content",children:[(0,i.jsx)("span",{className:"bg-primary learning-progress-glossar__content__line"}),(0,i.jsx)("span",{className:"whitespace-nowrap",children:o("dau.learningprogress.readPages")}
2),(0,i.jsx)(N.$,{size:"sm",onClick:()=>l(!0),icon:(0,i.jsx)(Ue.I,{source:hl.A,accessibilityLabel:o("ui.icons.info")}),className:"p-0"})]})]})]}),!!(null===(n=null==c?void 0:c.navTreeSessionsState)||void 0===n?void 0:n.total)&&(0,i.jsx)(jp,{element:{icon:(0,i.jsx)(Ue.I,{className:"learn-progress-element__icon--dau",source:Qs.A}),text:o("eksdi.overview.learningProgress.resultAverage"),progress:(0|(null===(a=null==e?void 0:e.navTreeSessionsState)||void 0===a?void 0:a.roundedPercent))+"%"}}),(0,i.jsx)("div",{className:"read-pages-info",children:(0,i.jsx)(Xe.y,{open:s,asPrompt:!0,close:()=>l(!1),title:o("dau.learningprogress.infoReadPagesTitle"),asPortal:!1,copy:(0,i.jsx)("p",{className:"font-normal text-base mx-6 mb-4",children:o("dau.learningprogress.infoReadPages")}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>l(!1),children:o("dau.version.about.ok")})]})})})]})})},Lp=({competencies:e,licenses:t,enabled:n,npNumber:r,data:a,setData:o,setIsLoading:s})=>{const{t:l}=(0,k.Bd)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"learning-progress-modal__header",tabIndex:0,children:[(0,i.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,i.jsx)("h2",{children:l("dau.learningprogress.title")}),(0,i.jsx)(Np,{data:a})]}),(0,i.jsx)(_p,{competencies:e,licenses:t,enabled:n,npNumber:r,setData:o,setIsLoading:s})]})})};function Pp({mapId:e,isEnabled:t},n){const i=(0,d.q)(),{t:r}=(0,k.Bd)(),a=(0,T.I)({queryKey:["get-eksdi-book-session",e],queryFn:async()=>(await i.get(`/eksdi/map/${e}/booksession`)).data,retry:!1,enabled:t});return(0,S.V)(a,n||{message:r("error.eksdi.failGetBookSession")})}const Dp=({npNumber:e,editions:t})=>{const{dauLearningProgress:n,dauLearningProgressIsPending:a}=au(),{learningProgressModalOpen:o,setLearningProgressModalOpen:s,scrollToLessonId:l,setScrollToLessonId:c}=(0,Pe.Us)(),{data:d}=Pp({mapId:e,isEnabled:!0}),[u,p]=(0,r.useState)([]),[h,m]=(0,r.useState)([]),[g,f]=(0,r.useState)([]),[v,b]=(0,r.useState)(null),[y,x]=(0,r.useState)(!1),w=(0,r.useCallback)(((e,t,n)=>{var i,r;null===(i=null==e?void 0:e.subElements)||void 0===i||i.forEach((e=>w(e,t,n))),n.add(e.license),null===(r=null==e?void 0:e.keywords)||void 0===r||r.forEach((e=>t.add(e.value)))}),[]);(0,r.useEffect)((()=>{if(n){const e=new Set,t=new Set;n.dauChapters.forEach((n=>{var i;null===(i=n.elements)||void 0===i||i.forEach((n=>{w(n,e,t)}))})),m(Array.from(e)),f(Array.from(t))}}),[n,w]);const k=()=>{const e=t.find((e=>e.type===nr.SE.EKSDI));return e&&e.license&&!Xt(e.license)};return(0,r.useEffect)((()=>{if(l&&(null==v?void 0:v.dauChapters)){const e=null==v?void 0:v.dauChapters.find((e=>null==e?void 0:e.elements.find((e=>e.navId===l))));e&&(p([e.chapterTitle,l]),setTimeout((()=>{const e=document.getElementById(l);e&&e.scrollIntoView({behavior:"smooth",block:"start"})}),100)),c(void 0)}}),[null==v?void 0:v.dauChapters,l,c]),(0,i.jsx)(Xe.y,{title:(0,i.jsx)(Lp,{competencies:h,licenses:g,enabled:o&&!!e,npNumber:e,data:v,setData:b,setIsLoading:x}),headerClassName:"border-b-2",titleClassName:"w-full pt-3",open:o,closeButton:!0,close:()=>{s(!1)},contentClassName:"xl:max-w-[1200px] flex flex-col",asPortal:!1,preventOutsideInteraction:!0,copy:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ft.o,{inProgress:y||a,className:"learning-progress-modal__loading"}),(0,i.jsx)(Eu.bL,{type:"multiple",value:u,onValueChange:e=>{p&&p(e)},children:(0,i.jsx)("ul",{children:null==v?void 0:v.dauChapters.map((e=>(0,i.jsx)("li",{children:(0,i.jsx)(Ip,{chapter:e,openedNavIds:u,setOpenedNavIds:p,hasLPlus:k(),bookSessionId:d})},"DauLearningProgressChapterKey_"+e.chapterTitle)))})})]})})},Mp=()=>{var e,t,n;const{t:a}=(0,k.Bd)(),{id:o}=(0,be.g)(),{refetch:s,data:c,error:d,isLoading:u}=Ii(o+"/daupdf",!1,{hideToast:!0}),[p,h]=(0,r.useState)(null),m=(0,l.n)(),{refetch:g,data:f,error:v}=Ti(o,{hideToast:!0}),[b,y]=(0,r.useState)(null),[x,w]=(0,r.useState)(),A=or(o),{refetch:T,data:S}=sr(A,{hideToast:!0}),{uhbPreviewTeaser:E,setUhbPreviewTeaser:I,eksdiPreviewTeaser:C,setEksdiPreviewTeaser:_}=Nc(),j=(0,Ei.A)(o),N=(0,se.P)(),L=(0,be.Zp)();c&&f&&A&&((0,it.a)({eventType:"pageType",data:{pageType:"Digitale Ausgabe"}}),(0,it.a)({eventType:"item",data:{item_id:o,item_language:c.book.language,item_ger:c.book.level,item_name:c.book.bookTitle,item_area:c.book.educationType,item_license:"Digitale Ausgabe",item_maxp:A}})),Oe(a("metaTitle.dau",{title:null==p?void 0:p.book.bookTitle,brand:N})),(0,r.useEffect)((()=>{A&&T()}),[A,T]),(0,r.useEffect)((()=>{const e=document.createElement("script");e.src="/mux/mux.js",e.async=!0,document.body.appendChild(e)}),[]);const P=(0,r.useCallback)((async()=>{let e=!0;if(o)if(m)await g(),e&&(h(f),await xe.db.mediaBookStructures.put({id:o,structure:f}));else{const e=await xe.db.mediaBookStructures.get({id:o});e&&h(e.structure)}return()=>{e=!1}}),[g,o,f,m]);(0,r.useEffect)((()=>{P()}),[P]),(0,r.useEffect)((()=>{s()}),[s]);const[D,M]=(0,r.useState)(null),[O,R]=(0,r.useState)(null),z=null==S?void 0:S.editions.find((e=>e.type===nr.SE.UHB)),B=null==S?void 0:S.editions.find((e=>e.type===nr.SE.EKSDI));(0,r.useEffect)((()=>{var e,t;if(S){xe.db.maxProduct.put({id:S.id,title:S.title});const n=null===(e=null==S?void 0:S.editions.find((e=>e.type===nr.SE.UHB)))||void 0===e?void 0:e.npNumber;if(n&&S.commercials){const e=S.commercials.find((e=>e.npNumber===n));e&&M(e)}const i=null===(t=null==S?void 0:S.editions.find((e=>e.type===nr.SE.EKSDI)))||void 0===t?void 0:t.npNumber;if(i&&S.commercials){const e=S.commercials.find((e=>e.npNumber===i));e&&R(e)}}}),[S]);const U=()=>{P(),s()};return(0,r.useEffect)((()=>{var e;v&&!j&&403===(null===(e=null==v?void 0:v.response)||void 0===e?void 0:e.status)&&L((0,vt.tW)(te.J.product.index,{id:A})+"?npfourothree="+o)}),[v]),v&&!j?(0,i.jsx)(pe,{fullWidth:!0,children:(0,i.jsx)("div",{className:"dau-pdf-page",children:(0,i.jsx)("div",{className:"my-4 w-full px-8",children:403!==(null===(e=null==v?void 0:v.response)||void 0===e?void 0:e.status)&&(0,i.jsx)("p",{children:a("error.dau.failGetPdf")})})})}):d&&!j?(0,i.jsx)(pe,{fullWidth:!0,children:(0,i.jsx)("div",{className:"dau-pdf-page",children:(0,i.jsxs)("div",{className:"my-4 w-full px-8",children:[403===(null===(t=null==d?void 0:d.response)||void 0===t?void 0:t.status)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{title:a("dau.license.pageTitle")}),(0,i.jsx)(at,{className:"max-w-[500px]",title:a("dau.license.title"),text:a("dau.license.text"),refetchProduct:U})]}),403!==(null===(n=null==d?void 0:d.response)||void 0===n?void 0:n.status)&&(0,i.jsx)("p",{children:a("error.dau.failGetPdf")})]})})}):(0,i.jsx)(Ia.Ue,{children:(0,i.jsxs)(hp,{selectedTool:b,setIsSelected:w,structure:p,setTool:y,maxProduct:S,np:o,children:[(0,i.jsx)(pp,{structure:p,maxProduct:S}),(0,i.jsx)(pe,{fullWidth:!0,displayFooter:!1,children:(0,i.jsx)(ft.o,{inProgress:u,children:(0,i.jsx)("div",{className:"dau-page__player",children:c&&(0,i.jsx)(gu,{tool:b,setTool:y,asset:c,structure:p,isSelected:x,maxProd:S,refetchMaxProd:T})})})}),(0,i.jsx)("div",{className:"learning-progress-modal",children:(0,i.jsx)(Dp,{npNumber:o,editions:null==S?void 0:S.editions})}
2),(0,i.jsx)(Hd,{upCommercial:D,previewTeaserOpen:E,setPreviewTeaserOpen:I,edition:z,refetchProduct:T||null}),(0,i.jsx)(Hd,{upCommercial:O,previewTeaserOpen:C,setPreviewTeaserOpen:_,edition:B,refetchProduct:T||null})]},"provider1")})};var Op=n(70731),Rp={};Rp.styleTagTransform=q(),Rp.setAttributes=B(),Rp.insert=R().bind(null,"head"),Rp.domAPI=M(),Rp.insertStyleElement=F();P()(Op.A,Rp);Op.A&&Op.A.locals&&Op.A.locals;const zp=({data:e})=>{const{t}=(0,k.Bd)();return(0,i.jsx)("div",{className:"max-product__header",children:(0,i.jsx)(Q,{withBookCover:null==e?void 0:e.cover,data_cy:"maxProd-pageTitle",title:null==e?void 0:e.title,titleClass:"flex flex-col gap-3 lg:gap-6",className:"p-0 flex-row lg:flex-col-reverse gap-3 lg:gap-6",withActions:!0,lead:(0,i.jsxs)("div",{className:"",children:[(null==e?void 0:e.bestandteil)&&(0,i.jsx)("h3",{className:"md:font-bold",children:t("augmented.description-label")+": "+(null==e?void 0:e.bestandteil)}),(null==e?void 0:e.level)&&(0,i.jsx)("p",{children:t("augmented.level-label")+": "+(null==e?void 0:e.level)})]})})})};var Bp=n(50514),Up={};Up.styleTagTransform=q(),Up.setAttributes=B(),Up.insert=R().bind(null,"head"),Up.domAPI=M(),Up.insertStyleElement=F();P()(Bp.A,Up);Bp.A&&Bp.A.locals&&Bp.A.locals;const Fp=({edition:e})=>{const t=(0,se.P)(),n=(0,o.U)(),{t:r}=(0,k.Bd)();return(0,i.jsxs)("a",{target:"_blank",className:"max-product-edition__buy-now-link max-product-edition__buy-edition-link",href:`${"DELTA"===t?n.webshopUrlDelta:n.webshopUrlEks}${e.npNumber}`,rel:"noreferrer",children:[(0,i.jsx)("span",{children:(0,i.jsx)(Ue.I,{source:sl.A,className:"w-6 h-6 mx-0"})}),(0,i.jsx)("span",{children:{Augmented:r("maxProduct.openFreeContent"),Digital:r("maxProduct.license.buyEdition.dau"),UHB:r("maxProduct.license.buyEdition.uhb"),Eksdi:r("maxProduct.license.buyEdition.lplus")}[e.type]})]})},Vp=({edition:e,maxProductTitle:t,maxProductId:n,openUhb:r,openDau:a,openEksdi:s,trslSrcLanguage:d,thirdPartyData:u,allEditions:p,series:h})=>{var m;const g=(0,c.As)(),f=(0,o.U)(),v=(0,l.n)(),b=(0,fe.m)(),{t:y}=(0,k.Bd)(),x=(0,Gr.U)(),{mutateAsync:w}=dn(),{featureToggle:T}=en(),S=T.includes(tn),E=T.includes(nn)&&T.includes(rn),{data:I}=hn(E&&g.authenticated&&v),{warning:C}=(0,A.e)(),_=e.type!==nr.SE.AUGMENTED&&(e.license&&e.license.isAssignedToUser&&Xt(e.license)||!g.authenticated||!e.license),j=!(e.type!==nr.SE.DIGITAL&&e.type!==nr.SE.EKSDI||null===e.demoDays||!(e.demoDays>0)||e.license||e.license&&Xt(e.license)),L=!(!(null==e?void 0:e.license)||!(null===(m=null==e?void 0:e.license)||void 0===m?void 0:m.isAssignedToUser)||Xt(null==e?void 0:e.license)),P=()=>`${y("maxProduct.demo.text")} (${e.demoDays} ${e.demoDays>1?y("maxProduct.demo.durationPlural"):y("maxProduct.demo.durationSingle")})`,D=()=>({Augmented:y("maxProduct.openFreeContent"),Digital:y("maxProduct.openDigitalContent"),UHB:y("maxProduct.openLehrerwelt"),Eksdi:y("maxProduct.openLernplus")}[e.type]),M=e=>{e!==Jt.ARBEITSBLATTGENERATOR&&e!==Jt.TEACHERMATIC&&e!==Jt.ACTIVITY_SET||(0,it.r)({eventType:"clickThirdPartyLink",productName:e})},O=h?`&courseid=${encodeURIComponent(h)}`:"";return(0,i.jsxs)("div",{className:"max-prod-edition__buttons "+(e.type===nr.SE.UHB?"max-prod-edition__buttons-row":""),children:[!(g.authenticated||e.type!==nr.SE.DIGITAL&&e.type!==nr.SE.EKSDI||!e.demoDays)&&(0,i.jsx)(De.M,{variant:"plain",text:`${y("maxProduct.demo.login")} ${P()}`,className:"max-product-edition__demo-link"}),g.authenticated&&j&&(0,i.jsx)(N.$,{variant:"plain",className:"max-product-edition__demo-link",onClick:async()=>{if(e.type===nr.SE.EKSDI&&e.isLicenseOnly){const e=p.find((e=>e.type===nr.SE.DIGITAL));if(!e||!e.license||Xt(e.license))return void C({copy:y("error.demo.noLPlusDemoWithoutDau")})}try{await w({type:e.type,productId:e.npNumber}),(0,it.r)({productId:e.npNumber,productName:t,eventType:"activateTestLicense"}),a()}catch(e){console.log(e)}},children:P()}),_&&(0,i.jsx)(Fp,{edition:e}),!_&&(e.type!==nr.SE.EKSDI||S||e.isLicenseOnly)&&(0,i.jsx)(N.$,{"data-cy":`${e.type}-box`,variant:"primary",title:D(),icon:(0,i.jsx)(Ue.I,{source:It.A,className:"m-0 md:mx-auto"}),onClick:()=>({Augmented:()=>b((0,vt.tW)(te.J.product.augmented,{id:n,isbn:e.isbn||1}
2)),Digital:()=>a(),UHB:()=>r(),Eksdi:()=>(null==g?void 0:g.authenticated)&&!e.isLicenseOnly&&S?s():a()}[e.type]()),className:"justify-center gap-4 md:justify-between",children:D()}),g.authenticated&&(e.type===nr.SE.EKSDI||e.type===nr.SE.DIGITAL)&&!!d&&(L||E&&I&&(null==I?void 0:I.valid))&&(0,i.jsx)("a",{target:"_blank",href:f.iqBuddyUrl,className:"button button--secondary button--center",rel:"noreferrer","aria-label":y("maxProduct.aria.iqBuddy"),children:y("maxProduct.iqBuddy")}),g.authenticated&&e.type===nr.SE.UHB&&!!u&&(null==u?void 0:u.includes(Jt.ARBEITSBLATTGENERATOR))&&L&&(0,i.jsx)("a",{target:"_blank",href:y("maxProduct.worksheetGenerator.link"),className:"button button--secondary button--center",rel:"noreferrer","aria-label":y("maxProduct.aria.worksheetGenerator"),onClick:()=>M(Jt.ARBEITSBLATTGENERATOR),children:y("maxProduct.worksheetGenerator.buttonText")}),g.authenticated&&e.type===nr.SE.UHB&&!!u&&(null==u?void 0:u.includes(Jt.TEACHERMATIC))&&L&&(0,i.jsx)("a",{target:"_blank",href:`${y("maxProduct.teachermatics.link")}${O}`,className:"button button--secondary button--center",rel:"noreferrer","aria-label":y("maxProduct.aria.teachermatics"),onClick:()=>M(Jt.TEACHERMATIC),children:y("maxProduct.teachermatics.buttonText")}),g.authenticated&&e.type===nr.SE.UHB&&L&&(0,i.jsx)("a",{target:"_blank",href:`https://digitales.klett-sprachen.de/eks/activityset/index.html?lang=${x()}`,className:"button button--secondary button--center",rel:"noreferrer","aria-label":y("maxProduct.aria.activitySet"),onClick:()=>M(Jt.ACTIVITY_SET),children:y("maxProduct.activitySet.buttonText")})]})},qp=({edition:e,maxProductTitle:t,commercialEdition:n,augmentedCommercials:a,maxProductId:o,openUhb:s,trslSrcLanguage:l,thirdPartyData:d,allEditions:u=[],series:p})=>{var h;const m=(0,c.As)(),g=(0,fe.m)(),{t:f}=(0,k.Bd)(),[v,b]=(0,r.useState)(!1),[y,x]=(0,r.useState)(!1),w=t=>({Augmented:(0,i.jsx)("div",{className:t,children:(0,i.jsx)("img",{src:"./images/allango_medieninhalte.svg",alt:"",role:"presentation",className:"max-w-max"})}),Digital:(0,i.jsx)("div",{className:t,children:(0,i.jsx)("img",{src:"./images/allango_digitale_ausgabe.svg",alt:"",role:"presentation",className:"max-w-max"})}),UHB:(0,i.jsx)(Ue.I,{source:yo,className:`w-8 h-8 text-surface bg-orange rounded-full m-0 ${t}`}),Eksdi:(0,i.jsx)(Ue.I,{source:yo,className:`w-8 h-8 text-surface bg-orange rounded-full m-0 ${t}`})}[e.type]),A=()=>(0,i.jsxs)(i.Fragment,{children:[e.license&&e.license.isAssignedToUser&&(0,i.jsx)(wn,{license:e.license}),!e.license&&(0,i.jsx)(Dt.E,{className:"bg-surfaceWarning",icon:(0,i.jsx)(Ue.I,{source:xn,className:"w-4 h-4"}),type:"custom",children:f("maxProduct.license.licenseNeeded")})]}),T=()=>({Augmented:(0,i.jsx)(Dt.E,{type:"default",className:"bg-surfaceInformation px-2 py-1",children:f("maxProduct.forFree")}),Digital:A(),UHB:A(),Eksdi:A()}[e.type]);return(0,i.jsxs)("div",{className:`max-product-edition__box ${e.type===nr.SE.DIGITAL?"max-product-edition__box--digital":""} ${e.license&&e.license.isAssignedToUser&&!Xt(e.license)||e.type===nr.SE.AUGMENTED?"bg-surfaceSubdued":"bg-surface"}`,children:[(0,i.jsxs)("div",{className:"max-product-edition__main",children:[(0,i.jsxs)("div",{className:"flex gap-2 md:block "+(e.type===nr.SE.UHB||e.type===nr.SE.EKSDI?"w-full justify-between md:w-auto":"w-full md:w-auto justify-end md:justify-between"),children:[w(e.type===nr.SE.UHB||e.type===nr.SE.EKSDI?"":"hidden md:block"),(0,i.jsx)("div",{className:"md:hidden",children:T()})]}),(0,i.jsxs)("div",{className:"max-product-edition__content",children:[(0,i.jsxs)("div",{className:"max-product-edition__info",children:[(0,i.jsx)("div",{className:"max-product-edition__header",children:(0,i.jsxs)("div",{className:"max-product-edition__info--header",children:[(0,i.jsx)("h2",{className:"max-product-edition__title",children:{Augmented:f("maxProduct.freeContent"),Digital:f("maxProduct.digitalContent"),UHB:f("maxProduct.lehrerwelt"),Eksdi:f("maxProduct.lernplus")}[e.type]}),(0,i.jsx)("div",{className:"hidden md:block",children:T()})]})}),(0,i.jsx)("p",{children:{Augmented:f("maxProduct.freeContentDescription"),Digital:f("maxProduct.digitalContentDescription"),UHB:f("maxProduct.lehrerweltDescription"),Eksdi:f("maxProduct.lernplusDescription")}[e.type]}),(e.type===nr.SE.DIGITAL||e.type===nr.SE.UHB||e.type===nr.SE.EKSDI)&&(!e.license||!(null===(h=e.license)||void 0===h?void 0:h.isAssignedToUser)||Xt(e.license))&&(0,i.jsx)("button",{type:"button","data-cy":"show-more",className:"max-product-edition__show-more",onClick:()=>b(!0),children:f("maxProduct.viewMore")}
2),v&&(0,i.jsx)(Hd,{upCommercial:n,augmentedCommercials:a,previewTeaserOpen:v,setPreviewTeaserOpen:b,edition:e,refetchProduct:null,demoLinks:!0})]}),w(e.type===nr.SE.UHB||e.type===nr.SE.EKSDI?"hidden":"w-full flex justify-center md:hidden"),(0,i.jsx)(Vp,{edition:e,maxProductTitle:t,maxProductId:o,openUhb:s,openDau:()=>{if(m.authenticated){const t=e.type===nr.SE.EKSDI?e.npNumber.replace("NP300","NP100"):e.npNumber;g((0,vt.tW)(te.J.dau,{id:t}))}else x(!0)},openEksdi:()=>{m.authenticated?g((0,vt.tW)("/"+te.J.eksdi.index,{mapId:e.npNumber})):x(!0)},trslSrcLanguage:l,thirdPartyData:d,allEditions:u,series:p})]})]}),(0,i.jsx)(Rr.M,{copy:f("maxProduct.loginTeaser"),open:y,onClose:()=>x(!1)})]})},Hp=({refetchProduct:e})=>{const{t}=(0,k.Bd)(),{authenticated:n}=(0,c.As)();return(0,i.jsx)(Eu.bL,{className:"license-card",type:"single",collapsible:!0,children:(0,i.jsxs)(Eu.q7,{value:t("maxProduct.license.inputTitle"),className:"license-card__accordion-item",children:[(0,i.jsx)(Eu.l9,{className:"license-card__trigger",children:(0,i.jsxs)("div",{className:"license-card__trigger-header",children:[(0,i.jsxs)("h2",{className:"license-card__title--accordion",children:[(0,i.jsx)(Ue.I,{source:xn,className:"w-6 h-6"}),t("maxProduct.license.inputTitle")]}),(0,i.jsx)(Ue.I,{className:"license-card__chevron",source:Xi})]})}),(0,i.jsx)(Eu.UC,{children:n?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("p",{className:"license-card__text--accordion",children:t("maxProduct.license.inputText")}),(0,i.jsx)(rt,{label:t("maxProduct.license.inputLabel"),help:t("maxProduct.license.inputHelp"),cta:t("maxProduct.license.inputCta"),refetchProduct:e})]}):(0,i.jsx)(ot,{text:t("welcome.license.teaserText"),cta:t("welcome.license.teaserCta"),className:"license-accordion__teaser",variant:"secondary"})},"license")]},"license")})},Gp=({data:e,refetchData:t})=>{var n;const a=(0,c.As)(),o=(0,be.Zp)(),{id:s}=(0,be.g)(),l=(0,Re.V)(),d=l.get("npfourothree"),[u,p]=(0,r.useState)([]),[h,m]=(0,r.useState)(!1),g=0===a.authorization.realmAccessRoles.filter((e=>"teacher"===e||"schooladmin"===e||"eks_content_admin"===e||"editor"===e)).length,f=null===(n=null==e?void 0:e.editions)||void 0===n?void 0:n.find((e=>e.type===nr.SE.AUGMENTED)),{warning:v}=(0,A.e)(),{t:b}=(0,k.Bd)();e&&((0,it.a)({eventType:"pageType",data:{pageType:"MAXP-Seite"}}),(0,it.a)({eventType:"item",data:{item_id:s,item_language:e.language,item_ger:e.level,item_name:e.title,item_area:e.educationType,item_license:"",item_maxp:s}})),(0,r.useEffect)((()=>{var t;if(d&&e){const n=null===(t=e.editions)||void 0===t?void 0:t.find((e=>d===e.npNumber));v({copy:b("error.license.403."+((null==n?void 0:n.type)?null==n?void 0:n.type:"general")),id:"npfourothree"+d}),l.delete("npfourothree"),o((0,vt.tW)(te.J.product.index,{id:s}))}}),[e,s,o,d,l,b,v]),(0,r.useEffect)((()=>{if(e){const t=[],n=e.editions.find((e=>e.type===nr.SE.DIGITAL));n&&(t.push(n),m(n.license&&n.license.isAssignedToUser&&!Xt(n.license)));const i=e.editions.find((e=>e.type===nr.SE.UHB));i&&t.push(i);const r=e.editions.find((e=>"Eksdi"===e.type));r&&t.push(r),p(t)}}),[e]);const y=()=>{const t=null==e?void 0:e.editions.find((e=>e.type===nr.SE.UHB));t&&t.npNumber&&o((0,vt.tW)(te.J.uhb,{id:t.npNumber}))};return(0,r.useEffect)((()=>{e&&xe.db.maxProduct.put({id:e.id,title:e.title})}),[e]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:"max-product-editions",children:[f&&(0,i.jsx)("div",{className:"max-product-editions--augmented",children:(0,i.jsx)(qp,{edition:f,maxProductTitle:e.title,maxProductId:e.id})}),e&&u.length>0&&(0,i.jsx)("div",{className:"max-product-editions--plus "+(h?"bg-surfaceSubdued":""),children:u.map(((t,n)=>{if(!a.authenticated||t.type!==nr.SE.UHB||!g)return(0,i.jsx)(qp,{edition:t,maxProductTitle:e.title,commercialEdition:e.commercials.find((e=>e.npNumber===t.npNumber)),augmentedCommercials:t.type===nr.SE.DIGITAL?e.commercials.find((e=>null!==e.isbn)):void 0,maxProductId:e.id,openUhb:y,trslSrcLanguage:null==e?void 0:e.trslSrcLanguage,thirdPartyData:null==e?void 0:e.thirdPartyData,allEditions:u,series:null==e?void 0:e.series},n)}))}),(0,i.jsx)(Hp,{refetchProduct:t})]})})},Kp=()=>{const{id:e}=(0,be.g)(),t=(0,c.As)(),{refetch:n,data:a,isLoading:o,error:s}
2=sr(e,{hideToast:!0}),{t:l}=(0,k.Bd)(),d=(0,fe.m)(),u=(0,se.P)();return Oe(l("metaTitle.maxProduct",{title:null==a?void 0:a.title,brand:u})),(0,r.useEffect)((()=>{t.authInitialized&&n()}),[n,t]),s?(0,i.jsx)(pe,{children:(0,i.jsx)(Q,{title:l("maxProduct.noProductFound"),lead:(0,i.jsx)(N.$,{variant:"primary",onClick:()=>d(-1),ariaLabel:l("maxProduct.aria.backToOverview"),children:l("maxProduct.backToOverview")})})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(pe,{children:(0,i.jsx)(ft.o,{inProgress:!t.authInitialized||o,children:(0,i.jsxs)("div",{className:"max-product",children:[(0,i.jsx)(zp,{data:a}),(0,i.jsx)(Gp,{data:a,refetchData:n})]})})})})};const $p=()=>{var e,t,n,a;const{profile:o}=(0,c.As)(),{id:s}=(0,be.g)(),{t:u}=(0,k.Bd)(),p=(0,fe.m)(),[h,m]=(0,r.useState)("");Oe(u("metaTitle.lists"));const g=(0,c.As)(),f=(0,Re.V)(),v=(0,l.n)(),{success:b}=(0,A.e)(),{refetch:y,data:w,isFetching:E,isInitialLoading:I,error:C}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-curatedlists-by-id",e],queryFn:async()=>(await n.get(`curatedlists/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.failRemoveReceived")})}(s,{hideToast:!0}),{playlists:_,refetchCuratedLists:j}=(0,x.W)(),{refetch:L,data:P,isInitialLoading:D,error:M}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-shared-curated-by-id",e],queryFn:async()=>(await n.get(`curatedlists/shared/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.playlist.playlistNotFound")})}(s,{hideToast:!0}),{mutateAsync:O}=pa(),{mutateAsync:R}=ua(),{mutateAsync:z}=(0,da.x)({message:u("error.playlist.failRename")}),{mutateAsync:B}=(0,da.x)({message:h}),{mutateAsync:U}=ha(),{mutateAsync:F}=Fn({hideToast:!0}),[V,q]=(0,r.useState)(),[H,G]=(0,r.useState)((null==V?void 0:V.sharingInfos)||[]),[K,$]=(0,r.useState)(!1),[W,X]=(0,r.useState)(!1),[Y,J]=(0,r.useState)(!1),[Z,ne]=(0,r.useState)(!1),ie=(null==V?void 0:V.playlist.creator.userId)===(null==o?void 0:o.id);w&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Listenbearbeitung"}})),(0,r.useEffect)((()=>{if(f.get("shared")){const e=localStorage.getItem("playlistTeaser");(e?e.split(","):[]).find((e=>e===s))?J(!1):J(!0)}}),[f,s]);const re=(0,r.useCallback)((()=>{f.get("shared")?L():y()}),[f,y,L]);(0,r.useEffect)((()=>{v&&re()}),[g,v,re]),(0,r.useEffect)((()=>{if(_&&P){-1===_.findIndex((e=>"read"===e.highestPrivilege&&e.playlist.id===P.playlist.id))&&"own"!==P.highestPrivilege&&g.authenticated&&b({copy:u("playlist.addedReceived"),id:"received"}),q(P),G(P.sharingInfos)}w&&(q(w),G(w.sharingInfos)),P&&(q(P),G(P.sharingInfos))}),[g,q,_,w,P,b,u]),(0,r.useEffect)((()=>{if(V){const e={targetId:f.get("shared")?V.sharingInfos[0].shareId:V.playlist.id,targetTitle:V.playlist.title,targetType:f.get("shared")?et.yK.SHARED_CURATEDLIST:et.yK.CURATEDLIST,interactionCode:et.w2.OPENED};g.authenticated?F({request:e}):e.targetType===et.yK.SHARED_CURATEDLIST&&Fr(Ur(e))}}),[V,g,F,f]);const ae=(0,r.useCallback)((async e=>{m(u("error.playlist.failModify")),await B({playlist:Object.assign(Object.assign({},V.playlist),{entries:e})}),q(Object.assign(Object.assign({},V),{playlist:Object.assign(Object.assign({},V.playlist),{entries:e})}))}),[u,B,V]),oe=(0,r.useCallback)((async e=>{m(u("error.playlist.failAddEntry")),await B({playlist:Object.assign(Object.assign({},V.playlist),{entries:[Object.assign(Object.assign({},e),{id:(0,Bn.A)()}),...V.playlist.entries]})}),""===e.id&&(0,it.r)({productId:"CustomEntry",productName:e.title,contentId:"CustomEntry",format:"CustomEntry",eventType:"addToPlaylist"}),X(!1),y()}),[u,B,y,V]),se=(0,r.useCallback)((async()=>{g.authInitialized&&!g.authenticated?ne(!0):(await U({shareId:V.sharingInfos[0].shareId}),j(),b({copy:u("playlist.copySuccess")}),p(te.J.playlist.index))}),[U,V,p,g,j,b,u]);if((0,r.useEffect)((()=>()=>{j()}),[j]),C||M)return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:404===(null===(e=null==M?void 0:M.response)||void 0===e?void 0:e.status)||404===(null===(t=null==C?void 0:C.response)||void 0===t?void 0:t.status)?u("playlist.notFoundTitle"):u("playlist.notAllowedTitle")}),(0,i.jsx)(ee.z,{className:"text-textLink",to:te.J.playlist.index+"?type=allangoShared",children:u("playlist.backToOverview")})]});return(0,i.jsx)(pe,{children:(0,i.jsxs)(ft.o,{inProgress:I||D||!g.authInitialized,children:[(0,i.jsx)(Mr,{onSetIsOpen:e=>
2{$(e),(0,it.r)({eventType:"sharePlaylist"})},onSetPlaylist:q,list:V,isEditable:ie,deleteReceivedList:O,onPlaylistCopyOrDelete:()=>{p(te.J.playlist.index+"?type=allango")},copyReceivedList:se,renameList:z,deleteList:R}),Y&&(0,i.jsx)(Or,{onCopyPlaylist:se,onHideTeaser:()=>J(!1),playlistId:s}),(0,i.jsxs)("div",{className:"playlist-details__list",children:[ie&&!W&&(null===(a=null===(n=null==V?void 0:V.playlist)||void 0===n?void 0:n.entries)||void 0===a?void 0:a.length)>0&&(0,i.jsx)("div",{className:"playlist-details__list-actions",children:(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"secondary",onClick:()=>X(!0),icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:u("playlist.addEntry")})}),W&&(0,i.jsx)(Gi,{playlistEntry:{title:"",id:""},closeEditMode:()=>X(!1),onSaveComment:oe}),V&&!E&&!D&&(0,i.jsx)(Tr,{onSetCustomContent:()=>X(!0),editable:"own"===(null==V?void 0:V.highestPrivilege),onPlaylistChange:ae,playlist:V.playlist})]}),K&&(0,i.jsx)(ti,{type:"allango",playlist:V,shareInfo:H,onClose:()=>$(!1),onShareLinkDelete:()=>G([]),onSetShareInfo:e=>G(e)}),(0,i.jsx)(Rr.M,{open:Z,onClose:()=>ne(!1)})]})})},Wp=()=>{var e,t,n;const{t:a}=(0,k.Bd)(),{id:o}=(0,be.g)(),{refetch:s,data:c,error:d}=Ii(o+"/daupdf",!1,{hideToast:!0}),[u,p]=(0,r.useState)(null),{refetch:h,data:m}=Ti(o,{hideToast:!0}),g=or(null===(e=null==u?void 0:u.book)||void 0===e?void 0:e.npNumber),{refetch:f,data:v}=sr(g,{hideToast:!0}),b=(0,J.Ay)(J.ml),[y,x]=(0,r.useState)(b?null:ts.GRAB),[w,A]=(0,r.useState)(),T=(0,l.n)(),S=(0,se.P)();(0,r.useEffect)((()=>{g&&f()}),[g,f]),c&&m&&g&&((0,it.a)({eventType:"pageType",data:{pageType:"Unterrichtshandbuch"}}),(0,it.a)({eventType:"item",data:{item_id:o,item_language:c.book.language,item_ger:c.book.level,item_name:c.book.bookTitle,item_area:c.book.educationType,item_license:"Digitales UnterrichtsPlus",item_maxp:g}})),Oe(a("metaTitle.uhb",{title:null==u?void 0:u.book.bookTitle,brand:S})),(0,r.useEffect)((()=>{const e=document.createElement("script");e.src="/mux/mux.js",e.async=!0,document.body.appendChild(e)}),[]);const E=(0,r.useCallback)((async()=>{let e=!0;if(o)if(T)await h(),e&&(p(m),await xe.db.mediaBookStructures.put({id:o,structure:m}));else{const e=await xe.db.mediaBookStructures.get({id:o});e&&p(e.structure)}return()=>{e=!1}}),[h,o,m,T]);(0,r.useEffect)((()=>{E()}),[E]),(0,r.useEffect)((()=>{s()}),[s]);const I=()=>{E(),s()};return d?(0,i.jsx)(pe,{fullWidth:!0,children:(0,i.jsx)("div",{className:"dau-pdf-page",children:(0,i.jsxs)("div",{className:"my-4 w-full px-8",children:[403===(null===(t=d.response)||void 0===t?void 0:t.status)&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{title:a("dau.license.pageTitle")}),(0,i.jsx)(at,{className:"max-w-[500px]",title:a("uhb.license.title"),text:a("uhb.license.text"),refetchProduct:I})]}),403!==(null===(n=d.response)||void 0===n?void 0:n.status)&&(0,i.jsx)("p",{children:a("error.asset.failGetPdf")})]})})}):(0,i.jsx)(Ia.Ue,{children:(0,i.jsxs)(hp,{selectedTool:y,setIsSelected:A,structure:u,setTool:x,isUhb:!0,maxProduct:v,np:o,children:[(0,i.jsx)(pp,{structure:u,uhb:!0,maxProduct:v}),(0,i.jsx)(pe,{fullWidth:!0,displayFooter:!1,children:(0,i.jsx)("div",{className:"dau-page__player",children:c&&(0,i.jsx)(gu,{tool:y,setTool:x,asset:c,isUhb:!0,structure:u,isSelected:w,maxProd:v,refetchMaxProd:f})})})]},"provider1")})};const Xp=()=>{const e=(0,Gr.U)(),{t,i18n:n}=(0,k.Bd)(),a=(0,se.P)(),[o,s]=(0,r.useState)(null),[l,c]=(0,r.useState)(""),{mutateAsync:u}=(0,ge.u)(),{refetch:p,data:h}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-versions"],queryFn:async()=>(await t.get("/system/version")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.versions.failGetVersions")})}({hideToast:!0});(0,r.useEffect)((()=>{p()}),[p]),(0,r.useEffect)((()=>{h&&s(h)}),[h,s]),(0,r.useEffect)((()=>{fetch("version.txt").then((e=>e.text().then((e=>c(e))))).catch((e=>{console.error(e),c("unspecified"),u({errorMessage:"Error setting Frontend Version",errorObject:e})})).catch((e=>{console.error(e),u({errorMessage:"Error fetching version.txt",errorObject:e})}))}),[u]),Oe(t("metaTitle.versionInfo",{brand:a}));const m=n.exists("versionInfo.releaseInfoList")&&t("versionInfo.releaseInfoList").length>30,g=n.exists("versionInfo.releaseInfoText")&&t("versionInfo.releaseInfoText").length>30;return(0,i.jsx)(pe,{children:(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"heading-3",children:t("versionInfo.versionsInfoTitle")}),(0,i.jsx)("p",{children:t("versionInfo.allangoLanguage")+e()}),(0,i.jsx)("p",{children:t("versionInfo.browserLanguage")+navigator.language}),(0,i.jsx)("p",{children:t("versionInfo.userAgent")+navigator.userAgent}),o&&(0,i.jsxs)(i.Fragment,{children:[l&&(0,i.jsx)("p",{children:t("versionInfo.frontend")+l}),(0,i.jsx)("p",{children:t("versionInfo.backend")+o.backendVersion}),(0,i.jsx)("p",{children:t("versionInfo.marklogic")+o.mlVersion})]})]}),(m||g)&&(0,i.jsxs)("div",{children:[(0,i.jsx)("h3",{className:"heading-3",children:t("versionInfo.releaseInfoTitle")}),g&&(0,i.jsx)("p",{children:(0,i.jsx)(k.x6,{i18nKey:"versionInfo.releaseInfoText"})}),m&&(0,i.jsx)("ul",{className:"list-disc list-inside",children:(0,i.jsx)(k.x6,{i18nKey:"versionInfo.releaseInfoList",components:{item:(0,i.jsx)("li",{})}})})]})]})})},Yp=()=>{var e,t;const{t:n}=(0,k.Bd)(),{authenticated:a}=(0,c.As)(),{search:o}=(0,be.zy)(),s=(0,Re.V)(),l=jn(),[d,u]=(0,r.useState)((null==l?void 0:l.value)?null==l?void 0:l.value:"recent"),[p,h]=(0,r.useState)(Pn()),m=o.indexOf(`&type=${Sn.ALL}`)>-1?o.replace(`&type=${Sn.ALL}`,""):o.replace(`&type=${Sn.PERSONAL}`,""),{refetch:g,data:f}=Vt(m||"?searchString=",{pagesize:parseInt(s.get("pagesize"))||15,page:parseInt(s.get("page"))||1},{hideToast:!0}),{refetch:v,data:b}=qt(m||"?searchString=",{pagesize:parseInt(s.get("pagesize"))||15,page:parseInt(s.get("page"))||1},d,p,{hideToast:!0}),{refetch:y,data:x}=Cn("",{pagesize:parseInt(s.get("pagesize"))||15,page:parseInt(s.get("page"))||1},{hideToast:!0}),[w,A]=(0,r.useState)([]),{featureToggle:T}=en(),S=T.includes(nn),E=(0,fe.m)();Oe(n("metaTitle.library",{brand:(0,se.P)()}));const[I,C]=(0,r.useState)([]);f&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Bibliothek"}})),(0,r.useEffect)((()=>{g(),y()}),[g,y,s]),(0,r.useEffect)((()=>{S&&x&&A(x.resultPage.content)}),[S,x]),(0,r.useEffect)((()=>{a&&v()}),[v,a,s,d,p]),(0,r.useEffect)((()=>{const e=s.get("type");e!==Sn.ALL&&a||!f?e===Sn.TOOLS&&w?C(w||[]):b&&b.resultPage.totalCount>0?C(b.resultPage.content):C((null==f?void 0:f.resultPage.content)||[]):C(f.resultPage.content)}),[s,f,b,w,a]);const _=(0,r.useCallback)((async e=>{s.set("page",e.page),s.set("pagesize",e.pagesize),E(te.J.library+"?"+s.toString())}),[s,E]),j=()=>
2{if(f){const e=s.get("type");return null!==s.get("searchString")||(!(e!==Sn.ALL&&a||null===s.get("searchString"))||(!!(e===Sn.TOOLS&&w&&w.length>0)||e!==Sn.ALL&&e!==Sn.TOOLS&&b&&b.resultPage.totalCount>0))}return!1};return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"library-title",title:n("library.title"),lead:(0,i.jsx)("p",{className:"mt-4",children:n("library.subtitle")})}),(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"text-body2 py-6",children:(0,i.jsx)("label",{htmlFor:"library-search",children:n("library.searchLabel")})}),(0,i.jsx)(He,{route:te.J.library,resultCount:0===(null==f?void 0:f.resultPage.totalCount)?0:null,confirmButton:!0,inputName:"library-search"})]}),(0,i.jsx)(In,{searchResult:f,personalBooks:b,routeString:te.J.library}),(0,i.jsx)(Mn,{searchResultCount:null===(e=null==f?void 0:f.resultPage)||void 0===e?void 0:e.totalCount,personalBooksCount:null===(t=null==b?void 0:b.resultPage)||void 0===t?void 0:t.totalCount}),s.get("type")!==Sn.ALL&&s.get("type")!==Sn.TOOLS&&b&&b.resultPage.totalCount>0&&(0,i.jsxs)("div",{className:"discover-page__filter",children:[(0,i.jsx)(Nn,{sortChange:u}),(0,i.jsx)(Dn,{setHideExpired:h})]}),(0,i.jsxs)("ul",{className:"discover-page__items",children:[I.map(((e,t)=>{if(j()||t<3)return(0,i.jsx)("li",{children:(0,i.jsx)(kn,{item:e})},t)})),(s.get("type")===Sn.ALL||!a||!b||0===(null==b?void 0:b.resultPage.totalCount))&&s.get("type")!==Sn.TOOLS&&null===s.get("searchString")&&(0,i.jsx)("li",{children:(0,i.jsx)(ee.z,{to:te.J.discover+"?searchString=&type=all",className:"discover-page__more-item discover-item group",children:(0,i.jsx)("div",{className:"discover-item__img-wrapper",children:(0,i.jsxs)("div",{className:"discover-item__img discover-item__img-wrapper--placeholder",children:[(0,i.jsx)("p",{children:n("discover.teaser")}),(0,i.jsx)(Ue.I,{source:It.A})]})})})})]}),j()&&(s.get("type")===Sn.ALL||!a)&&f.resultPage.totalCount>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:Object.assign(Object.assign({},null==f?void 0:f.resultPage),{pagesize:null==f?void 0:f.resultPage.size,page:null==f?void 0:f.resultPage.pageNumber})}),s.get("type")!==Sn.ALL&&s.get("type")!==Sn.TOOLS&&b&&b.resultPage.totalCount>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:Object.assign(Object.assign({},null==b?void 0:b.resultPage),{pagesize:null==b?void 0:b.resultPage.size,page:null==b?void 0:b.resultPage.pageNumber})}),s.get("type")===Sn.TOOLS&&w&&w.length>0&&(0,i.jsx)($t,{showTotal:!0,onNavigate:_,pagination:{pagesize:1,page:1,totalCount:w.length,maxPageSize:10}})]})};var Jp=n(49395);const Zp=({breadcrumbsItems:e})=>(0,i.jsx)("div",{className:"text-sm gap-1 flex items-center [&>a]:text-textLink flex-wrap md:col-span-5",children:e.map(((t,n)=>{var a,o;return"link"===t.type?(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(ee.z,{to:t.urlPath,children:t.label}),(0,i.jsx)(Ue.I,{className:"w-4 h-4 m-0",source:zc.A})]},null!==(a=t.label)&&void 0!==a?a:n):(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("span",{className:""+(e.length!==n+1?"":"font-bold"),children:t.label}),e.length!==n+1&&(0,i.jsx)(Ue.I,{className:"w-4 h-4 m-0",source:zc.A})]},null!==(o=t.label)&&void 0!==o?o:n)}))}),Qp=({isDau:e=!1,isUhb:t=!1,structure:n,bookPath:a,page:o,additionalBreadcrumb:s})=>{var l;const c=au(),{t:d}=(0,k.Bd)(),u=c?null===(l=null==n?void 0:n.chapters)||void 0===l?void 0:l.find((e=>c.page>=parseInt(e.chapterFrom)&&c.page<=parseInt(e.chapterTo))):void 0,p=`${d("pdfplayer.page")} ${(e||t)&&c?`${c.page?c.page:""}${c.page&&c.isDoublePage&&c.page+1<=c.numPages?`/${c.page+1}`:""}`:`${o||""}`} ${(()=>{const i=(e||t)&&c?c.numPages:n&&n.pages&&n.pages.length>0?n.pages[n.pages.length-1].pageNumber:0;return i?d("pdfplayer.pageFrom")+" "+i:""})()}`,h=(0,r.useMemo)((()=>{const i=[{label:null==n?void 0:n.book.bookTitle,type:"link",urlPath:a},{label:null==u?void 0:u.chapterTitle,type:"link",urlPath:(0,vt.tW)(t?te.J.uhb:te.J.dau,{id:(null==n?void 0:n.book.npNumber)||1})+"?page="+(null==u?void 0:u.chapterFrom),hide:!(e&&t||u)},{label:p,type:"text"}].filter((e=>!0!==e.hide));return s?[...i.slice(0,s.index),s.item,...i.slice(s.index)]:i}),[e,t,u,a,p,null==n?void 0:n.book.bookTitle,null==n?void 0:n.book.npNumber,s]);return(0,i.jsx)(Zp,{breadcrumbsItems:h})};var eh=n(74758),th={};th.styleTagTransform=q(),th.setAttributes=B(),th.insert=R().bind(null,"head"),th.domAPI=M(),th.insertStyleElement=F();P()(eh.A,th);eh.A&&eh.A.locals&&eh.A.locals;function nh(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-augmented-by-isbn",e],queryFn:async()=>(await n.get(`/augmented/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.augmented.failGetProduct")})}const ih=()=>{const{t:e}=(0,k.Bd)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Q,{title:e("augmented.noProductFound")}),(0,i.jsx)(ee.z,{className:"text-textLink",to:te.J.discover,children:e("augmented.backToDiscover")})]})},rh=r.lazy((()=>n.e(517).then(n.bind(n,50517)))),ah=["audios","videos","htmls","pdfs","links","files"],oh=({structure:e,setStructure:t})=>{var n,a,o;const s=(0,Re.V)(),{t:d}=(0,k.Bd)(),u=(0,c.As)(),{isbn:p,id:h}=(0,be.g)(),{refetch:m,data:g,isLoading:f,isError:v}=nh(p,{hideToast:!0}),{mutateAsync:b}=Fn({hideToast:!0}),y=(0,l.n)(),[x,A]=(0,r.useState)([]),[T,S]=(0,r.useState)(!1),{setIsDrawerOpen:E}=(0,Pe.Us)(),I=(0,se.P)();Oe(d("metaTitle.augmented",{title:null==e?void 0:e.book.bookTitle,brand:I})),g&&((0,it.a)({eventType:"item",data:{item_id:p,item_language:g.book.language,item_ger:g.book.level,item_name:g.book.bookTitle,item_area:g.book.educationType,item_license:"Augmented",item_maxp:`MAXP-${g.book.klettBookNumber}`}}),(0,it.a)({eventType:"pageType",data:{pageType:"Medieninhalte"}})),(0,r.useEffect)((()=>
2{if(e){const t={targetId:e.book.isbn,productId:h,targetTitle:e.book.bookTitle,targetType:et.yK.AUGMENTED,interactionCode:et.w2.OPENED,alternativeISBNs:e.book.alternativeISBNs,coverPath:e.book.coverPath};u.authenticated?b({request:t}):Fr(Ur(t))}}),[e,u,b,h]),(0,r.useEffect)((()=>{const e=document.createElement("script");e.src="/mux/mux.js",e.async=!0,document.body.appendChild(e)}),[]);const C=(0,r.useCallback)((async()=>{let e=!0;if(p)if(y)await m(),e&&(t(g),await xe.db.mediaBookStructures.put({id:p,structure:g}));else{const e=await xe.db.mediaBookStructures.get({id:p});e&&t(e.structure)}return()=>{e=!1}}),[m,p,g,y]);(0,r.useEffect)((()=>{C()}),[C,u.authenticated]);const _=(0,r.useCallback)(((t,n,i)=>{const r=[];return t.forEach((t=>{r.push((0,Jp.K)(e,t,n,i))})),r}),[e]),[j,N]=(0,r.useState)(),L=(0,r.useCallback)((()=>{const t=null==e?void 0:e.pages,n=new Set,i=[];return t&&t.forEach((e=>{const t=[];ah.forEach((i=>{var r;(null===(r=e[i])||void 0===r?void 0:r.length)>0&&(t.push(..._(e[i],i.slice(0,-1),e.pageNumber)),n.add(i))})),i.push({assets:t,page:e.pageNumber,title:d("resourceList.page")+" "+e.pageNumber})})),N(Array.from(n).map((e=>({label:d(`asset.${e}`),value:e})))),i}),[_,e,d]),P=(0,r.useCallback)((()=>{const t=null==e?void 0:e.pages.filter((e=>e.pageNumber.toString()===s.get("page")));if(t&&t[0]){const e=[];return ah.forEach((n=>{var i;(null===(i=t[0][n])||void 0===i?void 0:i.length)>0&&e.push({assets:_(t[0][n],n.slice(0,-1),s.get("page")),title:t[0][n].length+" "+d(`asset.${1===t[0][n].length?n.slice(0,-1):n}`)})})),e}}),[_,s,e,d]);(0,r.useEffect)((()=>{s.get("page")?A(P()):A(L())}),[P,L,s]),(0,r.useEffect)((()=>{const e=localStorage.getItem("seenLicenceBanners");e&&-1!==(null==e?void 0:e.indexOf(p))||S(!0)}),[p]);const D=(0,r.useCallback)((()=>{const e=localStorage.getItem("seenLicenceBanners"),t=e?e.split(","):[];t.push(p),localStorage.setItem("seenLicenceBanners",t.toString()),S(!1)}),[p]),M=(0,r.useCallback)((()=>{C()}),[C]),{refetch:O}=(0,w.s)();return(0,r.useEffect)((()=>{O.current=M}),[O,M]),v||!y&&!e?(0,i.jsx)(ih,{}):(0,i.jsx)("div",{className:"p-4 lg:p-8",children:(0,i.jsxs)(ft.o,{inProgress:f,children:[s.get("page")?(0,i.jsxs)("div",{className:"flex items-center justify-between md:justify-start gap-4 w-full py-4 px-4 md:px-10 bg-surface border-b border-borderColor",children:[(0,i.jsx)(pc,{mobileIconOnly:!0,onToggle:e=>E(e)}),(0,i.jsx)(Qp,{bookPath:(0,vt.tW)(te.J.product.index,{id:h,isbn:p}),page:s.get("page"),structure:e,additionalBreadcrumb:{index:1,item:{label:d("maxProduct.freeContent"),type:"link",urlPath:(0,vt.tW)(te.J.product.augmented,{id:h,isbn:p})}}})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h2",{className:"heading-3 pt-0",children:d("maxProduct.freeContent")}),T&&(0,i.jsx)($n.w,{icon:(0,i.jsx)(Ue.I,{source:hl.A,accessibilityLabel:d("ui.icons.info")}),copy:d("augmented.licenceInfo"),onClose:D,optIn:D,optInText:d("augmented.licenceRead"),className:0===(null===(n=null==e?void 0:e.pages)||void 0===n?void 0:n.length)?"mb-4":void 0})]}),(0,i.jsx)("div",{className:"py-safe",children:(0,i.jsx)(r.Suspense,{fallback:(0,i.jsx)(i.Fragment,{}),children:e&&(0,i.jsx)(rh,{sections:x||[],structure:e,pages:null===(a=null==e?void 0:e.pages[(null==e?void 0:e.pages.length)-1])||void 0===a?void 0:a.pageNumber,availableFormats:j,noPages:0===(null===(o=null==e?void 0:e.pages)||void 0===o?void 0:o.length)})})})]})})},sh=JSON.parse('{"Arabisch":"https://de.pons.com/übersetzung/deutsch-arabisch","Bulgarisch":"https://de.pons.com/übersetzung/deutsch-bulgarisch","Chinesisch":"https://de.pons.com/übersetzung/deutsch-chinesisch","Dänisch":"https://de.pons.com/übersetzung/deutsch-dänisch","Englisch":"https://de.pons.com/übersetzung/deutsch-englisch","Finnisch":"https://de.pons.com/übersetzung/deutsch-finnisch","Französisch":"https://de.pons.com/übersetzung/deutsch-französisch","Griechisch":"https://de.pons.com/übersetzung/deutsch-griechisch","Isländisch":"https://de.pons.com/übersetzung/deutsch-isländisch","Italienisch":"https://de.pons.com/übersetzung/deutsch-italienisch","Japanisch":"https://de.pons.com/übersetzung/deutsch-japanisch","Kroatisch":"https://de.pons.com/übersetzung/deutsch-kroatisch","Latein":"https://de.pons.com/übersetzung/deutsch-latein","Niederländisch":"https://de.pons.com/übersetzung/deutsch-niederländisch","N
2orwegisch":"https://de.pons.com/übersetzung/deutsch-norwegisch","Persisch":"https://de.pons.com/übersetzung/deutsch-persisch","Polnisch":"https://de.pons.com/übersetzung/deutsch-polnisch","Portugiesisch":"https://de.pons.com/übersetzung/deutsch-portugiesisch","Rumänisch":"https://de.pons.com/übersetzung/deutsch-rumänisch","Russisch":"https://de.pons.com/übersetzung/deutsch-russisch","Schwedisch":"https://de.pons.com/übersetzung/deutsch-schwedisch","Serbisch":"https://de.pons.com/übersetzung/deutsch-serbisch","Slowakisch":"https://de.pons.com/übersetzung/deutsch-slowakisch","Slowenisch":"https://de.pons.com/übersetzung/deutsch-slowenisch","Spanisch":"https://de.pons.com/übersetzung/deutsch-spanisch","Tschechisch":"https://de.pons.com/übersetzung/deutsch-tschechisch","Türkisch":"https://de.pons.com/übersetzung/deutsch-türkisch","Ungarisch":"https://de.pons.com/übersetzung/deutsch-ungarisch","Deutsch als Fremdsprache (DaF)":"https://de.pons.com/übersetzung/deutsch-als-fremdsprache","Deutsch als Zweitsprache (DaZ)":"https://de.pons.com/übersetzung/deutsch-als-fremdsprache"}');var lh=n(77486),ch={};ch.styleTagTransform=q(),ch.setAttributes=B(),ch.insert=R().bind(null,"head"),ch.domAPI=M(),ch.insertStyleElement=F();P()(lh.A,ch);lh.A&&lh.A.locals&&lh.A.locals;const dh=({structure:e})=>{const t=(0,se.P)(),{t:n}=(0,k.Bd)();if("DELTA"===t)return;return(0,i.jsx)(i.Fragment,{children:e.book.language&&sh[e.book.language]&&(0,i.jsxs)("div",{className:"product__pons",children:[(0,i.jsxs)("p",{children:[e.book.language," ","Deutsch als Fremdsprache (DaF)"!==e.book.language||"Deutsch als Fremdsprache (DaZ)"!==e.book.language?"":"zu Deutsch"]}),(0,i.jsxs)("a",{className:"product__pons-link",target:"_blank",href:sh[e.book.language],rel:"noreferrer",children:[n("augmented.contentNavigation.ponsLink"),(0,i.jsx)(Ue.I,{source:It.A})]})]})})},uh=["audios","videos","htmls","pdfs","links"],ph=({page:e,active:t,formats:n})=>{const{t:a}=(0,k.Bd)(),o=n||uh,s=(0,r.useCallback)((()=>{if(!e)return[];const t=[];return o.forEach((n=>{var i;if(n in e&&e[n]&&(null===(i=e[n])||void 0===i?void 0:i.length)>0){const i=1===e[n].length?a(`asset.${n.slice(0,-1)}`):a(`asset.${n}`);t.push(e[n].length+" "+i)}})),t}),[a,o,e]);return(0,i.jsx)("div",{className:"product-site-asset "+(t?"product-site-asset--active":""),children:(0,i.jsxs)("div",{className:"product-site-asset__copy",children:[(0,i.jsxs)("p",{className:"product-site-asset__title",children:[a("augmented.contentNavigation.page")," ",e.pageNumber]}),(0,i.jsxs)("p",{className:"product-site-asset__assets",children:[s().map(((e,t)=>(0,i.jsxs)(r.Fragment,{children:[e,t<s().length-1&&(0,i.jsx)("span",{"aria-hidden":"true",children:" • "})]},t))),0===s().length&&(0,i.jsx)("p",{children:a("dau.navigation.noAttachments")})]})]})})};var hh=n(61146),mh={};mh.styleTagTransform=q(),mh.setAttributes=B(),mh.insert=R().bind(null,"head"),mh.domAPI=M(),mh.insertStyleElement=F();P()(hh.A,mh);hh.A&&hh.A.locals&&hh.A.locals;const gh=({structure:e,maxProdId:t})=>{const n=(0,Re.V)(),{setIsDrawerOpen:r}=(0,Pe.Us)(),{id:a}=(0,be.g)(),o=()=>{window.innerWidth<J.FD&&r(!1)};return(0,i.jsx)(ku,{headerClass:"product-navigation__header",header:(0,i.jsx)(Su,{bookTitle:e.book.bookTitle,coverPath:e.book.coverPath,bookDescription:e.book.bestandteil,bookCoverLink:(0,vt.tW)(te.J.product.index,{id:t||"",isbn:e.book.isbn})}),children:e&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(dh,{structure:e}),(0,i.jsx)("nav",{className:"page-navigation",children:(0,i.jsx)("ul",{children:null==e?void 0:e.pages.map(((t,r)=>(0,i.jsx)("li",{children:(0,i.jsx)(ee.z,{onClick:o,to:(0,vt.tW)(te.J.product.augmented,{id:a,isbn:e.book.isbn})+"?page="+t.pageNumber,children:(0,i.jsx)(ph,{active:n.get("page")===t.pageNumber.toString(),page:t})})},r)))})})]})})},fh=({data:e,toggleVisible:t,breadcrumbs:n})=>{var r,a,o,s,l,c;const{t:d}=(0,k.Bd)(),{isDrawerOpen:u,setIsDrawerOpen:p}=(0,Pe.Us)();return(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("div",{className:"augmented__header",children:(0,i.jsxs)("div",{className:"lg:col-span-2",children:[n&&(0,i.jsxs)("div",{className:"flex flex-col-reverse gap-1 md:grid md:grid-cols-5",children:[n||(0,i.jsx)("div",{}),(0,i.jsx)("div",{className:"hidden md:block"})]}),(0,i.jsx)(Q,{withBookCover:null===(r=null==e?void 0:e.book)||void 0===r?void 0:r.coverPath,data_cy:"maxProd-pageTitle",title:null===(a=null==e?void 0:e.book)||void 0===a?void 0:a.bookTitle,titleClass:"flex flex-col justify-between md:gap-6",className:"pt-8 lg:pb-0 pr-4",withActions:!0,lead:(0,i.jsxs)("div",{className:"",children:[(null===(o=null==e?void 0:e.book)||void 0===o?void 0:o.bestandteil)&&(0,i.jsx)("h3",{className:"md:font-bold",children:d("augmented.description-label")+": "+(null===(s=null==e?void 0:e.book)||void 0===s?void 0:s.bestandteil)}),(null===(l=null==e?void 0:e.book)||void 0===l?void 0:l.level)&&(0,i.jsx)("p",{children:d("augmented.level-label")+": "+(null===(c=null==e?void 0:e.book)||void 0===c?void 0:c.level)})]}),size:"sm",children:t&&!u&&(0,i.jsx)(pc,{onToggle:e=>p(e)})})]})})})},vh=()=>{var e,t;const{id:n,isbn:a}=(0,be.g)(),{t:o}=(0,k.Bd)(),s=(0,Re.V)(),l=(0,se.P)(),{setIsDrawerOpen:c}=(0,Pe.Us)(),[d,u]=(0,r.useState)(null);return Oe(o("metaTitle.augmented",{title:null==d?void 0:d.book.bookTitle,brand:l})),(0,r.useEffect)((()=>
2{if(d){const e=eu(f.cl,f.hI);c(e)}}),[d,c]),(0,i.jsxs)(i.Fragment,{children:[d&&(0,i.jsx)(gh,{structure:d,maxProdId:n}),(0,i.jsxs)(pe,{fullWidth:!0,children:[!s.get("page")&&(0,i.jsx)(fh,{toggleVisible:(null===(e=null==d?void 0:d.pages)||void 0===e?void 0:e.length)>0,data:d,breadcrumbs:d?(0,i.jsx)(Zp,{breadcrumbsItems:[{label:null===(t=null==d?void 0:d.book)||void 0===t?void 0:t.bookTitle,type:"link",urlPath:(0,vt.tW)(te.J.product.index,{id:n,isbn:a})},{label:o("maxProduct.freeContent"),type:""}]}):void 0}),(0,i.jsx)(oh,{structure:d,setStructure:u})]})]})};const bh=()=>{const{mediaid:e}=(0,be.g)(),t=(0,Re.V)(),[n,a]=(0,r.useState)(),[o,s]=(0,r.useState)(),l=(0,c.As)(),{refetch:u,data:p,isInitialLoading:h,error:m}=function(e,t,n,i){const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-bilo-media",e,t,n],queryFn:async()=>(await r.get(`bilo/open/${e}?trxid=${t}`+(n?"&bypass=true":""))).data,retry:!1,enabled:!1});return(0,S.V)(o,i||{message:a("error.bilo.getmedia")})}(e,n,o,{hideToast:!0}),g=(0,fe.m)(),{t:f}=(0,k.Bd)();return(0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"BiLo"}}),(0,r.useEffect)((()=>{if(!l.authenticated&&l.authInitialized)try{l.login({idpHint:"bildungslogin"})}catch(e){console.error("Error redirecting login to bildungslogin",e)}}),[l]),(0,r.useEffect)((()=>{const e=t.get("trxid");e&&a(e);const n=t.get("bypass");n&&s("true"===n)}),[t]),(0,r.useEffect)((()=>{e&&n&&l.authenticated&&u()}),[e,n,l.authenticated,u]),(0,r.useEffect)((()=>{p&&g(p)}),[g,p]),m?(0,i.jsxs)(pe,{fullWidth:!0,children:[(0,i.jsx)(Q,{title:f("bilo.landing.pageTitle")}),(0,i.jsxs)("div",{className:"my-4 w-full",children:[403===m.response.status&&(0,i.jsx)("p",{children:f("error.bilo.noLicense")}),404===m.response.status&&(0,i.jsx)("p",{children:f("error.bilo.notFound")}),403!==m.response.status&&404!==m.response.status&&(0,i.jsx)("p",{children:f("error.bilo.general")}),m.response.data&&(0,i.jsx)("p",{children:m.response.data.toString()})]})]}):(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:f("bilo.landing.pageTitle")}),(0,i.jsxs)("div",{className:"my-4 w-full",children:[(0,i.jsx)("p",{children:f("bilo.landing.loadingText")}),(0,i.jsx)(ft.o,{inProgress:h})]})]})},yh=()=>{const e=(0,c.As)(),t=(0,Gr.U)(),n=(0,fe.m)(),{t:a}=(0,k.Bd)(),[o,s]=r.useState(!1);(0,r.useEffect)((()=>{const i=new URLSearchParams(window.location.search),r=i.has("code")||i.has("state")||i.has("session_state")||i.has("error")||i.has("shhh");!e.authenticated&&e.authInitialized?r?s(!0):e.login({locale:t(),idpHint:"ibisacam",redirectUri:window.location.origin+te.J.ibisacam}).catch((e=>{console.error("Error ibis login",e),s(!0)})):e.authenticated&&n(te.J.welcome)}),[e.authenticated,e.authInitialized,e.login,t,n]);return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:a("ibis.pageTitle")}),o&&(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"error-message",children:a("ibis.loginFailedMessage")}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{window.location.href=window.location.origin+te.J.ibisacam},style:{marginTop:"1rem"},children:a("ibis.retryButton")})]})]})};var xh;!function(e){e.CHAPTER="chapter",e.MODULE="module",e.TASK_GROUP="task_group",e.DIDACTIC_UNIT="didactic_unit",e.TOPIC="topic"}(xh||(xh={}));const wh=({link:e,topic:t,numbering:n,isNavigation:r=!1,className:a=""})=>(0,i.jsx)("div",{className:`topic-element ${a}`,children:(0,i.jsxs)("div",{className:"topic-info",children:[!r&&(0,i.jsx)("span",{className:"topic-info__circle "+(100===cp(null==t?void 0:t.navTreeSessionsState)?"topic-info__circle--done":"topic-info__circle--empty")}),(0,i.jsxs)("div",{className:"chapter-info__title-with-badge",children:[(0,i.jsx)(ee.z,{to:e,children:(0,i.jsxs)("p",{className:"topic-info__title",children:[n?`${n}. `:"",t.displayName]})}),!r&&(0,i.jsx)(Yc,{resultPercentage:0|t.navTreeSessionsState.roundedPercent,isNavigation:r})]})]})}),kh=({percentage:e,circleId:t})=>((0,r.useEffect)((()=>{(()=>{const n=document.getElementById(t);if(n){const t=3.6*e;n.style.backgroundImage=`conic-gradient(var(--attraction) ${t}deg, var(--surface-subdued) 0 360deg)`}})()}),[e,t]),(0,i.jsx)("div",{className:"progress-circle progress-circle--progress",id:t,children:(0,i.jsxs)("span",{className:"progress-circle__white-circle",children:[e,"%"]})})),Ah=({item:e,bookSessionId:t,link:n,chapterId:r,moduleId:a,isNavigation:o=!1,openedNavIds:s,setOpenedNavIds:l,className:c=""})=>{const{t:d}=(0,k.Bd)();return(0,i.jsxs)(Eu.q7,{value:`${e.type}-${e.displayName}-${e.nodeId}`,children:[(0,i.jsx)(Eu.l9,{asChild:!0,className:"group",children:(0,i.jsxs)("div",{className:`chapter-element ${c}`,children:[(0,i.jsxs)("div",{className:"chapter-info",children:[!
2o&&(0,i.jsx)(kh,{percentage:cp(null==e?void 0:e.navTreeSessionsState),circleId:`circle-${e.type}-${e.nodeId}`}),(0,i.jsxs)("div",{className:"chapter-info__text",children:[(0,i.jsxs)("div",{className:"chapter-info__title-with-badge",children:[n?(0,i.jsx)(ee.z,{to:n,children:(0,i.jsx)("p",{className:"chapter-info__title "+(e.type===xh.DIDACTIC_UNIT?"chapter-info__title--didactic-unit":""),children:e.displayName})}):(0,i.jsx)("p",{className:"chapter-info__title "+(e.type===xh.DIDACTIC_UNIT?"chapter-info__title--didactic-unit":""),children:e.displayName}),(0,i.jsx)(Yc,{resultPercentage:0|e.navTreeSessionsState.roundedPercent,isNavigation:o})]}),(0,i.jsx)("p",{className:"chapter-info__description",children:(()=>{var t;let n=0,i=0,r=0,a=0;return null===(t=null==e?void 0:e.children)||void 0===t||t.forEach((e=>{switch(e.type){case xh.MODULE:n++;break;case xh.TASK_GROUP:i++;break;case xh.DIDACTIC_UNIT:r++;break;case xh.TOPIC:a++}})),`\n            ${n>0?`${n} ${d("eksdi.overview.chapterProgress.module."+(n>1?"plural":"singular"))}`:""}\n            ${n>0&&(i>0||r>0||a>0)?" • ":""}\n            ${i>0?`${i} ${d("eksdi.overview.chapterProgress.taskGroup."+(i>1?"plural":"singular"))}`:""}\n            ${i>0&&(r>0||a>0)?" • ":""}\n            ${r>0?`${r} ${d("eksdi.overview.chapterProgress.didacticUnit."+(r>1?"plural":"singular"))}`:""}\n            ${r>0&&a>0?" • ":""}\n            ${a>0?`${a} ${d("eksdi.overview.chapterProgress.topic."+(a>1?"plural":"singular"))}`:""}\n        `})()})]})]}),e.children&&e.children.length>0&&(0,i.jsx)(Ue.I,{className:"chapter-info__accordion-icon",source:Xi})]})}),(0,i.jsx)(Eu.UC,{children:(0,i.jsx)(Th,{list:null==e?void 0:e.children,bookSessionId:t,insertion:!0,chapterId:r,moduleId:a,isNavigation:o,openedNavIds:s,setOpenedNavIds:l,parentIsDidacticUnit:e.type===xh.DIDACTIC_UNIT})})]})},Th=({list:e,bookSessionId:t,insertion:n=!1,chapterId:r,moduleId:a,isNavigation:o=!1,openedNavIds:s,setOpenedNavIds:l,parentIsDidacticUnit:c})=>{const d=(0,Re.V)(),{pathname:p}=(0,be.zy)(),{mapId:h,taskGroupId:m}=(0,be.g)(),g=e=>{var t;if(d.get("xmlId")===e.xmlId)return p+"?"+d.toString();const n=e.type===xh.DIDACTIC_UNIT?null===(t=e.children[0])||void 0===t?void 0:t.xmlId:e.xmlId;return"/"+(0,vt.tW)(te.J.eksdi.index,{mapId:h})+"?"+(0,u.PI)({xmlId:n})},f=(e,t)=>({chapter:void 0,module:void 0,task_group:void 0,topic:g(t),didactic_unit:g(t)}[e]);return(0,i.jsx)(Eu.bL,{type:"multiple",value:s,onValueChange:e=>{l&&l(e)},children:null==e?void 0:e.map(((e,u)=>{return e.type===xh.CHAPTER||e.type===xh.MODULE||e.type===xh.TASK_GROUP||e.type===xh.DIDACTIC_UNIT?(0,i.jsx)(Ah,{bookSessionId:t,item:e,link:f(e.type,e),chapterId:e.type===xh.CHAPTER?e.nodeId:r,moduleId:e.type===xh.MODULE?e.nodeId:a,isNavigation:o,className:`${n?""+(p=e.type,p===xh.DIDACTIC_UNIT?"topic-element--insertion"+(o?"-small":""):`${p}-element ${o?`${p}-element--small`:""}`):""} ${e.type!==xh.TASK_GROUP||e.nodeId!==m||d.get("xmlId")?"":"topic-element--active"}`,openedNavIds:s,setOpenedNavIds:l},u):e.type===xh.TOPIC?(0,i.jsx)(wh,{topic:e,numbering:u+1,link:f(e.type,e),isNavigation:o,className:`${n?`topic-element--${c?"didactic-":""}insertion${o?"-small":""}`:""} ${e.xmlId===d.get("xmlId")?"topic-element--active":""}`},u):void 0;var p}))})},Sh=({eksdiMap:e,bookSessionId:t,resetButton:n})=>{const{t:a}=(0,k.Bd)(),[o,s]=(0,r.useState)({}),[l,c]=(0,r.useState)(new Map),[d,u]=(0,r.useState)(null);(0,r.useEffect)((()=>{const t=(e=>{const t=new Map,n=e=>{null==e||e.forEach((e=>{"topic"===e.type&&e.keywords&&e.keywords.forEach((n=>{"Kompetenz"===n.parent&&(t.has(n.value)||t.set(n.value,[]),t.get(n.value).push(e))})),e.children&&n(e.children)}))};return n(e),t})(null==e?void 0:e.navroot);c(t),u(Array.from(t.keys()).length>0?"competence":"chapter");const n=(e=>{const t={};return e.forEach(((e,n)=>{const i=e.length,r=e.filter((e=>{const t=e.navTreeSessionsState;return t&&(t.completed>0||0===t.completed&&t.attempted>0)})).length;t[n]=r/i*100})),t})(t);s(n)}),[null==e?void 0:e.navroot]);const p=(()=>{const e=[];return Array.from(l.keys()).length>0&&e.push({id:"competence",text:a("eksdi.overview.chapterProgress.competencies"),onClick:()=>{u("competence")}}),e.push({id:"chapter",text:a("eksdi.overview.chapterProgress.chapters"),onClick:()=>{u("chapter")}}),e})();return(0,i.jsxs)("div",{className:"chapter-progress",children:[(0,i.jsx)("h2",{className:"heading-4",children:a("eksdi.overview.chapterProgress.title")}),(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"chapter-progress__tabs",children:[(0,i.jsx)(Gu,{tabs:p,currentId:d}),(0,i.jsx)("div",{children:(0,i.jsx)(vi.u,{elements:[n]})})]})}),(0,i.jsx)("div",{className:"chapter-progress__box",id:`panel-${d}`,"aria-labelledby":`tab-${d}
2`,role:"tabpanel",children:"chapter"===d?(0,i.jsx)(i.Fragment,{children:(null==e?void 0:e.navroot)&&(0,i.jsx)(Th,{list:e.navroot,bookSessionId:t})}):(0,i.jsx)(i.Fragment,{children:Array.from(l.keys()).length>0&&Array.from(l.keys()).map((e=>{var t;return(0,i.jsxs)("div",{className:"chapter-element flex gap-4 items-center justify-start mb-8",children:[(0,i.jsx)("div",{children:(0,i.jsx)(kh,{percentage:null===(t=o[e])||void 0===t?void 0:t.toFixed(),circleId:`circle-${e}`})}),(0,i.jsx)("div",{className:"chapter-info__title",children:a(`eksdi.overview.chapterProgress.${e.toLowerCase()}`)})]},e)}))})})]})},Eh=(e,t,n,i)=>{if(e){const r=t?e.find((e=>e.nodeId===t)):void 0,a=n?(r?r.children:e).find((e=>e.nodeId===n)):void 0;return{chapter:r,module:a,taskGroup:i?(a?a.children:r?r.children:e).find((e=>e.nodeId===i)):void 0}}return{chapter:void 0,module:void 0,taskGroup:void 0}};var Ih=n(63378),Ch={};Ch.styleTagTransform=q(),Ch.setAttributes=B(),Ch.insert=R().bind(null,"head"),Ch.domAPI=M(),Ch.insertStyleElement=F();P()(Ih.A,Ch);Ih.A&&Ih.A.locals&&Ih.A.locals;const _h=({structure:e})=>{const{t}=(0,k.Bd)(),n=(0,J.Ay)(),{setIsDrawerOpen:r}=(0,Pe.Us)();return(0,i.jsxs)("div",{className:"eksdi-navigation__info",children:[(0,i.jsxs)("div",{className:"eksdi-navigation__info-top",children:[(0,i.jsx)("span",{children:t("eksdi.overview.completedExercises")}),(0,i.jsx)(ee.z,Object.assign({className:"eksdi-navigation__overview-link"},(0,Qe.v)(e.npNumber,et.OH.EKSDI),{onClick:()=>{n&&r(!1)},children:t("eksdi.overview.linkToOverview")}))]}),(0,i.jsxs)("div",{className:"eksdi-navigation__info-progress eksdi-progress",children:[(0,i.jsxs)("span",{children:[Math.round(100/e.total*(e.attempted+e.completed)),"%"]}),(0,i.jsx)("progress",{value:e.attempted+e.completed|0,max:0|e.total})]})]})},jh=({structure:e,maxProd:t,bookSessionId:n})=>{var a;const o=(0,Re.V)(),{chapterId:s,moduleId:l,taskGroupId:c}=(0,be.g)(),{chapter:d,module:u,taskGroup:p}=Eh(null==e?void 0:e.navroot,s,l,c),[h,m]=(0,r.useState)([]),g=null===(a=null==t?void 0:t.editions)||void 0===a?void 0:a.find((e=>e.type===nr.SE.AUGMENTED));(0,r.useEffect)((()=>{var e,t;const n=[];d&&n.push(`${d.type}-${d.displayName}-${d.nodeId}`),u&&n.push(`${u.type}-${u.displayName}-${u.nodeId}`),p&&n.push(`${p.type}-${p.displayName}-${p.nodeId}`);const i=o.get("xmlId"),r=p||(u||d);if(i&&r&&(null===(e=null==r?void 0:r.children)||void 0===e?void 0:e.length)>0)for(let e=0;e<r.children.length;e++){const a=r.children[e];if(a.type===xh.DIDACTIC_UNIT){if(null===(t=null==a?void 0:a.children)||void 0===t?void 0:t.find((e=>(null==e?void 0:e.xmlId)===i))){n.push(`${a.type}-${a.displayName}-${a.nodeId}`);break}}}m(n)}),[d,u,p,o]);return(0,i.jsx)(i.Fragment,{children:e&&(0,i.jsx)(Au,{header:(0,i.jsxs)("div",{className:"flex flex-col gap-2 w-full",children:[(0,i.jsx)(Su,{bookTitle:e.title,coverPath:e.cover,bookDescription:e.bestandteil,maxProdBookDescription:t?null==t?void 0:t.bestandteil:null,editionType:et.OH.EKSDI,bookCoverLink:(0,vt.tW)(te.J.product.index,{id:(null==t?void 0:t.id)?null==t?void 0:t.id:"",isbn:(null==g?void 0:g.isbn)?null==g?void 0:g.isbn:""})}),(0,i.jsx)(_h,{structure:e})]}),renderItems:()=>(0,i.jsx)(Th,{list:e.navroot,bookSessionId:n,isNavigation:!0,openedNavIds:h,setOpenedNavIds:m})})})};function Nh({id:e,isEnabled:t=!1}){const n=(0,d.q)();return(0,T.I)({queryKey:["get-eksdi-map",e],queryFn:async()=>(await n.get(`/eksdi/sessionedmap/${e}`)).data,retry:!1,enabled:t})}const Lh={id:"http://adlnet.gov/expapi/verbs/initialized",display:{"en-GB":"initialized"}},Ph={id:"http://adlnet.gov/expapi/verbs/completed",display:{"en-GB":"completed"}},Dh={id:"https://w3id.org/xapi/adl/verbs/waived",display:{"en-GB":"waived"}},Mh={id:"http://www.allango.net/expapi/verbs/reset",display:{"en-GB":"reset"}},Oh={id:"http://activitystrea.ms/schema/1.0/open",display:{"en-GB":"opened"}},Rh={id:"http://id.tincanapi.com/verb/paused",display:{"en-GB":"paused"}},zh={id:"http://id.tincanapi.com/verb/viewed",display:{"en-GB":"viewed"}},Bh=e=>({objectType:"Agent",account:{name:e,homePage:window.location.origin}}),Uh=e=>({objectType:"Activity",id:window.location.origin+"/eksdi/"+e,definition:{type:"http://adlnet.gov/expapi/activities/interaction"}}),Fh=e=>({contextActivities:{parent:[{objectType:"Activity",id:window.location.origin+"/eksdi/"+e,definition:{type:"http://adlnet.gov/expapi/activities/interaction"}}]}}),Vh=e=>({objectType:"Activity",id:window.location.origin+"/eksdi/"+e,definition:{type:"http://adlnet.gov/expapi/activities/assessment"}}),qh=e=>({objectType:"Activity",id:window.location.origin+"/"+e,definition:{type:"http://adlnet.gov/expapi/activities/media"}});var Hh=n(27830),Gh=n.n(Hh);const Kh=r.createContext(null),$h=()=>(0,r.useContext)(Kh),Wh=({children:e})=>{const{token:t}=(0,c.As)(),{backendServiceBaseUrl:n}=(0,o.U)(),[a,s]=(0,r.useState)(null);(0,r.useEffect)((()=>{const e=new(Gh())({endpoint:n+"/xAPI",auth:`Bearer ${t}`});s(e)}),[t,n]);return(0,i.jsx)(Kh.Provider,{value:{sendOne:e=>
2{a&&e&&a.sendStatement({statement:e})},sendMany:e=>{a&&e&&a.sendStatements({statements:e})}},children:e})},Xh=({eksdiMap:e})=>{const{t}=(0,k.Bd)(),n=[{icon:(0,i.jsx)(Ue.I,{className:"learn-progress-element__icon",source:Qs.A}),text:t("eksdi.overview.learningProgress.resultAverage"),progress:(0|e.roundedPercent)+"%"}];return(0,i.jsxs)("div",{className:"learn-progress",children:[(0,i.jsx)("h2",{className:"learn-progress__title",children:t("eksdi.overview.learningProgress.title")}),(0,i.jsxs)("div",{className:"learn-progress__content",children:[(0,i.jsx)("div",{className:"learn-progress__content-elements",children:n.map(((e,t)=>(0,i.jsx)(jp,{element:e},"progress-element-"+t)))}),(0,i.jsxs)("div",{className:"w-full eksdi-progress",children:[(0,i.jsx)(jp,{element:{text:t("eksdi.overview.learningProgress.completedLessons"),progress:t("eksdi.overview.learningProgress.completedLessonsProgress",{doneNumber:e.attempted+e.completed|0,totalNumber:0|e.total})}}),(0,i.jsx)("progress",{value:e.attempted+e.completed|0,max:0|e.total})]})]})]})};const Yh=({eksdiMap:e})=>{const{t}=(0,k.Bd)(),{data:n}=function({mapId:e,isEnabled:t},n){const i=(0,d.q)(),r=(0,T.I)({queryKey:["get-eksdi-last-lession-interaction",e],queryFn:async()=>(await i.get(`/interaction/last/eksdi/${e}`)).data,retry:!1,enabled:t});return(0,S.V)(r,n)}({mapId:null==e?void 0:e.npNumber,isEnabled:!(!e||!e.eksdiId)},{hideToast:!0}),[a,o]=(0,r.useState)(""),[s,l]=(0,r.useState)(""),[c,p]=(0,r.useState)("");(0,r.useEffect)((()=>{var t;if(n){const i=n.targetDetail.split("/");let r=i[1],a=e.navroot.find((e=>e.nodeId===r)),s=a.displayName;for(let e=2;e<i.length-1;e++)if(r=i[e],(null===(t=a.children)||void 0===t?void 0:t.length)>0){const e=a.children.find((e=>e.nodeId===r));if(!e)break;a=e,s+=", "+a.displayName}let c=null==a?void 0:a.children.find((e=>e.xmlId===i[i.length-1]));if(!c){const e=null==a?void 0:a.children.filter((e=>e.type===xh.DIDACTIC_UNIT));if(e&&e.length>0)for(let t=0;t<e.length;t++){if(c=e[t].children.find((e=>e.xmlId===i[i.length-1])),c)break}}o(s),l(null==c?void 0:c.displayName),p(c?c.xmlId:"")}}),[n]);const h=(0,r.useCallback)((()=>c?"/"+(0,vt.tW)(te.J.eksdi.index,{mapId:e.npNumber})+"?"+(0,u.PI)({xmlId:c}):""),[c]);return c?(0,i.jsxs)("div",{className:"continue-lesson",children:[(0,i.jsx)("h2",{className:"continue-lesson__title",children:t("eksdi.overview.continueLesson.continue")}),(0,i.jsx)("p",{children:(0,i.jsx)("span",{children:a})}),(0,i.jsx)("p",{className:"continue-lesson__info",children:s}),(0,i.jsx)("div",{className:"continue-lesson__button",children:(0,i.jsxs)(ee.z,{"aria-label":t("eksdi.overview.continueLesson.continue"),className:"button button--icon  button--primary button--center",to:h(),children:[t("eksdi.overview.continueLesson.continue")," ",(0,i.jsx)(Ue.I,{source:It.A,accessibilityLabel:t("eksdi.overview.continueLesson.continue")})]})})]}):(0,i.jsxs)("div",{className:"continue-lesson",children:[(0,i.jsx)("h2",{className:"continue-lesson__title",children:t("eksdi.overview.continueLesson.continue")}),(0,i.jsx)("p",{children:(0,i.jsx)("span",{children:t("eksdi.overview.continueLesson.nothingToContinue")})})]})},Jh=({eksdiMap:e,bookSessionId:t,resetButton:n})=>(0,i.jsxs)("div",{className:"eksdi-overview",children:[(0,i.jsxs)("div",{className:"flex gap-6 flex-col md:flex-row",children:[(0,i.jsx)(Xh,{eksdiMap:e}),(0,i.jsx)(Yh,{eksdiMap:e})]}),(0,i.jsx)(Sh,{eksdiMap:e,bookSessionId:t,resetButton:n})]});var Zh=n(63020),Qh={};Qh.styleTagTransform=q(),Qh.setAttributes=B(),Qh.insert=R().bind(null,"head"),Qh.domAPI=M(),Qh.insertStyleElement=F();P()(Zh.A,Qh);Zh.A&&Zh.A.locals&&Zh.A.locals;const em=({navigateLesson:e,lessonIndex:t,taskGroupExerciseCount:n,showToggle:r=!1})=>{const{t:a}=(0,k.Bd)(),{setIsDrawerOpen:o}=(0,Pe.Us)();return(0,i.jsxs)("div",{className:"lesson-navigation",children:[r&&(0,i.jsx)(pc,{mobileIconOnly:!0,onToggle:e=>o(e)}),(0,i.jsxs)("div",{className:"lesson-pagination",children:[(0,i.jsx)(N.$,{ariaLabel:a("eksdi.navigation.previous"),title:a("eksdi.navigation.previous"),variant:"plain","data-testid":"arrow-left",onClick:()=>e("back"),disabled:0===t,icon:(0,i.jsx)(Ue.I,{source:Ht.A})}),(0,i.jsx)("span",{children:a("eksdi.navigation.exercise",{exerciseIndex:t+1,total:n}
2)}),(0,i.jsx)(N.$,{ariaLabel:a("eksdi.navigation.next"),title:a("eksdi.navigation.next"),variant:"plain","data-testid":"arrow-right",onClick:()=>e("front"),disabled:t+1===n,icon:(0,i.jsx)(Ue.I,{source:It.A})})]})]})},tm=({navigateLesson:e,lessonIndex:t,taskGroupState:n,taskGroupExerciseCount:r,dauTabs:a})=>{const{t:o}=(0,k.Bd)(),s=(0,J.Ay)();return(0,i.jsxs)("div",{className:"lesson-bar",children:[(0,i.jsx)(em,{navigateLesson:e,lessonIndex:t,taskGroupExerciseCount:r,showToggle:s}),a,(0,i.jsxs)("div",{className:"lesson-info",children:[(0,i.jsx)("span",{className:"lesson-info__progress-text",children:o("eksdi.progress.progress")}),(0,i.jsx)("div",{className:"lesson-info__progress eksdi-progress",children:(0,i.jsx)("progress",{value:n.attempted+n.completed|0,max:0|n.total})})]})]})},nm=({index:e,itemId:t,moveItem:n,entriesLength:r})=>(0,i.jsxs)("div",{className:'\r\n      cursor-default border border-borderColor rounded-[0px_0px_4px_0px] border-l-0 relative self-stretch \r\n      after:w-full after:absolute after:content-[""] after:bottom-[50%] after:left-0 after:border-b after:border-borderColor',children:[(0,i.jsx)(N.$,{className:"basis-1/2 px-2 py-[3px] rounded-none h-[50%] block",icon:(0,i.jsx)(Ue.I,{className:"flex w-5 h-5",source:Zi}),disabled:0===e,onClick:()=>n("up",t)}),(0,i.jsx)(N.$,{className:"basis-1/2 px-2 py-[3px] rounded-[0px_0px_4px_0px] h-[50%] block",icon:(0,i.jsx)(Ue.I,{className:"flex w-5 h-5",source:Xi}),onClick:()=>n("down",t),disabled:e===r-1})]});var im,rm=n(12432);function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},am.apply(null,arguments)}const om=e=>r.createElement("svg",am({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),im||(im=r.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0"})));var sm;function lm(){return lm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},lm.apply(null,arguments)}const cm=e=>r.createElement("svg",lm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),sm||(sm=r.createElement("path",{d:"m12.707-.02 11.314 11.313a1 1 0 0 1 0 1.414L12.707 24.021a1 1 0 0 1-1.414 0L-.021 12.707
2a1 1 0 0 1 0-1.414L11.293-.021a1 1 0 0 1 1.414 0M12 2.1 2.1 12l9.9 9.9 9.9-9.9z"})));var dm;function um(){return um=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},um.apply(null,arguments)}const pm=e=>r.createElement("svg",um({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),dm||(dm=r.createElement("path",{d:"M17.5 2.5 23 12l-5.5 9.5h-11L1 12l5.5-9.5zm-1.153 2H7.653L3.311 12l4.342 7.5h8.694l4.342-7.5z"})));var hm;function mm(){return mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},mm.apply(null,arguments)}const gm=e=>r.createElement("svg",mm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),hm||(hm=r.createElement("path",{d:"m12.866 3 9.526 16.5a1 1 0 0 1-.866 1.5H2.474a1 1 0 0 1-.866-1.5L11.134 3a1 1 0 0 1 1.732 0m-8.66 16h15.588L12 5.5z"})));var fm;function vm(){return vm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vm.apply(null,arguments)}const bm=e=>r.createElement("svg",vm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),fm||(fm=r.createElement("path",{d:"m12.707-.02 11.314 11.313a1 1 0 0 1 0 1.414L12.707 24.021a1 1 0 0 1-1.414 0L-.021 12.707
2a1 1 0 0 1 0-1.414L11.293-.021a1 1 0 0 1 1.414 0"})));var ym;function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xm.apply(null,arguments)}const wm=e=>r.createElement("svg",xm({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},e),ym||(ym=r.createElement("path",{d:"M17.5 2.5 23 12l-5.5 9.5h-11L1 12l5.5-9.5z"})));var km=n(40954),Am={};Am.styleTagTransform=q(),Am.setAttributes=B(),Am.insert=R().bind(null,"head"),Am.domAPI=M(),Am.insertStyleElement=F();P()(km.A,Am);km.A&&km.A.locals&&km.A.locals;const Tm=({partner:e,isInteractive:t,className:n=""})=>{const r=e=>{const t={"gesprächspartner 1":om,"gesprächspartner 2":cm,"gesprächspartner 3":pm,"gesprächspartner 4":gm,"gesprächspartner 5":bm,"gesprächspartner 6":wm};return t[e]?t[e]:void 0};if(r(e))return(0,i.jsx)("span",{className:`${n} conversation-icon ${t?"conversation-icon--interactive":""}`,children:(0,i.jsx)(Ue.I,{source:r(e),accessibilityLabel:(0,rm.t)("ui.icons.conversation"),className:"m-0"})})};var Sm=n(31539),Em={};Em.styleTagTransform=q(),Em.setAttributes=B(),Em.insert=R().bind(null,"head"),Em.domAPI=M(),Em.insertStyleElement=F();P()(Sm.A,Em);Sm.A&&Sm.A.locals&&Sm.A.locals;var Im=n(64534),Cm={};Cm.styleTagTransform=q(),Cm.setAttributes=B(),Cm.insert=R().bind(null,"head"),Cm.domAPI=M(),Cm.insertStyleElement=F();P()(Im.A,Cm);Im.A&&Im.A.locals&&Im.A.locals;var _m,jm,Nm=n(78834);!function(e){e.SHORT="short_gap",e.LONG="long_gap",e.SINGLE_CHAR="single_character_gap"}(_m||(_m={})),function(e){e.FULL="full",e.PART="part"}
2(jm||(jm={}));const Lm=e=>{var t;return null===(t=null==e?void 0:e.entries)||void 0===t?void 0:t.reduce(((e,t)=>(!0===t.isAlternative||(e[t.entryIndex]=t),e)),{})},Pm=(e,t)=>t in e;var Dm;function Mm(){return Mm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mm.apply(null,arguments)}const Om=e=>r.createElement("svg",Mm({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Dm||(Dm=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M12 3C6.608 3 2.12 6.88 1.18 12c.942 5.12 5.428 9 10.82 9s9.879-3.88 10.819-9c-.941-5.12-5.427-9-10.82-9m3.535 12.536a5 5 0 1 1-7.071-7.072 5 5 0 0 1 7.071 7.072M9.878 14.12a3 3 0 0 0 4.728-3.607 1.5 1.5 0 0 1-2.52-1.512Q12.04 9 11.999 9a3 3 0 0 0-2.122 5.121",clipRule:"evenodd"}))),Rm=({SolutionTextComponent:e,alternativeSolutions:t})=>{const{t:n}=(0,k.Bd)(),[a,o]=(0,r.useState)(!1);return(0,i.jsxs)("div",{className:"solution flex-col",children:[(0,i.jsxs)("div",{className:"solution gap-1 mx-1",children:[e,(0,i.jsx)(N.$,{onClick:()=>o(!a),size:"sm",ariaLabel:n(a?"eksdi.alternativeSolution.hide":"eksdi.alternativeSolution.show"),title:n(a?"eksdi.alternativeSolution.hide":"eksdi.alternativeSolution.show"),icon:(0,i.jsx)(Ue.I,{source:a?Wn.A:Om}),"aria-expanded":a,"aria-controls":"alternative-solutions-panel"})]}),a&&(0,i.jsxs)("div",{id:"alternative-solutions-panel",role:"region","aria-label":n("eksdi.alternativeSolution.label"),className:"alternative-solution",children:[(0,i.jsx)("h5",{className:"text-body2 font-bold",children:n("eksdi.alternativeSolution.label")}),(0,i.jsx)("ul",{children:t.map((e=>(0,i.jsx)("li",{children:e},e)))})]})]})};var zm=n(36023),Bm={};Bm.styleTagTransform=q(),Bm.setAttributes=B(),Bm.insert=R().bind(null,"head"),Bm.domAPI=M(),Bm.insertStyleElement=F();P()(zm.A,Bm);zm.A&&zm.A.locals&&zm.A.locals;const Um=({solutionText:e,alternativeSolutions:t=[],className:n=""})=>
2{if(e&&(null==e?void 0:e.length))return t.length>0?(0,i.jsx)(Rm,{SolutionTextComponent:(0,i.jsx)("span",{className:`solution__text mx-0 ${n}`,children:e}),alternativeSolutions:t}):(0,i.jsx)("div",{className:"solution",children:(0,i.jsx)("span",{className:`solution__text ${n}`,children:e})})};var Fm=n(93427),Vm={};Vm.styleTagTransform=q(),Vm.setAttributes=B(),Vm.insert=R().bind(null,"head"),Vm.domAPI=M(),Vm.insertStyleElement=F();P()(Fm.A,Vm);Fm.A&&Fm.A.locals&&Fm.A.locals;var qm=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Hm=e=>{var{children:t,handleSelectChange:n,selectedValue:r}=e,a=qm(e,["children","handleSelectChange","selectedValue"]);const{t:o}=(0,k.Bd)();return(0,i.jsxs)(Js.bL,Object.assign({},a,{onValueChange:n,defaultValue:r,children:[(0,i.jsxs)(Js.l9,{className:"select-entry__trigger "+(r?"":"select-entry__trigger--empty"),children:[(0,i.jsx)(Js.WT,{placeholder:o("eksdi.inlinechoice.placeholder")}),(0,i.jsx)(Js.In,{className:"select-entry__trigger-icon",children:(0,i.jsx)(Xi,{className:"select-entry__trigger-icon--chevron"})})]}),(0,i.jsx)(Js.UC,{position:"popper",children:(0,i.jsx)(Js.LM,{className:"select-entry__viewport min-w-[150px]",children:t})})]}))},Gm=({children:e,value:t})=>(0,i.jsx)(Js.q7,{value:t,className:"select-entry__item",children:(0,i.jsx)(Js.p4,{children:e})}),Km=({entryIndex:e,lineIndex:t,setEntries:n,options:r,optionId:a})=>(0,i.jsx)("div",{className:"inline-choice-task-gap",children:(0,i.jsx)(Hm,{handleSelectChange:i=>{n((n=>JSON.parse(JSON.stringify(n)).map((n=>n.lineIndex===t?(n.entries.map((t=>{if(t.entryIndex===e){const e=t.options.find((e=>e.id===i));t.optionId=i,t.entry=e.value}return t})),n):n))))},selectedValue:a,children:r.map((e=>(0,i.jsx)(Gm,{value:e.id,children:e.value},e.id)))})});var $m,Wm;function Xm(){return Xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Xm.apply(null,arguments)}const Ym=e=>r.createElement("svg",Xm({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),$m||($m=r.createElement("rect",{width:20,height:20,fill:"#02743D",rx:10})),Wm||(Wm=r.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"m8.939 13.888 6.364-6.364-1.414-1.415-4.95 4.95L6.11 8.231 4.696 9.645l2.829 2.828z",clipRule:"evenodd"})));var Jm,Zm;function Qm(){return Qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Qm.apply(null,arguments)}const eg=e=>r.createElement("svg",Qm({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),Jm||(Jm=r.createElement("rect",{width:20,height:20,fill:"#D72C0D",rx:10})),Zm||(Zm=r.createElement("path",{fill:"#fff",fillRule:"evenodd",d:"M10 8.587 7.17 5.757 5.757 7.173l2.829 2.829-2.829 2.829 1.414 1.414L10 11.415l2.828 2.828 1.414-1.414L11.414 10l2.828-2.828-1.414-1.415z",clipRule:"evenodd"})));var tg=n(15912),ng={};ng.styleTagTransform=q(),ng.setAttributes=B(),ng.insert=R().bind(null,"head"),ng.domAPI=M(),ng.insertStyleElement=F();P()(tg.A,ng);tg.A&&tg.A.locals&&tg.A.locals;const ig=({customLabelClass:e,emptyLabelCustomPadding:t="",entryIndex:n,entry:r,isCorrect:a,customClassName:o,children:s,withoutWrapper:l=!1})=>{const{t:c}=(0,k.Bd)(),d=a?Ym:eg,u=c(a?"ui.icons.correctAnswer":"ui.icons.wrongAnswer"),p=(0,i.jsx)(Ue.I,{className:"answerBox__icon "+(r||t?"":"answerBox__icon--noAnswer"),source:d,fill:"transparent",accessibilityLabel:u}),h=`answerBox__label ${e} ${r||t?"":"answerBox__label--noAnswer"}`;if(l)return(0,i.jsxs)(i.Fragment,{children:[s||(0,i.jsx)("span",{className:h+" "+(r?"":t),children:r}),(0,i.jsx)("span",{children:p})]});const m=`${o} answerBox ${a?"answerBox--correct":"answerBox--incorrect"}`;return(0,i.jsxs)("div",{className:m,children:[s||(0,i.jsx)("span",{className:h,children:r}),(0,i.jsx)("span",{children:p})]},n)},rg=({lineIndex:e,lessonState:t,item:n,setEntries:r})=>t===yy.INITIAL||t===yy.MODIFIED?n.exampleSolutionType?(0,i.jsx)(Um,{solutionText:null==n?void 0:n.entry}):(0,i.jsx)("span",{className:"inline-choice__gap",children:(0,i.jsx)(Km,{entryIndex:n.entryIndex,lineIndex:e,setEntries:r,options:n.options,optionId:n.optionId})}):t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?(0,i.jsx)(Um,{solutionText:n.entry}):t===yy.SUBMITTED?n.exampleSolutionType?(0,i.jsx)(Um,{solutionText:null==n?void 0:n.entry}):(0,i.jsx)(ig,{entryIndex:e,entry:n.entry,isCorrect:n.correct,customClassName:"inline-choice-
2answer-box px-3"}):void 0;var ag=n(62318),og={};og.styleTagTransform=q(),og.setAttributes=B(),og.insert=R().bind(null,"head"),og.domAPI=M(),og.insertStyleElement=F();P()(ag.A,og);ag.A&&ag.A.locals&&ag.A.locals;const sg=({value:e,onInputChange:t,id:n,className:a="",placeholder:o,exampleSolutionText:s,gapType:l,inputLength:c})=>{const[d,u]=(0,r.useState)(e),{isDrawerOpen:p}=(0,Pe.Us)();(0,r.useEffect)((()=>{if(c){const e=document.getElementById(`eksdi-input-${n}-${c}`);e&&(e.style.width=c+1+"rem",l===_m.SHORT&&(e.style.minWidth=c+1+"rem"))}}),[n,c]),(0,r.useEffect)((()=>{if(!c&&(l===_m.LONG||l===_m.SHORT)){const e=document.getElementById(`eksdi-input-${n}-${c}`);e.style.maxWidth=e.clientWidth+384*(p?-1:0)+"px",setTimeout((()=>{const t=document.querySelector(".lesson-wrapper__exercise"),n=null==t?void 0:t.getBoundingClientRect().width;e.style.maxWidth=n-32+"px"}),300)}}),[l,n,c,p]),(0,r.useEffect)((()=>{if(!c&&(l===_m.LONG||l===_m.SHORT)){const e=document.getElementById(`eksdi-input-text-${n}-${c}--hidden`);document.getElementById(`eksdi-input-${n}-${c}`).style.width=(null==e?void 0:e.clientWidth)+32+"px"}}),[l,n,c,d]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("input",{id:`eksdi-input-${n}-${c}`,className:`eksdi-input eksdi-input--text ${l?`eksdi-input--${l}`:""} ${a}`,type:"text",value:d,onChange:e=>{const i=e.target.value;u(i),t(i,n,s)},placeholder:o,maxLength:c,autoComplete:"off"}),!c&&(l===_m.LONG||l===_m.SHORT)&&(0,i.jsx)("span",{id:`eksdi-input-text-${n}-${c}--hidden`,className:"eksdi-input-text--hidden","aria-hidden":"true",children:d})]})};var lg=n(51157),cg={};cg.styleTagTransform=q(),cg.setAttributes=B(),cg.insert=R().bind(null,"head"),cg.domAPI=M(),cg.insertStyleElement=F();P()(lg.A,cg);lg.A&&lg.A.locals&&lg.A.locals;const dg=({lessonState:e,item:t,originalItem:n,onInputChange:a,alternativeSolutions:o})=>{var s;return e===yy.INITIAL||e===yy.MODIFIED?(0,i.jsxs)(r.Fragment,{children:[n&&(0,i.jsx)(Um,{solutionText:null==n?void 0:n.entry}),t.exampleSolutionType!==jm.FULL&&(0,i.jsx)(sg,{value:(null==t?void 0:t.entry)?null===(s=null==t?void 0:t.entry)||void 0===s?void 0:s.replace(null==n?void 0:n.entry,""):"",onInputChange:a,id:t.entryIndex,exampleSolutionText:n?null==n?void 0:n.entry:"",placeholder:(null==n?void 0:n.exampleSolutionType)===jm.PART?"...":void 0,gapType:t.gapType,inputLength:t.inputLength})]},t.entryIndex):e===yy.SOLUTION||e===yy.TEACHER_SOLUTION?(0,i.jsx)(Um,{solutionText:null==t?void 0:t.entry,alternativeSolutions:null==o?void 0:o.map((e=>e.entry))}):e===yy.SUBMITTED?t.exampleSolutionType===jm.FULL?(0,i.jsx)(Um,{solutionText:t.entry},t.entryIndex):(0,i.jsx)(ig,{customClassName:""+(t.gapType!==_m.SINGLE_CHAR?"px-3":"singleCharacter px-1"),entryIndex:t.entryIndex,entry:t.entry,isCorrect:t.correct},t.entryIndex):void 0};var ug=n(43942),pg={};pg.styleTagTransform=q(),pg.setAttributes=B(),pg.insert=R().bind(null,"head"),pg.domAPI=M(),pg.insertStyleElement=F();P()(ug.A,pg);ug.A&&ug.A.locals&&ug.A.locals;const hg=({children:e,id:t,optionId:n="",entry:r="",className:a="",as:o,usesId:s=""})=>{const{setNodeRef:l,isOver:c}=(d={id:t,data:{entry:r,gapId:t,optionId:n,usesId:s}},(0,ni.zM)(d));var d;const u=o||"span";return(0,i.jsx)(u,{ref:l,className:`droppable ${a} ${c?"[&>*:not(:first-child)]:bg-focusOutline [&>*:not(:first-child):after]:border-b-focusOutline md:[&>*:not(:first-child):after]:border-b-current md:[&>*:not(:first-child):after]:border-r-focusOutline":""}`,children:e})};const mg=({children:e,optionId:t,entry:n,gapId:r="",id:a,usesId:o="",className:s=""})=>{const{attributes:l,listeners:c,setNodeRef:d,isDragging:u,transform:p}=(h={id:a,data:{entry:n,gapId:r,optionId:t,usesId:o}},(0,ni.PM)(h));var h;const m={opacity:u?.5:1,transform:oi.Ks.Translate.toString(p),touchAction:"none",cursor:"grab",transition:"opacity 0.05s ease, transform 0.05s ease"};return(0,i.jsx)("button",Object.assign({id:a,ref:d,style:m},c,l,{className:`cursor-grab ${s}`,children:e}))};var gg=n(86626),fg={};fg.styleTagTransform=q(),fg.setAttributes=B(),fg.insert=R().bind(null,"head"),fg.domAPI=M(),fg.insertStyleElement=F();P()(gg.A,fg);gg.A&&gg.A.locals&&gg.A.locals;const vg=({option:e,disabled:t=!1,active:n=!1,className:r="",line:a=!1})=>(0,i.jsx)("span",{className:`gapOption ${t?"gapOption__disabled":""}\n                      ${n?"gapOption__active":"gapOption__NotActive"}\n                      ${a?"gapOption__line gapOption__line--desktop "+(n?"gapOption__line--active":"gapOption__line--NotActive"):""}\n                      ${r}`,children:(0,i.jsx)("span",{className:"md:whitespace-break-spaces",children:(0,i.jsx)(Ng,{text:e.value})})});var bg=n(31671),yg={};
2yg.styleTagTransform=q(),yg.setAttributes=B(),yg.insert=R().bind(null,"head"),yg.domAPI=M(),yg.insertStyleElement=F();P()(bg.A,yg);bg.A&&bg.A.locals&&bg.A.locals;const xg=({item:e,inputIndex:t,lessonState:n})=>n===yy.INITIAL||n===yy.MODIFIED?e.exampleSolutionType?(0,i.jsx)(Um,{solutionText:e.entry}):e.optionId?(0,i.jsx)(r.Fragment,{children:(0,i.jsx)(hg,{id:t,entry:e.entry,optionId:e.optionId,children:(0,i.jsx)(mg,{id:`${e.optionId}-gap-${e.entryIndex}`,gapId:t,entry:e.entry,optionId:e.optionId,children:(0,i.jsx)("div",{children:(0,i.jsx)(vg,{option:{id:e.optionId,value:e.entry}})})})})}):(0,i.jsx)(r.Fragment,{children:(0,i.jsx)(hg,{id:t,children:(0,i.jsx)("span",{className:"eksdi-input mx-2 w-32 inline-block p-5 align-middle"})})},t):n===yy.SOLUTION||n===yy.TEACHER_SOLUTION?(0,i.jsx)(Um,{solutionText:e.entry}):n===yy.SUBMITTED?e.exampleSolutionType?(0,i.jsx)(Um,{solutionText:e.entry},e.entryIndex):(0,i.jsx)(ig,{customClassName:"px-3",entryIndex:e.entryIndex,entry:e.entry,isCorrect:e.correct},e.entryIndex):void 0,wg=({inputIndex:e,type:t,lessonState:n,lineIndex:r,entriesMap:a,setInlineChoiceEntries:o,gapValuesMap:s,gapValuesMapOriginal:l,onInputChange:c,alternativeSolutions:d})=>{if("inlinechoice"===t&&a&&Pm(a,e))return(0,i.jsx)(rg,{lineIndex:r,lessonState:n,item:a[e],setEntries:o});if("textgap"===t&&s&&Pm(s,e)){const t=d.filter((t=>t.entryIndex===e));return(0,i.jsx)(dg,{lessonState:n,item:s[e],originalItem:l?l[e]:void 0,onInputChange:c,alternativeSolutions:t})}return"gapmatch"===t&&s&&Pm(s,e)?(0,i.jsx)(xg,{lessonState:n,item:s[e],inputIndex:e}):void 0},kg=({imageKey:e,altText:t,sizes:n="100vw",onLoad:a,className:s=""})=>{const{awsImageHandlerUrl:l,awsImageBucket:c}=(0,o.U)(),[d,u]=r.useState(!1),p=((e,t,n)=>{const i=i=>{const r=window.btoa(JSON.stringify({bucket:t,key:n,edits:{resize:{width:i,fit:K.INSIDE}}}));return`${e}/${r}`};return{xs:i(640),sm:i(800),md:i(1024),lg:i(1366),xl:i(1600),xxl:i(1920)}})(l,c,e);return(0,i.jsx)("img",{srcSet:d?void 0:`${p.xxl} 1920w, ${p.xl} 1600w,\n                  ${p.lg} 1366w, ${p.md} 1024w,\n                  ${p.sm} 800w, ${p.xs} 640w`,sizes:n,src:p.md,alt:t,className:s,onLoad:a,onError:()=>{console.error("Image could not be loaded, use fallback"),u(!0)}})};var Ag=n(9999),Tg={};Tg.styleTagTransform=q(),Tg.setAttributes=B(),Tg.insert=R().bind(null,"head"),Tg.domAPI=M(),Tg.insertStyleElement=F();P()(Ag.A,Tg);Ag.A&&Ag.A.locals&&Ag.A.locals;var Sg=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Eg=e=>{var t,n,{rawPayload:a,type:o}=e,s=Sg(e,["rawPayload","type"]);const l=(0,r.useId)(),c=(e=>{try{const t=JSON.parse(e);return t&&"object"==typeof t?t:void 0}catch(e){return}})(a);if(!c)return null;const{title:d,desc:u,columns:p,headerRows:h=[],bodyRows:m=[]}=c,g=(null==p?void 0:p.length)||(null===(t=h[0])||void 0===t?void 0:t.length)||(null===(n=m[0])||void 0===n?void 0:n.length)||0;return(0,i.jsxs)("div",{className:"eksdi-table__wrapper",children:[u&&(0,i.jsx)("div",{id:l,className:"sr-only",children:(0,i.jsx)(Ng,Object.assign({text:u,type:o},s))}),(0,i.jsx)("div",{className:"eksdi-table__scroll",children:(0,i.jsxs)("table",{className:"eksdi-table__table","aria-describedby":u?l:void 0,children:[d&&(0,i.jsx)("caption",{className:"eksdi-table__caption",children:(0,i.jsx)(Ng,Object.assign({text:d,type:o},s))}),g>0&&(0,i.jsx)("colgroup",{children:Array.from({length:g},((e,t)=>{var n,r;return(0,i.jsx)("col",{style:{width:`${null!==(r=null===(n=null==p?void 0:p[t])||void 0===n?void 0:n.widthPercent)&&void 0!==r?r:100/g}%`}},t)}))}),h.length>0&&(0,i.jsx)("thead",{children:h.map(((e,t)=>(0,i.jsx)("tr",{children:e.map(((e,n)=>(0,i.jsx)("th",{scope:"col",className:"eksdi-table__cell eksdi-table__cell--header",children:(0,i.jsx)(Ng,Object.assign({text:e,type:o},s))},`header-${t}-${n}`)))},`header-${t}`)))}),(0,i.jsx)("tbody",{children:m.map(((e,t)=>(0,i.jsx)("tr",{children:e.map(((e,n)=>(0,i.jsx)("td",{className:"eksdi-table__cell",children:(0,i.jsx)(Ng,Object.assign({text:e,type:o}
2,s))},`body-${t}-${n}`)))},`body-${t}`)))})]})})]})};var Ig=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Cg="1024px",_g=e=>null==e?void 0:e.children.find((e=>"element"===e.type&&"code"===e.tagName)),jg=e=>{var t,n;return null!==(n=null===(t=_g(e))||void 0===t?void 0:t.children.filter((e=>"text"===e.type)).map((e=>e.value)).join(""))&&void 0!==n?n:""},Ng=e=>{var{text:t,type:n,imageClassName:r="",onImageLoad:a,className:o=""}=e,s=Ig(e,["text","type","imageClassName","onImageLoad","className"]);return(0,i.jsx)(Nm.o,{components:{p:e=>{var t=Ig(e,[]);return(0,i.jsx)("div",Object.assign({className:o},t))},h5:e=>{var t=Ig(e,[]);return(0,i.jsx)("h5",Object.assign({className:`heading-5 text-text exercise-heading ${o}`},t))},em:e=>{var t=Ig(e,[]);return(0,i.jsx)("span",Object.assign({className:"italic emChildIsItalic",translate:"no"},t))},strong:e=>{var t=Ig(e,[]);return(0,i.jsx)("em",Object.assign({className:"not-italic font-bold"},t))},ol:e=>{var t=Ig(e,[]);return(0,i.jsx)("ol",Object.assign({className:o},t))},img:e=>{var t=Ig(e,[]);const n=`(max-width: ${Cg}) 100vw, ${Cg}`;return"decorationALT"===(null==t?void 0:t.alt)?(0,i.jsx)(kg,{imageKey:t.src,altText:"",className:`max-h-[400px] hidden md:block ${r}`,onLoad:a,sizes:n}):(0,i.jsx)(kg,{imageKey:t.src,altText:null==t?void 0:t.alt,className:`max-h-[400px] ${r}`,onLoad:a,sizes:n})},code:e=>{var t=Ig(e,[]);if("inlinechoice"===n||"textgap"===n||"gapmatch"===n){const e=t.children;return(0,i.jsx)(wg,Object.assign({inputIndex:e,type:n,lessonState:s.lessonState},s))}if("readingText"===n||"help"===n){const e=t.children;return(0,i.jsx)(Tm,{partner:e,className:"inline-block pr-2 mb-[-4px]"})}return(0,i.jsx)("code",Object.assign({},t))},pre:e=>{var{node:t,children:r}=e,a=Ig(e,["node","children"]);const o=t;return(e=>{var t,n,i,r;return null!==(r=null===(i=null===(n=null===(t=_g(e))||void 0===t?void 0:t.properties)||void 0===n?void 0:n.className)||void 0===i?void 0:i.includes("language-eksdi-table"))&&void 0!==r&&r})(o)?(0,i.jsx)(Eg,Object.assign({rawPayload:jg(o),type:n},s)):(0,i.jsx)("pre",Object.assign({},a,{children:r}))}},children:t})},Lg=({item:e,interactive:t,className:n=""})=>(0,i.jsxs)("div",{className:`sequence-option-text ${t?"sequence-option-text--interactive":""} ${n}`,children:[(0,i.jsx)(Tm,{partner:e.partner,isInteractive:t,className:"sequence-option-text__partner"}),(0,i.jsx)(Ng,{text:e.value})]}),Pg=({index:e,item:t,entriesLength:n,moveItem:r})=>(0,i.jsxs)("div",{className:"flex items-center",children:[(0,i.jsx)(Lg,{item:t,interactive:!0,className:"sequence-option__text"}),(0,i.jsx)(nm,{index:e,itemId:t.id,moveItem:r,entriesLength:n})]}),Dg=({items:e,type:t,entries:n,setUserEntries:a})=>{const[o,s]=(0,r.useState)([]);if((0,r.useEffect)((()=>{const e=n.filter((e=>!e.isExampleSolution));s(e)}),[n]),t===yy.INITIAL||t===yy.MODIFIED){const e=(e,t)=>{const i=n.findIndex((({id:e})=>e===t)),r="down"===e?i+1:i-1;a((0,ii.be)(n,i,r))};return(0,i.jsx)("div",{className:"sequence-list",children:(0,i.jsx)(ui,{items:n,onChange:a,renderItem:t=>t&&(null==t?void 0:t.isExampleSolution)?(0,i.jsx)(Lg,{item:t,className:"sequence-option__text sequence-option__text--solution"}):(0,i.jsx)(ui.Item,{id:t.id,children:(0,i.jsx)(Pg,{index:o.findIndex((({id:e})=>e===t.id)),item:t,moveItem:e,entriesLength:o.length})})})})}return t===yy.SUBMITTED?(0,i.jsx)("div",{className:"sequence-list",children:null==e?void 0:e.map(((e,t)=>e&&(null==e?void 0:e.isExampleSolution)?(0,i.jsx)(Lg,{item:e,className:"sequence-option__text sequence-option__text--solution"},e.id):(0,i.jsx)(ig,{customClassName:"w-full bg-surface pr-3 py-0 leading-none",entryIndex:t,entry:e.value,isCorrect:e.correct,children:(0,i.jsx)("div",{"data-cy":"sequence-result-"+t,className:"sequence-box--submitted",children:(0,i.jsx)(Lg,{item:e})},e.id)},t)))}):t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?(0,i.jsx)("div",{className:"sequence-list",children:null==e?void 0:e.map(((e,t)=>(0,i.jsx)(Lg,{item:e,className:"sequence-option__text sequence-option__text--solution","data-cy":"sequence-solution-"+t},e.id)))}):void 0};var Mg=n(1510),Og={};Og.styleTagTransform=q(),Og.setAttributes=B(),Og.insert=R().bind(null,"head"),Og.domAPI=M(),Og.insertStyleElement=F();P()(Mg.A,Og);Mg.A&&Mg.A.locals&&Mg.A.locals;var Rg=n(18112);const zg=({entry:e,onInputChange:t,lessonState:n,originalValue:r})=>(0,i.jsx)(Vi,{className:"open-question-textarea",onChange:n=>t(n,e.id),onKeyDown:e=>e.stopPropagation(),value:e.entry?e.entry:"",name:"exercise",disabled:"SUBMITTED"===n||"SOLUTION"==n,minRows:7,maxRows:14,spell
2Check:"false",inputGroupClassName:"flex-col",autoComplete:"off",children:r&&(0,i.jsx)(Um,{solutionText:r,className:"open-question-textarea--example-solution"})});var Bg,Ug,Fg=n(61695);!function(e){e.AI_BASIC="AI_BASIC",e.AI_GRAMMATIC="AI_GRAMMATIC"}(Bg||(Bg={})),function(e){e.SAMPLE_SOLUTION="sampleSolution",e.MOBILE_FEEDBACK="mobileFeedback",e.TASK="task"}(Ug||(Ug={}));const Vg=({currentTab:e,setCurrentTab:t,currentFeedbackText:n,setCurrentFeedbackText:a,entry:o,lessonid:s,basicText:l,grammarText:d})=>{const{t:u}=(0,k.Bd)(),p=(0,J.Ay)(),h=$h(),m=(0,c.As)();(0,r.useEffect)((()=>{e===Bg.AI_BASIC&&a(l),e===Bg.AI_GRAMMATIC&&a(d)}),[e,l,d]);const g=(0,r.useCallback)(((e,n)=>{t(e),a(n),e===Ug.SAMPLE_SOLUTION&&h.sendOne({actor:Bh(m.profile.id),verb:zh,object:Uh(s+"/sampleSolution")})}),[m.profile.id,s,h]),f=(0,r.useCallback)((()=>{var e;const t=[];if(o.feedback&&(null===(e=o.feedback)||void 0===e||e.forEach((e=>{const n=e.feedbackGiver;t.push({id:n,icon:(0,i.jsx)(Ue.I,{source:Fg.A,className:"m-0"}),text:u(`eksdi.openQuestion.${e.feedbackGiver}`),onClick:()=>g(n,"AI_BASIC"===e.feedbackGiver?l:"AI_GRAMMATIC"===e.feedbackGiver?d:e.feedbackValue)})}))),(null==o?void 0:o.sampleSolution)&&!p){const e=Ug.SAMPLE_SOLUTION;t.push({id:e,text:u("eksdi.openQuestion.sampleSolution"),onClick:()=>g(e,o.sampleSolution)})}return t}),[o,p,u,g,l,d]),v=f();return(0,r.useEffect)((()=>{t(void 0),a(void 0)}),[p,s]),(0,r.useEffect)((()=>{v.length>0&&!e?(t(v[0].id),p&&v[0].id===Ug.TASK?a(void 0):a(v[0].id===Ug.SAMPLE_SOLUTION?o.sampleSolution:"")):v.length<=0&&e&&(t(void 0),a(void 0))}),[v,o.sampleSolution,o.feedback,e,n,p]),(0,i.jsx)("div",{className:"feedbackTabs",children:(0,i.jsx)(Gu,{tabs:v,currentId:e,className:"p-0 py-3 w-full gap-8 "+(v.length<=1?"hover:cursor-default":"")})})},qg=({markdownText:e,type:t,className:n=""})=>
2{if(e)return(0,i.jsx)(Nm.o,{className:`feedbackMarkdown ${n} ${t===Bg.AI_BASIC||t===Bg.AI_GRAMMATIC?"feedbackMarkdown__paragraph":""}`,children:e})},Hg=({entry:e,openQuestionTextFieldComponent:t})=>{const{t:n}=(0,k.Bd)(),[a,o]=(0,r.useState)(Ug.TASK),s=(()=>{const t=[];return(null==e?void 0:e.sampleSolution)&&(t.push({id:Ug.TASK,text:n("eksdi.openQuestion.task"),onClick:()=>o(Ug.TASK)}),t.push({id:Ug.SAMPLE_SOLUTION,text:n("eksdi.openQuestion.sampleSolution"),onClick:()=>o(Ug.SAMPLE_SOLUTION)})),t})();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Gu,{tabs:s,currentId:a,className:"p-0 py-3 w-full gap-8 mb-2"}),(0,i.jsxs)("div",{id:`panel-${a}`,"aria-labelledby":`tab-${a}`,role:"tabpanel",children:[a===Ug.TASK&&t,a===Ug.SAMPLE_SOLUTION&&(0,i.jsx)(qg,{markdownText:e.sampleSolution,type:a})]})]})},Gg=[{label:"eksdi.openQuestion.lang.en",value:"en-GB"},{label:"eksdi.openQuestion.lang.de",value:"de-DE"},{label:"eksdi.openQuestion.lang.es",value:"es-ES"},{label:"eksdi.openQuestion.lang.fr",value:"fr-FR"},{label:"eksdi.openQuestion.lang.it",value:"it-IT"}],Kg=[{label:"eksdi.openQuestion.lang.ar",value:"ar"},{label:"eksdi.openQuestion.lang.ptBR",value:"pt-BR"},{label:"eksdi.openQuestion.lang.prs",value:"prs"},{label:"eksdi.openQuestion.lang.fa",value:"fa"},{label:"eksdi.openQuestion.lang.el",value:"el"},{label:"eksdi.openQuestion.lang.hi",value:"hi"},{label:"eksdi.openQuestion.lang.ml",value:"ml"},{label:"eksdi.openQuestion.lang.ps",value:"ps"},{label:"eksdi.openQuestion.lang.pl",value:"pl"},{label:"eksdi.openQuestion.lang.pt",value:"pt"},{label:"eksdi.openQuestion.lang.ru",value:"ru"},{label:"eksdi.openQuestion.lang.deCH",value:"de-CH"},{label:"eksdi.openQuestion.lang.ti",value:"ti"},{label:"eksdi.openQuestion.lang.tr",value:"tr"},{label:"eksdi.openQuestion.lang.uk",value:"uk"},{label:"eksdi.openQuestion.lang.uz",value:"uz"},{label:"eksdi.openQuestion.lang.vi",value:"vi"}],$g=({entry:e,setUserEntries:t,lessonState:n,lessonid:a,originalValue:s,aifeedback:l,submitLesson:d})=>{var u,p;const{t:h}=(0,k.Bd)(),g=(0,J.Ay)(),v=(0,c.As)(),b=(0,o.U)(),y=(0,Gr.U)()(),{mutateAsync:x}=(0,ge.u)(),{setError:w}=(0,m.q)(),{featureToggle:A}=en(),T=A.includes(an),[S,E]=(0,r.useState)(""),[I,C]=(0,r.useState)(""),[_,j]=(0,r.useState)(""),[N,L]=(0,r.useState)(""),[P,D]=(0,r.useState)(""),[M,O]=(0,r.useState)(!1),[R,z]=(0,r.useState)(!1),[B,U]=(0,r.useState)(),[F,V]=(0,r.useState)((e=>{const t=localStorage.getItem(f.Zf);if(t)return t;const n=el.find((t=>t.value.startsWith(e)));return n&&n.value?n.value:"de-DE"})(y)),[q,H]=(0,r.useState)(0),G=(0,r.useRef)(""),K=(0,r.useRef)(""),$=T?[...Gg,...Kg]:Gg;(0,r.useEffect)((()=>{var t;e.feedback&&e.feedback.length>0?null===(t=e.feedback)||void 0===t||t.forEach((e=>{e.feedbackGiver===Bg.AI_BASIC&&e.feedbackValue&&e.feedbackValue!=I?C(e.feedbackValue):e.feedbackGiver===Bg.AI_GRAMMATIC&&e.feedbackValue&&e.feedbackValue!=_&&j(e.feedbackValue)})):(C(""),j(""))}),[I,e,_]);let W=null;const X=(0,r.useRef)(3),Y=(0,r.useRef)(null),Z=()=>{O(!0),X.current-=1,console.log("reconnect to basic feedback. try number:",3-X.current),te()},Q=()=>{null!=W&&clearTimeout(W),X.current>0&&(W=setTimeout(Z,6e4))},ee=()=>{null!=W&&clearTimeout(W),O(!1)},te=()=>{X.current<3&&Q(),Y.current&&Y.current.close();const e=new Rg.EventSourcePolyfill(b.backendServiceBaseUrl+"/aifeedback/"+I,{withCredentials:!1,headers:{Authorization:"Bearer "+v.token},heartbeatTimeout:6e4});e.onmessage=t=>{X.current=3,O(!1),Q();const n=t.data;n&&(G.current=G.current+n,L(G.current)),"END"===t.lastEventId&&(e.close(),ee())},e.onerror=t=>{e.close(),G.current&&X.current>0?O(!0):(ee(),w(h("eksdi.openQuestion.error.basic")),x({errorMessage:`Error receiving Basic-Feedback (${I})`,errorObject:t}))},Y.current=e};(0,r.useEffect)((()=>(L(""),G.current="",I&&n===yy.SUBMITTED&&te(),()=>{Y.current&&Y.current.close()})),[I,n]);let ne=null;const ie=(0,r.useRef)(3),re=(0,r.useRef)(null),ae=()=>{z(!0),ie.current-=1,console.log("reconnect to grammar feedback. try number: ",3-ie.current),le()},oe=()=>{null!=ne&&clearTimeout(ne),ie.current>0&&(ne=setTimeout(ae,6e4))},se=()=>{null!=ne&&clearTimeout(ne),z(!1)},le=()=>{ie.current<3&&oe(),re.current&&re.current.close();const e=new Rg.EventSourcePolyfill(b.backendServiceBaseUrl+"/aifeedback/"+_,{withCredentials:!1,headers:{Authorization:"Bearer "+v.token},heartbeatTimeout:6e4});e.onmessage=t=>{oe(),z(!1),ie.current=3;const n=t.data;n&&(K.current=K.current+n,D(K.current)),"END"===t.lastEventId&&(e.close(),se())},e.onerror=t=>{e.close(),K.current&&ie.current>0?z(!0):(se(),w(h("eksdi.openQuestion.error.grammar")),x({errorMessage:`Error receiving Grammatic-Feedback (${_})`,errorObject:t}))},re.current=e};(0,r.useEffect)((()=>
2(D(""),K.current="",_&&n===yy.SUBMITTED&&le(),()=>{re.current&&re.current.close()})),[_,n]),(0,r.useEffect)((()=>{q>0&&d()}),[q]);const ce=(e,n)=>{t((t=>t.map((t=>t.id===n?Object.assign(Object.assign({},t),{entry:e.target.value?e.target.value:"",nativeLanguage:F}):t))))};return(0,i.jsxs)("div",{className:"openQuestionTaskWrapper",children:[(0,i.jsx)("div",{className:"openQuestionInputWrapper",children:g?(0,i.jsx)(Hg,{entry:e,openQuestionTextFieldComponent:(0,i.jsx)(zg,{entry:Object.assign(Object.assign({},e),{entry:e.entry.replace(s,"")}),onInputChange:ce,lessonState:n,originalValue:s})}):(0,i.jsx)(zg,{entry:Object.assign(Object.assign({},e),{entry:e.entry.replace(s,"")}),onInputChange:ce,lessonState:n,originalValue:s})}),(0,i.jsxs)("div",{className:"feedbackWrapper "+(e&&(null==e?void 0:e.feedback)&&(null===(u=e.feedback)||void 0===u?void 0:u.length)>0?"":"border-0"),children:[(0,i.jsx)(Vg,{currentTab:B,setCurrentTab:U,currentFeedbackText:S,setCurrentFeedbackText:E,entry:e,lessonid:a,basicText:N,grammarText:P}),B!==Ug.SAMPLE_SOLUTION&&l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(fl,{teaserText:h("aiTeaser.aiFeedback.teaserText"),iconButtonLabel:h("aiTeaser.aiFeedback.iconLabel"),modalTitle:h("aiTeaser.aiFeedback.title"),modalText:h("aiTeaser.aiFeedback.text"),modalOk:h("aiTeaser.aiFeedback.ok")}),(0,i.jsxs)("div",{className:"feedbackLanguageSelect",children:[(0,i.jsx)("span",{className:"text-sm",children:h("eksdi.openQuestion.nativeLanguage")}),(0,i.jsx)(nl,{selectedLanguage:F,handleSelectChange:(e,i=!0)=>{V(e),localStorage.setItem(f.Zf,e),t((t=>t.map((t=>Object.assign(Object.assign({},t),{nativeLanguage:e}))))),i&&n===yy.SUBMITTED&&H((e=>e+1))},sideOffset:0,customSetOpen:!1,triggerClassName:"bg-surfaceSubdued",children:$.map((e=>(0,i.jsx)(tl,{value:e.value,selectedLanguage:F,className:"text-sm",children:(0,i.jsx)("span",{lang:e.value,children:h(e.label)})},e.value)))})]})]}),(0,i.jsxs)("div",{className:"feedbackDisplay",id:`panel-${B}`,"aria-labelledby":`tab-${B}`,role:"tabpanel",children:[(B===Bg.AI_BASIC||B===Bg.AI_GRAMMATIC||!g&&B===Ug.SAMPLE_SOLUTION)&&(0,i.jsx)(ft.o,{label:h("aiTeaser.loadingMessage"),inProgress:(n===yy.SUBMITTED||n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&!S&&e.feedback&&(null===(p=e.feedback)||void 0===p?void 0:p.length)>0,className:"my-16",children:(0,i.jsx)(qg,{markdownText:S,type:B})}),(0,i.jsx)(ft.o,{label:h("eksdi.openQuestion.loadConnection"),inProgress:B===Bg.AI_BASIC&&M||B===Bg.AI_GRAMMATIC&&R,small:!0})]})]})]})};class Wg{constructor(e,t){this.setEntries=e,this.setGapOptionsEntries=t}moveOptionToOptionsContainer(e,t,n){this.removeOptionFromGap(e,t),this.addOptionToOptionsContainer(e,n)}moveOptionToGap(e,t,n,i){const r=n.map((n=>{const i=n.entries.reduce(((e,t)=>(e[t.entryIndex]=t,e)),{});return this.moveOptionFromOverToActive(e,t,i),this.moveActiveOptionToOver(e,t,i,n),n}));this.setEntries(r),this.updateOptionsContainer(e,t,i)}updateOptionsContainer(e,t,n){if(e.optionId===t.optionId||e.gapId&&t.gapId)return;const i=n.map((n=>t.gapId&&n.id===e.optionId?(n.uses-=1,n):(e.gapId||n.id!==t.optionId||(n.uses+=1),n))).filter((e=>e.uses>0));!i.find((e=>e.id===t.optionId))&&t.optionId&&!e.gapId&&i.push({id:t.optionId,value:t.entry,uses:1}),this.setGapOptionsEntries(i)}moveActiveOptionToOver(e,t,n,i){n[t.gapId]&&(i.entries=i.entries.map((n=>(n.entryIndex===t.gapId&&(n.optionId=e.optionId,n.entry=e.entry),n))))}moveOptionFromOverToActive(e,t,n){e.gapId&&n[e.gapId]&&(n[e.gapId].optionId=t.optionId,n[e.gapId].entry=t.entry)}removeOptionFromGap(e,t){const n=t.map((t=>{const n=t.entries.find((t=>t.entryIndex===e.gapId));return n?(n.optionId="",n.entry="",Object.assign(Object.assign({},t),{gapValues:[...t.entries,n]})):t}));this.setEntries(n)}addOptionToOptionsContainer(e,t){if(!e.gapId)return;if(t.find((t=>t.id===e.optionId))){const n=t.map((t=>(t.id===e.optionId&&(t.uses+=1),t)));return void this.setGapOptionsEntries(n)}const n=[...t,{id:e.optionId,value:e.entry,uses:1}];this.setGapOptionsEntries(n)}}const Xg=({entry:e,lessonState:t})=>{const n=Lm(e);return(0,i.jsxs)("div",{className:"gap-match-entry",children:[(0,i.jsx)(Tm,{partner:e.partner}),(0,i.jsx)(Ng,{text:e.value,type:"gapmatch",gapValuesMap:n,lessonState:t})]},e.value)};var Yg=n(36822),Jg=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};function Zg(e){var{droppableContainers:t}=e,n=Jg(e,["droppableContainers"]);const i=(0,ni.Qo)(Object.assign(Object.assign({},n),{droppableContainers:t}));if(i.length>0){const e=i.find((({id:e})=>"gapOptions"===e));return e&&e.data.droppableContainer.rect.current.top<=20?[e]:i}}const Qg=100,ef=e=>{const t=(0,r.useRef)(!1),n=(0,Re.V)(),i=n.get("id")&&n.get("type")===Si.i_.ASSESSMENT,a=()=>{t.current=!1};return(0,r.useEffect)((()=>{const n=(()=>{let e=1;const n=()=>{const r=document.querySelector(".asset-player-dialog--scroll"),a=i&&r?r:window,o=i&&r?r:document.documentElement,s=o.scrollTop;s>=o.scrollHeight-window.innerHeight&&e>0||0===s&&e<0?t.current=!1:(a.scrollTo(0,o.scrollTop+e),window.requestAnimationFrame((()=>{t.current&&n()})))};return i=>{var r;r=i,e=Math.pow(r,3),t.current||(t.current=!0,n())}})(),r=t=>{if(e){const e=0|(t instanceof MouseEvent?t.clientY:t.touches[0].clientY),i=window.innerHeight,r=e<25,o=e>window.innerHeight-Qg;if(r){n(-(1+(Qg-e)/Qg))}else if(o){n(1+(e-i+Qg)/Qg)}else a()}else a()};return window.addEventListener("touchmove",r),window.addEventListener("mousemove",r),()=>{window.removeEventListener("touchmove",r),window.removeEventListener("mousemove",r)}}),[e]),a};function tf(e){return(0,i.jsx)(ni.Mp,Object.assign({},e))}const nf=({children:e,dragAndDropHandler:t,options:n,entries:a,gapOptionsEntries:o,line:s=!1,dropAnimation:l=!1})=>{const{t:c}=(0,k.Bd)(),[d,u]=(0,r.useState)(null),p=(0,r.useMemo)((()=>n.find((e=>{var t,n;return e.id===(null==d?void 0:d.id)||e.id===(null===(n=null===(t=null==d?void 0:d.data)||void 0===t?void 0:t.current)||void 0===n?void 0:n.optionId)||`gap-${e.id}`===(null==d?void 0:d.id)}))),[d,n]),h=ef(p),m=(0,ni.FR)((0,ni.MS)(ni.cA),(0,ni.MS)(ni.AN),(0,ni.MS)(ni.IG,{activationConstraint:{delay:150,tolerance:5}}),(0,ni.MS)(ni.uN)),g={onDragStart:({active:e})=>c("eksdi.accessibility.dragAndDrop.onDragStart",{activeValue:e.data.current.entry}),onDragOver:({active:e,over:t})=>t?c("eksdi.accessibility.dragAndDrop.onDragOver",{activeValue:e.data.current.entry,overIndex:t.data.current.gapId}):c("eksdi.accessibility.dragAndDrop.onDragOverEmpty",{activeValue:e.data.current.entry}),onDragEnd:({active:e,over:t})=>t?c("eksdi.accessibility.dragAndDrop.onDragEndOver",{activeValue:e.data.current.entry,overIndex:t.data.current.gapId}):c("eksdi.accessibility.dragAndDrop.onDragEnd",{activeValue:e.data.current.entry}),onDragCancel:({active:e})=>c("eksdi.accessibility.dragAndDrop.onDragCancel",{activeValue:e.data.current.entry})};return(0,i.jsxs)(tf,{accessibility:{announcements:g,screenReaderInstructions:{draggable:c("eksdi.accessibility.dragAndDrop.screenReaderInstructions")}},autoScroll:{threshold:{x:0,y:0}},collisionDetection:Zg,sensors:m,onDragStart:({active:e})=>{u(e)},onDragEnd:({active:e,over:n})=>{n&&("gapOptions"===n.id?t.moveOptionToOptionsContainer(e.data.current,a,o):t.moveOptionToGap(e.data.current,n.data.current,a,o)),u(null),h()},onDragCancel:()=>{u(null),h()},children:[e,(0,i.jsx)(ni.Hd,{modifiers:[Yg.Q_],dropAnimation:l?null:{duration:250,easing:"ease"},children:p?(0,i.jsx)(vg,{className:"mx-auto w-full",active:!0,line:s,option:p}):null})]})},rf=({gapOptionsEntries:e,lessonState:t})=>{const n=null==e?void 0:e.filter((e=>e.exampleSolution!==jm.FULL));return(0,i.jsx)(hg,{as:"div",className:"gap-match-droppable",id:"gapOptions",children:(0,i.jsxs)("div",{className:"gap-match-droppable__words",children:[(t===yy.INITIAL||t===yy.MODIFIED)&&n.map((e=>(0,i.jsx)(mg,{id:e.id,optionId:e.id,entry:e.value,children:(0,i.jsx)(vg,{option:e})},e.id))),t!==yy.INITIAL&&t!==yy.MODIFIED&&(null==n?void 0:n.map((e=>(0,i.jsx)(vg,{className:"h-auto",option:e,disabled:!0},e.id))))]})})};class af{constructor(e){this.setEntries=e}moveOptionToOptionsContainer(e,t){this.removeOptionFromGap(e,t)}moveOptionToGap(e,t,n){const i=n.map((n=>(this.moveOptionFromOverToActive(e,t,n),this.moveActiveOptionToOver(e,t,n),n)));this.setEntries(i)}
2moveActiveOptionToOver(e,t,n){n.entryIndex==t.gapId&&(n.optionId=e.optionId,n.entry=e.entry)}moveOptionFromOverToActive(e,t,n){n.entryIndex===e.gapId&&n.optionId&&(n.optionId=t.optionId,n.entry=t.entry)}removeOptionFromGap(e,t){if(e.gapId){const n=t.map((t=>t.entryIndex===e.gapId?(t.optionId="",t.entry="",t):t));this.setEntries(n)}}}const of=({showResult:e,isSolution:t,value:n,index:a})=>{const o=(0,J.Ay)();return(0,r.useEffect)((()=>{const e=document.getElementById(`puzzle-${a}`),t=e?e.clientHeight:53,n=e||document.documentElement;n&&(n.style.setProperty("--topbefore",t+"px"),n.style.setProperty("--topafter",t-1+"px"))}),[n,a]),(0,i.jsx)("div",{className:`puzzle-mobile gapOption gapOption__line\n                ${e?(null==n?void 0:n.correct)?"puzzle-mobile--correct":n.entry?"puzzle-mobile--incorrect":"puzzle--not-assigned":""}\n                ${(null==n?void 0:n.isExampleSolution)||t?"puzzle--solution puzzle-mobile--solution":""}\n            `,children:(0,i.jsx)("div",{className:"puzzle__content puzzle-mobile__content",children:e?(0,i.jsx)(ig,{withoutWrapper:o,emptyLabelCustomPadding:"p-3.5",customClassName:"border-none w-full p-0",entryIndex:n.entryIndex,entry:null==n?void 0:n.entry,isCorrect:n.correct},n.entryIndex):(0,i.jsx)("span",{children:n.entry})})})},sf=({showResult:e,isSolution:t,value:n})=>(0,i.jsx)("div",{className:`puzzle-desktop\n                ${e?n.correct?"puzzle-desktop--correct":n.entry?"puzzle-desktop--incorrect":"puzzle--not-assigned":""}\n                ${n.isExampleSolution||t?"puzzle--solution puzzle-desktop--solution":""}\n            `,children:(0,i.jsx)("div",{className:"puzzle__content puzzle-desktop__content",children:e?(0,i.jsx)(ig,{emptyLabelCustomPadding:"md:py-0",customClassName:"border-none w-full pr-3",customLabelClass:"w-11/12",entryIndex:n.entryIndex,entry:null==n?void 0:n.entry,isCorrect:n.correct},n.entryIndex):(0,i.jsx)(Ng,{text:n.entry,className:"mr-3"})})}),lf=({text:e})=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"line-match-entry__value--mobile",children:(0,i.jsx)("div",{children:(0,i.jsx)(Ng,{text:e})})}),(0,i.jsx)("div",{className:"line-match-entry__value--desktop",children:(0,i.jsx)("div",{children:(0,i.jsx)(Ng,{text:e})})})]}),cf=({value:e,option:t})=>(0,i.jsxs)(hg,{as:"div",id:e.entryIndex,entry:e.entry,optionId:e.optionId,className:"puzzle-dnd__droppable "+(e.optionId?"":"puzzle-dnd__droppable--not-assigned"),children:[e.optionId&&(0,i.jsx)(mg,{className:"puzzle-dnd__draggable puzzle-dnd__draggable--assigned",id:`gap-${e.optionId}`,gapId:e.entryIndex,entry:e.entry,optionId:e.optionId,children:(0,i.jsx)(vg,{line:!0,option:{id:e.optionId,value:e.entry},className:"w-full"})}),!e.optionId&&t&&t.value&&(0,i.jsx)(mg,{className:"puzzle-dnd__draggable",id:`gap-${t.id}`,gapId:e.entryIndex,entry:t.value,optionId:t.id,children:(0,i.jsx)(vg,{line:!0,option:{id:t.id,value:t.value},className:"w-full"})})]}),df=({value:e,lessonState:t,option:n,highestEntry:a,setHighestEntry:o,index:s})=>{const l=(0,J.Ay)(),{isDrawerOpen:c}=(0,Pe.Us)(),d=t===yy.SUBMITTED&&!e.isExampleSolution,u=(0,r.useCallback)((()=>{const t=document.getElementById(`line-match-entry-${e.id}`);if(l)t&&(t.style.height="fit-content");else{t&&-1===a&&(t.style.height="fit-content");const i=document.getElementById(e.optionId?`gap-${e.optionId}`:`gap-${null==n?void 0:n.id}`),r=Math.max(null==t?void 0:t.clientHeight,0|(null==i?void 0:i.clientHeight));r&&(r>a?o(r):a>0&&(t.style.height=`${a}px`))}}),[a,l,n,o,e]);return(0,r.useEffect)((()=>{u()}),[u]),(0,r.useEffect)((()=>{o(-1),u()}),[c]),(0,r.useEffect)((()=>{const e=()=>{o(-1),u()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[o,u]),(0,i.jsxs)("div",{id:`line-match-entry-${e.id}`,className:"line-match-entry",children:[(0,i.jsx)(lf,{text:e.value}),!e.isExampleSolution&&(t===yy.INITIAL||t===yy.MODIFIED)&&(0,i.jsx)(cf,{value:e,option:n}),(e.isExampleSolution||t!==yy.INITIAL&&t!==yy.MODIFIED)&&(0,i.jsxs)("div",{className:"line-match-entry__puzzle-solution",id:`puzzle-${s}`,children:[(0,i.jsx)("span",{}),(0,i.jsx)(of,{showResult:d,isSolution:t===yy.SOLUTION||t===yy.TEACHER_SOLUTION,value:e,index:s}),(0,i.jsx)(sf,{showResult:d,isSolution:t===yy.SOLUTION||t===yy.TEACHER_SOLUTION,value:e})]})]})};var uf=n(70797),pf={};pf.styleTagTransform=q(),pf.setAttributes=B(),pf.insert=R().bind(null,"head"),pf.domAPI=M(),pf.insertStyleElement=F();P()(uf.A,pf);uf.A&&uf.A.locals&&uf.A.locals;const hf=({area:e,imageDimensions:t,type:n,onClick:r,text:a,className:o=""})=>{const{index:s,coordinates:l}=e,{height:c,width:d}=t,u=l.split(","),p=d*(parseInt(u[0])/100),h=c*(parseInt(u[1])/100);if("graphicgapmatch"===n){const e=d*(parseInt(u[2])/100)-p,t=c*(parseInt(u[3]?u[3]:u[2])/100)-h;return(0,i.jsx)("div",{style:{width:e,height:t,left:p,top:h},className:"absolute grid place-items-center",children:(0,i.jsx)("span",{className:"bg-surface text-textLink font-bold text-sm rounded-full w-7 h-7 border-2 grid place-items-center select-none",children:s})})}const m=()=>{r&&r(s.toString())};if("graphichotspot"===n){const e=d*(parseInt(u[2])/100),t=c*(parseInt(u[3]?u[3]:u[2])/100);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{style:{width:e,height:t,left:p-e/2,top:h-t/2},className:`absolute grid place-items-center ${o}`,onClick:m}),a&&(0,i.jsx)("div",{style:{left:p,top:h},className:"absolute grid place-items-center",children:(0,i.jsx)("span",{className:`bg-surface text-textLink font-bold border-2 text-sm p-1 border-1 grid place-items-center select-none max-w-[${.75*d}]`,children:a})})]})}};var mf=n(99919),gf={};gf.styleTagTransform=q(),gf.setAttributes=B(),gf.insert=R().bind(null,"head"),gf.domAPI=M(),gf.insertStyleElement=F();P()(mf.A,gf);mf.A&&mf.A.locals&&mf.A.locals;const ff=({value:e,lessonState:t,entries:n})=>{if(e.exampleSolutionType||t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)return(0,i.jsxs)("span",{className:"graphic-gap-match-entry",children:[(0,i.jsxs)("span",{className:"graphic-gap-match-entry__number",children:[e.entryIndex,"."]}),(0,i.jsx)(Um,{solutionText:e.entry},e.entryIndex)]});if(t===yy.SUBMITTED){const t=null==n?void 0:n.find((t=>t.entryIndex===e.entryIndex));return(0,i.jsxs)("span",{className:"graphic-gap-match-entry pr-3 max-w-[350px]",children:[(0,i.jsxs)("span",{className:"graphic-gap-match-entry__number",children:[e.entryIndex,"."]}),(0,i.jsx)(ig,{customClassName:"px-3",entryIndex:e.entryIndex,entry:null==t?void 0:t.entry,isCorrect:e.correct},e.entryIndex)]})}return(0,i.jsxs)(hg,{id:e.entryIndex,entry:e.entry,optionId:e.optionId,children:[!e.optionId&&(0,i.jsxs)("div",{className:"graphic-gap-match-entry",children:[(0,i.jsxs)("span",{className:"graphic-gap-match-entry__number",children:[e.entryIndex,"."]}),(0,i.jsx)("span",{className:"empty-line eksdi-input p-5"})]}),e.optionId&&(0,i.jsxs)("div",{className:"graphic-gap-match-entry",children:[(0,i.jsxs)("span",{className:"graphic-gap-match-entry__number",children:[e.entryIndex,"."]}),(0,i.jsx)(mg,{id:`${e.optionId}`,gapId:e.entryIndex,entry:e.entry,optionId:e.optionId,children:(0,i.jsx)(vg,{option:{id:e.optionId,value:e.entry}})})]})]})},vf=()=>{const e=(0,r.useRef)(null),t=(0,r.useRef)(null),[n,i]=(0,r.useState)({width:0,height:0});return(0,r.useLayoutEffect)((()=>{const n=e=>{const t=Math.round(e[0].contentRect.height),n=Math.round(e[0].contentRect.width);i({width:n,height:t})};
2return"ResizeObserver"in window&&(t.current=new ResizeObserver(n),e.current&&t.current.observe(e.current)),()=>{var e;null===(e=t.current)||void 0===e||e.disconnect()}}),[e]),{imageContainerRef:e,imageDimensions:n}},bf=(e,t)=>{const n=[];return t&&e&&e.forEach((e=>{const i=null==t?void 0:t.filter((t=>t.optionId===e.id));if(i&&0!==i.length){const t={uses:e.uses-i.length,value:e.value,id:e.id,exampleSolution:e.exampleSolution};n.push(t)}else n.push(e)})),n},yf=({entry:e,lessonState:t,setUserEntries:n,originalValue:a,setLessonState:o})=>{const s=t!==yy.SOLUTION&&t!==yy.TEACHER_SOLUTION||!a?e:a,l=Lm(s),c=a?Lm(a):void 0,d=t!==yy.SOLUTION&&t!==yy.TEACHER_SOLUTION||!a?[]:(e=>{var t,n;return(null===(t=null==e?void 0:e.entries)||void 0===t?void 0:t.length)?null===(n=null==e?void 0:e.entries)||void 0===n?void 0:n.filter((e=>{if(e.isAlternative)return e})):[]})(a);return(0,r.useEffect)((()=>{"INITIAL"===t&&o(yy.MODIFIED)}),[l,c]),(0,i.jsx)("div",{className:"text-gap-entry",children:(0,i.jsx)(Ng,{text:e.value,type:"textgap",lessonState:t,gapValuesMap:l,gapValuesMapOriginal:c,onInputChange:(t,i,r)=>{const a=r||"";n((n=>null==n?void 0:n.map((n=>{if(n.lineIndex===e.lineIndex){if(!(n.entries.length>1)){const e=Object.assign(Object.assign({},n.entries[0]),{entry:a+t});return Object.assign(Object.assign({},n),{entries:[e]})}{const e=null==n?void 0:n.entries.findIndex((e=>e.entryIndex===i));if(e>-1){const r=Object.assign(Object.assign({},n.entries[e]),{entry:a+t}),o=n.entries.filter((e=>e.entryIndex!==i));return Object.assign(Object.assign({},n),{entries:[...o,r]})}}}return n}))))},alternativeSolutions:d})})},xf=({setUserEntries:e,values:t,entries:n,lessonState:a,setLessonState:o})=>{const s=(0,r.useMemo)((()=>null==n?void 0:n.map(((n,r)=>{const s=null==t?void 0:t.find((e=>n.lineIndex===e.lineIndex));return(0,i.jsxs)("div",{className:"flex row gap-4 items-baseline",children:[(0,i.jsx)(Tm,{partner:n.partner}),(0,i.jsx)(yf,{entry:n,lessonState:a,setUserEntries:e,originalValue:s,setLessonState:o})]},r)}))),[a,e,t]);return(0,i.jsx)("div",{className:"text-gap-entries",children:s})};var wf=n(38029),kf={};kf.styleTagTransform=q(),kf.setAttributes=B(),kf.insert=R().bind(null,"head"),kf.domAPI=M(),kf.insertStyleElement=F();P()(wf.A,kf);wf.A&&wf.A.locals&&wf.A.locals;const Af=({value:e,lessonState:t,displayCorrect:n=!0,isCategoryMultiMatch:r=!1})=>{const a=`${e.optionId}-${e.entryIndex}`;if(e.isExampleValue||t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)return(0,i.jsx)("div",{className:"multi-match-entry "+(r?"border-0":""),children:(0,i.jsx)(Um,{solutionText:e.entry,className:"max-w-[350px]"})});if(t===yy.SUBMITTED)return(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"multi-match-entry max-w-[350px]",children:(0,i.jsx)("span",{className:"multi-match-entry__entry--submitted",children:n?(0,i.jsx)(ig,{customClassName:"px-3",entryIndex:e.entryIndex,entry:null==e?void 0:e.entry,isCorrect:e.correct}):(0,i.jsx)("span",{className:"mx-2 grow text-text",children:(0,i.jsx)(Ng,{text:null==e?void 0:e.entry})})})})});const o=(0,i.jsx)(i.Fragment,{children:e.optionId&&(0,i.jsx)(mg,{id:a,gapId:e.entryIndex,entry:e.entry,optionId:e.optionId,children:(0,i.jsx)(vg,{option:{id:e.optionId,value:e.entry},className:"text-left"})})});return r?o:(0,i.jsx)(hg,{id:e.entryIndex,entry:e.entry,optionId:e.optionId,className:e.optionId?void 0:"multi-match-entry__entry--empty",children:o})},Tf=({matchData:e,entries:t,lessonState:n,solution:a,result:o,addEmptyEntry:s})=>{var l,c;const[d,u]=(0,r.useState)([]),[p,h]=(0,r.useState)();return(0,r.useEffect)((()=>{const i=(e=>e.sort(((e,t)=>e.optionId&&!t.optionId?-1:!e.optionId&&t.optionId?1:0)))(t.filter((t=>t.matchId===e.id)));u(i);const r=i.filter((e=>e.optionId)),a=i[r.length];if(a)h(a);else if(n===yy.INITIAL||n===yy.MODIFIED){const t=i.length?i[i.length-1]:void 0,n=!!t&&!!t.optionId&&!t.isExampleValue;s(e.id,n)}}),[t,e.id]),(0,i.jsxs)("div",{className:"matches-box",children:[e.value&&(0,i.jsx)(Ng,{text:e.value,className:"sequence-match__heading sequence-match__heading--matches-box"}),(0,i.jsxs)("div",{className:"sequence-single-match sequence-single-match--col sequence-single-match--padding",children:[(n===yy.INITIAL||n===yy.MODIFIED)&&p&&(0,i.jsx)(hg,{id:p.entryIndex,entry:p.entry,optionId:p.optionId,className:"matches-box-droppable",children:d.map(((e,t)=>(0,i.jsx)(Af,{value:e,lessonState:n,isCategoryMultiMatch:!0},"base-"+t)))}),(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&(null===(l=null==a?void 0:a.filter((t=>t.matchId===e.id)))||void 0===l?void 0:l.map(((e,t)=>(0,i.jsx)(Af,{value:e,lessonState:n,isCategoryMultiMatch:!0},"solution-"+t)))),n===yy.SUBMITTED&&(null===(c=null==o?void 0:o.filter((t=>t.matchId===e.id)))||void 0===c?void 0:c.map(((e,t)=>(0,i.jsx)(Af,{value:e,lessonState:n,isCategoryMultiMatch:!0},"submitted-"+t))))]})]})},Sf=({text:e})=>(0,i.jsxs)("div",{className:"noAnswer",children:[(0,i.jsx)("span",{children:e}),(0,i.jsx)("span",{children:(0,i.jsx)(Ue.I,{className:"w-5 h-5",source:eg,fill:"transparent"})})]});var Ef=n(49667),If={};If.styleTagTransform=q(),If.setAttributes=B(),If.insert=R().bind(null,"head"),If.domAPI=M(),If.insertStyleElement=F();P()(Ef.A,If);Ef.A&&Ef.A.locals&&Ef.A.locals;const Cf=({entry:e,option:t,correct:n,lessonState:r,isExampleSolution:a})=>{const o=t.value,s=e===o&&r===yy.SUBMITTED&&!a,l=r===yy.SOLUTION||r===yy.TEACHER_SOLUTION,c=()=>(0,i.jsxs)("div",{className:"radio-item__container",children:[(0,i.jsx)("div",{children:(0,i.jsx)(br.q7,{className:`radio-item\
2n                        ${l||a||r===yy.SUBMITTED?"radio-item--no-interaction":""}\n                        ${e===o&&r!==yy.SUBMITTED?"radio-item--selected":""}\n                        ${s&&n?"radio-item--correct":""}\n                        ${s&&!n?"radio-item--incorrect":""}\n                        ${e===o&&(a||l)?"radio-item--solution-selected":""}`,value:o,id:t.id,disabled:a,children:(0,i.jsx)(br.C1,{})})}),(0,i.jsx)("label",{className:`radio-item__label\n                    ${l||a||r===yy.SUBMITTED?"radio-item__label--no-interaction":""}\n                    ${e===o&&(a||l)?"radio-item__label--solution-selected":""}`,htmlFor:t.id,children:(0,i.jsxs)("div",{className:"radio-item__text"+(t.partner?"--conversation":""),children:[t.partner&&(0,i.jsx)(Tm,{partner:t.partner}),t.value&&(0,i.jsx)(Ng,{text:t.value,imageClassName:"max-h-[300px]",className:"list-inside pl-0"})]})})]});return(0,i.jsx)("div",{className:"select-item",children:s?(0,i.jsx)(ig,{entryIndex:e,customClassName:"px-0.5 pr-3",entry:o,isCorrect:s&&n,children:c()}):(0,i.jsx)("div",{className:"select-item--task",children:c()})})},_f=({options:e,onValueChange:t,entry:n,optionId:r,disabled:a=!1,correct:o,lessonState:s,isExampleSolution:l})=>{const{t:c}=(0,k.Bd)(),d=s===yy.SUBMITTED&&""===n&&""===r&&!l;return(0,i.jsxs)("div",{className:"single-select",children:[e&&(0,i.jsx)(br.bL,{className:"single-select__radio-group",disabled:a,"aria-labelledby":"single-entry-label",onValueChange:t,children:e.map((e=>(0,i.jsx)(Cf,{entry:n,option:e,correct:o,lessonState:s,isExampleSolution:l},e.id)))}),d&&(0,i.jsx)(Sf,{text:c("eksdi.noAnswer")})]})},jf=({item:e,setUserEntries:t,lessonState:n,disabled:r=!1,lineIndex:a})=>(0,i.jsx)("div",{className:"single-entry",children:(0,i.jsxs)("div",{className:"single-entry-content",children:[(null==e?void 0:e.value)&&(0,i.jsx)("div",{className:"single-entry-content__value",id:"single-entry-label",children:(0,i.jsx)(Ng,{text:e.value})}),(0,i.jsx)(_f,{options:e.options,entry:e.entry,optionId:e.optionId,lessonState:n,disabled:r||e.isExampleSolution,correct:e.correct,onValueChange:n=>{const i=e.options.find((e=>e.value===n));t((e=>e.map((e=>{if(e.lineIndex===a){const t=JSON.parse(JSON.stringify(e));return t.entry=null==i?void 0:i.value,t.optionId=null==i?void 0:i.id,t}return e}))))},isExampleSolution:e.isExampleSolution})]})},e.lineIndex);var Nf=n(17607),Lf={};Lf.styleTagTransform=q(),Lf.setAttributes=B(),Lf.insert=R().bind(null,"head"),Lf.domAPI=M(),Lf.insertStyleElement=F();P()(Nf.A,Lf);Nf.A&&Nf.A.locals&&Nf.A.locals;const Pf=({word:e,wordStartIndex:t,substringIndices:n,setSubstringIndices:r})=>{const a=e=>{const i=t+e;if(n.has(i)){return n.get(i).isExampleSolution?"text-select--example-solution":"text-select--selected"}return""},o=e=>{const i=t+e,r=n.get(i);return r&&r.isExampleSolution};return(0,i.jsx)("div",{className:"word-popover__word",children:null==e?void 0:e.split("").map(((e,s)=>(0,i.jsx)(N.$,{variant:"plain",onClick:()=>(e=>{const i=t+e;n.has(i)?n.delete(i):n.set(i,{start:i,end:i+1}),r(new Map(n))})(s),disabled:o(s),className:`word-popover__letter ${a(s)}`,ariaLabel:e,children:e},e+"-"+s)))})},Df=({word:e,id:t,wordStartIndex:n,open:a,resetState:o,substrings:s,setNewSubstring:l})=>{const{t:c}=(0,k.Bd)(),d=(0,J.Ay)(),[u,p]=(0,r.useState)(),[h,m]=(0,r.useState)(new Map);if((0,r.useEffect)((()=>{s&&m((e=>{const t=new Map;for(const n of e){const{start:e,end:i}=n;for(let r=e;r<=i-1;r++){const e=Object.assign(Object.assign({},n),{start:r,end:r+1});t.set(r,e)}}return t})(s))}),[s]),(0,r.useEffect)((()=>{if(t){const e=document.getElementById(t);e&&p(e.getBoundingClientRect())}}),[t]),!u||!e)return;const g=()=>{m(new Map),o()};return(0,i.jsx)(Ys.bL,{onOpenChange:g,open:a,children:(0,i.jsx)(Ys.ZL,{container:(()=>{const e=document.getElementById("lesson-player");return e||document.getElementById("fullscreen-container")})(),children:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ys.l9,{asChild:!0,children:(0,i.jsx)("span",{className:"absolute",style:{top:window.scrollY+u.bottom-(d?25:7),left
2:u.left}})}),(0,i.jsx)(Ys.UC,{className:"popover__content",align:d?"center":"end",side:d?"bottom":"right",style:{maxWidth:"calc(var(--radix-popover-content-available-width))"},children:(0,i.jsxs)("div",{className:"word-popover__content",children:[(0,i.jsx)(Pf,{wordStartIndex:n,word:e,substringIndices:h,setSubstringIndices:m}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{const e=new Map([...h.entries()].sort(((e,t)=>e[0]-t[0])));l(Array.from(e.values())),g()},ariaLabel:c("eksdi.confirm"),autofocus:!0,children:(0,i.jsx)("span",{children:c("eksdi.confirm")})})]})})]})})})},Mf=new Set([".","!","?","|",";",",",":",'"',"'","„","“"]),Of=({text:e,lineIndex:t,startIndex:n=0,lessonState:a,getSubstringForIndex:o,highlightWord:s,handleWordClick:l})=>{let c=n;return(0,i.jsx)(i.Fragment,{children:e.split(" ").map(((e,n)=>{const d=`line-${t}-word-${n}`,u=c,{wordWithoutPunctuation:p,punctuationBefore:h,punctuationAfter:m}=(e=>{let t=0,n=e.length-1;for(;t<=n&&Mf.has(e[t]);)t++;for(;n>=t&&Mf.has(e[n]);)n--;return{wordWithoutPunctuation:e.slice(t,n+1),punctuationBefore:e.slice(0,t),punctuationAfter:e.slice(n+1)}})(e),g=o(u),f=s(p,u+h.length,g);return c+=e.length+1,(0,i.jsxs)(r.Fragment,{children:[(0,i.jsxs)("button",{onClick:(null==g?void 0:g.isExampleSolution)?void 0:()=>l(u+h.length,p,d),id:d,className:a===yy.SOLUTION||a===yy.TEACHER_SOLUTION||a===yy.SUBMITTED?"":"clickable-word",disabled:(null==g?void 0:g.isExampleSolution)||a===yy.SOLUTION||a===yy.TEACHER_SOLUTION||a===yy.SUBMITTED||0===(null==e?void 0:e.length),type:"button",children:[h,f,m]})," "]},d)}))})},Rf=({text:e,substrings:t,lineIndex:n,lessonState:r,getSubstringForIndex:a,highlightWord:o,handleWordClick:s})=>{const l=[];let c=0;return t.forEach((({start:t,end:d,correct:u,isExampleSolution:p})=>{if(t>c&&l.push((0,i.jsx)(Of,{text:e.slice(c,t),lineIndex:n,startIndex:c,lessonState:r,getSubstringForIndex:a,highlightWord:o,handleWordClick:s},`line-${n}-word-${c}`)),r!==yy.SUBMITTED||p){const c=e.slice(t,d);l.push((0,i.jsx)("span",{className:c.includes(" ")?"phrase-group "+(p||r===yy.SOLUTION||r===yy.TEACHER_SOLUTION?"phrase-group--solution":""):"",children:(0,i.jsx)(Of,{text:c,lineIndex:n,startIndex:t,lessonState:r,getSubstringForIndex:a,highlightWord:o,handleWordClick:s})},`line-${n}-word-${t}`))}else l.push((0,i.jsx)(ig,{customClassName:"px-1 align-baseline",entry:e.slice(t,d),isCorrect:u,entryIndex:`key-${t}-${d}`},`key-${t}-${d}`));c=d})),c<e.length&&l.push((0,i.jsx)(Of,{text:e.slice(c),lineIndex:n,startIndex:c,lessonState:r,getSubstringForIndex:a,highlightWord:o,handleWordClick:s},`line-${n}-word-${c}`)),l},zf=({text:e,substrings:t,lessonState:n,lineIndex:a,setNewSubstring:o,handleSelection:s,selectWholeWord:l,selectType:c})=>{const[d,u]=(0,r.useState)(),[p,h]=(0,r.useState)(),[m,g]=(0,r.useState)(),f=(e,i,r)=>{if(n!==yy.SOLUTION&&n!==yy.TEACHER_SOLUTION&&n!==yy.SUBMITTED)if(c===Uf.WORD)s({start:e,end:e+i.length});else if(c===Uf.PHRASE){const n=null==t?void 0:t.find((e=>null==e?void 0:e.isFirstSelectedWord));0!==t.length&&n?n.start<e+i.length?s({start:n.start,end:e+i.length}):n.end>e&&s({start:e,end:n.end}):s({start:e,end:e+i.length,isFirstSelectedWord:!0})}else g(e),u(i),h(r)},v=e=>null==t?void 0:t.find((({start:t,end:n})=>e>=t&&e<n)),b=e=>{const t=[];return(e.isExampleSolution||n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&t.push("highlighted-text--solution"),t.join(" ")},y=(e,t,n,r,a)=>r&&c!==Uf.PHRASE?(0,i.jsx)(ig,{customClassName:"px-1 align-baseline",entryIndex:t,entry:e,isCorrect:a.correct},t):(0,i.jsx)("span",{className:""+(n?`highlighted-text ${b(a)}`:""),children:e},t),x=(e,t,i)=>{const r=void 0!==i,a=n===yy.SUBMITTED&&i&&!i.isExampleSolution;return l?y(e,t,r,a,i):e.split("").map(((e,i)=>{const r=t+i,a=v(r),o=void 0!==a,s=n===yy.SUBMITTED&&a&&!a.isExampleSolution;return y(e,r,o,s,a)}))};return(0,i.jsxs)("div",{className:"highlighted-text-container",children:[c===Uf.PHRASE&&(null==t?void 0:t.length)?(0,i.jsx)(Rf,{text:e,substrings:t,lineIndex:a,lessonState:n,getSubstringForIndex:v,highlightWord:x,handleWordClick:f}):(0,i.jsx)(Of,{text:e,lineIndex:a,startIndex:0,lessonState:n,getSubstringForIndex:v,highlightWord:x,handleWordClick:f}),!l&&(0,i.jsx)(Df,{wordStartIndex:m,word:d,id:p,open:!!d,resetState:()=>{u(void 0),h(void 0),g(void 0)},substrings:t,setNewSubstring:o})]})},Bf=({item:e,lessonState:t,lineIndex:n,selectType:a,updateEntries:o})=>{var s,l;const{t:c}=(0,k.Bd)(),[d,u]=(0,r.useState)(e.substrings?e.substrings:[]),p=a===Uf.WORD||a===Uf.PHRASE,h=t===yy.SUBMITTED?0===(null===(s=e.substrings)||void 0===s?void 0:s.length)||(null===(l=e.substrings)||void 0===l?void 0:l.every((e=>e.isExampleSolution)))&&!e.correct:void 0,m=t=>{e.substrings=t,u(t),o&&o()};return(0,i.jsxs)("div",{className:"text-value",children:[(0,i.jsxs)("div",{className:"text-value__text",children:[e.partner&&(0,i.jsx)(Tm,{partner:e.partner}),(null==e?void 0:e.value)&&(0,i.jsx)(zf,{text:e.value,substrings:e.substrings?e.substrings:[],lessonState:t,lineIndex:n,setNewSubstring:m,handleSelection:e=>{if(e&&d){const t=[];let n=!1;d.forEach((i=>{const r=a===Uf.PHRASE&&((e,t)=>t.start<e.start&&t.end>e.end||t.start<e.start&&t.end>=e.start&&t.end<=e.end||t.start>=e.start&&t.start<=e.end&&t.end>e.end)(i,e),o=a===Uf.PHRASE&&((e,t)=>t.start>=e.start&&t.end<=e.end)(i,e),s=((e,t)=>e.start===t.start&&e.end===t.end)(i,e);s||r||o?r||(n=!0):t.push(i)})),n||t.push(e),(e=>{const t=[...new Set(e.map((e=>JSON.stringify(e))))].map((e=>JSON.parse(e)));t.sort(((e,t)=>e.start-t.start)),m(t)})(t)}},selectWholeWord:p,selectType:a})]}),t===yy.SUBMITTED&&h&&!e.correct&&(0,i.jsx)(Sf,{text:c("eksdi.noEdit")}),t===yy.SUBMITTED&&!h&&!e.correct&&(0,i.jsx)(Sf,{text:c("eksdi.notAllAnswers")})]})};var Uf;!function(e){e.CHAR="character",e.WORD="word",e.PHRASE="phrase_wording"}(Uf||(Uf={}));const Ff=({graphic:e,lessonState:t,values:n,setUserEntries:r})=>{const{imageContainerRef:a,imageDimensions:o}=vf(),s=e=>{const t=null==n?void 0:n.map((t=>t.entryIndex===e.toString()?Object.assign(Object.assign({},t),{correct:!t.correct}):Object.assign({},t)));r&&r(t)},l=e=>{if(!n)return"";{const i=n.find((t=>t.entryIndex===e.toString()));if(i){if(t===yy.SOLUTION||t===yy.TEACHER_SOLUTION||t===yy.SUBMITTED)return i.correct?"border-4 border-textSuccess":"border-4 border-textCritical";if(i.correct)return"border-4 border-attraction"}}},c=e=>{if(n){const t=n.find((t=>t.entryIndex===e.toString()));return t&&(null==t?void 0:t.entry)?t.entry:void 0}};return(0,i.jsxs)("div",{ref:a,className:"relative max-h-[400px]",children:[(0,i.jsx)(kg,{imageKey:e.image,sizes:"100vw",className:"max-h-[400px]",altText:e.imageDescription}),e.areas.map((e=>(0,i.jsx)(hf,{area:e,imageDimensions:o,type:"graphichotspot",onClick:t===yy.INITIAL||t===yy.MODIFIED?s:void 0,text:t!==yy.INITIAL&&t!==yy.MODIFIED?c(e.index):void 0,className:`p-4 ${l(e.index)}`},e.index)))]})};var Vf=n(44467),qf={};qf.styleTagTransform=q(),qf.setAttributes=B(),qf.insert=R().bind(null,"head"),qf.domAPI=M(),qf.insertStyleElement=F();P()(Vf.A,qf);Vf.A&&Vf.A.locals&&Vf.A.locals;const Hf=({lineIndex:e,option:t,lessonState:n,onChange:r,isResultWithoutEntry:a})=>{const o=n===yy.SUBMITTED&&!t.isExampleSolution&&!a,s=n===yy.SOLUTION||n===yy.TEACHER_SOLUTION,l=()=>{(null==t?void 0:t.isExampleSolution)||r(e,t.id)},c=()=>(0,i.jsx)(Ln.o,{checked:t.checked,value:t.value,onChange:l,disabled:t.isExampleSolution||s||n===yy.SUBMITTED,className:`\n                    ${t.isExampleSolution||s||n===yy.SUBMITTED?"a
2pp-checkbox__input--eksdi__no-interaction ":""}\n                    ${t.isExampleSolution||s&&t.checked?"app-checkbox__input--eksdi__solution":o&&t.correct?"app-checkbox__input--eksdi__correct":o&&!t.correct?"app-checkbox__input--eksdi__wrong":""}`,id:`option-${t.id}`,displayCheckIcon:!1,children:(0,i.jsxs)("div",{className:`multiple-select__checkbox-label\n                    ${t.partner?"multiple-select__checkbox-label--conversation":""}\n                    ${t.isExampleSolution||t.checked&&s?"multiple-select__checkbox-label--solution":""}\n                    ${s||n===yy.SUBMITTED?"multiple-select__checkbox-label--no-interaction":""}\n                `,children:[t.partner&&(0,i.jsx)(Tm,{partner:t.partner}),t.value&&(0,i.jsx)(Ng,{text:t.value,imageClassName:"max-h-[300px]",className:"list-inside pl-0"})]})});return(0,i.jsx)("div",{className:"multiple-select__options",children:o?(0,i.jsx)(ig,{entryIndex:t.id,customClassName:"px-0.5",entry:t.value,isCorrect:t.correct,children:c()}):(0,i.jsx)("div",{className:"multiple-select__checkboxes",children:c()})})},Gf=({item:e,lessonState:t,onChange:n})=>{var r;const{t:a}=(0,k.Bd)(),o=t===yy.SUBMITTED&&!e.options.some((e=>e.checked&&!e.isExampleSolution));return(0,i.jsxs)("div",{className:"multiple-select__container",children:[(0,i.jsxs)("div",{className:"multiple-select",children:[(0,i.jsx)(Ng,{text:null==e?void 0:e.value}),null===(r=null==e?void 0:e.options)||void 0===r?void 0:r.map((r=>(0,i.jsx)(Hf,{lineIndex:null==e?void 0:e.lineIndex,option:r,lessonState:t,onChange:n,isResultWithoutEntry:o},r.id)))]}),o&&(0,i.jsx)(Sf,{text:a("eksdi.noAnswer")})]})},Kf=({matchData:e,entries:t,lessonState:n,solution:r,result:a,numbering:o})=>{const s=null===(l=n===yy.INITIAL||n===yy.MODIFIED?t:n===yy.SOLUTION||n===yy.TEACHER_SOLUTION?r:n===yy.SUBMITTED?a:[])||void 0===l?void 0:l.filter((t=>t.matchId===e.id));var l;const c=null==s?void 0:s.every((e=>e.correct));return(0,i.jsxs)("div",{children:[e.value&&(0,i.jsx)(Ng,{text:e.value,className:"sequence-match__heading sequence-match__heading--single"}),(0,i.jsx)("div",{className:"sequence-single-match--row__border sequence-single-match--padding",children:(0,i.jsxs)("div",{className:"sequence-single-match sequence-single-match--row "+(n===yy.SUBMITTED||n===yy.SOLUTION||n===yy.TEACHER_SOLUTION?"gap-1":""),children:[(n===yy.INITIAL||n===yy.MODIFIED)&&s.map(((e,t)=>(0,i.jsx)(Af,{value:e,lessonState:n},"base-"+t))),(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&(null==s?void 0:s.map(((e,t)=>(0,i.jsx)(Af,{value:e,lessonState:n},"solution-"+t)))),n===yy.SUBMITTED&&(0,i.jsx)(ig,{entryIndex:"submitted-"+o,customClassName:"px-3",entry:"",isCorrect:c,children:null==s?void 0:s.map(((e,t)=>e.entry?(0,i.jsx)(Af,{value:e,lessonState:n,displayCorrect:!1},"submitted-"+t):(0,i.jsx)("span",{className:"noData"},"submitted-"+t)))})]})})]})};var $f=n(10998),Wf={};Wf.styleTagTransform=q(),Wf.setAttributes=B(),Wf.insert=R().bind(null,"head"),Wf.domAPI=M(),Wf.insertStyleElement=F();P()($f.A,Wf);$f.A&&$f.A.locals&&$f.A.locals;var Xf;function Yf(){return Yf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Yf.apply(null,arguments)}const Jf=e=>r.createElement("svg",Yf({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,fill:"none"},e),Xf||(Xf=r.createElement("path",{fill:"#fff",d:"M12 3a3 3 0 0 0-3 3v4a3 3 0 1 0 6 0V6a3 3 0 0 0-3-3m0-2a5 5 0 0 1 5 5v4a5 5 0 0 1-10 0V6a5 5 0 0 1 5-5M3.055 11H5.07a7.002 7.002 0 0 0 13.858 0h2.016A9.004 9.004 0 0 1 13 18.945V23h-2v-4.055A9.004 9.004 0 0 1 3.055 11"})));var Zf;function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Qf.apply(null,arguments)}const ev=e=>r.createElement("svg",Qf({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Zf||(Zf=r.createElement("path",{fill:"#111212",d:"M15 7a1 1 0 0 1 2 0v10a1 1 0 0 1-2 0zM7 7a1 1 0 0 1 2 0v10a1 1 0 1 1-2 0z"})));var tv;function nv(){return nv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},nv.apply(null,arguments)}const iv=e=>r.createElement("svg",nv({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),tv||(tv=r.createElement("path",{fill:"#111212",d:"M19.376 12.416 8.777 19.482A.5.5 0 0 1 8 19.066V4.934a.5.5 0 0 1 .777-.416l10.599 7.066a.5.5 0 0 1 0 .832"})));var rv=n(27004),av={};av.styleTagTransform=q(),av.setAttributes=B(),av.insert=R().bind(null,"head"),av.domAPI=M(),av.insertStyleElement=F();P()(rv.A,av);rv.A&&rv.A.locals&&rv.A.locals;const ov=({audioUrl:e,audioDuration:t})=>{const{t:n}=(0,k.Bd)(),a=(0,r.useRef)(null),[o,s]=(0,r.useState)(!1),[l,c]=(0,r.useState)(0),[d,u]=(0,r.useState)(t);(0,r.useEffect)((()=>{const e=a.current;if(e){const t=()=>{e&&!isNaN(e.duration)&&e.duration!==1/0&&u(e.duration)},n=()=>{e&&!isNaN(e.duration)&&e.duration!==1/0&&u(e.duration)},i=()=>{e&&c(e.currentTime)},r=()=>{s(!1)};return e.addEventListener("timeupdate",i),e.addEventListener("loadedmetadata",t),e.addEventListener("durationchange",n),e.addEventListener("ended",r),e.load(),()=>{e&&(e.removeEventListener("timeupdate",i),e.removeEventListener("loadedmetadata",t),e.removeEventListener("durationchange",n),e.removeEventListener("ended",r))}}}),[e]);return(0,i.jsxs)("div",{className:"custom-audio-player",children:[(0,i.jsx)("audio",{id:"a",ref:a,src:e,preload:"metadata"}),(0,i.jsx)(N.$,{onClick:()=>{const e=a.current;e&&(o?e.pause():e.play(),s(!o))},icon:o?(0,i.jsx)(Ue.I,{source:ev,accessibilityLabel:n("ui.icons.pause")}):(0,i.jsx)(Ue.I,{source:iv,accessibilityLabel:n("ui.icons.play")})}),(0,i.jsx)("input",{type:"range",value:l,max:d,onChange:e=>{const t=a.current;t&&(t.currentTime=parseFloat(e.target.value),c(t.currentTime))}}),(0,i.jsx)("span",{className:"custom-audio-player__time",children:o?sv(l):isNaN(d)?"0:00":sv(d)})]})},sv=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t<10?`0${t}`:`${t}`}:${n<10?`0${n}`:`${n}`}`},lv={sequence:({entries:e,lessonState:t,setUserEntries:n,solution:r,result:a,values:o})=>{return(0,i.jsx)(Dg,{items:(s=t,{INITIAL:o,MODIFIED:o,SOLUTION:r,TEACHER_SOLUTION:r,SUBMITTED:a}[s]),setUserEntries:n,entries:e,type:t});var s},openquestion:({entries:e,lessonState:t,setUserEntries:n,lessonid:r,values:a,aifeedback:o,solution:s,submitLesson:l})=>{var c;const d=(null==e?void 0:e.length)>0?e[0]:void 0,u=(null==s?void 0:s.length)>0?s[0]:void 0;d&&"TEACHER_SOLUTION"===t&&u&&!d.sampleSolution?d.sampleSolution=u.sampleSolution:d&&"SUBMITTED"!==t&&"TEACHER_SOLUTION"!==t&&(d.feedback=[],d.sampleSolution="");const p=(null==a?void 0:a.length)>0?null===(c=a[0])||void 0===c?void 0:c.entry:void 0;return(0,i.jsx)(i.Fragment,{children:d&&(0,i.jsx)($g,{entry:d,setUserEntries:n,lessonState:t,lessonid:r,originalValue:p,aifeedback:o,submitLesson:l})})},gapmatch:({entries:e,lessonState:t,setUserEntries:n,solution:a,result:o,options:s})=>{const[l,c]=(0,r.useState)(s),d=new Wg(n,c);return(0,r.useEffect)((()=>{const n=[],i=t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?a:e;
2s.forEach((e=>{let t=e.uses;e.exampleSolution!==jm.FULL&&(null==i||i.forEach((n=>{const i=n.entries.filter((t=>t.optionId===e.id));t-=i.length})));const r={uses:t,value:e.value,id:e.id,exampleSolution:e.exampleSolution};n.push(r)})),c(n.filter((e=>e.uses>0)))}),[s,e,a,t]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(nf,{dragAndDropHandler:d,options:s,entries:e,gapOptionsEntries:l,dropAnimation:!0,children:[(0,i.jsx)(rf,{gapOptionsEntries:l,lessonState:t}),(0,i.jsxs)("div",{className:"gap-match-lesson",children:[(t===yy.INITIAL||t===yy.MODIFIED)&&e.map((e=>(0,i.jsx)(Xg,{entry:e,lessonState:t},e.value))),(t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)&&(null==a?void 0:a.map((e=>(0,i.jsx)(Xg,{entry:e,lessonState:t},e.value)))),t===yy.SUBMITTED&&(null==o?void 0:o.map((e=>(0,i.jsx)(Xg,{entry:e,lessonState:t},e.value))))]})]})})},linematch:({lessonid:e,entries:t,lessonState:n,setUserEntries:a,solution:o,result:s,options:l,headers:c})=>{const[d,u]=(0,r.useState)(!1),[p,h]=(0,r.useState)([]),[m,g]=(0,r.useState)(p),[f,v]=(0,r.useState)(0),[b,y]=(0,r.useState)(new Map),x=new af(a);(0,r.useEffect)((()=>{!d&&t&&t.length>0&&l&&l.length>0&&u(!0),h(l)}),[d,t,l]),(0,r.useEffect)((()=>{f>0&&v(-1)}),[e]),(0,r.useEffect)((()=>{if(d&&(n===yy.INITIAL||n===yy.MODIFIED)){const e=new Map;p.forEach(((t,n)=>{null!=t.exampleSolution?e.set(String(n+1),{id:t.id,value:""}):e.set(String(n+1),t)})),y(e)}}),[d,p]),(0,r.useEffect)((()=>{if(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)g(l);else{const e=[];p.forEach((n=>{const i=t.filter((e=>e.optionId===n.id));if(i&&0!==i.length){const t=n.uses-i.length,r=Object.assign(Object.assign({},n),{uses:t});e.push(r)}else e.push(n)})),g(e)}}),[t,n,p]);const w=(0,r.useCallback)((e=>{if(e.optionId){const t=((e,t)=>{for(const[n,i]of e.entries())if((null==i?void 0:i.id)===t)return n})(b,e.optionId);t&&((e,t)=>{if(e!==t){const n=b.get(t),i=b.get(e);b.set(e,n),b.set(t,i)}})(e.entryIndex,t)}return b.get(e.entryIndex)}),[b]);return t&&0!==t.length?(0,i.jsx)(nf,{dragAndDropHandler:x,options:p,entries:t,gapOptionsEntries:m,line:!0,children:(0,i.jsxs)("div",{className:"line-match-lesson",children:[c&&c.length>0&&(0,i.jsx)("div",{className:"line-match__header",children:c.map(((e,t)=>(0,i.jsx)("div",{children:(0,i.jsx)(Ng,{text:e})},"header-"+t)))}),(0,i.jsx)("div",{className:"line-match__entries-container",children:(0,i.jsxs)("div",{className:"line-match__entries",children:[(n===yy.INITIAL||n===yy.MODIFIED)&&t.map(((e,t)=>(0,i.jsx)(df,{value:e,lessonState:n,option:w(e),highestEntry:f,setHighestEntry:v,index:t},"entry-"+t))),(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&(null==o?void 0:o.map(((e,t)=>(0,i.jsx)(df,{value:e,lessonState:n,highestEntry:f,setHighestEntry:v,index:t},"solution-entry-"+t)))),n===yy.SUBMITTED&&(null==s?void 0:s.map(((e,t)=>(0,i.jsx)(df,{value:e,lessonState:n,highestEntry:f,setHighestEntry:v,index:t},"submitted-"+t))))]})})]})}):(0,i.jsx)(i.Fragment,{})},graphicgapmatch:({entries:e,lessonState:t,setUserEntries:n,solution:a,result:o,options:s,graphic:l})=>{const{imageContainerRef:c,imageDimensions:d}=vf(),[u,p]=(0,r.useState)(s),h=new af(n);return(0,r.useEffect)((()=>{const n=t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?a:e,i=bf(s,n);p(i.filter((e=>e.uses>0)))}),[e,a,t,s]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(nf,{dragAndDropHandler:h,options:s,entries:e,gapOptionsEntries:u,children:[(0,i.jsx)(rf,{gapOptionsEntries:u,lessonState:t}),(0,i.jsxs)("div",{className:"flex-1",children:[(0,i.jsx)("div",{className:"flex justify-center lg:justify-start mb-6",children:(0,i.jsxs)("div",{ref:c,className:"relative max-h-[400px]",children:[(0,i.jsx)(kg,{imageKey:l.image,sizes:"100vw",className:"max-h-[400px]",altText:l.imageDescription}),l.areas.map((e=>(0,i.jsx)(hf,{area:e,imageDimensions:d,type:"graphicgapmatch"},e.index)))]})}),(0,i.jsxs)("div",{className:"graphic-gap-match__gaps",children:[(t===yy.INITIAL||t===yy.MODIFIED)&&e.map((e=>(0,i.jsx)(ff,{value:e,lessonState:t},e.entryIndex))),(t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)&&(null==a?void 0:a.map((e=>(0,i.jsx)(ff,{value:e,lessonState:t},e.entryIndex)))),t===yy.SUBMITTED&&(null==o?void 0:o.map((n=>(0,i.jsx)(ff,{value:n,lessonState:t,entries:e},n.entryIndex))))]})]})]})})},textgap:({lessonState:e,setUserEntries:t,solution:n,result:r,values:a,entr
2ies:o,setLessonState:s})=>{return(0,i.jsx)(xf,{setUserEntries:t,values:(l=e,{INITIAL:a,MODIFIED:a,SOLUTION:n,TEACHER_SOLUTION:n,SUBMITTED:r}[l]),lessonState:e,entries:o,setLessonState:s});var l},inlinechoice:({entries:e,lessonState:t,setUserEntries:n,solution:r,result:a})=>{var o;return(0,i.jsx)("div",{className:"inline-choice",children:null===(o=t===yy.SUBMITTED?a:t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?r:e)||void 0===o?void 0:o.map(((e,r)=>{var a;const o=(e=>null==e?void 0:e.reduce(((e,t)=>(e[t.entryIndex]=t,e)),{}))(e.entries);return(0,i.jsxs)("div",{className:"inline-choice__line",children:[(0,i.jsx)(Tm,{partner:e.partner,className:(null==e?void 0:e.entries)&&(null===(a=null==e?void 0:e.entries)||void 0===a?void 0:a.length)?"pt-3":"pt-1"}),(0,i.jsx)(Ng,{text:e.value,type:"inlinechoice",lineIndex:e.lineIndex,lessonState:t,entriesMap:o,setInlineChoiceEntries:n})]},"text-"+r)}))})},sequencemultiplematch:({entries:e,lessonState:t,setUserEntries:n,solution:a,result:o,options:s,matches:l})=>{const[c,d]=(0,r.useState)(s),u=new af(n);return(0,r.useEffect)((()=>{const n=t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?a:e,i=bf(s,n);d(i.filter((e=>e.uses>0||e.exampleSolution)))}),[a,e,t,s]),(0,i.jsxs)(nf,{dragAndDropHandler:u,options:s,entries:e,gapOptionsEntries:c,dropAnimation:!0,children:[(0,i.jsx)(rf,{gapOptionsEntries:c,lessonState:t}),(0,i.jsx)("div",{className:"multi-match__matches multi-match__matches--sequence",children:l.map(((n,r)=>(0,i.jsx)(Kf,{matchData:n,entries:e,lessonState:t,solution:a,result:o,numbering:r+1},n.id)))})]})},categorymultiplematch:({entries:e,lessonState:t,setUserEntries:n,solution:a,result:o,options:s,matches:l})=>{const[c,d]=(0,r.useState)(s),[u,p]=(0,r.useState)(e),[h,m]=(0,r.useState)(!1),g=new af(n);(0,r.useEffect)((()=>{h||e.length==u.length||p(e)}),[h,e]),(0,r.useEffect)((()=>{t===yy.MODIFIED&&m(!0)}),[t]),(0,r.useEffect)((()=>{const n=t===yy.SOLUTION||t===yy.TEACHER_SOLUTION?a:e,i=bf(s,n);d(i.filter((e=>e.uses>0||e.exampleSolution)))}),[a,e,t,s]);const f=(t,i)=>{const r=h?e:u,a=String(r.length+2),o={id:"added-entry-"+a,entryIndex:a,matchId:t,entry:"",optionId:"",isExampleValue:!1},s=[...r,o];i||h?n(s):p(s)};return(0,i.jsxs)(nf,{dragAndDropHandler:g,options:s,entries:h?e:u,gapOptionsEntries:c,dropAnimation:!0,children:[(0,i.jsx)(rf,{gapOptionsEntries:c,lessonState:t}),(0,i.jsx)("div",{className:"multi-match__matches multi-match__matches--no-sequence",children:l.map((n=>(0,i.jsx)(Tf,{matchData:n,entries:h?e:u,lessonState:t,solution:a,result:o,addEmptyEntry:f},n.id)))})]})},singlechoice:({entries:e,lessonState:t,setUserEntries:n,solution:r,result:a})=>(0,i.jsxs)("div",{className:"single-choice-lesson",children:[(t===yy.INITIAL||t===yy.MODIFIED)&&e.map(((e,r)=>(0,i.jsx)(jf,{item:e,setUserEntries:n,lessonState:t,lineIndex:e.lineIndex},r))),(t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)&&(null==r?void 0:r.map(((e,r)=>(0,i.jsx)(jf,{item:e,setUserEntries:n,lessonState:t,disabled:!0},r)))),t===yy.SUBMITTED&&(null==a?void 0:a.map(((e,r)=>(0,i.jsx)(jf,{item:e,setUserEntries:n,lessonState:t,disabled:!0},r))))]}),textselect:({entries:e,setUserEntries:t,lessonState:n,solution:r,result:a,additionalType:o})=>{const s=o===Uf.WORD||o===Uf.CHAR||o===Uf.PHRASE?o:void 0;return(0,i.jsxs)("div",{className:"text-select-lesson",children:[(n===yy.INITIAL||n===yy.MODIFIED)&&e.map(((r,a)=>(0,i.jsx)(Bf,{item:r,lessonState:n,lineIndex:a,selectType:s,updateEntries:()=>((n,i)=>{const r=[...e];r[i]=n,t(r)})(r,a)},r.lineIndex))),(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&(null==r?void 0:r.map(((e,t)=>(0,i.jsx)(Bf,{item:e,lessonState:n,lineIndex:t,selectType:s},e.lineIndex)))),n===yy.SUBMITTED&&(null==a?void 0:a.map(((e,t)=>(0,i.jsx)(Bf,{item:e,lessonState:n,lineIndex:t,selectType:s},e.lineIndex))))]})},graphichotspot:({entries:e,graphic:t,lessonState:n,setUserEntries:r,solution:a,result:o})=>(0,i.jsxs)(i.Fragment,{children:[(n===yy.INITIAL||n===yy.MODIFIED)&&(0,i.jsx)(Ff,{graphic:t,lessonState:n,values:e,setUserEntries:r}),(n===yy.SOLUTION||n===yy.TEACHER_SOLUTION)&&(0,i.jsx)(Ff,{graphic:t,lessonState:n,values:a}),n===yy.SUBMITTED&&(0,i.jsx)(Ff,{graphic:t,lessonState:n,values:o})]}),multiplechoice:({entries:e,lessonState:t,setUserEntries:n,solution:r,result:a})=>{const o=(t,i)=>{const r=e.map((e=>{if(e.lineIndex===t){const t=e.options.map((e=>e.id===i?Object.assign(Object.assign({},e),{checked:!e.checked}):e));return Object.assign(Object.assign({},e),{options:t})}return e}));n(r)},s=()=>{};return(0,i.jsxs)("div",{className:"multiple-choice-lesson",children:[(t===yy.INITIAL||t===yy.MODIFIED)&&e.map((e=>(0,i.jsx)(Gf,{item:e,lessonState:t,onChange:o},e.lineIndex))),(t===yy.SOLUTION||t===yy.TEACHER_SOLUTION)&&(null==r?void 0:r.map((e=>(0,i.jsx)(Gf,{item:e,lessonState:t,onChange:s},e.lineIndex)))),t===yy.SUBMITTED&&(null==a?void 0:a.map((e=>(0,i.jsx)(Gf,{item:e,lessonState:t,onChange:s},e.lineIndex))))]})},pronounce:({lessonid:e,lessonState:t,entries:n,recordedBlob:a,setRecordedBlob:o})=>{const[s,l]=(0,r.useState)(""),c=(0,r.useRef)(null),d=(0,r.useRef)(null),u=(0,r.useRef)([]),[p,h]=(0,r.useState)(!1),[m,g]=(0,r.useState)(0),[f,v]=(0,r.useState)(0),y=(0,r.useRef)(null),x=(0,r.useRef)(null),w=(0,r.useRef)(null),A=(0,r.useRef)(null),{mutateAsync:T}=(0,ge.u)(),{t:S}=(0,k.Bd)(),{dark:E}=b(),I=document.createElement("audio"),[C,_]=(0,r.useState)("audio/webm");(0,r.useEffect)((()=>
2{if(I)if(""!==I.canPlayType('audio/mp4; codecs="mp4a.40.2"'))_("audio/mp4");else{if(""===I.canPlayType('audio/webm; codecs="opus"'))throw new Error("Neither WebM nor MP4 is supported in this browser.");_("audio/webm")}}),[I]);(0,r.useEffect)((()=>{p&&w.current&&(()=>{const e=new AudioContext,t=e.createMediaStreamSource(c.current),n=e.createAnalyser();t.connect(n),n.fftSize=2048;const i=n.frequencyBinCount,r=new Uint8Array(i),a=w.current,o=a.getContext("2d");a.height=100;const s=a.height/2,l=.8*s,d=()=>{n.getByteTimeDomainData(r),o.fillStyle=getComputedStyle(document.documentElement).getPropertyValue("--surface-information").trim(),o.fillRect(0,0,a.width,a.height);for(let e=0;e<7;e++){const t=r[Math.floor(e/7*i)]/128;let n;n=3===e?t*l:e<3.5?t*l*(e/3.5):t*l*((7-e)/3.5);let c=s-n/2;3===e?c+=2:e>2&&(c+=5);const d=10*e+(a.width-70)/2;c+=5*Math.sin(.005*Date.now()+.2*e),o.fillStyle=E?"#fff":"#000",o.fillRect(d,c,4,n)}requestAnimationFrame(d)};d()})()}),[p]);const j=()=>{clearInterval(y.current),g(0)},L=()=>{d.current&&"recording"===d.current.state&&d.current.stop(),c.current&&c.current.getTracks().forEach((e=>{e.stop()})),h(!1),j(),A.current&&cancelAnimationFrame(A.current)},P=async()=>{try{const e=await navigator.mediaDevices.getUserMedia({audio:!0});c.current=e,d.current=new MediaRecorder(e),d.current.ondataavailable=e=>{e.data.size>0&&u.current.push(e.data)},d.current.onstart=()=>{x.current=Date.now()},d.current.onstop=()=>{const e=new Blob(u.current,{type:C}),t=URL.createObjectURL(e);l(t),o(e),u.current=[];const n=Date.now();v(Math.floor((n-x.current)/1e3))},d.current.start(),h(!0),y.current=setInterval((()=>{g((e=>{const t=e+1;return t>20&&L(),t}))}),1e3)}catch(e){console.error("Error accessing microphone:",e),T({errorMessage:"Error accessing microphone",errorObject:e})}},D=async()=>{l(""),o(null),j()};return(0,r.useEffect)((()=>{a||D()}),[a]),(0,r.useEffect)((()=>{D()}),[e]),(0,i.jsxs)("div",{className:"audio-recorder-lesson",children:[(0,i.jsx)("div",{children:n.map(((e,t)=>(0,i.jsx)(Ng,{text:e.value},t)))}),(0,i.jsxs)("div",{className:"audio-recorder",children:[p&&(0,i.jsxs)("div",{className:"audio-recorder__animation",children:[(0,i.jsx)("canvas",{ref:w,width:"60",height:"50"}),(0,i.jsx)("div",{className:"audio-recorder__time",children:sv(m)})]}),(0,i.jsxs)("div",{className:"audio-recorder__buttons",children:[!p&&!s&&(t===yy.INITIAL||t===yy.MODIFIED)&&(0,i.jsx)(N.$,{onClick:P,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:Jf,accessibilityLabel:S("ui.icons.microphone")}),children:S("eksdi.pronounce.startRecording")}),p&&(0,i.jsx)(N.$,{onClick:L,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:Jf,accessibilityLabel:S("ui.icons.microphone")}),children:S("eksdi.pronounce.stopRecording")})]}),(s&&!p&&t!==yy.SOLUTION||t===yy.SUBMITTED)&&(0,i.jsxs)("div",{className:"w-full",children:[s&&(0,i.jsx)(ov,{audioUrl:s,audioDuration:f}),(0,i.jsxs)("div",{className:"audio-recorder__player-buttons "+(s?"":"my-0"),children:[(0,i.jsx)(N.$,{onClick:D,disabled:t===yy.SUBMITTED,variant:"destructive",icon:(0,i.jsx)(Ue.I,{source:Cr,accessibilityLabel:S("ui.icons.bin")}),className:"border border-textCritical"}),(0,i.jsx)(N.$,{onClick:()=>{D().then((()=>P()))},disabled:t===yy.SUBMITTED,variant:"secondary",icon:(0,i.jsx)(Ue.I,{source:Jf,accessibilityLabel:S("ui.icons.microphone")}),children:S("eksdi.pronounce.retryRecording")})]})]})]}),(0,i.jsx)(fl,{teaserText:S("aiTeaser.pronounceLesson.teaserText"),iconButtonLabel:S("aiTeaser.pronounceLesson.iconLabel"),modalTitle:S("aiTeaser.pronounceLesson.title"),modalText:S("aiTeaser.pronounceLesson.text"),modalOk:S("aiTeaser.pronounceLesson.ok")})]})}},cv=e=>{const{type:t}=e,n=lv[t];return n?(0,i.jsx)(n,Object.assign({},e)):null};var dv;function uv(){return uv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},uv.apply(null,arguments)}const pv=e=>r.createElement("svg",uv({xmlns:"http://www.w3.org/2000/svg",width:28,height:28,fill:"none"},e),dv||(dv=r.createElement("path",{fill:"#3C4141",d:"M14 27.333c-7.364 0-13.333-5.97-13.333-13.334S6.637.666 14 .666s13.334 5.97 13.334 13.333S21.364 27.333 14 27.333m-1.333-14.667v8h2.667v-8zm0-5.333v2.666h2.667V7.333z"})));var hv=n(24322),mv={};
2mv.styleTagTransform=q(),mv.setAttributes=B(),mv.insert=R().bind(null,"head"),mv.domAPI=M(),mv.insertStyleElement=F();P()(hv.A,mv);hv.A&&hv.A.locals&&hv.A.locals;const gv=({lessonType:e,closeBox:t,className:n=""})=>{const{t:r}=(0,k.Bd)();return(0,i.jsxs)("div",{className:`warning-container ${n}`,children:[(0,i.jsxs)("div",{className:"warning-text",children:[(0,i.jsx)("span",{children:(0,i.jsx)(Ue.I,{source:pv,accessibilityLabel:r("ui.icons.info"),className:"w-8"})}),(0,i.jsx)("span",{children:r(`eksdi.warning.${e}`)})]}),(0,i.jsx)("div",{className:"warning-close-button",children:(0,i.jsx)(N.$,{variant:"plain",ariaLabel:r("ui.ariaClose"),title:r("ui.ariaClose"),size:"sm",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:t})})]})},fv={from:{opacity:0},to:{opacity:1},leave:{opacity:0},enter:{opacity:1},config:{duration:200}},vv=({children:e,setShowSolution:t,setHideSolution:n,lessonState:a,assessmentState:o,submitLesson:s,lessonType:l,notAllowedToSubmit:d,exerciseId:u,isSelftest:p})=>{const{t:h}=(0,k.Bd)(),[m,g]=(0,r.useState)(!1),f=(0,c.As)(),v=(0,ct.pn)(m,fv);return(0,r.useEffect)((()=>{d||g(!1)}),[d]),(0,i.jsxs)("section",{className:"lesson-wrapper",id:`lesson-${u}`,children:[(0,i.jsx)("div",{className:"lesson-wrapper__exercise",children:e}),v(((e,t)=>t&&(0,i.jsx)(ct.CS.div,{style:{opacity:e.opacity},children:(0,i.jsx)(gv,{lessonType:l,closeBox:()=>g(!1)})}))),a===yy.TEACHER_SOLUTION&&(0,i.jsx)("div",{className:"lesson-wrapper__submit",children:(0,i.jsx)(N.$,{variant:"primary",onClick:()=>n(),data_cy:"button-hide-solution",children:h("eksdi.task.hideSolution")})}),(a===yy.INITIAL||a===yy.MODIFIED)&&(null==o?void 0:o.submit)>0&&!p&&(0,i.jsxs)("div",{className:"lesson-wrapper__submit",children:[(a===yy.INITIAL||a===yy.MODIFIED)&&(null==o?void 0:o.solve)>0&&"pronounce"!==l&&(-1!==f.authorization.realmAccessRoles.indexOf("teacher")||-1!==f.authorization.realmAccessRoles.indexOf("schooladmin"))&&(0,i.jsx)(N.$,{variant:"primary",onClick:()=>t(),data_cy:"button-solve-lesson",children:h("eksdi.task.showSolution")}),(0,i.jsxs)("div",{className:"lesson-wrapper__submit_col",children:[(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{d?g(!0):s()},data_cy:"button-submit-lesson",children:h("eksdi.task.completeLesson")}),(0,i.jsx)("p",{className:"lesson-wrapper__submit--attempt",children:1===o.submit?h("eksdi.task.leftAttempt"):h("eksdi.task.leftAttempts",{submits:o.submit})})]})]})]})};var bv;function yv(){return yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yv.apply(null,arguments)}const xv=e=>r.createElement("svg",yv({xmlns:"http://www.w3.org/2000/svg",fill:"#111212",viewBox:"0 0 24 24"},e),bv||(bv=r.createElement("path",{d:"M18.537 19.567A9.96 9.96 0 0 1 12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10c0 2.136-.67 4.116-1.81 5.74L17 12h3a8 8 0 1 0-2.46 5.772z"})));var wv;function kv(){return kv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},kv.apply(null,arguments)}const Av=e=>r.createElement("svg",kv({xmlns:"http://www.w3.org/2000/svg",width:41,height:39,fill:"none"},e),wv||(wv=r.createElement("path",{fill:"#F60",d:"m20.5 31.123-12.36 6.92 2.76-13.894L.5 14.53l14.067-1.668L20.5 0l5.933 12.863L40.5 14.531l-10.4 9.617 2.76 13.894zm0-4.016 7.442 4.166-1.662-8.366 6.262-5.79-8.47-1.005L20.5 8.369l-3.572 7.745-8.47 1.004 6.262 5.79-1.662 8.366z"})));var Tv;function Sv(){return Sv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Sv.apply(null,arguments)}const Ev=e=>r.createElement("svg",Sv({xmlns:"http://www.w3.org/2000/svg",width:39,height:37,fill:"none"},e),Tv||(Tv=r.createElement("path",{fill:"#F60",d:"M19.937 29.643 8.18 36.223l2.626-13.213-9.891-9.147 13.378-1.587L19.937.043l5.642 12.233 13.379 1.587-9.891 9.147 2.625 13.213z"})));var Iv=n(39082),Cv={};Cv.styleTagTransform=q(),Cv.setAttributes=B(),Cv.insert=R().bind(null,"head"),Cv.domAPI=M(),Cv.insertStyleElement=F();P()(Iv.A,Cv);Iv.A&&Iv.A.locals&&Iv.A.locals;const _v=({state:e,submitSelfEvaluation:t,lessonid:n})=>{const{t:a}=(0,k.Bd)(),[o,s]=(0,r.useState)(0),[l,c]=(0,r.useState)(0),[d,u]=(0,r.useState)(!1);(0,r.useEffect)((()=>{e&&e.roundedPercent?(c(e.roundedPercent),u(e.roundedPercent>0)):(c(0),u(!1))}),[null==e?void 0:e.roundedPercent]);const p=e=>{d||s(e)},h=()=>{d||s(0)},m=e=>{d||(c(e),u(!0),t(e))};return(0,i.jsx)("div",{className:"flex flex-col gap-6 items-center",children:(0,i.jsx)("form",{className:"star-rating",children:(()=>{const e=[];for(let t=1;t<=5;t++){const r=t/5*100;e.push((0,i.jsxs)("div",{onMouseOver:()=>p(r),onMouseOut:h,className:"flex flex-col px-2 "+(d?"cursor-default":"cursor-pointer"),children:[(0,i.jsx)("input",{type:"radio",id:`star-${r}-lesson-${n}`,name:`rating-${n}`,value:r,checked:r===l,onChange:()=>m(r),disabled:d,className:"opacity-0 h-1"}),(0,i.jsxs)("label",{htmlFor:`star-${r}-lesson-${n}`,className:"star "+(d?"cursor-default":"cursor-pointer"),children:[(0,i.jsx)(Ue.I,{source:r<=(o||l)?Ev:Av,accessibilityLabel:a("ui.icons.star"),className:"star-icon w-10 h-10"}),(0,i.jsxs)("span",{className:"text-sm",children:[r,"%"]})]})]},`rating-${r}-lesson-${n}`))}return e})()})})},jv=({retryLesson:e,state:t,resetLesson:n,lessonState:r,setShowSolution:a,setHideSolution:o,navigateNextLesson:s,lessonType:l,submitSelfEvaluation:c,lessonid:d})=>{const{t:u}=(0,k.Bd)();return(0,i.jsxs)("div",{"data-cy":"edksi-result-box",className:"eksdi-result",children:["openquestion"===l?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h4",{className:"eksdi-result__openQuestion",children:u("eksdi.result.selfEstimationTitle")}),(0,i.jsx)(_v,{state:t,submitSelfEvaluation:c,lessonid:d})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("p",{className:"eksdi-result__percentage",children:[t.roundedPercent,"%"]}),(0,i.jsx)("p",{className:"eksdi-result__text",children:u("eksdi.result.text",{correctAnswers:t.correctCount,total:t.totalCount})})]}),(0,i.jsxs)("div",{className:"eksdi-result__buttons",children:[n&&(r===yy.SUBMITTED||r===yy.SOLUTION)&&(null==t?void 0:t.reset)>0&&(0,i.jsx)(N.$,{variant:"secondary",onClick:n,children:u("eksdi.reset")}),r===yy.SUBMITTED&&(null==t?void 0:t.submit)>0&&(0,i.jsx)(N.$,{variant:"primary",icon:(0,i.jsx)(xv,{}),onClick:e,children:1===(null==t?void 0:t.submit)?u("eksdi.retrySingular"):u("eksdi.retryPlural",{retries:t.submit})}
2),r===yy.SUBMITTED&&(null==t?void 0:t.solve)>0&&(null==t?void 0:t.correctCount)!==(null==t?void 0:t.totalCount)&&"openquestion"!==l&&"pronounce"!==l&&(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{variant:"primary",onClick:()=>a(),data_cy:"button-show-solution",children:u("eksdi.task.showSolution")})}),r===yy.SOLUTION&&(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{variant:"primary",onClick:()=>o(),data_cy:"button-hide-solution",children:u("eksdi.task.hideSolution")})}),s&&(0,i.jsx)(N.$,{variant:"primary",icon:(0,i.jsx)(Ue.I,{source:It.A}),onClick:s,children:u("eksdi.result.nextLesson")})]})]})};var Nv=n(18739);const Lv=({question:e})=>{const t=()=>{const e=document.getElementById("eksdi-exercise-question");e&&(e.style.height="auto")},n=()=>{t();const e=document.getElementById("eksdi-exercise-question");e&&(null==e?void 0:e.getBoundingClientRect())&&(e.style.height=e.getBoundingClientRect().height+"px")};return(0,r.useEffect)((()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)})),[]),(0,r.useEffect)((()=>{t()}),[e]),(0,i.jsx)("h1",{"data-cy":"eksdi-exercise-title",className:"eksdi-exercise-question",id:"eksdi-exercise-question",children:(0,i.jsx)(Ng,{text:e,onImageLoad:()=>{n()}})})};var Pv=n(91485),Dv={};Dv.styleTagTransform=q(),Dv.setAttributes=B(),Dv.insert=R().bind(null,"head"),Dv.domAPI=M(),Dv.insertStyleElement=F();P()(Pv.A,Dv);Pv.A&&Pv.A.locals&&Pv.A.locals;const Mv=({asset:e,assetId:t,playAsset:n,type:r})=>{const a=(0,Re.V)().get("id")===t?"eksdi-asset__link--active":"";return(0,i.jsxs)("div",{className:`eksdi-asset__link ${a}`,onClick:n,children:[(0,i.jsx)("div",{children:(0,i.jsx)(Fc.c,{className:"dau-page-navigation__item__icon w-7 mr-0",format:r})}),(0,i.jsx)("div",{children:(0,i.jsx)("span",{children:e.desc})})]})},Ov=({assets:e,exerciseId:t,mapId:n,type:a,playAssetWithId:o,isEmbedded:s})=>{const d=(0,c.As)(),u=(0,J.Ay)(),p=(0,l.n)(),h=(0,Re.V)(),m=(0,fe.m)(),g=$h(),{pathname:f}=(0,be.zy)(),{t:v}=(0,k.Bd)(),b=(0,r.useCallback)((async e=>{const i=n+"/"+e.id.replace(/\.[^/.]+$/,"");s?o(e.id):(h.set("id",i),h.set("type",a),h.set("minimized","true"),h.set("background","false"),h.set("exerciseId",t),m(f+"?"+h.toString())),g.sendOne({actor:Bh(d.profile.id),verb:Oh,object:qh(i)})}),[n,h,m,f,g,d.profile.id]);if(!e||0===e.length)return;return(0,i.jsx)("div",{children:1===e.length||u&&p?(0,i.jsx)(N.$,{variant:"highlighted",icon:(0,i.jsx)(Fc.c,{format:a}),onClick:()=>b(e[0]),ariaLabel:v("dau.tools.assetButtons."+(a===Si.i_.AUDIO?"audioTooltip":"videoTooltip")),title:v("dau.tools.assetButtons."+(a===Si.i_.AUDIO?"audioTooltip":"videoTooltip"))}):(0,i.jsx)(vi.u,{align:"start",ownIcon:(0,i.jsx)(Fc.c,{format:a}),buttonType:"highlighted",iconOnly:!0,hiddenIcon:!0,asPortal:!1,contentClass:"p-0 z-50",ariaLabel:v("dau.tools.assetButtons."+(a===Si.i_.AUDIO?"audioTooltip":"videoTooltip")),title:v("dau.tools.assetButtons."+(a===Si.i_.AUDIO?"audioTooltip":"videoTooltip")),closeOnElementClick:!0,offlineDisabled:!1,elements:e.map((e=>(0,i.jsx)(Mv,{asset:e,assetId:n+"/"+e.id.replace(/\.[^/.]+$/,""),playAsset:()=>b(e),type:a},e.id)))})})};var Rv=n(94030),zv=n.n(Rv),Bv=n(57662),Uv={};Uv.styleTagTransform=q(),Uv.setAttributes=B(),Uv.insert=R().bind(null,"head"),Uv.domAPI=M(),Uv.insertStyleElement=F();P()(Bv.A,Uv);Bv.A&&Bv.A.locals&&Bv.A.locals;const Fv=(0,r.forwardRef)((function({videoClick:e,durationChange:t,formatType:n},a){const o=(0,r.useRef)(),s=(0,r.useRef)();return(0,r.useEffect)((()=>{const i=o.current,{element:r}=function({container:i}){const r=document.createElement("div");let a;return i.appendChild(r),"video"===n?(a=document.createElement("video"),a.setAttribute("webkit-playsinline","webkit-playsinline"),a.setAttribute("playsInline","playsInline"),a.onclick=e,a.ontimeupdate=t,r.appendChild(a)):(a=document.createElement("audio"),a.onclick=e,a.ontimeupdate=t,r.appendChild(a)),{videoContaienr:r,element:a}}({container:i}),a=new(zv().Player)(r);return s.current={player:a},()=>{for(a.destroy();i.firstChild;)i.removeChild(i.firstChild)}}),[n]),(0,r.useImperativeHandle)(a,(()=>({get player(){return s.current.player},get ui(){return s.current.ui}}))),(0,i.jsx)("div",{className:"shaka-player__video-wrapper",ref:o})}));var Vv=n(79398),qv={};qv.styleTagTransform=q(),qv.setAttributes=B(),qv.insert=R().bind(null,"head"),qv.domAPI=M(),qv.insertStyleElement=F();P()(Vv.A,qv);Vv.A&&Vv.A.locals&&Vv.A.locals;var Hv=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n};const Gv=e=>{var{isPlaying:t,size:n,className:a=""}=e,o=Hv(e,["isPlaying","size","className"]);const{t:s}=(0,k.Bd)(),l=(0,r.useCallback)((()=>{let e="play-button "+a;return e+=n?" play-button--"+n:"",e}),[a,n]),{onClick:c}=o,d=Hv(o,["onClick"]);return(0,i.jsx)("button",Object.assign({},d,{type:"button",className:"group "+l(),onClick:c,"aria-label":s(t?"assetPlayer.pauseAria":"assetPlayer.playAria"),title:s(t?"assetPlayer.pauseAria":"assetPlayer.playAria"),"data-cy":t?"pause-button":"play-button",autoFocus:!0,children:t?(0,i.jsx)(Ue.I,{source:ev}):(0,i.jsx)(Ue.I,{source:iv})}))};var Kv=n(73528),$v={};$v.styleTagTransform=q(),$v.setAttributes=B(),$v.insert=R().bind(null,"head"),$v.domAPI=M(),$v.insertStyleElement=F();P()(Kv.A,$v);Kv.A&&Kv.A.locals&&Kv.A.locals;const Wv=e=>isNaN(e)||!isFinite(e)?"00:00":new Date(1e3*e).toISOString().slice(14,19),Xv=({progressValue:e,progress:t,progressChange:n,duration:r,currentTime:a,seek:o,seekValue:s,reloadSeek:l,className:c,hideDuration:d=!1,markers:u=[],onMarkerClick:p})=>{const{t:h}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"progress "+c,children:[(0,i.jsxs)("div",{className:"slider",children:[(0,i.jsx)("progress",{ref:t,value:e,max:r,onChange:n}),(0,i.jsx)("input",{ref:o,className:"seek",value:s,onChange:l,"aria-label":h("assetPlayer.sliderInputAria"),min:"0",max:r,type:"range",step:"1"}),u.map((e=>(0,i.jsx)("button",{type:"button",className:"slider__task-marker "+(e.submitted?"slider__task-marker--submitted":"slider__task-marker--unsubmitted"),style:{left:`${e.positionPercent}%`},"aria-label":h("assetPlayer.taskMarker",{time:Wv(e.timeSeconds)}),onClick:()=>null==p?void 0:p(e)},e.taskId)))]}),(0,i.jsxs)("div",{className:"slider__time "+(d?"hidden":""),children:[(0,i.jsx)("output",{className:"rounded-md py-0.5 text-sm leading-6 block","aria-live":"off",children:Wv(a)}),(0,i.jsx)("span",{className:"text-sm leading-6 text-textSubdued","aria-hidden":"true",children:" / "}),(0,i.jsx)("span",{className:"rounded-md py-0.5 text-sm leading-6 block",children:r>0&&Wv(r)})]})]})};var Yv=n(26128),Jv={};
2Jv.styleTagTransform=q(),Jv.setAttributes=B(),Jv.insert=R().bind(null,"head"),Jv.domAPI=M(),Jv.insertStyleElement=F();P()(Yv.A,Jv);Yv.A&&Yv.A.locals&&Yv.A.locals;var Zv,Qv;function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},eb.apply(null,arguments)}const tb=e=>r.createElement("svg",eb({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Zv||(Zv=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M8.53 4.47a.75.75 0 0 1 0 1.06L6.81 7.25h6.69a6.25 6.25 0 0 1 6.25 6.25c0 2.184-.935 4.139-2.267 5.261a.75.75 0 1 1-.966-1.146c.964-.813 1.733-2.334 1.733-4.115a4.75 4.75 0 0 0-4.75-4.75H6.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 0 1 1.06 0M5 14.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75",clipRule:"evenodd"})),Qv||(Qv=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M9 15.75a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h1a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25zM7.25 16c0-.966.784-1.75 1.75-1.75h1c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 10 19.75H9A1.75 1.75 0 0 1 7.25 18z",clipRule:"evenodd"})));var nb,ib;function rb(){return rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rb.apply(null,arguments)}const ab=e=>r.createElement("svg",rb({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),nb||(nb=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M15.47 4.47a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H10.5a4.75 4.75 0 0 0-4.75 4.75c0 1.781.769 3.302 1.733 4.115a.75.75 0 1 1-.966 1.146C5.185 17.64 4.25 15.684 4.25 13.5a6.25 6.25 0 0 1 6.25-6.25h6.69l-1.72-1.72a.75.75 0 0 1 0-1.06",clipRule:"evenodd"})),ib||(ib=r.createElement("path",{fill:"#111212",fillRule:"evenodd",d:"M13 14.25a.75.75 0 0 1 .75.75v4a.75.75 0 0 1-1.5 0v-4a.75.75 0 0 1 .75-.75M17 15.75a.25.25 0 0 0-.25.25v2c0 .138.112.25.25.25h1a.25.25 0 0 0 .25-.25v-2a.25.25 0 0 0-.25-.25zm-1.75.25c0-.966.784-1.75 1.75-1.75h1c.966 0 1.75.784 1.75 1.75v2A1.75 1.75 0 0 1 18 19.75h-1A1.75 1.75 0 0 1 15.25 18z",clipRule:"evenodd"}))),ob=({onPlaybackRate:e,playbackrate:t})=>{const[n,a]=(0,r.useState)(t),o=[.7,.8,1,1.2],{t:s}=(0,k.Bd)();(0,r.useEffect)((()=>{a(t)}),[t]);const l=(0,r.useCallback)((t=>{const n=+t.value;a(n),e(n)}),[e]);return(0,i.jsx)(vi.u,{onSelect:l,label:`${n}x`,items:(()=>{const e=[];return o.map((t=>{e.push({label:t+"x",value:t})})),e})(),hiddenIcon:!0,ariaLabel:s("assetPlayer.playbackRateChangeAria"),title:s("assetPlayer.playbackRateChangeAria"),iconOnly:!0,asModal:!0,asPortal:!1,triggerClass:"playback-button"})},sb=({fastBackward:e,fastForward:t,playbackRate:n,setPlaybackrate:r,isMinimized:a})=>{const{t:o}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"player-controls__playback",children:[!a&&(0,i.jsx)(N.$,{variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{source:tb}),onClick:e,ariaLabel:o("assetPlayer.rewindAria"),title:o("assetPlayer.rewindAria")}),!a&&(0,i.jsx)(N.$,{variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{source:ab}),onClick:t,ariaLabel:o("assetPlayer.forwardAria"),title:o("assetPlayer.forwardAria")}),(0,i.jsx)(ob,{playbackrate:n,onPlaybackRate:r})]})};var lb;function cb(){return cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},cb.apply(null,arguments)}const db=e=>r.createElement("svg",cb({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),lb||(lb=r.createElement("path",{fill:"#111212",d:"M21 3a1 1 0 0 1 1 1v7h-2V5H4v14h6v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 10a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zM6.707 6.293l2.25 2.25L11 6.5V12H5.5l2.043-2.043-2.25-2.25z"})));var ub;function pb(){return pb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},pb.apply(null,arguments)}const hb=e=>r.createElement("svg",pb({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ub||(ub=r.createElement("path",{fill:"#111212",d:"M21 3a1 1 0 0 1 1 1v7h-2V5H4v14h6v2H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zm0 10a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zm-9.5-6L9.457 9.043l2.25 2.25-1.414 1.414-2.25-2.25L6 12.5V7z"}
2))),mb=({isMinimized:e,setMinimized:t,isInlinePlayer:n=!1})=>{const{t:r}=(0,k.Bd)(),a=(0,Re.V)(),o=(0,fe.m)();return(0,i.jsx)(N.$,{size:"sm",variant:"plain",onClick:()=>{n||(e?a.delete("minimized"):a.set("minimized","true"),o(location.pathname+"?"+a.toString())),t(!e)},icon:e?(0,i.jsx)(Ue.I,{source:hb}):(0,i.jsx)(Ue.I,{source:db}),ariaLabel:r(e?"assetPlayer.maximize":"assetPlayer.minimize"),title:r(e?"assetPlayer.maximize":"assetPlayer.minimize")})},gb=({openFullscreen:e,isFullscreen:t,setIsFullscreen:n})=>{const{t:a}=(0,k.Bd)(),o=(0,r.useCallback)((()=>{document.fullscreenElement&&document.exitFullscreen(),n(!1)}),[n]);if((0,r.useEffect)((()=>{const e=()=>{(null===document||void 0===document?void 0:document.fullscreenElement)||n(!1)};return document.addEventListener("fullscreenchange",e),()=>{document.removeEventListener("fullscreenchange",e)}}),[n]),e)return(0,i.jsx)(i.Fragment,{children:t?(0,i.jsx)(N.$,{variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{source:nc}),onClick:o,title:a("assetPlayer.fullscreen.exitFullscreenAria"),ariaLabel:a("assetPlayer.fullscreen.exitFullscreenAria"),"aria-pressed":t}):(0,i.jsx)(N.$,{variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{source:Ql}),onClick:e,title:a("assetPlayer.fullscreen.showInFullscreenAria"),ariaLabel:a("assetPlayer.fullscreen.showInFullscreenAria"),"aria-pressed":t})})};var fb;function vb(){return vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vb.apply(null,arguments)}const bb=e=>r.createElement("svg",vb({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),fb||(fb=r.createElement("path",{fill:"#111212",d:"M5.889 16H2a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1h3.889l5.294-4.332a.5.5 0 0 1 .817.387v15.89a.5.5 0 0 1-.817.387zm14.525-4 3.536 3.536-1.414 1.414L19 13.414l-3.536 3.536-1.414-1.414L17.586 12 14.05 8.464l1.414-1.414L19 10.586l3.536-3.536 1.414 1.414z"})));var yb=n(84075),xb={};xb.styleTagTransform=q(),xb.setAttributes=B(),xb.insert=R().bind(null,"head"),xb.domAPI=M(),xb.insertStyleElement=F();P()(yb.A,xb);yb.A&&yb.A.locals&&yb.A.locals;const wb=({isMuted:e,onClick:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsx)(N.$,{onClick:()=>t(e),variant:"plain",size:"sm",icon:(0,i.jsx)(Ue.I,{source:e?bb:xl}),ariaLabel:n(e?"assetPlayer.unmute":"assetPlayer.mute"),title:n(e?"assetPlayer.unmute":"assetPlayer.mute")})};var kb;function Ab(){return Ab=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Ab.apply(null,arguments)}const Tb=e=>r.createElement("svg",Ab({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),kb||(kb=r.createElement("path",{fill:"#111212",d:"M4.52 5.934 1.393 2.808l1.415-1.415 19.799 19.8-1.415 1.414-3.31-3.31A10.95 10.95 0 0 1 12 21c-5.392 0-9.878-3.88-10.82-9a11 11 0 0 1 3.34-6.066m10.237 10.238-1.464-1.464a3 3 0 0 1-4.001-4.001L7.828 9.243a5 5 0 0 0 6.929 6.929M7.974 3.76A11 11 0 0 1 12 3c5.392 
20 9.878 3.88 10.819 9a10.95 10.95 0 0 1-2.012 4.592l-3.86-3.86a5 5 0 0 0-5.68-5.68L7.974 3.761z"}))),Sb=({asset:e,onToggleSubtitle:t,isTextTrackVisible:n})=>{const{t:r}=(0,k.Bd)();return(0,i.jsx)(i.Fragment,{children:"none"!==e.subtitleFormat&&(0,i.jsx)(N.$,{onClick:t,variant:"plain",size:"sm",ariaLabel:r(n?"assetPlayer.showTrackAria":"assetPlayer.hideTrackAria"),title:r(n?"assetPlayer.showTrackAria":"assetPlayer.hideTrackAria"),icon:(0,i.jsx)(Ue.I,{source:n?Om:Tb})})})},Eb=({isMobile:e,isMinimized:t,isFullscreen:n,setFullscreen:a,setIsFullscreen:o,asset:s,onToggleSubtitle:l,isTextTrackVisible:c,isMuted:d,setMuted:u,setIsMinimized:p,isInlinePlayer:h,showMinimizeButton:m=!0})=>{const g=(0,Re.V)(),f=(0,fe.m)(),v=e&&!t;(0,r.useEffect)((()=>{n?g.set("fullscreen","true"):g.delete("fullscreen"),f(location.pathname+"?"+g.toString())}),[f,n,g]);return(0,i.jsxs)("div",{className:"player-controls__controls-right-wrapper",children:[(!e||v)&&(0,i.jsxs)(i.Fragment,{children:["video"===s.format&&(0,i.jsx)(gb,{isFullscreen:n,openFullscreen:a,setIsFullscreen:e=>{e||p("true"===g.get("minimized")),o(e)}}),(0,i.jsx)(Sb,{asset:s,onToggleSubtitle:l,isTextTrackVisible:c}),(0,i.jsx)(wb,{onClick:()=>u(!d),isMuted:d})]}),!n&&m&&(0,i.jsx)(mb,{isMinimized:t,setMinimized:p,isInlinePlayer:h})]})};var Ib;function Cb(){return Cb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Cb.apply(null,arguments)}const _b=e=>r.createElement("svg",Cb({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),Ib||(Ib=r.createElement("path",{fill:"#000",d:"m6.667 9.447 8.519-5.68a.417.417 0 0 1 .647.347v11.777a.417.417 0 0 1-.647.346l-8.52-5.679v5.278a.833.833 0 1 1-1.666 0V4.169a.833.833 0 0 1 1.667 0z"})));var jb;function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Nb.apply(null,arguments)}const Lb=e=>r.createElement("svg",Nb({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),jb||(jb=r.createElement("path",{fill:"#000",d:"m13.333 10.558-8.519 5.68a.417.417 0 0 1-.647-.347V4.114a.417.417 0 0 1 .647-.346l8.52 5.679V4.169a.833.833 0 0 1 1.666 0v11.667a.833.833 0 1 1-1.667 0z"}))),Pb=({isMobile:e,isMinimized:t,previousAssetId:n,nextAssetId:r,changeAssetId:a,duration:o,PlayButtonElement:s})=>{const{t:l}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"player-controls__play-buttons",children:[(0,i.jsx)(N.$,{disabled:!n,variant:"plain",ariaLabel:l("assetPlayer.previousAria"),title:l("assetPlayer.previousAria"),onClick:()=>a(n),icon:(0,i.jsx)(Ue.I,{source:_b}),size:"sm"}),o&&(0,i.jsx)("div",{className:"player-controls__play-button",children:s}),(!t||t&&!e)&&!o&&(0,i.jsx)("div",{className:"animate-pulse player-controls__play-button bg-borderColor rounded-full dark:bg-textSubdued "+(t?"w-5 h-5":e?"h-14 w-14":"h-20 w-20")}),(0,i.jsx)(N.$,{disabled:!r,variant:"plain",ariaLabel:l("assetPlayer.nextAria"),title:l("assetPlayer.nextAria"),onClick:()=>a(r),icon:(0,i.jsx)(Ue.I,{source:Lb}),size:"sm"})]})},Db=({isMobile:e,isMinimized:t,closePlayer:n})=>{const{t:r}=(0,k.Bd)(),a=e&&t;return(0,i.jsxs)("div",{className:"shaka-player-container p-4 flex justify-between items-center",children:[(0,i.jsx)("p",{children:r("error.asset.failLoadMedium")}),a&&(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{onClick:n,variant:"plain",ariaLabel:r("ui.ariaClose"),title:r("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),size:"sm"})})]})},Mb=async(e,t,n)=>{try{const i=await(async e=>{try{const t=await fetch(e);if(!t.ok)return console.error(`Failed to fetch subtitle: ${t.statusText} (${e})`),e;const n=await t.arrayBuffer(),i=(e=>{if(e.trim().startsWith("WEBVTT"))return e;let t=e.replace(/\r\n/g,"\n");return t=t.replace(/^[ \t\u00A0]+$/gm,""),t=t.replace(/\n{3,}/g,"\n\n"),t=t.replace(/(\d+:\d+:\d+),(\d+)/g,"$1.$2"),"WEBVTT\n\n"+t.trim()+"\n"})(new TextDecoder("utf-8").decode(n));return URL.createObjectURL(new Blob([i],{type:"text/vtt"}))}catch(t){return console.error("Error converting subtitles:",t),e}})(t),r=i.startsWith("blob:")||i.endsWith(".vtt"),a=await e.addTextTrackAsync(i,"und","subtitles",r?"text/vtt":"text/srt","",n);return console.log("Subtitle track successfully loaded",a),a}catch(e){throw console.error("Error loading subtitle track:",e),e}},Ob=async(e,t)=>{if(t){return!!await xe.db.storageRequests.where({"asset.id":e,user:t.profile.id}).first()}return!1},Rb=({asset:e,setIsMinimized:t,isMinimized:n,closePlayer:a,audios:d,videos:u,inlineAudios:p,inlineVideos:h,playInlineId:m})=>{var g,f;const v=(0,s.p)(),b=v.format?"hls":"dash",y="audio"===e.format?b+"a":b,x=(0,r.useRef)(""),w=(0,r.useRef)(),A=(0,r.useRef)(),T=(0,r.useRef)(),S=(0,r.useRef)(),E=(0,r.useRef)(),[I,C]=(0,r.useState)(!1),[_,j]=(0,r.useState)(0),[L,P]=(0,r.useState)(),[D,M]=(0,r.useState)("0"),[O,R]=(0,r.useState)(0),[z,B]=(0,r.useState)(!0),[U,F]=(0,r.useState)(!1),V=(0,o.U)(),[q,H]=(0,r.useState)(!1),[G,K]=(0,r.useState)(!1),{t:$}=(0,k.Bd)(),[W,X]=(0,r.useState)(1),Y=(0,J.Ay)(),Z=(0,J.Ay)(1024),Q=(0,l.n)(),{data:ee,refetch:te}=(0,Mc.G)({format:y,id:e.id,isEnabled:!!y&&!!e.id},{hideToast:!0}),ne=(0,r.useRef)(),[ie,re]=(0,r.useState)(null),[ae,oe]=(0,r.useState)(null),se=(0,Re.V)(),le=(0,fe.m)(),ce=!Z&&!n,de=!Y&&n,ue=Y&&n,pe=(0,c.As)(),{mutateAsync:he}=(0,ge.u)(),me=$h();(0,r.useEffect)((()=>{const t=e.format===Si.i_.AUDIO?p:h;if(t&&t.length>0){const n=t.findIndex((t=>t.id===e.value));re(n>0?t[n-1].id:null),n>-1&&n<t.length-1?oe(t[n+1].id):oe(null)}}),[e,p,h]),(0,r.useEffect)((()=>{const t=e.format===Si.i_.AUDIO?d:u;if(t){const n=t.findIndex((t=>t.assetId===e.id));n>0&&t[n-1].allowed?Q?re(t[n-1].assetId):(async(e,t,n)=>{for(let i=e-1;i>=0;i--){const e=t[i].assetId;if(await Ob(e,n))return e}return null})(n,t,pe).then((e=>re(e))):re(null),n<t.length-1&&t[n+1].allowed?Q?oe(t[n+1].assetId):(async(e,t,n)=>{for(let i=e+1;i<=t.length-1;i++){const e=t[i].assetId;if(await Ob(e,n))return e}return null})(n,t,pe).then((e=>oe(e))):oe(null)}}),[e,d,u,Q,pe]);const ve=e=>{p&&p.length>0?m(e):(se.set("id",e),le(location.pathname+"?"+se.toString()))},be=(0,r.useCallback)((()=>{var t;const{player:n}=ne.current;n.g.play(),B(!1),(0,it.r)({productId:null!==(t=e.book.isbn)&&void 0!==t?t:e.book.npNumber,productName:e.title,format:e.format,contentId:e.id,eventType:"playAudioVideoAsset"})}),[]),ye=(null===(f=null===(g=ne.current)||void 0===g?void 0:g.player.g)||void 0===f?void 0:f.paused)||z,xe=e=>{const{player:t}=ne.current;t.setTextTrackVisibility(e),H(e)},we=(0,r.useCallback)((async(t,n,i)=>{const{player:r}=ne.current;let a=t||void 0,o=n,s=!1;try{const t=(await v.api.list()).filter((t=>t.appMetadata.id===e.id));if(t.length>0&&(a=t[0].offlineUri,s=!0,t[0].appMetadata.isSubtitle)){const e=t[0].appMetadata.id,n=await(0,Dc.jC)(e,"srt"),i=new TextDecoder("utf-8").decode(n.binary);o=URL.createObjectURL(new Blob([i],{type:"text/srt"}))}}catch(e){console.log(e),he({errorMessage:"Error loading storedContent in audio/video player",errorObject:e})}if(a)try{await r.load(a,i);let t=r.g.duration;t&&100!==t||(t=Sp(e.duration)),P(t),"srt"===e.subtitleFormat&&(!o||V.isProduction||s||(o=n.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443")),Mb(r,o,$("assetPlayer.subtitles")).catch((e=>console.error("Fehler beim Laden der Untertitel, aber Video sollte laufen:",e))),xe(!1)),!Y&&t&&be(),location.pathname.includes("/eksdi/")&&r.g.addEventListener("ended",(()=>{me.sendOne({actor:Bh(pe.profile.id),verb:Ph,object:qh(e.id)})}))}catch(e){7e3!==(null==e?void 0:e.code)&&(console.log("fail to load shaka player",e),K(!0),he({errorMessage:"Fail to load shaka player",errorObject:e}))}else console.log("Url for media was empty!")}),[V,e,v,Y,be,he]),ke=(0,r.useCallback)((async e=>{x.current=null==ee?void 0:ee.url,await we(null==ee?void 0:ee.url,null==ee?void 0:ee.subtitleUrl,e)}),[null==ee?void 0:ee.url,null==ee?void 0:ee.subtitleUrl]),Ae=(0,r.useCallback)((()=>{var e;(null===(e=null==w?void 0:w.current)||void 0===e?void 0:e.requestFullscreen)&&(t(!1),C(!0),w.current.requestFullscreen())}),[t]),Te=()=>{var e;if(null===(e=null==w?void 0:w.current)||void 0===e?void 0:e.requestFullscreen)return()=>Ae()};(0,r.useEffect)((()=>{se.get("fullscreen")&&Ae();const e=Number(se.get("time"))||0;te().then((()=>{ke(e).then((()=>{}))}))}),[e,te,ke]);const Se=(0,r.useCallback)((()=>{xe(!q)}),[q]),Ee=(0,r.useCallback)((()=>{const{player:e}=ne.current;e.g.currentTime+10<L?e.g.currentTime=e.g.currentTime+10:e.g.currentTime=L}),[L]),Ie=(0,r.useCallback)((()=>{const{player:e}=ne.current,t=e.g.currentTime;let n;n=t>10?t-10:0,e.g.currentTime=n}),[]),Ce=(0,r.useCallback)((()=>{const{player:t}=ne.current;t.g.pause(),B(!0),location.pathname.includes("/eksdi/")&&me.sendOne({actor:Bh(pe.profile.id),verb:Rh,object:qh(e.id)})}),[]),_e=(0,r.useCallback)((()=>{const{player:e}=ne.current;e.g.paused?e.g.play():e.g.pause()}),[]),je=e=>{const t=e.target.currentTime;M(Math.floor(t).toString()),R(Math.floor(t)),j(t)},Ne=(0,r.useRef)(je);Ne.current=je;const Le=(0,r.useCallback)((e=>Ne.current(e)),[]),Pe=(0,r.useCallback)((e=>{F(e);const{player:t}=ne.current;t.g.muted=!!e}),[]),De=(0,r.useCallback)((()=>{}),[]),Me=(0,r.useCallback)((async e=>{const{player:t}=ne.current;M(e.target.value),t.g.currentTime=e.target.value}),[]),Oe=(0,r.useCallback)((e=>{X(e);const{player:t}=ne.current;t.g.playbackRate=e}),[]);return G?(0,i.jsx)(Db,{isMobile:Y,isMinimized:n,closePlayer:a}):(0,i.jsxs)("div",{ref:w,className:`shaka-player-container shaka-player--${e.format} ${I?"shaka-player-container--fullscreen":""} ${ue?"p-0":""} ${ce?"pt-0":""}`,children:[(0,i.jsxs)("div",{className:"player__wrapper "+(ue?"player__wrapper--minimized":""),children:[(0,i.jsx)(Fv,{durationChange:Le,videoClick:_e,ref:ne,formatType:e.format}),(0,i.jsxs)("div",{className:"player__controls "+(Y||de?"flex-col":""),children:[(0,i.jsxs)("div",{className:`player-control
2s__wrapper ${n?"player-controls__wrapper--minimized":""} ${Y?"w-full gap-0":""}`,children:[ce&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pb,{isMobile:Y,isMinimized:n,previousAssetId:ie,nextAssetId:ae,changeAssetId:ve,duration:L,PlayButtonElement:(0,i.jsx)(Gv,{onClick:ye?be:Ce,isPlaying:!ye})}),(0,i.jsx)(sb,{fastBackward:Ie,fastForward:Ee,playbackRate:W,setPlaybackrate:Oe,isMinimized:n})]}),(0,i.jsxs)("div",{className:"player-controls__title-slider-wrapper "+(ue?"items-center":"flex-col justify-center"),children:[ue&&(0,i.jsxs)("div",{className:"player-mobile--minimized",children:[(0,i.jsxs)("div",{className:"flex gap-1 items-center",children:[L&&(0,i.jsx)("div",{className:"p-2",children:(0,i.jsx)(Gv,{onClick:ye?be:Ce,isPlaying:!ye,className:"h-10 w-10"})}),(0,i.jsx)("div",{className:"flex items-center",children:L?(0,i.jsx)("span",{className:"player-controls__title "+(ue?"mb-0":""),title:"Asset Title",onClick:()=>{se.delete("minimized"),le(location.pathname+"?"+se.toString()),t(!1)},children:e.title+(e.description?", "+e.description:"")}):(0,i.jsx)("div",{className:(n?"w-32":"w-52")+" player-controls__title animate-pulse h-2.5 md:h-5 rounded-md bg-borderColor dark:bg-textSubdued"})}),!L&&(0,i.jsx)("div",{className:"animate-pulse self-center ml-2 w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]}),(0,i.jsxs)("div",{className:"flex gap-2 px-2",children:[(0,i.jsx)(mb,{isMinimized:n,setMinimized:t,isInlinePlayer:!(!p&&!h)}),(0,i.jsx)(N.$,{onClick:a,variant:"plain",ariaLabel:$("ui.ariaClose"),title:$("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),size:"sm"})]})]}),(0,i.jsx)(Xv,{progress:S,progressValue:O,progressChange:De,seek:A,seekValue:D,reloadSeek:Me,duration:L,currentTime:_,className:!n||de?"":"hidden",hideDuration:ue})]}),ce&&(0,i.jsx)(Eb,{isMobile:Y,isMinimized:n,isFullscreen:I,setFullscreen:Te(),setIsFullscreen:C,asset:e,onToggleSubtitle:Se,isTextTrackVisible:q,isMuted:U,setMuted:Pe,setIsMinimized:t,isInlinePlayer:!(!p&&!h)})]}),(Z||Y||de)&&(0,i.jsx)("div",{className:"player-controls__control-wrapper",children:(0,i.jsxs)("div",{className:"player-controls__bar "+(de?"gap-2":""),children:[(0,i.jsx)(ob,{playbackrate:W,onPlaybackRate:Oe}),(0,i.jsx)("div",{className:"flex w-full justify-center",children:(0,i.jsx)(Pb,{isMobile:Y,isMinimized:n,previousAssetId:ie,nextAssetId:ae,changeAssetId:ve,duration:L,PlayButtonElement:(0,i.jsx)(Gv,{onClick:ye?be:Ce,isPlaying:!ye,className:""+(!Y&&n?"md:h-14 md:w-14":"")})})}),(0,i.jsx)(Eb,{isMobile:Y,isMinimized:n,isFullscreen:I,setFullscreen:Te(),setIsFullscreen:C,asset:e,onToggleSubtitle:Se,isTextTrackVisible:q,isMuted:U,setMuted:Pe,setIsMinimized:t,isInlinePlayer:!(!p&&!h)})]})})]})]}),(0,i.jsx)(Xv,{className:ue?"visible":"invisible h-0",progress:E,progressValue:O,progressChange:De,seek:T,seekValue:D,reloadSeek:Me,duration:L,currentTime:_,hideDuration:ue})]})},zb=({assets:e,format:t,currentInlineId:n,playInlineId:r,type:a})=>{const o=(0,Re.V)(),{pathname:s}=(0,be.zy)(),l=e=>{if(!r)return o.set("id",e.assetId),o.set("type",t),t===Si.i_.AUDIO&&"augmented"!==a?o.set("background","false"):o.delete("background"),s+"?"+o.toString()};return(0,i.jsx)("div",{children:null==e?void 0:e.map((e=>(0,i.jsx)(td,{asset:e,format:t,link:l(e),currentInlineId:n,playInlineId:r},e.assetId)))})},Bb=({assetsPerPage:e,format:t,page:n,isDoublePage:a,isMinimized:o,currentInlineId:s,playInlineId:l,type:c})=>{const{t:d}=(0,k.Bd)(),u=(0,J.Ay)(),p=!u&&!o,h=u?116:96,m=u?310:575,g=(0,r.useCallback)((()=>{const e=(()=>{const e=document.querySelector(".shaka-player-container"),n=e&&(null==e?void 0:e.clientHeight)?e.clientHeight:t===Si.i_.AUDIO?h:m;if(p)return n;{const e=document.querySelector(".page-list-tabs"),t=(null==e?void 0:e.clientHeight)||49;return(window.innerHeight>0?window.innerHeight:screen.height)-n-t}})(),n=document.querySelector(".page-lists");n&&(n.style.maxHeight=e+"px")}),[h,p,t,m]);return(0,r.useEffect)((()=>(window.addEventListener("resize",g),()=>window.removeEventListener("resize",g))),[g]),(0,r.useEffect)((()=>{e&&g()}),[e,g]),(0,i.jsxs)("div",{className:"page-lists",id:`panel-${t}`,role:"tabpanel","aria-labelledby":`tab-${t}`,children:[a&&e.page.length>0&&(0,i.jsxs)("span",{className:"font-bold py-2 px-1",children:[d("dau.navigation.page")," ",n]}),(0,i.jsx)(zb,{assets:e.page,format:t,currentInlineId:s,playInlineId:l,type:c}),a&&e.doublePage.length>0&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("span",{className:"font-bold py-2 px-1",children:[d("dau.navigation.page")," ",n+1]}),(0,i.jsx)(zb,{assets:e.doublePage,format:t,type:c})]})]})},Ub=({asset:e,audios:t,videos:n,playerActions:a,isMinimized:o,currentInlineId:s,playInlineId:l,type:c})=>{const{t:d}
2=(0,k.Bd)(),u=(0,J.Ay)(),p=(0,Re.V)(),h=p.get("page")?p.get("page"):"1",m="double"===p.get("mode"),[g,f]=(0,r.useState)(),v=!u&&o,b=u&&!o;(0,r.useEffect)((()=>{t&&n?f(e.format===Si.i_.AUDIO&&t.page.length+t.doublePage.length>0?Si.i_.AUDIO:Si.i_.VIDEO):t?f(Si.i_.AUDIO):n&&f(Si.i_.VIDEO)}),[e,t,n]);const y=(0,r.useCallback)((()=>{const e=[],i=(null==n?void 0:n.page.length)+(null==n?void 0:n.doublePage.length),r=(null==t?void 0:t.page.length)+(null==t?void 0:t.doublePage.length);return i>0&&e.push({id:Si.i_.VIDEO,text:d("asset.video"+((null==n?void 0:n.page.length)+(null==n?void 0:n.doublePage.length)>1?"s":"")),num:(null==n?void 0:n.page.length)+(null==n?void 0:n.doublePage.length)||0,onClick:()=>f(Si.i_.VIDEO)}),r>0&&e.push({id:Si.i_.AUDIO,text:d("asset.audio"+((null==t?void 0:t.page.length)+(null==t?void 0:t.doublePage.length)>1?"s":"")),num:(null==t?void 0:t.page.length)+(null==t?void 0:t.doublePage.length)||0,onClick:()=>f(Si.i_.AUDIO)}),e}),[t,d,n]);if((null==n?void 0:n.page.length)+(null==n?void 0:n.doublePage.length)+(null==t?void 0:t.page.length)+(null==t?void 0:t.doublePage.length)!==0)return(0,i.jsxs)("div",{className:"border-borderColor w-full "+(v||b?"px-2":"border-r"),children:[(0,i.jsxs)("div",{className:"page-list-tabs",children:[(0,i.jsx)(Gu,{currentId:g,tabs:y(),className:"tab--asset "+(o?"tab--asset--minimized":"")}),(u||!u&&o)&&a]}),g===Si.i_.VIDEO&&n&&(0,i.jsx)(Bb,{assetsPerPage:n,format:g,page:parseInt(h)||1,isDoublePage:m,isMinimized:o,currentInlineId:s,playInlineId:l}),g===Si.i_.AUDIO&&t&&(0,i.jsx)(Bb,{assetsPerPage:t,format:g,page:parseInt(h)||1,isDoublePage:m,isMinimized:o,currentInlineId:s,playInlineId:l,type:c})]})};var Fb;function Vb(){return Vb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Vb.apply(null,arguments)}const qb=e=>r.createElement("svg",Vb({xmlns:"http://www.w3.org/2000/svg",width:20,height:20,fill:"none"},e),Fb||(Fb=r.createElement("path",{fill:"#111212",d:"M2.5 3.334h15V5h-15zm0 5.833h15v1.667h-15zM2.5 15h15v1.667h-15z"}))),Hb=({asset:e,isMinimized:t,setIsMinimized:n,showAudioVideoList:r,setShowAudioVideoList:a,storedObject:o,onCloseMedium:s,showAudioVideoListToggle:l=!1,showBookmarkAndMenu:c=!0,className:d=""})=>{const{t:u}=(0,k.Bd)(),p=(0,J.Ay)(),h=p&&!t,m=!p&&t;return(0,i.jsxs)("div",{className:`asset-player__actions ${d}`,children:[e.format===Si.i_.ASSESSMENT&&n&&(0,i.jsx)(mb,{isMinimized:t,setMinimized:n,isInlinePlayer:!1}),!t&&c&&(0,i.jsxs)(i.Fragment,{children:[e&&(e.book.isbn||e.book.npNumber)&&e.bookmarkAllowed&&!h&&(0,i.jsx)(fi.X,{asset:{asset:e},size:"sm"}),(0,i.jsx)(ja._,{asset:e,asModal:!1,asPortal:!1,buttonType:"sm"})]}),o&&!h&&!m&&(0,i.jsx)("span",{className:"asset-player__stored-icon",children:u("offline.offline")}),l&&(0,i.jsx)(N.$,{icon:(0,i.jsx)(Ue.I,{source:r?Xi:qb}),onClick:()=>{a&&a(!r)},size:"sm",title:u(r?"assetPlayer.hideListAria":"assetPlayer.showListAria"),ariaLabel:u(r?"assetPlayer.hideListAria":"assetPlayer.showListAria")}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:u("ui.ariaClose"),title:u("ui.ariaClose"),size:"sm",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),className:"medium-player__close",onClick:()=>{s()}})]})},Gb=({onCloseMedium:e,asset:t,isMinimized:n,showAudioVideoList:r,setShowAudioVideoList:a,audios:o,videos:s,currentInlineId:l,playInlineId:c,type:d})=>{const u=(0,J.Ay)(),p=!u&&!n,h=!u&&n,m=u&&!n;return(0,i.jsx)(i.Fragment,{children:(p||r&&(h||m))&&(0,i.jsx)(Ub,{asset:t,audios:o,videos:s,playerActions:(0,i.jsx)(Hb,{asset:t,isMinimized:!(m||p),showAudioVideoList:r,setShowAudioVideoList:a,onCloseMedium:e,showAudioVideoListToggle:!0,className:"p-0"}),isMinimized:n,currentInlineId:l,playInlineId:c,type:d})})};var Kb=n(6674),$b={};$b.styleTagTransform=q(),$b.setAttributes=B(),$b.insert=R().bind(null,"head"),$b.domAPI=M(),$b.insertStyleElement=F();P()(Kb.A,$b);Kb.A&&Kb.A.locals&&Kb.A.locals;const Wb=({onCloseMedium:e,pdfPage:t,numPdfPages:n,asset:r,isMinimized:a,setIsMinimized:o,showAudioVideoList:s,setShowAudioVideoList:l,showListToggle:c=!1,className:d=""})=>{const{t:u}=(0,k.Bd)(),p=(0,Ei.A)(r.id),h=(0,J.Ay)(),{pathname:m}=(0,be.zy)(),{setLearningProgressModalOpen:g,setScrollToLessonId:f}=(0,Pe.Us)(),v=(0,Re.V)(),b=r.format===Si.i_.AUDIO||r.format===Si.i_.VIDEO,y=!h&&a;return(0,i.jsxs)("header",{className:"asset-player__header "+d,children:[(0,i.jsxs)("div",{className:"asset-player__header-top",children:[(0,i.jsxs)("div",{className:"asset-player__format",children:[(y||r.format===Si.i_.HTML||b)&&(0,i.jsx)("h2",{className:`font-bold text-textStrong\n                                ${a?"":"md:text-h5"}\n                            `,children:r.title+(r.description?", "+r.description:"")}),r.format===Si.i_.PDF&&t>=0&&!!n&&(0,i.jsxs)("div",{className:"asset-breadcrumbs  heading-5",children:[r.title,(0,i.jsx)(Ue.I,{source:zc.A}),(0,i.jsxs)("span",{className:"font-bold",children:[u("pdfplayer.page")," ",(0,i.jsxs)("span",{className:"whitespace-nowrap",children:[t," ",u("pdfplayer.pageFrom")," ",n]})]})]}),!h&&(0,i.jsx)(Tu.A,{assetId:"",teacherOnly:r.teacherOnly,role:r.role,accessLocked:r.accessLockState===nr.Jm.LOCKED,accessUnlocked:r.accessLockState===nr.Jm.UNLOCKED,demo:r.demo,addedByNp:r.addedBy,isUhb:m.includes("uhb")})]}),(0,i.jsx)(Hb,{asset:r,isMinimized:a,setIsMinimized:o,showAudioVideoList:s,setShowAudioVideoList:l,storedObject:p,onCloseMedium:()=>{v.get("modal")&&(f(r.id),g(!0)),e()},showAudioVideoListToggle:c})]}),h&&(0,i.jsx)(Tu.A,{assetId:"",teacherOnly:r.teacherOnly,role:r.role,accessLocked:r.accessLockState===nr.Jm.LOCKED,accessUnlocked:r.accessLockState===nr.Jm.UNLOCKED,demo:r.demo,addedByNp:r.addedBy,isUhb:m.includes("uhb")})]})},Xb=e=>e.map((e=>
2({assetId:e.id,title:null==e?void 0:e.title,description:e.desc,allowed:!0}))),Yb=({asset:e,isMinimized:t,setIsMinimized:n,closePlayer:a,inlineAudios:o=[],inlineVideos:s=[],currentInlineId:l,playInlineId:c})=>{const d=(0,J.Ay)(),u={page:Xb(o),doublePage:[]},p={page:Xb(s),doublePage:[]},[h,m]=(0,r.useState)(!0),g=!d&&!t,f=!d&&t,v=d&&!t,b=d&&t;return(0,i.jsx)("div",{className:"asset-player--inline "+(t?"asset-player--minimized":""),children:(0,i.jsxs)("div",{className:""+(f?"block max-w-[380px]":"grid grid-cols-1 md:grid-cols-3"),children:[(0,i.jsx)("div",{className:"bg-surface",children:(0,i.jsx)(Gb,{asset:e,onCloseMedium:a,isMinimized:t,showAudioVideoList:h,setShowAudioVideoList:m,audios:u,videos:p,currentInlineId:l,playInlineId:c})}),(0,i.jsxs)("div",{className:"w-full md:col-span-2",children:[(!h||g)&&!b&&(0,i.jsx)(Wb,{asset:e,onCloseMedium:a,isMinimized:t,showAudioVideoList:h,setShowAudioVideoList:m,showListToggle:v||f,className:f||v?"p-2 pr-0":""}),(0,i.jsx)(Rb,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,inlineAudios:o||[],inlineVideos:s||[],playInlineId:c})]})]})})},Jb=({asset:e,onCloseMedium:t,isMinimized:n,setIsMinimized:r,assessmentNavigation:a,showBookmarkAndMenu:o=!0,className:s=""})=>{const l=(0,Ei.A)(e.id),{setLearningProgressModalOpen:c,setScrollToLessonId:d}=(0,Pe.Us)(),u=(0,J.Ay)(),{pathname:p}=(0,be.zy)(),h=(0,Re.V)();return(0,i.jsxs)("header",{className:"asset-player__header "+s,children:[(0,i.jsxs)("div",{className:"asset-player__header-top",children:[(0,i.jsxs)("div",{className:"asset-player__format",children:[a,e.format===Si.i_.ASSESSMENT&&n&&(0,i.jsx)("h2",{className:`font-bold text-textStrong\n                                ${n?"":"md:text-h5"}\n                            `,children:e.title+(e.description?", "+e.description:"")}),!u&&(0,i.jsx)(Tu.A,{assetId:"",teacherOnly:e.teacherOnly,role:e.role,accessLocked:e.accessLockState===nr.Jm.LOCKED,accessUnlocked:e.accessLockState===nr.Jm.UNLOCKED,demo:e.demo,addedByNp:e.addedBy,isUhb:p.includes("uhb")})]}),(0,i.jsx)(Hb,{asset:e,isMinimized:n,setIsMinimized:r,storedObject:l,onCloseMedium:()=>{h.get("modal")&&(d(e.id),c(!0)),t()},showBookmarkAndMenu:o})]}),u&&(0,i.jsx)(Tu.A,{assetId:"",teacherOnly:e.teacherOnly,role:e.role,accessLocked:e.accessLockState===nr.Jm.LOCKED,accessUnlocked:e.accessLockState===nr.Jm.UNLOCKED,demo:e.demo,addedByNp:e.addedBy,isUhb:p.includes("uhb")})]})};var Zb=n(30715),Qb={};Qb.styleTagTransform=q(),Qb.setAttributes=B(),Qb.insert=R().bind(null,"head"),Qb.domAPI=M(),Qb.insertStyleElement=F();P()(Zb.A,Qb);Zb.A&&Zb.A.locals&&Zb.A.locals;const ey=e=>e.value!==Si.i_.DIDACTIC_UNIT?e.value.slice(0,e.value.indexOf(".xml")):void 0,ty=({asset:e,bookSessionId:t,selftestId:n,nextExercise:r,className:a="",interactiveVideoId:o})=>{const s=e.value!==Si.i_.DIDACTIC_UNIT?[e]:null==e?void 0:e.subassets,{setTriggerDauLearningProgressRefetch:l}=(0,Pe.Us)();return(0,i.jsx)("div",{id:"lesson-player",className:`lesson-player ${a}`,children:s.map((e=>{const a=ey(e),s=((e,t)=>({npNumber:e.book.npNumber,bestandteil:e.book.bestandteil,bezeichnung:e.book.bezeichnung,cover:e.book.coverPath,eksdiId:t,navroot:[],title:e.book.bookTitle,klettBookNumber:e.book.klettBookNumber,roundedPercent:0,attempted:0,total:0,completed:0}))(e,a);return(0,i.jsx)(wy,{eksdiMap:s,refetchEksdiMap:()=>l(!0),bookSessionId:t,exerciseId:a,taskGroupId:e.id,isEmbedded:!0,selftestId:n,nextExercise:r,interactiveVideoId:o},a)}))})},ny=({asset:e,setIsMinimized:t,isMinimized:n,closePlayer:a,inlineVideos:l,onVideoEnded:u,onHideResult:p,lehrtextId:h,resetSignal:m})=>{var g,f,v,b;const y=(0,s.p)(),x=y.format?"hls":"dash",w="audio"===e.format?x+"a":x,A=(0,r.useRef)(""),T=(0,r.useRef)(),S=(0,r.useRef)(),E=(0,r.useRef)(),[I,C]=(0,r.useState)(!1),[_,j]=(0,r.useState)(0),[L,P]=(0,r.useState)(),[D,M]=(0,r.useState)("0"),[O,R]=(0,r.useState)(0),[z,B]=(0,r.useState)(!0),[U,F]=(0,r.useState)(!1),V=(0,o.U)(),[q,H]=(0,r.useState)(!1),[G,K]=(0,r.useState)(!1),{t:$}=(0,k.Bd)(),[W,X]=(0,r.useState)(1),Y=(0,J.Ay)(),Z=(0,J.Ay)(1024),{data:Q,refetch:ee}=(0,Mc.G)({format:w,id:e.id,isEnabled:!!w&&!!e.id},{hideToast:!0}),te=(0,r.useRef)(),ne=(0,Re.V)(),ie=(0,fe.m)(),re=!Z&&!n,ae=!Y&&n,oe=Y&&n,se=(0,c.As)(),{mutateAsync:le}=(0,ge.u)(),ce=$h(),de=(0,nr.x3)(e),ue=e.relatedAssets||[],pe=(0,r.useRef)(0),he=(0,r.useRef)(!1),[me,ve]=(0,r.useState)(null),be=ue.find((e=>e.id===me)),ye=(null==be?void 0:be.originalFilename)||(null==be?void 0:be.title),[xe,we]=(0,r.useState)(null),ke=ue.find((e=>e.id===xe)),{data:Ae}=Pp({mapId:null===(g=e.book)||void 0===g?void 0:g.npNumber,isEnabled:de&&!!(null===(f=e.book)||void 0===f?void 0:f.npNumber)}),Te=(0,d.q)(),Se=(0,bp.jE)(),Ee=(0,Nv.E)({queries:ue.map((e=>{const t=ey(e);return{queryKey:["get-eksdi-lesson-session",t,Ae],queryFn:async()=>(await Te.get(`/eksdi/booksession/${Ae}/${t}`)).data,enabled:!!Ae&&!!t,retry:!1}}))}),Ie=(0,r.useCallback)((()=>{Se.invalidateQueries({queryKey:["get-eksdi-lesson-session"]})}),[Se]),Ce=L?ue.map(((e,t)=>({task:e,taskSession:Ee[t]}))).filter((({task:e})=>e.fromTime)).map((({task:e,taskSession:t})=>{var n,i;return{taskId:e.id,timeSeconds:Sp(e.fromTime),positionPercent:Math.min(100,Sp(e.fromTime)/L*100),submitted:!!(null===(i=null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.state)||void 0===i?void 0:i.lastSubmit)}})):[],_e=(0,r.useCallback)((()=>{var t;const{player:n}=te.current;n.g.play(),B(!1),ve(null),null==p||p(),(0,it.r)({productId:null!==(t=e.book.isbn)&&void 0!==t?t:e.book.npNumber,productName:e.title,format:e.format,contentId:e.id,eventType:"playAudioVideoAsset"})}),[p]),je=(0,r.useCallback)((e=>{we(e.id),ne.get("task")&&(ne.delete("task"),ne.delete("time"),ie(location.pathname+"?"+ne.toString(),{replace:!0}))}),[ne,ie]),Ne=(0,r.useCallback)((()=>{we(null),Ie()}),[Ie]),Le=(0,r.useCallback)((()=>{Ne(),_e()}),[Ne,_e]),Pe=(null===(b=null===(v=te.current)||void 0===v?void 0:v.player.g)||void 0===b?void 0:b.paused)||z,De=e=>{const{player:t}=te.current;t.setTextTrackVisibility(e),H(e)},Me=(0,r.useCallback)((async(t,n,i)=>{const{player:r}=te.current;let a=t||void 0,o=n,s=!1;try{const t=(await y.api.list()).filter((t=>t.appMetadata.id===e.id));if(t.length>0&&(a=t[0].offlineUri,s=!0,t[0].appMetadata.isSubtitle)){const e=t[0].appMetadata.id,n=await(0,Dc.jC)(e,"srt"),i=new TextDecoder("utf-8").decode(n.binary);o=URL.createObjectURL(new Blob([i],{type:"text/srt"}))}}catch(e){console.log(e),le({errorMessage:"Error loading storedContent in audio/video player",errorObject:e})}if(a)try{await r.load(a,i);let t=r.g.duration;t&&100!==t||(t=Sp(e.duration)),P(t),"srt"===e.subtitleFormat&&(!o||V.isProduction||s||(o=n.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443")),Mb(r,o,$("assetPlayer.subtitles")).catch((e=>console.error("Fehler beim Laden der Untertitel, aber Video sollte laufen:",e))),De(!1)),r.g.addEventListener("ended",(()=>{ce.sendOne({actor:Bh(se.profile.id),verb:Ph,object:qh(e.id)}),null==u||u()}))}catch(e){7e3!==(null==e?void 0:e.code)&&(console.log("fail to load shaka player",e),K(!0),le({errorMessage:"Fail to load shaka player",errorObject:e}))}else console.log("Url for media was empty!")}),[V,e,y,le,u]),Oe=(0,r.useCallback)((async e=>{A.current=null==Q?void 0:Q.url,await Me(null==Q?void 0:Q.url,null==Q?void 0:Q.subtitleUrl,e)}),[null==Q?void 0:Q.url,null==Q?void 0:Q.subtitleUrl]),ze=(0,r.useCallback)((()=>{var e;(null===(e=null==T?void 0:T.current)||void 0===e?void 0:e.requestFullscreen)&&(t(!1),C(!0),T.current.requestFullscreen())}),[t]),Be=()=>{var e;if(null===(e=null==T?void 0:T.current)||void 0===e?void 0:e.requestFullscreen)return()=>ze()};(0,r.useEffect)((()=>{pe.current=0,ve(null),we(null)}),[e.id]),(0,r.useEffect)((()=>{ne.get("fullscreen")&&ze();const e=Number(ne.get("time"))||0;ee().then((()=>{Oe(e)}))}),[e,ee,Oe]);const Ue=(0,r.useCallback)((()=>{De(!q)}),[q]),Fe=(0,r.useCallback)((()=>{const{player:e}=te.current;he.current=!0,e.g.currentTime+10<L?e.g.currentTime=e.g.currentTime+10:e.g.currentTime=L,ve(null)}),[L]),Ve=(0,r.useCallback)((()=>{const{player:e}=te.current;he.current=!0;const t=e.g.currentTime;let n;n=t>10?t-10:0,ve(null),e.g.currentTime=n}),[]),qe=(0,r.useCallback)((()=>{const{player:t}=te.current;t.g.pause(),B(!0),location.pathname.includes("/eksdi/")&&ce.sendOne({actor:Bh(se.profile.id),verb:Rh,object:qh(e.id)})}),[]);(0,r.useEffect)((()=>
2{if(!m||!te.current)return;const{player:e}=te.current;e.g.currentTime=0,pe.current=0,M("0"),R(0),j(0),ve(null),we(null),qe(),null==p||p()}),[m]);const He=(0,r.useCallback)((()=>{const{player:e}=te.current;e.g.paused?(e.g.play(),ve(null)):e.g.pause()}),[]),Ge=(0,r.useCallback)((e=>{const{player:t}=te.current;t.g.currentTime=e.timeSeconds,pe.current=e.timeSeconds,qe(),ve(e.taskId),null==p||p()}),[qe,p]),Ke=e=>{const t=e.target.currentTime;if(M(Math.floor(t).toString()),R(Math.floor(t)),j(t),de&&!me&&!xe&&!he.current){const e=pe.current,n=ne.get("task"),i=n&&ue.find((e=>e.id===n)),r=ue.find((n=>{if(!n.fromTime)return!1;const i=Sp(n.fromTime);return e<i&&t>=i})),a=i||r;a&&(qe(),ve(a.id),i&&(ne.delete("task"),ne.delete("time"),ie(location.pathname+"?"+ne.toString(),{replace:!0})))}pe.current=t,he.current=!1},$e=(0,r.useRef)(Ke);$e.current=Ke;const We=(0,r.useCallback)((e=>$e.current(e)),[]),Xe=(0,r.useCallback)((e=>{F(e);const{player:t}=te.current;t.g.muted=!!e}),[]),Ye=(0,r.useCallback)((()=>{}),[]),Je=(0,r.useCallback)((async e=>{const{player:t}=te.current;M(e.target.value),t.g.currentTime=e.target.value,he.current=!0,ve(null),null==p||p()}),[p]),Ze=(0,r.useCallback)((e=>{X(e);const{player:t}=te.current;t.g.playbackRate=e}),[]);return G?(0,i.jsx)(Db,{isMobile:Y,isMinimized:n,closePlayer:a}):(0,i.jsx)("div",{ref:T,className:`shaka-player-container shaka-player--${e.format} ${I?"shaka-player-container--fullscreen":""} ${oe?"p-0":""} ${re?"pt-0":""} shaka-player-container--full-width-video`,children:(0,i.jsxs)("div",{className:"player__wrapper "+(oe?"player__wrapper--minimized":""),children:[(0,i.jsxs)("div",{className:"relative",children:[(0,i.jsx)(Fv,{durationChange:We,videoClick:He,ref:te,formatType:e.format}),me&&(0,i.jsx)(N.$,{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-10 video-task-button",icon:(0,i.jsx)(Fc.c,{format:Si.i_.ASSESSMENT}),reverse:!0,onClick:()=>je(be),ariaLabel:ye,title:ye,children:ye})]}),ke&&Ae&&(0,i.jsxs)("div",{className:"asset-player-dialog asset-player-dialog--scroll fixed inset-0",children:[(0,i.jsx)("div",{className:"asset-player-dialog__overlay",onClick:Ne}),(0,i.jsxs)("div",{className:"asset-player asset-player--exercise asset-player-dialog__shadow asset-player-dialog__shadow--exercise relative z-[450]",children:[(0,i.jsx)(Jb,{asset:ke,onCloseMedium:Ne,isMinimized:!1,assessmentNavigation:void 0,showBookmarkAndMenu:!1}),(0,i.jsx)(ty,{asset:ke,bookSessionId:Ae,nextExercise:Le,interactiveVideoId:h})]})]}),(0,i.jsxs)("div",{className:"player__controls "+(Y||ae?"flex-col":""),children:[re&&(0,i.jsx)(Xv,{progress:E,progressValue:O,progressChange:Ye,seek:S,seekValue:D,reloadSeek:Je,duration:L,currentTime:_,className:"py-4",hideDuration:!0,markers:Ce,onMarkerClick:Ge}),(0,i.jsxs)("div",{className:`player-controls__wrapper ${n?"player-controls__wrapper--minimized":""} ${Y?"w-full gap-0":""}`,children:[re&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Pb,{isMobile:Y,isMinimized:n,previousAssetId:null,nextAssetId:null,changeAssetId:()=>{},duration:L,PlayButtonElement:(0,i.jsx)(Gv,{onClick:Pe?_e:qe,isPlaying:!Pe})}),(0,i.jsx)(sb,{fastBackward:Ve,fastForward:Fe,playbackRate:W,setPlaybackrate:Ze,isMinimized:n})]}),(0,i.jsx)("div",{className:"player-controls__title-slider-wrapper "+(oe?"items-center":"flex-col justify-center"),children:!re&&(0,i.jsx)(Xv,{progress:E,progressValue:O,progressChange:Ye,seek:S,seekValue:D,reloadSeek:Je,duration:L,currentTime:_,className:!n||ae?"":"hidden",hideDuration:oe,markers:Ce,onMarkerClick:Ge})}),re&&(0,i.jsxs)("div",{className:"slider__time",children:[(0,i.jsx)("output",{className:"rounded-md py-0.5 text-sm leading-6 block","aria-live":"off",children:Wv(_)}),(0,i.jsx)("span",{className:"text-sm leading-6 text-textSubdued","aria-hidden":"true",children:" / "}),(0,i.jsx)("span",{className:"rounded-md py-0.5 text-sm leading-6 block",children:L>0&&Wv(L)})]}),re&&(0,i.jsx)(Eb,{isMobile:Y,isMinimized:n,isFullscreen:I,setFullscreen:Be(),setIsFullscreen:C,asset:e,onToggleSubtitle:Ue,isTextTrackVisible:q,isMuted:U,setMuted:Xe,setIsMinimized:t,isInlinePlayer:!!l,showMinimizeButton:!1})]}
2),(Z||Y||ae)&&(0,i.jsx)("div",{className:"player-controls__control-wrapper",children:(0,i.jsxs)("div",{className:"player-controls__bar "+(ae?"gap-2":""),children:[(0,i.jsx)(ob,{playbackrate:W,onPlaybackRate:Ze}),(0,i.jsx)("div",{className:"flex w-full justify-center",children:(0,i.jsx)(Pb,{isMobile:Y,isMinimized:n,previousAssetId:null,nextAssetId:null,changeAssetId:()=>{},duration:L,PlayButtonElement:(0,i.jsx)(Gv,{onClick:Pe?_e:qe,isPlaying:!Pe,className:""+(!Y&&n?"md:h-14 md:w-14":"")})})}),(0,i.jsx)(Eb,{isMobile:Y,isMinimized:n,isFullscreen:I,setFullscreen:Be(),setIsFullscreen:C,asset:e,onToggleSubtitle:Ue,isTextTrackVisible:q,isMuted:U,setMuted:Xe,setIsMinimized:t,isInlinePlayer:!!l,showMinimizeButton:!1})]})})]})]})})};var iy=n(68918),ry={};ry.styleTagTransform=q(),ry.setAttributes=B(),ry.insert=R().bind(null,"head"),ry.domAPI=M(),ry.insertStyleElement=F();P()(iy.A,ry);iy.A&&iy.A.locals&&iy.A.locals;const ay={from:{opacity:0},to:{opacity:1},leave:{opacity:0},enter:{opacity:1},config:{duration:200}},oy=({help:e,tip:t,className:n=""})=>{const{t:a}=(0,k.Bd)(),[o,s]=(0,r.useState)(!1),l=(0,ct.pn)(o,ay);if((e||t)&&(0!==(null==e?void 0:e.length)||0!==(null==t?void 0:t.length)))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"help__button",children:(0,i.jsx)(N.$,{variant:"secondary",className:"help__button-text",icon:(0,i.jsx)(Ue.I,{source:o?Wn.A:Om}),onClick:()=>s((e=>!e)),children:a(o?"eksdi.helpAndTip.hideButton":"eksdi.helpAndTip.showButton")})}),l(((r,o)=>o&&(0,i.jsx)(ct.CS.div,{style:{opacity:r.opacity},className:"help",children:(0,i.jsxs)("div",{className:`help-container ${n}`,children:[(0,i.jsx)("h4",{className:"help-title",children:a("eksdi.helpAndTip.title")}),e&&e.length>0&&(0,i.jsx)(i.Fragment,{children:e.map(((e,t)=>(0,i.jsx)("div",{className:"help-text",children:(0,i.jsx)(Ng,{text:e.value,type:"help"})},`help-${t}`)))}),t&&t.length>0&&(0,i.jsx)(i.Fragment,{children:t.map(((e,t)=>(0,i.jsx)("div",{className:"help-text",children:(0,i.jsx)(Ng,{text:e.value,type:"help"})},`tip-${t}`)))})]})})))]})};var sy=n(96559),ly={};ly.styleTagTransform=q(),ly.setAttributes=B(),ly.insert=R().bind(null,"head"),ly.domAPI=M(),ly.insertStyleElement=F();P()(sy.A,ly);sy.A&&sy.A.locals&&sy.A.locals;const cy=({readingText:e})=>{const{t}=(0,k.Bd)(),[n,a]=(0,r.useState)(!0),o=(0,ct.pn)(n,ay);if((0,r.useEffect)((()=>{const t=()=>{if(n&&(null==e?void 0:e.length)>0){const e=window.innerHeight>0?window.innerHeight:screen.height,t=document.getElementById("readingBox");if(t){const n=e-t.getBoundingClientRect().top;t.style.maxHeight=n+"px"}}};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)}),[n,e]),e&&0!==(null==e?void 0:e.length))return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:"reading-text__button",children:(0,i.jsx)(N.$,{variant:"secondary",className:"reading-tex__button-text",icon:(0,i.jsx)(Ue.I,{source:n?Wn.A:Om}),onClick:()=>a((e=>!e)),children:t(n?"eksdi.readingText.hideButton":"eksdi.readingText.showButton")})}),o(((t,n)=>n&&(0,i.jsx)(ct.CS.div,{style:{opacity:t.opacity},children:(0,i.jsx)("div",{id:"readingBox",className:"reading-text__box",children:null==e?void 0:e.map(((e,t)=>(0,i.jsx)(Ng,{text:e,type:"readingText"},`reading-text-${t}`)))})})))]})},dy=({exerciseId:e,mapId:t,title:n,question:a,exerciseCounter:o,audios:s,videos:l,isEmbedded:u,help:p,tip:h,readingText:m,autoPlayVideo:g=!1})=>{var f,v;const{t:b}=(0,k.Bd)(),y=(0,J.Ay)(),[x,w]=(0,r.useState)(g&&null!==(v=null===(f=null==l?void 0:l[0])||void 0===f?void 0:f.id)&&void 0!==v?v:""),[A,T]=(0,r.useState)(""),[S,E]=(0,r.useState)(!1),{data:I}=Ii(A,!!A),C=g&&(0,nr.x3)(I),_=(null==I?void 0:I.relatedAssets)||[],[j,L]=(0,r.useState)(!1),{data:P}=Pp({mapId:t,isEnabled:C&&!!t}),D=(0,d.q)(),M=(0,bp.jE)(),O=$h(),R=(0,c.As)(),{setTriggerDauLearningProgressRefetch:z}=(0,Pe.Us)(),[B,U]=(0,r.useState)(!1),[F,V]=(0,r.useState)(0),q=(0,Nv.E)({queries:_.map((e=>{const t=ey(e);return{queryKey:["get-eksdi-lesson-session",t,P],queryFn:async()=>(await D.get(`/eksdi/booksession/${P}/${t}`)).data,enabled:j&&!!P&&!!t,retry:!1}}))}),H=j&&q.length>0&&q.every((e=>e.isSuccess))?q.reduce(((e,t)=>{var n,i,r,a;return{correctCount:e.correctCount+((null===(i=null===(n=t.data)||void 0===n?void 0:n.state)||void 0===i?void 0:i.correctCount)||0),totalCount:e.totalCount+((null===(a=null===(r=t.data)||void 0===r?void 0:r.state)||void 0===a?void 0:a.totalCount)||0)}}
2),{correctCount:0,totalCount:0}):null;return(0,r.useEffect)((()=>{x?T(t+"/"+x.replace(/\.[^/.]+$/,"")):A&&T("")}),[x]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"exercise-header "+(H?"pb-32":""),id:`title-${e}`,children:[(0,i.jsxs)("div",{className:"exercise-header__content",children:[(0,i.jsxs)("div",{className:"exercise-header__title",children:[(0,i.jsxs)("span",{children:[b("eksdi.task.label")," ",o]}),n&&(0,i.jsxs)(i.Fragment,{children:["|",(0,i.jsx)(Ng,{text:n})," "]})]}),a&&(0,i.jsx)(Lv,{question:a}),((null==s?void 0:s.length)>0||(null==l?void 0:l.length)>0&&!g)&&(0,i.jsxs)("div",{className:"exercise-header__assets-buttons",children:[s&&(0,i.jsx)(Ov,{assets:s,exerciseId:e,mapId:t,type:Si.i_.AUDIO,playAssetWithId:w,isEmbedded:u}),l&&!g&&(0,i.jsx)(Ov,{assets:l,exerciseId:e,mapId:t,type:Si.i_.VIDEO,playAssetWithId:w,isEmbedded:u})]}),I&&(y||!y&&!S)&&(g?(0,i.jsx)("div",{className:"mt-12",children:(0,i.jsx)(ny,{asset:I,setIsMinimized:E,isMinimized:S,closePlayer:()=>w(""),inlineVideos:l,onVideoEnded:()=>L(!0),onHideResult:()=>L(!1),lehrtextId:e,resetSignal:F})}):(0,i.jsx)(Yb,{asset:I,setIsMinimized:E,isMinimized:S,closePlayer:()=>w(""),inlineAudios:s,inlineVideos:l,currentInlineId:x,playInlineId:w})),(0,i.jsx)(cy,{readingText:m}),(0,i.jsx)(oy,{help:p,tip:h})]}),I&&!y&&S&&(g?(0,i.jsx)(ny,{asset:I,setIsMinimized:E,isMinimized:S,closePlayer:()=>w(""),inlineVideos:l,onVideoEnded:()=>L(!0),onHideResult:()=>L(!1),lehrtextId:e,resetSignal:F}):(0,i.jsx)(Yb,{asset:I,setIsMinimized:E,isMinimized:S,closePlayer:()=>w(""),inlineAudios:s,inlineVideos:l,currentInlineId:x,playInlineId:w}))]}),H&&(0,i.jsx)("div",{className:"eksdi-result fixed inset-x-0 bottom-0 z-[300] pt-10",children:(0,i.jsx)("div",{className:"eksdi-result__buttons",children:(0,i.jsx)(N.$,{variant:"secondary",onClick:async()=>{U(!0);try{await Promise.all(_.map((async(e,t)=>{var n,i;const r=ey(e),a=null===(i=null===(n=q[t])||void 0===n?void 0:n.data)||void 0===i?void 0:i.id;a&&(O.sendOne({actor:Bh(R.profile.id),verb:Mh,object:Uh(r)}),await D.post(`/eksdi/booksession/${P}/${r}/${a}/reset`))}))),await M.invalidateQueries({queryKey:["get-eksdi-lesson-session"]}),z(!0),V((e=>e+1))}finally{U(!1)}},disabled:B,children:b("eksdi.result.resetAllTasks")})})})]})};function uy({bookSessionId:e,assessmentId:t,isEnabled:n},i){const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-eksdi-lesson-session",t,e],queryFn:async()=>(await r.get(`/eksdi/booksession/${e}/${t}`)).data,retry:!1,enabled:n});return(0,S.V)(o,i||{message:a("error.eksdi.failGetLesson")})}const py=(e,t,n)=>{const i=e.pages.find((e=>e.pageNumber===t)),r=n?e.pages.find((e=>e.pageNumber===String(parseInt(t)+1))):void 0;return{mediaPage:i,mediaPageDoublePage:r}},hy=(e,t,n)=>{const{mediaPage:i,mediaPageDoublePage:r}=py(e,t,n),a=i&&i.audios?null==i?void 0:i.audios:[],o=i&&i.videos?null==i?void 0:i.videos:[];return{audios:{page:a,doublePage:r&&r.audios?null==r?void 0:r.audios:[]},videos:{page:o,doublePage:r&&r.videos?null==r?void 0:r.videos:[]}}},my=(e,t)=>({page:e.map((e=>{const n="title"in e?e.title:void 0;return{assetId:t+"/"+e.id.replace(/\.[^/.]+$/,""),title:n,thumbnailPath:void 0,description:e.desc,value:void 0,subtitleFormat:Jp._.NONE,offlineAllowed:!0,teacherOnly:!1,bookmarkAllowed:!0,downloadAllowed:!1,accessLockState:nr.Jm.NONE,target:void 0,targetPage:void 0,originalFilename:n,demo:!1,role:void 0,duration:void 0,addedBy:t,allowed:!0,keywords:[],submedias:[]}})),doublePage:[]}),gy=(e,t)=>[...e||[],...t||[]],fy=({resetLesson:e,isSelftest:t=!1})=>{const{t:n}=(0,k.Bd)(),[a,o]=(0,r.useState)(!1);if(!e)return;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)($n.w,{className:"items-center",copy:(0,i.jsxs)("div",{className:"flex flex-row justify-between items-center",children:[(0,i.jsx)("p",{children:n(t?"eksdi.newContent.textSelftest":"eksdi.newContent.text")}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{o(!0)},children:n("eksdi.newContent.button")})]}),icon:(0,i.jsx)(Ue.I,{source:hl.A,accessibilityLabel:n("ui.icons.info")}),role:"alert"}),(0,i.jsx)(kp,{isOpen:a,setIsOpen:o,text:n(t?"eksdi.newContent.warningTextSelftest":"eksdi.newContent.warningText"),resetApproved:e,approveButtonText:n("eksdi.newContent.warningButton")})]})},vy=e=>{const t=localStorage.getItem(e);if(t){const e=JSON.parse(t);
2return Array.isArray(e)?{entries:e}:{entries:e.entries,initializedAt:e.initializedAt}}},by=e=>{localStorage.removeItem(e)},yy={INITIAL:"INITIAL",MODIFIED:"MODIFIED",SUBMITTED:"SUBMITTED",SOLUTION:"SOLUTION",TEACHER_SOLUTION:"TEACHER_SOLUTION"},xy=(e,t)=>"linematch"===t||"sequencemultiplematch"===t||"categorymultiplematch"===t?e.map(((e,t)=>Object.assign(Object.assign({},e),{entryIndex:String(t+1)}))):e,wy=({eksdiMap:e,refetchEksdiMap:t,bookSessionId:n,exerciseId:a,isDidacticUnit:o=!1,nextExercise:s,chapterId:l,moduleId:u,taskGroupId:p,isEmbedded:h=!1,selftestId:m,interactiveVideoId:g})=>{const f=(0,c.As)(),v=$h(),{mutateAsync:b}=Fn({hideToast:!0}),[y,x]=(0,r.useState)(""),[w,A]=(0,r.useState)(yy.INITIAL),[I,C]=(0,r.useState)(),[_,j]=(0,r.useState)(),[N,L]=(0,r.useState)([]),[P,D]=(0,r.useState)([]),[M,O]=(0,r.useState)([]),[R,z]=(0,r.useState)(),{data:B,isInitialLoading:U}=uy({bookSessionId:n,assessmentId:a,isEnabled:!(m||!n||!a||!(null==f?void 0:f.authInitialized))}),{data:F,isInitialLoading:V}=(({selftestId:e,assessmentId:t,isEnabled:n},i)=>{const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-eksdi-selftest-lesson-session",e,t],queryFn:async()=>(await r.get(`/eksdi/selftest/${e}/${t}`)).data,retry:!1,enabled:n});return(0,S.V)(o,i||{message:a("error.eksdi.failGetSelftest")})})({selftestId:m,assessmentId:a,isEnabled:!!m&&!!a&&!!(null==f?void 0:f.authInitialized)}),q=m?V:U,{mutateAsync:H}=(({bookSessionId:e,mapId:t,sessionId:n},i)=>{const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,E.n)({mutationFn:async()=>(await r.post(`/eksdi/booksession/${e}/${t}/${n}/reset`)).data,retry:!1});return(0,S.s)(o,i||{message:a("error.eksdi.failResetLesson")})})({bookSessionId:n,mapId:a,sessionId:y}),{mutateAsync:G}=(({bookSessionId:e,mapId:t,sessionId:n},i)=>{const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,E.n)({mutationFn:async i=>(await r.post(`/eksdi/booksession/${e}/${t}/${n}`,i)).data,retry:!1});return(0,S.s)(o,i||{message:a("error.eksdi.submitLesson")})})({bookSessionId:n,mapId:a,sessionId:y}),{mutateAsync:K}=(({bookSessionId:e,mapId:t,sessionId:n},i)=>{const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,E.n)({mutationFn:async i=>(await r.post(`/eksdi/booksession/${e}/${t}/${n}/selfEvaluation`,i)).data,retry:!1});return(0,S.s)(o,i||{message:a("error.eksdi.submitLesson")})})({bookSessionId:n,mapId:a,sessionId:y},{hideToast:!0}),{data:$}=function({bookSessionId:e,mapId:t,isEnabled:n,sessionId:i},r){const a=(0,d.q)(),{t:o}=(0,k.Bd)(),s=(0,T.I)({queryKey:["get-eksdi-solution",e,t,i],queryFn:async()=>(await a.get(`/eksdi/booksession/${e}/${t}/${i}/solution`)).data,retry:!1,enabled:n});return(0,S.V)(s,r||{message:o("error.eksdi.failGetSolution")})}({bookSessionId:n,mapId:a,sessionId:y,isEnabled:!(!(null==f?void 0:f.authInitialized)||q||!n||!y||w!==yy.SOLUTION&&w!==yy.TEACHER_SOLUTION)}),{mutateAsync:W}=(({bookSessionId:e,mapId:t,sessionId:n},i)=>{const r=(0,d.q)(),a=(0,E.n)({mutationFn:async i=>(await r.post(`eksdi/booksession/pronounce/${e}/${t}/${n}`,i,{headers:{"Content-Type":"multipart/form-data"}})).data,retry:!1});return(0,S.s)(a,i)})({bookSessionId:n,mapId:a,sessionId:y}),X=(0,r.useRef)(),Y=e=>{y&&((e,t,n)=>{localStorage.setItem(e,JSON.stringify({entries:t,initializedAt:n}))})(y,e,X.current)};(0,r.useEffect)((()=>{const t=m?F:B;if(t&&(j(t),!h&&!m&&b&&e&&a)){const t=(l?"/"+l:"")+(u?"/"+u:"")+(p?"/"+p:"")+"/"+a;b({request:{targetId:e.npNumber,productId:e.npNumber,targetTitle:e.title,targetBookDescription:e.bestandteil,targetType:et.yK.EKSDI,interactionCode:et.w2.OPENED,targetDetail:t}})}}),[F,B]);const J=()=>{var e,t;if(_){if(C(_.originalAssessment),x(_.id),"lehrtext"===(null===(e=_.originalAssessment)||void 0===e?void 0:e.type))return A(yy.INITIAL),void v.sendOne({actor:Bh(f.profile.id),verb:Lh,object:Uh(_.originalAssessment.id)});if(_.state&&((!_.state.submit||_.state.submit<=0)&&A(yy.SUBMITTED),_.state.lastSubmit&&O(_.state.lastSubmit.values)),_.id&&_.originalAssessment){const e=vy(_.id);let n;e?(A(yy.MODIFIED),n=e.entries,X.current=null==e?void 0:e.initializedAt):_&&(null==_?void 0:_.state)&&(null===(t=null==_?void 0:_.state)||void 0===t?void 0:t.lastSubmit)?(A(yy.SUBMITTED),n=_.state.lastSubmit.values):(n=_.originalAssessment.values,A(yy.INITIAL),v.sendOne({actor:Bh(f.profile.id),verb:Lh,object:Uh(_.originalAssessment.id),context:g?Fh(g):void 0}),X.current=Date.now());const i=xy(n,_.originalAssessment.type),r=JSON.parse(JSON.stringify(i));D(r),L(i)}}};(0,r.useEffect)((()=>{J()}),[_]),(0,r.useEffect)((()=>
2{if(N.length>0)if(P.length>0){const e=JSON.stringify(N)!==JSON.stringify(P);e&&A(yy.MODIFIED),y&&e&&Y(N)}else{const e=JSON.parse(JSON.stringify(N));D(e)}}),[N]);const Z=async()=>{let e;if(I&&"pronounce"===I.type){const t=new FormData;t.append("audio",R),(null==X?void 0:X.current)&&t.append("initializedAt",String(X.current)),e=await W(t)}else{const t={assessmentValueAssignment:{type:I?I.type:null,values:N},initializedAt:null==X?void 0:X.current};e=await G(t)}j(e),A(yy.SUBMITTED),by(y),t()},Q=async()=>{v.sendOne({actor:Bh(f.profile.id),verb:Mh,object:Uh(_.originalAssessment.id),context:g?Fh(g):void 0});const e=await H({});O([]),L([]),z(null),A(yy.INITIAL),j(e),t()};return(0,i.jsx)(ft.o,{inProgress:q,children:I&&!q&&(0,i.jsxs)(i.Fragment,{children:[!m&&(null==_?void 0:_.newVersionAvailable)&&(0,i.jsx)(fy,{resetLesson:Q}),(0,i.jsx)(dy,{exerciseId:a,mapId:e.npNumber,title:I.title,question:I.question,exerciseCounter:I.zaehler,audios:gy(I.audios,I.speakingSamples),videos:null==I?void 0:I.videos,isEmbedded:h,help:I.help,tip:I.tip,readingText:I.readingText,autoPlayVideo:"lehrtext"===I.type}),"lehrtext"!==I.type&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(vv,{lessonState:w,assessmentState:null==_?void 0:_.state,submitLesson:Z,lessonType:null==I?void 0:I.type,notAllowedToSubmit:"pronounce"===(null==I?void 0:I.type)&&!R||"openquestion"===(null==I?void 0:I.type)&&(()=>{if("openquestion"===I.type){const e=N,t=e&&e.length>0?e[0]:void 0;if(null==t?void 0:t.exampleSolutionType){const e=_.originalAssessment.values&&_.originalAssessment.values.length>0?_.originalAssessment.values[0]:void 0;return(null==t?void 0:t.entry.trim())===(null==e?void 0:e.entry.trim())}return!(null==t?void 0:t.entry.trim())}return!1})(),exerciseId:a,isSelftest:!!m,setShowSolution:()=>{A(yy.TEACHER_SOLUTION)},setHideSolution:()=>{A(yy.INITIAL)},children:(0,i.jsx)(cv,{values:I.values,entries:N,setUserEntries:L,type:I.type,lessonState:w,setLessonState:A,solution:null==$?void 0:$.values,result:M,options:I.options,graphic:null==I?void 0:I.graphic,images:null==I?void 0:I.images,matches:null==I?void 0:I.matches,headers:null==I?void 0:I.headers,additionalType:null==I?void 0:I.additionalType,lessonid:I.id,recordedBlob:R,setRecordedBlob:z,aifeedback:null==I?void 0:I.aifeedback,submitLesson:Z})}),(w===yy.SUBMITTED||w===yy.SOLUTION)&&(0,i.jsx)(jv,{lessonType:null==I?void 0:I.type,setShowSolution:()=>{A(yy.SOLUTION)},setHideSolution:()=>{A(yy.SUBMITTED)},resetLesson:m?void 0:Q,lessonState:w,state:null==_?void 0:_.state,retryLesson:async()=>{if(A(yy.INITIAL),O([]),z(null),X.current=Date.now(),"sequence"===I.type||"openquestion"===I.type)Y(N);else if("graphichotspot"===I.type){const e=[];if(N.forEach((t=>{t.correct&&e.push(t)})),e&&e.length>0){const t=[...I.values,...e],n=[...new Map(t.map((e=>[e.entryIndex,e]))).values()];Y(n)}else Y(I.values)}else if("inlinechoice"===I.type||"gapmatch"===I.type||"textgap"===I.type||"multiplechoice"===I.type){const e=[];N.forEach((t=>{if(t.correct)e.push(t);else{const n=[];("multiplechoice"===I.type?t.options:t.entries).forEach((e=>{e.correct?n.push(e):"multiplechoice"===I.type?n.push(Object.assign(Object.assign({},e),{checked:null,correct:null})):n.push(Object.assign(Object.assign({},e),{entry:null,optionId:null,correct:null}))})),"multiplechoice"===I.type?e.push(Object.assign(Object.assign({},t),{options:n,correct:null})):e.push(Object.assign(Object.assign({},t),{entries:n,correct:null}))}})),Y(e)}else if("linematch"===I.type){const e=[];N.forEach(((t,n)=>{t.correct?e.push(t):e.push(Object.assign(Object.assign({},xy(I.values,I.type)[n]),{optionId:"",entry:""}))})),Y(e)}else if("textselect"===I.type){const e=[];N.forEach((t=>{const n=[];t.substrings.forEach((e=>{e.correct&&n.push(e)})),e.push(Object.assign(Object.assign({},t),{substrings:n}))})),Y(e)}else{const e=[];N.forEach(((t,n)=>{t.correct?e.push(t):e.push(xy(I.values,I.type)[n])})),Y(e)}J()},navigateNextLesson:s?()=>{"lehrtext"===I.type||w!==yy.INITIAL||_.state.lastSubmit||localStorage.getItem(y)||v.sendOne({actor:Bh(f.profile.id),verb:Dh,object:Uh(_.originalAssessment.id),context:g?Fh(g):void 0}),o||(x(null),L([]),A(yy.INITIAL)),s()}:void 0,submitSelfEvaluation:async e=>{const n=await K({percentage:e});t(),j(n)},lessonid:I.id})]})]})})},ky=({eksdiMap:e,refetchEksdiMap:t,bookSessionId:n,dauTabs:a,xmlId:o})=>{var s;const l=(0,Re.V)(),{pathname:c}=(0,be.zy)(),d=(0,fe.m)(),u=(0,J.Ay)(),[p,h]=(0,r.useState)(0),[m,g]=(0,r.useState)(""),{chapterId:f,moduleId:v,taskGroupId:b}=(0,be.g)(),{taskGroup:y}=Eh(null==e?void 0:e.navroot,f,v,b),x=null===(s=null==y?void 0:y.children)||void 0===s?void 0:s.filter((e=>e.type===xh.TOPIC||e.type===xh.DIDACTIC_UNIT)),w=null==x?void 0:x[p],k=p===(null==x?void 0:x.length)-1,A=(0,r.useRef)(),T=(0,r.useRef)(0);(0,r.useEffect)((()=>{m&&(A.current=setInterval((()=>{const e=document.getElementById(`title-${m}`);e?(e.scrollIntoView({behavior:"smooth"}),clearInterval(A.current),g("")):(T.current=T.current+1,T.current>20&&(clearInterval(A.current),g("")))}),50))}),[m,p]);const[S,E]=(0,r.useState)(!1);(0,r.useEffect)((()=>
2{if(E(!1),(null==w?void 0:w.type)===xh.DIDACTIC_UNIT){const e=5e3,t=async()=>{const t=Date.now();return new Promise((n=>{const i=setInterval((()=>{document.getElementById(`lesson-${l.get("xmlId")}`)?(clearInterval(i),n(!0)):Date.now()-t>=1e3*e&&(clearInterval(i),n(!1))}),100)}))};l.get("xmlId")&&t().then((()=>E(!0)))}}),[w]),(0,r.useEffect)((()=>{var e;if((null==w?void 0:w.type)===xh.DIDACTIC_UNIT){const t=new IntersectionObserver((e=>{e.forEach((e=>{if(e.isIntersecting){const t=e.target.id.replace("lesson-","");l.set("xmlId",t),d(c+"?"+l.toString())}}))}),{threshold:u?.5:.8});return null===(e=null==w?void 0:w.children)||void 0===e||e.forEach((e=>{const n=document.getElementById(`lesson-${e.xmlId}`);n&&t.observe(n)})),()=>{t.disconnect()}}}),[w,u,S]),(0,r.useEffect)((()=>{var e;if(o&&x){const t=x.findIndex((e=>{return n=o,(t=e).type===xh.TOPIC?t.xmlId===n:t.type===xh.DIDACTIC_UNIT&&t.children.findIndex((e=>e.xmlId===n))>-1;var t,n}));h(t>0?t:0),(null===(e=y.children[t])||void 0===e?void 0:e.type)===xh.DIDACTIC_UNIT&&g(o)}else h(0)}),[c]),(0,r.useEffect)((()=>{p>=0&&l.get("id")&&(l.delete("id"),l.delete("type"),l.delete("minimized"),l.delete("background"),l.delete("assetPage"),l.delete("exerciseId"),l.delete("selftestID"),d(c+"?"+l.toString()))}),[p]),(0,r.useEffect)((()=>{w&&(null==w?void 0:w.xmlId)!==l.get("xmlId")&&(w.xmlId?l.set("xmlId",w.xmlId):w.type===xh.DIDACTIC_UNIT&&w.children.length>0&&l.set("xmlId",w.children[0].xmlId),d(c+"?"+l.toString()))}),[null==w?void 0:w.xmlId]);const I=e=>{document.body.scrollTop=document.documentElement.scrollTop=0,h(p+("back"===e?-1:1))},C=(e,t,n)=>{l.get("id")&&(l.delete("id"),l.delete("type"),l.delete("minimized"),l.delete("background"),l.delete("exerciseId"),l.delete("selftestID"),d(location.pathname+"?"+l.toString(),{replace:!0})),e&&!t?(e=>{var t;const n=document.getElementById(`title-${null===(t=null==w?void 0:w.children[e+1])||void 0===t?void 0:t.xmlId}`);n&&n.scrollIntoView({behavior:"smooth"})})(n):I("front")};return(0,i.jsxs)(i.Fragment,{children:[(null==y?void 0:y.navTreeSessionsState)&&(0,i.jsx)(tm,{navigateLesson:I,lessonIndex:p,taskGroupState:null==y?void 0:y.navTreeSessionsState,taskGroupExerciseCount:(null==x?void 0:x.length)||1,dauTabs:a}),(null==w?void 0:w.type)===xh.TOPIC&&(0,i.jsx)(wy,{eksdiMap:e,refetchEksdiMap:t,bookSessionId:n,exerciseId:w.xmlId,nextExercise:k?void 0:()=>C(!1),chapterId:f,moduleId:v,taskGroupId:b}),(null==w?void 0:w.type)===xh.DIDACTIC_UNIT&&(0,i.jsx)(i.Fragment,{children:null==w?void 0:w.children.map(((r,a)=>{const o=a===w.children.length-1;return(0,i.jsx)(wy,{eksdiMap:e,chapterId:f,moduleId:v,taskGroupId:b,refetchEksdiMap:t,bookSessionId:n,exerciseId:r.xmlId,isDidacticUnit:!0,nextExercise:k&&o?void 0:()=>C(!0,o,a)},"didactic-unit-"+r.xmlId)}))})]})};var Ay=n(55608),Ty={};Ty.styleTagTransform=q(),Ty.setAttributes=B(),Ty.insert=R().bind(null,"head"),Ty.domAPI=M(),Ty.insertStyleElement=F();P()(Ay.A,Ty);Ay.A&&Ay.A.locals&&Ay.A.locals;const Sy=()=>{var e;const t=(0,c.As)(),n=(0,se.P)(),a=(0,J.Ay)(),{t:o}=(0,k.Bd)(),{mapId:s,taskGroupId:l}=(0,be.g)(),u=or(s),p=(0,Re.V)(),h=(0,fe.m)(),[m,g]=(0,r.useState)(""),{data:f,isInitialLoading:v,refetch:b,error:y}=Nh({id:s,isEnabled:!!s&&!!(null==t?void 0:t.authInitialized)}),{data:x}=Pp({mapId:s,isEnabled:!!f&&!!s&&!!(null==t?void 0:t.authInitialized)}),{mutateAsync:w}=((e,t)=>{const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async()=>(await n.post(`/eksdi/booksession/${e}/reset`)).data,retry:!1});return(0,S.s)(r,t||{message:i("error.eksdi.failResetBookSession")})})(x),T=$h(),[I,C]=(0,r.useState)(!1),{success:_}=(0,A.e)(),{refetch:j,data:L}=sr("MAXP-"+(null==f?void 0:f.klettBookNumber),{hideToast:!0}),{setIsDrawerOpen:P}=(0,Pe.Us)();Oe(o("metaTitle.lplus",{title:null==f?void 0:f.title,brand:n})),(0,r.useEffect)((()=>{const e=p.get("xmlId");e!==m&&g(e)}),[p]),(0,r.useEffect)((()=>{(null==f?void 0:f.klettBookNumber)&&j&&j()}),[j,null==f?void 0:f.klettBookNumber]);const D=(e,t,n)=>{if(e.xmlId===n)return t;if(e.children)for(let n=0;n<e.children.length;n++){const i=e.children[n],r=e.type===xh.DIDACTIC_UNIT?"":"/"+e.nodeId,a=D(i,t+r,m);if(a)return a}return""};(0,r.useEffect)((()=>
2{if(f&&m&&!l){let e="";for(let t=0;t<f.navroot.length;t++){const n=f.navroot[t],i=D(n,"/eksdi/"+f.npNumber,m);if(i){e=i;break}}e&&h(e+"?"+p.toString(),{replace:!0})}}),[m,null==f?void 0:f.npNumber]);return(0,r.useEffect)((()=>{var e;y&&403===(null===(e=null==y?void 0:y.response)||void 0===e?void 0:e.status)&&h((0,vt.tW)(te.J.product.index,{id:u})+"?npfourothree="+s)}),[y]),y?(0,i.jsx)(pe,{fullWidth:!0,children:(0,i.jsx)("div",{children:(0,i.jsx)("div",{className:"my-4 w-full px-8",children:403!==(null===(e=null==y?void 0:y.response)||void 0===e?void 0:e.status)&&(0,i.jsx)("p",{children:o("error.eksdi.failGetEksdiMap")})})})}):(0,i.jsxs)(ft.o,{inProgress:v,children:[(0,i.jsx)(jh,{structure:f,maxProd:L,bookSessionId:x}),(0,i.jsxs)(pe,{fullWidth:!0,children:[f&&!l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"eksdi-page__navigation",children:[(0,i.jsxs)("div",{className:"eksdi-page__navigation-row",children:[a&&(0,i.jsx)(pc,{mobileIconOnly:!0,onToggle:e=>P(e)}),(0,i.jsx)("div",{children:(0,i.jsx)(Yc,{lPlusBadge:!0})})]}),(0,i.jsx)(Kd,{maxProd:L,refetchMaxProd:j,className:"eksdi-tabs"}),(0,i.jsx)("div",{className:"col-start-auto md:col-start-6"})]}),(0,i.jsx)(Jh,{eksdiMap:f,resetButton:(0,i.jsx)(N.$,{variant:"plain",ariaLabel:o("eksdi.resetAll.buttonText"),onClick:()=>C(!0),children:o("eksdi.resetAll.buttonText")}),bookSessionId:x})]}),l&&(0,i.jsx)(ky,{eksdiMap:f,refetchEksdiMap:b,bookSessionId:x,xmlId:m,dauTabs:(0,i.jsx)(Kd,{maxProd:L,refetchMaxProd:j,className:"eksdi-tabs"})})]}),(0,i.jsx)(kp,{isOpen:I,setIsOpen:C,text:(0,i.jsx)("p",{children:o("eksdi.resetAll.warningText")}),resetApproved:async()=>{C(!1),T.sendOne({actor:Bh(t.profile.id),verb:Mh,object:Vh(s)}),await w({}).then((e=>{e&&(_({copy:o("eksdi.resetAll.successText")}),location.reload())}))}})]})};var Ey=n(44828),Iy=n(86479);const Cy=r.createContext(null),_y=()=>(0,r.useContext)(Cy),jy=({children:e})=>{const[t,n]=(0,r.useState)(null),a=(0,r.useCallback)((e=>{const t=new Date;if(e){let n=!1,i=!1;if(Date.parse(e.startingAt)<t.getTime()&&Date.parse(e.endingAt)>t.getTime()&&!e.inMaintenance&&(n=!0),!n&&Date.parse(e.notifyFrom)<t.getTime()&&Date.parse(e.endingAt)>t.getTime()&&!e.inMaintenance&&(i=!0),e.inMaintenance!==n||e.inNotifyMaintenace!==i)return Object.assign(Object.assign({},e),{inMaintenance:n,inNotifyMaintenace:i})}return e}),[]),o=(0,r.useCallback)((async()=>{let e=await(0,Ey.KB)();e=a(e),!e||t&&e.lastUpdate===t.lastUpdate&&e.endingAt===t.endingAt&&e.startingAt===t.startingAt&&e.notifyFrom===t.notifyFrom||n(e)}),[a,t]);(0,r.useEffect)((()=>{o()}),[o]);const s=(0,r.useCallback)((()=>{const e=a(t);!e||t&&e.inMaintenance===t.inMaintenance&&e.inNotifyMaintenace===t.inNotifyMaintenace||n(e)}),[a,t]);return(0,Iy.$)(s,3e5),(0,Iy.$)(o,18e5),(0,i.jsx)(Cy.Provider,{value:t,children:e})},Ny=()=>{const{t:e}=(0,k.Bd)(),t=_y(),n=(0,Gr.U)()(),r=e("maintenance.text",{endtime:new Date(Date.parse(t.endingAt)).toLocaleString(n,{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}),interpolation:{escapeValue:!1}}).split("<br/>");return t?(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:e("maintenance.title")}),(0,i.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[(0,i.jsx)("div",{className:"flex flex-col gap-2",children:null==r?void 0:r.map(((e,t)=>(0,i.jsx)("p",{children:e},t)))}),(0,i.jsx)("div",{children:(0,i.jsx)("img",{src:"./images/wartungsseite.png",alt:"Maintenance-Image"})})]})]}):(0,i.jsx)(i.Fragment,{children:" "})};const Ly=({statement:e})=>(0,i.jsxs)("div",{className:"flex-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-4",children:"ID:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:e.id})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Actor:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.actor)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Verb:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.verb)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Object:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.object)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Result:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.result)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Context:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.context)})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Stored:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:JSON.stringify(e.stored)})]})]});var Py=n(66970);const Dy=()=>{const[e,t]=(0,r.useState)(""),[n,a]=(0,r.useState)(""),[o,s]=(0,r.useState)(""),[l,c]=(0,r.useState)(""),[u,p]=(0,r.useState)(""),[h,m]=(0,r.useState)(""),[g,f]=(0,r.useState)(0),[v,b]=(0,r.useState)(0),[y,x]=(0,r.useState)(!1),{data:w}=function({statementId:e,agent:t,verb:n,activity:i,since:r,until:a,ascending:o,limit:s,offset:l},c){const u=(0,d.q)(),{t:p}=(0,k.Bd)(),h=(0,T.I)({queryKey:["get-statement",e,t,n,i,r,a,o,s,l],queryFn:async()=>{const c={};return e?c.statementId=e:(t&&(c.agent=t),n&&(c.verb=n),i&&(c.activity=i),r&&(c.since=r),a&&(c.until=a),o&&(c.ascending=o),s&&(c.limit=s),l&&(c.offset=l)),(await u.get("/xAPI/statements",{params:c})).data},retry:!1,enabled:!!(e||t||n||i||r||a)});return(0,S.V)(h,c||{message:p("error.xapi.failGetStatement")})}({statementId:e,agent:n,verb:o,activity:l,since:u,until:h,ascending:y,limit:g,offset:v}),[A,E]=(0,r.useState)([]);return(0,r.useEffect)((()=>{w&&w.statements&&w.statements.length>0?E(w.statements):E([])}),[w]),(0,i.jsxs)(pe,{fullWidth:!0,children:[(0,i.jsxs)("div",{className:"p-1",children:[(0,i.jsx)(Ke.p,{label:"StatementID",value:e,onCh
2ange:e=>t(e.target.value)}),(0,i.jsx)(Ke.p,{label:"Agent",value:n,onChange:e=>a(e.target.value)}),(0,i.jsx)(Ke.p,{label:"Verb",value:o,onChange:e=>s(e.target.value)}),(0,i.jsx)(Ke.p,{label:"Activity",value:l,onChange:e=>c(e.target.value)}),(0,i.jsx)(Ke.p,{label:"Since",value:u,onChange:e=>p(e.target.value)}),(0,i.jsx)(Ke.p,{label:"Until",value:h,onChange:e=>m(e.target.value)}),(0,i.jsx)(Ln.o,{id:"ascending",value:y,onChange:e=>x(e.target.checked),children:"Ascending?"}),(0,i.jsx)(Ke.p,{label:"Limit",value:g,type:"number",onChange:e=>f(Number.parseInt(e.target.value))}),(0,i.jsx)(Ke.p,{label:"Offset",type:"number",value:v,onChange:e=>b(Number.parseInt(e.target.value))})]}),A&&A.length>0&&(0,i.jsx)("div",{className:"flex flex-col p-1",children:A.map(((e,t)=>(e.actor.account.name="xxx",(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Py.w,{}),(0,i.jsx)(Ly,{statement:e},t)]}))))}),(!A||A.length<=0)&&(0,i.jsx)("span",{className:"p-1",children:"Keine Ergebnisse!"})]})};const My=({report:e})=>(0,i.jsxs)("div",{className:"flex-row",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-4",children:"Report:"}),(0,i.jsx)("br",{}),(0,i.jsx)("span",{children:e.type})]}),(0,i.jsxs)("div",{children:[(0,i.jsx)("span",{className:"heading-5",children:"Ergebnis:"}),(0,i.jsx)("br",{}),e.results.map(((e,t)=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)("span",{children:e.text}),(0,i.jsx)("br",{})]},`report-line-${t}`)))]})]}),Oy=()=>{const e=(0,c.As)(),{data:t,refetch:n}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-report"],queryFn:async()=>(await n.get("/xAPI/reporting",{params:{}})).data,retry:!1,enabled:e});return(0,S.V)(r,t||{message:i("error.xapi.failGetReport")})}(e.authenticated),[a,o]=(0,r.useState)([]);return(0,r.useEffect)((()=>{t&&o(t)}),[t]),(0,i.jsx)(pe,{fullWidth:!0,children:(0,i.jsxs)("div",{className:"p-1",children:[(0,i.jsx)(N.$,{variant:"primary",onClick:n,children:"Neu laden"}),a&&a.length>0&&(0,i.jsx)("div",{className:"flex flex-col",children:a.map(((e,t)=>(0,i.jsxs)(r.Fragment,{children:[(0,i.jsx)(Py.w,{}),(0,i.jsx)(My,{report:e})]},`reporting-${t}`)))}),(!a||a.length<=0)&&(0,i.jsx)("span",{children:"Keine Ergebnisse!"})]})})},Ry=({role:e,children:t})=>{var n,r;const a=(0,c.As)(),{t:o}=(0,k.Bd)();return a&&a.authInitialized&&a.authenticated?a&&a.authInitialized&&a.authenticated&&(!a.authorization||-1===(null===(n=a.authorization.realmAccessRoles)||void 0===n?void 0:n.indexOf(e)))?(0,i.jsx)(pe,{children:(0,i.jsx)(Q,{title:o("protected.unautorisedTitle"),lead:(0,i.jsx)("p",{children:o("protected.unautorisedCopy")})})}):a&&a.authInitialized&&a.authenticated&&a.authorization&&(null===(r=a.authorization.realmAccessRoles)||void 0===r?void 0:r.indexOf(e))>-1?t:void 0:(0,i.jsx)(pe,{children:(0,i.jsx)(Q,{title:o("protected.unauthTitle"),lead:(0,i.jsxs)("p",{children:[o("protected.unauthCopy"),(0,i.jsx)(De.M,{variant:"primary",className:"mt-2",text:o("protected.unauthCta")})]})})})};var zy=n(10072),By={};By.styleTagTransform=q(),By.setAttributes=B(),By.insert=R().bind(null,"head"),By.domAPI=M(),By.insertStyleElement=F();P()(zy.A,By);zy.A&&zy.A.locals&&zy.A.locals;var Uy=n(9351);n(87918);const Fy=({entitlement:e})=>{const{dark:t}=b();return(0,i.jsxs)("div",{className:"license-entitlement__json",children:[(0,i.jsxs)("div",{className:"font-bold",children:[null==e?void 0:e.entitlementId,":"]}),(0,i.jsx)(Uy.UU,{data:e,shouldExpandNode:()=>(0,Uy.ab)(1),clickToExpandNode:!0,style:Object.assign(Object.assign({},t?Uy.FD:Uy.k5),{container:"bg-surface",basicChildStyle:"p-0"})})]})},Vy=()=>{var e,t,n,a;Oe("Lizenzadmin");const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(""),{refetch:c,data:u}=function(e,t){const n=(0,d.q)(),i=(0,T.I)({queryKey:["get-license-sync",e],queryFn:async()=>(await n.get(`/entitlement/admin/sync/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(i,t||{message:"Error getting license sync"})}(s.trim()),{mutateAsync:p}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async()=>(await n.put(`/entitlement/admin/sync/${e}`)).data,retry:!1});return(0,S.s)(r,t||{message:i("error.dau.failedSaveVersion")})}(s.trim()),h=(0,r.useCallback)((e=>{l(e.target.value)}),[]);return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{title:"Lizenzübersicht"}),(0,i.jsxs)("div",{className:"license-admin",children:[(0,i.jsxs)("form",{className:"license-admin__form",onSubmit:async e=>{e.preventDefault(),s&&await c()},children:[(0,i.jsx)(Ke.p,{value:s,label:o("settings.ssoId"),onChange:h}),(0,i.jsxs)("div",{className:"license-admin__buttons",children:[(0,i.jsx)(N.$,{variant:"primary",type:"submit",children:"Reload"}),(0,i.jsx)(N.$,{variant:"secondary",onClick:async()=>{s&&p(s.trim()).then((()=>c()))},children:"Sync"})]})]}),u&&(0,i.jsxs)("div",{className:"license-admin__table",children:[(0,i.jsxs)("div",{className:"license-admin__table__column",children:[(0,i.jsx)("h2",{className:"heading-4",children:"Live Entitlement (BDL)"}),(null===(e=null==u?void 0:u.liveEntitlements)||void 0===e?void 0:e.length)?null===(t=u.liveEntitlements)||void 0===t?void 0:t.map(((e,t)=>(0,i.jsx)(Fy,{entitlement:e},`liveEntitlement-${t}`))):(0,i.jsx)("div",{children:"no Result"})]}),(0,i.jsxs)("div",{className:"license-admin__table__column",children:[(0,i.jsx)("h2",{className:"heading-4",children:"Cached Entitlement (Redis)"}),(null===(n=null==u?void 0:u.cachedEntitlements)||void 0===n?void 0:n.length)?null===(a=null==u?void 0:u.cachedEntitlements)||void 0===a?void 0:a.map(((e,t)=>(0,i.jsx)(Fy,{entitlement:e},`cachedEntitlement-${t}`))):(0,i.jsx)("div",{children:"no Result"})]})]})]})]})};var qy=n(91162),Hy={};Hy.styleTagTransform=q(),Hy.setAttributes=B(),Hy.insert=R().bind(null,"head"),Hy.domAPI=M(),Hy.insertStyleElement=F();P()(qy.A,Hy);qy.A&&qy.A.locals&&qy.A.locals;const Gy=()=>{const[e,t]=(0,r.useState)(),n=(0,Gr.U)(),{t:a}=(0,k.Bd)();return Oe(a("metaTitle.accessibility",{brand:(0,se.P)()})),(0,r.useEffect)((()=>{!async function(e){const n=await fetch(`./static-pages/accessibility/accessibility_${e}.html`),i=await n.text();t(i)}(n())}),[n]),(0,i.jsx)(pe,{children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:e}})})};const Ky=({onAddCourse:e})=>{const{t}=(0,k.Bd)();return(0,i.jsx)(fr,{dataCy:"empty-courses-teaser",title:t("course.emptyTeaser.title"),body:(0,i.jsx)("p",{children:t("course.emptyTeaser.body")}
2),customAction:(0,i.jsx)(N.$,{"data-cy":"empty-courses-teaser-button",onClick:e,icon:(0,i.jsx)(Ue.I,{source:hr.A}),variant:"primary",size:"lg",children:t("course.emptyTeaser.emptyCoursesLink")})})},$y=({className:e,title:t,onSetEditMode:n,onSaveCourse:a})=>{const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(t),c=(0,r.useRef)(),[d,u]=(0,r.useState)();(0,r.useEffect)((()=>{c.current.focus()}),[]);const p=(0,r.useCallback)((()=>{s&&""!==s&&""!==s.trim()?(a(s),n(!1)):u(o("course.invalidName"))}),[s,a,n,o]),h=(0,r.useCallback)((()=>{n(!1),l(t)}),[t,n]);return(0,i.jsxs)("form",{onClick:e=>e.preventDefault(),className:`${e||""} create-course-input`,children:[(0,i.jsx)(Ke.p,{placeholder:o("course.namePlaceholder"),"data-cy":"create-course-input-field",name:"name",value:s,onChange:e=>l(e.target.value),ref:c,label:o("course.updateTitle"),error:{message:d,id:"course-name-error"},maxLength:1e3}),(0,i.jsxs)("div",{className:"create-course-input__actions",children:[(0,i.jsx)(N.$,{variant:"plain",onClick:h,type:"button",children:o("ui.abort")}),(0,i.jsx)(N.$,{"data-cy":"create-course-input-save",variant:"primary",onClick:p,type:"submit",children:o("ui.save")})]})]})},Wy=e=>({courseId:e.courseId,title:e.title,membersCanJoin:e.membersCanJoin,collaboratorsCanJoin:e.collaboratorsCanJoin,npNumberList:e.bookList.map((e=>e.id))||[]});function Xy(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async e=>(await t.put(`/courses/${e.courseId}`,{title:e.title,collaboratorsCanJoin:e.collaboratorsCanJoin,membersCanJoin:e.membersCanJoin,npNumberList:e.npNumberList||[]})).data,retry:!1});return(0,S.s)(i,e||{message:n("error.course.failModify")})}function Yy(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async e=>await t.delete(`/courses/${e}`),retry:!1});return(0,S.s)(i,e||{message:n("error.course.failDelete")})}var Jy=n(36354),Zy={};Zy.styleTagTransform=q(),Zy.setAttributes=B(),Zy.insert=R().bind(null,"head"),Zy.domAPI=M(),Zy.insertStyleElement=F();P()(Jy.A,Zy);Jy.A&&Jy.A.locals&&Jy.A.locals;const Qy=({course:e,shareCourse:t,refetchCourse:n})=>{var a,o;const s=(0,fe.m)(),{t:l}=(0,k.Bd)(),[c,d]=(0,r.useState)(!1),{mutateAsync:u}=Yy(),{mutateAsync:p}=Xy({message:l("error.course.failRename")}),[h,m]=(0,r.useState)(!1);return(0,i.jsxs)("div",{className:"course-detail__header",children:[!c&&(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(Q,{title:e.title,withActions:!0,children:[(0,i.jsx)(N.$,{offlineDisabled:!0,variant:"plain",onClick:()=>d(!0),icon:(0,i.jsx)(Ue.I,{source:yi}),ariaLabel:l("course.editCourseNameAria"),title:l("course.editCourseNameAria"),data_cy:"rename-course"}),(0,i.jsx)(N.$,{className:"text-textCritical",ariaLabel:l("course.menu.delete"),title:l("course.menu.delete"),onClick:()=>m(!0),icon:(0,i.jsx)(Ue.I,{source:Cr}),data_cy:"delete-course"}),(0,i.jsx)(Xr,{isOpen:h,setIsOpen:m,deleteApproved:()=>{u(e.courseId).then((e=>{200===e.status&&s(te.J.course.index)}))},text:l("course.menu.deleteModal.warningTextCourse")}),(0,i.jsx)(N.$,{offlineDisabled:!0,onClick:t,icon:(0,i.jsx)(Ue.I,{source:Nr}),variant:"primary",data_cy:"share-course",children:l("course.share.button")})]})}),c&&(0,i.jsx)($y,{className:"course-detail__title-edit",title:e.title,onSetEditMode:d,onSaveCourse:t=>{const i=Wy(e);p(Object.assign(Object.assign({},i),{title:t})).then((()=>n()))}}),(0,i.jsx)("p",{className:"course-detail__author",children:l("course.author")+" "+((null===(a=null==e?void 0:e.creator)||void 0===a?void 0:a.displayName)?e.creator.displayName:l("settings.anonymsAuthor"))}),!!(null==e?void 0:e.institutions)&&!!(null===(o=null==e?void 0:e.institutions)||void 0===o?void 0:o.length)&&(0,i.jsx)("p",{className:"text-sm text-textStrong",children:e.institutions.join(", ")}),(0,i.jsxs)("p",{className:"course-detail__creation",children:[!!(null==e?void 0:e.created)&&l("course.creationDate",{date:gn(e.created)})," ",!!(null==e?void 0:e.modified)&&l("course.modified",{date:gn(e.modified)})]})]})};function ex(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async({courseId:t,userId:i})=>await n.delete(`courses/${e}/${t}/${i}/join`),retry:!1});return(0,S.s)(r,t||{message:i("error.course.removeFromCourse")})}const tx=({shareCourse:e,type:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsx)(fr,{dataCy:`empty-${t}-teaser`,title:n(`course.${t}.emptyTeaser.title`),body:(0,i.jsx)("p",{children:n(`course.${t}.emptyTeaser.body`)}),customAction:!!e&&(0,i.jsx)(N.$,{"data-cy":`empty-${t}-teaser-button`,offlineDisabled:!0,onClick:e,icon:(0,i.jsx)(Ue.I,{source:Nr}),variant:"primary",size:"lg",children:n("course.share.button")})})},nx=({course:e,refetchCourse:t,shareCourse:n})=>{var a,o;const{t:s}=(0,k.Bd)(),{mutateAsync:l}=ex(Wr.MEMBER),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)();return(0,i.jsxs)("ul",{className:"course-detail__members",children:[(!(null==e?void 0:e.memberList)||!(null===(a=null==e?void 0:e.memberList)||void 0===a?void 0:a.length))&&(0,i.jsx)(tx,{type:Vx.MEMBERS,shareCourse:n}),null===(o=null==e?void 0:e.memberList)||void 0===o?void 0:o.map(((e,t)=>(0,i.jsxs)("li",{className:"course-detail__member-item",children:[(0,i.jsxs)("div",{className:"course-detail__member-name",children:[(0,i.jsx)("span",{className:"font-bold",children:e.displayName?e.displayName:s("settings.anonymsAuthor")}),(0,i.jsx)("span",{className:"text-xs",children:e.userId})]}),(0,i.jsx)(N.$,{className:"text-textCritical",ariaLabel:s("course.members.remove"),title:s("course.members.remove"),onClick:()=>{return t=e.userId,d(!0),void p(t);var t},icon:(0,i.jsx)(Ue.I,{source:Cr})})]},`member-${t}`))),(0,i.jsx)(Xr,{isOpen:c,setIsOpen:d,deleteApproved:()=>{var n;n=u,l({courseId:e.courseId,userId:n}).then((e=>{200===e.status&&t()})),p(void 0)},text:s("course.menu.deleteModal.warningTextMember")})]})},ix=({openAddBooks:e})=>{const{t}=(0,k.Bd)();return(0,i.jsx)(fr,{dataCy:"empty-books-teaser",title:t("course.books.emptyTeaser.title"),body:(0,i.jsx)("p",{children:t("course.books.emptyTeaser.body")}),customAction:!!e&&(0,i.jsx)(N.$,{"data-cy":"empty-books-teaser-button",offlineDisabled:!0,onClick:e,icon:(0,i.jsx)(Ue.I,{source:hr.A}),variant:"primary",size:"lg",children:t("course.books.addButton")})})},rx=({personalDAUs:e,npsInCourse:t,selectedNps:n,onChangeSelectedNps:a})=>{const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)([]);return(0,r.useEffect)((()=>{const n=null==e?void 0:e.flatMap((e=>{const n=e.license&&e.license.length?e.license[0]:void 0,i=(null==n?void 0:n.productId)||"",r=t.includes(i),a=!!n&&Xt(n);return!r&&i?[Object.assign(Object.assign({},e),{dauNp:i,isLicenseInvalid:a})]:[]}));l(n)}),[e,t]),(0,i.jsxs)("ul",{className:"course-add-books__list",children:[null==s?void 0:s.map(((e,t)=>(0,i.jsx)("li",{children:(0,i.jsx)(Ln.o,{onChange:a,checked:n.includes(e.dauNp),value:e.dauNp,id:e.dauNp,className:"course-add-course-books__checkbox",childWrapper:!0,children:(0,i.jsxs)("div",{className:"course-add-books__item",children:[(0,i.jsx)("div",{className:"course-add-books__item-cover",children:(0,i.jsx)(W,{src:null==e?void 0:e.cover,width:81,height:99,className:"max-w-28"})}),(0,i.jsxs)("div",{className:"course-add-books__item-text",children:[(0,i.jsxs)("div",{children:[(0,i.jsx)("p",{className:"font-bold",children:null==e?void 0:e.title}),(null==e?void 0:e.bestandteil)&&(0,i.jsx)("p",{className:"font-bold",children:null==e?void 0:e.bestandteil}),(0,i.jsx)("p",{className:"text-sm text-textSubdued",children:e.dauNp})]}),e.isLicenseInvalid&&(0,i.jsx)(Dt.E,{type:"expired",className:"bg-surfaceWarning w-fit",children:o("license.expired")})]})]})})},`book-${t}`))),(!s||!s.length)&&(0,i.jsx)("span",{children:o("course.books.add.noBookFound")}),(0,i.jsx)("span",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:o("bookmark.assetsFound",{count:s.length})})]})},ax=1e3,ox=1;function sx(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,Re.V)(),a=(0,T.I)({queryKey:["get-my-search",e],queryFn:()=>(async()=>{const t=r.get("brand");let i="";!t||e&&-1!==e.indexOf("&brand")||(i="&brand="+t),t&&e&&-1!==e.indexOf("?brand")&&(e=e.replace("?brand="+t,""),i="&brand="+t),e||(e="?searchString=");let a="&page="+ox+"&pagesize="+ax;return-1!==e.indexOf("page")&&(a=""),(await n.get(`/search/mydau${e}${a}${i}`)).data})(),retry:!1,enabled:!1}),o=t.message?t:Object.assign(Object.assign({},t),{message:i("error.search.failedBookSearch")});return(0,S.V)(a,o)}const lx=()=>{const{t:e}=(0,k.Bd)(),[t,n]=(0,r.useState)(!1),a=()=>{n(!1)};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"flex flex-row gap-2 items-center",children:[(0,i.jsx)("span",{children:e("course.books.add.note")}),(0,i.jsx)(N.$,{size:"sm",onClick:()=>{n(!0)},icon:(0,i.jsx)(Ue.I,{source:hl.A}),ariaLabel:e("course.books.add.noteInfo.iconAria")})]}),(0,i.jsx)(Xe.y,{open:t,asPrompt:!0,close:a,title:e("course.books.add.noteInfo.title"),asPortal:!1,copy:(0,i.jsx)("p",{children:(0,i.jsx)(k.x6,{i18nKey:"course.books.add.noteInfo.text"})}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:a,children:e("course.books.add.noteInfo.ok")})]})})]})},cx=({course:e,refetchCourse:t,isOpen:n,setIsOpen:a})=>{var o;const{t:s}=(0,k.Bd)(),[l,c]=(0,r.useState)([]),[d,u]=(0,r.useState)([]),{mutateAsync:p}=Xy({message:s("error.course.addToBookList")}),[h,m]=(0,r.useState)(""),[g,f]=(0,r.useState)(""),{refetch:v,data:b}=sx(`?searchString=${g}`,{hideToast:!0});(0,r.useEffect)((()=>{v&&v()}),[v,g]),(0,r.useEffect)((()=>{e&&e.bookList&&c(e.bookList.map((e=>e.id)))}),[e]);const y=()=>{a(!1),setTimeout((()=>{m(""),f(""),u([])}),300)},x=()=>{f(h)};return(0,i.jsx)(Xe.y,{title:s("course.books.add.title",{title:e.title}),open:n,close:()=>a(!1),contentClassName:"modal-dialog__body--book-list",copy:(0,i.jsxs)("div",{className:"course-add-books-modal",children:[(0,i.jsxs)("div",{className:"course-add-books__search",children:[(0,i.jsx)(Ke.p,{ariaLabel:s("course.books.add.ariaLabel"),onKeyUp:e=>{"Enter"===e.code&&x()},onChange:e=>
2m(e.target.value),value:h,name:"books-search",placeholder:s("course.books.add.searchPlaceholder")}),(0,i.jsx)(N.$,{variant:"secondary",onClick:x,children:s("course.books.add.search")})]}),(0,i.jsx)(rx,{personalDAUs:(null===(o=null==b?void 0:b.resultPage)||void 0===o?void 0:o.content)||[],npsInCourse:l,selectedNps:d,onChangeSelectedNps:e=>{const t=e.target.value;if(t){const e=[...d];e.includes(t)?u(e.filter((e=>e!==t))):(e.push(t),u(e))}}}),(0,i.jsxs)("div",{children:[(0,i.jsx)(lx,{}),(0,i.jsxs)("div",{className:"course-add-books__actions",children:[(0,i.jsx)(N.$,{variant:"secondary",onClick:y,children:s("course.books.add.abort")}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{p(Object.assign(Object.assign({},e),{npNumberList:[...l,...d]})).then((e=>{e&&t()})).finally((()=>y()))},data_cy:"add-book-to-course",children:s("course.books.add.save"+(1===d.length?"Single":"Plural"),{count:d.length})})]})]})]})})},dx=({course:e,refetchCourse:t})=>{var n,a;const o=(0,J.Ay)(640),{t:s}=(0,k.Bd)(),[l,c]=(0,r.useState)(!1),{mutateAsync:d}=Xy({message:s("error.course.removeFromBookList")}),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(),g=()=>{c(!0)};return(0,i.jsxs)("div",{className:"course-detail__books",children:[(null==e?void 0:e.bookList)&&(null===(n=null==e?void 0:e.bookList)||void 0===n?void 0:n.length)?(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{offlineDisabled:!0,id:"create-playlist-btn",onClick:g,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:s("course.books.addButton")})}),(0,i.jsx)("ul",{className:"discover-page__items",children:null===(a=null==e?void 0:e.bookList)||void 0===a?void 0:a.map(((e,t)=>(0,i.jsxs)("li",{className:"course-detail__book-item",children:[(0,i.jsx)("div",{className:"flex-1",children:(0,i.jsx)(kn,{item:e,alternativeRoute:te.J.dau})}),(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{variant:o?"iconOnly":"destructive",className:"text-textCritical",onClick:()=>{return t=e.id,p(!0),void m(t);var t},icon:(0,i.jsx)(Ue.I,{source:Cr}),size:"sm",children:!o&&s("course.books.remove")})})]},`book-${t}`)))})]}):(0,i.jsx)(ix,{openAddBooks:g}),(0,i.jsx)(cx,{course:e,refetchCourse:t,isOpen:l,setIsOpen:c}),(0,i.jsx)(Xr,{isOpen:u,setIsOpen:p,deleteApproved:()=>{(n=>{const i=e.bookList.flatMap((e=>e.id!=n?[e.id]:[]));d(Object.assign(Object.assign({},e),{npNumberList:i})).then((e=>{e&&t()}))})(h),m(void 0)},text:s("course.menu.deleteModal.warningTextBook")})]})},ux=({course:e,refetchCourse:t,shareCourse:n})=>{var a,o;const{t:s}=(0,k.Bd)(),{mutateAsync:l}=ex(Wr.COLLABORATOR),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)();return(0,i.jsxs)("ul",{className:"course-detail__members",children:[(!(null==e?void 0:e.collaboratorList)||!(null===(a=null==e?void 0:e.collaboratorList)||void 0===a?void 0:a.length))&&(0,i.jsx)(tx,{type:Vx.COLLABORATORS,shareCourse:n}),null===(o=null==e?void 0:e.collaboratorList)||void 0===o?void 0:o.map(((e,t)=>(0,i.jsxs)("li",{className:"course-detail__member-item",children:[(0,i.jsxs)("div",{className:"course-detail__member-name",children:[(0,i.jsx)("span",{className:"font-bold",children:e.displayName?e.displayName:s("settings.anonymsAuthor")}),(0,i.jsx)("span",{className:"text-xs",children:e.userId})]}),(0,i.jsx)(N.$,{className:"text-textCritical",ariaLabel:s("course.collaborators.remove"),title:s("course.collaborators.remove"),onClick:()=>{return t=e.userId,d(!0),void p(t);var t},icon:(0,i.jsx)(Ue.I,{source:Cr})})]},`collaborator-${t}`))),(0,i.jsx)(Xr,{isOpen:c,setIsOpen:d,deleteApproved:()=>{var n;n=u,l({courseId:e.courseId,userId:n}).then((e=>{200===e.status&&t()})),p(void 0)},text:s("course.menu.deleteModal.warningTextCollaborator")})]})};function px(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async({id:t})=>await n.post(`/courses/${e}/${t}/join`),retry:!1});return(0,S.s)(r,t||{message:i("error.course.failJoin")})}var hx=n(59115),mx={};mx.styleTagTransform=q(),mx.setAttributes=B(),mx.insert=R().bind(null,"head"),mx.domAPI=M(),mx.insertStyleElement=F();P()(hx.A,mx);hx.A&&hx.A.locals&&hx.A.locals;const gx=({leftText:e,rightText:t,isRightActive:n,setIsRightActive:r})=>(0,i.jsxs)("div",{className:"switch",children:[(0,i.jsx)("div",{className:"switch-slider "+(n?"translate-x-full":"translate-x-0")}),(0,i.jsx)(N.$,{variant:"plain",className:"switch-button !bg-transparent "+(n?"text-text":"button--primary"),onClick:()=>r(!1),children:(0,i.jsx)("span",{className:"truncate",children:e})}),(0,i.jsx)(N.$,{variant:"plain",className:"switch-button !bg-transparent "+(n?"button--primary":"text-text"),onClick:()=>r(!0),children:(0,i.jsx)("span",{className:"truncate",children:t})})]});var fx;function vx(){return vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},vx.apply(null,arguments)}const bx=e=>r.createElement("svg",vx({xmlns:"http://www.w3.org/2000/svg",fill:"
2currentColor",viewBox:"0 0 24 24"},e),fx||(fx=r.createElement("path",{d:"M12 4a7.99 7.99 0 0 0-6.616 3.5H8v2H2v-6h2V6a9.98 9.98 0 0 1 8-4c5.523 0 10 4.477 10 10h-2a8 8 0 0 0-8-8m-8 8a8 8 0 0 0 14.616 4.5H16v-2h6v6h-2V18a9.98 9.98 0 0 1-8 4C6.477 22 2 17.523 2 12z"}))),yx=({bookList:e,selectedBook:t,setSelectedBook:n,lastUpdateProgression:r,loadProgression:a,isLoading:o})=>{const{t:s}=(0,k.Bd)();return(0,i.jsxs)("div",{className:"course-detail-overview__header-book",children:[(0,i.jsxs)("div",{className:"course-detail-overview__header-book-action",children:[(0,i.jsx)(vi.u,{data_cy:"book-select",items:e.map((e=>{var t;return{label:`${null!==(t=e.bezeichnung)&&void 0!==t?t:""}`.trim(),value:e.id}})),asSelect:!0,label:null==t?void 0:t.title,onSelect:e=>{n({npNumber:e.value,title:e.label})},offlineDisabled:!0,isSelect:!0,preLabel:s("course.overview.bookSelectLabel")+": ",contentClass:"z-20"}),(0,i.jsx)(N.$,{variant:"iconOnly",onClick:a,disabled:o,icon:(0,i.jsx)(Ue.I,{source:bx}),ariaLabel:s("course.overview.reload"),title:s("course.overview.reload"),className:"border border-borderColor"})]}),!!r&&!o&&(0,i.jsx)("span",{className:"text-xs",children:s("course.overview.modified",{date:fn(r)})})]})},xx=({progression:e,isLoading:t,showCompetencies:n})=>{const{t:r}=(0,k.Bd)();if(e&&!t&&!n)return(0,i.jsxs)("div",{className:"course-detail-overview__header-percentages",children:[(0,i.jsxs)("div",{className:"course-detail-overview__header-percentage",children:[(0,i.jsx)("span",{children:r("course.overview.correctAnswers")}),(0,i.jsx)("span",{className:"font-bold text-lg",children:null!==(null==e?void 0:e.book.resultAverage)?`${null==e?void 0:e.book.resultAverage}%`:"-"})]}),(0,i.jsxs)("div",{className:"course-detail-overview__header-percentage",children:[(0,i.jsx)("span",{children:r("course.overview.solvedLessons")}),(0,i.jsx)("span",{className:"font-bold text-lg",children:null!==(null==e?void 0:e.book.editedAverage)?`${null==e?void 0:e.book.editedAverage}%`:"-"})]})]})};var wx;!function(e){e.RESULT="result",e.EDITED="edited",e.READ="read"}(wx||(wx={}));const kx=[{dataType:wx.RESULT,label:"course.overview.result"},{dataType:wx.EDITED,label:"course.overview.edited"},{dataType:wx.READ,label:"course.overview.read"}],Ax=({selectedData:e,setSelectedData:t,hideSelfEvaluation:n,setHideSelfEvaluation:a})=>{const{t:o}=(0,k.Bd)(),[s,l]=(0,r.useState)(!1),c=()=>{l(!1)};return(0,i.jsxs)("div",{className:"course-detail-overview__header-filter",children:[(0,i.jsxs)("div",{className:"flex flex-row flex-nowrap",children:[(0,i.jsx)(vi.u,{data_cy:"book-select",items:kx.map((e=>({label:o(e.label),value:e.dataType}))),asSelect:!0,label:o(e.label),onSelect:e=>{t({dataType:e.value,label:e.label})},offlineDisabled:!0,isSelect:!0,contentClass:"z-20"}),(0,i.jsx)(N.$,{size:"sm",onClick:()=>l(!0),icon:(0,i.jsx)(Ue.I,{source:hl.A}),autofocus:!1,ariaLabel:o("course.overview.filterInfo.accessibilityLabel"),className:"ai-teaser__button"}),(0,i.jsx)(Xe.y,{open:s,asPrompt:!0,close:c,title:o("course.overview.filterInfo.title"),copy:(0,i.jsx)("p",{children:(0,i.jsx)(k.x6,{i18nKey:o("course.overview.filterInfo.text")})}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:c,children:o("course.overview.filterInfo.ok")})]})})]}),(0,i.jsx)("div",{className:"pt-2.5",children:(0,i.jsx)(Ln.o,{id:"hide-self-evaluation",onChange:()=>a(!n),checked:n,children:o("course.overview.hideSelfEvaluation")})})]})},Tx=[{dataType:wx.RESULT,label:"course.overview.result"},{dataType:wx.EDITED,label:"course.overview.edited"}],Sx=({selectedDataType:e,setSelectedDataType:t})=>{var n,r;const{t:a}=(0,k.Bd)(),o=null!==(r=null===(n=Tx.find((t=>t.dataType===e)))||void 0===n?void 0:n.label)&&void 0!==r?r:Tx[0].label;return(0,i.jsx)("div",{className:"course-detail-overview__header-filter",children:(0,i.jsx)(vi.u,{data_cy:"competency-select",items:Tx.map((e=>({label:a(e.label),value:e.dataType}))),asSelect:!0,label:a(o),onSelect:e=>{t(e.value)},offlineDisabled:!0,isSelect:!0,contentClass:"z-20"})})},Ex=({chapter:e,members:t,isOpen:n,activeMemberId:r,selectedDataType:a})=>{const o=(s=a,{result:e.resultAverage,edited:e.editedAverage,read:e.readAverage}[s]);var s;const l=(t=>{var n;return null!==(n={result:e.result,edited:e.edited,read:e.read}[t])&&void 0!==n?n:{}})(a);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("td",{className:"course-table__cell course-table__cell--sticky",children:(0,i.jsxs)("div",{className:"course-table__chapter-title",children:[a!==wx.READ&&(0,i.jsx)("div",{className:"flex items-center",children:(0,i.jsx)(Ue.I,{source:zc.A,className:"course-table__accordion-icon "+(n?"rotate-90":"")})}),(0,i.jsx)("span",{className:"course-table__chapter-title-text",children:e.title})]})}),(0,i.jsx)("td",{className:"course-table__cell course-table__average-cell font-normal",children:null!==o?`${o}%`:"-"}),null==t?void 0:t.map((e=>(0,i.jsx)("td",{className:"course-table__cell "+(r===e.userId?"course-table__highlighted-cell":""),children:void 0!==l[e.userId]?`${l[e.userId]}%`:"-"}
2,e.userId)))]})},Ix=({elements:e,members:t,completedAt:n,activeRowId:r,setActiveRowId:a,activeMemberId:o,chapterId:s,selectedDataType:l})=>{const{t:c}=(0,k.Bd)(),d=(e,t)=>{e.stopPropagation(),a(r===t?null:t)};return(0,i.jsxs)(i.Fragment,{children:[null==e?void 0:e.map(((e,n)=>{var a;const c=`chapter-${s}-element-${n}`,u=r===c,p=((e,t)=>{var n;return null!==(n={result:e.result,edited:e.edited,read:[]}[t])&&void 0!==n?n:{}})(e,l),h=((e,t)=>({result:e.resultAverage,edited:e.editedAverage}[t]))(e,l);return(0,i.jsxs)("tr",{className:"bg-surfaceSubdued cursor-pointer "+(u?"course-table__highlighted-row":""),onClick:e=>d(e,c),children:[(0,i.jsx)("td",{className:"course-table__cell course-table__cell--sticky bg-surfaceSubdued py-2 pl-6",children:(0,i.jsxs)("div",{className:"course-table__chapter-element-title",children:[(0,i.jsxs)("div",{className:"course-table__chapter-element-title-text",children:[(0,i.jsx)("div",{className:"course-table__accordion-icon"}),(0,i.jsx)("span",{className:"truncate",children:e.title})]}),!!(null===(a=null==e?void 0:e.badges)||void 0===a?void 0:a.length)&&(0,i.jsxs)("div",{className:"course-table__chapter-element-title-text",children:[(0,i.jsx)("div",{className:"course-table__accordion-icon"}),(0,i.jsx)(Yc,{badges:e.badges})]})]})}),(0,i.jsx)("td",{className:"course-table__cell course-table__average-cell font-normal",children:null!==h?`${h}%`:"-"}),null==t?void 0:t.map((e=>(0,i.jsx)("td",{className:"course-table__cell "+(o===e.userId?"course-table__highlighted-cell":""),children:void 0!==p[e.userId]?`${p[e.userId]}%`:"-"},e.userId)))]},c)})),(0,i.jsxs)("tr",{className:"bg-surfaceSubdued cursor-pointer "+(r===`chapter-${s}-completed`?"course-table__highlighted-row":""),onClick:e=>d(e,`chapter-${s}-completed`),children:[(0,i.jsxs)("td",{className:"course-table__cell course-table__cell--sticky bg-surfaceSubdued pl-6 font-normal",children:[(0,i.jsx)("div",{className:"course-table__accordion-icon"}),c("course.overview.chapterCompleted")]}),(0,i.jsx)("td",{className:"course-table__cell course-table__average-cell font-normal"}),null==t?void 0:t.map((e=>(0,i.jsx)("td",{className:"course-table__cell "+(o===e.userId?"course-table__highlighted-cell":""),children:void 0!==n[e.userId]&&n[e.userId]?(0,i.jsx)(Ue.I,{source:Qs.A,accessibilityLabel:c("course.overview.accessibilityLabel"),className:"course-table__completed-icon"}):"-"},`completed-${e.userId}`)))]},`chapter-${s}-completed`)]})},Cx=({chapter:e,members:t,activeRowId:n,setActiveRowId:a,activeMemberId:o,selectedDataType:s})=>{const[l,c]=(0,r.useState)(!1);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("tr",{className:""+(s!==wx.READ?"cursor-pointer":""),onClick:e=>{s!==wx.READ&&(e.stopPropagation(),c(!l))},onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),s!==wx.READ&&c(!l))},tabIndex:s!==wx.READ?0:void 0,role:s!==wx.READ?"button":void 0,"aria-expanded":s!==wx.READ?l:void 0,children:(0,i.jsx)(Ex,{chapter:e,members:t,isOpen:l,activeMemberId:o,selectedDataType:s})}),l&&s!==wx.READ&&(0,i.jsx)(Ix,{elements:null==e?void 0:e.elements,members:t,completedAt:null==e?void 0:e.completedAt,activeRowId:n,setActiveRowId:a,activeMemberId:o,chapterId:e.id,selectedDataType:s})]})},_x=({chapters:e,members:t,activeRowId:n,setActiveRowId:r,activeMemberId:a,selectedDataType:o})=>e&&e.length?(0,i.jsx)(i.Fragment,{children:e.map(((e,s)=>(0,i.jsx)(Cx,{chapter:e,members:t,activeRowId:n,setActiveRowId:r,activeMemberId:a,selectedDataType:o},`chapter-${s}`)))}):null,jx=({competencies:e,members:t,activeRowId:n,setActiveRowId:r,activeMemberId:a,selectedDataType:o})=>{const{t:s}=(0,k.Bd)();if(!e||!e.length)return null;return(0,i.jsx)(i.Fragment,{children:e.map(((e,l)=>{const c=`competency-${l}`,d=n===c,u=(e=>o===wx.EDITED?e.editedAverage:e.resultAverage)(e),p=(e=>{var t;return null!==(t=o===wx.EDITED?e.edited:e.result)&&void 0!==t?t:{}})(e);return(0,i.jsxs)("tr",{className:"cursor-pointer "+(d?"course-table__highlighted-row":""),onClick:e=>((e,t)=>{e.stopPropagation(),r(n===t?null:t)})(e,c),children:[(0,i.jsx)("td",{className:"course-table__cell course-table__cell--sticky",children:s(`eksdi.overview.chapterProgress.${e.name.toLowerCase()}`)}),(0,i.jsx)("td",{className:"course-table__cell course-table__average-cell",children:null!==u?`${u}%`:"-"}),null==t?void 0:t.map((e=>(0,i.jsx)("td",{className:"course-table__cell "+(a===e.userId?"course-table__highlighted-cell":""),children:void 0!==p[e.userId]?`${p[e.userId]}%`:"-"}
2,e.userId)))]},c)}))})},Nx=({showCompetencies:e,members:t,colored:n,activeMemberId:r,setActiveMemberId:a})=>{const{t:o}=(0,k.Bd)();return(0,i.jsxs)("tr",{className:n?"course-table__header":"bg-surface",children:[(0,i.jsx)("th",{className:"course-table__cell course-table__cell--sticky",children:o(e?"course.overview.competency":"course.overview.chapter")}),(0,i.jsx)("th",{className:"course-table__cell course-table__header-cell course-table__average-cell "+(n?"bg-blue15":""),children:o("course.overview.courseAverage")}),null==t?void 0:t.map((e=>{const t=e.displayName?e.displayName:o("settings.anonymsAuthor");return(0,i.jsx)("th",{className:"course-table__cell course-table__header-cell cursor-pointer "+(r===e.userId?"course-table__highlighted-header-cell":""),onClick:t=>((e,t)=>{e.stopPropagation(),a(r===t?null:t)})(t,e.userId),children:(0,i.jsxs)("div",{className:"course-table__header-member",title:t,children:[(0,i.jsx)(Ue.I,{source:Sd,className:"w-8 h-8 text-primary"}),(0,i.jsx)("span",{className:"truncate text-center w-14 md:w-32",children:t})]})},e.userId)}))]})},Lx=({book:e,members:t,activeMemberId:n,selectedDataType:r})=>{const{t:a}=(0,k.Bd)();if(!e)return null;const o=(s=r,{result:e.resultAverage,edited:e.editedAverage,read:e.readAverage}[s]);var s;const l=(t=>({result:e.result,edited:e.edited,read:e.read}[t]))(r);return(0,i.jsxs)("tr",{className:"course-table__header font-bold",children:[(0,i.jsx)("td",{className:"course-table__cell course-table__cell--sticky",children:a("course.overview.total")}),(0,i.jsx)("td",{className:"course-table__cell course-table__average-cell",children:null!==o?`${o}%`:"-"}),null==t?void 0:t.map((e=>(0,i.jsx)("td",{className:"course-table__cell "+(n===e.userId?"course-table__highlighted-cell":""),children:void 0!==l[e.userId]?`${l[e.userId]}%`:"-"},e.userId)))]},"total")},Px=({members:e,activeMemberId:t,selectedDataLabel:n})=>{const{t:r}=(0,k.Bd)();return(0,i.jsxs)("tr",{className:"border-t border-borderColor h-auto bg-surface",children:[(0,i.jsx)("td",{className:"course-table__cell course-table__cell--sticky py-2"}),(0,i.jsx)("td",{className:"course-table__cell course-table__cell-two--sticky font-bold text-textSubdued py-2",children:r(n)}),null==e?void 0:e.map((e=>(0,i.jsx)("td",{className:"course-table__cell py-2 "+(t===e.userId?"course-table__highlighted-cell":"")},e.userId)))]},"result")},Dx=({tableScrollWidth:e,contentWidth:t,headerHeight:n,containerRef:a})=>{const o=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{o.current&&a.current&&(o.current.scrollLeft=a.current.scrollLeft)},t=a.current;return t&&t.addEventListener("scroll",e),()=>{t&&t.removeEventListener("scroll",e)}}),[a]),e<=t?null:(0,i.jsx)("div",{className:"sticky left-0 z-[15] bg-surface h-3 overflow-hidden",style:{top:`${n}px`,width:t?`${t}px`:"auto",marginBottom:"-12px"},children:(0,i.jsx)("div",{ref:o,onScroll:()=>{a.current&&o.current&&(a.current.scrollLeft=o.current.scrollLeft)},className:"overflow-x-auto overflow-y-hidden w-full h-3",children:(0,i.jsx)("div",{style:{width:`${e}px`},className:"h-px"})})})},Mx=({progression:e,selectedData:t,selectedCompetencyData:n,showCompetencies:a,activeMemberId:o,setActiveColumn:s,activeRowId:l,setActiveRow:c})=>{var d,u,p;const h=(0,J.Ay)(),m=(0,J.Ay)(1024),{t:g}=(0,k.Bd)(),[f,v]=(0,r.useState)(0),[b,y]=(0,r.useState)(0),[x,w]=(0,r.useState)(0),A=(0,r.useRef)(null),T=(0,r.useRef)(null);return(0,r.useEffect)((()=>{const e=()=>{const e=window.innerWidth;v(e-(h?0:64)-(m?32:64))};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)}),[h,m]),(0,r.useEffect)((()=>{A.current&&y(A.current.scrollWidth)}),[e,a,f]),(0,r.useEffect)((()=>{T.current&&w(T.current.offsetHeight)}),[e,a,f]),(0,i.jsxs)("div",{ref:A,className:"course-detail-overview__content",style:{width:f?`${f}px`:"auto"},children:[(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:g("course.overview.dataChangeScreenReader",{type:g(a?n===wx.EDITED?"course.overview.edited":"course.overview.result":t.label)})}),(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:g("course.overview.dataChangeScreenReader",{type:g(a?"course.overview.competencies":"course.overview.chapters")})}),(0,i.jsx)(Dx,{tableScrollWidth:b,contentWidth:f,headerHeight:x,containerRef:A}),(0,i.jsxs)("table",{className:"course-detail-overview__table",style:{width:f?f-2+"px":"auto"},children:[(0,i.jsxs)("thead",{ref:T,children:[(0,i.jsx)(Nx,{showCompetencies:a,members:e.members,colored:a,activeMemberId:o,setA
2ctiveMemberId:s}),!a&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Px,{members:e.members,activeMemberId:o,selectedDataLabel:t.label}),(0,i.jsx)(Lx,{book:e.book,members:e.members,activeMemberId:o,selectedDataType:t.dataType})]})]}),(0,i.jsx)("tbody",{children:a?(0,i.jsx)(jx,{competencies:e.competencies,members:e.members,activeRowId:l,setActiveRowId:c,activeMemberId:o,selectedDataType:n}):(0,i.jsx)(_x,{chapters:e.chapters,members:e.members,activeRowId:l,setActiveRowId:c,activeMemberId:o,selectedDataType:t.dataType})})]}),!(null===(d=null==e?void 0:e.chapters)||void 0===d?void 0:d.length)&&!(null===(u=null==e?void 0:e.competencies)||void 0===u?void 0:u.length)&&(0,i.jsx)("div",{className:"course-detail-overview__no-data-info",children:(0,i.jsx)("span",{children:g("course.overview.noProgression")})}),a&&!(null===(p=null==e?void 0:e.competencies)||void 0===p?void 0:p.length)&&(0,i.jsx)("div",{className:"course-detail-overview__no-data-info",children:(0,i.jsx)("span",{children:g("course.overview.noCompetencies")})})]})};var Ox=n(15958);const Rx=({course:e,selectedBook:t,hideSelfEvaluation:n})=>{const{t:r}=(0,k.Bd)(),{success:a}=(0,A.e)(),{setError:o}=(0,m.q)(),{mutateAsync:s}=(0,ge.u)(),l=(0,Gr.U)()(),{refetch:c}=function(e,t,n,i,r){const a=(0,d.q)(),{t:o}=(0,k.Bd)(),s=(0,T.I)({queryKey:["get-course-progression-export",e,t,n,i],queryFn:async()=>(await a.get(`courses/${e}/progression/${t}/export${i||""}`,{responseType:"arraybuffer",headers:{"Accept-Language":n}})).data,retry:!1,enabled:!1});return(0,S.V)(s,r||{message:o("error.general")})}(e.courseId||"",(null==t?void 0:t.npNumber)||"",l,`?skipOpenQuestions=${n}`);return(0,i.jsx)(vi.u,{elements:[(0,i.jsx)(N.$,{variant:"plain",onClick:()=>{e.courseId&&(null==t?void 0:t.npNumber)&&(a({copy:r("augmented.downloadStarted"),id:"download-excel"}),c().then((({data:e})=>{if(e){const n=new Blob([e],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),i=window.URL.createObjectURL(n);return(0,Ox.PE)(i,`${t.title}.xlsx`)}})).then((()=>{a({copy:r("course.downloadSuccess"),id:"download-excel"})})).catch((e=>{console.error("Download failed",e),s({errorMessage:"Error downloading File",errorObject:e}),o(r("course.overview.export.downloadError"),"download-excel")})))},icon:(0,i.jsx)(Ue.I,{source:Ni.A}),children:r("course.overview.export.download")},"download-excel")],ariaLabel:r("ui.menuAria"),triggerClass:"border border-borderColor h-fit"})},zx=({course:e,selectedBook:t,setSelectedBook:n,hideSelfEvaluation:a,setHideSelfEvaluation:o,progression:s,isProgressionUpdating:l,loadProgression:c})=>{const{t:d}=(0,k.Bd)(),[u,p]=(0,r.useState)(!1),[h,m]=(0,r.useState)(kx[0]),[g,f]=(0,r.useState)(wx.RESULT),[v,b]=(0,r.useState)(null),[y,x]=(0,r.useState)(null);(0,r.useEffect)((()=>{if(s)if(s.chapters.length>0){p(!1);const e=s.chapters.some((e=>Object.keys(e.result).length>0));m(e?kx[0]:kx[2])}else s.competencies.length>0&&p(!0)}),[s]);const w=()=>{b(null),x(null)};if((0,r.useEffect)((()=>(window.addEventListener("click",w),()=>window.removeEventListener("click",w))),[]),!e.memberList||0===e.memberList.length)return(0,i.jsx)(tx,{type:Vx.MEMBERS});if(!e.bookList||0===e.bookList.length)return(0,i.jsx)(ix,{});return(0,i.jsxs)("div",{className:"course-detail-overview",onClick:e=>{e.stopPropagation(),w()},children:[(0,i.jsxs)("div",{className:"course-detail-overview__header",children:[(0,i.jsxs)("div",{className:"flex flex-col",children:[(0,i.jsxs)("div",{className:"course-detail-overview__header-navigation",children:[(0,i.jsxs)("div",{className:"course-detail-overview__header-filter gap-y-4",children:[(0,i.jsx)(yx,{bookList:null==e?void 0:e.bookList,
2selectedBook:t,setSelectedBook:n,lastUpdateProgression:null==s?void 0:s.lastUpdate,loadProgression:c,isLoading:l}),s&&!l&&!u&&(0,i.jsx)(Ax,{selectedData:h,setSelectedData:m,hideSelfEvaluation:a,setHideSelfEvaluation:o}),s&&!l&&u&&(0,i.jsx)(Sx,{selectedDataType:g,setSelectedDataType:f})]}),(0,i.jsx)(gx,{leftText:d("course.overview.chapters"),rightText:d("course.overview.competencies"),isRightActive:u,setIsRightActive:p})]}),(0,i.jsx)(xx,{progression:s,isLoading:l,showCompetencies:u})]}),(0,i.jsx)(Rx,{course:e,selectedBook:t,hideSelfEvaluation:a})]}),(0,i.jsx)(ft.o,{inProgress:l,children:s&&(0,i.jsx)(Mx,{progression:s,selectedData:h,selectedCompetencyData:g,showCompetencies:u,activeMemberId:y,setActiveColumn:e=>{b(null),x(e)},activeRowId:v,setActiveRow:e=>{x(null),b(e)}})})]})};var Bx=n(7974),Ux={};Ux.styleTagTransform=q(),Ux.setAttributes=B(),Ux.insert=R().bind(null,"head"),Ux.domAPI=M(),Ux.insertStyleElement=F();P()(Bx.A,Ux);Bx.A&&Bx.A.locals&&Bx.A.locals;const Fx="progression-slow";var Vx;!function(e){e.OVERVIEW="overview",e.MEMBERS="members",e.COLLABORATORS="collaborators",e.BOOKS="title"}(Vx||(Vx={}));const qx=()=>{var e,t,n;const a=(0,fe.m)(),o=(0,Re.V)(),{id:s}=(0,be.g)(),{pathname:l}=(0,be.zy)(),{t:c}=(0,k.Bd)(),{refetch:u,data:p,isLoading:h,error:m}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-course-by-id",e],queryFn:async()=>(await n.get(`courses/${e}`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.course.courseNotFound")})}(s,{hideToast:!0}),[g,f]=(0,r.useState)(Vx.OVERVIEW),[v,b]=(0,r.useState)(!1),[y,x]=(0,r.useState)(Vx.MEMBERS),{mutateAsync:w,isSuccess:I}=px(Wr.COLLABORATOR),{warning:C,success:_,remove:j}=(0,A.e)(),[N,L]=(0,r.useState)(),[P,D]=(0,r.useState)(!1),[M,O]=(0,r.useState)(!1),R=(0,r.useRef)(),z=(0,r.useRef)(),B=(0,r.useRef)(),U=(0,r.useRef)(!1),F=(0,r.useRef)(0),{data:V,refetch:q,isLoading:H}=function(e,t,n,i){const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-course-progression",e,t,n],queryFn:async()=>(await r.get(`courses/${e}/progression/${t}${n||""}`)).data,retry:!1,enabled:!!e&&!!t});return(0,S.V)(o,i||{message:a("error.course.progressionNotFound")})}((null==p?void 0:p.courseId)||"",(null==N?void 0:N.npNumber)||"",`?skipOpenQuestions=${P}`),{mutateAsync:G,isPending:K}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async({courseId:e,npNumber:n})=>(await t.post(`courses/${e}/progression/${n}`)).data,retry:!1});return(0,S.s)(i,e||{message:n("error.course.failProgressionCreate")})}(M?{suppressTimeoutRedirect:!0}:void 0),$=H||K||M,W=()=>{clearTimeout(z.current),j(Fx),O(!1)},X=()=>{W(),_({copy:c("course.overview.progressionUpdateComplete"),focusToast:!1})};if((0,Iy.$)((()=>q()),M?1e4:null),(0,r.useEffect)((()=>{M&&(null==V?void 0:V.lastUpdate)&&V.lastUpdate!==B.current&&X()}),[null==V?void 0:V.lastUpdate,M]),(0,r.useEffect)((()=>()=>{clearTimeout(R.current),clearTimeout(z.current)}),[]),(0,r.useEffect)((()=>{var e,t;const n=null===(e=null==p?void 0:p.bookList)||void 0===e?void 0:e[0];!N&&n&&L({npNumber:n.id,title:`${null!==(t=n.bezeichnung)&&void 0!==t?t:""}`.trim()})}),[null==p?void 0:p.bookList,N]),(0,r.useEffect)((()=>{u&&!o.get("shared")&&u()}),[u]),(0,r.useEffect)((()=>{I&&(_({copy:c("course.join.joinSuccessful"),id:"join-course-success"}),o.delete("shared"),a(location.pathname+"?"+o.toString()))}),[I]),(0,r.useEffect)((()=>{const e=o.get("type"),t=o.get("shared");t&&"true"===t?w({id:s}).then((()=>u())):e&&Object.values(Vx).includes(e)&&f(e)}),[s,w,o,u]),m)return(0,i.jsx)(pe,{children:(0,i.jsx)(Q,{data_cy:"course-title",title:c("error.course.courseNotFound")})});const Y=[{href:l+"?type="+Vx.OVERVIEW,name:Vx.OVERVIEW,label:c("course.tabs.overview"),current:!1,id:Vx.OVERVIEW},{href:l+"?type="+Vx.MEMBERS,name:Vx.MEMBERS,label:c("course.tabs.members"),items:p?(null===(e=p.memberList)||void 0===e?void 0:e.length)||0:void 0,current:!1,id:Vx.MEMBERS},{href:l+"?type="+Vx.COLLABORATORS,name:Vx.COLLABORATORS,label:c("course.tabs.collaborators"),items:p?(null===(t=p.collaboratorList)||void 0===t?void 0:t.length)||0:void 0,current:!1,id:Vx.COLLABORATORS},{href:l+"?type="+Vx.BOOKS,name:Vx.BOOKS,label:c("course.tabs.books"),items:p?(null===(n=p.bookList)||void 0===n?void 0:n.length)||0:void 0,current:!1,id:Vx.BOOKS}],J=()=>{b(!0),x(Vx.MEMBERS)},Z=()=>{b(!0),x(Vx.COLLABORATORS)};return(0,i.jsx)(ft.o,{inProgress:h,children:!!p&&(0,i.jsxs)(pe,{fullWidth:!0,className:"course-detail-page",children:[(0,i.jsx)(Qy,{course:p,shareCourse:g===Vx.COLLABORATORS?Z:J,refetchCourse:u}),(0,i.jsx)("div",{className:"course-detail__tabs",children:(0,i.jsx)(Rt,{tabs:Y,current:g})}),g===Vx.OVERVIEW&&(0,i.jsx)(zx,{course:p,refetchCourse:u,selectedBook:N,setSelectedBook:L,hideSelfEvaluation:P,setHideSelfEvaluation:D,progression:V,isProgressionUpdating:$,loadProgression:()=>{const e=++F.current;B.current=null==V?void 0:V.lastUpdate,U.current=!1,clearTimeout(R.current),clearTimeout(z.current),R.current=setTimeout((()=>{U.current=!0,O(!0),C({id:Fx,copy:c("course.overview.progressionUpdateSlow"),focusToast:!1}),z.current=setTimeout((()=>{O(!1),C({id:Fx,copy:c("course.overview.progressionUpdateStillRunning"),focusToast:!1})}),6e4)}),2e4),G({courseId:(null==p?void 0:p.courseId)||"",npNumber:(null==N?void 0:N.npNumber)||""}).then((()=>{F.current===e&&(clearTimeout(R.current),U.current?X():W(),q())})).catch((t=>{var n;F.current===e&&(clearTimeout(R.current),504!==(null===(n=null==t?void 0:t.response)||void 0===n?void 0:n.status)&&W())}))}}),g===Vx.MEMBERS&&(0,i.jsx)(nx,{course:p,refetchCourse:u,shareCourse:J}),g===Vx.COLLABORATORS&&(0,i.jsx)(ux,{course:p,refetchCourse:u,shareCourse:Z}),g===Vx.BOOKS&&(0,i.jsx)(dx,{course:p,refetchCourse:u}),(0,i.jsx)(Hx,{isOpen:v,setIsOpen:b,course:p,refetchCourse:u,type:y})]})})},Hx=({isOpen:e,setIsOpen:t,course:n,refetchCourse:a,type:s})=>{const l=(0,Re.V)(),c=l.get("brand")?`&brand=${l.get("brand")}`:"",{basename:d}=(0,o.U)(),{t:u}=(0,k.Bd)(),{setError:p}=(0,m.q)(),[h,g]=(0,r.useState)(!1),[f,v]=(0,r.useState)(),[b,y]=(0,r.useState)(),[x,w]=(0,r.useState)(!1),[A,T]=(0,r.useState)(!1),{mutateAsync:S}=Xy({message:u("error.course.failShareCourse")}),{mutateAsync:E}=(0,ge.u)(),I=()=>{A&&a(),t(!1)};(0,r.useEffect)((()=>{T(!1);const e=s===Vx.COLLABORATORS?n.collaboratorsCanJoin:n.membersCanJoin;
2v(e?n.courseId:void 0)}),[n,s]);const C=(0,r.useCallback)((e=>{w(!0);const t=Wy(n),i=s===Vx.COLLABORATORS?Object.assign(Object.assign({},t),{collaboratorsCanJoin:e}):Object.assign(Object.assign({},t),{membersCanJoin:e});S(i).then((e=>{const t=s===Vx.COLLABORATORS?e.collaboratorsCanJoin:e.membersCanJoin;T(!0),v(t?n.courseId:void 0)})).finally((()=>w(!1)))}),[n,S,s]);(0,r.useEffect)((()=>{if(d&&f){const e=s===Vx.COLLABORATORS?te.u.sharedCollaboratorCourse:te.u.sharedMemberCourse;y(d.absoluteBasename+e+f+"?shared=true"+c)}else y(void 0)}),[f,d,c,s]);const _=(0,r.useCallback)((()=>{(async function(e){if("clipboard"in navigator)return await navigator.clipboard.writeText(e)})(b).then((()=>{g(!0),setTimeout((()=>{g(!1)}),3e3)})).catch((e=>{p(u("error.course.failCopyToClipboard")),E({errorMessage:"Error copying link.",errorObject:e})}))}),[b,u,p,E]);(0,r.useEffect)((()=>()=>{g(!1)}),[]);const j=(0,ct.pn)(e,dt.h),L=e=>{"pointerdown"===e.detail.originalEvent.type&&I()};return(0,i.jsx)(Ge.bL,{open:e,onOpenChange:t,children:(0,i.jsx)(Ge.ZL,{forceMount:!0,children:j(((e,t)=>(0,i.jsxs)(i.Fragment,{children:[t?(0,i.jsx)(Ge.hJ,{className:"dialog__overlay"}):null,t?(0,i.jsx)(Ge.UC,{onEscapeKeyDown:I,onInteractOutside:L,className:"dialog__content","data-cy":"course-share-content",children:(0,i.jsxs)(ct.CS.div,{style:e,className:"dialog__body max-w-2xl flex flex-col-reverse md:flex-row gap-6",children:[!!b&&(0,i.jsx)(Gn.Ay,{className:"border border-borderColor aspect-square h-full w-full md:w-60 md:h-60",value:b,viewBox:"0 0 256 256"}),(0,i.jsxs)("div",{className:"flex-1","aria-live":"polite","aria-atomic":"true",children:[(0,i.jsxs)("header",{className:"dialog__header",children:[(0,i.jsx)(Ge.hE,{className:"dialog__title",children:u(`course.share.title.${s}`)}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:u("ui.ariaClose"),title:u("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:I,data_cy:"close-share-modal"})]}),(0,i.jsx)("p",{className:"course-share__title",children:n.title}),!!b&&(0,i.jsxs)("div",{className:"course-share__wrapper",children:[(0,i.jsx)("p",{className:"course-share__link-text","data-cy":"course-share-link",children:b}),(0,i.jsxs)("div",{className:"course-share__buttons",children:[(0,i.jsx)(N.$,{modifier:"destructive",onClick:()=>C(!1),children:u("course.share.revoke")}),(0,i.jsx)(N.$,{disabled:x,onClick:_,icon:(0,i.jsx)(Ue.I,{source:Qn}),variant:"primary","data-cy":"course-share-link-button",autofocus:!0,className:"flex-1",children:u("course.share.copy")})]})]}),!f&&(0,i.jsx)("div",{className:"course-share__wrapper",children:(0,i.jsx)(N.$,{disabled:x,onClick:()=>C(!0),icon:(0,i.jsx)(Ue.I,{source:Yn}),variant:"primary","data-cy":"course-generate-link-button",autofocus:!0,children:u("course.share.generate")})}),(0,i.jsx)("div",{"aria-live":"polite",children:h&&(0,i.jsx)($n.w,{className:"text-center mt-4",copy:(0,i.jsx)("p",{children:u("course.share.copied")})})}),"members"===s?(0,i.jsx)("div",{className:"course-share__wrapper mt-6",children:(0,i.jsx)("p",{className:"course-share__info-text",children:(0,i.jsx)(k.x6,{i18nKey:"course.share.info.members",components:{bold:(0,i.jsx)("strong",{})}})})}):(0,i.jsx)("div",{}),(0,i.jsx)("input",{className:"hidden",type:"text",value:b,readOnly:!0,"data-cy":"course-share-link-input"})]})]})}):null]})))})})},Gx=({course:e,refetchCourses:t})=>{const{t:n}=(0,k.Bd)(),[a,o]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1),{mutateAsync:c}=Yy(),d=()=>{l(!0)},u=(0,r.useCallback)((()=>{const e=[];return e.push((0,i.jsx)(N.$,{variant:"plain",modifier:"destructive","data-cy":"course-menu-delete",onClick:()=>o(!0),icon:(0,i.jsx)(Ue.I,{source:Cr}),children:n("course.menu.delete")})),e.push((0,i.jsx)(N.$,{variant:"plain","data-cy":"course-menu-share",onClick:d,icon:(0,i.jsx)(Ue.I,{source:Nr}),children:n("course.menu.share")})),e}),[]);return(0,i.jsxs)("div",{children:[(0,i.jsx)(vi.u,{data_cy:"course-dropdown-menu",elements:u(),ariaLabel:n("course.menu.ariaLabel")}),(0,i.jsx)(Hx,{isOpen:s,setIsOpen:l,course:e,refetchCourse:t,type:Vx.MEMBERS}),(0,i.jsx)(Xr,{isOpen:a,setIsOpen:o,deleteApproved:()=>{c(e.courseId).then((e=>{200===e.status&&t()}))},text:n("course.menu.deleteModal.warningTextCourse")})]},e.courseId)},Kx=({course:e,refetchCourses:t})=>{const[n,a]=(0,r.useState)(!1),{t:o}=(0,k.Bd)(),s=(0,J.Ay)(),{mutateAsync:l}=Xy({message:o("error.course.failRename")});return(0,i.jsxs)("div",{className:"course-item",children:[!n&&(0,i.jsxs)("div",{onClick:e=>e.preventDefault(),className:"course-item__wrapper flex-row",children:[(0,i.jsxs)("div",{className:"course-item__wrapper-title",children:[(0,i.jsx)(ee.z,{to:`${te.u.course}/${e.courseId}`,children:(0,i.jsx)("h2",{className:"course-item__title nice-word-break","data-cy":"course-item-title",children:e.title})}),!s&&(0,i.jsx)(N.$,{offlineDisabled:!0,size:"sm",variant:"plain","data-cy":"course-header-rename",onClick:()=>a(!0),ariaLabel:o("course.editCourseNameAria"),icon:(0,i.jsx)(Ue.I,{source:yi})})]}),(0,i.jsx)(Gx,{course:e,refetchCourses:t},e.courseId)]}),n&&(0,i.jsx)($y,{className:"course-item__wrapper",onSaveCourse:n=>{const i=Wy(e);l(Object.assign(Object.assign({},i),{title:n})).then((()=>t()))},onSetEditMode:a,title:e.title})]})};const $x=()=>{const e=(0,o.U)(),{authorization:t}=(0,c.As)(),{t:n}=(0,k.Bd)(),{success:a}
2=(0,A.e)(),s=t.realmAccessRoles.includes("schooladmin"),{setError:l}=(0,m.q)(),{data:u}=function(e=!0,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-institution-csv-status"],queryFn:async()=>(await n.get("/courses/institution/csv/status")).data,retry:!1,enabled:e});return(0,S.V)(r,t||{message:i("error.general")})}(s,{hideToast:!0}),{refetch:p}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-institution-csv-url"],queryFn:async()=>(await t.get("/courses/institution/csv/download")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.general")})}(),h=(0,r.useCallback)((async()=>{try{const{data:t}=await p();t&&t.length>0&&(a({copy:n("augmented.downloadStarted"),id:"csv-download"}),await Promise.all(t.map((async t=>{const n=t.split("?")[0].split("/").pop()||"export.csv",i=(0,Ox.ID)({url:t},e.isProduction);await(0,Ox.PE)(i,n)}))),a({copy:n("course.downloadSuccess"),id:"csv-download"}))}catch(e){console.error(e),l(n("course.downloadError"),"download-csv-error")}}),[p,l,a,n,e.isProduction]);return s&&(null==u?void 0:u.hasInstitutions)?(0,i.jsx)(N.$,{offlineDisabled:!0,id:"download-all-courses-btn",onClick:()=>{h()},variant:"secondary",icon:(0,i.jsx)(Ue.I,{source:Ni.A}),disabled:!(null==u?void 0:u.csvExists),children:n("course.downloadInstitute")}):null},Wx=()=>{const{t:e}=(0,k.Bd)(),{refetch:t,data:n,isFetching:a}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,T.I)({queryKey:["get-courses"],queryFn:async()=>(await t.get("/courses")).data,retry:!1,enabled:!1});return(0,S.V)(i,e||{message:n("error.course.courseNotFound")})}(),{mutateAsync:o}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async e=>(await t.post("/courses",{title:e.title})).data,retry:!1});return(0,S.s)(i,e||{message:n("error.course.failCreate")})}(),[s,l]=(0,r.useState)([]),[c,u]=(0,r.useState)(!1);(0,r.useEffect)((()=>{t&&t()}),[t]),(0,r.useEffect)((()=>{n&&l(n)}),[n]),n&&((0,it.a)({eventType:"item",data:{}}),(0,it.a)({eventType:"pageType",data:{pageType:"Meine Kurse"}}));const p=()=>{u(!0)};return(0,i.jsxs)(pe,{children:[(0,i.jsx)(Q,{data_cy:"course-title",title:e("course.title"),withActions:!0,children:(0,i.jsxs)("div",{className:"flex gap-4 flex-col-reverse lg:flex-row md:pt-4",children:[(0,i.jsx)($x,{}),(0,i.jsx)(N.$,{offlineDisabled:!0,id:"create-course-btn",disabled:a||c,onClick:p,variant:"primary",icon:(0,i.jsx)(Ue.I,{source:hr.A}),children:e("course.newCourse")})]})}),(0,i.jsx)(ft.o,{inProgress:a,children:(0,i.jsxs)("ol",{className:"course-page__content","data-cy":"course-page-content",children:[c&&(0,i.jsx)("li",{children:(0,i.jsx)("div",{className:"course-item",children:(0,i.jsx)($y,{className:"course-item__wrapper",onSaveCourse:e=>{o({title:e}).then((()=>t()))},onSetEditMode:u,title:""})})}),null==s?void 0:s.map(((e,n)=>(0,i.jsx)("li",{children:(0,i.jsx)(Kx,{course:e,refetchCourses:t})},n+e.title)))]})}),!a&&!c&&s&&0===s.length&&(0,i.jsx)(Ky,{onAddCourse:p})]})},Xx=()=>{const{authenticated:e,authorization:t}=(0,c.As)(),{t:n}=(0,k.Bd)();Oe(n("metaTitle.courses",{brand:(0,se.P)()}));const r=0===t.realmAccessRoles.filter((e=>"teacher"===e||"schooladmin"===e||"eks_content_admin"===e||"editor"===e)).length;if(e&&!r)return(0,i.jsx)(Wx,{})};var Yx;!function(e){e.AGE="age",e.CONSENT="consent"}(Yx||(Yx={}));const Jx=()=>{const e=(0,Re.V)(),t=(0,fe.m)(),{id:n}=(0,be.g)(),{authenticated:a}=(0,c.As)(),{t:o}=(0,k.Bd)(),{mutateAsync:s,isSuccess:l}=px(Wr.MEMBER),{data:u,refetch:p,isLoading:h}=function(e,t){const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,T.I)({queryKey:["get-course-by-id",e],queryFn:async()=>(await n.get(`courses/memberships/${e}/title`)).data,retry:!1,enabled:!1});return(0,S.V)(r,t||{message:i("error.course.courseNotFound")})}(n,{hideToast:!0}),{mutateAsync:m}=function(e){const t=(0,d.q)(),{t:n}=(0,k.Bd)(),i=(0,E.n)({mutationFn:async e=>await t.put("/settings/consent",e),retry:!1});return(0,S.s)(i,e||{message:n("error.settings.failSave")})}({hideToast:!0}),{success:g}=(0,A.e)(),[f,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(Yx.AGE),[x,w]=(0,r.useState)(!1),[I,C]=(0,r.useState)(!1),[_,j]=(0,r.useState)(!1);(0,r.useEffect)((()=>{p&&p()}),[p]);const L=()=>{s({id:n}).then((e=>{if(200===e.status&&I){const e={consentTextDataToThirdParties:o("course.join.modal.joinCourseDataConsent")};m(e)}}))},P=()=>
2{v(!1),t(te.J.settings)};if((0,r.useEffect)((()=>{l&&(g({copy:o("course.join.joinSuccessful"),id:"join-course-success"}),P())}),[l]),(0,r.useEffect)((()=>{e.get("shared")&&v(!0)}),[e]),a){const e=()=>{const e=!x;y(e?Yx.CONSENT:Yx.AGE),w(e)};return(0,i.jsx)(ft.o,{inProgress:h,children:(0,i.jsx)(Xe.y,{open:f,asPrompt:!0,asPortal:!1,close:()=>v(!1),preventOutsideInteraction:!0,title:o("course.join.modal.joinCourseTitle",{courseId:u||n}),copy:(0,i.jsxs)("div",{className:"course-invite-modal",children:[(0,i.jsx)(Ln.o,{checked:x,onChange:e,id:"consent-age",childWrapper:!0,data_cy:"checkbox-consent-age",children:o("course.join.modal.joinCourseAgeConsent")}),b===Yx.CONSENT&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ln.o,{checked:I,onChange:()=>C(!I),id:"consent-data",childWrapper:!0,data_cy:"checkbox-data-age",children:o("course.join.modal.joinCourseDataConsent")}),(0,i.jsx)("span",{children:(0,i.jsx)(k.x6,{i18nKey:"course.join.modal.joinCourseCopy",components:{settingsLink:(0,i.jsx)("a",{href:te.J.settings,target:"_blank",rel:"noreferrer",className:"text-textLink underline underline-offset-4"})}})}),(0,i.jsx)("div",{className:"course-invite-modal__name-input",children:(0,i.jsx)(Yr,{onEditModeChange:j})})]})]}),contentClassName:"max-w-md",actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"secondary",onClick:P,children:o("course.join.modal.cancel")}),b===Yx.CONSENT&&(0,i.jsx)(N.$,{variant:"primary",onClick:L,data_cy:"join-course",disabled:!I||_,children:o("course.join.modal.confirm")})]})})})}},Zx=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Zr,{}),(0,i.jsx)(Jx,{})]}),Qx=()=>{const{authenticated:e}=(0,c.As)(),t=_y(),n=(0,l.n)(),r=localStorage.getItem("byPassMaintenance");return t&&t.inMaintenance&&n&&!r?(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(be.BV,{children:[(0,i.jsx)(be.qh,{path:te.J.impressum,element:(0,i.jsx)(Qr,{})}),(0,i.jsx)(be.qh,{path:te.J.privacy,element:(0,i.jsx)(na,{})}),(0,i.jsx)(be.qh,{path:te.J.agb,element:(0,i.jsx)(aa,{})}),(0,i.jsx)(be.qh,{path:te.J.accessibility,element:(0,i.jsx)(Gy,{})}),(0,i.jsx)(be.qh,{path:"*",element:(0,i.jsx)(Ny,{})})]})}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(be.BV,{children:[(0,i.jsx)(be.qh,{path:te.J.welcome,element:e?(0,i.jsx)(Pt,{}):(0,i.jsx)(ut,{})}),(0,i.jsx)(be.qh,{path:te.J.discover,element:(0,i.jsx)(zn,{})}),(0,i.jsx)(be.qh,{path:te.J.product.index,element:(0,i.jsx)(Kp,{})}),(0,i.jsx)(be.qh,{path:te.J.product.augmented,element:(0,i.jsx)(vh,{})}),(0,i.jsx)(be.qh,{path:te.J.dau,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Mp,{})})}),(0,i.jsx)(be.qh,{path:te.J.eksdi.index,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Sy,{})})}),(0,i.jsx)(be.qh,{path:te.J.eksdi.taskGroup,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Sy,{})})}),(0,i.jsx)(be.qh,{path:te.J.eksdi.taskGroupWithChapter,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Sy,{})})}),(0,i.jsx)(be.qh,{path:te.J.eksdi.taskGroupWithModule,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Sy,{})})}),(0,i.jsx)(be.qh,{path:te.J.xapi,element:(0,i.jsx)(Ry,{role:"eks_content_admin",children:(0,i.jsx)(Dy,{})})}),(0,i.jsx)(be.qh,{path:te.J.reporting,element:(0,i.jsx)(Ry,{role:"eks_content_admin",children:(0,i.jsx)(Oy,{})})}),(0,i.jsx)(be.qh,{path:te.J.uhb,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Wp,{})})}),(0,i.jsx)(be.qh,{path:te.J.dashboard,element:(0,i.jsx)(Pt,{})}),(0,i.jsx)(be.qh,{path:te.J.library,element:(0,i.jsx)(Yp,{})}),(0,i.jsx)(be.qh,{path:te.J.playlist.detail,element:(0,i.jsx)(Vr,{})}),(0,i.jsx)(be.qh,{path:te.J.playlist.allango,element:(0,i.jsx)($p,{})}),(0,i.jsx)(be.qh,{path:te.J.impressum,element:(0,i.jsx)(Qr,{})}),(0,i.jsx)(be.qh,{path:te.J.privacy,element:(0,i.jsx)(na,{})}),(0,i.jsx)(be.qh,{path:te.J.agb,element:(0,i.jsx)(aa,{})}),(0,i.jsx)(be.qh,{path:te.J.settings,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Zr,{})})}),(0,i.jsx)(be.qh,{path:te.J.playlist.index,element:(0,i.jsx)(va,{})}),(0,i.jsxs)(be.qh,{path:te.J.usercontent.index,element:(0,i.jsx)(Ft,{}),children:[(0,i.jsx)(be.qh,{path:te.J.usercontent.bookmark,element:(0,i.jsx)(La,{})}),(0,i.jsx)(be.qh,{path:te.J.usercontent.offline,element:(0,i.jsx)(za,{})})]}),(0,i.jsx)(be.qh,{path:te.J.course.index,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Xx,{})})}),(0,i.jsx)(be.qh,{path:te.J.course.detail,element:(0,i.jsx)(Me,{children:(0,i.jsx)(qx,{})})}),(0,i.jsx)(be.qh,{path:te.J.course.studentDetail,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Zx,{})})}),(0,i.jsx)(be.qh,{path:te.J.bildungslogin.media,element:(0,i.jsx)(bh,{})}),(0,i.jsx)(be.qh,{path:te.J.ibisacam,element:(0,i.jsx)(yh,{})}),(0,i.jsx)(be.qh,{path:te.J.version,element:(0,i.jsx)(Xp,{})}),(0,i.jsx)(be.qh,{path:te.J.accessibility,element:(0,i.jsx)(Gy,{})}),(0,i.jsx)(be.qh,{path:te.J.licenseAdmin,element:(0,i.jsx)(Me,{children:(0,i.jsx)(Vy,{})})}),(0,i.jsx)(be.qh,{path:te.J.error,element:(0,i.jsx)(sa,{})}),(0,i.jsx)(be.qh,{path:"*",element:(0,i.jsx)(oa,{})})]})})};var ew;function tw(){return tw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},tw.apply(null,arguments)}const nw=e=>r.createElement("svg",tw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ew||(ew=r.createElement("path",{fill:"#111212",d:"M13 19h6V9.978l-7-5.444-7 5.444V19h6v-6h2zm8 1
2a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.49a1 1 0 0 1 .386-.79l8-6.222a1 1 0 0 1 1.228 0l8 6.222a1 1 0 0 1 .386.79z"})));var iw;function rw(){return rw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},rw.apply(null,arguments)}const aw=e=>r.createElement("svg",rw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),iw||(iw=r.createElement("path",{fill:"#111212",d:"M21 20a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.49a1 1 0 0 1 .386-.79l8-6.222a1 1 0 0 1 1.228 0l8 6.222a1 1 0 0 1 .386.79zm-10-7v6h2v-6z"})));var ow;function sw(){return sw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},sw.apply(null,arguments)}const lw=e=>r.createElement("svg",sw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),ow||(ow=r.createElement("path",{fill:"#111212",d:"M18.03 16.62A9.03 9.03 0 0 0 20 11c0-4.96-4.04-9-9-9s-9 4.04-9 9 4.04 9 9 9h.01c2.03 0 4.02-.7 5.6-1.97l4.28 4.28 1.41-1.41-4.28-4.28zM11 17c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6"})));var cw;function dw(){return dw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},dw.apply(null,arguments)}const uw=e=>r.createElement("svg",dw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),cw||(cw=r.createElement("path",{fill:"#000",d:"M21 4H7a2 2 0 1 0 0 4h14v13a1 1 0 0 1-1 1H7a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h13a1 1 0 0 1 1 1zM5 18a2 2 0 0 0 2 2h12V10H7a4 4 0 0 1-2-.535zM20 7H7a1 1 0 0 1 0-2h13z"})));var pw;function hw(){return hw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},hw.apply(null,arguments)}const mw=e=>r.createElement("svg",hw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 25 24"},e),pw||(pw=r.createElement("path",{fill:"#000",d:"M21.333 4h-14a2 2 0 1 0 0 4h14v13a1 1 0 0 1-1 1h-13a4 4 0 0 1-4-4V6a4 4 0 0 1 4-4h13a1 1 0 0 1 1 1zm-1 3h-13a1 1 0 0 1 0-2h13z"})));var gw;function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},fw.apply(null,arguments)}const vw=e=>r.createElement("svg",fw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),gw||(gw=r.createElement("path",{fill:"#000",fillRule:"evenodd",d:"M8.17 3A3 3 0 0 1 11 1h2c1.306 0 2.417.835 2.83 2H21a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM11 3a1 1 0 1 0 0 2h2a1 1 0 1 0 0-2zm-4 7h10v2H7zm8 6v-2H7v2z",clipRule:"evenodd"})));var bw;function yw(){return yw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},yw.apply(null,arguments)}const xw=e=>r.createElement("svg",yw({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 24 24"},e),bw||(bw=r.createElement("path",{d:"M8 4a2 2 0 1 1-4 0 2 2 0 0 1 4 0M5 16v6H3V10a3 3 0 0 1 5.106-2.137l2.374 2.243 2.313-2.313 1.414 1.414-3.687 3.687L9 11.46V22H7v-6zm5-11h9v9h-9v2h4.365l2.824 6h2.21l-2.823-6H20a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H10z"})));var ww=n(83511),kw={};kw.styleTagTransform=q(),kw.setAttributes=B(),kw.insert=R().bind(null,"head"),kw.domAPI=M(),kw.insertStyleElement=F();P()(ww.A,kw);ww.A&&ww.A.locals&&ww.A.locals;const Aw=()=>{const{t:e}=(0,k.Bd)(),t=(0,c.As)(),{pathname:n}=(0,be.zy)(),r=0===t.authorization.realmAccessRoles.filter((e=>"teacher"===e||"schooladmin"===e||"eks_content_admin"===e||"editor"===e)).length;return(0,i.jsx)("nav",{className:"app__nav",children:void 0!==t.authenticated&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ee.z,{"data-cy":"navigation-dashboard","aria-label":e("navigation.ariaDashboard"),className:"button button--icon-only button--lg button--plain",to:te.J.dashboard,title:e("navigation.tooltipDashboard"),
2children:({isActive:r})=>r||t.authenticated&&n===te.J.welcome?(0,i.jsx)(Ue.I,{source:aw,accessibilityLabel:e("ui.icons.homeActive")}):(0,i.jsx)(Ue.I,{source:nw,accessibilityLabel:e("ui.icons.home")})}),(0,i.jsx)(ee.z,{"data-cy":"navigation-discover","aria-label":e("navigation.ariaSearch"),className:"button button--icon-only button--lg button--plain",to:te.J.discover,title:e("navigation.tooltipSearch"),children:({isActive:e})=>e?(0,i.jsx)(Ue.I,{source:lw}):(0,i.jsx)(Ue.I,{source:Fe.A})}),(0,i.jsx)(ee.z,{"data-cy":"navigation-library","aria-label":e("navigation.ariaBibliothek"),className:"button button--icon-only button--lg button--plain",to:te.J.library,title:e("navigation.tooltipBibliothek"),children:({isActive:t})=>t?(0,i.jsx)(Ue.I,{source:mw,accessibilityLabel:e("ui.icons.bibliothekActive")}):(0,i.jsx)(Ue.I,{source:uw,accessibilityLabel:e("ui.icons.bibliothek")})}),(0,i.jsx)(ee.z,{"data-cy":"navigation-user-content","aria-label":e("navigation.ariaUserContent"),className:()=>-1!==location.pathname.indexOf(te.u.mycontent)?"active button button--icon-only button--lg button--plain":"button button--icon-only button--lg button--plain",to:te.J.usercontent.bookmark,title:e("navigation.tooltipUserContent"),children:({isActive:t})=>t?(0,i.jsx)(Ue.I,{source:Pi.A,accessibilityLabel:e("ui.icons.myContentActive")}):(0,i.jsx)(Ue.I,{source:Di.A,accessibilityLabel:e("ui.icons.myContent")})}),(0,i.jsx)(ee.z,{"data-cy":"navigation-playlist","aria-label":e("navigation.ariaPlaylist"),className:"button button--icon-only button--lg button--plain",to:te.J.playlist.index+"?type=private",title:e("navigation.tooltipPlaylist"),children:({isActive:t})=>t?(0,i.jsx)(Ue.I,{source:vw,accessibilityLabel:e("ui.icons.playlistActive")}):(0,i.jsx)(Ue.I,{source:St,accessibilityLabel:e("ui.icons.playlist")})}),!r&&(0,i.jsx)(ee.z,{"data-cy":"navigation-course","aria-label":e("navigation.ariaCourse"),className:"button button--icon-only button--lg button--plain",to:te.J.course.index,title:e("navigation.tooltipCourse"),children:(0,i.jsx)(Ue.I,{source:xw})})]})})};var Tw=n(9657),Sw={};Sw.styleTagTransform=q(),Sw.setAttributes=B(),Sw.insert=R().bind(null,"head"),Sw.domAPI=M(),Sw.insertStyleElement=F();P()(Tw.A,Sw);Tw.A&&Tw.A.locals&&Tw.A.locals;const Ew=()=>{const{t:e}=(0,k.Bd)(),{isFullscreen:t}=ae();return(0,i.jsx)(i.Fragment,{children:!t&&(0,i.jsx)("div",{className:"app-drawer",children:(0,i.jsxs)("div",{className:"app-drawer__nav",children:[(0,i.jsx)(Aw,{}),(0,i.jsx)(Py.w,{}),(0,i.jsx)("a",{href:e("help.base-url"),target:"_blank",className:"button button--icon-only button--lg button--plain",rel:"noreferrer","aria-label":e("ui.ariaHelp"),title:e("ui.ariaHelp"),children:(0,i.jsx)(Ue.I,{source:Ui.A})})]})})})};var Iw=n(67649),Cw={};Cw.styleTagTransform=q(),Cw.setAttributes=B(),Cw.insert=R().bind(null,"head"),Cw.domAPI=M(),Cw.insertStyleElement=F();P()(Iw.A,Cw);Iw.A&&Iw.A.locals&&Iw.A.locals;const _w=()=>{const{t:e}=(0,k.Bd)(),[t,n]=(0,r.useState)(!1),[a,o]=(0,r.useState)(),s=e=>{const t=localStorage.getItem(f.Xp);e.preventDefault(),o(e),t||n(!0)},l=()=>{n(!1),o(null)};(0,r.useEffect)((()=>{if(!localStorage.getItem(f.Xp))return window.addEventListener("beforeinstallprompt",s),window.addEventListener("appinstalled",l),()=>{window.removeEventListener("beforeinstallprompt",s),window.removeEventListener("appinstalled",l)};n(!1)}),[]);const c=(0,r.useCallback)((()=>{localStorage.setItem(f.Xp,"true"),n(!1)}),[]),d=(0,r.useCallback)((async()=>{n(!1),a.prompt();"dismissed"===(await a.userChoice).outcome&&c(),o(null)}),[a,c]);return(0,i.jsx)(i.Fragment,{children:t&&(0,i.jsx)("div",{className:"pwa-install-prompt",children:(0,i.jsxs)("div",{className:"pwa-install-prompt__wrapper",children:[(0,i.jsx)("p",{children:e("install.prompt")}),(0,i.jsxs)("div",{className:"prompt__actions",children:[(0,i.jsx)(N.$,{variant:"default",onClick:c,children:e("install.dismiss")}),(0,i.jsx)(N.$,{variant:"primary",onClick:d,children:e("install.install")})]})]})})})};var jw=n(74334),Nw={};Nw.styleTagTransform=q(),Nw.setAttributes=B(),Nw.insert=R().bind(null,"head"),Nw.domAPI=M(),Nw.insertStyleElement=F();P()(jw.A,Nw);jw.A&&jw.A.locals&&jw.A.locals;const Lw=({children:e})=>{const{isDrawerOpen:t}=(0,Pe.Us)();return(0,i.jsx)("div",{className:t?"app-body app-body--drawer-open":"app-body",children:e})};function Pw(e,t=2){if(0===e||!e)return"";let n=e,i=0;for(;n>999;)i++,n/=1e3;return n.toFixed(t)+" "+["Bytes","KB","MB","GB","TB"][i]}var Dw;function Mw(){return Mw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Mw.apply(null,arguments)}const Ow=e=>r.createElement("svg",Mw({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Dw||(Dw=r.createElement("path",{fill:"#111212",d:"M6 4h15a1 1 0 0 1 1 1v7h-2V6H6v3L1 5l5-4zm12 16H3a1 1 0 0 1-1-1v-7h2v6h14v-3l5 4-5 4z"}))),Rw=({asset:e,currentReq:t,progression:n,onDelete:a,onRetry:o})=>{const{queryState:s}=(0,g.yv)(),{t:l}=(0,k.Bd)("translation",{keyPrefix:"downloadManager"}),[c,d]=(0,r.useState)(),[u,p]=(0,r.useState)(!1);(0,r.useEffect)((()=>{e.state===g.iF.CACHED&&setTimeout((()=>{p(!0)}),3e4)}),[e]);const h=(0,r.useCallback)((e=>{switch(e){case g.iF.WAITING:d("waiting");break;case g.iF.IN_PROGRESS:d("downloading");break;case g.iF.CACHED:d("cached");break;case g.iF.NOT_STORED:d("notStored");break;case g.iF.FAILURE:d("failure")}}),[]);return(0,r.useEffect)((()=>{e&&s(e.asset.id,h)}),[e,h,s]),(0,i.jsxs)("div",{className:u?"offline-asset offline-asset--hidden":"offline-asset",children:[(0,i.jsx)(ee.z,{to:te.J.usercontent.offline,className:`resource-item__icon-wrapper ${null==c?void 0:c.toString().toLowerCase()}`,children:(0,i.jsx)(Fc.c,{className:"resource-item__icon",format:(null==e?void 0:e.asset.format)||(null==t?void 0:t.asset.format)})}),(0,i.jsxs)("div",{className:"offline-asset__content",children:[(0,i.jsx)("div",{className:"offline-asset__title-wrapper",children:(0,i.jsxs)(ee.z,{to:te.J.usercontent.offline,className:"offline-asset__title",children:[(null==e?void 0:e.asset.title)||(null==t?void 0:t.asset.title),(!t||t.asset.id!==e.asset.id)&&(0,i.jsxs)("p",{className:"offline-asset__cache-state",children:[l(c)+" "+Pw(e.size)," "]})]})}),(0,i.jsxs)("div",{className:"offline-asset__progress-wrapper",children:[t&&t.asset.id===e.asset.id&&
2(0,i.jsx)(i.Fragment,{children:(0,i.jsx)("progress",{value:Math.floor(n)||0,max:100,className:"offline-asset__progress"})}),n&&t&&t.asset.id===e.asset.id&&(0,i.jsxs)("p",{children:[Math.floor(n),"%"]})]})]}),(0,i.jsxs)("div",{className:"offline-asset__actions",children:[e&&e.state===g.iF.FAILURE&&(0,i.jsx)(N.$,{variant:"plain",ariaLabel:l("retryAssetAria"),size:"small",icon:(0,i.jsx)(Ue.I,{source:Ow}),onClick:()=>o(e.asset)}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:l("removeAssetAria"),size:"small",icon:(0,i.jsx)(Ue.I,{source:bn.A}),onClick:()=>a(e.asset||t.asset)})]})]})};var zw=n(28296),Bw={};Bw.styleTagTransform=q(),Bw.setAttributes=B(),Bw.insert=R().bind(null,"head"),Bw.domAPI=M(),Bw.insertStyleElement=F();P()(zw.A,Bw);zw.A&&zw.A.locals&&zw.A.locals;const Uw=()=>{const{storedAssets:e,deleteAsset:t,allRequests:n,storedRequests:a,currentEntry:o,failedAssets:s,retryAsset:l,abortAll:c}=(0,g.yv)(),{t:d}=(0,k.Bd)(),[u,p]=(0,r.useState)(0),{isDrawerOpen:h}=(0,Pe.Us)(),{success:m,remove:f,warning:v}=(0,A.e)(),[b,y]=(0,r.useState)(!0),x=(0,r.useRef)(),[w,T]=(0,r.useState)(),S=(0,r.useCallback)((e=>{t(e)}),[t]),E=(0,r.useCallback)((e=>{l(e.id||e.assetId)}),[l]);(0,r.useEffect)((()=>{if(e&&e.length>0){const t=e.map((e=>e.size?e.size:0)).reduce(((e,t)=>e+t));p(t)}else p(0)}),[e]);const[I,C]=(0,r.useState)(!1),_=(0,r.useRef)(null),j=(0,r.useRef)(Date.now()),L=(0,r.useRef)(null);(0,r.useEffect)((()=>{I&&(j.current=Date.now(),L.current.focus()),T(void 0)}),[I]),(0,r.useEffect)((()=>{I&&(null==n?void 0:n.length)>0&&T(d("downloadManager.screenReaderStart"))}),[I,n]);const P=()=>{y(!1)};(0,r.useEffect)((()=>(I?(o||0!==a.length||0!==(null==s?void 0:s.length)||(T(d("downloadManager.screenReaderEnd")),clearTimeout(_.current),_.current=setTimeout((()=>{C(!1),(()=>{const t=e.filter((e=>e.modified>=j.current));return(1!==t.length||!t[0].asset.isDau)&&t.length>0})()&&m({copy:(0,i.jsxs)(i.Fragment,{children:[d("downloadManager.offlineHint.1")," ",(0,i.jsxs)(ee.z,{onClick:()=>f("offline-hint"),to:te.J.usercontent.offline,children:[" ",d("downloadManager.offlineHint.2")]})," ",d("downloadManager.offlineHint.3")," "]}),id:"offline-hint"}),y(!0)}),2e3)),(null==s?void 0:s.length)>0&&!o&&0===(null==a?void 0:a.length)&&b&&(v({copy:d("downloadManager.offlineErrorHint"),id:"offline-hint-warning"},P),setTimeout((()=>{L.current.focus()}),100)),(!s||0===(null==s?void 0:s.length)||(null==a?void 0:a.length)>0)&&f("offline-hint-warning")):(x.current=[],(o||(null==a?void 0:a.length)>0||(null==s?void 0:s.length)>0)&&C(!0)),()=>clearTimeout(_.current))),[e,o,a,s,I,m,f,v,b,d]);const D=(0,r.useCallback)((()=>{let e="";return h&&(e+=" offline-manager--drawer-open "),I||(e+=" offline-manager--hidden "),e}),[h,I]),[M,O]=(0,r.useState)(""),R=(0,r.useCallback)((e=>{O(""!==M?"":e)}),[M]);return(0,i.jsx)("div",{"data-cy":"offlineManager",className:`offline-manager ${D()}`,children:(0,i.jsxs)("div",{className:"offline-manager__wrapper",tabIndex:I?-1:void 0,ref:L,children:[(0,i.jsx)("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:w}),(0,i.jsx)(i.Fragment,{children:(0,i.jsx)(Eu.bL,{collapsible:!0,type:"single",value:M,onValueChange:R,children:(0,i.jsxs)(Eu.q7,{value:"offline-manager",children:[(0,i.jsx)(Eu.Y9,{children:(0,i.jsxs)(Eu.l9,{"data-cy":"offlineManagerTrigger",className:"offline-manager__button",children:[(0,i.jsx)("div",{className:"offline-manager__button-copy-wrapper",children:(0,i.jsxs)("div",{className:"flex items-center gap-4",children:[o&&(0,i.jsx)("div",{className:"offline-manager__warning",children:(0,i.jsx)(ft.o,{inProgress:!0,small:!0})}),!o&&s&&s.length>0&&(0,i.jsx)("div",{className:"offline-manager__warning",children:(0,i.jsx)(Ue.I,{accessibilityLabel:d("downloadManager.riskIconAria"),source:ei.A})}),(0,i.jsxs)("p",{className:"offline-manager__button-copy",children:[d("downloadManager.title")," ",Pw(u)]})]})}),(0,i.jsx)("div",{className:"button button--icon button--icon-only button--small button--plain offline-manager__button-icon",children:(0,i.jsx)(Ue.I,{source:Zi})})]})}),(0,i.jsxs)(Eu.UC,{className:"offline-manager__content",children:[(0,i.jsx)("div",{className:"offline-manager__abort-button",children:(0,i.jsxs)(N.$,{data_cy:"offlineManagerAbort",variant:"destructive",onClick:c,children:[d("downloadManager.abortAll"),
2(0,i.jsx)(Ue.I,{source:bn.A})]})}),n&&n.map(((e,t)=>{if(e.state!==g.iF.CACHED||e.modified>Date.now()-1e4)return(0,i.jsx)(Rw,{onDelete:S,asset:e,onRetry:E,currentReq:o,progression:null==o?void 0:o.progress},t)}))]})]})})})]})})};var Fw=n(74658),Vw={};Vw.styleTagTransform=q(),Vw.setAttributes=B(),Vw.insert=R().bind(null,"head"),Vw.domAPI=M(),Vw.insertStyleElement=F();P()(Fw.A,Vw);Fw.A&&Fw.A.locals&&Fw.A.locals;const qw=()=>{const e=(0,J.Ay)(),t=(0,J.Ay)(J.L$),{isFullscreen:n}=ae(),{pathname:r}=(0,be.zy)(),a=t&&(kd([te.J.dau],r)||kd([te.J.uhb],r)||kd(wd,r));return!e||n?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)("div",{className:"mobile-nav "+(a?"mobile-nav--dau":""),id:"mobile-nav",children:(0,i.jsx)(Aw,{})})};var Hw,Gw,Kw=n(9051);function $w(){return $w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$w.apply(null,arguments)}const Ww=e=>r.createElement("svg",$w({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24"},e),Hw||(Hw=r.createElement("g",{clipPath:"url(#offline_svg__a)"},r.createElement("path",{fill:"#111212",d:"M12 18c.714 0 1.37.25 1.886.666L12.002 21l-1.886-2.334A3 3 0 0 1 12 18M2.809 1.393l17.678 17.678-1.415 1.414-5.18-5.18a6 6 0 0 0-1.89-.305c-1.428 0-2.74.499-3.77 1.332l-1.257-1.556a7.96 7.96 0 0 1 4.623-1.766L9 10.414a11 11 0 0 0-3.912 2.029L3.83 10.887A13 13 0 0 1 7.416 8.83L5.132 6.545a16 16 0 0 0-3.185 2.007L.69 6.997a18 18 0 0 1 2.952-1.942L1.393 2.808zm11.693 8.892-2.284-2.283L12 8c3.095 0 5.937 1.081 8.17 2.887l-1.258 1.556a10.96 10.96 0 0 0-4.412-2.158M12 3c4.284 0 8.22 1.497 11.31 3.997l-1.258 1.555A15.93 15.93 0 0 0 12.002 5q-1.319 0-2.58.207L7.724 3.51A18 18 0 0 1 12.001 3"}))),Gw||(Gw=r.createElement("defs",null,r.createElement("clipPath",{id:"offline_svg__a"},r.createElement("path",{fill:"#fff",d:"M0 0h24v24H0z"}))))),Xw=()=>{const e=(0,l.n)(),{t}=(0,k.Bd)();return(0,i.jsx)(i.Fragment,{children:!e&&(0,i.jsx)($n.w,{id:"offline-banner",className:"warning centered relative z-[260]",icon:(0,i.jsx)(Ue.I,{source:Ww}),copy:(0,i.jsx)("p",{children:t("offline.bannerCopy")})})})};var Yw=n(28520);const Jw=({asset:e})=>{const t=e.id,[n,a]=(0,r.useState)(null),[s,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(),{t:p}=(0,k.Bd)(),h=(0,l.n)(),{mutateAsync:m}=(0,ge.u)();(0,r.useEffect)((()=>(document.querySelector("body").classList.add("overflow-hidden"),()=>{document.querySelector("body").classList.remove("overflow-hidden")})),[]);const{refetch:g,data:f,error:v}=(0,Mc.G)({format:"html",id:e.id},{hideToast:!0}),b=(0,o.U)(),y=(0,r.useCallback)(((e,t)=>{if(c(!0),e.isProduction)Yw.A.get(t.url).then((e=>{a(e.data),c(!1)})).catch((()=>{c(!1),u(p("error.asset.failHtmlLoad"))}));else{const e=t.url.replace(/https:\/\//,"$&local-dev.").replace(/allango.net/,"$&:10443");Yw.A.get(e).then((e=>{a(e.data),c(!1)})).catch((()=>{c(!1),u(p("error.asset.failHtmlLoad"))}))}}),[p]);(0,r.useEffect)((()=>{(0,Dc.jC)(t,"html").then((e=>{e&&e.binary?a(e.binary):g()})).catch((e=>{console.error("Error fetching html from cache... ",e),g(),m({errorMessage:"Error fetching html from cache",errorObject:e})}))}),[b,t,g,m]),(0,r.useEffect)((()=>{f&&h&&y(b,f)}),[f,b,y,h]),(0,r.useEffect)((()=>{v&&u("unauthorized")}),[v,p]);return(0,i.jsxs)(i.Fragment,{children:[s&&(0,i.jsxs)("div",{role:"status",className:"animate-pulse h-[90vh] overflow-y-hidden",children:[(0,i.jsx)("div",{className:"pdf-tools__wrapper pdf-tools flex items-center p-6",children:(0,i.jsxs)("div",{className:"tool-group gap-2",children:[(0,i.jsx)("div",{className:"h-10 w-16 bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-7 w-32 rounded bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-6 w-26 bg-borderColor rounded dark:bg-textSubdued"})]})}),(0,i.jsx)("div",{className:"pdf-tools__wrapper pdf-tools flex items-center p-6 h-full",children:(0,i.jsxs)("div",{className:"h-full w-full md:w-1/3 pl-10 pt-6 pr-6 ",children:[(0,i.jsx)("div",{className:"w-full h-[35%] bg-borderColor dark:bg-textSubdued mb-3"}),(0,i.jsx)("div",{className:"w-1/2 h-3 rounded bg-borderColor dark:bg-textSubdued mx-auto"})]})}),(0,i.jsx)("span",{className:"sr-only",children:"Loading..."})]}),d&&("unauthorized"===d?(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("span",{children:p("error.asset.unauthorized")}),(0,i.jsxs)("span",{className:"flex gap-2",children:[">",(0,i.jsx)("a",{href:p("error.asset.licenseHelpLink"),className:"text-textLink underline",children:p("error.asset.licenseHelp")})]})]}):(0,i.jsx)("p",{className:"m-4",children:d})),n&&(0,i.jsx)("iframe",{"data-cy":"the-frame",className:"asset-player__iframe",srcDoc:n,title:p("asset.iframe",{title:e.title})})]})};var Zw=n(53962),Qw={};Qw.styleTagTransform=q(),Qw.setAttributes=B(),Qw.insert=R().bind(null,"head"),Qw.domAPI=M(),Qw.insertStyleElement=F();P()(Zw.A,Qw);Zw.A&&Zw.A.locals&&Zw.A.locals;const ek=({asset:e,numPages:t,pageNumber:n,setPageNumber:a,viewLayout:o,setVie
2wLayout:s,isDoublePage:l,setIsDoublePage:c,setAutoLayout:d,pdfContainerRef:u,isLoading:p,pdf:h,downloadAllowed:m,isBrowserZoomed:g})=>{const v=(0,J.Ay)(J.ml),{t:b}=(0,k.Bd)(),[y,x]=(0,r.useState)(!1),[w,A]=(0,r.useState)(!1),T=t>1&&!v,S=(0,r.useCallback)((e=>{localStorage.setItem(f.hY,e),d(e===zl.AUTO),e===zl.ODD_DOUBLE?(c(!0),s(zl.ODD_DOUBLE),n%2==0&&n>=1?a(n-1):0===n&&a(1)):e===zl.EVEN_DOUBLE?(c(!0),s(zl.EVEN_DOUBLE),n%2==1&&n<t?a(n+1):n===t&&t%2==1?a(t-1):1===n&&t>1&&a(2)):e===zl.AUTO?s(zl.AUTO):(c(!1),s(zl.SINGLE),0===n&&a(1))}),[n,t,d,c,s,a]),E=(0,r.useCallback)((()=>{var e;(null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.requestFullscreen)&&(A(!0),u.current.requestFullscreen())}),[u,A]);return(0,i.jsxs)("div",{className:"pdf-tools__wrapper",children:[(0,i.jsxs)("div",{className:"pdf-tools "+(g?"flex-row flex-wrap":""),children:[(0,i.jsx)("div",{className:"tool-group",children:(0,i.jsx)(Ul,{numPages:t,viewLayout:o,page:n,setPage:a,isDoublePage:l})}),(0,i.jsx)("div",{className:"pdf-tools-right",children:(0,i.jsxs)("div",{className:"tool-group gap-2",children:[T&&(0,i.jsx)(N.$,{onClick:()=>x(!y),className:y?"plain button--hovered":"",ariaLabel:b("dau.tools.toggleLayoutAria"),title:b("dau.tools.toggleLayoutTooltip"),data_cy:"setDoublePage",icon:(0,i.jsx)(Ue.I,{source:l?Kl:Yl,accessibilityLabel:b("dau.tools.toggleLayoutAria")})}),(0,i.jsx)(gb,{isFullscreen:w,openFullscreen:(()=>{var e;if(null===(e=null==u?void 0:u.current)||void 0===e?void 0:e.requestFullscreen)return()=>E()})(),setIsFullscreen:A}),m(e)&&!p&&h&&(0,i.jsx)(mi.D,{asset:e,iconOnly:!0})]})})]}),T&&y&&(0,i.jsxs)("div",{className:"pdf-tools__dau-tools mt-0",children:[(0,i.jsx)(Bl,{viewLayout:o,changeLayout:S,page:n,numPages:t}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:b("ui.ariaClose"),title:b("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:()=>x(!1)})]})]})};$s.EA.workerSrc=new URL(n(23827),n.b).toString();const tk=({asset:e,setPdfPage:t,setPdfNumPages:n})=>{var a;const o=(0,l.n)(),s=(0,J.Ay)(J.ml),c=window.devicePixelRatio>2,{downloadAllowed:d}=(0,hi.H)(),{t:u}=(0,k.Bd)(),{mutateAsync:p}=(0,ge.u)(),h=(0,r.useRef)(),m=(0,r.useRef)(),g=(0,r.useRef)(Jd),v=(0,r.useRef)(),[b,y]=(0,r.useState)(null),[x,w]=(0,r.useState)(1),[A,T]=(0,r.useState)(Jd),[S,E]=(0,r.useState)(),[I,C]=(0,r.useState)(),[_,j]=(0,r.useState)(),N=(0,r.useRef)(1),L=(0,r.useRef)(1),P=(0,r.useRef)(1),D=(0,r.useRef)(1),M=(0,r.useRef)(1),O=(0,r.useRef)(1);(0,r.useEffect)((()=>{const e=localStorage.getItem(f.hY),t=e?zl[null==e?void 0:e.toUpperCase()]:zl.AUTO;t&&(j(t===zl.AUTO),E(t),t===zl.ODD_DOUBLE||t===zl.EVEN_DOUBLE?(C(!0),t===zl.EVEN_DOUBLE&&w(0)):t===zl.SINGLE&&C(!1))}),[]);const R=(0,r.useCallback)((()=>{const e=x>0&&x<b;let t=I&&e;if(_){const n=h.current.clientWidth,i=h.current.clientHeight/n;t=!!(i<D.current&&e)||(P.current,!1),C(t),0===x&&w(1)}}),[I,x,b,_]);(0,r.useEffect)((()=>{_&&R()}),[_,I,x,b,R]);const z=(0,r.useCallback)((e=>{const t=e.height,n=e.width;1===A&&(N.current=t,L.current=n,P.current=t/n,D.current=t/(2*n)),M.current=t,O.current=n,R()}),[R,A]),B=new AbortController,{pdf:U,isLoading:F,error:V}=Oc(e.id,Pc.PDF,B.signal),[q,H]=(0,r.useState)(null),G=(0,r.useCallback)((t=>{"ERR_CANCELED"===(null==t?void 0:t.code)||(console.error("Error loading asset-pdf: ",t),H(t),p({errorMessage:"Error loading asset-pdf "+e.id,errorObject:t}))}),[e.id,p]);(0,r.useEffect)((()=>{V?G(V):H(null)}),[V]),(0,r.useEffect)((()=>()=>{B.abort()}),[]);const K=(0,r.useCallback)((()=>!!navigator.userAgent.match(/iPhone/i)),[]);(0,r.useEffect)((()=>{g.current=A}),[A]);const $=(0,r.useCallback)((e=>{y(e.numPages)}),[]);(0,r.useEffect)((()=>{const e=()=>{R()};return window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[R]);const W=(0,r.useRef)(Jd),X=(0,r.useRef)(),Y=(0,r.useRef)(0),Z=(0,r.useRef)(0),Q=e=>{let t=isNaN(e)?Jd:e;return t=t>5?5:t,t=t<.25?.25:t,t},ee=(0,r.useRef)(),te=(0,r.useRef)(),ne=(0,r.useCallback)((()=>{ee.current=X.current.getBoundingClientRect().height,te.current=X.current.getBoundingClientRect().width}),[]),ie=(0,r.useCallback)((e=>{W.current=Q(e.scale),X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px) scale("+W.current+")"}),[]),re=(0,r.useCallback)((e=>{if(W.current=Q(e.scale),X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px) scale("+W.current+")",!K()){const e=ee.current*W.current,t=te.current*W.current,n=(ee.current-e)/2,i=(te.current-t)/2;Y.current=Y.current+i,Z.current=Z.current+n;const r=Q(g.current*W.current);T(r),W.current=Jd,X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px) scale("+W.current+")"}}),[K]),ae=(0,r.useCallback)((()=>{const e=Q(A+Yd);T(e)}),[A]),oe=(0,r.useCallback)((()=>{const e=Q(A-Yd);T(e)}),[A]),se=(0,r.useCallback)((()=>{T(Jd),Y.current=0,Z.current=0,X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px)"}),[]),le=(0,r.useCallback)((e=>{T(e)}),[]),ce=()=>{const e=document.getElementById("pdf-page");return e?e.getBoundingClientRect().height-50:500},de=(0,r.useCallback)((({deltaX:e,deltaY:t})=>{Y.current=Y.current+e,Z.current=Z.current+t,K()?X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px) scale("+W.current+")":X.current.style.transform="translate("+Y.current+"px, "+Z.current+"px)"}),[K]);(0,r.useEffect)((()=>{t(x)}),[x,t]),(0,r.useEffect)((()=>{n(b)}),[b,n]);const ue=(0,r.useMemo)((()=>({cMapUrl:"cmaps/"})),[]),pe=(0,r.useMemo)((()=>
2{if(U){const e=new ArrayBuffer(U.byteLength);return new Uint8Array(e).set(new Uint8Array(U)),e}}),[U]);return q&&o?(0,i.jsx)("div",{className:"pdf-page",children:(0,i.jsx)("p",{className:"my-4",children:403===(null===(a=null==V?void 0:V.response)||void 0===a?void 0:a.status)?(0,i.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,i.jsx)("span",{children:u("error.asset.unauthorized")}),(0,i.jsxs)("span",{className:"flex gap-2",children:[">",(0,i.jsx)("a",{href:u("error.asset.licenseHelpLink"),className:"text-textLink underline",children:u("error.asset.licenseHelp")})]})]}):u("error.asset.failGetPdf")})}):(0,i.jsx)(r.Fragment,{children:(0,i.jsxs)("div",{className:"pdf-page",ref:v,children:[(0,i.jsx)(ek,{asset:e,numPages:b,pageNumber:x,setPageNumber:w,viewLayout:S,setViewLayout:E,isDoublePage:I,setIsDoublePage:C,autoLayout:_,setAutoLayout:j,pdfContainerRef:v,isLoading:F,pdf:U,downloadAllowed:d,isBrowserZoomed:c}),(0,i.jsx)("div",{className:"pdf-document-wrapper",ref:h,children:(0,i.jsx)(ld,{id:"pdf-page",className:"h-full",onPan:de,onPinch:ie,onPinchEnd:re,onPinchStart:ne,children:U&&(0,i.jsx)("div",{ref:X,tabIndex:0,children:(0,i.jsxs)(Ws.A,{className:"pdf-document",onContextMenu:e=>e.preventDefault(),file:pe,options:ue,onLoadSuccess:$,onLoadError:G,children:[x>0&&(0,i.jsx)(Xs.A,{canvasRef:m,height:ce(),scale:A,pageNumber:x,onRenderSuccess:z},x+"_1"),I&&x+1<=b&&x+1>0&&(0,i.jsx)(Xs.A,{canvasRef:m,height:ce(),scale:A,pageNumber:x+1,onRenderSuccess:z},x+"_2")]})})})}),(!s||c)&&(0,i.jsx)(Ec,{zoomOut:oe,zoomIn:ae,scaleLabel:(100*A).toFixed()+"%",zoomTo:le,doReset:se,isAssetPlayer:!0,documentWrapperRef:h})]})})},nk=({asset:e,isMinimized:t,setIsMinimized:n,closePlayer:a,audios:o,setAudios:s,videos:l,setVideos:c,npNumber:d})=>{const u=(0,Re.V)(),{refetch:p,data:h}=Ti(d,{hideToast:!0}),m="double"===u.get("mode"),g=u.get("page")?u.get("page"):"1";return(0,r.useEffect)((()=>{p&&d&&""!==d&&p()}),[p,d]),(0,r.useEffect)((()=>{if(g&&h&&h.pages){const e=hy(h,g,m);s(e.audios),c(e.videos)}}),[u,e,h,m,g,s,c]),(0,i.jsx)(Rb,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:o?[...o.page,...o.doublePage]:[],videos:l?[...l.page,...l.doublePage]:[]})},ik=({asset:e,isMinimized:t,setIsMinimized:n,closePlayer:a,audios:o,setAudios:s,videos:l,setVideos:c,isbn:d})=>{const u=(0,Re.V)(),{refetch:p,data:h}=nh(d,{hideToast:!0}),m=u.get("assetPage")?u.get("assetPage"):u.get("page")?u.get("page"):"1";return(0,r.useEffect)((()=>{p&&d&&""!==d&&p()}),[p,d]),(0,r.useEffect)((()=>{if(m&&h&&h.pages){const e=hy(h,m,!1);s(e.audios),c(e.videos)}}),[u,e,h,m,s,c]),(0,i.jsx)(Rb,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:o?[...o.page,...o.doublePage]:[],videos:l?[...l.page,...l.doublePage]:[]})},rk=({asset:e,isMinimized:t,setIsMinimized:n,closePlayer:a,audios:o,setAudios:s,videos:l,setVideos:d,npNumber:u})=>{const p=(0,c.As)(),h=(0,Re.V)(),{data:m,refetch:g}=Nh({id:u,isEnabled:!!u&&!!(null==p?void 0:p.authInitialized)}),{data:f}=Pp({mapId:u,isEnabled:!!m&&!!u&&!!(null==p?void 0:p.authInitialized)}),{data:v}=uy({bookSessionId:f,assessmentId:h.get("exerciseId"),isEnabled:!!f&&!!h.get("exerciseId")&&!!(null==p?void 0:p.authInitialized)});return(0,r.useEffect)((()=>{var e,t,n,i,r;if(null===(e=null==v?void 0:v.originalAssessment)||void 0===e?void 0:e.audios){const e=gy(null===(t=null==v?void 0:v.originalAssessment)||void 0===t?void 0:t.audios,null===(n=null==v?void 0:v.originalAssessment)||void 0===n?void 0:n.speakingSamples);s(my(e,u))}else s(void 0);(null===(i=null==v?void 0:v.originalAssessment)||void 0===i?void 0:i.videos)?d(my(null===(r=null==v?void 0:v.originalAssessment)||void 0===r?void 0:r.videos,u)):d(void 0)}),[v,u,s,d]),(0,r.useEffect)((()=>{g&&u&&g()}),[g,u]),(0,i.jsx)(Rb,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:o?[...o.page,...o.doublePage]:[],videos:l?[...l.page,...l.doublePage]:[]})},ak=({asset:e,isMinimized:t,setIsMinimized:n,closePlayer:a,type:o,showAudioVideoList:s,setShowAudioVideoList:l})=>{const c=(0,J.Ay)(),[d,u]=(0,r.useState)(),[p,h]=(0,r.useState)(),[m,g]=(0,r.useState)();(0,r.useEffect)((()=>{"augmented"===o&&e.book.isbn&&g(e.book.isbn),"dau"!==o&&"eksdi"!==o||g((e=>{const t=e.match(/NP(\d+)/);return t&&t[0]?t[0]:null})(location.pathname))}),[o,e.book.isbn]);const f=!c&&!t,v=!c&&t,b=c&&!t,y=c&&t,[x,w]=(0,r.useState)(!1);return(0,r.useEffect)((()=>{var e,t,n,i;if(d&&p){const r=(null===(e=null==d?void 0:d.page)||void 0===e?void 0:e.length)+(null===(t=null==d?void 0:d.doublePage)||void 0===t?void 0:t.length)+(null===(n=null==p?void 0:p.page)||void 0===n?void 0:n.length)+(null===(i=null==p?void 0:p.doublePage)||void 0===i?void 0:i.length)>0;w(r),r||l(!1)}}),[d,p,l]),(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)("div",{className:`grid grid-cols-1 ${v?"md:grid-cols-1":"md:grid-cols-3"} w-full`,children:[(0,i.jsx)(Gb,{asset:e,onCloseMedium:a,isMinimized:t,showAudioVideoList:s,setShowAudioVideoList:l,audios:d,videos:p,type:o}),(0,i.jsxs)("div",{className:"w-full "+(x?"md:col-span-2":"md:col-span-3"),children:[(!s||f)&&!y&&(0,i.jsx)(Wb,{asset:e,onCloseMedium:a,isMinimized:t,showAudioVideoList:s,setShowAudioVideoList:l,showListToggle:(b||v)&&x,className:v||b?"p-2 pr-0":""}),(0,i.jsxs)("div",{children:["dau"===o&&(0,i.jsx)(nk,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:d,setAudios:u,videos:p,setVideos:h,npNumber:m}),"augmented"===o&&(0,i.jsx)(ik,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:d,setAudios:u,videos:p,setVideos:h,isbn:m}),"eksdi"===o&&(0,i.jsx)(rk,{closePlayer:a,asset:e,setIsMinimized:n,isMinimized:t,audios:d,setAudios:u,videos:p,setVideos:h,npNumber:m})]})]})]})})},ok=({asset:e,setAssessments:t,getLessonPlayerHeader:n,isMinimized:a})=>{const o=(0,Re.V)(),s="double"===o.get("mode"),l=o.get("page")?o.get("page"):"1",{data:d}=Ti(e.book.npNumber,{hideToast:!0}),u=(0,c.As)(),p=e.book.npNumber,{data:h}=Pp({mapId:p,isEnabled:!!e&&!!p&&!!(null==u?void 0:u.authInitialized)});return(0,r.useEffect)((()=>
2{if(l&&d&&d.pages){const e=((e,t,n)=>{const{mediaPage:i,mediaPageDoublePage:r}=py(e,t,n);return[...i&&i.assessments?null==i?void 0:i.assessments:[],...r&&r.assessments?null==r?void 0:r.assessments:[]]})(d,l,s);t(e)}}),[o,e,d,s,l,t]),(0,i.jsxs)(i.Fragment,{children:[n(!a),!a&&(0,i.jsx)(ty,{asset:e,bookSessionId:h})]})};var sk=n(42082),lk={};lk.styleTagTransform=q(),lk.setAttributes=B(),lk.insert=R().bind(null,"head"),lk.domAPI=M(),lk.insertStyleElement=F();P()(sk.A,lk);sk.A&&sk.A.locals&&sk.A.locals;const ck=({correctCount:e,totalCount:t,roundedPercent:n,selftestAsset:a,resetAll:o,viewResults:s,closePlayer:l})=>{const{t:c}=(0,k.Bd)(),{setLearningProgressModalOpen:d,setScrollToLessonId:u}=(0,Pe.Us)(),[p,h]=(0,r.useState)(!1),{pathname:m}=(0,be.zy)();return(0,i.jsx)("div",{className:"selftest-player-page",children:(0,i.jsxs)("div",{className:"selftest-player-result",children:[(0,i.jsxs)("div",{className:"selftest-player-result__text",children:[a.description&&(0,i.jsx)("h5",{className:"text-h5",children:a.description}),a.title&&(0,i.jsx)("h3",{className:"text-h3",children:a.title})]}),(0,i.jsx)("h5",{className:"text-h5",children:c("eksdi.selftest.congratulations")}),(0,i.jsxs)("div",{className:"selftest-player-result__values",children:[(0,i.jsxs)("h2",{className:"text-h2 font-bold",children:[n,"%"]}),(0,i.jsx)("p",{className:"text-body2",children:c("eksdi.result.text",{correctAnswers:e,total:t})})]}),(0,i.jsxs)("div",{className:"selftest-player-result__buttons",children:[(0,i.jsx)(N.$,{variant:"primary",onClick:s,children:c("eksdi.selftest.viewResults")}),kd([te.J.dau],m)&&(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>{u(a.id),d(!0),l()},children:c("eksdi.selftest.learningProgress")}),(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>h(!0),data_cy:"selftest-reset",children:c("eksdi.selftest.reset")})]}),(0,i.jsx)(kp,{isOpen:p,setIsOpen:h,text:c("eksdi.selftest.resetWarning"),resetApproved:o})]})})},dk=({selftestAsset:e,startSelftest:t})=>{const{t:n}=(0,k.Bd)(),r=((e,t=0)=>{for(const n of e.subassets)n.subassets.length>0?t+=n.subassets.length:t++;return t})(e);return(0,i.jsx)("div",{className:"selftest-player-page",children:(0,i.jsxs)("div",{className:"selftest-player-start",children:[(0,i.jsxs)("div",{className:"selftest-player-start__text",children:[e.description&&(0,i.jsx)("h5",{className:"text-h5",children:e.description}),e.title&&(0,i.jsx)("h3",{className:"text-h3",children:e.title})]}),r>0&&(0,i.jsx)("div",{className:"selftest-player-start__values",children:(0,i.jsxs)("h5",{className:"text-h5",children:[r," ",n("eksdi.overview.chapterProgress.topic."+(r>1?"plural":"singular"))]})}),(0,i.jsx)("div",{className:"selftest-player-start__buttons",children:(0,i.jsx)(N.$,{variant:"primary",onClick:t,data_cy:"selftest-start",children:n("eksdi.selftest.start")})})]})})},uk=({bookSessionId:e,setIsLoading:t,allSelftestLessonSessions:n,refetchAllSelftestLessonSessions:a,setSelftestSubmitted:o,isAlreadySubmitted:s})=>{const{t:l}=(0,k.Bd)(),{setTriggerDauLearningProgressRefetch:c}=(0,Pe.Us)(),[u,p]=(0,r.useState)(!1),h=()=>{p(!1)},{mutateAsync:m}=(({bookSessionId:e},t)=>{const n=(0,d.q)(),{t:i}=(0,k.Bd)(),r=(0,E.n)({mutationFn:async t=>(await n.post(`/eksdi/booksession/${e}/${t.mapId}/${t.sessionId}`,t.data)).data,retry:!1});return(0,S.s)(r,t||{message:i("error.eksdi.failSubmitSelftest")})})({bookSessionId:e},{hideToast:!0}),g=()=>{t(!0);const e=n.map((e=>{if("fulfilled"===e.status)return(async e=>{let t;const n=vy(e.id);t=n?n.entries:e.originalAssessment.values;const i=xy(t,e.originalAssessment.type),r={assessmentValueAssignment:{type:e?e.originalAssessment.type:null,values:i},initializedAt:null==n?void 0:n.initializedAt};return by(e.id),await m({mapId:e.originalAssessment.id,sessionId:e.id,data:r})})(null==e?void 0:e.value)}));Promise.all(e).then((async()=>{await a()})).then((()=>c(!0))).then((()=>o(!0))).finally((()=>{c(!0),t(!1)}))};return s?(0,i.jsx)(N.$,{variant:"primary",onClick:()=>o(!0),children:l("eksdi.selftest.totalResult")}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{p(!0)},data_cy:"selftest-submit",children:l("eksdi.selftest.completeSelftest")}),(0,i.jsx)(Xe.y,{open:u,closeButton:!0,close:h,title:l("eksdi.selftest.completeSelftestInfoTitle"),copy:l("eksdi.selftest.completeSelftestInfoText"),asPortal:!1,actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("span",{}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>{h(),g()},data_cy:"selftest-submit-modal",children:l("eksdi.selftest.completeSelftest")})]})})]})},pk={correctCount:0,totalCount:0,roundedPercent:0},hk=({asset:e,assessmentIndex:t,setAssessmentIndex:n,getLessonPlayerHeader:a,closePlayer:o,navigationButtons:s})=>{var l;const u=(0,fe.m)(),p=(0,Re.V)(),h=(0,c.As)(),m=$h(),g=e.id,f=e.book.npNumber,v=g+"_"+h.profile.id,{data:b}=Pp({mapId:f,isEnabled:!!e&&!!f&&!!(null==h?void 0:h.authInitialized)}),[y,x]=(0,r.useState)(!!localStorage.getItem(v)),[w,A]=(0,r.useState)(),[E,I]=(0,r.useState)(Object.assign({},pk)),[C,_]=(0,r.useState)(0),[j,N]=(0,r.useState)(!1);(0,r.useEffect)((()=>{var n;if(y&&!w){const i=null===(n=e.subassets[t])||void 0===n?void 0:n.id;i&&i!==p.get("id")&&(p.set("id",i),u(location.pathname+"?"+p.toString()))}else if(p.get("id")){(()=>{p.delete("id"),u(location.pathname+"?"+p.toString())})()}}),[y,w]);const L=(e,t=[])=>(e.forEach((e=>{var n;if((null===(n=e.subassets)||void 0===n?void 0:n.length)>0)L(e.subassets,t);else{const n=ey(e);
2n&&t.push(n)}})),t),P=!!g&&(!!(null===(l=e.subassets[t])||void 0===l?void 0:l.id)||t===e.subassets.length)&&(y||w),{data:D,refetch:M}=(({selftestId:e,assessmentIds:t,isEnabled:n},i)=>{const r=(0,d.q)(),{t:a}=(0,k.Bd)(),o=(0,T.I)({queryKey:["get-all-selftest-lesson-sessions",e],queryFn:async()=>{const n=t.map((async t=>(await r.get(`/eksdi/selftest/${e}/${t}`)).data));return Promise.allSettled(n)},retry:!1,enabled:n});return(0,S.V)(o,i||{message:a("error.eksdi.failGetSelftest")})})({selftestId:g,assessmentIds:L(e.subassets),isEnabled:P||!1}),[O,R]=(0,r.useState)(!1),{mutateAsync:z}=yp(g),B=()=>{N(!0),A(!1),R(!1),I(Object.assign({},pk)),z({}).then((()=>_(Math.random()))).then((()=>{m.sendOne({actor:Bh(h.profile.id),verb:Mh,object:Uh(g)})})).then((()=>{x(!1)})).finally((()=>N(!1)))};(0,r.useEffect)((()=>{D&&D.length>0&&(()=>{var e,t;const n=Object.assign({},pk);for(const i of D)if("fulfilled"===i.status){const r=null===(e=i.value)||void 0===e?void 0:e.state;r&&r.lastSubmit&&(n.correctCount+=r.correctCount,n.totalCount+=r.totalCount),(null===(t=i.value)||void 0===t?void 0:t.newVersionAvailable)&&R(!0)}n.roundedPercent=((e,t)=>{if(e&&t){const n=100/e*t;return Math.round(n)}return 0})(n.totalCount,n.correctCount),I(n),A(n.totalCount>0)})()}),[D]);return(0,i.jsxs)(i.Fragment,{children:[a(y&&!w),(0,i.jsxs)(ft.o,{inProgress:j,children:[O&&(0,i.jsx)(fy,{resetLesson:B,isSelftest:!0}),!y||w?(0,i.jsx)(i.Fragment,{children:w?(0,i.jsx)(ck,Object.assign({},E,{selftestAsset:e,resetAll:B,viewResults:()=>{A(!1),n(0)},closePlayer:o})):(0,i.jsx)(dk,{selftestAsset:e,startSelftest:()=>{x(!0),n(0),localStorage.setItem(v,"started")}})}):(0,i.jsx)(i.Fragment,{children:e.subassets[t]&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(ty,{asset:e.subassets[t],bookSessionId:b,selftestId:g,className:"selftest-player"},C),s&&(0,i.jsx)("div",{className:"lesson-wrapper selftest-player__navigation",children:(0,i.jsxs)("div",{className:"selftest-player__navigation-buttons",children:[s,t===e.subassets.length-1&&(0,i.jsx)(uk,{bookSessionId:b,setIsLoading:N,allSelftestLessonSessions:D,refetchAllSelftestLessonSessions:M,setSelftestSubmitted:A,isAlreadySubmitted:E.totalCount>0})]})})]})})]})]})},mk=({navigateLesson:e,lessonIndex:t,selftestPageCount:n})=>{const{t:r}=(0,k.Bd)();if(t>0||t<n)return(0,i.jsxs)(i.Fragment,{children:[t>0&&(0,i.jsx)(N.$,{variant:"secondary",onClick:()=>
2e("back"),children:r("eksdi.selftest.navigateBack")}),t<n&&(0,i.jsx)(N.$,{variant:"primary",onClick:()=>e("front"),children:r("eksdi.selftest.navigateNext")})]})},gk=({onCloseMedium:e,playerOpen:t,asset:n,setIsMinimized:a,isMinimized:o})=>{const s=(0,J.Ay)(),l=(0,fe.m)(),c=(0,Re.V)(),[d,u]=(0,r.useState)([]),[p,h]=(0,r.useState)(0),m=s&&!o,g=!s&&o;(0,r.useEffect)((()=>(document.querySelector("body").classList.add("overflow-hidden"),()=>{document.querySelector("body").classList.remove("overflow-hidden")})),[]),(0,r.useEffect)((()=>{var e;if(n&&n.format===Si.i_.ASSESSMENT&&d){const e=null==d?void 0:d.findIndex((e=>e.assetId===(null==n?void 0:n.id)));h(e<0?0:e)}else if(n&&n.format===Si.i_.SELFTEST&&n.subassets&&c.get("id")){const t=null===(e=n.subassets)||void 0===e?void 0:e.findIndex((e=>e.id===c.get("id")));h(t<0?0:t)}}),[d,n]);const f=e=>{var t,i;const r="front"===e?p+1:p-1,a=n.format===Si.i_.SELFTEST?n.subassets:d;if(r>=0&&r<a.length){const e=n.format===Si.i_.SELFTEST?null===(t=n.subassets[r])||void 0===t?void 0:t.id:null===(i=d[r])||void 0===i?void 0:i.assetId;e&&(c.set("id",e),l(location.pathname+"?"+c.toString())),h(r)}};if(!t)return;const v=(t=!0)=>(0,i.jsx)(Jb,{asset:n,onCloseMedium:e,isMinimized:o,setIsMinimized:a,className:(g||m)&&n.format!==Si.i_.ASSESSMENT?"p-2 pr-0":"",assessmentNavigation:t?(0,i.jsx)(em,{navigateLesson:f,lessonIndex:p,taskGroupExerciseCount:(n.format===Si.i_.SELFTEST?n.subassets.length:d.length)||1}):void 0});return(0,i.jsxs)(i.Fragment,{children:[n.format===Si.i_.SELFTEST&&(0,i.jsx)(hk,{asset:n,assessmentIndex:p,setAssessmentIndex:h,getLessonPlayerHeader:v,closePlayer:e,navigationButtons:(0,i.jsx)(mk,{navigateLesson:f,lessonIndex:p,selftestPageCount:n.subassets.length-1})}),n.format===Si.i_.ASSESSMENT&&(0,i.jsx)(ok,{asset:n,setAssessments:u,getLessonPlayerHeader:v,isMinimized:o})]})},fk=({onCloseMedium:e,playerOpen:t,asset:n,setIsMinimized:a,isMinimized:o,showAudioVideoList:s,setShowAudioVideoList:l})=>{const c=(0,J.Ay)(),{pathname:d}=(0,be.zy)(),[u,p]=(0,r.useState)(),[h,m]=(0,r.useState)(),g=d.includes("/dau/NP")||d.includes("/uhb/NP"),f=d.includes("/eksdi/NP"),v=d.includes(`/aug/${n.book.isbn}`),b=n.format===Si.i_.AUDIO||n.format===Si.i_.VIDEO,y=c&&!o,x=c&&o,w=!c&&o,k=(()=>{if(b){if(g)return"dau";if(v)return"augmented";if(f)return"eksdi"}})();if(t)return n.format===Si.i_.ASSESSMENT||n.format===Si.i_.SELFTEST?(0,i.jsx)(gk,{asset:n,onCloseMedium:e,playerOpen:t,setIsMinimized:a,isMinimized:o}):(0,i.jsxs)(i.Fragment,{children:[void 0===k&&!(b&&x)&&(0,i.jsx)(Wb,{asset:n,onCloseMedium:e,isMinimized:o,setIsMinimized:a,pdfPage:u,numPdfPages:h,className:w||y?"p-2 pr-0":""}),b&&(0,i.jsx)("div",{className:"asset-player__content "+(x?"p-0":""),children:"dau"===k||"augmented"===k||"eksdi"===k?(0,i.jsx)(ak,{closePlayer:e,asset:n,setIsMinimized:a,isMinimized:o,type:k,showAudioVideoList:s,setShowAudioVideoList:l}):(0,i.jsx)("div",{className:"w-full",children:(0,i.jsx)(Rb,{closePlayer:e,asset:n,setIsMinimized:a,isMinimized:o})})}),n.format===Si.i_.HTML&&(0,i.jsx)(Jw,{asset:n}),n.format===Si.i_.PDF&&(0,i.jsx)(tk,{asset:n,setPdfPage:p,setPdfNumPages:m})]})},vk=({isMinimized:e,closeMedium:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsxs)("div",{role:"status",className:"asset-player-dialog__shadow animate-pulse h-[99vh] overflow-y-hidden",children:[(0,i.jsx)("header",{className:"asset-player__header flex",children:(0,i.jsxs)("div",{className:"asset-player__format heading-5 items-center",children:[(0,i.jsx)("span",{className:"flex flex-wrap items-center gap-1 flex-grow md:flex-grow-0 md:w-72",children:(0,i.jsx)("div",{className:"w-full h-5 rounded-md bg-borderColor dark:bg-textSubdued"})}),(0,i.jsxs)("div",{className:"asset-player__actions gap-4 pl-2 ml-auto",children:[(0,i.jsx)("div",{className:"h-8 w-8 rounded-xl bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-8 w-8 bg-borderColor rounded-xl dark:bg-textSubdued"}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:n("ui.ariaClose"),title:n("ui.ariaClose"),size:e?"sm":"",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),className:"medium-player__close",onClick:t})]})]})}),(0,i.jsxs)("div",{className:"pdf-tools__wrapper pdf-tools flex items-center p-6 flex-col md:flex-row",children:[(0,i.jsxs)("div",{className:"tool-group gap-2",children:[(0,i.jsx)("div",{className:"h-8 w-8 rounded-xl bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"hidden md:block h-10 w-32 rounded bg-borderColor dark:bg-textSubdued"}
2),(0,i.jsx)("div",{className:"h-8 w-8 bg-borderColor rounded-xl dark:bg-textSubdued"})]}),(0,i.jsxs)("div",{className:"pdf-tools-right md:ml-auto flex gap-4",children:[(0,i.jsx)("div",{className:"h-8 w-8 rounded-xl bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"hidden md:block h-8 w-8 bg-borderColor rounded-xl dark:bg-textSubdued"})]})]}),(0,i.jsx)("div",{className:"pdf-document-wrapper pdf-document-wrapper--skeleton",children:(0,i.jsx)("div",{className:"w-2/3 md:w-1/3 h-[75%] bg-borderColor dark:bg-textSubdued"})}),(0,i.jsx)("span",{className:"sr-only",children:n("ui.ariaLoading")})]})},bk=({isMinimized:e,closeMedium:t})=>{const{t:n}=(0,k.Bd)();return(0,i.jsxs)("div",{role:"status",className:"asset-player-dialog__shadow animate-pulse h-[99vh] overflow-y-hidden",children:[(0,i.jsx)("header",{className:"asset-player__header flex",children:(0,i.jsxs)("div",{className:"asset-player__format heading-5 items-center",children:[(0,i.jsx)("span",{className:"flex flex-wrap items-center gap-1 flex-grow md:flex-grow-0 md:w-72",children:(0,i.jsx)("div",{className:"flex-grow h-5 rounded-md bg-borderColor dark:bg-textSubdued"})}),(0,i.jsxs)("div",{className:"asset-player__actions gap-4 pl-2 pr-4 ml-auto",children:[(0,i.jsx)("div",{className:"h-8 w-8 rounded-xl bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-8 w-8 bg-borderColor rounded-xl dark:bg-textSubdued"}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:n("ui.ariaClose"),title:n("ui.ariaClose"),size:e?"sm":"",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),className:"medium-player__close",onClick:t})]})]})}),(0,i.jsx)("div",{className:"pdf-tools__wrapper pdf-tools flex items-center p-6",children:(0,i.jsxs)("div",{className:"tool-group gap-2",children:[(0,i.jsx)("div",{className:"h-10 w-16 bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-7 w-32 rounded bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"h-6 w-26 bg-borderColor rounded dark:bg-textSubdued"})]})}),(0,i.jsxs)("div",{className:"h-full w-full md:w-1/3 pl-10 pt-6 pr-6 ",children:[(0,i.jsx)("div",{className:"w-full h-[35%] bg-borderColor dark:bg-textSubdued mb-3"}),(0,i.jsx)("div",{className:"w-1/2 h-3 rounded bg-borderColor dark:bg-textSubdued mx-auto"})]}),(0,i.jsx)("span",{className:"sr-only",children:n("ui.ariaLoading")})]})};var yk=n(66951),xk={};xk.styleTagTransform=q(),xk.setAttributes=B(),xk.insert=R().bind(null,"head"),xk.domAPI=M(),xk.insertStyleElement=F();P()(yk.A,xk);yk.A&&yk.A.locals&&yk.A.locals;const wk=({isMinimized:e,closeMedium:t,format:n})=>{const{t:r}=(0,k.Bd)(),a=(0,J.Ay)(),o=(0,J.Ay)(1024),s="true"===(0,Re.V)().get("fullscreen"),l=!o&&!e||!a&&s,c=!a&&e&&!s;return a&&e?(0,i.jsxs)("div",{children:[(0,i.jsx)("div",{className:"player-controls__title-slider-wrapper items-center}",children:(0,i.jsxs)("div",{className:"player-mobile--minimized flex-row items-center ",children:[(0,i.jsxs)("div",{className:"flex gap-1 items-center",children:["video"===n&&(0,i.jsx)("div",{className:"w-14 h-14 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsxs)("div",{className:"flex items-center gap-2 p-2",children:[(0,i.jsx)("div",{className:"w-9 h-9 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-32 player-controls__title animate-pulse h-2.5 md:h-5 rounded-md bg-borderColor dark:bg-textSubdued mb-0 "})]})]}),(0,i.jsxs)("div",{className:"flex items-center gap-2",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:r("ui.ariaClose"),title:r("ui.ariaClose"),size:e?"sm":"",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),className:"medium-player__close",onClick:t})]})]})}),(0,i.jsx)("div",{className:"w-full flex items-center",children:(0,i.jsx)("div",{className:"h-2.5 bg-borderColor rounded-full dark:bg-textSubdued flex-1"})})]}):(0,i.jsxs)("div",{role:"status",className:"block asset-player-dialog__shadow animate-pulse",children:[(0,i.jsx)("header",{className:"asset-player__header",children:(0,i.jsx)("div",{className:"asset-player__format heading-5 ",children:(0,i.jsxs)("span",{className:"flex gap-2 items-center justify-between w-full",children:[(0,i.jsx)("span",{className:"w-72 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:r("ui.ariaClose"),title:r("ui.ariaClose"),size:e?"sm":"",icon:(0,i.jsx)(Ue.I,{source:Wn.A}),className:"medium-player__close",onClick:t})]})})}),(0,i.jsx)("div",{className:"asset-player__content",children:(0,i.jsx)("div",{className:"shaka-player-container p-4 pb-2 "+(s?"shaka-player-container--fullscreen p-0":""),children:(0,i.jsxs)("div",{className:"player__wrapper}",children:["video"===n&&(0,i.jsx)("div",{className:"w-full flex justify-center py-2",children:(0,i.jsx)("div",{className:"w-full bg-borderColor dark:bg-textSubdued "+(c?"h-44":"h-44 md:h-96 md:w-2/3")})}),(0,i.jsxs)("div",{className:"player__controls "+(a||c?"flex-col":""),children:[(0,i.jsxs)("div",{className:`player-control
2s__wrapper ${e?"player-controls__wrapper--minimized":""} ${a?"w-full gap-0":""}`,children:[l&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:"player-controls__play-buttons",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-14 h-14 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]}),(0,i.jsxs)("div",{className:"player-controls__playback",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]})]}),(0,i.jsx)("div",{className:"player-controls__title-slider-wrapper flex-col justify-center",children:(0,i.jsx)("div",{className:"w-full flex items-center",children:(0,i.jsx)("div",{className:"h-2.5 bg-borderColor rounded-full dark:bg-textSubdued flex-1"})})}),l&&(0,i.jsxs)("div",{className:"player-controls__controls-right-wrapper gap-4",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]})]}),(o&&!s||a||c)&&(0,i.jsx)("div",{className:"player-controls__control-wrapper",children:(0,i.jsxs)("div",{className:"player-controls__bar",children:[(0,i.jsx)("div",{className:"flex w-full justify-center",children:(0,i.jsxs)("div",{className:"player-controls__play-buttons gap-2",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-14 h-14 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]})}),(0,i.jsxs)("div",{className:"player-controls__controls-right-wrapper gap-4",children:[(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"}),(0,i.jsx)("div",{className:"w-5 h-5 rounded-md bg-borderColor dark:bg-textSubdued"})]})]})})]})]})})})]})},kk=({callBackAfterEnter:e,asset:t,closeModal:n})=>{const{t:a}=(0,k.Bd)(),[o,s]=(0,r.useState)(""),{refetch:l}=(0,Mc.G)({format:t.format,id:t.id},{hideToast:!0}),[c,d]=(0,r.useState)(null),u=(0,r.useCallback)((()=>{sessionStorage.setItem("accessCode",o),l().then((t=>{var n,i;"error"!==t.status?e():403===(null===(i=null===(n=t.error)||void 0===n?void 0:n.response)||void 0===i?void 0:i.status)&&d(a("accesscode.error"))}))}),[o,e,l,a]),p=(0,r.useCallback)((e=>{s(e.target.value)}),[]),h=(0,r.useCallback)((e=>{"Enter"===e.key&&u()}),[u]);return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("header",{className:"dialog__header",children:[(0,i.jsx)("div",{className:"dialog__title",children:a("accesscode.title")}),(0,i.jsx)(N.$,{variant:"plain",ariaLabel:a("ui.ariaClose"),title:a("ui.ariaClose"),icon:(0,i.jsx)(Ue.I,{source:Wn.A}),onClick:n})]}),(0,i.jsxs)("p",{className:"dialog__subTitle",children:[t.title,", ",a("accesscode.page")," ",t.page]}),(0,i.jsx)("p",{className:"dialog__text",children:a("accesscode.text")}),(0,i.jsxs)("div",{className:"dialog__buttons",children:[(0,i.jsx)(Ke.p,{ariaLabel:a("accesscode.inputAria"),value:o,onChange:p,onKeyUp:h,error:{message:c,id:"access-code-error"},help:(0,i.jsx)("a",{href:a("help.accesscode-where-url"),target:"_blank",rel:"noreferrer","aria-label":a("ui.ariaHelp"),children:(0,i.jsx)("span",{children:a("help.accesscode-where-code")})})}),(0,i.jsx)(N.$,{variant:"primary",onClick:()=>u(),children:a("accesscode.enter")})]})]})},Ak=()=>{const e=(0,Re.V)(),t=(0,fe.m)(),n=(0,be.zy)(),{authInitialized:a}=(0,c.As)(),{setEnableKeyboardNavigation:o}=(0,Pe.Us)(),s=e.get("selftestID")?e.get("selftestID"):e.get("id"),l=e.get("type"),d="true"===e.get("minimized"),u=!e.get("background")||"true"===e.get("background"),{data:p,failureReason:h}=Ii(s,!!s&&!!a),m=(0,r.useRef)(null),g=(null==p?void 0:p.format)===Si.i_.ASSESSMENT||(null==p?void 0:p.format)===Si.i_.SELFTEST,[f,v]=(0,r.useState)(!1),[b,y]=(0,r.useState)(!1),[x,w]=(0,r.useState)(!1),[k,T]=(0,r.useState)(!1),{warning:S}=(0,A.e)();(0,r.useEffect)((()=>{h&&h.message&&S({copy:h.message})}),[h,S]),(0,r.useEffect)((()=>{s&&(v(!0),m.current=l)}),[s,l]),(0,r.useEffect)((()=>{d&&w(!0)}),[d]),(0,r.useEffect)((()=>{s||v(!1)}),[s]);const E=(0,r.useCallback)((()=>{e.delete("id"),e.delete("selftestID"),e.delete("type"),e.delete("minimized"),e.delete("background"),e.delete("assetPage"),e.delete("exerciseId"),e.delete("modal"),t(n.pathname+"?"+e.toString()),o(!0),setTimeout((()=>{y(!1),m.current=null}),1e3)}),[e,t,n]),I=(0,r.useCallback)((()=>{y(!0)}),[]),C=(0,ct.pn)(f,{from:{opacity:0,y:64},enter:{opacity:1,y:0},leave:{opacity:0,y:64}});(0,r.useEffect)((()=>{l!==Si.i_.PDF&&l!==Si.i_.HTML&&l!==Si.i_.ASSESSMENT&&l!==Si.i_.SELFTEST||w(!1)}),[l]);const _=(0,r.useRef)(null),j=(0,r.useRef)(null);(0,r.useEffect)((()=>{var e;if(p&&p.accessLockState===nr.Jm.LOCKED&&(m.current=null),p){o(!1),null===(e=_.current)||void 0===e||e.focus();const t=e=>{var t,n;"Tab"===e.key&&(e.shiftKey&&document.activeElement===_.current?(e.preventDefault(),null===(t=j.current)||void 0===t||t.focus()):e.shiftKey||document.activeElement!==j.current||(e.preventDefault(),null===(n=_.current)||void 0===n||n.focus()))};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)}}),[p]);const N=document.getElementById("fullscreen-container");return(0,i.jsx)("div",{className:f?"block":"none",children:(0,i.jsx)(Co.b,{container:N||document.getElementById("root"),children:(0,i.jsx)(oe,{id:"fullscreen-player-container",children:(0,i.jsxs)("div",{className:"player-wrapper "+(x&&(null==p?void 0:p.format)!==Si.i_.ASSESSMENT?"player-wrapper--minimized":"player-wrapper--full"),children:[C(((e,t)=>{return(0,i.jsxs)(i.Fragment,{children:[t&&(!x&&u||(null==p?void 0:p.accessLockState)===nr.Jm.LOCKED)?(0,i.jsx)("div",{id:"player-overlay",className:((null==p?void 0:p.accessLockState)!==nr.Jm.LOCKED||b)&&u?"asset-player-dialog__overlay":"dialog__overlay",onClick:E}):null,t?(0,i.jsx)(i.Fragment,{children:(null==p?void 0:p.accessLockState)!==nr.Jm.LOCKED||b?(0,i.jsx)("div",{onWheel:e=>e.stopPropagation(),onTouchStart:e=>e.stopPropagation(),onTouchMove:e=>e.stopPropagation(),onTouchEnd:e=>e.stopPropagation(),className:`asset-player-dialog\n                                                    ${!x||(null==p?void 0:p.format)!==Si.i_.AUDIO&&(null==p?void 0:p.format)!==Si.i_.VIDEO?"":"asset-player-dialog--minimized"}\n                                                    ${(null==p?void 0:p.format)===Si.i_.ASSESSMENT||(null==p?void 0:p.format)===Si.i_.SELFTEST?"asset-player-dialog--scroll":""}\n                                                `,"data-cy":"player",role:"dialog","aria-modal":"true",ref:_,tabIndex:0,children:(0,i.jsx)(ct.CS.div,{style:e,className:`asset-player\n                                                        ${!x||(null==p?void 0:p.format)!==Si.i_.AUDIO&&(null==p?void 0:p.format)!==Si.i_.VIDEO?"":"asset-player--minimized"}\n                                                        ${g?"asset-player--exercise"+(x?"--minimized":""):""}\n                                                    `,children:p?(0,i.jsx)("div",{className:`asset-player-dialog__shadow\n                                                                ${!x||(null==p?void 0:p.format)!==Si.i_.AUDIO&&(null==p?void 0:p.format)!==Si.i_.VIDEO?"":"asset-player-dialog__shadow--minimized"}\n                                                                ${!x&&g?"asset-player-dialog__shadow--exercise":""}\n                                                            `,children:(0,i.jsx)(fk,{setIsMinimized:w,onCloseMedium:E,asset:p,isMinimized:x,playerOpen:f||b,showAudioVideoList:k,setShowAudioVideoList:T})}):(n=m.current,n===Si.i_.PDF?(0,i.jsx)(vk,{isMinimized:x,closeMedium:E}):n===Si.i_.HTML?(0,i.jsx)(bk,{isMinimized:x,closeMedium:E}):n===Si.i_.AUDIO||n===Si.i_.VIDEO?(0,i.jsx)(wk,{isMinimized:x,closeMedium:E,format:n}):void 0)})}):(0,i.jsx)("div",{className:"dialog__content",children:(0,i.jsx)("div",{className:"dialog__body",children:p&&(0,i.jsx)(kk,{asset:p,c
2allBackAfterEnter:I,closeModal:E})})})}):null]});var n})),(0,i.jsx)("div",{ref:j,tabIndex:0,className:"sr-only"})]})})})})};var Tk=n(51283),Sk={};Sk.styleTagTransform=q(),Sk.setAttributes=B(),Sk.insert=R().bind(null,"head"),Sk.domAPI=M(),Sk.insertStyleElement=F();P()(Tk.A,Sk);Tk.A&&Tk.A.locals&&Tk.A.locals;const Ek=({titleTextKey:e,bodyTextKey:t,accordionValue:n})=>{const{t:r}=(0,k.Bd)();return(0,i.jsx)(Eu.bL,{type:"single",collapsible:!0,children:(0,i.jsxs)(Eu.q7,{value:n,children:[(0,i.jsx)(Eu.Y9,{children:(0,i.jsxs)(Eu.l9,{className:"group consent-info-display__title",children:[(0,i.jsx)("span",{className:"w-6 h-6",children:(0,i.jsx)(Ue.I,{source:Xi,className:"consent-info-display__title-icon"})}),(0,i.jsx)("p",{className:"consent-info-display__title-text",children:(0,i.jsx)("b",{children:r(e)})})]})}),(0,i.jsx)(Eu.UC,{children:(0,i.jsx)("div",{className:"consent-info-display__body",children:(0,i.jsx)("p",{children:r(t)})})})]})})},Ik=({url:e,id:t,featureToggleName:n})=>{const{featureToggle:r}=en();return n&&-1===r.indexOf(n)?(0,i.jsx)(i.Fragment,{}):(0,i.jsx)(Le.mg,{children:(0,i.jsx)("script",{src:e,type:"text/javascript",id:t,async:!0,defer:!0})})},Ck=({open:e,onClose:t})=>{const[n,a]=(0,r.useState)(!1),[s,l]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),{t:h}=(0,k.Bd)(),m=(0,Re.V)(),g=(0,fe.m)(),{isProduction:f}=(0,o.U)(),{privacyVersion:v}=(0,o.U)();(0,r.useEffect)((()=>{m.get("consent")&&l(!0)}),[m]);const b="eksdCookieManager={checkbox_necessary:true, checkbox_statistics:",y=", config_version:"+(v||"1")+'}; samesite=strict; secure; max-age=31536000; path="/"';(0,r.useEffect)((()=>{const e=document.cookie;-1!==e.indexOf("config_version:"+(v||"1"))?-1===e.indexOf("checkbox_statistics:true")?(p(!1),a(!1)):(p(!0),a(!0)):(l(!0),p(!1),a(!1))}),[v,b,y]),(0,r.useEffect)((()=>{if(!n){document.querySelector("script[src*=responder]")&&window.location.reload()}}),[n]);const x=(0,r.useCallback)((()=>{l(!1),d(!1),m.delete("consent"),g(location.pathname+"?"+m.toString()),t()}),[t,m,g]),w=(0,r.useCallback)((e=>{e.preventDefault(),x(),m.delete("consent"),g(location.pathname+"?"+m.toString())}),[x,g,m]);(0,r.useEffect)((()=>{e&&l(e)}
2),[e]);const A=()=>{document.cookie=b+`${u}`+y,a(u),x()},T=()=>{document.cookie=b+"false"+y,p(!1),a(!1),x()},S=()=>{document.cookie=b+"true"+y,p(!0),a(!0),x()},E=(0,ct.pn)(s,dt.h);return(0,i.jsxs)(i.Fragment,{children:[f&&n&&(0,i.jsx)(Ik,{url:"scripts/tiLoader.min.js",id:"tracking"}),(0,i.jsx)(Ge.bL,{open:s,onOpenChange:e=>{l(e),e||x()},children:(0,i.jsx)(Ge.ZL,{forceMount:!0,children:E(((e,t)=>t?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(Ge.hJ,{className:"dialog__overlay"}),(0,i.jsx)(Ge.UC,{className:"dialog__content",onEscapeKeyDown:w,children:(0,i.jsxs)(ct.CS.div,{style:e,className:"consent-dialog__body","data-cy":"cookie-consent",children:[(0,i.jsx)(Ge.hE,{className:"dialog__title",children:h("consent.title")}),(0,i.jsxs)("div",{className:"consent-dialog__body-text",children:[(0,i.jsx)("p",{className:"dialog__text",children:(0,i.jsxs)(k.x6,{i18nKey:"consent.pretext",children:["text0",(0,i.jsx)(ee.z,{onClick:()=>T(),className:"consent-dialog__link",to:te.J.privacy,children:"Datenschutz"}),"text",(0,i.jsx)(ee.z,{onClick:()=>T(),className:"consent-dialog__link",to:te.J.privacy,children:"Impressum"}),"text",(0,i.jsx)(ee.z,{onClick:()=>T(),className:"consent-dialog__link",to:te.J.privacy,children:"Datenschutz "}),"text"]})}),(0,i.jsxs)("div",{className:"consent-dialog__consent-infos",children:[(0,i.jsx)(Ek,{titleTextKey:"consent.info.store-title",bodyTextKey:"consent.info.store-body",accordionValue:"store"}),(0,i.jsx)(Ek,{titleTextKey:"consent.info.statistic-title",bodyTextKey:"consent.info.statistic-body",accordionValue:"statistic"})]}),(0,i.jsx)("p",{className:"dialog__text consent-dialog__text",children:(0,i.jsxs)(k.x6,{i18nKey:"consent.maintext",children:["text0 ",(0,i.jsx)(ee.z,{onClick:()=>T(),className:"consent-dialog__link",to:te.J.privacy,children:"Datenschutz"})," text ",(0,i.jsx)(ee.z,{onClick:()=>T(),className:"consent-dialog__link",to:te.J.impressum,children:"Impressum"})," text"]})}),c&&(0,i.jsxs)("div",{className:"consent-dialog__configure-sections","data-cy":"cookie-consent-configure-check",children:[(0,i.jsxs)("p",{className:"consent-dialog__configure-section",children:[(0,i.jsxs)("span",{children:[h("consent.explain.necessary.title")," "]}),h("consent.explain.necessary.text")]}),(0,i.jsxs)("p",{className:"consent-dialog__configure-section",children:[(0,i.jsxs)("span",{children:[h("consent.explain.statistic.title")," "]}),h("consent.explain.statistic.text")]}),(0,i.jsxs)("div",{className:"consent-dialog__configure-checkboxes",children:[(0,i.jsx)(Ln.o,{disabled:!0,checked:!0,id:"consent-necessary",children:h("consent.checkbox.necessary")}),(0,i.jsx)(Ln.o,{checked:u,onChange:()=>{p(!u)},id:"consent-statistic",children:h("consent.checkbox.statistic")})]})]})]}),(0,i.jsxs)("div",{className:"dialog__buttons consent-dialog__buttons",children:[(0,i.jsx)(N.$,{"data-cy":"cookie-consent-reject",variant:"primary",onClick:T,children:h("consent.button.decline-all")}),!c&&(0,i.jsx)(N.$,{"data-cy":"cookie-consent-configure",variant:"default",onClick:()=>{d(!0)},children:h("consent.button.config")}),c&&(0,i.jsx)(N.$,{"data-cy":"cookie-consent-configure-set",variant:"default",onClick:A,children:h("consent.button.confirm")}),(0,i.jsx)(N.$,{"data-cy":"cookie-consent-accept",variant:"primary",onClick:S,children:h("consent.button.accept-all")})]})]})})]}):null))})})]})},_k=()=>{const{t:e}=(0,k.Bd)(),{showLoginConsentModal:t,confirmOptin:n,logout:a}=(0,c.As)(),[o,s]=(0,r.useState)(!1),[l,d]=(0,r.useState)(!1),[u,p]=(0,r.useState)(!1),h=(e=!1)=>{e?setTimeout((()=>{a()}),300):a()};return(0,i.jsx)(Xe.y,{open:!!t,closeButton:!1,close:h,title:e("consent.customLogin.title"),copy:(0,i.jsxs)("div",{children:[(0,i.jsx)(k.x6,{i18nKey:"consent.customLogin.text",components:{bold:(0,i.jsx)("strong",{})}}),(0,i.jsxs)("div",{className:"consent-dialog__configure-checkboxes mt-2",children:[(0,i.jsx)(Ln.o,{onChange:e=>s(e.target.checked),checked:o,id:"age-consent",childWrapper:!0,children:(0,i.jsxs)(k.x6,{i18nKey:"consent.customLogin.ageCheckbox",children:["text0",(0,i.jsx)(ee.z,{onClick:()=>h(!0),className:"consent-dialog__link",to:te.J.agb,children:"Nutzungsbedingungen"}),"text"]})}),(0,i.jsx)(Ln.o,{onChange:e=>d(e.target.checked),checked:l,id:"data-consent",childWrapper:!0,children:(0,i.jsxs)(k.x6,{i18nKey:"consent.customLogin.dataCheckbox",children:["text0",(0,i.jsx)(ee.z,{onClick:()=>h(!0),className:"consent-dialog__link",to:te.J.privacy,children:"Datenschutzhinweise"}),"text"]})})]})]}),actions:(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(N.$,{variant:"default",onClick:h,children:e("ui.abort")}),(0,i.jsx)(N.$,{variant:"primary",onClick:async()=>{p(!0);try{await n()}catch(e){console.error("Failed to confirm optin",e)}finally{p(!1)}},disabled:!o||!l||u,children:e("consent.customLogin.button")})]})})};var jk=n(23765),Nk={};Nk.styleTagTransform=q(),Nk.setAttributes=B(),Nk.insert=R().bind(null,"head"),Nk.domAPI=M(),Nk.insertStyleElement=F();P()(jk.A,Nk);jk.A&&jk.A.locals&&jk.A.locals;const Lk=()=>{const{t:e}=(0,k.Bd)(),t=_y(),n=(0,Gr.U)()(),a=(0,l.n)(),[o,s]=(0,r.useState)(!1);(0,r.useEffect)((()=>
2{if(t&&t.infoId){const e=localStorage.getItem("seenMaintenanceBanner");e&&e===t.infoId||s(!0)}}),[t]);const c=(0,r.useCallback)((()=>{localStorage.setItem("seenMaintenanceBanner",t.infoId),s(!1)}),[t]);return(0,i.jsx)(i.Fragment,{children:o&&t&&t.inNotifyMaintenace&&a&&(0,i.jsx)($n.w,{id:"maintenance-banner",className:"warning centered relative z-[260]",icon:(0,i.jsx)(Ue.I,{source:ei.A}),copy:(0,i.jsx)("p",{children:e("maintenance.banner",{starttime:new Date(Date.parse(t.startingAt)).toLocaleString(n,{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}),endtime:new Date(Date.parse(t.endingAt)).toLocaleString(n,{year:"numeric",month:"numeric",day:"numeric",hour:"2-digit",minute:"2-digit"}),interpolation:{escapeValue:!1}})}),onClose:c})})},Pk=()=>{const{storedRequests:e,currentEntry:t}=(0,g.yv)(),{authenticated:n}=(0,c.As)(),a=(0,r.useRef)(),{t:o}=(0,k.Bd)(),s=(0,c.As)(),[l,d]=(0,r.useState)(!1),u=(0,Re.V)(),p=(0,fe.m)(),h=(0,Gr.U)()(),m=(0,ct.Ib)();(0,r.useEffect)((()=>{window.openCookie||(window.openCookie=()=>{u.set("consent","open"),p(location.pathname+"?"+u.toString())})}),[p,u]),(0,r.useEffect)((()=>{-1===document.cookie.indexOf("eksdCookieManager")&&d(!0)}),[]),(0,r.useEffect)((()=>{window.cyHistory=p}),[p]),(0,r.useEffect)((()=>(m&&ct.RV.assign({skipAnimation:!0}),()=>{ct.RV.assign({skipAnimation:!1})})),[m]);const f=(0,r.useCallback)((e=>{var t;null===(t=e.waiting)||void 0===t||t.postMessage({type:"SKIP_WAITING"}),Kw.oR.dismiss(a.current),window.location.reload()}),[]),v=(0,r.useCallback)((e=>{const t=e.detail,n=null===document||void 0===document?void 0:document.getElementById("root");n&&(n.setAttribute("aria-hidden","false"),n.setAttribute("data-aria-hidden","false")),a.current=Kw.oR.custom((()=>(0,i.jsx)($n.w,{copy:(0,i.jsxs)("div",{children:[(0,i.jsx)(N.$,{variant:"primary",onClick:()=>f(t),className:"float-right",children:o("newContent.button")}),(0,i.jsx)("p",{children:o("newContent.copy")}),(0,i.jsx)(ee.z,{to:te.J.version,className:"text-primary underline underline-offset-2",children:o("newContent.releaseInfoLinkText")})]}),icon:(0,i.jsx)(Ue.I,{source:hl.A,accessibilityLabel:o("ui.icons.info")}),className:"toast--full",role:"alert"})),{position:"top-center",duration:1/0})}),[f,o]),b=(0,r.useCallback)((n=>{if(e.length>0||t)return n.preventDefault(),n.returnValue="Are you sure you want to exit?",n.returnValue}),[e,t]);return(0,r.useEffect)((()=>(window.addEventListener("beforeunload",b),window.addEventListener("newVersion",v),()=>{window.removeEventListener("beforeunload",b),window.removeEventListener("newVersion",v)})),[b,v]),s.inErrorState?(0,i.jsxs)(he,{children:[(0,i.jsx)(Q,{title:o("errorPage.title"),titleSuffix:o("errorPage.titleSuffix")}),(0,i.jsx)("div",{children:(0,i.jsx)(N.$,{onClick:()=>location.reload(),children:o("errorPage.tryAgain")})})]}):(0,i.jsx)(i.Fragment,{children:(0,i.jsxs)(Pe.Dv,{children:[(0,i.jsx)(Lk,{}),(0,i.jsx)(Xw,{}),(0,i.jsxs)(oe,{id:"fullscreen-container",children:[(0,i.jsx)(Kw.l$,{containerStyle:{top:20,left:20,bottom:20,right:20}}),(0,i.jsxs)(on,{children:[(0,i.jsxs)(Le.mg,{children:[(0,i.jsx)("title",{children:o("meta.title")}),(0,i.jsx)("meta",{name:"description",content:o("meta.description")}),(0,i.jsx)("meta",{name:"keywords",content:o("meta.keywords")}),(0,i.jsx)("html",{lang:h})]}),(0,i.jsxs)("div",{className:"body-wrapper",children:[(0,i.jsx)(Ew,{}),(0,i.jsxs)("div",{className:"page-wrapper",children:[(0,i.jsx)(Md,{"data-cy":"PageHeader"}),(0,i.jsx)(Lw,{children:(0,i.jsx)(Lc,{children:(0,i.jsx)(Qx,{})})})]})]}),(0,i.jsx)(qw,{})]})]}),(0,i.jsx)(_w,{}),n&&(0,i.jsx)(Uw,{}),(0,i.jsx)(on,{children:(0,i.jsx)(Ak,{})}),(0,i.jsx)(Ck,{open:l,onClose:()=>d(!1)}),(0,i.jsx)(_k,{})]})})};var Dk=n(29262);const Mk={en:{translation:Ee},de:{translation:Se},es:{translation:Ie},fr:{translation:Ce},it:{translation:_e},eks:{translation:je}};rm.Ay.use(Dk.A).use(k.r9).init({resources:Mk,fallbackLng:"de"});var Ok=n(34772),Rk={};Rk.styleTagTransform=q(),Rk.setAttributes=B(),Rk.insert=R().bind(null,"head"),Rk.domAPI=M(),Rk.insertStyleElement=F();P()(Ok.A,Rk);Ok.A&&Ok.A.locals&&Ok.A.locals;n(34009);(0,it.a)({eventType:"default"});const zk=(e,t)=>{console.log(t),console.log(e)};let Bk=null;function Uk(e){const t=document.getElementById("root");Bk||(Bk=(0,a.createRoot)(t)),Bk.render((0,i.jsx)(o.s,{value:e,children:(0,i.jsx)(j.tH,{FallbackComponent:Ne,onError:zk,children:(0,i.jsx)(Le.vd,{children:(0,i.jsx)(y,{children:(0,i.jsx)(l.f,{children:(0,i.jsx)(jy,{children:(0,i.jsx)(c.C8,{children:(0,i.jsx)(r.StrictMode,{children:(0,i.jsx)(d.e,{children:(0,i.jsx)(Wh,{children:(0,i.jsx)(p,{children:(0,i.jsx)(m.E,{children:(0,i.jsx)(s.a,{children:(0,i.jsx)(w.$,{children:(0,i.jsx)(h.c1,{children:(0,i.jsx)(g.sO,{children:(0,i.jsx)(x.m,{children:(0,i.jsx)(_,{children:(0,i.jsxs)(j.tH,{FallbackComponent:ve,onError:zk,children:[(0,i.jsx)(ye,{}),(0,i.jsx)(Pk,{})]})})})})})})})})})})})})})})})})})})}))}function Fk(e){const t=new CustomEvent("newVersion",{detail:e});window.dispatchEvent(t)}function Vk(e){const t=new URLSearchParams(window.location.search).get("brand");if(t&&"delta"===t){const e=document.head,t=document.createElement("link");t.type="text/css",t.rel="stylesheet",t.href="./delta.css",e.appendChild(t)}
2e.isProduction&&"serviceWorker"in navigator&&navigator.serviceWorker.register(`${e.basename.absoluteBasename}/service-worker.js`).then((t=>{t.installing||t.waiting&&(t.active?Fk(t):t.waiting.addEventListener("statechange",(t=>{"activated"===t.target.state&&Uk(e)}))),t.addEventListener("updatefound",(()=>{const n=t.installing;n.onstatechange=()=>{"activated"===n.state&&Uk(e),"installed"===n.state&&t.waiting&&t.active&&Fk(t)}}))})).catch((e=>{console.error("Error during service worker registration:",e),Yw.A.post("errorlog",{browserInfo:{agent:navigator.userAgent,language:navigator.language},message:`Error during service worker registration: ${e}`})})),Uk(e)}},41695(e,t,n){e.exports=n.p+"assets/Lato-Bold.636be8de934918e38ed9.ttf"},94694(e,t,n){e.exports=n.p+"assets/Lato-Regular.9d883d540ee2b4de8024.ttf"},6547(e,t,n){e.exports=n.p+"assets/Lato-Thin.5a60dde25d817751d590.ttf"},52739(e,t,n){e.exports=n.p+"15447d0854dd216c3bcf.cur"},25609(e,t,n){e.exports=n.p+"febb65c11123c8c33fab.cur"},4533(e,t,n){e.exports=n.p+"9352f7c63f674ea9f147.cur"},31005(e,t,n){e.exports=n.p+"406bfd5cee191eb9f640.cur"},89304(e,t,n){e.exports=n.p+"7af6ea3036fa3eca03b0.cur"},94312(e,t,n){e.exports=n.p+"d4b872369a46a31c0237.cur"}}]);

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.