@clickview/lite 0.0.63-dev.0 → 0.0.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{lite-app-f3be075357.css → lite-app-5617dac739.css} +1 -1
- package/dist/scripts/{8-9a21dd643e-lite.chunk.js → 8-53e0fa1f62-lite.chunk.js} +1 -1
- package/dist/scripts/{bundle-c146d3ed31.min.js → bundle-c9265f455e.min.js} +2 -2
- package/package.json +2 -2
- /package/dist/scripts/{0-fbe4086494-lite.chunk.js → 0-50962ce391-lite.chunk.js} +0 -0
- /package/dist/scripts/{10-81ea19a631-lite.chunk.js → 10-05cc3c295f-lite.chunk.js} +0 -0
- /package/dist/scripts/{100-7d4054c5e7-lite.chunk.js → 100-c1fdd48bbc-lite.chunk.js} +0 -0
- /package/dist/scripts/{101-3da9ba824b-lite.chunk.js → 101-da5a7adca2-lite.chunk.js} +0 -0
- /package/dist/scripts/{102-70507a7609-lite.chunk.js → 102-cf16896e3f-lite.chunk.js} +0 -0
- /package/dist/scripts/{107-c7724631b4-lite.chunk.js → 107-bc64b1e311-lite.chunk.js} +0 -0
- /package/dist/scripts/{109-9ca4ed3669-lite.chunk.js → 109-9bdffb9f02-lite.chunk.js} +0 -0
- /package/dist/scripts/{11-1f6cc3ef34-lite.chunk.js → 11-11867f4707-lite.chunk.js} +0 -0
- /package/dist/scripts/{110-a3782aa05f-lite.chunk.js → 110-cb84accca9-lite.chunk.js} +0 -0
- /package/dist/scripts/{112-071ee75a20-lite.chunk.js → 112-4f616469d7-lite.chunk.js} +0 -0
- /package/dist/scripts/{113-b48477d128-lite.chunk.js → 113-c97df6c7e6-lite.chunk.js} +0 -0
- /package/dist/scripts/{115-76cdc1d07c-lite.chunk.js → 115-d49c99d7a9-lite.chunk.js} +0 -0
- /package/dist/scripts/{12-8e9f7f9a52-lite.chunk.js → 12-408edf9a69-lite.chunk.js} +0 -0
- /package/dist/scripts/{120-31859efd2e-lite.chunk.js → 120-8bbddd1bab-lite.chunk.js} +0 -0
- /package/dist/scripts/{121-4a74341493-lite.chunk.js → 121-cec74efc19-lite.chunk.js} +0 -0
- /package/dist/scripts/{122-749d3e3f52-lite.chunk.js → 122-06cb38b04d-lite.chunk.js} +0 -0
- /package/dist/scripts/{123-b6ccb6185f-lite.chunk.js → 123-662a199bdd-lite.chunk.js} +0 -0
- /package/dist/scripts/{124-863e554d55-lite.chunk.js → 124-d1df390a59-lite.chunk.js} +0 -0
- /package/dist/scripts/{125-e0a349eb5f-lite.chunk.js → 125-39421786a3-lite.chunk.js} +0 -0
- /package/dist/scripts/{126-b69057be6b-lite.chunk.js → 126-ef710c7368-lite.chunk.js} +0 -0
- /package/dist/scripts/{127-512a15812c-lite.chunk.js → 127-ccc6237481-lite.chunk.js} +0 -0
- /package/dist/scripts/{128-abe3b41c9d-lite.chunk.js → 128-477837985b-lite.chunk.js} +0 -0
- /package/dist/scripts/{135-fe81079d1c-lite.chunk.js → 135-c5834d558b-lite.chunk.js} +0 -0
- /package/dist/scripts/{138-5a199221e8-lite.chunk.js → 138-50882b0f78-lite.chunk.js} +0 -0
- /package/dist/scripts/{139-76f9040826-lite.chunk.js → 139-b33d638600-lite.chunk.js} +0 -0
- /package/dist/scripts/{143-a2e110c986-lite.chunk.js → 143-c0fa1fcdb1-lite.chunk.js} +0 -0
- /package/dist/scripts/{144-ce79990da4-lite.chunk.js → 144-bde36410f0-lite.chunk.js} +0 -0
- /package/dist/scripts/{15-ab9ec0e144-lite.chunk.js → 15-43c8547460-lite.chunk.js} +0 -0
- /package/dist/scripts/{156-b8ece43cf1-lite.chunk.js → 156-539fa712a4-lite.chunk.js} +0 -0
- /package/dist/scripts/{159-84172af586-lite.chunk.js → 159-308b801be3-lite.chunk.js} +0 -0
- /package/dist/scripts/{16-5404187899-lite.chunk.js → 16-3bf018df63-lite.chunk.js} +0 -0
- /package/dist/scripts/{168-a1214e72ab-lite.chunk.js → 168-226251ec4c-lite.chunk.js} +0 -0
- /package/dist/scripts/{17-f275b0467b-lite.chunk.js → 17-71a0793a50-lite.chunk.js} +0 -0
- /package/dist/scripts/{18-d31ee6522f-lite.chunk.js → 18-775d4b286f-lite.chunk.js} +0 -0
- /package/dist/scripts/{19-f13ba30f54-lite.chunk.js → 19-0f9bd5e3d7-lite.chunk.js} +0 -0
- /package/dist/scripts/{20-f0d95260e1-lite.chunk.js → 20-abdf1d2e34-lite.chunk.js} +0 -0
- /package/dist/scripts/{21-7a395a9970-lite.chunk.js → 21-7264628637-lite.chunk.js} +0 -0
- /package/dist/scripts/{22-edd9712a7e-lite.chunk.js → 22-6600b2f24b-lite.chunk.js} +0 -0
- /package/dist/scripts/{23-0320100884-lite.chunk.js → 23-721ed4d3b3-lite.chunk.js} +0 -0
- /package/dist/scripts/{24-d496c8ffa7-lite.chunk.js → 24-49bdd92321-lite.chunk.js} +0 -0
- /package/dist/scripts/{25-56d99cb444-lite.chunk.js → 25-ea4c995c40-lite.chunk.js} +0 -0
- /package/dist/scripts/{26-1fe7c0baaa-lite.chunk.js → 26-58d84c903c-lite.chunk.js} +0 -0
- /package/dist/scripts/{27-2f3baee3ff-lite.chunk.js → 27-af203864fe-lite.chunk.js} +0 -0
- /package/dist/scripts/{28-94c528ebaa-lite.chunk.js → 28-5ffd1e78c7-lite.chunk.js} +0 -0
- /package/dist/scripts/{32-65e7a4fd06-lite.chunk.js → 32-ff92746cef-lite.chunk.js} +0 -0
- /package/dist/scripts/{33-818f750709-lite.chunk.js → 33-d593571dc5-lite.chunk.js} +0 -0
- /package/dist/scripts/{35-fdce3f4d72-lite.chunk.js → 35-3334ef94b9-lite.chunk.js} +0 -0
- /package/dist/scripts/{36-577214a67b-lite.chunk.js → 36-5683c55555-lite.chunk.js} +0 -0
- /package/dist/scripts/{37-0926400a36-lite.chunk.js → 37-016e9c6b68-lite.chunk.js} +0 -0
- /package/dist/scripts/{38-8c253a971c-lite.chunk.js → 38-9c74d97e83-lite.chunk.js} +0 -0
- /package/dist/scripts/{39-5f005080b8-lite.chunk.js → 39-9bed53e087-lite.chunk.js} +0 -0
- /package/dist/scripts/{40-edae7cf50a-lite.chunk.js → 40-e4ef1f4352-lite.chunk.js} +0 -0
- /package/dist/scripts/{41-78020d81d2-lite.chunk.js → 41-cc87bec4d6-lite.chunk.js} +0 -0
- /package/dist/scripts/{42-1b84f4a9d6-lite.chunk.js → 42-706f2695ed-lite.chunk.js} +0 -0
- /package/dist/scripts/{43-e8cf71d1fe-lite.chunk.js → 43-79b399bd8d-lite.chunk.js} +0 -0
- /package/dist/scripts/{44-ba5badbe44-lite.chunk.js → 44-c7fc4cf8fa-lite.chunk.js} +0 -0
- /package/dist/scripts/{45-761c83e053-lite.chunk.js → 45-0da9b574a0-lite.chunk.js} +0 -0
- /package/dist/scripts/{46-2237d5fc7a-lite.chunk.js → 46-1efbff3e15-lite.chunk.js} +0 -0
- /package/dist/scripts/{47-c76dc1fbe8-lite.chunk.js → 47-6fea6edb2a-lite.chunk.js} +0 -0
- /package/dist/scripts/{48-1008a6662f-lite.chunk.js → 48-e1c7bcb249-lite.chunk.js} +0 -0
- /package/dist/scripts/{49-5416c81155-lite.chunk.js → 49-9404b5c9d6-lite.chunk.js} +0 -0
- /package/dist/scripts/{5-87427966ae-lite.chunk.js → 5-7f77651d01-lite.chunk.js} +0 -0
- /package/dist/scripts/{50-eeb6713c82-lite.chunk.js → 50-f391b51652-lite.chunk.js} +0 -0
- /package/dist/scripts/{51-14be7f6022-lite.chunk.js → 51-f251c418b7-lite.chunk.js} +0 -0
- /package/dist/scripts/{52-7b23810fd2-lite.chunk.js → 52-c23a514c0d-lite.chunk.js} +0 -0
- /package/dist/scripts/{55-523a755cdb-lite.chunk.js → 55-d3791728cf-lite.chunk.js} +0 -0
- /package/dist/scripts/{56-e516547aa8-lite.chunk.js → 56-2bab3810f3-lite.chunk.js} +0 -0
- /package/dist/scripts/{57-435c57bbc9-lite.chunk.js → 57-e69b5eda76-lite.chunk.js} +0 -0
- /package/dist/scripts/{58-cd39efc5da-lite.chunk.js → 58-af87f917c6-lite.chunk.js} +0 -0
- /package/dist/scripts/{59-d9b0518681-lite.chunk.js → 59-38870470d5-lite.chunk.js} +0 -0
- /package/dist/scripts/{6-345f0b25c1-lite.chunk.js → 6-aa2b69c7db-lite.chunk.js} +0 -0
- /package/dist/scripts/{60-170efad487-lite.chunk.js → 60-caaf58f7e4-lite.chunk.js} +0 -0
- /package/dist/scripts/{61-b80e21655a-lite.chunk.js → 61-e522a3fe4d-lite.chunk.js} +0 -0
- /package/dist/scripts/{63-c444f2e6bd-lite.chunk.js → 63-369bc8d14d-lite.chunk.js} +0 -0
- /package/dist/scripts/{65-d6ac9c8084-lite.chunk.js → 65-2307dca7b3-lite.chunk.js} +0 -0
- /package/dist/scripts/{66-2ca044d08f-lite.chunk.js → 66-468b1c6937-lite.chunk.js} +0 -0
- /package/dist/scripts/{67-c71a8d0ead-lite.chunk.js → 67-2826b3c8a2-lite.chunk.js} +0 -0
- /package/dist/scripts/{68-84786328a7-lite.chunk.js → 68-977dc14a19-lite.chunk.js} +0 -0
- /package/dist/scripts/{69-e8dfad2ee4-lite.chunk.js → 69-a4808a0624-lite.chunk.js} +0 -0
- /package/dist/scripts/{7-53f2ae0c91-lite.chunk.js → 7-34f4c5a43a-lite.chunk.js} +0 -0
- /package/dist/scripts/{70-caeb978dd6-lite.chunk.js → 70-4ea87b5283-lite.chunk.js} +0 -0
- /package/dist/scripts/{71-afbfa18696-lite.chunk.js → 71-f3fcee25f1-lite.chunk.js} +0 -0
- /package/dist/scripts/{72-546a86f35d-lite.chunk.js → 72-290184d42e-lite.chunk.js} +0 -0
- /package/dist/scripts/{74-3aa60b8347-lite.chunk.js → 74-23459077fc-lite.chunk.js} +0 -0
- /package/dist/scripts/{75-287baf4516-lite.chunk.js → 75-e7169c217e-lite.chunk.js} +0 -0
- /package/dist/scripts/{76-9dcf2bbc62-lite.chunk.js → 76-8fa1288375-lite.chunk.js} +0 -0
- /package/dist/scripts/{77-8db206ca8b-lite.chunk.js → 77-2e545ff349-lite.chunk.js} +0 -0
- /package/dist/scripts/{78-b4bf1addcf-lite.chunk.js → 78-76bfedc6a1-lite.chunk.js} +0 -0
- /package/dist/scripts/{80-5bd0451d88-lite.chunk.js → 80-b4c64ea0c0-lite.chunk.js} +0 -0
- /package/dist/scripts/{81-9ab39a87d9-lite.chunk.js → 81-a484e53624-lite.chunk.js} +0 -0
- /package/dist/scripts/{82-e7c680cd35-lite.chunk.js → 82-4e533db0f9-lite.chunk.js} +0 -0
- /package/dist/scripts/{83-30ad3d1188-lite.chunk.js → 83-0eef66bbf8-lite.chunk.js} +0 -0
- /package/dist/scripts/{84-6b8d1af5f2-lite.chunk.js → 84-ba280bd11c-lite.chunk.js} +0 -0
- /package/dist/scripts/{86-87a7f5e1a7-lite.chunk.js → 86-a40a01ab9b-lite.chunk.js} +0 -0
- /package/dist/scripts/{87-79318a25ae-lite.chunk.js → 87-92dec1fe91-lite.chunk.js} +0 -0
- /package/dist/scripts/{88-d86c710225-lite.chunk.js → 88-3b76944fba-lite.chunk.js} +0 -0
- /package/dist/scripts/{89-8b7c67405f-lite.chunk.js → 89-3812ce0855-lite.chunk.js} +0 -0
- /package/dist/scripts/{9-7f0d959bbe-lite.chunk.js → 9-0100d6de34-lite.chunk.js} +0 -0
- /package/dist/scripts/{90-e2de08c954-lite.chunk.js → 90-921d89f016-lite.chunk.js} +0 -0
- /package/dist/scripts/{91-397090b2d5-lite.chunk.js → 91-e4aae9db7a-lite.chunk.js} +0 -0
- /package/dist/scripts/{92-9ef46c2e8a-lite.chunk.js → 92-8ee5a32d47-lite.chunk.js} +0 -0
- /package/dist/scripts/{93-0c88457335-lite.chunk.js → 93-647af71f79-lite.chunk.js} +0 -0
- /package/dist/scripts/{94-2b6bc00c6d-lite.chunk.js → 94-01511f5900-lite.chunk.js} +0 -0
- /package/dist/scripts/{95-0fc875ba9a-lite.chunk.js → 95-3eaec9b112-lite.chunk.js} +0 -0
- /package/dist/scripts/{96-5c29f42bf3-lite.chunk.js → 96-a787c5307a-lite.chunk.js} +0 -0
- /package/dist/scripts/{97-4088b225d5-lite.chunk.js → 97-df9ee903b8-lite.chunk.js} +0 -0
- /package/dist/scripts/{98-c46a55486f-lite.chunk.js → 98-aa65094047-lite.chunk.js} +0 -0
- /package/dist/scripts/{99-6d67188810-lite.chunk.js → 99-b6a22f6b74-lite.chunk.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("moment"),require("Marionette"),require("ReactRedux"),require("ReactDOM"),require("Handlebars"),require("FontAwesome"),require("ReactTransitionGroup"),require("ReactCustomScrollbars"),require("Redux"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),require("ReactIntersectionObserver"),require("SortableHOC"),require("ImmersiveReader"),require("Autosuggest"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","ReactBootstrap","moment","Marionette","ReactRedux","ReactDOM","Handlebars","FontAwesome","ReactTransitionGroup","ReactCustomScrollbars","Redux","reactDropzone","Polyglot","DOMPurify","ReactIntersectionObserver","SortableHOC","ImmersiveReader","Autosuggest","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("moment"),require("Marionette"),require("ReactRedux"),require("ReactDOM"),require("Handlebars"),require("FontAwesome"),require("ReactTransitionGroup"),require("ReactCustomScrollbars"),require("Redux"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),require("ReactIntersectionObserver"),require("SortableHOC"),require("ImmersiveReader"),require("Autosuggest"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.ReactBootstrap,e.moment,e.Marionette,e.ReactRedux,e.ReactDOM,e.Handlebars,e.FontAwesome,e.ReactTransitionGroup,e.ReactCustomScrollbars,e.Redux,e.reactDropzone,e.Polyglot,e.DOMPurify,e.ReactIntersectionObserver,e.SortableHOC,e.ImmersiveReader,e.Autosuggest,e.marked)}(window,(function(e,t,n,r,i,o,a,s,c,u,l,f,p,d,h,y,m,v,g,b,w){return function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&c.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);c.length;)c.shift()()}var n={},r={30:0},i={30:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,3:1,4:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,83:1,85:1,87:1,93:1,94:1,95:1,100:1,102:1,103:1,104:1,107:1,108:1,110:1,111:1,112:1,113:1,114:1,115:1,116:1,117:1,118:1,119:1,124:1,125:1,126:1,127:1,133:1,134:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var i="css/"+e+"-lite-"+{0:"12ab1b2117",1:"31d6cfe0d1",2:"31d6cfe0d1",3:"e389fa3836",4:"6275209312",5:"31d6cfe0d1",6:"6004e0a317",7:"c3e1dbd605",8:"bc5b087c76",9:"cbd9c15409",10:"fbeab97a68",11:"9c5dc63a77",12:"10b57f05e6",13:"31d6cfe0d1",14:"31d6cfe0d1",15:"ec1a5f8d9a",16:"c6322536aa",17:"9a7efd5b02",18:"b11840817b",19:"4a8376d820",20:"28cf9b0c3c",21:"313bd12cbc",22:"15769122b1",23:"9704770406",24:"239fc9777b",25:"3bd36e77bd",26:"c352c306bb",27:"31d6cfe0d1",28:"31d6cfe0d1",29:"31d6cfe0d1",32:"278dbb73fc",33:"278dbb73fc",34:"fb9eae4d42",35:"1dbcf32c1c",36:"d3545ad296",37:"d3545ad296",38:"bd3fd59033",39:"fac641a0a4",40:"43fe16d571",41:"43fe16d571",42:"492d27a0fc",43:"9a09bda26b",44:"20ec74b789",45:"4abdb16782",46:"49ee1294f0",47:"e8745e9a52",48:"2d33672616",49:"3274efb40b",50:"cc8a3d3d3a",51:"4a8376d820",52:"a1bdf62146",53:"697312932c",54:"7ead5d197b",55:"60fcc5292f",56:"690feb452d",57:"74c77d0cbd",58:"4be057dddd",59:"9a94c2bfcd",60:"2ee776294c",61:"aae95b8739",62:"31d6cfe0d1",63:"1696cbd6bd",64:"6a27216e4e",65:"eae2a4d798",66:"e957c3cfa0",67:"fb877ba4eb",68:"c7c532a2f6",69:"9ea4b2ab88",70:"3022a7f655",71:"d6cd54b11b",72:"a7bdb9e6a2",73:"811866a0e6",74:"032d7c5b68",75:"032d7c5b68",76:"4068292bca",77:"794d3729e3",78:"c08e97ad22",79:"e31b2b8630",80:"f429a540cb",81:"31d6cfe0d1",82:"31d6cfe0d1",83:"b4c6580112",84:"31d6cfe0d1",85:"9e510e8bc1",86:"31d6cfe0d1",87:"4ed16e028d",88:"31d6cfe0d1",89:"31d6cfe0d1",90:"31d6cfe0d1",91:"31d6cfe0d1",92:"31d6cfe0d1",93:"f476beb875",94:"1e90b333ab",95:"602832f68a",96:"31d6cfe0d1",97:"31d6cfe0d1",98:"31d6cfe0d1",99:"31d6cfe0d1",100:"e8d0ed4921",101:"31d6cfe0d1",102:"7ab95ddac2",103:"42a5dcfa34",104:"4a91cb7ba9",105:"31d6cfe0d1",106:"31d6cfe0d1",107:"c7c532a2f6",108:"30208db4b8",109:"31d6cfe0d1",110:"f476beb875",111:"d286b282d6",112:"40eedf96d7",113:"4ea4ab4f82",114:"c5e12d3f1d",115:"6e036f7110",116:"efd9c7cfc9",117:"bca705add4",118:"30208db4b8",119:"30208db4b8",120:"31d6cfe0d1",121:"31d6cfe0d1",122:"31d6cfe0d1",123:"31d6cfe0d1",124:"14218ac613",125:"5d9ea175a9",126:"8fc51c67f9",127:"fdc3ceff80",128:"31d6cfe0d1",129:"31d6cfe0d1",130:"31d6cfe0d1",131:"31d6cfe0d1",132:"31d6cfe0d1",133:"859d0b7430",134:"a199ee0f72",135:"31d6cfe0d1",136:"31d6cfe0d1",137:"31d6cfe0d1",138:"31d6cfe0d1",139:"31d6cfe0d1",140:"31d6cfe0d1",141:"31d6cfe0d1",142:"31d6cfe0d1",143:"31d6cfe0d1",144:"31d6cfe0d1",145:"31d6cfe0d1",146:"31d6cfe0d1",147:"31d6cfe0d1",148:"31d6cfe0d1",149:"31d6cfe0d1",150:"31d6cfe0d1",151:"31d6cfe0d1",152:"31d6cfe0d1",153:"31d6cfe0d1",154:"31d6cfe0d1",155:"31d6cfe0d1",156:"31d6cfe0d1",157:"31d6cfe0d1",158:"31d6cfe0d1",159:"31d6cfe0d1",160:"31d6cfe0d1",161:"31d6cfe0d1",162:"31d6cfe0d1",163:"31d6cfe0d1",164:"31d6cfe0d1",165:"31d6cfe0d1",166:"31d6cfe0d1",167:"31d6cfe0d1",168:"31d6cfe0d1",169:"31d6cfe0d1",170:"31d6cfe0d1",171:"31d6cfe0d1",172:"31d6cfe0d1"}[e]+".chunk.css",a=o.p+i,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=(f=s[c]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(u===i||u===a))return t()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){var f;if((u=(f=l[c]).getAttribute("data-href"))===i||u===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var i=t&&t.target&&t.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=i,delete r[e],p.parentNode.removeChild(p),n(o)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=function(e){return o.p+"scripts/"+e+"-"+{0:"fbe4086494",1:"e5e5ff7ac4",2:"f7e195dfd6",3:"5016654e6b",4:"129184b3b6",5:"87427966ae",6:"345f0b25c1",7:"53f2ae0c91",8:"9a21dd643e",9:"7f0d959bbe",10:"81ea19a631",11:"1f6cc3ef34",12:"8e9f7f9a52",13:"ea26ce3fee",14:"a33e1a6394",15:"ab9ec0e144",16:"5404187899",17:"f275b0467b",18:"d31ee6522f",19:"f13ba30f54",20:"f0d95260e1",21:"7a395a9970",22:"edd9712a7e",23:"0320100884",24:"d496c8ffa7",25:"56d99cb444",26:"1fe7c0baaa",27:"2f3baee3ff",28:"94c528ebaa",29:"d555844800",32:"65e7a4fd06",33:"818f750709",34:"15d72229a7",35:"fdce3f4d72",36:"577214a67b",37:"0926400a36",38:"8c253a971c",39:"5f005080b8",40:"edae7cf50a",41:"78020d81d2",42:"1b84f4a9d6",43:"e8cf71d1fe",44:"ba5badbe44",45:"761c83e053",46:"2237d5fc7a",47:"c76dc1fbe8",48:"1008a6662f",49:"5416c81155",50:"eeb6713c82",51:"14be7f6022",52:"7b23810fd2",53:"b2a3c117af",54:"0899c48990",55:"523a755cdb",56:"e516547aa8",57:"435c57bbc9",58:"cd39efc5da",59:"d9b0518681",60:"170efad487",61:"b80e21655a",62:"31e4c7a10e",63:"c444f2e6bd",64:"651b4dcb42",65:"d6ac9c8084",66:"2ca044d08f",67:"c71a8d0ead",68:"84786328a7",69:"e8dfad2ee4",70:"caeb978dd6",71:"afbfa18696",72:"546a86f35d",73:"4bcefda766",74:"3aa60b8347",75:"287baf4516",76:"9dcf2bbc62",77:"8db206ca8b",78:"b4bf1addcf",79:"b79e3c5cba",80:"5bd0451d88",81:"9ab39a87d9",82:"e7c680cd35",83:"30ad3d1188",84:"6b8d1af5f2",85:"cdcd4c5333",86:"87a7f5e1a7",87:"79318a25ae",88:"d86c710225",89:"8b7c67405f",90:"e2de08c954",91:"397090b2d5",92:"9ef46c2e8a",93:"0c88457335",94:"2b6bc00c6d",95:"0fc875ba9a",96:"5c29f42bf3",97:"4088b225d5",98:"c46a55486f",99:"6d67188810",100:"7d4054c5e7",101:"3da9ba824b",102:"70507a7609",103:"f58128357d",104:"1349adaf5e",105:"530f37acfc",106:"35bbdb1c22",107:"c7724631b4",108:"ff6c3150d6",109:"9ca4ed3669",110:"a3782aa05f",111:"9fe2f9b83b",112:"071ee75a20",113:"b48477d128",114:"47d92eaf49",115:"76cdc1d07c",116:"40507d4be2",117:"91c2205bd4",118:"f29c23a450",119:"a5597b7a28",120:"31859efd2e",121:"4a74341493",122:"749d3e3f52",123:"b6ccb6185f",124:"863e554d55",125:"e0a349eb5f",126:"b69057be6b",127:"512a15812c",128:"abe3b41c9d",129:"097ee2bc11",130:"2e43b33453",131:"4787f695f8",132:"24cd52665d",133:"d0568adf11",134:"72511974f3",135:"fe81079d1c",136:"28ad73ce03",137:"d7cdb0ef4e",138:"5a199221e8",139:"76f9040826",140:"24b8389c5c",141:"5c02052826",142:"7a62aeb762",143:"a2e110c986",144:"ce79990da4",145:"6ccbe3d4a8",146:"af3e61797a",147:"810a01cf57",148:"9d8fbf3b0f",149:"e47da4e703",150:"8bf527cbca",151:"1024076cb3",152:"a33c6e9769",153:"eabc0b8771",154:"7ee887f6a2",155:"85ebf7f1e9",156:"b8ece43cf1",157:"d8f243b3d2",158:"ea1981b649",159:"84172af586",160:"6025f9d83d",161:"646ac15efa",162:"9284a277a3",163:"c899886f11",164:"55a4ece76f",165:"2e2a5e8881",166:"fcb85b2346",167:"f05cd06076",168:"a1214e72ab",169:"3ff597f303",170:"d320f70e7a",171:"afc8df0b59",172:"db4493fe29"}[e]+"-lite.chunk.js"}(e);var u=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(l);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}i[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var u=s;return o(o.s=1070)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(62);n.d(t,"AssocDescriptor",(function(){return r.a})),n.d(t,"ClickDescriptor",(function(){return r.b})),n.d(t,"EmailDescriptor",(function(){return r.c})),n.d(t,"EntityType",(function(){return r.d})),n.d(t,"EventDefaultValue",(function(){return r.e})),n.d(t,"EventVersion",(function(){return r.f})),n.d(t,"FilterDescriptor",(function(){return r.g})),n.d(t,"InteractionType",(function(){return r.h})),n.d(t,"InteractionTypeDescriptor",(function(){return r.i})),n.d(t,"InteractiveSessionDescriptor",(function(){return r.j})),n.d(t,"LocationContext",(function(){return r.k})),n.d(t,"OperationDescriptor",(function(){return r.l})),n.d(t,"PlayerDescriptor",(function(){return r.m})),n.d(t,"PublishDescriptor",(function(){return r.n})),n.d(t,"SearchQueryType",(function(){return r.o})),n.d(t,"ShareDescriptors",(function(){return r.p})),n.d(t,"ToggleDescriptor",(function(){return r.q})),n.d(t,"UpgradeBannerDescriptors",(function(){return r.r})),n.d(t,"UserAction",(function(){return r.s})),n.d(t,"VerifyEmailDescriptor",(function(){return r.t})),n.d(t,"VideoActionDescriptor",(function(){return r.u})),n.d(t,"WorkflowPhase",(function(){return r.v}));n(313),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451)},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(14),a=n.n(o),s=n(179),c=n.n(s),u=n(25),l=n.n(u),f=(n(806),n(807),n(16)),p=n.n(f),d=n(772),h=n.n(d),y=n(32),m=n.n(y),v=n(370),g=n.n(v),b=n(371),w=n.n(b),_=n(773),S=n.n(_),C=n(774),T=n.n(C),E=n(230),O=n.n(E),k=n(325),P=n.n(k),A=n(319),I=n.n(A),x=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return p()(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(P.a),L=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},R=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}p()(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((function(t,n){var r=n(e);return r===e?t:t.concat([r])}),[e]).forEach((function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var o=L(t[1]);if(o.URI&&(n.uri=o.URI),o.BYTERANGE){var a=o.BYTERANGE.split("@"),s=a[0],c=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),c&&(n.byterange.offset=parseInt(c,10))}}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=L(t[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),l={};u[0]&&(l.width=parseInt(u[0],10)),u[1]&&(l.height=parseInt(u[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=L(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=L(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=L(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,o=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push((function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:o}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(P.a),j=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new x,t.parseStream=new R,t.lineStream.pipe(t.parseStream);var n,r,i=l()(t),o=[],a={},s=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},f=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var p=0;return t.parseStream.on("data",(function(e){var t,l;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=p)),"offset"in e&&(a.byterange=t,t.offset=e.offset),p=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:I()(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,f=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes?(a.attributes||(a.attributes={}),c()(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(l={default:/yes/i.test(e.attributes.DEFAULT)}).default?l.autoselect=!0:l.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(l.language=e.attributes.LANGUAGE),e.attributes.URI&&(l.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(l.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(l.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(l.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=l}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){f+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data}}[e.tagType]||s).call(i)},uri:function(){a.uri=e.uri,o.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=f,n&&(a.map=n),a={}},comment:function(){},custom:function(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)})),t}p()(t,e);var n=t.prototype;return n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(P.a),N=n(372),D=n(196),B=n.n(D),U=n(775),M=function(e){return!!e&&"object"==typeof e},V=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return"object"!=typeof n||Object.keys(n).forEach((function(r){Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=t[r].concat(n[r]):M(t[r])&&M(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]})),t}),{})},F=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},H=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},z="INVALID_NUMBER_OF_PERIOD",W="DASH_EMPTY_MANIFEST",q="DASH_INVALID_XML",G="NO_BASE_URL",K="SEGMENT_TIME_UNSPECIFIED",Y="UNSUPPORTED_UTC_TIMING_SCHEME",X=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,i=void 0===r?"":r,o=e.range,a=void 0===o?"":o,s=e.indexRange,c=void 0===s?"":s,u={uri:i,resolvedUri:O()(n||"",i)};if(a||c){var l=(a||c).split("-"),f=parseInt(l[0],10),p=parseInt(l[1],10);u.byterange={length:p-f+1,offset:f}}return u},Q={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration;return{start:0,end:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,o=void 0===i?1:i,a=e.duration,s=e.start,c=void 0===s?0:s,u=e.minimumUpdatePeriod,l=void 0===u?0:u,f=e.timeShiftBufferDepth,p=void 0===f?1/0:f,d=(t+n)/1e3,h=r+c,y=d+l-h,m=Math.ceil(y*o/a),v=Math.floor((d-h-p)*o/a),g=Math.floor((d-h)*o/a);return{start:Math.max(0,v),end:Math.min(m,g)}}},$=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.sourceDuration,s=Q[n](e),c=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}(s.start,s.end).map(function(e){return function(t,n){var r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.periodIndex,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:r/o,timeline:a,time:n*r}}}(e));if("static"===n){var u=c.length-1;c[u].duration=a-r/o*u}return c},Z=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,o=e.indexRange,a=void 0===o?"":o,s=e.duration;if(!t)throw new Error(G);var c=X({baseUrl:t,source:r.sourceURL,range:r.range}),u=X({baseUrl:t,source:t,indexRange:a});if(u.map=c,s){var l=$(e);l.length&&(u.duration=l[0].duration,u.timeline=l[0].timeline)}else i&&(u.duration=i,u.timeline=0);return u.number=0,[u]},J=function(e,t,n){for(var r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,s=a.offset+a.length,c=t.timescale,u=t.references.filter((function(e){return 1!==e.referenceType})),l=[],f=s+t.firstOffset,p=0;p<u.length;p++){var d=t.references[p],h=d.referencedSize,y=d.subsegmentDuration,m=Z({baseUrl:n,timescale:c,timeline:o,periodIndex:o,duration:y,sourceDuration:i,indexRange:f+"-"+(f+h-1)})[0];r&&(m.map=r),l.push(m),f+=h}return e.segments=l,e},ee=function(e){var t;return(t=e.reduce((function(e,t){var n,r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[r].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):e[r]=t,e}),{}),Object.keys(t).map((function(e){return t[e]}))).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments,n="discontinuity",t.reduce((function(e,t,r){return t[n]&&e.push(r),e}),[])),e}))},te=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e){var r=e[n];if(r.sidx){var i=r.sidx.uri+"-"+(a=r.sidx.byterange,s=void 0,s=a.offset+a.length-1,a.offset+"-"+s),o=t[i]&&t[i].sidx;r.sidx&&o&&J(r,o,r.sidx.resolvedUri)}}var a,s;return e},ne=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},re=function(e){var t,n=e.attributes,r=e.segments;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var i=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(i.CODECS=n.codecs),{attributes:i,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1}},ie=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},oe=function(e,t,n){var r;if(void 0===n&&(n={}),!e.length)return{};var i=e[0].attributes,o=i.sourceDuration,a=i.type,s=void 0===a?"static":a,c=i.suggestedPresentationDelay,u=i.minimumUpdatePeriod,l=ee(e.filter((function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType}))).map(ie),f=ee(e.filter((function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType}))),p=e.filter((function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType})),d={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(r={AUDIO:{},VIDEO:{}},r["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:o,playlists:te(l,n)};return u>=0&&(d.minimumUpdatePeriod=1e3*u),t&&(d.locations=t),"dynamic"===s&&(d.suggestedPresentationDelay=c),f.length&&(d.mediaGroups.AUDIO.audio=function(e,t){var n;void 0===t&&(t={});var r=e.reduce((function(e,r){var i=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",a="main";if(o){var s=i?" ("+i+")":"";a=""+r.attributes.lang+s}return e[a]&&e[a].playlists[0].attributes.BANDWIDTH>r.attributes.bandwidth||(e[a]={language:o,autoselect:!0,default:"main"===i,playlists:te([ne(r)],t),uri:""},void 0===n&&"main"===i&&((n=r).default=!0)),e}),{});n||(r[Object.keys(r)[0]].default=!0);return r}(f,n)),p.length&&(d.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var r=n.attributes.lang||"text";return e[r]||(e[r]={language:r,default:!1,autoselect:!1,playlists:te([re(n)],t),uri:""}),e}),{})}(p,n)),d},ae=function(e,t,n){var r=e.NOW,i=e.clientOffset,o=e.availabilityStartTime,a=e.timescale,s=void 0===a?1:a,c=e.start,u=void 0===c?0:c,l=e.minimumUpdatePeriod,f=(r+i)/1e3+(void 0===l?0:l)-(o+u);return Math.ceil((f*s-t)/n)},se=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,o=void 0===i?0:i,a=e.media,s=void 0===a?"":a,c=e.sourceDuration,u=e.timescale,l=void 0===u?1:u,f=e.startNumber,p=void 0===f?1:f,d=e.periodIndex,h=[],y=-1,m=0;m<t.length;m++){var v=t[m],g=v.d,b=v.r||0,w=v.t||0;y<0&&(y=w),w&&w>y&&(y=w);var _=void 0;if(b<0){var S=m+1;_=S===t.length?"dynamic"===r&&o>0&&s.indexOf("$Number$")>0?ae(e,y,g):(c*l-y)/g:(t[S].t-y)/g}else _=b+1;for(var C=p+h.length+_,T=p+h.length;T<C;)h.push({number:T,duration:g/l,time:y,timeline:d}),y+=g,T++}return h},ce=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ue=function(e,t){return e.replace(ce,function(e){return function(t,n,r,i){if("$$"===t)return"$";if(void 0===e[n])return t;var o=""+e[n];return"RepresentationID"===n?o:(i=r?parseInt(i,10):1,o.length>=i?o:""+new Array(i-o.length+1).join("0")+o)}}(t))},le=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,o=X({baseUrl:e.baseUrl,source:ue(i.sourceURL,n),range:i.range});return function(e,t){return e.duration||t?e.duration?$(e):se(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){n.Number=t.number,n.Time=t.time;var r=ue(e.media||"",n);return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:O()(e.baseUrl||"",r),map:o,number:t.number}}))},fe=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error(K);var o,a=i.map((function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,o=X({baseUrl:n,source:i.sourceURL,range:i.range}),a=X({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=o,a}(e,t)}));return n&&(o=$(e)),t&&(o=se(e,t)),o.map((function(e,t){if(a[t]){var n=a[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}})).filter((function(e){return e}))},pe=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=le,t=V(r,i.template)):i.base?(n=Z,t=V(r,i.base)):i.list&&(n=fe,t=V(r,i.list));var o={attributes:r};if(!n)return o;var a=n(t,i.timeline);if(t.duration){var s=t,c=s.duration,u=s.timescale,l=void 0===u?1:u;t.duration=c/l}else a.length?t.duration=a.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return o.attributes=t,o.segments=a,i.base&&t.indexRange&&(o.sidx=a[0],o.segments=[]),o},de=function(e,t){return H(e.childNodes).filter((function(e){return e.tagName===t}))},he=function(e){return e.textContent.trim()},ye=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(o||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(c||0)},me={mediaPresentationDuration:function(e){return ye(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return ye(e)},suggestedPresentationDelay:function(e){return ye(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return ye(e)},start:function(e){return ye(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?ye(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},ve=function(e){return e&&e.attributes?H(e.attributes).reduce((function(e,t){var n=me[t.name]||me.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},ge={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},be=function(e,t){return t.length?F(e.map((function(e){return t.map((function(t){return O()(e,he(t))}))}))):e},we=function(e){var t=de(e,"SegmentTemplate")[0],n=de(e,"SegmentList")[0],r=n&&de(n,"SegmentURL").map((function(e){return V({tag:"SegmentURL"},ve(e))})),i=de(e,"SegmentBase")[0],o=n||t,a=o&&de(o,"SegmentTimeline")[0],s=n||i||t,c=s&&de(s,"Initialization")[0],u=t&&ve(t);u&&c?u.initialization=c&&ve(c):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var l={template:u,timeline:a&&de(a,"S").map((function(e){return ve(e)})),list:n&&V(ve(n),{segmentUrls:r,initialization:ve(c)}),base:i&&V(ve(i),{initialization:ve(c)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},_e=function(e,t,n){return function(r){var i=ve(r),o=be(t,de(r,"BaseURL")),a=de(r,"Role")[0],s={role:ve(a)},c=V(e,i,s),u=de(r,"ContentProtection").reduce((function(e,t){var n=ve(t),r=ge[n.schemeIdUri];if(r){e[r]={attributes:n};var i=de(t,"cenc:pssh")[0];if(i){var o=he(i),a=o&&I()(o);e[r].pssh=a}}return e}),{});Object.keys(u).length&&(c=V(c,{contentProtection:u}));var l=we(r),f=de(r,"Representation"),p=V(n,l);return F(f.map(function(e,t,n){return function(r){var i=de(r,"BaseURL"),o=be(t,i),a=V(e,ve(r)),s=we(r);return o.map((function(e){return{segmentInfo:V(n,s),attributes:V(a,{baseUrl:e})}}))}}(c,o,p)))}},Se=function(e,t){return function(n,r){var i=be(t,de(n,"BaseURL")),o=ve(n),a=parseInt(o.id,10),s=B.a.isNaN(a)?r:a,c=V(e,{periodIndex:s}),u=de(n,"AdaptationSet"),l=we(n);return F(u.map(_e(c,i,l)))}},Ce=function(e){if(""===e)throw new Error(W);var t,n,r=new U.DOMParser;try{n=(t=r.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(q);return n},Te=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,o=n.NOW,a=void 0===o?Date.now():o,s=n.clientOffset,c=void 0===s?0:s,u=de(e,"Period");if(!u.length)throw new Error(z);var l=de(e,"Location"),f=ve(e),p=be([i],de(e,"BaseURL"));return f.sourceDuration=f.mediaPresentationDuration||0,f.NOW=a,f.clientOffset=c,l.length&&(f.locations=l.map(he)),{locations:f.locations,representationInfo:F(u.map(Se(f,p)))}}(Ce(e),t),r=n.representationInfo.map(pe);return oe(r,n.locations,t.sidxMapping)},Ee=function(e){return function(e){var t=de(e,"UTCTiming")[0];if(!t)return null;var n=ve(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Y)}return n}(Ce(e))},Oe=J,ke=n(776),Pe=n.n(ke),Ae=n(202),Ie=n(326),xe=n(777),Le=n.n(xe),Re=n(201),je=n(373),Ne=n.n(je),De=n(68),Be=[];var Ue=function e(t){var n,r="info",o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=function(e,t){return function(n,r,o){var a=t.levels[r],s=new RegExp("^("+a+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),Be){Be.push([].concat(o));var c=Be.length-1e3;Be.splice(0,c>0?c:0)}if(i.a.console){var u=i.a.console[n];u||"debug"!==n||(u=i.a.console.info||i.a.console.log),u&&a&&s.test(n)&&u[Array.isArray(o)?"apply":"call"](i.a.console,o)}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(o.history=function(){return Be?[].concat(Be):[]}).filter=function(e){return(Be||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},o.history.clear=function(){Be&&(Be.length=0)},o.history.disable=function(){null!==Be&&(Be.length=0,Be=null)},o.history.enable=function(){null===Be&&(Be=[])},o.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},o.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},o.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},o}("VIDEOJS"),Me=Ue.createLogger,Ve=Object.prototype.toString,Fe=function(e){return We(e)?Object.keys(e):[]};function He(e,t){Fe(e).forEach((function(n){return t(e[n],n)}))}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?c.a.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&He(t,(function(t,n){e[n]=t}))})),e)}function We(e){return!!e&&"object"==typeof e}function qe(e){return We(e)&&"[object Object]"===Ve.call(e)&&e.constructor===Object}function Ge(e,t){if(!e||!t)return"";if("function"==typeof i.a.getComputedStyle){var n=i.a.getComputedStyle(e);return n?n.getPropertyValue(t)||n[t]:""}return""}function Ke(e){return"string"==typeof e&&Boolean(e.trim())}function Ye(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Xe(){return a.a===i.a.document}function Qe(e){return We(e)&&1===e.nodeType}function $e(){try{return i.a.parent!==i.a.self}catch(e){return!0}}function Ze(e){return function(t,n){if(!Ke(t))return a.a[e](null);Ke(n)&&(n=a.a.querySelector(n));var r=Qe(n)?n:a.a;return r[e]&&r[e](t)}}function Je(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Ue.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?et(i,n):i[e]===n&&"tabIndex"!==e||(i[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){i.setAttribute(e,n[e])})),r&&bt(i,r),i}function et(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function tt(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function nt(e,t){return Ye(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function rt(e,t){return e.classList?e.classList.add(t):nt(e,t)||(e.className=(e.className+" "+t).trim()),e}function it(e,t){return e.classList?e.classList.remove(t):(Ye(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function ot(e,t,n){var r=nt(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?rt(e,t):it(e,t),e}function at(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function st(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function ct(e,t){return e.getAttribute(t)}function ut(e,t,n){e.setAttribute(t,n)}function lt(e,t){e.removeAttribute(t)}function ft(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function pt(){a.a.onselectstart=function(){return!0}}function dt(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Ge(e,"height"))),n.width||(n.width=parseFloat(Ge(e,"width"))),n}}function ht(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;do{r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent}while(e);return{left:r,top:i,width:t,height:n}}function yt(e,t){var n={},r=ht(t.target),i=ht(e),o=i.width,a=i.height,s=t.offsetY-(i.top-r.top),c=t.offsetX-(i.left-r.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-i.left,s=t.changedTouches[0].pageY+i.top),n.y=1-Math.max(0,Math.min(1,s/a)),n.x=Math.max(0,Math.min(1,c/o)),n}function mt(e){return We(e)&&3===e.nodeType}function vt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),Qe(e)||mt(e)?e:"string"==typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0})).filter((function(e){return e}))}function bt(e,t){return gt(t).forEach((function(t){return e.appendChild(t)})),e}function wt(e,t){return bt(vt(e),t)}function _t(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var St,Ct=Ze("querySelector"),Tt=Ze("querySelectorAll"),Et=Object.freeze({__proto__:null,isReal:Xe,isEl:Qe,isInFrame:$e,createEl:Je,textContent:et,prependTo:tt,hasClass:nt,addClass:rt,removeClass:it,toggleClass:ot,setAttributes:at,getAttributes:st,getAttribute:ct,setAttribute:ut,removeAttribute:lt,blockTextSelection:ft,unblockTextSelection:pt,getBoundingClientRect:dt,findPosition:ht,getPointerPosition:yt,isTextNode:mt,emptyEl:vt,normalizeContent:gt,appendContent:bt,insertContent:wt,isSingleLeftClick:_t,$:Ct,$$:Tt}),Ot=!1,kt=function(){if(Xe()&&!1!==St.options.autoSetup){var e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(!s||!s.getAttribute){Pt(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&St(s)}else Ot||Pt(1)}};function Pt(e,t){t&&(St=t),i.a.setTimeout(kt,e)}function At(){Ot=!0,i.a.removeEventListener("load",At)}Xe()&&("complete"===a.a.readyState?At():i.a.addEventListener("load",At));var It,xt=function(e){var t=a.a.createElement("style");return t.className=e,t},Lt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Rt=3;function jt(){return Rt++}i.a.WeakMap||(It=function(){function e(){this.vdata="vdata"+Math.floor(i.a.performance&&i.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||jt();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Ue("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Nt,Dt=i.a.WeakMap?new WeakMap:new It;function Bt(e,t){if(Dt.has(e)){var n=Dt.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Dt.delete(e)}}function Ut(e,t,n,r){n.forEach((function(n){e(t,n,r)}))}function Mt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||i.a.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=a.a.documentElement,c=a.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Vt=["touchstart","touchmove"];function Ft(e,t,n){if(Array.isArray(t))return Ut(Ft,e,t,n);Dt.has(e)||Dt.set(e,{});var r=Dt.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=jt()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Mt(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){Ue.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var o=!1;(function(){if("boolean"!=typeof Nt){Nt=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Nt=!0}});i.a.addEventListener("test",null,e),i.a.removeEventListener("test",null,e)}catch(e){}}return Nt})()&&Vt.indexOf(t)>-1&&(o={passive:!0}),e.addEventListener(t,r.dispatcher,o)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Ht(e,t,n){if(Dt.has(e)){var r=Dt.get(e);if(r.handlers){if(Array.isArray(t))return Ut(Ht,e,t,n);var i=function(e,t){r.handlers[t]=[],Bt(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);Bt(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function zt(e,t,n){var r=Dt.has(e)?Dt.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Mt(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)zt.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Dt.has(t.target)||Dt.set(t.target,{});var o=Dt.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function Wt(e,t,n){if(Array.isArray(t))return Ut(Wt,e,t,n);var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||jt(),Ft(e,t,r)}function qt(e,t,n){var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||jt(),Ft(e,t,r)}var Gt,Kt=Object.freeze({__proto__:null,fixEvent:Mt,on:Ft,off:Ht,trigger:zt,one:Wt,any:qt}),Yt=function(e,t,n){t.guid||(t.guid=jt());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},Xt=function(e,t){var n=i.a.performance.now();return function(){var r=i.a.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},Qt=function(){};Qt.prototype.allowedEvents_={},Qt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ft(this,e,t),this.addEventListener=n},Qt.prototype.addEventListener=Qt.prototype.on,Qt.prototype.off=function(e,t){Ht(this,e,t)},Qt.prototype.removeEventListener=Qt.prototype.off,Qt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Wt(this,e,t),this.addEventListener=n},Qt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},qt(this,e,t),this.addEventListener=n},Qt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Mt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),zt(this,e)},Qt.prototype.dispatchEvent=Qt.prototype.trigger,Qt.prototype.queueTrigger=function(e){var t=this;Gt||(Gt=new Map);var n=e.type||e,r=Gt.get(this);r||(r=new Map,Gt.set(this,r));var o=r.get(n);r.delete(n),i.a.clearTimeout(o);var a=i.a.setTimeout((function(){0===r.size&&(r=null,Gt.delete(t)),t.trigger(e)}),0);r.set(n,a)};var $t=function(e){return e instanceof Qt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},Zt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Jt=function(e){if(!e.nodeName&&!$t(e))throw new Error("Invalid target; must be a DOM node or evented object.")},en=function(e){if(!Zt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},tn=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},nn=function(e,t){var n,r,i,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),Jt(n),en(r),tn(i),{isTargetingSelf:o,target:n,type:r,listener:i=Yt(e,i)}},rn=function(e,t,n,r){Jt(e),e.nodeName?Kt[t](e,n,r):e[t](n,r)},on={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(rn(a,"on",s,c),!o){var u=function(){return e.off(a,s,c)};u.guid=c.guid;var l=function(){return e.off("dispose",u)};l.guid=c.guid,rn(this,"on","dispose",u),rn(a,"on","dispose",l)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)rn(a,"one",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,rn(a,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)rn(a,"any",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,rn(a,"any",s,u)}},off:function(e,t,n){if(!e||Zt(e))Ht(this.eventBusEl_,e,t);else{var r=e,i=t;Jt(r),en(i),tn(n),n=Yt(this,n),this.off("dispose",n),r.nodeName?(Ht(r,i,n),Ht(r,"dispose",n)):$t(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return zt(this.eventBusEl_,e,t)}};function an(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=Je("span",{className:"vjs-event-bus"});return ze(e,on),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),i.a.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var sn={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),He(e,(function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e})),t&&$t(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function cn(e,t){return ze(e,sn),e.state=ze({},e.state,t),"function"==typeof e.handleStateChanged&&$t(e)&&e.on("statechanged",e.handleStateChanged),e}var un=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},ln=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function fn(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&He(t,(function(t,n){qe(t)?(qe(e[n])||(e[n]={}),e[n]=fn(e[n],t)):e[n]=t}))})),e}var pn=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),dn=i.a.Map?i.a.Map:pn,hn=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),yn=i.a.Set?i.a.Set:hn,mn=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=fn({},this.options_),t=this.options_=fn(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+jt()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(an(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),cn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new yn,this.setIntervalIds_=new yn,this.rafIds_=new yn,this.namedRafs_=new dn,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Dt.has(this.el_)&&Dt.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=fn(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return Je(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],c=n;return o&&o[e]?c=o[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i}))),c},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var r=this,i=0;i<t.length;i++)if(!(r=r.getChild(t[i]))||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=ln(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&ln(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[un(o)]=i),"function"==typeof i.el&&i.el()){var c=null;this.children_[r+1]&&(this.children_[r+1].el_?c=this.children_[r+1].el_:Qe(this.children_[r+1])&&(c=this.children_[r+1])),this.contentEl().insertBefore(i.el(),c)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ln(e.name())]=null,this.childNameIndex_[un(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||ln(t.name));return n&&!o.isTech(n)})).forEach((function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Ct(e,t||this.contentEl())},t.$$=function(e,t){return Tt(e,t||this.contentEl())},t.hasClass=function(e){return nt(this.el_,e)},t.addClass=function(e){rt(this.el_,e)},t.removeClass=function(e){it(this.el_,e)},t.toggleClass=function(e,t){ot(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return ct(this.el_,e)},t.setAttribute=function(e,t){ut(this.el_,e,t)},t.removeAttribute=function(e){lt(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+ln(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Ge(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+ln(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){(n=null,!0===e)&&(i.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Yt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Yt(this,e),this.clearTimersOnDispose_(),n=i.a.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),i.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=Yt(this,e),this.clearTimersOnDispose_();var n=i.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),i.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Yt(this,e),t=i.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Yt(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),i.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),o=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw r=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=ln(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var c=s.players,u=Object.keys(c);if(c&&u.length>0&&u.map((function(e){return c[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[un(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();mn.prototype.supportsRaf_="function"==typeof i.a.requestAnimationFrame&&"function"==typeof i.a.cancelAnimationFrame,mn.registerComponent("Component",mn);var vn,gn=i.a.navigator&&i.a.navigator.userAgent||"",bn=/AppleWebKit\/([\d.]+)/i.exec(gn),wn=bn?parseFloat(bn.pop()):null,_n=/iPod/i.test(gn),Sn=(vn=gn.match(/OS (\d+)_/i))&&vn[1]?vn[1]:null,Cn=/Android/i.test(gn),Tn=function(){var e=gn.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),En=Cn&&Tn<5&&wn<537,On=/Firefox/i.test(gn),kn=/Edg/i.test(gn),Pn=!kn&&(/Chrome/i.test(gn)||/CriOS/i.test(gn)),An=function(){var e=gn.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),In=function(){var e=/MSIE\s(\d+)\.\d/.exec(gn),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(gn)&&/rv:11.0/.test(gn)&&(t=11),t}(),xn=/Safari/i.test(gn)&&!Pn&&!Cn&&!kn,Ln=/Windows/i.test(gn),Rn=Boolean(Xe()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch)),jn=/iPad/i.test(gn)||xn&&Rn&&!/iPhone/i.test(gn),Nn=/iPhone/i.test(gn)&&!jn,Dn=Nn||jn||_n,Bn=(xn||Dn)&&!Pn,Un=Object.freeze({__proto__:null,IS_IPOD:_n,IOS_VERSION:Sn,IS_ANDROID:Cn,ANDROID_VERSION:Tn,IS_NATIVE_ANDROID:En,IS_FIREFOX:On,IS_EDGE:kn,IS_CHROME:Pn,CHROME_VERSION:An,IE_VERSION:In,IS_SAFARI:xn,IS_WINDOWS:Ln,TOUCH_ENABLED:Rn,IS_IPAD:jn,IS_IPHONE:Nn,IS_IOS:Dn,IS_ANY_SAFARI:Bn});function Mn(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function Vn(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Mn.bind(null,"start",0,e),end:Mn.bind(null,"end",1,e)}}function Fn(e,t){return Array.isArray(e)?Vn(e):void 0===e||void 0===t?Vn():Vn([[e,t]])}function Hn(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Fn(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}for(var zn,Wn={prefixed:!0},qn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Gn=qn[0],Kn=0;Kn<qn.length;Kn++)if(qn[Kn][1]in a.a){zn=qn[Kn];break}if(zn){for(var Yn=0;Yn<zn.length;Yn++)Wn[Gn[Yn]]=zn[Yn];Wn.prefixed=zn[0]!==Gn[0]}function Xn(e){if(e instanceof Xn)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:We(e)&&("number"==typeof e.code&&(this.code=e.code),ze(this,e)),this.message||(this.message=Xn.defaultMessages[this.code]||"")}Xn.prototype.code=0,Xn.prototype.message="",Xn.prototype.status=null,Xn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Xn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Qn=0;Qn<Xn.errorTypes.length;Qn++)Xn[Xn.errorTypes[Qn]]=Qn,Xn.prototype[Xn.errorTypes[Qn]]=Qn;function $n(e){return null!=e&&"function"==typeof e.then}function Zn(e){$n(e)&&e.then(null,(function(e){}))}var Jn=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,r){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})},er=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=Jn(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(Jn))},tr=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},nr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Je("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=Je("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),et(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),wt(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),vt(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),m.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(m.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}a.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof i.a.HTMLAnchorElement||e instanceof i.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i.a.HTMLInputElement||e instanceof i.a.HTMLSelectElement||e instanceof i.a.HTMLTextAreaElement||e instanceof i.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i.a.HTMLIFrameElement||e instanceof i.a.HTMLObjectElement||e instanceof i.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(mn);nr.prototype.options_={pauseOnOpen:!0,temporary:!0},mn.registerComponent("ModalDialog",nr);var rr=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(l()(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}p()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},$t(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(Qt);for(var ir in rr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},rr.prototype.allowedEvents_)rr.prototype["on"+ir]=null;var or=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},ar=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){or(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&or(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,or(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(rr),sr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},cr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){sr(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(l()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&sr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,sr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(rr),ur=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(rr),lr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),fr=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),pr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},dr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},hr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},yr={disabled:"disabled",hidden:"hidden",showing:"showing"},mr=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+jt(),kind:t.kind||"",language:t.language||""},i=t.label||"",o=function(e){Object.defineProperty(l()(n),e,{get:function(){return r[e]},set:function(){}})};for(var a in r)o(a);return Object.defineProperty(l()(n),"label",{get:function(){return i},set:function(e){e!==i&&(i=e,this.trigger("labelchange"))}}),n}return p()(t,e),t}(Qt),vr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.a.createElement("a");n.href=e;var r,o=""===n.host&&"file:"!==n.protocol;o&&((r=a.a.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),a.a.body.appendChild(r));for(var s={},c=0;c<t.length;c++)s[t[c]]=n[t[c]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=i.a.location.protocol),o&&a.a.body.removeChild(r),s},gr=function(e){if(!e.match(/^https?:\/\//)){var t=a.a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},br=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},wr=function(e,t){void 0===t&&(t=i.a.location);var n=vr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},_r=Object.freeze({__proto__:null,parseUrl:vr,getAbsoluteURL:gr,getFileExtension:br,isCrossOrigin:wr}),Sr=function(e,t){var n=new i.a.WebVTT.Parser(i.a,i.a.vttjs,i.a.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i.a.console&&i.a.console.groupCollapsed&&i.a.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach((function(e){return Ue.error(e)})),i.a.console&&i.a.console.groupEnd&&i.a.console.groupEnd()),n.flush()},Cr=function(e,t){var n={uri:e},r=wr(e);r&&(n.cors=r);var o="use-credentials"===t.tech_.crossOrigin();o&&(n.withCredentials=o),g()(n,Yt(this,(function(e,n,r){if(e)return Ue.error(e,n);t.loaded_=!0,"function"!=typeof i.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Sr(r,t);Ue.error("vttjs failed to load, stopping trying to process "+t.src)})):Sr(r,t)})))},Tr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=fn(t,{kind:hr[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=yr[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new fr(n.cues_),s=new fr(n.activeCues_),c=!1,u=Yt(l()(n),(function(){this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1)}));return"disabled"!==i&&n.tech_.ready((function(){n.tech_.on("timeupdate",u)}),!0),Object.defineProperties(l()(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return i},set:function(e){var t=this;yr[e]&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Cr(this.src,this),"disabled"!==i?this.tech_.ready((function(){t.tech_.on("timeupdate",u)}),!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(c=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||o||"subtitles"!==r.kind&&"captions"!==r.kind)&&Cr(n.src,l()(n))):n.loaded_=!0,n}p()(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(i.a.vttjs&&!(e instanceof i.a.vttjs.VTTCue)){for(var n in t=new i.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(mr);Tr.prototype.allowedEvents_={cuechange:"cuechange"};var Er=function(e){function t(t){var n;void 0===t&&(t={});var r=fn(t,{kind:dr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return p()(t,e),t}(mr),Or=function(e){function t(t){var n;void 0===t&&(t={});var r=fn(t,{kind:pr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return p()(t,e),t}(mr),kr=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new Tr(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(l()(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=0,i.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:l()(n)})})),n}return p()(t,e),t}(Qt);kr.prototype.allowedEvents_={load:"load"},kr.NONE=0,kr.LOADING=1,kr.LOADED=2,kr.ERROR=3;var Pr={audio:{ListClass:ar,TrackClass:Er,capitalName:"Audio"},video:{ListClass:cr,TrackClass:Or,capitalName:"Video"},text:{ListClass:ur,TrackClass:Tr,capitalName:"Text"}};Object.keys(Pr).forEach((function(e){Pr[e].getterName=e+"Tracks",Pr[e].privateName=e+"Tracks_"}));var Ar={remoteText:{ListClass:ur,TrackClass:Tr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:lr,TrackClass:kr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ir=c()({},Pr,Ar);Ar.names=Object.keys(Ar),Pr.names=Object.keys(Pr),Ir.names=[].concat(Ar.names).concat(Pr.names);var xr=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),Ir.names.forEach((function(e){var n=Ir[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new Ir.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}p()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Yt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Fn(0,0)},n.bufferedPercent=function(){return Hn(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Pr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Xn(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Fn(0,0):Fn()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Pr.names.forEach((function(t){var n=Pr[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var e=this;if(!i.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&qe(w.a)&&Object.keys(w.a).length>0)return void this.trigger("vttjsloaded");var t=a.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),i.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",o)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var a=new Ir.text.TrackClass(i);return o.addTrack(a),a}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=fn(e,{tech:this});return new Ar.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Ue.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ln(e),t.techs_[e]=n,t.techs_[un(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=ln(e),i.a&&i.a.videojs&&i.a.videojs[e]?(Ue.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.a.videojs[e]):void 0)},t}(mn);Ir.names.forEach((function(e){var t=Ir[e];xr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),xr.prototype.featuresVolumeControl=!0,xr.prototype.featuresMuteControl=!0,xr.prototype.featuresFullscreenResize=!1,xr.prototype.featuresPlaybackRate=!1,xr.prototype.featuresProgressEvents=!1,xr.prototype.featuresSourceset=!1,xr.prototype.featuresTimeupdateEvents=!1,xr.prototype.featuresNativeTextTracks=!1,xr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Ue.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},mn.registerComponent("Tech",xr),xr.registerTech("Tech",xr),xr.defaultTechOrder_=[];var Lr={},Rr={},jr={};function Nr(e,t,n){e.setTimeout((function(){return function e(t,n,r,i,o,a){void 0===t&&(t={});void 0===n&&(n=[]);void 0===o&&(o=[]);void 0===a&&(a=!1);var s=n,c=s[0],u=s.slice(1);if("string"==typeof c)e(t,Lr[c],r,i,o,a);else if(c){var l=function(e,t){var n=Rr[e.id()],r=null;if(null==n)return r=t(e),Rr[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===t&&(r=s)}null===r&&(r=t(e),n.push([t,r]));return r}(i,c);if(!l.setSource)return o.push(l),e(t,u,r,i,o,a);l.setSource(ze({},t),(function(n,s){if(n)return e(t,u,r,i,o,a);o.push(l),e(s,t.type===s.type?u:Lr[s.type],r,i,o,a)}))}else u.length?e(t,u,r,i,o,a):a?r(t,o):e(t,Lr["*"],r,i,o,!0)}(t,Lr[t.type],n,e)}),1)}function Dr(e,t,n,r){void 0===r&&(r=null);var i="call"+ln(n),o=e.reduce(Vr(i),r),a=o===jr,s=a?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,s,a),s}var Br={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Ur={setCurrentTime:1,setMuted:1,setVolume:1},Mr={play:1,pause:1};function Vr(e){return function(t,n){return t===jr?jr:n[e]?n[e](t):t}}var Fr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Hr=function(e){void 0===e&&(e="");var t=br(e);return Fr[t.toLowerCase()]||""};function zr(e){if(!e.type){var t=Hr(e.src);t&&(e.type=t)}return e}var Wr=function(e){function t(t,n,r){var i,o=fn({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var c=ln(s[a]),u=xr.getTech(c);if(c||(u=mn.getComponent(c)),u&&u.isSupported()){t.loadTech_(c);break}}return i}return p()(t,e),t}(mn);mn.registerComponent("MediaLoader",Wr);var qr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).emitTapEvents(),r.enable(),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=ze({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Ue.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=ze({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=Je("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,et(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(mn);mn.registerComponent("ClickableComponent",qr);var Gr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",Yt(l()(r),r.update)),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},n.createEl=function(){return Je("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(In||kn)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Zn(this.player_.play()):this.player_.pause()}},t}(qr);mn.registerComponent("PosterImage",Gr);var Kr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Yr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Xr(e,t,n){try{e.style[t]=n}catch(e){return}}var Qr=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var a=Yt(l()(o),o.updateDisplay);return t.on("loadstart",Yt(l()(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",Yt(l()(o),o.preselectTrack)),t.ready(Yt(l()(o),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),i.a.addEventListener("orientationchange",a),t.on("dispose",(function(){return i.a.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),o}p()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<i.length;a++){var s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in r?s.kind===o.kind?n=s:n||(n=s):o&&!o.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof i.a.WebVTT&&i.a.WebVTT.processCues(i.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,a=null,s=e.length;s--;){var c=e[s];"showing"===c.mode&&("descriptions"===c.kind?o=c:a=c)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var o=n[r];if(o){var a=o.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&Xr(a.firstChild,"color",Yr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Xr(a.firstChild,"backgroundColor",Yr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Xr(a,"backgroundColor",Yr(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=i.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Kr[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof i.a.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],o=0;o<r.activeCues.length;++o)t.push(r.activeCues[o]);i.a.WebVTT.processCues(i.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],c=0;c<s.activeCues.length;++c){var u=s.activeCues[c].displayState;rt(u,"vjs-text-track-cue"),rt(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(mn);mn.registerComponent("TextTrackDisplay",Qr);var $r=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=Je("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(mn);mn.registerComponent("LoadingSpinner",$r);var Zr=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=ze({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=ze({type:"button"},n);var r=mn.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return Ue.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),mn.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(qr);mn.registerComponent("Button",Zr);var Jr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Zn(t),void(!this.player_.tech(!0)||(In||kn)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var o=function(){return i.focus()};$n(t)?t.then(o,(function(){})):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Zr);Jr.prototype.controlText_="Play Video",mn.registerComponent("BigPlayButton",Jr);var ei=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){m.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Zr);mn.registerComponent("CloseButton",ei);var ti=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),n.replay&&r.on(t,"ended",r.handleEnded),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Zr);ti.prototype.controlText_="Play",mn.registerComponent("PlayToggle",ti);var ni=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},ri=ni;function ii(e,t){return void 0===t&&(t=e),ri(e,t)}var oi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],r.updateContent),r.updateTextNode_(),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=Je("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ii(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&!t.contentEl_.contains(e)&&(e=null,Ue.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=a.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(mn);oi.prototype.labelText_="Time",oi.prototype.controlText_="Time",mn.registerComponent("TimeDisplay",oi);var ai=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(oi);ai.prototype.labelText_="Current Time",ai.prototype.controlText_="Current Time",mn.registerComponent("CurrentTimeDisplay",ai);var si=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r.on(t,"loadstart",r.updateContent),r.on(t,"loadedmetadata",r.updateContent),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(oi);si.prototype.labelText_="Duration",si.prototype.controlText_="Duration",mn.registerComponent("DurationDisplay",si);var ci=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(mn);mn.registerComponent("TimeDivider",ci);var ui=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(Je("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(oi);ui.prototype.labelText_="Remaining Time",ui.prototype.controlText_="Remaining Time",mn.registerComponent("RemainingTimeDisplay",ui);var li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Je("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(mn);mn.registerComponent("LiveDisplay",li);var fi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Je("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,e.prototype.dispose.call(this)},t}(Zr);fi.prototype.controlText_="Seek to live, currently playing live",mn.registerComponent("SeekToLive",fi);var pi=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},di=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}p()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=ze({tabIndex:0},n),r=ze({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Pn||e.preventDefault(),ft(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;pt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(pi(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=yt(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){m.a.isEventKey(t,"Left")||m.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):m.a.isEventKey(t,"Right")||m.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(mn);mn.registerComponent("Slider",di);var hi=function(e,t){return pi(e/t*100,0,100).toFixed(2)+"%"},yi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",r.update),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Je("span",{className:"vjs-control-text"}),r=Je("span",{textContent:this.localize("Loaded")}),i=a.a.createTextNode(": ");return this.percentageEl_=Je("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),o=t.partEls_,a=hi(i,r);t.percent_!==a&&(t.el_.style.width=a,et(t.percentageEl_,a),t.percent_=a);for(var s=0;s<n.length;s++){var c=n.start(s),u=n.end(s),l=o[s];l||(l=t.el_.appendChild(Je()),o[s]=l),l.dataset.start===c&&l.dataset.end===u||(l.dataset.start=c,l.dataset.end=u,l.style.left=hi(c,i),l.style.width=hi(u-c,i))}for(var f=o.length;f>n.length;f--)t.el_.removeChild(o[f-1]);o.length=n.length}))},t}(mn);mn.registerComponent("LoadProgressBar",yi);var mi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=ht(this.el_),i=dt(this.player_.el()),o=e.width*t;if(i&&r){var a=e.left-i.left+o,s=e.width-o+(i.right-e.right),c=r.width/2;a<c?c+=c-a:s<c&&(c=s),c<0?c=0:c>r.width&&(c=r.width),c=Math.round(c),this.el_.style.right="-"+c+"px",this.write(n)}},n.write=function(e){et(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var o,a=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),c=s-t*s;o=(c<1?"":"-")+ii(c,s)}else o=ii(n,a);i.update(e,t,o),r&&r()}))},t}(mn);mn.registerComponent("TimeTooltip",mi);var vi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(mn);vi.prototype.options_={children:[]},Dn||Cn||vi.prototype.options_.children.push("timeTooltip"),mn.registerComponent("PlayProgressBar",vi);var gi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,(function(){n.el_.style.left=e.width*t+"px"}))},t}(mn);gi.prototype.options_={children:["timeTooltip"]},mn.registerComponent("MouseTimeDisplay",gi);var bi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}p()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){this.update_=Yt(this,this.update),this.update=Xt(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){a.a.hidden?this.disableInterval_(e):(this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this,r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ii(e,i),ii(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(dt(n.el()),n.getProgress())})),r},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){_t(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(_t(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Zn(this.player_.play()):this.update_()},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){if(m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(m.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(0);else if(m.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(m()(t))){t.preventDefault(),t.stopPropagation();var n=10*(m.a.codes[m()(t)]-m.a.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else m.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):m.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(di);bi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Dn||Cn||bi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),mn.registerComponent("SeekBar",bi);var wi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=Xt(Yt(l()(r),r.handleMouseMove),30),r.throttledHandleMouseSeek=Xt(Yt(l()(r),r.handleMouseSeek),30),r.enable(),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),o=ht(i),a=yt(i,e).x;a=pi(a,0,1),r&&r.update(o,a),n&&n.update(o,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(mn);wi.prototype.options_={children:["seekBar"]},mn.registerComponent("ProgressControl",wi);var _i=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],r.handlePictureInPictureEnabledChange),r.disable(),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){a.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Zr);_i.prototype.controlText_="Picture-in-Picture",mn.registerComponent("PictureInPictureToggle",_i);var Si=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",r.handleFullscreenChange),!1===a.a[t.fsApi_.fullscreenEnabled]&&r.disable(),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Zr);Si.prototype.controlText_="Fullscreen",mn.registerComponent("FullscreenToggle",Si);var Ci=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(mn);mn.registerComponent("VolumeLevel",Ci);var Ti=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",r.updateLastVolume_),r.on(t,"volumechange",r.updateARIAAttributes),t.ready((function(){return r.updateARIAAttributes()})),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){_t(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){_t(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(di);Ti.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ti.prototype.playerEvent="volumechange",mn.registerComponent("VolumeBar",Ti);var Ei=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||qe(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(l()(r),t),r.throttledHandleMouseMove=Xt(Yt(l()(r),r.handleMouseMove),30),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(mn);Ei.prototype.options_={children:["volumeBar"]},mn.registerComponent("VolumeControl",Ei);var Oi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(l()(r),t),r.on(t,["loadstart","volumechange"],r.update),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Dn&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)it(this.el_,"vjs-vol-"+n);rt(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Zr);Oi.prototype.controlText_="Mute",mn.registerComponent("MuteToggle",Oi);var ki=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||qe(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).on(t,["loadstart"],r.volumePanelState_),r.on(r.muteToggle,"keyup",r.handleKeyPress),r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp),r.on("keydown",r.handleKeyPress),r.on("mouseover",r.handleMouseOver),r.on("mouseout",r.handleMouseOut),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}p()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){m.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ft(a.a,"keyup",Yt(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Yt(this,this.handleKeyPress))},n.handleKeyPress=function(e){m.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(mn);ki.prototype.options_={children:["muteToggle","volumeControl"]},mn.registerComponent("VolumePanel",ki);var Pi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyDown),r.boundHandleBlur_=Yt(l()(r),r.handleBlur),r.boundHandleTapClick_=Yt(l()(r),r.handleTapClick),r}p()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof mn&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof mn&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Je(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ft(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||a.a.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){m.a.isEventKey(e,"Left")||m.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(m.a.isEventKey(e,"Right")||m.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(mn);mn.registerComponent("Menu",Pi);var Ai=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new Zr(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=Zr.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),Ft(a.a,"keyup",Yt(l()(r),r.handleMenuKeyUp))})),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}p()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Pi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Je("li",{className:"vjs-menu-title",innerHTML:ln(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new mn(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Zr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Yt(this,this.handleMenuKeyUp))},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),m.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(m.a.isEventKey(e,"Up")||m.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),m.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Dn&&$e())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(mn);mn.registerComponent("MenuButton",Ai);var Ii=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return l()(r);var o=Yt(l()(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),i.addEventListener("labelchange",o),r.player_.on("ready",o),r.player_.on("dispose",(function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o),i.removeEventListener("labelchange",o)})),r}return p()(t,e),t}(Ai);mn.registerComponent("TrackButton",Ii);var xi=["Tab","Esc","Up","Down","Right","Left"],Li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",ze({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){xi.some((function(e){return m.a.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(qr);mn.registerComponent("MenuItem",Li);var Ri=function(e){function t(t,n){var r,o=n.track,s=t.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=e.call(this,t,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var c,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(l()(r),t)};(t.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",f),r.on("dispose",(function(){t.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",f)})),void 0===s.onchange)&&r.on(["tap","click"],(function(){if("object"!=typeof i.a.Event)try{c=new i.a.Event("change")}catch(e){}c||(c=a.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(c)}));return r.handleTracksChange(),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Li);mn.registerComponent("TextTrackMenuItem",Ri);var ji=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ri);mn.registerComponent("OffTextTrackMenuItem",ji);var Ni=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return p()(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Ri),this.label_&&(n=this.label_+" off"),e.push(new ji(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Ii);mn.registerComponent("TextTrackButton",Ni);var Di=function(e){function t(t,n){var r,i=n.track,o=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",Yt(l()(r),r.update)),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Li);mn.registerComponent("ChaptersTrackMenuItem",Di);var Bi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ln(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],o=new Di(this.player_,{track:this.track_,cue:i});e.push(o)}return e},t}(Ni);Bi.prototype.kind_="chapters",Bi.prototype.controlText_="Chapters",mn.registerComponent("ChaptersButton",Bi);var Ui=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),a=Yt(l()(i),i.handleTracksChange);return o.addEventListener("change",a),i.on("dispose",(function(){o.removeEventListener("change",a)})),i}p()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ni);Ui.prototype.kind_="descriptions",Ui.prototype.controlText_="Descriptions",mn.registerComponent("DescriptionsButton",Ui);var Mi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ni);Mi.prototype.kind_="subtitles",Mi.prototype.controlText_="Subtitles",mn.registerComponent("SubtitlesButton",Mi);var Vi=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return p()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ri);mn.registerComponent("CaptionSettingsMenuItem",Vi);var Fi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Vi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ni);Fi.prototype.kind_="captions",Fi.prototype.controlText_="Captions",mn.registerComponent("CaptionsButton",Fi);var Hi=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,ze({innerHTML:i},n),r)},t}(Ri);mn.registerComponent("SubsCapsMenuItem",Hi);var zi=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(ln(r.label_)),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Vi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Hi)},t}(Ni);zi.prototype.kinds_=["captions","subtitles"],zi.prototype.controlText_="Subtitles",mn.registerComponent("SubsCapsButton",zi);var Wi=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)};return o.addEventListener("change",a),r.on("dispose",(function(){o.removeEventListener("change",a)})),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,ze({innerHTML:i},n),r)},n.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Li);mn.registerComponent("AudioTrackMenuItem",Wi);var qi=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new Wi(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Ii);qi.prototype.controlText_="Audio Track",mn.registerComponent("AudioTrackButton",qi);var Gi=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",r.update),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Li);Gi.prototype.contentElType="button",mn.registerComponent("PlaybackRateMenuItem",Gi);var Ki=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=Je("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var e=new Pi(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Gi(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Ai);Ki.prototype.controlText_="Playback Rate",mn.registerComponent("PlaybackRateMenuButton",Ki);var Yi=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(mn);mn.registerComponent("Spacer",Yi);var Xi=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Yi);mn.registerComponent("CustomControlSpacer",Xi);var Qi=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(mn);Qi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in a.a&&Qi.prototype.options_.children.splice(Qi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),mn.registerComponent("ControlBar",Qi);var $i=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",r.open),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(nr);$i.prototype.options_=c()({},nr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),mn.registerComponent("ErrorDisplay",$i);var Zi=["#000","Black"],Ji=["#00F","Blue"],eo=["#0FF","Cyan"],to=["#0F0","Green"],no=["#F0F","Magenta"],ro=["#F00","Red"],io=["#FFF","White"],oo=["#FF0","Yellow"],ao=["1","Opaque"],so=["0.5","Semi-Transparent"],co=["0","Transparent"],uo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Zi,io,ro,to,Ji,oo,no,eo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ao,so,co]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[io,Zi,ro,to,Ji,oo,no,eo]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ao,so]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[co,so,ao]}};function lo(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}uo.windowColor.options=uo.backgroundColor.options;var fo=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=Yt(l()(r),r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Je("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),He(uo,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=uo[e],o=i.id.replace("%s",this.id_),a=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map((function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',r.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Je("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Je("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Je("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o,a=(i=r.$(t.selector),o=t.parser,lo(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[n]=a),e},void 0===(n={})&&(n=0),Fe(e=uo).reduce((function(n,r){return t(n,e[r],r)}),n)},n.setValues=function(e){var t=this;He(uo,(function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(lo(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)}))},n.setDefaults=function(){var e=this;He(uo,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(i.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){Ue.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):i.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){Ue.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(nr);mn.registerComponent("TextTrackSettings",fo);var po=function(e){function t(t,n){var r,o=n.ResizeObserver||i.a.ResizeObserver;null===n.ResizeObserver&&(o=!1);var a=fn({createEl:!o,reportTouchActivity:!1},n);return(r=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||i.a.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(e,t,n,r){var o;void 0===r&&(r=i.a);var a=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||e.apply(i,a)};!o&&n&&e.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,t)};return a.cancel=function(){r.clearTimeout(o),o=null},a}((function(){r.resizeHandler()}),100,!1,l()(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){Ht(this,"resize",e),Ht(this,"unload",t),t=null};Ft(r.el_.contentWindow,"unload",t),Ft(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(mn);mn.registerComponent("ResizeManager",po);var ho={trackingThreshold:30,liveTolerance:15},yo=function(e){function t(t,n){var r,i=fn(ho,n,{createEl:!1});return(r=e.call(this,t,i)||this).reset_(),r.on(r.player_,"durationchange",r.handleDurationchange),In&&"hidden"in a.a&&"visibilityState"in a.a&&r.on(a.a,"visibilitychange",r.handleVisibilityChange),r}p()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(a.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(i.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&e>2,this.skipNextSeeked_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.skipNextSeeked_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLive_),this.off(this.player_,"seeked",this.handleSeeked),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate),this.off(this.player_,"timeupdate",this.seekToLiveEdge)},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.skipNextSeeked_=!0,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(a.a,"visibilitychange",this.handleVisibilityChange),this.stopTracking(),e.prototype.dispose.call(this)},t}(mn);mn.registerComponent("LiveTracker",yo);var mo,vo=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},go=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",i.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),bo=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},wo=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return bo([e.el(),i.a.HTMLMediaElement.prototype,i.a.Element.prototype,go],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(t,i);return vo(e),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))})),Object.defineProperty(t,"innerHTML",fn(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},_o=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?gr(i.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i.a.Element.prototype.setAttribute.call(this,"src",e),e}}),So=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return bo([e.el(),i.a.HTMLMediaElement.prototype,_o],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",fn(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=o.call(t);return vo(e)||(e.triggerSourceset(""),wo(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):vo(e)||wo(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Co=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(o.set=i),Object.defineProperty(e,t,o)},To=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,c=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),o||r.el_.hasAttribute("crossorigin")||!wr(u.src)||(o=!0)):c.push(u))}for(var l=0;l<c.length;l++)r.el_.removeChild(c[l])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&Ue.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Rn||Nn||En)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){So(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Pr[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[Ar.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach((function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",(function(t){return r.removeEventListener(e,n)}))})),this.on("loadstart",a),this.on("dispose",(function(e){return t.off("loadstart",a)}))}},n.proxyNativeTracks_=function(){var e=this;Pr.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.a.createElement("video");var r=fn({},this.options_.tag&&st(this.options_.tag));Rn&&!0===this.options_.nativeControlsForTouch||delete r.controls,at(e,ze(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&ut(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var s=i[o],c=this.options_[s];void 0!==c&&(c?ut(e,s,s):lt(e,s),e[s]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")}))}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready((function(){i.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Bn?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Ue(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&Cn&&Pn&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=i.a.navigator&&i.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Zn(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i.a.performance&&"function"==typeof i.a.performance.now?e.creationTime=i.a.performance.now():i.a.performance&&i.a.performance.timing&&"number"==typeof i.a.performance.timing.navigationStart&&(e.creationTime=i.a.Date.now()-i.a.performance.timing.navigationStart),e},t}(xr);Co(To,"TEST_VID",(function(){if(Xe()){var e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),To.isSupported=function(){try{To.TEST_VID.volume=.5}catch(e){return!1}return!(!To.TEST_VID||!To.TEST_VID.canPlayType)},To.canPlayType=function(e){return To.TEST_VID.canPlayType(e)},To.canPlaySource=function(e,t){return To.canPlayType(e.type)},To.canControlVolume=function(){try{var e=To.TEST_VID.volume;return To.TEST_VID.volume=e/2+.1,e!==To.TEST_VID.volume}catch(e){return!1}},To.canMuteVolume=function(){try{var e=To.TEST_VID.muted;return To.TEST_VID.muted=!e,To.TEST_VID.muted?ut(To.TEST_VID,"muted","muted"):lt(To.TEST_VID,"muted"),e!==To.TEST_VID.muted}catch(e){return!1}},To.canControlPlaybackRate=function(){if(Cn&&Pn&&An<58)return!1;try{var e=To.TEST_VID.playbackRate;return To.TEST_VID.playbackRate=e/2+.1,e!==To.TEST_VID.playbackRate}catch(e){return!1}},To.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},To.supportsNativeTextTracks=function(){return Bn||Dn&&Pn},To.supportsNativeVideoTracks=function(){return!(!To.TEST_VID||!To.TEST_VID.videoTracks)},To.supportsNativeAudioTracks=function(){return!(!To.TEST_VID||!To.TEST_VID.audioTracks)},To.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Co(To.prototype,t,(function(){return To[n]()}),!0)})),To.prototype.movingMediaElementInDOM=!Dn,To.prototype.featuresFullscreenResize=!0,To.prototype.featuresProgressEvents=!0,To.prototype.featuresTimeupdateEvents=!0,To.patchCanPlayType=function(){Tn>=4&&!On&&!Pn&&(mo=To.TEST_VID&&To.TEST_VID.constructor.prototype.canPlayType,To.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":mo.call(this,e)})},To.unpatchCanPlayType=function(){var e=To.TEST_VID.constructor.prototype.canPlayType;return mo&&(To.TEST_VID.constructor.prototype.canPlayType=mo),e},To.patchCanPlayType(),To.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},To.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){To.prototype["set"+ln(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){To.prototype["set"+ln(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]()}})),xr.withSourceHandlers(To),To.nativeSourceHandler={},To.nativeSourceHandler.canPlayType=function(e){try{return To.TEST_VID.canPlayType(e)}catch(e){return""}},To.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return To.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=br(e.src);return To.nativeSourceHandler.canPlayType("video/"+n)}return""},To.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},To.nativeSourceHandler.dispose=function(){},To.registerSourceHandler(To.nativeSourceHandler),xr.registerTech("Html5",To);var Eo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Oo={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ko=["tiny","xsmall","small","medium","large","xlarge","huge"],Po={};ko.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Po[e]="vjs-layout-"+t}));var Ao={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Io=function(e){function t(n,r,i){var o;if(n.id=n.id||r.id||"vjs_video_"+jt(),(r=ze(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(r.language=s.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(st(c).hasOwnProperty("lang")){r.language=c.getAttribute("lang");break}c=c.parentNode}if((o=e.call(this,null,r,i)||this).boundDocumentFullscreenChange_=Yt(l()(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=Yt(l()(o),o.fullWindowOnEscKey),o.isFullscreen_=!1,o.log=Me(o.id_),o.fsApi_=Wn,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,o.debugEnabled_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&st(n),o.language(o.options_.language),r.languages){var u={};Object.getOwnPropertyNames(r.languages).forEach((function(e){u[e.toLowerCase()]=r.languages[e]})),o.languages_=u}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],n.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')})),o.scrubbing_=!1,o.el_=o.createEl(),an(l()(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(Ft(a.a,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on(["playerreset","resize"],o.updateStyleEl_);var f=fn(o.options_);r.plugins&&Object.keys(r.plugins).forEach((function(e){o[e](r.plugins[e])})),r.debug&&o.debug(!0),o.options_.playerOptions=f,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),Rn&&o.addClass("vjs-touch-enabled"),Dn||o.addClass("vjs-workinghover"),t.players[o.id_]=l()(o);var p="7.11.2".split(".")[0];return o.addClass("vjs-v"+p),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("stageclick",o.handleStageClick_),o.on("keydown",o.handleKeyDown),o.on("languagechange",o.handleLanguagechange),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}p()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ht(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ht(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Rr[this.id()]=null,Ir.names.forEach((function(e){var t=Ir[e],r=n[t.getterName]();r&&r.off&&r.off()})),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=st(n);if(o){for(t=this.el_=n,n=this.tag=a.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);nt(t,"video-js")||rt(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(In||Pn&&Ln)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){o&&"class"===e||t.setAttribute(e,s[e]),o&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=xt("vjs-styles-dimensions");var c=Ct(".vjs-styles-defaults"),u=Ct("head");u.insertBefore(this.styleEl_,c?c.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),f=0;f<l.length;f++){var p=l.item(f);rt(p,"vjs-hidden"),p.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),tt(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Ue.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?Ue.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){var t,n,r=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,$t(this)&&this.off(["playerreset","resize"],this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.updateStyleEl_)},$t(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Lt(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),s>=0&&(c.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=ln(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(xr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Ir.names.forEach((function(e){var t=Ir[e];o[t.getterName]=n[t.privateName]})),ze(o,this.options_[r]),ze(o,this.options_[i]),ze(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=xr.getTech(e);if(!a)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(Yt(this,this.handleTechReady_),!0),tr(this.textTracksJson_||[],this.tech_),Eo.forEach((function(e){n.on(n.tech_,e,n["handleTech"+ln(e)+"_"])})),Object.keys(Oo).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Oo[e]+"_"].bind(n),event:t}):n["handleTech"+Oo[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||tt(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Ir.names.forEach((function(t){var n=Ir[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=er(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Ue.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if($n(r))return r.catch(n)};if("any"===e&&!0!==this.muted()?$n(n=this.play())&&(n=n.catch(r)):n="muted"===e&&!0!==this.muted()?r():this.play(),$n(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return Hr(t)}(this,t)),this.cache_.source=fn({},e,{src:t,type:n});for(var r=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var c=st(o[s]);i.push(c),c.src&&c.src===t&&a.push(c.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Ue.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){_t(e)&&this.controls_&&(this.paused()?Zn(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=a.a[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in Ur)return function(e,t,n,r){return t[n](e.reduce(Vr(n),r))}(this.middleware_,this.tech_,e,t);if(e in Mr)return Dr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Ue(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Br)return function(e,t,n){return e.reduceRight(Vr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Mr)return Dr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Ue("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Ue("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Ue(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Zn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Bn&&!Dn||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Fn(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Fn(0,0)),e},n.bufferedPercent=function(){return Hn(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||i.a.Promise;if(t){var n=this;return new t((function(t,r){function i(){n.off("fullscreenerror",a),n.off("fullscreenchange",o)}function o(){i(),t()}function a(e,t){i(),r(t)}n.one("fullscreenchange",o),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(e);if(s)return s.then(i,i),s}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||i.a.Promise;if(e){var t=this;return new e((function(e,n){function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i)}function i(){r(),e()}function o(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);var a=t.exitFullscreenHelper_();if(a)return a.then(r,r),a}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=a.a[this.fsApi_.exitFullscreen]();return t&&t.then((function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,Ft(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",rt(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){m.a.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ht(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,it(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in a.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return a.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return m.a.isEventKey(e,"f")}:n,i=t.muteKey,o=void 0===i?function(e){return m.a.isEventKey(e,"m")}:i,s=t.playPauseKey,c=void 0===s?function(e){return m.a.isEventKey(e,"k")||m.a.isEventKey(e,"Space")}:s;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var u=mn.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),mn.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(c.call(this,e)){e.preventDefault(),e.stopPropagation(),mn.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=xr.getTech(i);if(o||(o=mn.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else Ue.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map((function(e){return[e,xr.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Ue.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var r;return e.some((function(e){return t.some((function(t){if(r=n(e,t))return!0}))})),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},n.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):We(t)&&n.push(t)})),t=n}else t="string"==typeof t&&t.trim()?[zr({src:t})]:We(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[zr(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),Nr(this,n[0],(function(e,r){var i,o;if(t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());i=r,o=t.tech_,i.forEach((function(e){return e.setTech&&e.setTech(o)}))}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},n.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,ln(t)!==ln(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready((function(){r.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i.a.Promise;this.paused()||!t?this.doReset_():Zn(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),$t(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Xn(e),this.addClass("vjs-error"),Ue.error("(CODE:"+this.error_.code+" "+Xn.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=Yt(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",(function(){r(),this.clearInterval(e),e=this.setInterval(r,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())})),this.on("mouseup",i),this.on("mouseleave",i);var o,a=this.getChild("controlBar");!a||Dn||Cn||(a.on("mouseenter",(function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),$t(this)&&this.trigger("languagechange"))},n.languages=function(){return fn(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=fn(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=fn(r)).player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new nr(this,t);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<ko.length;n++){var r=ko[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Po[e]),this.addClass(Po[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=ze({},Ao,e),this.updateCurrentBreakpoint_()),ze(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Po[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=fn(e);var r=this.cache_.media,i=r.artwork,o=r.poster,a=r.src,s=r.textTracks;!i&&o&&(this.cache_.media.artwork=[{src:o,type:Hr(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Hr(t.poster)}]),t}return fn(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=st(e),r=n["data-setup"];if(nt(e,"vjs-fill")&&(n.fill=!0),nt(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=h()(r||"{}"),o=i[0],a=i[1];o&&Ue.error(o),ze(n,a)}if(ze(t,n),e.hasChildNodes())for(var s=e.childNodes,c=0,u=s.length;c<u;c++){var l=s[c],f=l.nodeName.toLowerCase();"source"===f?t.sources.push(st(l)):"track"===f&&t.tracks.push(st(l))}return t},n.flexNotSupported_=function(){var e=a.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},t}(mn);Ir.names.forEach((function(e){var t=Ir[e];Io.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Io.prototype.crossorigin=Io.prototype.crossOrigin,Io.players={};var xo=i.a.navigator;Io.prototype.options_={techOrder:xr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:xo&&(xo.languages&&xo.languages[0]||xo.userLanguage||xo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Io.prototype[e]=function(){return this.techGet_(e)}})),Eo.forEach((function(e){Io.prototype["handleTech"+ln(e)+"_"]=function(){return this.trigger(e)}})),mn.registerComponent("Player",Io);var Lo={},Ro=function(e){return Lo.hasOwnProperty(e)},jo=function(e){return Ro(e)?Lo[e]:void 0},No=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Do=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Bo=function(e,t){return t.prototype.name=e,function(){Do(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=S()(t,[this].concat(r));return this[e]=function(){return o},Do(this,o.getEventHash()),o}},Uo=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),an(this),delete this.trigger,cn(this,this.constructor.defaultState),No(t,this.name),this.dispose=Yt(this,this.dispose),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),zt(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Bo(e,Lo[e])},e.isBasic=function(t){var n="string"==typeof t?jo(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Ro(t))Ue.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Io.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Lo[t]=n,"plugin"!==t&&(e.isBasic(n)?Io.prototype[t]=function(e,t){var n=function(){Do(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return No(this,e),Do(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Io.prototype[t]=Bo(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");Ro(e)&&(delete Lo[e],delete Io.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Lo)),e.forEach((function(e){var n=jo(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=jo(e);return t&&t.VERSION||""},e}();Uo.getPlugin=jo,Uo.BASE_PLUGIN_NAME="plugin",Uo.registerPlugin("plugin",Uo),Io.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Io.prototype.hasPlugin=function(e){return!!Ro(e)};var Mo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Vo(e,t,n){var r=Vo.getPlayer(e);if(r)return t&&Ue.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Ct("#"+Mo(e)):e;if(!Qe(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||Ue.warn("The element supplied is not included in the DOM"),t=t||{},Vo.hooks("beforesetup").forEach((function(e){var n=e(i,fn(t));We(n)&&!Array.isArray(n)?t=fn(t,n):Ue.error("please return an object in beforesetup hooks")}));var o=mn.getComponent("Player");return r=new o(i,t,n),Vo.hooks("setup").forEach((function(e){return e(r)})),r}if(Vo.hooks_={},Vo.hooks=function(e,t){return Vo.hooks_[e]=Vo.hooks_[e]||[],t&&(Vo.hooks_[e]=Vo.hooks_[e].concat(t)),Vo.hooks_[e]},Vo.hook=function(e,t){Vo.hooks(e,t)},Vo.hookOnce=function(e,t){Vo.hooks(e,[].concat(t).map((function(t){return function n(){return Vo.removeHook(e,n),t.apply(void 0,arguments)}})))},Vo.removeHook=function(e,t){var n=Vo.hooks(e).indexOf(t);return!(n<=-1)&&(Vo.hooks_[e]=Vo.hooks_[e].slice(),Vo.hooks_[e].splice(n,1),!0)},!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE&&Xe()){var Fo=Ct(".vjs-styles-defaults");if(!Fo){Fo=xt("vjs-styles-defaults");var Ho=Ct("head");Ho&&Ho.insertBefore(Fo,Ho.firstChild),Lt(Fo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Pt(1,Vo),Vo.VERSION="7.11.2",Vo.options=Io.prototype.options_,Vo.getPlayers=function(){return Io.players},Vo.getPlayer=function(e){var t,n=Io.players;if("string"==typeof e){var r=Mo(e),i=n[r];if(i)return i;t=Ct("#"+r)}else t=e;if(Qe(t)){var o=t,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},Vo.getAllPlayers=function(){return Object.keys(Io.players).map((function(e){return Io.players[e]})).filter(Boolean)},Vo.players=Io.players,Vo.getComponent=mn.getComponent,Vo.registerComponent=function(e,t){xr.isTech(t)&&Ue.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),mn.registerComponent.call(mn,e,t)},Vo.getTech=xr.getTech,Vo.registerTech=xr.registerTech,Vo.use=function(e,t){Lr[e]=Lr[e]||[],Lr[e].push(t)},Object.defineProperty(Vo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Vo.middleware,"TERMINATOR",{value:jr,writeable:!1,enumerable:!0}),Vo.browser=Un,Vo.TOUCH_ENABLED=Rn,Vo.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),T()(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},Vo.mergeOptions=fn,Vo.bind=Yt,Vo.registerPlugin=Uo.registerPlugin,Vo.deregisterPlugin=Uo.deregisterPlugin,Vo.plugin=function(e,t){return Ue.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Uo.registerPlugin(e,t)},Vo.getPlugins=Uo.getPlugins,Vo.getPlugin=Uo.getPlugin,Vo.getPluginVersion=Uo.getPluginVersion,Vo.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Vo.options.languages=fn(Vo.options.languages,((n={})[e]=t,n)),Vo.options.languages[e]},Vo.log=Ue,Vo.createLogger=Me,Vo.createTimeRange=Vo.createTimeRanges=Fn,Vo.formatTime=ii,Vo.setFormatTime=function(e){ri=e},Vo.resetFormatTime=function(){ri=ni},Vo.parseUrl=vr,Vo.isCrossOrigin=wr,Vo.EventTarget=Qt,Vo.on=Ft,Vo.one=Wt,Vo.off=Ht,Vo.trigger=zt,Vo.xhr=g.a,Vo.TextTrack=Tr,Vo.AudioTrack=Er,Vo.VideoTrack=Or,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Vo[e]=function(){return Ue.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Et[e].apply(null,arguments)}})),Vo.computedStyle=Ge,Vo.dom=Et,Vo.url=_r,Vo.defineLazyProperty=Co;
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("moment"),require("Marionette"),require("ReactRedux"),require("ReactDOM"),require("Handlebars"),require("FontAwesome"),require("ReactTransitionGroup"),require("ReactCustomScrollbars"),require("Redux"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),require("ReactIntersectionObserver"),require("SortableHOC"),require("ImmersiveReader"),require("Autosuggest"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","ReactBootstrap","moment","Marionette","ReactRedux","ReactDOM","Handlebars","FontAwesome","ReactTransitionGroup","ReactCustomScrollbars","Redux","reactDropzone","Polyglot","DOMPurify","ReactIntersectionObserver","SortableHOC","ImmersiveReader","Autosuggest","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("ReactBootstrap"),require("moment"),require("Marionette"),require("ReactRedux"),require("ReactDOM"),require("Handlebars"),require("FontAwesome"),require("ReactTransitionGroup"),require("ReactCustomScrollbars"),require("Redux"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),require("ReactIntersectionObserver"),require("SortableHOC"),require("ImmersiveReader"),require("Autosuggest"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.ReactBootstrap,e.moment,e.Marionette,e.ReactRedux,e.ReactDOM,e.Handlebars,e.FontAwesome,e.ReactTransitionGroup,e.ReactCustomScrollbars,e.Redux,e.reactDropzone,e.Polyglot,e.DOMPurify,e.ReactIntersectionObserver,e.SortableHOC,e.ImmersiveReader,e.Autosuggest,e.marked)}(window,(function(e,t,n,r,i,o,a,s,c,u,l,f,p,d,h,y,m,v,g,b,w){return function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&c.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(u&&u(t);c.length;)c.shift()()}var n={},r={30:0},i={30:0};function o(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,o),r.l=!0,r.exports}o.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,3:1,4:1,6:1,7:1,8:1,9:1,10:1,11:1,12:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,32:1,33:1,34:1,35:1,36:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,49:1,50:1,51:1,52:1,53:1,54:1,55:1,56:1,57:1,58:1,59:1,60:1,61:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:1,75:1,76:1,77:1,78:1,79:1,80:1,83:1,85:1,87:1,93:1,94:1,95:1,100:1,102:1,103:1,104:1,107:1,108:1,110:1,111:1,112:1,113:1,114:1,115:1,116:1,117:1,118:1,119:1,124:1,125:1,126:1,127:1,133:1,134:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var i="css/"+e+"-lite-"+{0:"12ab1b2117",1:"31d6cfe0d1",2:"31d6cfe0d1",3:"e389fa3836",4:"6275209312",5:"31d6cfe0d1",6:"6004e0a317",7:"c3e1dbd605",8:"bc5b087c76",9:"cbd9c15409",10:"fbeab97a68",11:"9c5dc63a77",12:"10b57f05e6",13:"31d6cfe0d1",14:"31d6cfe0d1",15:"ec1a5f8d9a",16:"c6322536aa",17:"9a7efd5b02",18:"b11840817b",19:"4a8376d820",20:"28cf9b0c3c",21:"313bd12cbc",22:"15769122b1",23:"9704770406",24:"239fc9777b",25:"3bd36e77bd",26:"c352c306bb",27:"31d6cfe0d1",28:"31d6cfe0d1",29:"31d6cfe0d1",32:"278dbb73fc",33:"278dbb73fc",34:"fb9eae4d42",35:"1dbcf32c1c",36:"d3545ad296",37:"d3545ad296",38:"bd3fd59033",39:"fac641a0a4",40:"43fe16d571",41:"43fe16d571",42:"492d27a0fc",43:"9a09bda26b",44:"20ec74b789",45:"4abdb16782",46:"49ee1294f0",47:"e8745e9a52",48:"2d33672616",49:"3274efb40b",50:"cc8a3d3d3a",51:"4a8376d820",52:"a1bdf62146",53:"697312932c",54:"7ead5d197b",55:"60fcc5292f",56:"690feb452d",57:"74c77d0cbd",58:"4be057dddd",59:"9a94c2bfcd",60:"2ee776294c",61:"aae95b8739",62:"31d6cfe0d1",63:"1696cbd6bd",64:"6a27216e4e",65:"eae2a4d798",66:"e957c3cfa0",67:"fb877ba4eb",68:"c7c532a2f6",69:"9ea4b2ab88",70:"3022a7f655",71:"d6cd54b11b",72:"a7bdb9e6a2",73:"811866a0e6",74:"032d7c5b68",75:"032d7c5b68",76:"4068292bca",77:"794d3729e3",78:"c08e97ad22",79:"e31b2b8630",80:"f429a540cb",81:"31d6cfe0d1",82:"31d6cfe0d1",83:"b4c6580112",84:"31d6cfe0d1",85:"9e510e8bc1",86:"31d6cfe0d1",87:"4ed16e028d",88:"31d6cfe0d1",89:"31d6cfe0d1",90:"31d6cfe0d1",91:"31d6cfe0d1",92:"31d6cfe0d1",93:"f476beb875",94:"1e90b333ab",95:"602832f68a",96:"31d6cfe0d1",97:"31d6cfe0d1",98:"31d6cfe0d1",99:"31d6cfe0d1",100:"e8d0ed4921",101:"31d6cfe0d1",102:"7ab95ddac2",103:"42a5dcfa34",104:"4a91cb7ba9",105:"31d6cfe0d1",106:"31d6cfe0d1",107:"c7c532a2f6",108:"30208db4b8",109:"31d6cfe0d1",110:"f476beb875",111:"d286b282d6",112:"40eedf96d7",113:"4ea4ab4f82",114:"c5e12d3f1d",115:"6e036f7110",116:"efd9c7cfc9",117:"bca705add4",118:"30208db4b8",119:"30208db4b8",120:"31d6cfe0d1",121:"31d6cfe0d1",122:"31d6cfe0d1",123:"31d6cfe0d1",124:"14218ac613",125:"5d9ea175a9",126:"8fc51c67f9",127:"fdc3ceff80",128:"31d6cfe0d1",129:"31d6cfe0d1",130:"31d6cfe0d1",131:"31d6cfe0d1",132:"31d6cfe0d1",133:"859d0b7430",134:"a199ee0f72",135:"31d6cfe0d1",136:"31d6cfe0d1",137:"31d6cfe0d1",138:"31d6cfe0d1",139:"31d6cfe0d1",140:"31d6cfe0d1",141:"31d6cfe0d1",142:"31d6cfe0d1",143:"31d6cfe0d1",144:"31d6cfe0d1",145:"31d6cfe0d1",146:"31d6cfe0d1",147:"31d6cfe0d1",148:"31d6cfe0d1",149:"31d6cfe0d1",150:"31d6cfe0d1",151:"31d6cfe0d1",152:"31d6cfe0d1",153:"31d6cfe0d1",154:"31d6cfe0d1",155:"31d6cfe0d1",156:"31d6cfe0d1",157:"31d6cfe0d1",158:"31d6cfe0d1",159:"31d6cfe0d1",160:"31d6cfe0d1",161:"31d6cfe0d1",162:"31d6cfe0d1",163:"31d6cfe0d1",164:"31d6cfe0d1",165:"31d6cfe0d1",166:"31d6cfe0d1",167:"31d6cfe0d1",168:"31d6cfe0d1",169:"31d6cfe0d1",170:"31d6cfe0d1",171:"31d6cfe0d1",172:"31d6cfe0d1"}[e]+".chunk.css",a=o.p+i,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var u=(f=s[c]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(u===i||u===a))return t()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){var f;if((u=(f=l[c]).getAttribute("data-href"))===i||u===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var i=t&&t.target&&t.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=i,delete r[e],p.parentNode.removeChild(p),n(o)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=function(e){return o.p+"scripts/"+e+"-"+{0:"50962ce391",1:"e5e5ff7ac4",2:"f7e195dfd6",3:"5016654e6b",4:"129184b3b6",5:"7f77651d01",6:"aa2b69c7db",7:"34f4c5a43a",8:"53e0fa1f62",9:"0100d6de34",10:"05cc3c295f",11:"11867f4707",12:"408edf9a69",13:"ea26ce3fee",14:"a33e1a6394",15:"43c8547460",16:"3bf018df63",17:"71a0793a50",18:"775d4b286f",19:"0f9bd5e3d7",20:"abdf1d2e34",21:"7264628637",22:"6600b2f24b",23:"721ed4d3b3",24:"49bdd92321",25:"ea4c995c40",26:"58d84c903c",27:"af203864fe",28:"5ffd1e78c7",29:"d555844800",32:"ff92746cef",33:"d593571dc5",34:"15d72229a7",35:"3334ef94b9",36:"5683c55555",37:"016e9c6b68",38:"9c74d97e83",39:"9bed53e087",40:"e4ef1f4352",41:"cc87bec4d6",42:"706f2695ed",43:"79b399bd8d",44:"c7fc4cf8fa",45:"0da9b574a0",46:"1efbff3e15",47:"6fea6edb2a",48:"e1c7bcb249",49:"9404b5c9d6",50:"f391b51652",51:"f251c418b7",52:"c23a514c0d",53:"b2a3c117af",54:"0899c48990",55:"d3791728cf",56:"2bab3810f3",57:"e69b5eda76",58:"af87f917c6",59:"38870470d5",60:"caaf58f7e4",61:"e522a3fe4d",62:"31e4c7a10e",63:"369bc8d14d",64:"651b4dcb42",65:"2307dca7b3",66:"468b1c6937",67:"2826b3c8a2",68:"977dc14a19",69:"a4808a0624",70:"4ea87b5283",71:"f3fcee25f1",72:"290184d42e",73:"4bcefda766",74:"23459077fc",75:"e7169c217e",76:"8fa1288375",77:"2e545ff349",78:"76bfedc6a1",79:"b79e3c5cba",80:"b4c64ea0c0",81:"a484e53624",82:"4e533db0f9",83:"0eef66bbf8",84:"ba280bd11c",85:"cdcd4c5333",86:"a40a01ab9b",87:"92dec1fe91",88:"3b76944fba",89:"3812ce0855",90:"921d89f016",91:"e4aae9db7a",92:"8ee5a32d47",93:"647af71f79",94:"01511f5900",95:"3eaec9b112",96:"a787c5307a",97:"df9ee903b8",98:"aa65094047",99:"b6a22f6b74",100:"c1fdd48bbc",101:"da5a7adca2",102:"cf16896e3f",103:"f58128357d",104:"1349adaf5e",105:"530f37acfc",106:"35bbdb1c22",107:"bc64b1e311",108:"ff6c3150d6",109:"9bdffb9f02",110:"cb84accca9",111:"9fe2f9b83b",112:"4f616469d7",113:"c97df6c7e6",114:"47d92eaf49",115:"d49c99d7a9",116:"40507d4be2",117:"91c2205bd4",118:"f29c23a450",119:"a5597b7a28",120:"8bbddd1bab",121:"cec74efc19",122:"06cb38b04d",123:"662a199bdd",124:"d1df390a59",125:"39421786a3",126:"ef710c7368",127:"ccc6237481",128:"477837985b",129:"097ee2bc11",130:"2e43b33453",131:"4787f695f8",132:"24cd52665d",133:"d0568adf11",134:"72511974f3",135:"c5834d558b",136:"28ad73ce03",137:"d7cdb0ef4e",138:"50882b0f78",139:"b33d638600",140:"24b8389c5c",141:"5c02052826",142:"7a62aeb762",143:"c0fa1fcdb1",144:"bde36410f0",145:"6ccbe3d4a8",146:"af3e61797a",147:"810a01cf57",148:"9d8fbf3b0f",149:"e47da4e703",150:"8bf527cbca",151:"1024076cb3",152:"a33c6e9769",153:"eabc0b8771",154:"7ee887f6a2",155:"85ebf7f1e9",156:"539fa712a4",157:"d8f243b3d2",158:"ea1981b649",159:"308b801be3",160:"6025f9d83d",161:"646ac15efa",162:"9284a277a3",163:"c899886f11",164:"55a4ece76f",165:"2e2a5e8881",166:"fcb85b2346",167:"f05cd06076",168:"226251ec4c",169:"3ff597f303",170:"d320f70e7a",171:"afc8df0b59",172:"db4493fe29"}[e]+"-lite.chunk.js"}(e);var u=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(l);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;u.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",u.name="ChunkLoadError",u.type=r,u.request=o,n[1](u)}i[e]=void 0}};var l=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var u=s;return o(o.s=1070)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(62);n.d(t,"AssocDescriptor",(function(){return r.a})),n.d(t,"ClickDescriptor",(function(){return r.b})),n.d(t,"EmailDescriptor",(function(){return r.c})),n.d(t,"EntityType",(function(){return r.d})),n.d(t,"EventDefaultValue",(function(){return r.e})),n.d(t,"EventVersion",(function(){return r.f})),n.d(t,"FilterDescriptor",(function(){return r.g})),n.d(t,"InteractionType",(function(){return r.h})),n.d(t,"InteractionTypeDescriptor",(function(){return r.i})),n.d(t,"InteractiveSessionDescriptor",(function(){return r.j})),n.d(t,"LocationContext",(function(){return r.k})),n.d(t,"OperationDescriptor",(function(){return r.l})),n.d(t,"PlayerDescriptor",(function(){return r.m})),n.d(t,"PublishDescriptor",(function(){return r.n})),n.d(t,"SearchQueryType",(function(){return r.o})),n.d(t,"ShareDescriptors",(function(){return r.p})),n.d(t,"ToggleDescriptor",(function(){return r.q})),n.d(t,"UpgradeBannerDescriptors",(function(){return r.r})),n.d(t,"UserAction",(function(){return r.s})),n.d(t,"VerifyEmailDescriptor",(function(){return r.t})),n.d(t,"VideoActionDescriptor",(function(){return r.u})),n.d(t,"WorkflowPhase",(function(){return r.v}));n(313),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451)},function(e,t,n){"use strict";var r=n(6),i=n.n(r),o=n(14),a=n.n(o),s=n(179),c=n.n(s),u=n(25),l=n.n(u),f=(n(806),n(807),n(16)),p=n.n(f),d=n(772),h=n.n(d),y=n(32),m=n.n(y),v=n(370),g=n.n(v),b=n(371),w=n.n(b),_=n(773),S=n.n(_),C=n(774),T=n.n(C),E=n(230),O=n.n(E),k=n(325),P=n.n(k),A=n(319),I=n.n(A),x=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return p()(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(P.a),L=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),r={},i=n.length;i--;)""!==n[i]&&((t=/([^=]*)=(.*)/.exec(n[i]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),r[t[0]]=t[1]);return r},R=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}p()(t,e);var n=t.prototype;return n.push=function(e){var t,n,r=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((function(t,n){var r=n(e);return r===e?t:t.concat([r])}),[e]).forEach((function(e){for(var i=0;i<r.customParsers.length;i++)if(r.customParsers[i].call(r,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))r.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void r.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#ZEN-TOTAL-DURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"totalduration"},t[1]&&(n.duration=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void r.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void r.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?([0-9.]*)?@?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"byterange"},t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),void r.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var o=L(t[1]);if(o.URI&&(n.uri=o.URI),o.BYTERANGE){var a=o.BYTERANGE.split("@"),s=a[0],c=a[1];n.byterange={},s&&(n.byterange.length=parseInt(s,10)),c&&(n.byterange.offset=parseInt(c,10))}}r.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=L(t[1]),n.attributes.RESOLUTION){var u=n.attributes.RESOLUTION.split("x"),l={};u[0]&&(l.width=parseInt(u[0],10)),u[1]&&(l.height=parseInt(u[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}r.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=L(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))r.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))r.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void r.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=L(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void r.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=L(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void r.trigger("data",n);r.trigger("data",{type:"tag",data:e.slice(4)})}}}else r.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,r=e.customType,i=e.dataParser,o=e.segment;"function"!=typeof i&&(i=function(e){return e}),this.customParsers.push((function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:i(e),customType:r,segment:o}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(P.a),j=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new x,t.parseStream=new R,t.lineStream.pipe(t.parseStream);var n,r,i=l()(t),o=[],a={},s=function(){},u={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},f=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var p=0;return t.parseStream.on("data",(function(e){var t,l;({tag:function(){({"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(a.byterange=t,t.length=e.length,"offset"in e||(e.offset=p)),"offset"in e&&(a.byterange=t,t.offset=e.offset),p=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(a.duration=e.duration),0===e.duration&&(a.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=o},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?void(this.manifest.contentProtection={"com.widevine.alpha":{attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:I()(e.attributes.URI.split(",")[1])}}):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),r={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(r.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else r=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,f=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={},e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange)},"stream-inf":function(){this.manifest.playlists=o,this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes?(a.attributes||(a.attributes={}),c()(a.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||u,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(l={default:/yes/i.test(e.attributes.DEFAULT)}).default?l.autoselect=!0:l.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(l.language=e.attributes.LANGUAGE),e.attributes.URI&&(l.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(l.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(l.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(l.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=l}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){f+=1,a.discontinuity=!0,this.manifest.discontinuityStarts.push(o.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),a.dateTimeString=e.dateTimeString,a.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):this.manifest.targetDuration=e.duration},totalduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid total duration: "+e.duration}):this.manifest.totalDuration=e.duration},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){a.cueOut=e.data},"cue-out-cont":function(){a.cueOutCont=e.data},"cue-in":function(){a.cueIn=e.data}}[e.tagType]||s).call(i)},uri:function(){a.uri=e.uri,o.push(a),this.manifest.targetDuration&&!("duration"in a)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),a.duration=this.manifest.targetDuration),r&&(a.key=r),a.timeline=f,n&&(a.map=n),a={}},comment:function(){},custom:function(){e.segment?(a.custom=a.custom||{},a.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(i)})),t}p()(t,e);var n=t.prototype;return n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(P.a),N=n(372),D=n(196),B=n.n(D),U=n(775),M=function(e){return!!e&&"object"==typeof e},V=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){return"object"!=typeof n||Object.keys(n).forEach((function(r){Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=t[r].concat(n[r]):M(t[r])&&M(n[r])?t[r]=e(t[r],n[r]):t[r]=n[r]})),t}),{})},F=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},H=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},z="INVALID_NUMBER_OF_PERIOD",W="DASH_EMPTY_MANIFEST",q="DASH_INVALID_XML",G="NO_BASE_URL",K="SEGMENT_TIME_UNSPECIFIED",Y="UNSUPPORTED_UTC_TIMING_SCHEME",X=function(e){var t=e.baseUrl,n=void 0===t?"":t,r=e.source,i=void 0===r?"":r,o=e.range,a=void 0===o?"":o,s=e.indexRange,c=void 0===s?"":s,u={uri:i,resolvedUri:O()(n||"",i)};if(a||c){var l=(a||c).split("-"),f=parseInt(l[0],10),p=parseInt(l[1],10);u.byterange={length:p-f+1,offset:f}}return u},Q={static:function(e){var t=e.duration,n=e.timescale,r=void 0===n?1:n,i=e.sourceDuration;return{start:0,end:Math.ceil(i/(t/r))}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,r=e.availabilityStartTime,i=e.timescale,o=void 0===i?1:i,a=e.duration,s=e.start,c=void 0===s?0:s,u=e.minimumUpdatePeriod,l=void 0===u?0:u,f=e.timeShiftBufferDepth,p=void 0===f?1/0:f,d=(t+n)/1e3,h=r+c,y=d+l-h,m=Math.ceil(y*o/a),v=Math.floor((d-h-p)*o/a),g=Math.floor((d-h)*o/a);return{start:Math.max(0,v),end:Math.min(m,g)}}},$=function(e){var t=e.type,n=void 0===t?"static":t,r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.sourceDuration,s=Q[n](e),c=function(e,t){for(var n=[],r=e;r<t;r++)n.push(r);return n}(s.start,s.end).map(function(e){return function(t,n){var r=e.duration,i=e.timescale,o=void 0===i?1:i,a=e.periodIndex,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:r/o,timeline:a,time:n*r}}}(e));if("static"===n){var u=c.length-1;c[u].duration=a-r/o*u}return c},Z=function(e){var t=e.baseUrl,n=e.initialization,r=void 0===n?{}:n,i=e.sourceDuration,o=e.indexRange,a=void 0===o?"":o,s=e.duration;if(!t)throw new Error(G);var c=X({baseUrl:t,source:r.sourceURL,range:r.range}),u=X({baseUrl:t,source:t,indexRange:a});if(u.map=c,s){var l=$(e);l.length&&(u.duration=l[0].duration,u.timeline=l[0].timeline)}else i&&(u.duration=i,u.timeline=0);return u.number=0,[u]},J=function(e,t,n){for(var r=e.sidx.map?e.sidx.map:null,i=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,s=a.offset+a.length,c=t.timescale,u=t.references.filter((function(e){return 1!==e.referenceType})),l=[],f=s+t.firstOffset,p=0;p<u.length;p++){var d=t.references[p],h=d.referencedSize,y=d.subsegmentDuration,m=Z({baseUrl:n,timescale:c,timeline:o,periodIndex:o,duration:y,sourceDuration:i,indexRange:f+"-"+(f+h-1)})[0];r&&(m.map=r),l.push(m),f+=h}return e.segments=l,e},ee=function(e){var t;return(t=e.reduce((function(e,t){var n,r=t.attributes.id+(t.attributes.lang||"");return e[r]?(t.segments[0]&&(t.segments[0].discontinuity=!0),(n=e[r].segments).push.apply(n,t.segments),t.attributes.contentProtection&&(e[r].attributes.contentProtection=t.attributes.contentProtection)):e[r]=t,e}),{}),Object.keys(t).map((function(e){return t[e]}))).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments,n="discontinuity",t.reduce((function(e,t,r){return t[n]&&e.push(r),e}),[])),e}))},te=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e){var r=e[n];if(r.sidx){var i=r.sidx.uri+"-"+(a=r.sidx.byterange,s=void 0,s=a.offset+a.length-1,a.offset+"-"+s),o=t[i]&&t[i].sidx;r.sidx&&o&&J(r,o,r.sidx.resolvedUri)}}var a,s;return e},ne=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,BANDWIDTH:n.bandwidth,CODECS:n.codecs},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},re=function(e){var t,n=e.attributes,r=e.segments;void 0===r&&(r=[{uri:n.baseUrl,timeline:n.periodIndex,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var i=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(i.CODECS=n.codecs),{attributes:i,uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:n.baseUrl||"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1}},ie=function(e){var t,n=e.attributes,r=e.segments,i=e.sidx,o={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===(n.type||"static"),timeline:n.periodIndex,resolvedUri:"",targetDuration:n.duration,segments:r,mediaSequence:r.length?r[0].number:1};return n.contentProtection&&(o.contentProtection=n.contentProtection),i&&(o.sidx=i),o},oe=function(e,t,n){var r;if(void 0===n&&(n={}),!e.length)return{};var i=e[0].attributes,o=i.sourceDuration,a=i.type,s=void 0===a?"static":a,c=i.suggestedPresentationDelay,u=i.minimumUpdatePeriod,l=ee(e.filter((function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType}))).map(ie),f=ee(e.filter((function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType}))),p=e.filter((function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType})),d={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(r={AUDIO:{},VIDEO:{}},r["CLOSED-CAPTIONS"]={},r.SUBTITLES={},r),uri:"",duration:o,playlists:te(l,n)};return u>=0&&(d.minimumUpdatePeriod=1e3*u),t&&(d.locations=t),"dynamic"===s&&(d.suggestedPresentationDelay=c),f.length&&(d.mediaGroups.AUDIO.audio=function(e,t){var n;void 0===t&&(t={});var r=e.reduce((function(e,r){var i=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"",a="main";if(o){var s=i?" ("+i+")":"";a=""+r.attributes.lang+s}return e[a]&&e[a].playlists[0].attributes.BANDWIDTH>r.attributes.bandwidth||(e[a]={language:o,autoselect:!0,default:"main"===i,playlists:te([ne(r)],t),uri:""},void 0===n&&"main"===i&&((n=r).default=!0)),e}),{});n||(r[Object.keys(r)[0]].default=!0);return r}(f,n)),p.length&&(d.mediaGroups.SUBTITLES.subs=function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var r=n.attributes.lang||"text";return e[r]||(e[r]={language:r,default:!1,autoselect:!1,playlists:te([re(n)],t),uri:""}),e}),{})}(p,n)),d},ae=function(e,t,n){var r=e.NOW,i=e.clientOffset,o=e.availabilityStartTime,a=e.timescale,s=void 0===a?1:a,c=e.start,u=void 0===c?0:c,l=e.minimumUpdatePeriod,f=(r+i)/1e3+(void 0===l?0:l)-(o+u);return Math.ceil((f*s-t)/n)},se=function(e,t){for(var n=e.type,r=void 0===n?"static":n,i=e.minimumUpdatePeriod,o=void 0===i?0:i,a=e.media,s=void 0===a?"":a,c=e.sourceDuration,u=e.timescale,l=void 0===u?1:u,f=e.startNumber,p=void 0===f?1:f,d=e.periodIndex,h=[],y=-1,m=0;m<t.length;m++){var v=t[m],g=v.d,b=v.r||0,w=v.t||0;y<0&&(y=w),w&&w>y&&(y=w);var _=void 0;if(b<0){var S=m+1;_=S===t.length?"dynamic"===r&&o>0&&s.indexOf("$Number$")>0?ae(e,y,g):(c*l-y)/g:(t[S].t-y)/g}else _=b+1;for(var C=p+h.length+_,T=p+h.length;T<C;)h.push({number:T,duration:g/l,time:y,timeline:d}),y+=g,T++}return h},ce=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,ue=function(e,t){return e.replace(ce,function(e){return function(t,n,r,i){if("$$"===t)return"$";if(void 0===e[n])return t;var o=""+e[n];return"RepresentationID"===n?o:(i=r?parseInt(i,10):1,o.length>=i?o:""+new Array(i-o.length+1).join("0")+o)}}(t))},le=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},r=e.initialization,i=void 0===r?{sourceURL:"",range:""}:r,o=X({baseUrl:e.baseUrl,source:ue(i.sourceURL,n),range:i.range});return function(e,t){return e.duration||t?e.duration?$(e):se(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodIndex}]}(e,t).map((function(t){n.Number=t.number,n.Time=t.time;var r=ue(e.media||"",n);return{uri:r,timeline:t.timeline,duration:t.duration,resolvedUri:O()(e.baseUrl||"",r),map:o,number:t.number}}))},fe=function(e,t){var n=e.duration,r=e.segmentUrls,i=void 0===r?[]:r;if(!n&&!t||n&&t)throw new Error(K);var o,a=i.map((function(t){return function(e,t){var n=e.baseUrl,r=e.initialization,i=void 0===r?{}:r,o=X({baseUrl:n,source:i.sourceURL,range:i.range}),a=X({baseUrl:n,source:t.media,range:t.mediaRange});return a.map=o,a}(e,t)}));return n&&(o=$(e)),t&&(o=se(e,t)),o.map((function(e,t){if(a[t]){var n=a[t];return n.timeline=e.timeline,n.duration=e.duration,n.number=e.number,n}})).filter((function(e){return e}))},pe=function(e){var t,n,r=e.attributes,i=e.segmentInfo;i.template?(n=le,t=V(r,i.template)):i.base?(n=Z,t=V(r,i.base)):i.list&&(n=fe,t=V(r,i.list));var o={attributes:r};if(!n)return o;var a=n(t,i.timeline);if(t.duration){var s=t,c=s.duration,u=s.timescale,l=void 0===u?1:u;t.duration=c/l}else a.length?t.duration=a.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return o.attributes=t,o.segments=a,i.base&&t.indexRange&&(o.sidx=a[0],o.segments=[]),o},de=function(e,t){return H(e.childNodes).filter((function(e){return e.tagName===t}))},he=function(e){return e.textContent.trim()},ye=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],c=n[5];return 31536e3*parseFloat(r||0)+2592e3*parseFloat(i||0)+86400*parseFloat(o||0)+3600*parseFloat(a||0)+60*parseFloat(s||0)+parseFloat(c||0)},me={mediaPresentationDuration:function(e){return ye(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return ye(e)},suggestedPresentationDelay:function(e){return ye(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return ye(e)},start:function(e){return ye(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?ye(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},ve=function(e){return e&&e.attributes?H(e.attributes).reduce((function(e,t){var n=me[t.name]||me.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},ge={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},be=function(e,t){return t.length?F(e.map((function(e){return t.map((function(t){return O()(e,he(t))}))}))):e},we=function(e){var t=de(e,"SegmentTemplate")[0],n=de(e,"SegmentList")[0],r=n&&de(n,"SegmentURL").map((function(e){return V({tag:"SegmentURL"},ve(e))})),i=de(e,"SegmentBase")[0],o=n||t,a=o&&de(o,"SegmentTimeline")[0],s=n||i||t,c=s&&de(s,"Initialization")[0],u=t&&ve(t);u&&c?u.initialization=c&&ve(c):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});var l={template:u,timeline:a&&de(a,"S").map((function(e){return ve(e)})),list:n&&V(ve(n),{segmentUrls:r,initialization:ve(c)}),base:i&&V(ve(i),{initialization:ve(c)})};return Object.keys(l).forEach((function(e){l[e]||delete l[e]})),l},_e=function(e,t,n){return function(r){var i=ve(r),o=be(t,de(r,"BaseURL")),a=de(r,"Role")[0],s={role:ve(a)},c=V(e,i,s),u=de(r,"ContentProtection").reduce((function(e,t){var n=ve(t),r=ge[n.schemeIdUri];if(r){e[r]={attributes:n};var i=de(t,"cenc:pssh")[0];if(i){var o=he(i),a=o&&I()(o);e[r].pssh=a}}return e}),{});Object.keys(u).length&&(c=V(c,{contentProtection:u}));var l=we(r),f=de(r,"Representation"),p=V(n,l);return F(f.map(function(e,t,n){return function(r){var i=de(r,"BaseURL"),o=be(t,i),a=V(e,ve(r)),s=we(r);return o.map((function(e){return{segmentInfo:V(n,s),attributes:V(a,{baseUrl:e})}}))}}(c,o,p)))}},Se=function(e,t){return function(n,r){var i=be(t,de(n,"BaseURL")),o=ve(n),a=parseInt(o.id,10),s=B.a.isNaN(a)?r:a,c=V(e,{periodIndex:s}),u=de(n,"AdaptationSet"),l=we(n);return F(u.map(_e(c,i,l)))}},Ce=function(e){if(""===e)throw new Error(W);var t,n,r=new U.DOMParser;try{n=(t=r.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(q);return n},Te=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,r=n.manifestUri,i=void 0===r?"":r,o=n.NOW,a=void 0===o?Date.now():o,s=n.clientOffset,c=void 0===s?0:s,u=de(e,"Period");if(!u.length)throw new Error(z);var l=de(e,"Location"),f=ve(e),p=be([i],de(e,"BaseURL"));return f.sourceDuration=f.mediaPresentationDuration||0,f.NOW=a,f.clientOffset=c,l.length&&(f.locations=l.map(he)),{locations:f.locations,representationInfo:F(u.map(Se(f,p)))}}(Ce(e),t),r=n.representationInfo.map(pe);return oe(r,n.locations,t.sidxMapping)},Ee=function(e){return function(e){var t=de(e,"UTCTiming")[0];if(!t)return null;var n=ve(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:throw new Error(Y)}return n}(Ce(e))},Oe=J,ke=n(776),Pe=n.n(ke),Ae=n(202),Ie=n(326),xe=n(777),Le=n.n(xe),Re=n(201),je=n(373),Ne=n.n(je),De=n(68),Be=[];var Ue=function e(t){var n,r="info",o=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n("log",r,t)};return n=function(e,t){return function(n,r,o){var a=t.levels[r],s=new RegExp("^("+a+")$");if("log"!==n&&o.unshift(n.toUpperCase()+":"),o.unshift(e+":"),Be){Be.push([].concat(o));var c=Be.length-1e3;Be.splice(0,c>0?c:0)}if(i.a.console){var u=i.a.console[n];u||"debug"!==n||(u=i.a.console.info||i.a.console.log),u&&a&&s.test(n)&&u[Array.isArray(o)?"apply":"call"](i.a.console,o)}}}(t,o),o.createLogger=function(n){return e(t+": "+n)},o.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:r},o.level=function(e){if("string"==typeof e){if(!o.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');r=e}return r},(o.history=function(){return Be?[].concat(Be):[]}).filter=function(e){return(Be||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},o.history.clear=function(){Be&&(Be.length=0)},o.history.disable=function(){null!==Be&&(Be.length=0,Be=null)},o.history.enable=function(){null===Be&&(Be=[])},o.error=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("error",r,t)},o.warn=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("warn",r,t)},o.debug=function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return n("debug",r,t)},o}("VIDEOJS"),Me=Ue.createLogger,Ve=Object.prototype.toString,Fe=function(e){return We(e)?Object.keys(e):[]};function He(e,t){Fe(e).forEach((function(n){return t(e[n],n)}))}function ze(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return Object.assign?c.a.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&He(t,(function(t,n){e[n]=t}))})),e)}function We(e){return!!e&&"object"==typeof e}function qe(e){return We(e)&&"[object Object]"===Ve.call(e)&&e.constructor===Object}function Ge(e,t){if(!e||!t)return"";if("function"==typeof i.a.getComputedStyle){var n=i.a.getComputedStyle(e);return n?n.getPropertyValue(t)||n[t]:""}return""}function Ke(e){return"string"==typeof e&&Boolean(e.trim())}function Ye(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Xe(){return a.a===i.a.document}function Qe(e){return We(e)&&1===e.nodeType}function $e(){try{return i.a.parent!==i.a.self}catch(e){return!0}}function Ze(e){return function(t,n){if(!Ke(t))return a.a[e](null);Ke(n)&&(n=a.a.querySelector(n));var r=Qe(n)?n:a.a;return r[e]&&r[e](t)}}function Je(e,t,n,r){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var i=a.a.createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Ue.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),i.setAttribute(e,n)):"textContent"===e?et(i,n):i[e]===n&&"tabIndex"!==e||(i[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){i.setAttribute(e,n[e])})),r&&bt(i,r),i}function et(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function tt(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function nt(e,t){return Ye(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function rt(e,t){return e.classList?e.classList.add(t):nt(e,t)||(e.className=(e.className+" "+t).trim()),e}function it(e,t){return e.classList?e.classList.remove(t):(Ye(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e}function ot(e,t,n){var r=nt(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!r),n!==r)return n?rt(e,t):it(e,t),e}function at(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var r=t[n];null==r||!1===r?e.removeAttribute(n):e.setAttribute(n,!0===r?"":r)}))}function st(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var r=e.attributes,i=r.length-1;i>=0;i--){var o=r[i].name,a=r[i].value;"boolean"!=typeof e[o]&&-1===n.indexOf(","+o+",")||(a=null!==a),t[o]=a}return t}function ct(e,t){return e.getAttribute(t)}function ut(e,t,n){e.setAttribute(t,n)}function lt(e,t){e.removeAttribute(t)}function ft(){a.a.body.focus(),a.a.onselectstart=function(){return!1}}function pt(){a.a.onselectstart=function(){return!0}}function dt(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Ge(e,"height"))),n.width||(n.width=parseFloat(Ge(e,"width"))),n}}function ht(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};var t=e.offsetWidth,n=e.offsetHeight,r=0,i=0;do{r+=e.offsetLeft,i+=e.offsetTop,e=e.offsetParent}while(e);return{left:r,top:i,width:t,height:n}}function yt(e,t){var n={},r=ht(t.target),i=ht(e),o=i.width,a=i.height,s=t.offsetY-(i.top-r.top),c=t.offsetX-(i.left-r.left);return t.changedTouches&&(c=t.changedTouches[0].pageX-i.left,s=t.changedTouches[0].pageY+i.top),n.y=1-Math.max(0,Math.min(1,s/a)),n.x=Math.max(0,Math.min(1,c/o)),n}function mt(e){return We(e)&&3===e.nodeType}function vt(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function gt(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),Qe(e)||mt(e)?e:"string"==typeof e&&/\S/.test(e)?a.a.createTextNode(e):void 0})).filter((function(e){return e}))}function bt(e,t){return gt(t).forEach((function(t){return e.appendChild(t)})),e}function wt(e,t){return bt(vt(e),t)}function _t(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var St,Ct=Ze("querySelector"),Tt=Ze("querySelectorAll"),Et=Object.freeze({__proto__:null,isReal:Xe,isEl:Qe,isInFrame:$e,createEl:Je,textContent:et,prependTo:tt,hasClass:nt,addClass:rt,removeClass:it,toggleClass:ot,setAttributes:at,getAttributes:st,getAttribute:ct,setAttribute:ut,removeAttribute:lt,blockTextSelection:ft,unblockTextSelection:pt,getBoundingClientRect:dt,findPosition:ht,getPointerPosition:yt,isTextNode:mt,emptyEl:vt,normalizeContent:gt,appendContent:bt,insertContent:wt,isSingleLeftClick:_t,$:Ct,$$:Tt}),Ot=!1,kt=function(){if(Xe()&&!1!==St.options.autoSetup){var e=Array.prototype.slice.call(a.a.getElementsByTagName("video")),t=Array.prototype.slice.call(a.a.getElementsByTagName("audio")),n=Array.prototype.slice.call(a.a.getElementsByTagName("video-js")),r=e.concat(t,n);if(r&&r.length>0)for(var i=0,o=r.length;i<o;i++){var s=r[i];if(!s||!s.getAttribute){Pt(1);break}void 0===s.player&&null!==s.getAttribute("data-setup")&&St(s)}else Ot||Pt(1)}};function Pt(e,t){t&&(St=t),i.a.setTimeout(kt,e)}function At(){Ot=!0,i.a.removeEventListener("load",At)}Xe()&&("complete"===a.a.readyState?At():i.a.addEventListener("load",At));var It,xt=function(e){var t=a.a.createElement("style");return t.className=e,t},Lt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},Rt=3;function jt(){return Rt++}i.a.WeakMap||(It=function(){function e(){this.vdata="vdata"+Math.floor(i.a.performance&&i.a.performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||jt();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Ue("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var Nt,Dt=i.a.WeakMap?new WeakMap:new It;function Bt(e,t){if(Dt.has(e)){var n=Dt.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&Dt.delete(e)}}function Ut(e,t,n,r){n.forEach((function(n){e(t,n,r)}))}function Mt(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped){var r=e||i.a.event;for(var o in e={},r)"layerX"!==o&&"layerY"!==o&&"keyLocation"!==o&&"webkitMovementX"!==o&&"webkitMovementY"!==o&&("returnValue"===o&&r.preventDefault||(e[o]=r[o]));if(e.target||(e.target=e.srcElement||a.a),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){r.preventDefault&&r.preventDefault(),e.returnValue=!1,r.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){r.stopPropagation&&r.stopPropagation(),e.cancelBubble=!0,r.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){r.stopImmediatePropagation&&r.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var s=a.a.documentElement,c=a.a.body;e.pageX=e.clientX+(s&&s.scrollLeft||c&&c.scrollLeft||0)-(s&&s.clientLeft||c&&c.clientLeft||0),e.pageY=e.clientY+(s&&s.scrollTop||c&&c.scrollTop||0)-(s&&s.clientTop||c&&c.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var Vt=["touchstart","touchmove"];function Ft(e,t,n){if(Array.isArray(t))return Ut(Ft,e,t,n);Dt.has(e)||Dt.set(e,{});var r=Dt.get(e);if(r.handlers||(r.handlers={}),r.handlers[t]||(r.handlers[t]=[]),n.guid||(n.guid=jt()),r.handlers[t].push(n),r.dispatcher||(r.disabled=!1,r.dispatcher=function(t,n){if(!r.disabled){t=Mt(t);var i=r.handlers[t.type];if(i)for(var o=i.slice(0),a=0,s=o.length;a<s&&!t.isImmediatePropagationStopped();a++)try{o[a].call(e,t,n)}catch(e){Ue.error(e)}}}),1===r.handlers[t].length)if(e.addEventListener){var o=!1;(function(){if("boolean"!=typeof Nt){Nt=!1;try{var e=Object.defineProperty({},"passive",{get:function(){Nt=!0}});i.a.addEventListener("test",null,e),i.a.removeEventListener("test",null,e)}catch(e){}}return Nt})()&&Vt.indexOf(t)>-1&&(o={passive:!0}),e.addEventListener(t,r.dispatcher,o)}else e.attachEvent&&e.attachEvent("on"+t,r.dispatcher)}function Ht(e,t,n){if(Dt.has(e)){var r=Dt.get(e);if(r.handlers){if(Array.isArray(t))return Ut(Ht,e,t,n);var i=function(e,t){r.handlers[t]=[],Bt(e,t)};if(void 0!==t){var o=r.handlers[t];if(o)if(n){if(n.guid)for(var a=0;a<o.length;a++)o[a].guid===n.guid&&o.splice(a--,1);Bt(e,t)}else i(e,t)}else for(var s in r.handlers)Object.prototype.hasOwnProperty.call(r.handlers||{},s)&&i(e,s)}}}function zt(e,t,n){var r=Dt.has(e)?Dt.get(e):{},i=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=Mt(t),r.dispatcher&&r.dispatcher.call(e,t,n),i&&!t.isPropagationStopped()&&!0===t.bubbles)zt.call(null,i,t,n);else if(!i&&!t.defaultPrevented&&t.target&&t.target[t.type]){Dt.has(t.target)||Dt.set(t.target,{});var o=Dt.get(t.target);t.target[t.type]&&(o.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),o.disabled=!1)}return!t.defaultPrevented}function Wt(e,t,n){if(Array.isArray(t))return Ut(Wt,e,t,n);var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||jt(),Ft(e,t,r)}function qt(e,t,n){var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||jt(),Ft(e,t,r)}var Gt,Kt=Object.freeze({__proto__:null,fixEvent:Mt,on:Ft,off:Ht,trigger:zt,one:Wt,any:qt}),Yt=function(e,t,n){t.guid||(t.guid=jt());var r=t.bind(e);return r.guid=n?n+"_"+t.guid:t.guid,r},Xt=function(e,t){var n=i.a.performance.now();return function(){var r=i.a.performance.now();r-n>=t&&(e.apply(void 0,arguments),n=r)}},Qt=function(){};Qt.prototype.allowedEvents_={},Qt.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Ft(this,e,t),this.addEventListener=n},Qt.prototype.addEventListener=Qt.prototype.on,Qt.prototype.off=function(e,t){Ht(this,e,t)},Qt.prototype.removeEventListener=Qt.prototype.off,Qt.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},Wt(this,e,t),this.addEventListener=n},Qt.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},qt(this,e,t),this.addEventListener=n},Qt.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=Mt(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),zt(this,e)},Qt.prototype.dispatchEvent=Qt.prototype.trigger,Qt.prototype.queueTrigger=function(e){var t=this;Gt||(Gt=new Map);var n=e.type||e,r=Gt.get(this);r||(r=new Map,Gt.set(this,r));var o=r.get(n);r.delete(n),i.a.clearTimeout(o);var a=i.a.setTimeout((function(){0===r.size&&(r=null,Gt.delete(t)),t.trigger(e)}),0);r.set(n,a)};var $t=function(e){return e instanceof Qt||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},Zt=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Jt=function(e){if(!e.nodeName&&!$t(e))throw new Error("Invalid target; must be a DOM node or evented object.")},en=function(e){if(!Zt(e))throw new Error("Invalid event type; must be a non-empty string or array.")},tn=function(e){if("function"!=typeof e)throw new Error("Invalid listener; must be a function.")},nn=function(e,t){var n,r,i,o=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return o?(n=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],i=t[1]):(n=t[0],r=t[1],i=t[2]),Jt(n),en(r),tn(i),{isTargetingSelf:o,target:n,type:r,listener:i=Yt(e,i)}},rn=function(e,t,n,r){Jt(e),e.nodeName?Kt[t](e,n,r):e[t](n,r)},on={on:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(rn(a,"on",s,c),!o){var u=function(){return e.off(a,s,c)};u.guid=c.guid;var l=function(){return e.off("dispose",u)};l.guid=c.guid,rn(this,"on","dispose",u),rn(a,"on","dispose",l)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)rn(a,"one",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,rn(a,"one",s,u)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=nn(this,n),o=i.isTargetingSelf,a=i.target,s=i.type,c=i.listener;if(o)rn(a,"any",s,c);else{var u=function t(){e.off(a,s,t);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];c.apply(null,r)};u.guid=c.guid,rn(a,"any",s,u)}},off:function(e,t,n){if(!e||Zt(e))Ht(this.eventBusEl_,e,t);else{var r=e,i=t;Jt(r),en(i),tn(n),n=Yt(this,n),this.off("dispose",n),r.nodeName?(Ht(r,i,n),Ht(r,"dispose",n)):$t(r)&&(r.off(i,n),r.off("dispose",n))}},trigger:function(e,t){return zt(this.eventBusEl_,e,t)}};function an(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=Je("span",{className:"vjs-event-bus"});return ze(e,on),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),i.a.setTimeout((function(){e.eventBusEl_=null}),0)})),e}var sn={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),He(e,(function(e,r){n.state[r]!==e&&((t=t||{})[r]={from:n.state[r],to:e}),n.state[r]=e})),t&&$t(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function cn(e,t){return ze(e,sn),e.state=ze({},e.state,t),"function"==typeof e.handleStateChanged&&$t(e)&&e.on("statechanged",e.handleStateChanged),e}var un=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},ln=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function fn(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){t&&He(t,(function(t,n){qe(t)?(qe(e[n])||(e[n]={}),e[n]=fn(e[n],t)):e[n]=t}))})),e}var pn=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),dn=i.a.Map?i.a.Map:pn,hn=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),yn=i.a.Set?i.a.Set:hn,mn=function(){function e(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=fn({},this.options_),t=this.options_=fn(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+jt()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),!1!==t.evented&&(an(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),cn(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new yn,this.setIntervalIds_=new yn,this.rafIds_=new yn,this.namedRafs_=new dn,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),Dt.has(this.el_)&&Dt.delete(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=fn(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return Je(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var r=this.player_.language&&this.player_.language(),i=this.player_.languages&&this.player_.languages(),o=i&&i[r],a=r&&r.split("-")[0],s=i&&i[a],c=n;return o&&o[e]?c=o[e]:s&&s[e]&&(c=s[e]),t&&(c=c.replace(/\{(\d+)\}/g,(function(e,n){var r=t[n-1],i=r;return void 0===r&&(i=e),i}))),c},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var r=this,i=0;i<t.length;i++)if(!(r=r.getChild(t[i]))||!r.getChild)return;return r},t.addChild=function(t,n,r){var i,o;if(void 0===n&&(n={}),void 0===r&&(r=this.children_.length),"string"==typeof t){o=ln(t);var a=n.componentClass||o;n.name=o;var s=e.getComponent(a);if(!s)throw new Error("Component "+a+" does not exist");if("function"!=typeof s)return null;i=new s(this.player_||this,n)}else i=t;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(r,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),(o=o||i.name&&ln(i.name()))&&(this.childNameIndex_[o]=i,this.childNameIndex_[un(o)]=i),"function"==typeof i.el&&i.el()){var c=null;this.children_[r+1]&&(this.children_[r+1].el_?c=this.children_[r+1].el_:Qe(this.children_[r+1])&&(c=this.children_[r+1])),this.contentEl().insertBefore(i.el(),c)}return i},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[ln(e.name())]=null,this.childNameIndex_[un(e.name())]=null;var r=e.el();r&&r.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var r,i=this.options_,o=e.getComponent("Tech");(r=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!r.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var r,i;return"string"==typeof e?i=n[r=e]||t.options_[r]||{}:(r=e.name,i=e),{name:r,opts:i}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||ln(t.name));return n&&!o.isTech(n)})).forEach((function(e){var n=e.name,r=e.opts;if(void 0!==i[n]&&(r=i[n]),!1!==r){!0===r&&(r={}),r.playerOptions=t.options_.playerOptions;var o=t.addChild(n,r);o&&(t[n]=o)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Ct(e,t||this.contentEl())},t.$$=function(e,t){return Tt(e,t||this.contentEl())},t.hasClass=function(e){return nt(this.el_,e)},t.addClass=function(e){rt(this.el_,e)},t.removeClass=function(e){it(this.el_,e)},t.toggleClass=function(e,t){ot(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return ct(this.el_,e)},t.setAttribute=function(e,t){ut(this.el_,e,t)},t.removeAttribute=function(e){lt(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var r=this.el_.style[e],i=r.indexOf("px");return-1!==i?parseInt(r.slice(0,i),10):parseInt(this.el_["offset"+ln(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Ge(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+ln(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(r){1===r.touches.length&&(n={pageX:r.touches[0].pageX,pageY:r.touches[0].pageY},t=i.a.performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var r=t.touches[0].pageX-n.pageX,i=t.touches[0].pageY-n.pageY;Math.sqrt(r*r+i*i)>10&&(e=!1)}}));var r=function(){e=!1};this.on("touchleave",r),this.on("touchcancel",r),this.on("touchend",(function(r){(n=null,!0===e)&&(i.a.performance.now()-t<200&&(r.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Yt(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,r=this;return e=Yt(this,e),this.clearTimersOnDispose_(),n=i.a.setTimeout((function(){r.setTimeoutIds_.has(n)&&r.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),i.a.clearTimeout(e)),e},t.setInterval=function(e,t){e=Yt(this,e),this.clearTimersOnDispose_();var n=i.a.setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),i.a.clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Yt(this,e),t=i.a.requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Yt(this,t);var r=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,r),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),i.a.cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEach((function(t){var n=t[0],r=t[1];e[n].forEach((function(t,n){return e[r](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var r,i=e.getComponent("Tech"),o=i&&i.isTech(n),a=e===n||e.prototype.isPrototypeOf(n.prototype);if(o||!a)throw r=o?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+r+".");t=ln(t),e.components_||(e.components_={});var s=e.getComponent("Player");if("Player"===t&&s&&s.players){var c=s.players,u=Object.keys(c);if(c&&u.length>0&&u.map((function(e){return c[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[un(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();mn.prototype.supportsRaf_="function"==typeof i.a.requestAnimationFrame&&"function"==typeof i.a.cancelAnimationFrame,mn.registerComponent("Component",mn);var vn,gn=i.a.navigator&&i.a.navigator.userAgent||"",bn=/AppleWebKit\/([\d.]+)/i.exec(gn),wn=bn?parseFloat(bn.pop()):null,_n=/iPod/i.test(gn),Sn=(vn=gn.match(/OS (\d+)_/i))&&vn[1]?vn[1]:null,Cn=/Android/i.test(gn),Tn=function(){var e=gn.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),En=Cn&&Tn<5&&wn<537,On=/Firefox/i.test(gn),kn=/Edg/i.test(gn),Pn=!kn&&(/Chrome/i.test(gn)||/CriOS/i.test(gn)),An=function(){var e=gn.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),In=function(){var e=/MSIE\s(\d+)\.\d/.exec(gn),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(gn)&&/rv:11.0/.test(gn)&&(t=11),t}(),xn=/Safari/i.test(gn)&&!Pn&&!Cn&&!kn,Ln=/Windows/i.test(gn),Rn=Boolean(Xe()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch)),jn=/iPad/i.test(gn)||xn&&Rn&&!/iPhone/i.test(gn),Nn=/iPhone/i.test(gn)&&!jn,Dn=Nn||jn||_n,Bn=(xn||Dn)&&!Pn,Un=Object.freeze({__proto__:null,IS_IPOD:_n,IOS_VERSION:Sn,IS_ANDROID:Cn,ANDROID_VERSION:Tn,IS_NATIVE_ANDROID:En,IS_FIREFOX:On,IS_EDGE:kn,IS_CHROME:Pn,CHROME_VERSION:An,IE_VERSION:In,IS_SAFARI:xn,IS_WINDOWS:Ln,TOUCH_ENABLED:Rn,IS_IPAD:jn,IS_IPHONE:Nn,IS_IOS:Dn,IS_ANY_SAFARI:Bn});function Mn(e,t,n,r){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,r,n.length-1),n[r][t]}function Vn(e){return void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:Mn.bind(null,"start",0,e),end:Mn.bind(null,"end",1,e)}}function Fn(e,t){return Array.isArray(e)?Vn(e):void 0===e||void 0===t?Vn():Vn([[e,t]])}function Hn(e,t){var n,r,i=0;if(!t)return 0;e&&e.length||(e=Fn(0,0));for(var o=0;o<e.length;o++)n=e.start(o),(r=e.end(o))>t&&(r=t),i+=r-n;return i/t}for(var zn,Wn={prefixed:!0},qn=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],Gn=qn[0],Kn=0;Kn<qn.length;Kn++)if(qn[Kn][1]in a.a){zn=qn[Kn];break}if(zn){for(var Yn=0;Yn<zn.length;Yn++)Wn[Gn[Yn]]=zn[Yn];Wn.prefixed=zn[0]!==Gn[0]}function Xn(e){if(e instanceof Xn)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:We(e)&&("number"==typeof e.code&&(this.code=e.code),ze(this,e)),this.message||(this.message=Xn.defaultMessages[this.code]||"")}Xn.prototype.code=0,Xn.prototype.message="",Xn.prototype.status=null,Xn.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Xn.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Qn=0;Qn<Xn.errorTypes.length;Qn++)Xn[Xn.errorTypes[Qn]]=Qn,Xn.prototype[Xn.errorTypes[Qn]]=Qn;function $n(e){return null!=e&&"function"==typeof e.then}function Zn(e){$n(e)&&e.then(null,(function(e){}))}var Jn=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,r){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})},er=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=Jn(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(Jn))},tr=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},nr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).opened_=r.hasBeenOpened_=r.hasBeenFilled_=!1,r.closeable(!r.options_.uncloseable),r.content(r.options_.content),r.contentEl_=Je("div",{className:"vjs-modal-dialog-content"},{role:"document"}),r.descEl_=Je("p",{className:"vjs-modal-dialog-description vjs-control-text",id:r.el().getAttribute("aria-describedby")}),et(r.descEl_,r.description()),r.el_.appendChild(r.descEl_),r.el_.appendChild(r.contentEl_),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var r=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=r,this.on(n,"close",this.close)}!t&&n&&(this.off(n,"close",this.close),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,r=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),wt(t,e),this.trigger("modalfill"),r?n.insertBefore(t,r):n.appendChild(t);var i=this.getChild("closeButton");i&&n.appendChild(i.el_)},n.empty=function(){this.trigger("beforemodalempty"),vt(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=a.a.activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),m.a.isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(m.a.isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),r=this.el_.querySelector(":focus"),i=0;i<n.length;i++)if(r===n[i]){t=i;break}a.a.activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof i.a.HTMLAnchorElement||e instanceof i.a.HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof i.a.HTMLInputElement||e instanceof i.a.HTMLSelectElement||e instanceof i.a.HTMLTextAreaElement||e instanceof i.a.HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof i.a.HTMLIFrameElement||e instanceof i.a.HTMLObjectElement||e instanceof i.a.HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(mn);nr.prototype.options_={pauseOnOpen:!0,temporary:!0},mn.registerComponent("ModalDialog",nr);var rr=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(l()(n),"length",{get:function(){return this.tracks_.length}});for(var r=0;r<t.length;r++)n.addTrack(t[r]);return n}p()(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},$t(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,r=this.length;n<r;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},t}(Qt);for(var ir in rr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},rr.prototype.allowedEvents_)rr.prototype["on"+ir]=null;var or=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},ar=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].enabled){or(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&or(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,or(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(rr),sr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},cr=function(e){function t(t){var n;void 0===t&&(t=[]);for(var r=t.length-1;r>=0;r--)if(t[r].selected){sr(t,t[r]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(l()(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&sr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,sr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(rr),ur=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(rr),lr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,r=this.trackElements_.length;n<r;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),fr=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,r=e.length;this.cues_=e,this.length_=e.length;var i=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<r)for(n=t;n<r;n++)i.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,r=this.length;n<r;n++){var i=this[n];if(i.id===e){t=i;break}}return t},e}(),pr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},dr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},hr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},yr={disabled:"disabled",hidden:"hidden",showing:"showing"},mr=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var r={id:t.id||"vjs_track_"+jt(),kind:t.kind||"",language:t.language||""},i=t.label||"",o=function(e){Object.defineProperty(l()(n),e,{get:function(){return r[e]},set:function(){}})};for(var a in r)o(a);return Object.defineProperty(l()(n),"label",{get:function(){return i},set:function(e){e!==i&&(i=e,this.trigger("labelchange"))}}),n}return p()(t,e),t}(Qt),vr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=a.a.createElement("a");n.href=e;var r,o=""===n.host&&"file:"!==n.protocol;o&&((r=a.a.createElement("div")).innerHTML='<a href="'+e+'"></a>',n=r.firstChild,r.setAttribute("style","display:none; position:absolute;"),a.a.body.appendChild(r));for(var s={},c=0;c<t.length;c++)s[t[c]]=n[t[c]];return"http:"===s.protocol&&(s.host=s.host.replace(/:80$/,"")),"https:"===s.protocol&&(s.host=s.host.replace(/:443$/,"")),s.protocol||(s.protocol=i.a.location.protocol),o&&a.a.body.removeChild(r),s},gr=function(e){if(!e.match(/^https?:\/\//)){var t=a.a.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e},br=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},wr=function(e,t){void 0===t&&(t=i.a.location);var n=vr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},_r=Object.freeze({__proto__:null,parseUrl:vr,getAbsoluteURL:gr,getFileExtension:br,isCrossOrigin:wr}),Sr=function(e,t){var n=new i.a.WebVTT.Parser(i.a,i.a.vttjs,i.a.WebVTT.StringDecoder()),r=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){r.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),r.length>0&&(i.a.console&&i.a.console.groupCollapsed&&i.a.console.groupCollapsed("Text Track parsing errors for "+t.src),r.forEach((function(e){return Ue.error(e)})),i.a.console&&i.a.console.groupEnd&&i.a.console.groupEnd()),n.flush()},Cr=function(e,t){var n={uri:e},r=wr(e);r&&(n.cors=r);var o="use-credentials"===t.tech_.crossOrigin();o&&(n.withCredentials=o),g()(n,Yt(this,(function(e,n,r){if(e)return Ue.error(e,n);t.loaded_=!0,"function"!=typeof i.a.WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Sr(r,t);Ue.error("vttjs failed to load, stopping trying to process "+t.src)})):Sr(r,t)})))},Tr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var r=fn(t,{kind:hr[t.kind]||"subtitles",language:t.language||t.srclang||""}),i=yr[r.mode]||"disabled",o=r.default;"metadata"!==r.kind&&"chapters"!==r.kind||(i="hidden"),(n=e.call(this,r)||this).tech_=r.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var a=new fr(n.cues_),s=new fr(n.activeCues_),c=!1,u=Yt(l()(n),(function(){this.activeCues=this.activeCues,c&&(this.trigger("cuechange"),c=!1)}));return"disabled"!==i&&n.tech_.ready((function(){n.tech_.on("timeupdate",u)}),!0),Object.defineProperties(l()(n),{default:{get:function(){return o},set:function(){}},mode:{get:function(){return i},set:function(e){var t=this;yr[e]&&(i=e,this.preload_||"disabled"===i||0!==this.cues.length||Cr(this.src,this),"disabled"!==i?this.tech_.ready((function(){t.tech_.on("timeupdate",u)}),!0):this.tech_.off("timeupdate",u),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?a:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return s;for(var e=this.tech_.currentTime(),t=[],n=0,r=this.cues.length;n<r;n++){var i=this.cues[n];(i.startTime<=e&&i.endTime>=e||i.startTime===i.endTime&&i.startTime<=e&&i.startTime+.5>=e)&&t.push(i)}if(c=!1,t.length!==this.activeCues_.length)c=!0;else for(var o=0;o<t.length;o++)-1===this.activeCues_.indexOf(t[o])&&(c=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set:function(){}}}),r.src?(n.src=r.src,n.preload_||(n.loaded_=!0),(n.preload_||o||"subtitles"!==r.kind&&"captions"!==r.kind)&&Cr(n.src,l()(n))):n.loaded_=!0,n}p()(t,e);var n=t.prototype;return n.addCue=function(e){var t=e;if(i.a.vttjs&&!(e instanceof i.a.vttjs.VTTCue)){for(var n in t=new i.a.vttjs.VTTCue(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var r=this.tech_.textTracks(),o=0;o<r.length;o++)r[o]!==this&&r[o].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(mr);Tr.prototype.allowedEvents_={cuechange:"cuechange"};var Er=function(e){function t(t){var n;void 0===t&&(t={});var r=fn(t,{kind:dr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"enabled",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("enabledchange"))}}),r.enabled&&(n.enabled=r.enabled),n.loaded_=!0,n}return p()(t,e),t}(mr),Or=function(e){function t(t){var n;void 0===t&&(t={});var r=fn(t,{kind:pr[t.kind]||""});n=e.call(this,r)||this;var i=!1;return Object.defineProperty(l()(n),"selected",{get:function(){return i},set:function(e){"boolean"==typeof e&&e!==i&&(i=e,this.trigger("selectedchange"))}}),r.selected&&(n.selected=r.selected),n}return p()(t,e),t}(mr),kr=function(e){function t(t){var n,r;void 0===t&&(t={}),n=e.call(this)||this;var i=new Tr(t);return n.kind=i.kind,n.src=i.src,n.srclang=i.language,n.label=i.label,n.default=i.default,Object.defineProperties(l()(n),{readyState:{get:function(){return r}},track:{get:function(){return i}}}),r=0,i.addEventListener("loadeddata",(function(){r=2,n.trigger({type:"load",target:l()(n)})})),n}return p()(t,e),t}(Qt);kr.prototype.allowedEvents_={load:"load"},kr.NONE=0,kr.LOADING=1,kr.LOADED=2,kr.ERROR=3;var Pr={audio:{ListClass:ar,TrackClass:Er,capitalName:"Audio"},video:{ListClass:cr,TrackClass:Or,capitalName:"Video"},text:{ListClass:ur,TrackClass:Tr,capitalName:"Text"}};Object.keys(Pr).forEach((function(e){Pr[e].getterName=e+"Tracks",Pr[e].privateName=e+"Tracks_"}));var Ar={remoteText:{ListClass:ur,TrackClass:Tr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:lr,TrackClass:kr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Ir=c()({},Pr,Ar);Ar.names=Object.keys(Ar),Pr.names=Object.keys(Pr),Ir.names=[].concat(Ar.names).concat(Pr.names);var xr=function(e){function t(t,n){var r;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(r=e.call(this,null,t,n)||this).hasStarted_=!1,r.on("playing",(function(){this.hasStarted_=!0})),r.on("loadstart",(function(){this.hasStarted_=!1})),Ir.names.forEach((function(e){var n=Ir[e];t&&t[n.getterName]&&(r[n.privateName]=t[n.getterName])})),r.featuresProgressEvents||r.manualProgressOn(),r.featuresTimeupdateEvents||r.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(r["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?r.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(r.featuresNativeTextTracks=!0),r.featuresNativeTextTracks||r.emulateTextTracks(),r.preloadTextTracks=!1!==t.preloadTextTracks,r.autoRemoteTextTracks_=new Ir.text.ListClass,r.initTrackListeners(),t.nativeControlsForTouch||r.emitTapEvents(),r.constructor&&(r.name_=r.constructor.name||"Unknown Tech"),r}p()(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange),this.manualProgress=!0,this.one("ready",this.trackProgress)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Yt(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return Fn(0,0)},n.bufferedPercent=function(){return Hn(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime),this.on("pause",this.stopTrackingCurrentTime)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime),this.off("pause",this.stopTrackingCurrentTime)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Pr.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],r=n.length;r--;){var i=n[r];"text"===e&&t.removeRemoteTextTrack(i),n.removeTrack(i)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Xn(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?Fn(0,0):Fn()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Pr.names.forEach((function(t){var n=Pr[t],r=function(){e.trigger(t+"trackchange")},i=e[n.getterName]();i.addEventListener("removetrack",r),i.addEventListener("addtrack",r),e.on("dispose",(function(){i.removeEventListener("removetrack",r),i.removeEventListener("addtrack",r)}))}))},n.addWebVttScript_=function(){var e=this;if(!i.a.WebVTT)if(a.a.body.contains(this.el())){if(!this.options_["vtt.js"]&&qe(w.a)&&Object.keys(w.a).length>0)return void this.trigger("vttjsloaded");var t=a.a.createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),i.a.WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),r=function(e){return t.addTrack(e.track)},i=function(e){return t.removeTrack(e.track)};n.on("addtrack",r),n.on("removetrack",i),this.addWebVttScript_();var o=function(){return e.trigger("texttrackchange")},a=function(){o();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",o),"showing"===n.mode&&n.addEventListener("cuechange",o)}};a(),t.addEventListener("change",a),t.addEventListener("addtrack",a),t.addEventListener("removetrack",a),this.on("dispose",(function(){n.off("addtrack",r),n.off("removetrack",i),t.removeEventListener("change",a),t.removeEventListener("addtrack",a),t.removeEventListener("removetrack",a);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",o)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,r,i){void 0===i&&(i={});var o=e.textTracks();i.kind=t,n&&(i.label=n),r&&(i.language=r),i.tech=e;var a=new Ir.text.TrackClass(i);return o.addTrack(a),a}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=fn(e,{tech:this});return new Ar.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var r=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Ue.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(r.track)})),r},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||i.a.Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=ln(e),t.techs_[e]=n,t.techs_[un(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=ln(e),i.a&&i.a.videojs&&i.a.videojs[e]?(Ue.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),i.a.videojs[e]):void 0)},t}(mn);Ir.names.forEach((function(e){var t=Ir[e];xr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),xr.prototype.featuresVolumeControl=!0,xr.prototype.featuresMuteControl=!0,xr.prototype.featuresFullscreenResize=!1,xr.prototype.featuresPlaybackRate=!1,xr.prototype.featuresProgressEvents=!1,xr.prototype.featuresSourceset=!1,xr.prototype.featuresTimeupdateEvents=!1,xr.prototype.featuresNativeTextTracks=!1,xr.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var r=e.sourceHandlers;r||(r=e.sourceHandlers=[]),void 0===n&&(n=r.length),r.splice(n,0,t)},e.canPlayType=function(t){for(var n,r=e.sourceHandlers||[],i=0;i<r.length;i++)if(n=r[i].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var r=e.sourceHandlers||[],i=0;i<r.length;i++)if(r[i].canHandleSource(t,n))return r[i];return null},e.canPlaySource=function(t,n){var r=e.selectSourceHandler(t,n);return r?r.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Ue.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},mn.registerComponent("Tech",xr),xr.registerTech("Tech",xr),xr.defaultTechOrder_=[];var Lr={},Rr={},jr={};function Nr(e,t,n){e.setTimeout((function(){return function e(t,n,r,i,o,a){void 0===t&&(t={});void 0===n&&(n=[]);void 0===o&&(o=[]);void 0===a&&(a=!1);var s=n,c=s[0],u=s.slice(1);if("string"==typeof c)e(t,Lr[c],r,i,o,a);else if(c){var l=function(e,t){var n=Rr[e.id()],r=null;if(null==n)return r=t(e),Rr[e.id()]=[[t,r]],r;for(var i=0;i<n.length;i++){var o=n[i],a=o[0],s=o[1];a===t&&(r=s)}null===r&&(r=t(e),n.push([t,r]));return r}(i,c);if(!l.setSource)return o.push(l),e(t,u,r,i,o,a);l.setSource(ze({},t),(function(n,s){if(n)return e(t,u,r,i,o,a);o.push(l),e(s,t.type===s.type?u:Lr[s.type],r,i,o,a)}))}else u.length?e(t,u,r,i,o,a):a?r(t,o):e(t,Lr["*"],r,i,o,!0)}(t,Lr[t.type],n,e)}),1)}function Dr(e,t,n,r){void 0===r&&(r=null);var i="call"+ln(n),o=e.reduce(Vr(i),r),a=o===jr,s=a?null:t[n](o);return function(e,t,n,r){for(var i=e.length-1;i>=0;i--){var o=e[i];o[t]&&o[t](r,n)}}(e,n,s,a),s}var Br={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1},Ur={setCurrentTime:1,setMuted:1,setVolume:1},Mr={play:1,pause:1};function Vr(e){return function(t,n){return t===jr?jr:n[e]?n[e](t):t}}var Fr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Hr=function(e){void 0===e&&(e="");var t=br(e);return Fr[t.toLowerCase()]||""};function zr(e){if(!e.type){var t=Hr(e.src);t&&(e.type=t)}return e}var Wr=function(e){function t(t,n,r){var i,o=fn({createEl:!1},n);if(i=e.call(this,t,o,r)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var a=0,s=n.playerOptions.techOrder;a<s.length;a++){var c=ln(s[a]),u=xr.getTech(c);if(c||(u=mn.getComponent(c)),u&&u.isSupported()){t.loadTech_(c);break}}return i}return p()(t,e),t}(mn);mn.registerComponent("MediaLoader",Wr);var qr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).emitTapEvents(),r.enable(),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){void 0===t&&(t="div"),void 0===n&&(n={}),void 0===r&&(r={}),n=ze({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass(),tabIndex:0},n),"button"===t&&Ue.error("Creating a ClickableComponent with an HTML element of "+t+" is not supported; use a Button instead."),r=ze({role:"button"},r),this.tabIndex_=n.tabIndex;var i=e.prototype.createEl.call(this,t,n,r);return this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=Je("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,et(this.controlTextEl_,n),this.nonIconControl||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick),this.on("keydown",this.handleKeyDown))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver),this.off("mouseout",this.handleMouseOut),this.off(["tap","click"],this.handleClick),this.off("keydown",this.handleKeyDown)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(mn);mn.registerComponent("ClickableComponent",qr);var Gr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",Yt(l()(r),r.update)),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update),e.prototype.dispose.call(this)},n.createEl=function(){return Je("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(In||kn)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Zn(this.player_.play()):this.player_.pause()}},t}(qr);mn.registerComponent("PosterImage",Gr);var Kr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Yr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Xr(e,t,n){try{e.style[t]=n}catch(e){return}}var Qr=function(e){function t(t,n,r){var o;o=e.call(this,t,n,r)||this;var a=Yt(l()(o),o.updateDisplay);return t.on("loadstart",Yt(l()(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",Yt(l()(o),o.preselectTrack)),t.ready(Yt(l()(o),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",a),t.on("playerresize",a),i.a.addEventListener("orientationchange",a),t.on("dispose",(function(){return i.a.removeEventListener("orientationchange",a)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),o}p()(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,r={captions:1,subtitles:1},i=this.player_.textTracks(),o=this.player_.cache_.selectedLanguage,a=0;a<i.length;a++){var s=i[a];o&&o.enabled&&o.language&&o.language===s.language&&s.kind in r?s.kind===o.kind?n=s:n||(n=s):o&&!o.enabled?(n=null,e=null,t=null):s.default&&("descriptions"!==s.kind||e?s.kind in r&&!t&&(t=s):e=s)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{"aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof i.a.WebVTT&&i.a.WebVTT.processCues(i.a,[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],r=0;r<e.length;++r){var i=e[r];"showing"===i.mode&&n.push(i)}this.updateForTrack(n)}else{for(var o=null,a=null,s=e.length;s--;){var c=e[s];"showing"===c.mode&&("descriptions"===c.kind?o=c:a=c)}a?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(a)):o&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(o))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,r=n.length;r--;){var o=n[r];if(o){var a=o.displayState;if(t.color&&(a.firstChild.style.color=t.color),t.textOpacity&&Xr(a.firstChild,"color",Yr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Xr(a.firstChild,"backgroundColor",Yr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Xr(a,"backgroundColor",Yr(t.windowColor,t.windowOpacity)):a.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?a.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?a.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(a.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var s=i.a.parseFloat(a.style.fontSize);a.style.fontSize=s*t.fontPercent+"px",a.style.height="auto",a.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?a.firstChild.style.fontVariant="small-caps":a.firstChild.style.fontFamily=Kr[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof i.a.WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var r=e[n],o=0;o<r.activeCues.length;++o)t.push(r.activeCues[o]);i.a.WebVTT.processCues(i.a,t,this.el_);for(var a=0;a<e.length;++a){for(var s=e[a],c=0;c<s.activeCues.length;++c){var u=s.activeCues[c].displayState;rt(u,"vjs-text-track-cue"),rt(u,"vjs-text-track-cue-"+(s.language?s.language:a))}this.player_.textTrackSettings&&this.updateDisplayState(s)}}},t}(mn);mn.registerComponent("TextTrackDisplay",Qr);var $r=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"Video Player"),r=Je("span",{className:"vjs-control-text",innerHTML:this.localize("{1} is loading.",[n])}),i=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(r),i},t}(mn);mn.registerComponent("LoadingSpinner",$r);var Zr=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={}),t=ze({innerHTML:'<span aria-hidden="true" class="vjs-icon-placeholder"></span>',className:this.buildCSSClass()},t),n=ze({type:"button"},n);var r=mn.prototype.createEl.call(this,"button",t,n);return this.createControlTextEl(r),r},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return Ue.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),mn.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}(qr);mn.registerComponent("Button",Zr);var Jr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).mouseused_=!1,r.on("mousedown",r.handleMouseDown),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Zn(t),void(!this.player_.tech(!0)||(In||kn)&&n||this.player_.tech(!0).focus())}var r=this.player_.getChild("controlBar"),i=r&&r.getChild("playToggle");if(i){var o=function(){return i.focus()};$n(t)?t.then(o,(function(){})):this.setTimeout(o,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Zr);Jr.prototype.controlText_="Play Video",mn.registerComponent("BigPlayButton",Jr);var ei=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).controlText(n&&n.controlText||r.localize("Close")),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){m.a.isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Zr);mn.registerComponent("CloseButton",ei);var ti=function(e){function t(t,n){var r;return void 0===n&&(n={}),r=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,r.on(t,"play",r.handlePlay),r.on(t,"pause",r.handlePause),n.replay&&r.on(t,"ended",r.handleEnded),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",this.handleSeeked)},t}(Zr);ti.prototype.controlText_="Play",mn.registerComponent("PlayToggle",ti);var ni=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),r=Math.floor(e/60%60),i=Math.floor(e/3600),o=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(i=r=n="-"),(i=i>0||a>0?i+":":"")+(r=((i||o>=10)&&r<10?"0"+r:r)+":")+(n=n<10?"0"+n:n)},ri=ni;function ii(e,t){return void 0===t&&(t=e),ri(e,t)}var oi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["timeupdate","ended"],r.updateContent),r.updateTextNode_(),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control",innerHTML:'<span class="vjs-control-text" role="presentation">'+this.localize(this.labelText_)+" </span>"});return this.contentEl_=Je("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;void 0===e&&(e=0),e=ii(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&!t.contentEl_.contains(e)&&(e=null,Ue.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=a.a.createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(mn);oi.prototype.labelText_="Time",oi.prototype.controlText_="Time",mn.registerComponent("TimeDisplay",oi);var ai=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(oi);ai.prototype.labelText_="Current Time",ai.prototype.controlText_="Current Time",mn.registerComponent("CurrentTimeDisplay",ai);var si=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r.on(t,"loadstart",r.updateContent),r.on(t,"loadedmetadata",r.updateContent),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(oi);si.prototype.labelText_="Duration",si.prototype.controlText_="Duration",mn.registerComponent("DurationDisplay",si);var ci=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider",innerHTML:"<div><span>/</span></div>"},{"aria-hidden":!0})},t}(mn);mn.registerComponent("TimeDivider",ci);var ui=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"durationchange",r.updateContent),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return t.insertBefore(Je("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(oi);ui.prototype.labelText_="Remaining Time",ui.prototype.controlText_="Remaining Time",mn.registerComponent("RemainingTimeDisplay",ui);var li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateShowing(),r.on(r.player(),"durationchange",r.updateShowing),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=Je("div",{className:"vjs-live-display",innerHTML:'<span class="vjs-control-text">'+this.localize("Stream Type")+" </span>"+this.localize("LIVE")},{"aria-live":"off"}),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(mn);mn.registerComponent("LiveDisplay",li);var fi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateLiveEdgeStatus(),r.player_.liveTracker&&r.on(r.player_.liveTracker,"liveedgechange",r.updateLiveEdgeStatus),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=Je("span",{className:"vjs-seek-to-live-text",innerHTML:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatus),this.textEl_=null,e.prototype.dispose.call(this)},t}(Zr);fi.prototype.controlText_="Seek to live, currently playing live",mn.registerComponent("SeekToLive",fi);var pi=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},di=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).bar=r.getChild(r.options_.barName),r.vertical(!!r.options_.vertical),r.enable(),r}p()(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown),this.on("touchstart",this.handleMouseDown),this.on("keydown",this.handleKeyDown),this.on("click",this.handleClick),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown),this.off("touchstart",this.handleMouseDown),this.off("keydown",this.handleKeyDown),this.off("click",this.handleClick),this.off(this.player_,"controlsvisible",this.update),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,r){return void 0===n&&(n={}),void 0===r&&(r={}),n.className=n.className+" vjs-slider",n=ze({tabIndex:0},n),r=ze({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},r),e.prototype.createEl.call(this,t,n,r)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||Pn||e.preventDefault(),ft(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchmove",this.handleMouseMove),this.on(t,"touchend",this.handleMouseUp),this.handleMouseMove(e)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;pt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove),this.off(e,"mouseup",this.handleMouseUp),this.off(e,"touchmove",this.handleMouseMove),this.off(e,"touchend",this.handleMouseUp),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}},n.getProgress=function(){return Number(pi(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=yt(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){m.a.isEventKey(t,"Left")||m.a.isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):m.a.isEventKey(t,"Right")||m.a.isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(mn);mn.registerComponent("Slider",di);var hi=function(e,t){return pi(e/t*100,0,100).toFixed(2)+"%"},yi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).partEls_=[],r.on(t,"progress",r.update),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=Je("span",{className:"vjs-control-text"}),r=Je("span",{textContent:this.localize("Loaded")}),i=a.a.createTextNode(": ");return this.percentageEl_=Je("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(r),n.appendChild(i),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),r=e&&e.isLive()?e.seekableEnd():t.player_.duration(),i=t.player_.bufferedEnd(),o=t.partEls_,a=hi(i,r);t.percent_!==a&&(t.el_.style.width=a,et(t.percentageEl_,a),t.percent_=a);for(var s=0;s<n.length;s++){var c=n.start(s),u=n.end(s),l=o[s];l||(l=t.el_.appendChild(Je()),o[s]=l),l.dataset.start===c&&l.dataset.end===u||(l.dataset.start=c,l.dataset.end=u,l.style.left=hi(c,i),l.style.width=hi(u-c,i))}for(var f=o.length;f>n.length;f--)t.el_.removeChild(o[f-1]);o.length=n.length}))},t}(mn);mn.registerComponent("LoadProgressBar",yi);var mi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var r=ht(this.el_),i=dt(this.player_.el()),o=e.width*t;if(i&&r){var a=e.left-i.left+o,s=e.width-o+(i.right-e.right),c=r.width/2;a<c?c+=c-a:s<c&&(c=s),c<0?c=0:c>r.width&&(c=r.width),c=Math.round(c),this.el_.style.right="-"+c+"px",this.write(n)}},n.write=function(e){et(this.el_,e)},n.updateTime=function(e,t,n,r){var i=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var o,a=i.player_.duration();if(i.player_.liveTracker&&i.player_.liveTracker.isLive()){var s=i.player_.liveTracker.liveWindow(),c=s-t*s;o=(c<1?"":"-")+ii(c,s)}else o=ii(n,a);i.update(e,t,o),r&&r()}))},t}(mn);mn.registerComponent("TimeTooltip",mi);var vi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var r=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,r)}},t}(mn);vi.prototype.options_={children:[]},Dn||Cn||vi.prototype.options_.children.push("timeTooltip"),mn.registerComponent("PlayProgressBar",vi);var gi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update=Xt(Yt(l()(r),r.update),30),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,r=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,r,(function(){n.el_.style.left=e.width*t+"px"}))},t}(mn);gi.prototype.options_={children:["timeTooltip"]},mn.registerComponent("MouseTimeDisplay",gi);var bi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).setEventHandlers_(),r}p()(t,e);var n=t.prototype;return n.setEventHandlers_=function(){this.update_=Yt(this,this.update),this.update=Xt(this.update_,30),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.on(this.player_,["playing"],this.enableInterval_),this.on(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.on(a.a,"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){a.a.hidden?this.disableInterval_(e):(this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,30))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this,r=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,i=n.player_.duration();t&&t.isLive()&&(i=n.player_.liveTracker.liveCurrentTime()),n.percent_!==r&&(n.el_.setAttribute("aria-valuenow",(100*r).toFixed(2)),n.percent_=r),n.currentTime_===e&&n.duration_===i||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[ii(e,i),ii(i,i)],"{1} of {2}")),n.currentTime_=e,n.duration_=i),n.bar&&n.bar.update(dt(n.el()),n.getProgress())})),r},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){_t(t)&&(t.stopPropagation(),this.player_.scrubbing(!0),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e){if(_t(e)){var t,n=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(n>=.99)return void r.seekToLiveEdge();var i=r.seekableStart(),o=r.liveCurrentTime();if((t=i+n*r.liveWindow())>=o&&(t=o),t<=i&&(t=i+.1),t===1/0)return}else(t=n*this.player_.duration())===this.player_.duration()&&(t-=.1);this.player_.currentTime(t)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Zn(this.player_.play()):this.update_()},n.stepForward=function(){this.player_.currentTime(this.player_.currentTime()+5)},n.stepBack=function(){this.player_.currentTime(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){if(m.a.isEventKey(t,"Space")||m.a.isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(m.a.isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(0);else if(m.a.isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.duration());else if(/^[0-9]$/.test(m()(t))){t.preventDefault(),t.stopPropagation();var n=10*(m.a.codes[m()(t)]-m.a.codes[0])/100;this.player_.currentTime(this.player_.duration()*n)}else m.a.isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()-60)):m.a.isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.player_.currentTime(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableInterval_),this.off(this.player_,["ended","pause","waiting"],this.disableInterval_),"hidden"in a.a&&"visibilityState"in a.a&&this.off(a.a,"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(di);bi.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},Dn||Cn||bi.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),mn.registerComponent("SeekBar",bi);var wi=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).handleMouseMove=Xt(Yt(l()(r),r.handleMouseMove),30),r.throttledHandleMouseSeek=Xt(Yt(l()(r),r.handleMouseSeek),30),r.enable(),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),r=t.getChild("mouseTimeDisplay");if(n||r){var i=t.el(),o=ht(i),a=yt(i,e).x;a=pi(a,0,1),r&&r.update(o,a),n&&n.update(o,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_},n.disable=function(){this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDown),this.off(this.el_,"mousemove",this.handleMouseMove),this.handleMouseUp(),this.addClass("disabled"),this.enabled_=!1)},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDown),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseUp(e),this.off(t,"mousemove",this.throttledHandleMouseSeek),this.off(t,"touchmove",this.throttledHandleMouseSeek),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},t}(mn);wi.prototype.options_={children:["seekBar"]},mn.registerComponent("ProgressControl",wi);var _i=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],r.handlePictureInPictureChange),r.on(t,["disablepictureinpicturechanged","loadedmetadata"],r.handlePictureInPictureEnabledChange),r.disable(),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){a.a.pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Zr);_i.prototype.controlText_="Picture-in-Picture",mn.registerComponent("PictureInPictureToggle",_i);var Si=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"fullscreenchange",r.handleFullscreenChange),!1===a.a[t.fsApi_.fullscreenEnabled]&&r.disable(),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Zr);Si.prototype.controlText_="Fullscreen",mn.registerComponent("FullscreenToggle",Si);var Ci=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:'<span class="vjs-control-text"></span>'})},t}(mn);mn.registerComponent("VolumeLevel",Ci);var Ti=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on("slideractive",r.updateLastVolume_),r.on(t,"volumechange",r.updateARIAAttributes),t.ready((function(){return r.updateARIAAttributes()})),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){_t(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){_t(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(di);Ti.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ti.prototype.playerEvent="volumechange",mn.registerComponent("VolumeBar",Ti);var Ei=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||qe(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(l()(r),t),r.throttledHandleMouseMove=Xt(Yt(l()(r),r.handleMouseMove),30),r.on("mousedown",r.handleMouseDown),r.on("touchstart",r.handleMouseDown),r.on(r.volumeBar,["focus","slideractive"],(function(){r.volumeBar.addClass("vjs-slider-active"),r.addClass("vjs-slider-active"),r.trigger("slideractive")})),r.on(r.volumeBar,["blur","sliderinactive"],(function(){r.volumeBar.removeClass("vjs-slider-active"),r.removeClass("vjs-slider-active"),r.trigger("sliderinactive")})),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUp),this.on(t,"touchend",this.handleMouseUp)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUp),this.off(t,"touchend",this.handleMouseUp)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(mn);Ei.prototype.options_={children:["volumeBar"]},mn.registerComponent("VolumeControl",Ei);var Oi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(l()(r),t),r.on(t,["loadstart","volumechange"],r.update),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var r=n<.1?.1:n;this.player_.volume(r),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;Dn&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)it(this.el_,"vjs-vol-"+n);rt(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Zr);Oi.prototype.controlText_="Mute",mn.registerComponent("MuteToggle",Oi);var ki=function(e){function t(t,n){var r;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||qe(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(r=e.call(this,t,n)||this).on(t,["loadstart"],r.volumePanelState_),r.on(r.muteToggle,"keyup",r.handleKeyPress),r.on(r.volumeControl,"keyup",r.handleVolumeControlKeyUp),r.on("keydown",r.handleKeyPress),r.on("mouseover",r.handleMouseOver),r.on("mouseout",r.handleMouseOut),r.on(r.volumeControl,["slideractive"],r.sliderActive_),r.on(r.volumeControl,["sliderinactive"],r.sliderInactive_),r}p()(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){m.a.isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),Ft(a.a,"keyup",Yt(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Yt(this,this.handleKeyPress))},n.handleKeyPress=function(e){m.a.isEventKey(e,"Esc")&&this.handleMouseOut()},t}(mn);ki.prototype.options_={children:["muteToggle","volumeControl"]},mn.registerComponent("VolumePanel",ki);var Pi=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,n&&(r.menuButton_=n.menuButton),r.focusedChild_=-1,r.on("keydown",r.handleKeyDown),r.boundHandleBlur_=Yt(l()(r),r.handleBlur),r.boundHandleTapClick_=Yt(l()(r),r.handleTapClick),r}p()(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof mn&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof mn&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=Je(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),Ft(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||a.a.activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){m.a.isEventKey(e,"Left")||m.a.isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(m.a.isEventKey(e,"Right")||m.a.isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(mn);mn.registerComponent("Menu",Pi);var Ai=function(e){function t(t,n){var r;void 0===n&&(n={}),(r=e.call(this,t,n)||this).menuButton_=new Zr(t,n),r.menuButton_.controlText(r.controlText_),r.menuButton_.el_.setAttribute("aria-haspopup","true");var i=Zr.prototype.buildCSSClass();return r.menuButton_.el_.className=r.buildCSSClass()+" "+i,r.menuButton_.removeClass("vjs-control"),r.addChild(r.menuButton_),r.update(),r.enabled_=!0,r.on(r.menuButton_,"tap",r.handleClick),r.on(r.menuButton_,"click",r.handleClick),r.on(r.menuButton_,"keydown",r.handleKeyDown),r.on(r.menuButton_,"mouseenter",(function(){r.addClass("vjs-hover"),r.menu.show(),Ft(a.a,"keyup",Yt(l()(r),r.handleMenuKeyUp))})),r.on("mouseleave",r.handleMouseLeave),r.on("keydown",r.handleSubmenuKeyDown),r}p()(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?this.hide():this.show()},n.createMenu=function(){var e=new Pi(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=Je("li",{className:"vjs-menu-title",innerHTML:ln(this.options_.title),tabIndex:-1});this.hideThreshold_+=1;var n=new mn(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var r=0;r<this.items.length;r++)e.addItem(this.items[r]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Zr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Yt(this,this.handleMenuKeyUp))},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),m.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(m.a.isEventKey(e,"Up")||m.a.isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(m.a.isEventKey(e,"Esc")||m.a.isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),m.a.isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),Dn&&$e())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(mn);mn.registerComponent("MenuButton",Ai);var Ii=function(e){function t(t,n){var r,i=n.tracks;if((r=e.call(this,t,n)||this).items.length<=1&&r.hide(),!i)return l()(r);var o=Yt(l()(r),r.update);return i.addEventListener("removetrack",o),i.addEventListener("addtrack",o),i.addEventListener("labelchange",o),r.player_.on("ready",o),r.player_.on("dispose",(function(){i.removeEventListener("removetrack",o),i.removeEventListener("addtrack",o),i.removeEventListener("labelchange",o)})),r}return p()(t,e),t}(Ai);mn.registerComponent("TrackButton",Ii);var xi=["Tab","Esc","Up","Down","Right","Left"],Li=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).selectable=n.selectable,r.isSelected_=n.selected||!1,r.multiSelectable=n.multiSelectable,r.selected(r.isSelected_),r.selectable?r.multiSelectable?r.el_.setAttribute("role","menuitemcheckbox"):r.el_.setAttribute("role","menuitemradio"):r.el_.setAttribute("role","menuitem"),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){return this.nonIconControl=!0,e.prototype.createEl.call(this,"li",ze({className:"vjs-menu-item",innerHTML:'<span class="vjs-menu-item-text">'+this.localize(this.options_.label)+"</span>",tabIndex:-1},n),r)},n.handleKeyDown=function(t){xi.some((function(e){return m.a.isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}(qr);mn.registerComponent("MenuItem",Li);var Ri=function(e){function t(t,n){var r,o=n.track,s=t.textTracks();n.label=o.label||o.language||"Unknown",n.selected="showing"===o.mode,(r=e.call(this,t,n)||this).track=o,r.kinds=(n.kinds||[n.kind||r.track.kind]).filter(Boolean);var c,u=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)},f=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleSelectedLanguageChange.apply(l()(r),t)};(t.on(["loadstart","texttrackchange"],u),s.addEventListener("change",u),s.addEventListener("selectedlanguagechange",f),r.on("dispose",(function(){t.off(["loadstart","texttrackchange"],u),s.removeEventListener("change",u),s.removeEventListener("selectedlanguagechange",f)})),void 0===s.onchange)&&r.on(["tap","click"],(function(){if("object"!=typeof i.a.Event)try{c=new i.a.Event("change")}catch(e){}c||(c=a.a.createEvent("Event")).initEvent("change",!0,!0),s.dispatchEvent(c)}));return r.handleTracksChange(),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,r=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),r)for(var i=0;i<r.length;i++){var o=r[i];-1!==this.kinds.indexOf(o.kind)&&(o===n?"showing"!==o.mode&&(o.mode="showing"):"disabled"!==o.mode&&(o.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Li);mn.registerComponent("TextTrackMenuItem",Ri);var ji=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(this.options_.kinds.indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,r=0,i=t.length;r<i;r++){var o=t[r];if(["captions","descriptions","subtitles"].indexOf(o.kind)>-1&&"showing"===o.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Ri);mn.registerComponent("OffTextTrackMenuItem",ji);var Ni=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return p()(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Ri),this.label_&&(n=this.label_+" off"),e.push(new ji(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var r=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var i=0;i<r.length;i++){var o=r[i];if(this.kinds_.indexOf(o.kind)>-1){var a=new t(this.player_,{track:o,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});a.addClass("vjs-"+o.kind+"-menu-item"),e.push(a)}}return e},t}(Ii);mn.registerComponent("TextTrackButton",Ni);var Di=function(e){function t(t,n){var r,i=n.track,o=n.cue,a=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=o.text,n.selected=o.startTime<=a&&a<o.endTime,(r=e.call(this,t,n)||this).track=i,r.cue=o,i.addEventListener("cuechange",Yt(l()(r),r.update)),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime),this.update(this.cue.startTime)},n.update=function(e){var t=this.cue,n=this.player_.currentTime();this.selected(t.startTime<=n&&n<t.endTime)},t}(Li);mn.registerComponent("ChaptersTrackMenuItem",Di);var Bi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){this.track_&&(!t||"addtrack"!==t.type&&"removetrack"!==t.type)||this.setTrack(this.findChaptersTrack()),e.prototype.update.call(this)},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(ln(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,r=t.length;n<r;n++){var i=t[n],o=new Di(this.player_,{track:this.track_,cue:i});e.push(o)}return e},t}(Ni);Bi.prototype.kind_="chapters",Bi.prototype.controlText_="Chapters",mn.registerComponent("ChaptersButton",Bi);var Ui=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var o=t.textTracks(),a=Yt(l()(i),i.handleTracksChange);return o.addEventListener("change",a),i.on("dispose",(function(){o.removeEventListener("change",a)})),i}p()(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,r=0,i=t.length;r<i;r++){var o=t[r];if(o.kind!==this.kind_&&"showing"===o.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ni);Ui.prototype.kind_="descriptions",Ui.prototype.controlText_="Descriptions",mn.registerComponent("DescriptionsButton",Ui);var Mi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ni);Mi.prototype.kind_="subtitles",Mi.prototype.controlText_="Subtitles",mn.registerComponent("SubtitlesButton",Mi);var Vi=function(e){function t(t,n){var r;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(r=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),r.controlText(", opens "+n.kind+" settings dialog"),r}return p()(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Ri);mn.registerComponent("CaptionSettingsMenuItem",Vi);var Fi=function(e){function t(t,n,r){return e.call(this,t,n,r)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Vi(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ni);Fi.prototype.kind_="captions",Fi.prototype.controlText_="Captions",mn.registerComponent("CaptionsButton",Fi);var Hi=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"captions"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Captions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,ze({innerHTML:i},n),r)},t}(Ri);mn.registerComponent("SubsCapsMenuItem",Hi);var zi=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(r.player_.language_)>-1&&(r.label_="captions"),r.menuButton_.controlText(ln(r.label_)),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Vi(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Hi)},t}(Ni);zi.prototype.kinds_=["captions","subtitles"],zi.prototype.controlText_="Subtitles",mn.registerComponent("SubsCapsButton",zi);var Wi=function(e){function t(t,n){var r,i=n.track,o=t.audioTracks();n.label=i.label||i.language||"Unknown",n.selected=i.enabled,(r=e.call(this,t,n)||this).track=i,r.addClass("vjs-"+i.kind+"-menu-item");var a=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];r.handleTracksChange.apply(l()(r),t)};return o.addEventListener("change",a),r.on("dispose",(function(){o.removeEventListener("change",a)})),r}p()(t,e);var n=t.prototype;return n.createEl=function(t,n,r){var i='<span class="vjs-menu-item-text">'+this.localize(this.options_.label);return"main-desc"===this.options_.track.kind&&(i+='\n <span aria-hidden="true" class="vjs-icon-placeholder"></span>\n <span class="vjs-control-text"> '+this.localize("Descriptions")+"</span>\n "),i+="</span>",e.prototype.createEl.call(this,t,ze({innerHTML:i},n),r)},n.handleClick=function(t){var n=this.player_.audioTracks();e.prototype.handleClick.call(this,t);for(var r=0;r<n.length;r++){var i=n[r];i.enabled=i===this.track}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Li);mn.registerComponent("AudioTrackMenuItem",Wi);var qi=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var r=t[n];e.push(new Wi(this.player_,{track:r,selectable:!0,multiSelectable:!1}))}return e},t}(Ii);qi.prototype.controlText_="Audio Track",mn.registerComponent("AudioTrackButton",qi);var Gi=function(e){function t(t,n){var r,i=n.rate,o=parseFloat(i,10);return n.label=i,n.selected=1===o,n.selectable=!0,n.multiSelectable=!1,(r=e.call(this,t,n)||this).label=i,r.rate=o,r.on(t,"ratechange",r.update),r}p()(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Li);Gi.prototype.contentElType="button",mn.registerComponent("PlaybackRateMenuItem",Gi);var Ki=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).updateVisibility(),r.updateLabel(),r.on(t,"loadstart",r.updateVisibility),r.on(t,"ratechange",r.updateLabel),r}p()(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelEl_=Je("div",{className:"vjs-playback-rate-value",innerHTML:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createMenu=function(){var e=new Pi(this.player()),t=this.playbackRates();if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new Gi(this.player(),{rate:t[n]+"x"}));return e},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){for(var t=this.player().playbackRate(),n=this.playbackRates(),r=n[0],i=0;i<n.length;i++)if(n[i]>t){r=n[i];break}this.player().playbackRate(r)},n.playbackRates=function(){return this.options_.playbackRates||this.options_.playerOptions&&this.options_.playerOptions.playbackRates},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},t}(Ai);Ki.prototype.controlText_="Playback Rate",mn.registerComponent("PlaybackRateMenuButton",Ki);var Yi=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass()})},t}(mn);mn.registerComponent("Spacer",Yi);var Xi=function(e){function t(){return e.apply(this,arguments)||this}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){var t=e.prototype.createEl.call(this,{className:this.buildCSSClass()});return t.innerHTML=" ",t},t}(Yi);mn.registerComponent("CustomControlSpacer",Xi);var Qi=function(e){function t(){return e.apply(this,arguments)||this}return p()(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(mn);Qi.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in a.a&&Qi.prototype.options_.children.splice(Qi.prototype.options_.children.length-1,0,"pictureInPictureToggle"),mn.registerComponent("ControlBar",Qi);var $i=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).on(t,"error",r.open),r}p()(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(nr);$i.prototype.options_=c()({},nr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),mn.registerComponent("ErrorDisplay",$i);var Zi=["#000","Black"],Ji=["#00F","Blue"],eo=["#0FF","Cyan"],to=["#0F0","Green"],no=["#F0F","Magenta"],ro=["#F00","Red"],io=["#FFF","White"],oo=["#FF0","Yellow"],ao=["1","Opaque"],so=["0.5","Semi-Transparent"],co=["0","Transparent"],uo={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[Zi,io,ro,to,Ji,oo,no,eo]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[ao,so,co]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[io,Zi,ro,to,Ji,oo,no,eo]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[ao,so]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[co,so,ao]}};function lo(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}uo.windowColor.options=uo.backgroundColor.options;var fo=function(e){function t(t,n){var r;return n.temporary=!1,(r=e.call(this,t,n)||this).updateDisplay=Yt(l()(r),r.updateDisplay),r.fill(),r.hasBeenOpened_=r.hasBeenFilled_=!0,r.endDialog=Je("p",{className:"vjs-control-text",textContent:r.localize("End of dialog window.")}),r.el().appendChild(r.endDialog),r.setDefaults(),void 0===n.persistTextTrackSettings&&(r.options_.persistTextTrackSettings=r.options_.playerOptions.persistTextTrackSettings),r.on(r.$(".vjs-done-button"),"click",(function(){r.saveSettings(),r.close()})),r.on(r.$(".vjs-default-button"),"click",(function(){r.setDefaults(),r.updateDisplay()})),He(uo,(function(e){r.on(r.$(e.selector),"change",r.updateDisplay)})),r.options_.persistTextTrackSettings&&r.restoreSettings(),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var r=this;void 0===t&&(t=""),void 0===n&&(n="label");var i=uo[e],o=i.id.replace("%s",this.id_),a=[t,o].join(" ").trim();return["<"+n+' id="'+o+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(i.label),"</"+n+">",'<select aria-labelledby="'+a+'">'].concat(i.options.map((function(e){var t=o+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+a+" "+t+'">',r.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return Je("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return Je("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return Je("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,r=this;return t=function(e,t,n){var i,o,a=(i=r.$(t.selector),o=t.parser,lo(i.options[i.options.selectedIndex].value,o));return void 0!==a&&(e[n]=a),e},void 0===(n={})&&(n=0),Fe(e=uo).reduce((function(n,r){return t(n,e[r],r)}),n)},n.setValues=function(e){var t=this;He(uo,(function(n,r){!function(e,t,n){if(t)for(var r=0;r<e.options.length;r++)if(lo(e.options[r].value,n)===t){e.selectedIndex=r;break}}(t.$(n.selector),e[r],n.parser)}))},n.setDefaults=function(){var e=this;He(uo,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(i.a.localStorage.getItem("vjs-text-track-settings"))}catch(e){Ue.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?i.a.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e)):i.a.localStorage.removeItem("vjs-text-track-settings")}catch(e){Ue.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(nr);mn.registerComponent("TextTrackSettings",fo);var po=function(e){function t(t,n){var r,o=n.ResizeObserver||i.a.ResizeObserver;null===n.ResizeObserver&&(o=!1);var a=fn({createEl:!o,reportTouchActivity:!1},n);return(r=e.call(this,t,a)||this).ResizeObserver=n.ResizeObserver||i.a.ResizeObserver,r.loadListener_=null,r.resizeObserver_=null,r.debouncedHandler_=function(e,t,n,r){var o;void 0===r&&(r=i.a);var a=function(){var i=this,a=arguments,s=function(){o=null,s=null,n||e.apply(i,a)};!o&&n&&e.apply(i,a),r.clearTimeout(o),o=r.setTimeout(s,t)};return a.cancel=function(){r.clearTimeout(o),o=null},a}((function(){r.resizeHandler()}),100,!1,l()(r)),o?(r.resizeObserver_=new r.ResizeObserver(r.debouncedHandler_),r.resizeObserver_.observe(t.el())):(r.loadListener_=function(){if(r.el_&&r.el_.contentWindow){var e=r.debouncedHandler_,t=r.unloadListener_=function(){Ht(this,"resize",e),Ht(this,"unload",t),t=null};Ft(r.el_.contentWindow,"unload",t),Ft(r.el_.contentWindow,"resize",e)}},r.one("load",r.loadListener_)),r}p()(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(mn);mn.registerComponent("ResizeManager",po);var ho={trackingThreshold:30,liveTolerance:15},yo=function(e){function t(t,n){var r,i=fn(ho,n,{createEl:!1});return(r=e.call(this,t,i)||this).reset_(),r.on(r.player_,"durationchange",r.handleDurationchange),In&&"hidden"in a.a&&"visibilityState"in a.a&&r.on(a.a,"visibilitychange",r.handleVisibilityChange),r}p()(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(a.a.hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(i.a.performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var r=this.liveCurrentTime(),o=this.player_.currentTime(),a=this.player_.paused()||this.seekedBehindLive_||Math.abs(r-o)>this.options_.liveTolerance;this.timeupdateSeen_&&r!==1/0||(a=!1),a!==this.behindLiveEdge_&&(this.behindLiveEdge_=a,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLive_,30),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLive_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked):(this.one(this.player_,"play",this.handlePlay),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=!this.skipNextSeeked_&&e>2,this.skipNextSeeked_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.skipNextSeeked_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLive_),this.off(this.player_,"seeked",this.handleSeeked),this.off(this.player_,"play",this.handlePlay),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate),this.off(this.player_,"timeupdate",this.seekToLiveEdge)},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.skipNextSeeked_=!0,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(a.a,"visibilitychange",this.handleVisibilityChange),this.stopTracking(),e.prototype.dispose.call(this)},t}(mn);mn.registerComponent("LiveTracker",yo);var mo,vo=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),r=[],i="";if(!n.length)return!1;for(var o=0;o<n.length;o++){var a=n[o].src;a&&-1===r.indexOf(a)&&r.push(a)}return!!r.length&&(1===r.length&&(i=r[0]),e.triggerSourceset(i),!0)},go=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=a.a.createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=a.a.createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",i.a.Element.prototype.appendChild.call(this,n),this.innerHTML}}),bo=function(e,t){for(var n={},r=0;r<e.length&&!((n=Object.getOwnPropertyDescriptor(e[r],t))&&n.set&&n.get);r++);return n.enumerable=!0,n.configurable=!0,n},wo=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},r=function(e){return bo([e.el(),i.a.HTMLMediaElement.prototype,i.a.Element.prototype,go],"innerHTML")}(e),o=function(n){return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=n.apply(t,i);return vo(e),a}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=o(n[e]))})),Object.defineProperty(t,"innerHTML",fn(r,{set:o(r.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",r)},e.one("sourceset",t.resetSourceWatch_)}},_o=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?gr(i.a.Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return i.a.Element.prototype.setAttribute.call(this,"src",e),e}}),So=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return bo([e.el(),i.a.HTMLMediaElement.prototype,_o],"src")}(e),r=t.setAttribute,o=t.load;Object.defineProperty(t,"src",fn(n,{set:function(r){var i=n.set.call(t,r);return e.triggerSourceset(t.src),i}})),t.setAttribute=function(n,i){var o=r.call(t,n,i);return/src/i.test(n)&&e.triggerSourceset(t.src),o},t.load=function(){var n=o.call(t);return vo(e)||(e.triggerSourceset(""),wo(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):vo(e)||wo(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=o,t.setAttribute=r,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Co=function(e,t,n,r){void 0===r&&(r=!0);var i=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},o={configurable:!0,enumerable:!0,get:function(){var e=n();return i(e),e}};return r&&(o.set=i),Object.defineProperty(e,t,o)},To=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var i=t.source,o=!1;if(i&&(r.el_.currentSrc!==i.src||t.tag&&3===t.tag.initNetworkState_)?r.setSource(i):r.handleLateInit_(r.el_),t.enableSourceset&&r.setupSourcesetHandling_(),r.isScrubbing_=!1,r.el_.hasChildNodes()){for(var a=r.el_.childNodes,s=a.length,c=[];s--;){var u=a[s];"track"===u.nodeName.toLowerCase()&&(r.featuresNativeTextTracks?(r.remoteTextTrackEls().addTrackElement_(u),r.remoteTextTracks().addTrack(u.track),r.textTracks().addTrack(u.track),o||r.el_.hasAttribute("crossorigin")||!wr(u.src)||(o=!0)):c.push(u))}for(var l=0;l<c.length;l++)r.el_.removeChild(c[l])}return r.proxyNativeTracks_(),r.featuresNativeTextTracks&&o&&Ue.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),r.restoreMetadataTracksInIOSNativePlayer_(),(Rn||Nn||En)&&!0===t.nativeControlsForTouch&&r.setControls(!0),r.proxyWebkitFullscreen_(),r.triggerReady(),r}p()(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.disposeMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){So(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var r=t[n];"metadata"===r.kind&&e.push({track:r,storedMode:r.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var r=function n(){for(var r=0;r<e.length;r++){var i=e[r];"disabled"===i.track.mode&&i.track.mode!==i.storedMode&&(i.track.mode=i.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",r),t.addEventListener("change",r)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",r)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var r=e.toLowerCase();this[r+"TracksListeners_"]&&Object.keys(this[r+"TracksListeners_"]).forEach((function(e){n.el()[r+"Tracks"].removeEventListener(e,n[r+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[r+"TracksListeners_"]=null,this.proxyNativeTracksForType_(r)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Pr[e],r=this.el()[n.getterName],i=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&r&&r.addEventListener){var o={change:function(n){var r={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(r),"text"===e&&t[Ar.remoteText.getterName]().trigger(r)},addtrack:function(e){i.addTrack(e.track)},removetrack:function(e){i.removeTrack(e.track)}},a=function(){for(var e=[],t=0;t<i.length;t++){for(var n=!1,o=0;o<r.length;o++)if(r[o]===i[t]){n=!0;break}n||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=o,Object.keys(o).forEach((function(e){var n=o[e];r.addEventListener(e,n),t.on("dispose",(function(t){return r.removeEventListener(e,n)}))})),this.on("loadstart",a),this.on("dispose",(function(e){return t.off("loadstart",a)}))}},n.proxyNativeTracks_=function(){var e=this;Pr.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=a.a.createElement("video");var r=fn({},this.options_.tag&&st(this.options_.tag));Rn&&!0===this.options_.nativeControlsForTouch||delete r.controls,at(e,ze(r,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&ut(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var i=["loop","muted","playsinline","autoplay"],o=0;o<i.length;o++){var s=i[o],c=this.options_[s];void 0!==c&&(c?ut(e,s,s):lt(e,s),e[s]=c)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var r=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",r),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",r),t||this.trigger("loadstart")}))}var i=["loadstart"];i.push("loadedmetadata"),e.readyState>=2&&i.push("loadeddata"),e.readyState>=3&&i.push("canplay"),e.readyState>=4&&i.push("canplaythrough"),this.ready((function(){i.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&Bn?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Ue(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&Cn&&Pn&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1})},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=i.a.navigator&&i.a.navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Zn(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,r){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,r):e.prototype.addTextTrack.call(this,t,n,r)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=a.a.createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var r=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(r),r},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),r=n.length;r--;)t!==n[r]&&t!==n[r].track||this.el().removeChild(n[r])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),i.a.performance&&"function"==typeof i.a.performance.now?e.creationTime=i.a.performance.now():i.a.performance&&i.a.performance.timing&&"number"==typeof i.a.performance.timing.navigationStart&&(e.creationTime=i.a.Date.now()-i.a.performance.timing.navigationStart),e},t}(xr);Co(To,"TEST_VID",(function(){if(Xe()){var e=a.a.createElement("video"),t=a.a.createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),To.isSupported=function(){try{To.TEST_VID.volume=.5}catch(e){return!1}return!(!To.TEST_VID||!To.TEST_VID.canPlayType)},To.canPlayType=function(e){return To.TEST_VID.canPlayType(e)},To.canPlaySource=function(e,t){return To.canPlayType(e.type)},To.canControlVolume=function(){try{var e=To.TEST_VID.volume;return To.TEST_VID.volume=e/2+.1,e!==To.TEST_VID.volume}catch(e){return!1}},To.canMuteVolume=function(){try{var e=To.TEST_VID.muted;return To.TEST_VID.muted=!e,To.TEST_VID.muted?ut(To.TEST_VID,"muted","muted"):lt(To.TEST_VID,"muted"),e!==To.TEST_VID.muted}catch(e){return!1}},To.canControlPlaybackRate=function(){if(Cn&&Pn&&An<58)return!1;try{var e=To.TEST_VID.playbackRate;return To.TEST_VID.playbackRate=e/2+.1,e!==To.TEST_VID.playbackRate}catch(e){return!1}},To.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(a.a.createElement("video"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(a.a.createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(a.a.createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},To.supportsNativeTextTracks=function(){return Bn||Dn&&Pn},To.supportsNativeVideoTracks=function(){return!(!To.TEST_VID||!To.TEST_VID.videoTracks)},To.supportsNativeAudioTracks=function(){return!(!To.TEST_VID||!To.TEST_VID.audioTracks)},To.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresVolumeControl","canControlVolume"],["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Co(To.prototype,t,(function(){return To[n]()}),!0)})),To.prototype.movingMediaElementInDOM=!Dn,To.prototype.featuresFullscreenResize=!0,To.prototype.featuresProgressEvents=!0,To.prototype.featuresTimeupdateEvents=!0,To.patchCanPlayType=function(){Tn>=4&&!On&&!Pn&&(mo=To.TEST_VID&&To.TEST_VID.constructor.prototype.canPlayType,To.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":mo.call(this,e)})},To.unpatchCanPlayType=function(){var e=To.TEST_VID.constructor.prototype.canPlayType;return mo&&(To.TEST_VID.constructor.prototype.canPlayType=mo),e},To.patchCanPlayType(),To.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},To.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){To.prototype["set"+ln(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){To.prototype["set"+ln(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){To.prototype[e]=function(){return this.el_[e]()}})),xr.withSourceHandlers(To),To.nativeSourceHandler={},To.nativeSourceHandler.canPlayType=function(e){try{return To.TEST_VID.canPlayType(e)}catch(e){return""}},To.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return To.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=br(e.src);return To.nativeSourceHandler.canPlayType("video/"+n)}return""},To.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},To.nativeSourceHandler.dispose=function(){},To.registerSourceHandler(To.nativeSourceHandler),xr.registerTech("Html5",To);var Eo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Oo={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ko=["tiny","xsmall","small","medium","large","xlarge","huge"],Po={};ko.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Po[e]="vjs-layout-"+t}));var Ao={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Io=function(e){function t(n,r,i){var o;if(n.id=n.id||r.id||"vjs_video_"+jt(),(r=ze(t.getTagSettings(n),r)).initChildren=!1,r.createEl=!1,r.evented=!1,r.reportTouchActivity=!1,!r.language)if("function"==typeof n.closest){var s=n.closest("[lang]");s&&s.getAttribute&&(r.language=s.getAttribute("lang"))}else for(var c=n;c&&1===c.nodeType;){if(st(c).hasOwnProperty("lang")){r.language=c.getAttribute("lang");break}c=c.parentNode}if((o=e.call(this,null,r,i)||this).boundDocumentFullscreenChange_=Yt(l()(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=Yt(l()(o),o.fullWindowOnEscKey),o.isFullscreen_=!1,o.log=Me(o.id_),o.fsApi_=Wn,o.isPosterFromTech_=!1,o.queuedCallbacks_=[],o.isReady_=!1,o.hasStarted_=!1,o.userActive_=!1,o.debugEnabled_=!1,!o.options_||!o.options_.techOrder||!o.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(o.tag=n,o.tagAttributes=n&&st(n),o.language(o.options_.language),r.languages){var u={};Object.getOwnPropertyNames(r.languages).forEach((function(e){u[e.toLowerCase()]=r.languages[e]})),o.languages_=u}else o.languages_=t.prototype.options_.languages;o.resetCache_(),o.poster_=r.poster||"",o.controls_=!!r.controls,n.controls=!1,n.removeAttribute("controls"),o.changingSrc_=!1,o.playCallbacks_=[],o.playTerminatedQueue_=[],n.hasAttribute("autoplay")?o.autoplay(!0):o.autoplay(o.options_.autoplay),r.plugins&&Object.keys(r.plugins).forEach((function(e){if("function"!=typeof o[e])throw new Error('plugin "'+e+'" does not exist')})),o.scrubbing_=!1,o.el_=o.createEl(),an(l()(o),{eventBusKey:"el_"}),o.fsApi_.requestFullscreen&&(Ft(a.a,o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_),o.on(o.fsApi_.fullscreenchange,o.boundDocumentFullscreenChange_)),o.fluid_&&o.on(["playerreset","resize"],o.updateStyleEl_);var f=fn(o.options_);r.plugins&&Object.keys(r.plugins).forEach((function(e){o[e](r.plugins[e])})),r.debug&&o.debug(!0),o.options_.playerOptions=f,o.middleware_=[],o.initChildren(),o.isAudio("audio"===n.nodeName.toLowerCase()),o.controls()?o.addClass("vjs-controls-enabled"):o.addClass("vjs-controls-disabled"),o.el_.setAttribute("role","region"),o.isAudio()?o.el_.setAttribute("aria-label",o.localize("Audio Player")):o.el_.setAttribute("aria-label",o.localize("Video Player")),o.isAudio()&&o.addClass("vjs-audio"),o.flexNotSupported_()&&o.addClass("vjs-no-flex"),Rn&&o.addClass("vjs-touch-enabled"),Dn||o.addClass("vjs-workinghover"),t.players[o.id_]=l()(o);var p="7.11.2".split(".")[0];return o.addClass("vjs-v"+p),o.userActive(!0),o.reportUserActivity(),o.one("play",o.listenForUserActivity_),o.on("stageclick",o.handleStageClick_),o.on("keydown",o.handleKeyDown),o.on("languagechange",o.handleLanguagechange),o.breakpoints(o.options_.breakpoints),o.responsive(o.options_.responsive),o}p()(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),Ht(a.a,this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),Ht(a.a,"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Rr[this.id()]=null,Ir.names.forEach((function(e){var t=Ir[e],r=n[t.getterName]();r&&r.off&&r.off()})),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,r=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),o="video-js"===this.tag.tagName.toLowerCase();r?t=this.el_=n.parentNode:o||(t=this.el_=e.prototype.createEl.call(this,"div"));var s=st(n);if(o){for(t=this.el_=n,n=this.tag=a.a.createElement("video");t.children.length;)n.appendChild(t.firstChild);nt(t,"video-js")||rt(t,"video-js"),t.appendChild(n),r=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),s.tabindex="-1",(In||Pn&&Ln)&&(n.setAttribute("role","application"),s.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEach((function(e){o&&"class"===e||t.setAttribute(e,s[e]),o&&n.setAttribute(e,s[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=xt("vjs-styles-dimensions");var c=Ct(".vjs-styles-defaults"),u=Ct("head");u.insertBefore(this.styleEl_,c?c.nextSibling:u.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var l=n.getElementsByTagName("a"),f=0;f<l.length;f++){var p=l.item(f);rt(p,"vjs-hidden"),p.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!r&&n.parentNode.insertBefore(t,n),tt(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Ue.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var r=parseFloat(t);isNaN(r)?Ue.error('Improper value "'+t+'" supplied for for '+e):(this[n]=r,this.updateStyleEl_())},n.fluid=function(e){var t,n,r=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,$t(this)&&this.off(["playerreset","resize"],this.updateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){r.on(["playerreset","resize"],r.updateStyleEl_)},$t(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,r=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),o=r[1]/r[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),Lt(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid {\n padding-top: "+100*o+"%;\n }\n ")}else{var a="number"==typeof this.width_?this.width_:this.options_.width,s="number"==typeof this.height_?this.height_:this.options_.height,c=this.tech_&&this.tech_.el();c&&(a>=0&&(c.width=a),s>=0&&(c.height=s))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var r=ln(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==r&&this.tag&&(xr.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=r,this.isReady_=!1;var o={source:t,autoplay:"string"!=typeof this.autoplay()&&this.autoplay(),nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+i+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Ir.names.forEach((function(e){var t=Ir[e];o[t.getterName]=n[t.privateName]})),ze(o,this.options_[r]),ze(o,this.options_[i]),ze(o,this.options_[e.toLowerCase()]),this.tag&&(o.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(o.startTime=this.cache_.currentTime);var a=xr.getTech(e);if(!a)throw new Error("No Tech named '"+r+"' exists! '"+r+"' should be registered using videojs.registerTech()'");this.tech_=new a(o),this.tech_.ready(Yt(this,this.handleTechReady_),!0),tr(this.textTracksJson_||[],this.tech_),Eo.forEach((function(e){n.on(n.tech_,e,n["handleTech"+ln(e)+"_"])})),Object.keys(Oo).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Oo[e]+"_"].bind(n),event:t}):n["handleTech"+Oo[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",this.handleTechLoadStart_),this.on(this.tech_,"sourceset",this.handleTechSourceset_),this.on(this.tech_,"waiting",this.handleTechWaiting_),this.on(this.tech_,"ended",this.handleTechEnded_),this.on(this.tech_,"seeking",this.handleTechSeeking_),this.on(this.tech_,"play",this.handleTechPlay_),this.on(this.tech_,"firstplay",this.handleTechFirstPlay_),this.on(this.tech_,"pause",this.handleTechPause_),this.on(this.tech_,"durationchange",this.handleTechDurationChange_),this.on(this.tech_,"fullscreenchange",this.handleTechFullscreenChange_),this.on(this.tech_,"fullscreenerror",this.handleTechFullscreenError_),this.on(this.tech_,"enterpictureinpicture",this.handleTechEnterPictureInPicture_),this.on(this.tech_,"leavepictureinpicture",this.handleTechLeavePictureInPicture_),this.on(this.tech_,"error",this.handleTechError_),this.on(this.tech_,"loadedmetadata",this.updateStyleEl_),this.on(this.tech_,"posterchange",this.handleTechPosterChange_),this.on(this.tech_,"textdata",this.handleTechTextData_),this.on(this.tech_,"ratechange",this.handleTechRateChange_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===r&&this.tag||tt(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Ir.names.forEach((function(t){var n=Ir[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=er(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Ue.warn("Using the tech directly can be dangerous. I hope you know what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"mouseup",this.handleTechClick_),this.on(this.tech_,"dblclick",this.handleTechDoubleClick_),this.on(this.tech_,"touchstart",this.handleTechTouchStart_),this.on(this.tech_,"touchmove",this.handleTechTouchMove_),this.on(this.tech_,"touchend",this.handleTechTouchEnd_),this.on(this.tech_,"tap",this.handleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.handleTechTap_),this.off(this.tech_,"touchstart",this.handleTechTouchStart_),this.off(this.tech_,"touchmove",this.handleTechTouchMove_),this.off(this.tech_,"touchend",this.handleTechTouchEnd_),this.off(this.tech_,"mouseup",this.handleTechClick_),this.off(this.tech_,"dblclick",this.handleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,r=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var r=t.play();if($n(r))return r.catch(n)};if("any"===e&&!0!==this.muted()?$n(n=this.play())&&(n=n.catch(r)):n="muted"===e&&!0!==this.muted()?r():this.play(),$n(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(n){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var r=e.$$("source"),i=0;i<r.length;i++){var o=r[i];if(o.type&&o.src&&o.src===t)return o.type}return Hr(t)}(this,t)),this.cache_.source=fn({},e,{src:t,type:n});for(var r=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),i=[],o=this.$$("source"),a=[],s=0;s<o.length;s++){var c=st(o[s]);i.push(c),c.src&&c.src===t&&a.push(c.src)}a.length&&!r.length?this.cache_.sources=i:r.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},r=this.currentSource().src,i=e.src;r&&!/^blob:/.test(r)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==r)&&(n=function(){}),n(i),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Ue.warn("Passing the `starttime` option to the player will be deprecated in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){_t(e)&&this.controls_&&(this.paused()?Zn(this.play()):this.pause())},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),r=a.a[this.fsApi_.fullscreenElement]===n;!r&&n.matches?r=n.matches(":"+this.fsApi_.fullscreen):!r&&n.msMatchesSelector&&(r=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(r)}},n.handleTechFullscreenChange_=function(e,t){t&&(t.nativeIOSFullscreen&&this.toggleClass("vjs-ios-native-fs"),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in Ur)return function(e,t,n,r){return t[n](e.reduce(Vr(n),r))}(this.middleware_,this.tech_,e,t);if(e in Mr)return Dr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Ue(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Br)return function(e,t,n){return e.reduceRight(Vr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Mr)return Dr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Ue("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Ue("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Ue(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||i.a.Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Zn),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!Bn&&!Dn||this.load());var r=this.techGet_("play");null===r?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(r)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||Fn(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.applyInitTime_),void this.one("canplay",this.applyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=Fn(0,0)),e},n.bufferedPercent=function(){return Hn(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||i.a.Promise;if(t){var n=this;return new t((function(t,r){function i(){n.off("fullscreenerror",a),n.off("fullscreenchange",o)}function o(){i(),t()}function a(e,t){i(),r(t)}n.one("fullscreenchange",o),n.one("fullscreenerror",a);var s=n.requestFullscreenHelper_(e);if(s)return s.then(i,i),s}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var r=this.el_[this.fsApi_.requestFullscreen](t);return r&&r.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),r}this.tech_.supportsFullScreen()?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||i.a.Promise;if(e){var t=this;return new e((function(e,n){function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",i)}function i(){r(),e()}function o(e,t){r(),n(t)}t.one("fullscreenchange",i),t.one("fullscreenerror",o);var a=t.exitFullscreenHelper_();if(a)return a.then(r,r),a}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=a.a[this.fsApi_.exitFullscreen]();return t&&t.then((function(){return e.isFullscreen(!1)})),t}this.tech_.supportsFullScreen()?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=a.a.documentElement.style.overflow,Ft(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow="hidden",rt(a.a.body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){m.a.isEventKey(e,"Esc")&&(!0===this.isFullscreen()?this.exitFullscreen():this.exitFullWindow())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,Ht(a.a,"keydown",this.boundFullWindowOnEscKey_),a.a.documentElement.style.overflow=this.docOrigOverflow,it(a.a.body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in a.a&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in a.a)return a.a.exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,r=void 0===n?function(e){return m.a.isEventKey(e,"f")}:n,i=t.muteKey,o=void 0===i?function(e){return m.a.isEventKey(e,"m")}:i,s=t.playPauseKey,c=void 0===s?function(e){return m.a.isEventKey(e,"k")||m.a.isEventKey(e,"Space")}:s;if(r.call(this,e)){e.preventDefault(),e.stopPropagation();var u=mn.getComponent("FullscreenToggle");!1!==a.a[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(o.call(this,e)){e.preventDefault(),e.stopPropagation(),mn.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(c.call(this,e)){e.preventDefault(),e.stopPropagation(),mn.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,r=this.options_.techOrder;n<r.length;n++){var i=r[n],o=xr.getTech(i);if(o||(o=mn.getComponent(i)),o){if(o.isSupported()&&(t=o.canPlayType(e)))return t}else Ue.error('The "'+i+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n=this,r=this.options_.techOrder.map((function(e){return[e,xr.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Ue.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),i=function(e,t,n){var r;return e.some((function(e){return t.some((function(t){if(r=n(e,t))return!0}))})),r},o=function(e,t){var r=e[0];if(e[1].canPlaySource(t,n.options_[r.toLowerCase()]))return{source:t,tech:r}};return(this.options_.sourceOrder?i(e,r,(t=o,function(e,n){return t(n,e)})):i(r,e,o))||!1},n.src=function(e){var t=this;if(void 0===e)return this.cache_.src||"";var n=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):We(t)&&n.push(t)})),t=n}else t="string"==typeof t&&t.trim()?[zr({src:t})]:We(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[zr(t)]:[];return t}(e);n.length?(this.changingSrc_=!0,this.cache_.sources=n,this.updateSourceCaches_(n[0]),Nr(this,n[0],(function(e,r){var i,o;if(t.middleware_=r,t.cache_.sources=n,t.updateSourceCaches_(e),t.src_(e))return n.length>1?t.src(n.slice(1)):(t.changingSrc_=!1,t.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void t.triggerReady());i=r,o=t.tech_,i.forEach((function(e){return e.setTech&&e.setTech(o)}))}))):this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},n.src_=function(e){var t,n,r=this,i=this.selectSource([e]);return!i||(t=i.tech,n=this.techName_,ln(t)!==ln(n)?(this.changingSrc_=!0,this.loadTech_(i.tech,i.source),this.tech_.ready((function(){r.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||i.a.Promise;this.paused()||!t?this.doReset_():Zn(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),$t(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)?(this.options_.autoplay=e,this.manualAutoplay_(e),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){if(void 0===e)return this.error_||null;if(this.options_.suppressNotSupportedError&&e&&4===e.code){var t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",(function(){this.off(["click","touchstart"],t)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Xn(e),this.addClass("vjs-error"),Ue.error("(CODE:"+this.error_.code+" "+Xn.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error")},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,r=Yt(this,this.reportUserActivity),i=function(t){r(),this.clearInterval(e)};this.on("mousedown",(function(){r(),this.clearInterval(e),e=this.setInterval(r,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,r())})),this.on("mouseup",i),this.on("mouseleave",i);var o,a=this.getChild("controlBar");!a||Dn||Cn||(a.on("mouseenter",(function(e){this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout,this.player().options_.inactivityTimeout=0})),a.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",r),this.on("keyup",r),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);var e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),$t(this)&&this.trigger("languagechange"))},n.languages=function(){return fn(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=fn(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var r=t[n];(r=fn(r)).player=void 0,e.tracks[n]=r}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var r=new nr(this,t);return this.addChild(r),r.on("dispose",(function(){n.removeChild(r)})),r.open(),r},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<ko.length;n++){var r=ko[n];if(t<=this.breakpoints_[r]){if(e===r)return;e&&this.removeClass(Po[e]),this.addClass(Po[r]),this.breakpoint_=r;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=ze({},Ao,e),this.updateCurrentBreakpoint_()),ze(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.updateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.updateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Po[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=fn(e);var r=this.cache_.media,i=r.artwork,o=r.poster,a=r.src,s=r.textTracks;!i&&o&&(this.cache_.media.artwork=[{src:o,type:Hr(o)}]),a&&this.src(a),o&&this.poster(o),Array.isArray(s)&&s.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Hr(t.poster)}]),t}return fn(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=st(e),r=n["data-setup"];if(nt(e,"vjs-fill")&&(n.fill=!0),nt(e,"vjs-fluid")&&(n.fluid=!0),null!==r){var i=h()(r||"{}"),o=i[0],a=i[1];o&&Ue.error(o),ze(n,a)}if(ze(t,n),e.hasChildNodes())for(var s=e.childNodes,c=0,u=s.length;c<u;c++){var l=s[c],f=l.nodeName.toLowerCase();"source"===f?t.sources.push(st(l)):"track"===f&&t.tracks.push(st(l))}return t},n.flexNotSupported_=function(){var e=a.a.createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},t}(mn);Ir.names.forEach((function(e){var t=Ir[e];Io.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Io.prototype.crossorigin=Io.prototype.crossOrigin,Io.players={};var xo=i.a.navigator;Io.prototype.options_={techOrder:xr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:xo&&(xo.languages&&xo.languages[0]||xo.userLanguage||xo.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Io.prototype[e]=function(){return this.techGet_(e)}})),Eo.forEach((function(e){Io.prototype["handleTech"+ln(e)+"_"]=function(){return this.trigger(e)}})),mn.registerComponent("Player",Io);var Lo={},Ro=function(e){return Lo.hasOwnProperty(e)},jo=function(e){return Ro(e)?Lo[e]:void 0},No=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Do=function(e,t,n){var r=(n?"before":"")+"pluginsetup";e.trigger(r,t),e.trigger(r+":"+t.name,t)},Bo=function(e,t){return t.prototype.name=e,function(){Do(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=S()(t,[this].concat(r));return this[e]=function(){return o},Do(this,o.getEventHash()),o}},Uo=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),an(this),delete this.trigger,cn(this,this.constructor.defaultState),No(t,this.name),this.dispose=Yt(this,this.dispose),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),zt(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Bo(e,Lo[e])},e.isBasic=function(t){var n="string"==typeof t?jo(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(Ro(t))Ue.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Io.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Lo[t]=n,"plugin"!==t&&(e.isBasic(n)?Io.prototype[t]=function(e,t){var n=function(){Do(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return No(this,e),Do(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Io.prototype[t]=Bo(t,n)),n},e.deregisterPlugin=function(e){if("plugin"===e)throw new Error("Cannot de-register base plugin.");Ro(e)&&(delete Lo[e],delete Io.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Lo)),e.forEach((function(e){var n=jo(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=jo(e);return t&&t.VERSION||""},e}();Uo.getPlugin=jo,Uo.BASE_PLUGIN_NAME="plugin",Uo.registerPlugin("plugin",Uo),Io.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Io.prototype.hasPlugin=function(e){return!!Ro(e)};var Mo=function(e){return 0===e.indexOf("#")?e.slice(1):e};function Vo(e,t,n){var r=Vo.getPlayer(e);if(r)return t&&Ue.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&r.ready(n),r;var i="string"==typeof e?Ct("#"+Mo(e)):e;if(!Qe(i))throw new TypeError("The element or ID supplied is not valid. (videojs)");i.ownerDocument.defaultView&&i.ownerDocument.body.contains(i)||Ue.warn("The element supplied is not included in the DOM"),t=t||{},Vo.hooks("beforesetup").forEach((function(e){var n=e(i,fn(t));We(n)&&!Array.isArray(n)?t=fn(t,n):Ue.error("please return an object in beforesetup hooks")}));var o=mn.getComponent("Player");return r=new o(i,t,n),Vo.hooks("setup").forEach((function(e){return e(r)})),r}if(Vo.hooks_={},Vo.hooks=function(e,t){return Vo.hooks_[e]=Vo.hooks_[e]||[],t&&(Vo.hooks_[e]=Vo.hooks_[e].concat(t)),Vo.hooks_[e]},Vo.hook=function(e,t){Vo.hooks(e,t)},Vo.hookOnce=function(e,t){Vo.hooks(e,[].concat(t).map((function(t){return function n(){return Vo.removeHook(e,n),t.apply(void 0,arguments)}})))},Vo.removeHook=function(e,t){var n=Vo.hooks(e).indexOf(t);return!(n<=-1)&&(Vo.hooks_[e]=Vo.hooks_[e].slice(),Vo.hooks_[e].splice(n,1),!0)},!0!==i.a.VIDEOJS_NO_DYNAMIC_STYLE&&Xe()){var Fo=Ct(".vjs-styles-defaults");if(!Fo){Fo=xt("vjs-styles-defaults");var Ho=Ct("head");Ho&&Ho.insertBefore(Fo,Ho.firstChild),Lt(Fo,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid {\n padding-top: 56.25%\n }\n ")}}Pt(1,Vo),Vo.VERSION="7.11.2",Vo.options=Io.prototype.options_,Vo.getPlayers=function(){return Io.players},Vo.getPlayer=function(e){var t,n=Io.players;if("string"==typeof e){var r=Mo(e),i=n[r];if(i)return i;t=Ct("#"+r)}else t=e;if(Qe(t)){var o=t,a=o.player,s=o.playerId;if(a||n[s])return a||n[s]}},Vo.getAllPlayers=function(){return Object.keys(Io.players).map((function(e){return Io.players[e]})).filter(Boolean)},Vo.players=Io.players,Vo.getComponent=mn.getComponent,Vo.registerComponent=function(e,t){xr.isTech(t)&&Ue.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),mn.registerComponent.call(mn,e,t)},Vo.getTech=xr.getTech,Vo.registerTech=xr.registerTech,Vo.use=function(e,t){Lr[e]=Lr[e]||[],Lr[e].push(t)},Object.defineProperty(Vo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Vo.middleware,"TERMINATOR",{value:jr,writeable:!1,enumerable:!0}),Vo.browser=Un,Vo.TOUCH_ENABLED=Rn,Vo.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},r={};for(var i in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),r=t):"function"==typeof t&&(n=t),T()(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},Vo.mergeOptions=fn,Vo.bind=Yt,Vo.registerPlugin=Uo.registerPlugin,Vo.deregisterPlugin=Uo.deregisterPlugin,Vo.plugin=function(e,t){return Ue.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Uo.registerPlugin(e,t)},Vo.getPlugins=Uo.getPlugins,Vo.getPlugin=Uo.getPlugin,Vo.getPluginVersion=Uo.getPluginVersion,Vo.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),Vo.options.languages=fn(Vo.options.languages,((n={})[e]=t,n)),Vo.options.languages[e]},Vo.log=Ue,Vo.createLogger=Me,Vo.createTimeRange=Vo.createTimeRanges=Fn,Vo.formatTime=ii,Vo.setFormatTime=function(e){ri=e},Vo.resetFormatTime=function(){ri=ni},Vo.parseUrl=vr,Vo.isCrossOrigin=wr,Vo.EventTarget=Qt,Vo.on=Ft,Vo.one=Wt,Vo.off=Ht,Vo.trigger=zt,Vo.xhr=g.a,Vo.TextTrack=Tr,Vo.AudioTrack=Er,Vo.VideoTrack=Or,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){Vo[e]=function(){return Ue.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Et[e].apply(null,arguments)}})),Vo.computedStyle=Ge,Vo.dom=Et,Vo.url=_r,Vo.defineLazyProperty=Co;
|
|
2
2
|
/*! @name @videojs/http-streaming @version 2.4.2 @license Apache-2.0 */
|
|
3
3
|
var zo,Wo=O.a,qo=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Go=Vo.log,Ko=function(e,t){return e+"-"+t},Yo=function(e){var t=e.manifestString,n=e.customTagParsers,r=void 0===n?[]:n,i=e.customTagMappers,o=void 0===i?[]:i,a=new j;return r.forEach((function(e){return a.addParser(e)})),o.forEach((function(e){return a.addTagMapper(e)})),a.push(t),a.end(),a.manifest},Xo=function(e,t){["AUDIO","SUBTITLES"].forEach((function(n){for(var r in e.mediaGroups[n])for(var i in e.mediaGroups[n][r]){var o=e.mediaGroups[n][r][i];t(o,n,r,i)}}))},Qo=function(e){var t=e.playlist,n=e.uri,r=e.id;t.id=r,n&&(t.uri=n),t.attributes=t.attributes||{}},$o=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var r="placeholder-uri-"+n;e.playlists[n].uri=r}Xo(e,(function(t,n,r,i){if(t.playlists&&t.playlists.length&&!t.playlists[0].uri){var o="placeholder-uri-"+n+"-"+r+"-"+i,a=Ko(0,o);t.playlists[0].uri=o,t.playlists[0].id=a,e.playlists[a]=t.playlists[0],e.playlists[o]=t.playlists[0]}})),function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];Qo({playlist:n,id:Ko(t,n.uri)}),n.resolvedUri=Wo(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||Go.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Xo(e,(function(t){t.uri&&(t.resolvedUri=Wo(e.uri,t.uri))}))}(e)},Zo=Vo.mergeOptions,Jo=Vo.EventTarget,ea=function(e,t){e.resolvedUri||(e.resolvedUri=Wo(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Wo(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Wo(t,e.map.uri))},ta=function(e,t){var n=Zo(e,{}),r=n.playlists[t.id];if(!r)return null;if(r.segments&&t.segments&&r.segments.length===t.segments.length&&r.endList===t.endList&&r.mediaSequence===t.mediaSequence)return null;var i=Zo(r,t);r.segments&&(i.segments=function(e,t,n){var r=t.slice();n=n||0;for(var i=Math.min(e.length,t.length+n),o=n;o<i;o++)r[o-n]=Zo(e[o],r[o-n]);return r}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)),i.segments.forEach((function(e){ea(e,i.resolvedUri)}));for(var o=0;o<n.playlists.length;o++)n.playlists[o].id===t.id&&(n.playlists[o]=i);return n.playlists[t.id]=i,n.playlists[t.uri]=i,n},na=function(e,t){var n=e.segments[e.segments.length-1];return t&&n&&n.duration?1e3*n.duration:500*(e.targetDuration||10)},ra=function(e){function t(t,n,r){var i;if(void 0===r&&(r={}),i=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");var o=r,a=o.withCredentials,s=void 0!==a&&a,c=o.handleManifestRedirects,u=void 0!==c&&c;i.src=t,i.vhs_=n,i.withCredentials=s,i.handleManifestRedirects=u;var l=n.options_;return i.customTagParsers=l&&l.customTagParsers||[],i.customTagMappers=l&&l.customTagMappers||[],i.state="HAVE_NOTHING",i.on("mediaupdatetimeout",(function(){"HAVE_METADATA"===i.state&&(i.state="HAVE_CURRENT_METADATA",i.request=i.vhs_.xhr({uri:Wo(i.master.uri,i.media().uri),withCredentials:i.withCredentials},(function(e,t){if(i.request)return e?i.playlistRequestError(i.request,i.media(),"HAVE_METADATA"):void i.haveMetadata({playlistString:i.request.responseText,url:i.media().uri,id:i.media().id})})))})),i}p()(t,e);var n=t.prototype;return n.playlistRequestError=function(e,t,n){var r=t.uri,i=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[i],status:e.status,message:"HLS playlist request error at URL: "+r+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.haveMetadata=function(e){var t=this,n=e.playlistString,r=e.playlistObject,o=e.url,a=e.id;this.request=null,this.state="HAVE_METADATA";var s=r||Yo({manifestString:n,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers});s.lastRequest=Date.now(),Qo({playlist:s,uri:o,id:a});var c=ta(this.master,s);this.targetDuration=s.targetDuration,c?(this.master=c,this.media_=this.master.playlists[a]):this.trigger("playlistunchanged"),this.media().endList||(i.a.clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=i.a.setTimeout((function(){t.trigger("mediaupdatetimeout")}),na(this.media(),!!c))),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(i.a.clearTimeout(this.finalRenditionTimeout),t){var r=e.targetDuration/2*1e3||5e3;this.finalRenditionTimeout=i.a.setTimeout(this.media.bind(this,e,!1),r)}else{var o=this.state,a=!this.media_||e.id!==this.media_.id;if(this.master.playlists[e.id].endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(a&&(this.trigger("mediachanging"),"HAVE_MASTER"===o?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(a){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,r){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=qo(n.handleManifestRedirects,e.resolvedUri,r),t)return n.playlistRequestError(n.request,e,o);n.haveMetadata({playlistString:r.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===o?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout((function(){return t.load()}),r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=i.a.location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=qo(e.handleManifestRedirects,e.src,n);var r=Yo({manifestString:n.responseText,customTagParsers:e.customTagParsers,customTagMappers:e.customTagMappers});e.setupInitialPlaylist(r)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,$o(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments&&e.segments.forEach((function(t){ea(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||i.a.location.href;this.master=function(e,t){var n=Ko(0,t),r={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:i.a.location.href,resolvedUri:i.a.location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return r.playlists[n]=r.playlists[0],r.playlists[t]=r.playlists[0],r}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Jo),ia=function(e,t){var n,r=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&r.push([e.start(n),e.end(n)]);return Vo.createTimeRanges(r)},oa=function(e,t){return ia(e,(function(e,n){return e-.1<=t&&n+.1>=t}))},aa=function(e,t){return ia(e,(function(e){return e-1/30>=t}))},sa=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},ca=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},ua=Vo.createTimeRange,la=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var r=function(e,t){var n=0,r=t-e.mediaSequence,i=e.segments[r];if(i){if(void 0!==i.start)return{result:i.start,precise:!0};if(void 0!==i.end)return{result:i.end-i.duration,precise:!0}}for(;r--;){if(void 0!==(i=e.segments[r]).end)return{result:n+i.end,precise:!0};if(n+=i.duration,void 0!==i.start)return{result:n+i.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(r.precise)return r.result;var i=function(e,t){for(var n,r=0,i=t-e.mediaSequence;i<e.segments.length;i++){if(void 0!==(n=e.segments[i]).start)return{result:n.start-r,precise:!0};if(r+=n.duration,void 0!==n.end)return{result:n.end-r,precise:!0}}return{result:-1,precise:!1}}(e,t);return i.precise?i.result:r.result+n},fa=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return i.a.Infinity}return la(e,t,n)},pa=function(e,t,n){var r=0;if(t>n){var i=[n,t];t=i[0],n=i[1]}if(t<0){for(var o=t;o<Math.min(0,n);o++)r+=e.targetDuration;t=0}for(var a=t;a<n;a++)r+=e.segments[a].duration;return r},da=function(e,t){if(!e.segments.length)return 0;var n=e.segments.length,r=e.segments[n-1].duration||e.targetDuration,i="number"==typeof t?t:r+2*e.targetDuration;if(0===i)return n;for(var o=0;n--&&!((o+=e.segments[n].duration)>=i););return Math.max(0,n)},ha=function(e,t,n,r){if(!e||!e.segments)return null;if(e.endList)return fa(e);if(null===t)return null;t=t||0;var i=n?da(e,r):e.segments.length;return la(e,e.mediaSequence+i,t)},ya=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},ma=function(e){return e.excludeUntil&&e.excludeUntil===1/0},va=function(e){var t=ya(e);return!e.disabled&&!t},ga=function(e,t){return t.attributes&&t.attributes[e]},ba=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!va(e)&&(e.attributes.BANDWIDTH||0)<n})).length},wa={duration:fa,seekable:function(e,t,n){var r=t||0,i=ha(e,t,!0,n);return null===i?ua():ua(r,i)},safeLiveIndex:da,getMediaInfoForTime:function(e,t,n,r){var i,o=e.segments.length,a=t-r;if(a<0){if(n>0)for(i=n-1;i>=0;i--)if((a+=e.segments[i].duration+1/30)>0)return{mediaIndex:i,startTime:r-pa(e,n,i)};return{mediaIndex:0,startTime:t}}if(n<0){for(i=n;i<0;i++)if((a-=e.targetDuration)<0)return{mediaIndex:0,startTime:t};n=0}for(i=n;i<o;i++)if((a-=e.segments[i].duration+1/30)<0)return{mediaIndex:i,startTime:r+pa(e,n,i)};return{mediaIndex:o-1,startTime:t}},isEnabled:va,isDisabled:function(e){return e.disabled},isBlacklisted:ya,isIncompatible:ma,playlistEnd:ha,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:ga,estimateSegmentRequestTime:function(e,t,n,r){return void 0===r&&(r=0),ga("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*r)/t:NaN},isLowestEnabledRendition:ba},_a=Vo.xhr,Sa=Vo.mergeOptions,Ca=function(e,t,n,r){var i="arraybuffer"===e.responseType?e.response:e.responseText;!t&&i&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=i.byteLength||i.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(i||e.responseText)))),r(t,e)},Ta=function(){return function e(t,n){t=Sa({timeout:45e3},t);var r=e.beforeRequest||Vo.Vhs.xhr.beforeRequest;if(r&&"function"==typeof r){var i=r(t);i&&(t=i)}var o=_a(t,(function(e,t){return Ca(o,e,t,n)})),a=o.abort;return o.abort=function(){return o.aborted=!0,a.apply(o,arguments)},o.uri=t.uri,o.requestTime=Date.now(),o}},Ea=function(e){var t,n,r={};return e.byterange&&(r.Range=(t=e.byterange,n=t.offset+t.length-1,"bytes="+t.offset+"-"+n)),r},Oa=function(e,t){return e.start(t)+"-"+e.end(t)},ka=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},Pa=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Aa=function(e){var t={};return Object.keys(e).forEach((function(n){var r=e[n];ArrayBuffer.isView(r)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t},Ia=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},xa=function(e){return e.resolvedUri},La=function(e){for(var t=Array.prototype.slice.call(e),n="",r=0;r<t.length/16;r++)n+=t.slice(16*r,16*r+16).map(ka).join("")+" "+t.slice(16*r,16*r+16).map(Pa).join("")+"\n";return n},Ra=Object.freeze({__proto__:null,createTransferableMessage:Aa,initSegmentId:Ia,segmentKeyId:xa,hexDump:La,tagDump:function(e){var t=e.bytes;return La(t)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=Oa(e,t)+" ";return n}}),ja=function(e){var t=e.playlist,n=e.time,r=void 0===n?void 0:n,i=e.callback;if(!i)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===r)return i({message:"getProgramTime: playlist and time must be provided"});var o=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,r=0,i=0;i<t.segments.length&&!(e<=(r=(n=t.segments[i]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:r+n.duration));i++);var o=t.segments[t.segments.length-1];if(o.videoTimingInfo&&o.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>r){if(e>r+.25*o.duration)return null;n=o}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:r-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(r,t);if(!o)return i({message:"valid programTime was not found"});if("estimate"===o.type)return i({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:o.estimatedStart});var a={mediaSeconds:r},s=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,r=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*r)}(r,o.segment);return s&&(a.programDateTime=s.toISOString()),i(null,a)},Na=function e(t){var n=t.programTime,r=t.playlist,i=t.retryCount,o=void 0===i?2:i,a=t.seekTo,s=t.pauseAfterSeek,c=void 0===s||s,u=t.tech,l=t.callback;if(!l)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!r||!a)return l({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!r.endList&&!u.hasStarted_)return l({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++){if(!e.segments[t].dateTimeObject)return!1}return!0}(r))return l({message:"programDateTime tags must be provided in the manifest "+r.resolvedUri});var f=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var r=t.segments[0];if(n<r.dateTimeObject)return null;for(var i=0;i<t.segments.length-1;i++){if(r=t.segments[i],n<t.segments[i+1].dateTimeObject)break}var o,a=t.segments[t.segments.length-1],s=a.dateTimeObject,c=a.videoTimingInfo?(o=a.videoTimingInfo).transmuxedPresentationEnd-o.transmuxedPresentationStart-o.transmuxerPrependedSeconds:a.duration+.25*a.duration;return n>new Date(s.getTime()+1e3*c)?null:(n>s&&(r=a),{segment:r,estimatedStart:r.videoTimingInfo?r.videoTimingInfo.transmuxedPresentationStart:wa.duration(t,t.mediaSequence+t.segments.indexOf(r)),type:r.videoTimingInfo?"accurate":"estimate"})}(n,r);if(!f)return l({message:n+" was not found in the stream"});var p=f.segment,d=function(e,t){var n,r;try{n=new Date(e),r=new Date(t)}catch(e){}var i=n.getTime();return(r.getTime()-i)/1e3}(p.dateTimeObject,n);if("estimate"===f.type)return 0===o?l({message:n+" is not buffered yet. Try again"}):(a(f.estimatedStart+d),void u.one("seeked",(function(){e({programTime:n,playlist:r,retryCount:o-1,seekTo:a,pauseAfterSeek:c,tech:u,callback:l})})));var h=p.start+d;u.one("seeked",(function(){return l(null,u.currentTime())})),c&&u.pause(),a(h)},Da=function(e,t){if(4===e.readyState)return t()},Ba=Vo.EventTarget,Ua=Vo.mergeOptions,Ma=function(e){var t=e.byterange.offset+e.byterange.length-1;return e.uri+"-"+e.byterange.offset+"-"+t},Va=function(e,t){var n,r,i={};for(var o in e){var a=e[o].sidx;if(a){var s=Ma(a);if(!t[s])break;var c=t[s].sidxInfo;n=c,r=a,(Boolean(!n.map&&!r.map)||Boolean(n.map&&r.map&&n.map.byterange.offset===r.map.byterange.offset&&n.map.byterange.length===r.map.byterange.length))&&n.uri===r.uri&&n.byterange.offset===r.byterange.offset&&n.byterange.length===r.byterange.length&&(i[s]=t[s])}}return i},Fa=function(e){function t(t,n,r,i){var o;void 0===r&&(r={}),(o=e.call(this)||this).masterPlaylistLoader_=i||l()(o),i||(o.isMaster_=!0);var a=r,s=a.withCredentials,c=void 0!==s&&s,u=a.handleManifestRedirects,f=void 0!==u&&u;if(o.vhs_=n,o.withCredentials=c,o.handleManifestRedirects=f,!t)throw new Error("A non-empty playlist URL or object is required");return o.on("minimumUpdatePeriod",(function(){o.refreshXml_()})),o.on("mediaupdatetimeout",(function(){o.refreshMedia_(o.media().id)})),o.state="HAVE_NOTHING",o.loadedPlaylists_={},o.isMaster_?(o.masterPlaylistLoader_.srcUrl=t,o.masterPlaylistLoader_.sidxMapping_={}):o.childPlaylist_=t,o}p()(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var r=this,o=e.sidx&&Ma(e.sidx);if(e.sidx&&o&&!this.masterPlaylistLoader_.sidxMapping_[o]){var a=qo(this.handleManifestRedirects,e.sidx.resolvedUri),s=this.masterPlaylistLoader_.sidxMapping_;s[o]={sidxInfo:e.sidx};var c=function(i,a){if(!r.requestErrored_(i,a,t)){var c=Pe()(Object(Ie.toUint8)(a.response).subarray(8));return s[o].sidx=c,Oe(e,c,e.sidx.resolvedUri),n(!0)}};this.request=function(e,t,n){var r,i=[],o=!1,a=function(e,t,r,i){return t.abort(),o=!0,n(e,t,r,i)},s=function(e,t){if(!o){if(e)return a(e,t,"",i);var n=t.responseText.substring(i&&i.byteLength||0,t.responseText.length);if(i=Object(Ie.concatTypedArrays)(i,Object(Ie.stringToBytes)(n,!0)),r=r||Object(Ae.getId3Offset)(i),i.length<10||r&&i.length<r+2)return Da(t,(function(){return a(e,t,"",i)}));var s=Object(Ae.detectContainerForBytes)(i);return"ts"===s&&i.length<188||!s&&i.length<376?Da(t,(function(){return a(e,t,"",i)})):a(null,t,s,i)}},c=t({uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){t.total,t.loaded;return Ca(e,null,{statusCode:e.status},s)}))}},(function(e,t){return Ca(c,e,t,s)}));return c}(a,this.vhs_.xhr,(function(t,n,i,o){if(t)return c(t,n);if(!i||"mp4"!==i)return c({status:n.status,message:"Unsupported "+(i||"unknown")+" container type for sidx segment at URL: "+a,response:"",playlist:e,internal:!0,blacklistDuration:1/0,code:2},n);var s=e.sidx.byterange,u=s.offset,l=s.length;if(o.length>=l+u)return c(t,{response:o.subarray(u,u+l),status:n.status,uri:n.uri});r.request=r.vhs_.xhr({uri:a,responseType:"arraybuffer",headers:Ea({byterange:e.sidx.byterange})},c)}))}else this.mediaRequest_=i.a.setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),i.a.clearTimeout(this.mediaRequest_),i.a.clearTimeout(this.mediaUpdateTimeout),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var r=!this.media_||e.id!==this.media_.id;if(r&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(r&&(this.trigger("mediachanging"),this.trigger("mediachange")));r&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(r){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.stopRequest(),i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;i.a.clearTimeout(this.mediaUpdateTimeout),i.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var n=this.media();if(e){var r=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=i.a.setTimeout((function(){return t.load()}),r)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=i.a.setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,r){if(!t.requestErrored_(n,r)){var i=r.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=r.responseText,r.responseHeaders&&r.responseHeaders.date?t.masterLoaded_=Date.parse(r.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=qo(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,r),i?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(r,i)}))):e(r,i)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=Ee(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Wo(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(r,i){if(t.request){if(r)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var o;o="HEAD"===n.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):t.masterLoaded_:Date.parse(i.responseText),t.masterPlaylistLoader_.clientOffset_=o-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,r,i,o,a=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_},t=e.masterXml,n=e.srcUrl,r=e.clientOffset,i=e.sidxMapping,o=Te(t,{manifestUri:n,clientOffset:r,sidxMapping:i}),$o(o,n),o),s=this.masterPlaylistLoader_.master;s&&(a=function(e,t,n){for(var r=!0,i=Ua(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod}),o=0;o<t.playlists.length;o++){var a=t.playlists[o];if(a.sidx){var s=Ma(a.sidx);n&&n[s]&&Oe(a,n[s].sidx,a.sidx.resolvedUri)}var c=ta(i,a);c&&(i=c,r=!1)}return Xo(t,(function(e,t,n,o){if(e.playlists&&e.playlists.length){var a=e.playlists[0].id,s=ta(i,e.playlists[0]);s&&((i=s).mediaGroups[t][n][o].playlists[0]=i.playlists[a],r=!1)}})),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(r=!1),r?null:i}(s,a,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=a||s;var c=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return c&&c!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=c),(!s||a&&s.minimumUpdatePeriod!==a.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(a)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this;i.a.clearTimeout(this.minimumUpdatePeriodTimeout_);var t=function t(n){e.minimumUpdatePeriodTimeout_=i.a.setTimeout((function(){e.trigger("minimumUpdatePeriod"),t(n)}),n)},n=this.masterPlaylistLoader_.master&&this.masterPlaylistLoader_.master.minimumUpdatePeriod;n>0?t(n):0===n&&(this.media()?t(1e3*this.media().targetDuration):this.one("loadedplaylist",(function(){t(1e3*e.media().targetDuration)})))},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var r,i,o;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(r=e.masterPlaylistLoader_.master,i=e.masterPlaylistLoader_.sidxMapping_,o=Va(r.playlists,i),Xo(r,(function(e,t,n,r){if(e.playlists&&e.playlists.length){var a=e.playlists;o=Ua(o,Va(a,i))}})),o),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,r=!this.media_||this.media_!==n[e];r?this.media_=n[e]:this.trigger("playlistunchanged"),this.media().endList||(this.mediaUpdateTimeout=i.a.setTimeout((function(){t.trigger("mediaupdatetimeout")}),na(this.media(),Boolean(r)))),this.trigger("loadedplaylist")},t}(Ba),Ha={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},za=function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer},Wa=[],qa=function(e){var t=e.transmuxer,n=e.bytes,r=e.audioAppendStart,i=e.gopsToAlignWith,o=e.isPartial,a=e.remux,s=e.onData,c=e.onTrackInfo,u=e.onAudioTimingInfo,l=e.onVideoTimingInfo,f=e.onVideoSegmentTimingInfo,p=e.onAudioSegmentTimingInfo,d=e.onId3,h=e.onCaptions,y=e.onDone,m={isPartial:o,buffer:[]};if(t.onmessage=function(e){zo&&("data"===e.data.action&&function(e,t,n){var r=e.data.segment,i=r.type,o=r.initSegment,a=r.captions,s=r.captionStreams,c=r.metadata,u=r.videoFrameDtsTime,l=r.videoFramePtsTime;t.buffer.push({captions:a,captionStreams:s,metadata:c});var f=e.data.segment.boxes||{data:e.data.segment.data},p={type:i,data:new Uint8Array(f.data,f.data.byteOffset,f.data.byteLength),initSegment:new Uint8Array(o.data,o.byteOffset,o.byteLength)};void 0!==u&&(p.videoFrameDtsTime=u),void 0!==l&&(p.videoFramePtsTime=l),n(p)}(e,m,s),"trackinfo"===e.data.action&&c(e.data.trackInfo),"gopInfo"===e.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(e,m),"audioTimingInfo"===e.data.action&&u(e.data.audioTimingInfo),"videoTimingInfo"===e.data.action&&l(e.data.videoTimingInfo),"videoSegmentTimingInfo"===e.data.action&&f(e.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===e.data.action&&p(e.data.audioSegmentTimingInfo),"id3Frame"===e.data.action&&d([e.data.id3Frame],e.data.id3Frame.dispatchType),"caption"===e.data.action&&h(e.data.caption),"transmuxed"===e.data.type&&(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:m,callback:y}),Ga()))},r&&t.postMessage({action:"setAudioAppendStart",appendStart:r}),Array.isArray(i)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:i}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var v=n instanceof ArrayBuffer?n:n.buffer,g=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:v,byteOffset:g,byteLength:n.byteLength},[v])}t.postMessage({action:o?"partialFlush":"flush"})},Ga=function(){zo=null,Wa.length&&("function"==typeof(zo=Wa.shift())?zo():qa(zo))},Ka=function(e,t){e.postMessage({action:t}),Ga()},Ya=function(e,t){if(!zo)return zo=e,void Ka(t,e);Wa.push(Ka.bind(null,t,e))},Xa=function(e){if(!zo)return zo=e,void qa(e);Wa.push(e)},Qa=function(e){Ya("reset",e)},$a=function(){zo=null,Wa.length=0},Za=function(e){Ya("endTimeline",e)},Ja=2,es=-101,ts=-102,ns=function(e){e.forEach((function(e){e.abort()}))},rs=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:es,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:ts,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:Ja,xhr:t}:null},is=function(e){var t=e.segment,n=e.bytes,r=e.isPartial,i=e.trackInfoFn,o=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,c=e.id3Fn,u=e.captionsFn,l=e.dataFn,f=e.doneFn,p=t.map&&t.map.tracks||{},d=Boolean(p.audio&&p.video),h=o.bind(null,t,"audio","start"),y=o.bind(null,t,"audio","end"),m=o.bind(null,t,"video","start"),v=o.bind(null,t,"video","end");if(!r&&!t.lastReachedChar){var g=function(e,t){var n=Le.a.inspect(e,t*Re.ONE_SECOND_IN_TS);if(!n)return null;var r={hasVideo:n.video&&2===n.video.length||!1,hasAudio:n.audio&&2===n.audio.length||!1};return r.hasVideo&&(r.videoStart=n.video[0].ptsTime),r.hasAudio&&(r.audioStart=n.audio[0].ptsTime),r}(n,t.baseStartTime);g&&(i(t,{hasAudio:g.hasAudio,hasVideo:g.hasVideo,isMuxed:d}),i=null,g.hasAudio&&!d&&h(g.audioStart),g.hasVideo&&m(g.videoStart),h=null,m=null)}Xa({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,isPartial:r,remux:d,onData:function(e){e.type="combined"===e.type?"video":e.type,l(t,e)},onTrackInfo:function(e){i&&(d&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){h&&void 0!==e.start&&(h(e.start),h=null),y&&void 0!==e.end&&y(e.end)},onVideoTimingInfo:function(e){m&&void 0!==e.start&&(m(e.start),m=null),v&&void 0!==e.end&&v(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){c(t,e,n)},onCaptions:function(e){u(t,[e])},onDone:function(e){f&&!r&&(e.type="combined"===e.type?"video":e.type,f(null,t,e))}})},os=function(e){var t=e.segment,n=e.bytes,r=e.isPartial,i=e.trackInfoFn,o=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,c=e.id3Fn,u=e.captionsFn,l=e.dataFn,f=e.doneFn,p=new Uint8Array(n);if(Object(Ae.isLikelyFmp4MediaSegment)(p)){t.isFmp4=!0;var d=t.map.tracks,h={isFmp4:!0,hasVideo:!!d.video,hasAudio:!!d.audio};d.audio&&d.audio.codec&&"enca"!==d.audio.codec&&(h.audioCodec=d.audio.codec),d.video&&d.video.codec&&"encv"!==d.video.codec&&(h.videoCodec=d.video.codec),d.video&&d.audio&&(h.isMuxed=!0),i(t,h);var y=Ne.a.startTime(t.map.timescales,p);h.hasAudio&&!h.isMuxed&&o(t,"audio","start",y),h.hasVideo&&o(t,"video","start",y);var m=function(e){l(t,{data:n,type:h.hasAudio&&!h.isMuxed?"audio":"video"}),e&&e.length&&u(t,e),f(null,t,{})};if(!d.video||!n.byteLength||!t.transmuxer)return void m();var v=n instanceof ArrayBuffer?n:n.buffer,g=n instanceof ArrayBuffer?0:n.byteOffset;return t.transmuxer.addEventListener("message",(function e(r){if("mp4Captions"===r.data.action){t.transmuxer.removeEventListener("message",e);var i=r.data.data;t.bytes=n=new Uint8Array(i,i.byteOffset||0,i.byteLength),m(r.data.captions)}})),void t.transmuxer.postMessage({action:"pushMp4Captions",timescales:t.map.timescales,trackIds:[d.video.id],data:v,byteOffset:g,byteLength:n.byteLength},[v])}if(t.transmuxer){if(void 0===t.container&&(t.container=Object(Ae.detectContainerForBytes)(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void f(null,t,{});is({segment:t,bytes:n,isPartial:r,trackInfoFn:i,timingInfoFn:o,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:c,captionsFn:u,dataFn:l,doneFn:f})}else f(null,t,{})},as=function(e){var t=e.activeXhrs,n=e.decryptionWorker,r=e.trackInfoFn,i=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,s=e.id3Fn,c=e.captionsFn,u=e.dataFn,l=e.doneFn,f=0,p=!1;return function(e,d){if(!p){if(e)return p=!0,ns(t),l(e,d);if((f+=1)===t.length){if(d.endOfAllRequests=Date.now(),d.encryptedBytes)return function(e){var t,n=e.decryptionWorker,r=e.segment,i=e.trackInfoFn,o=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,c=e.id3Fn,u=e.captionsFn,l=e.dataFn,f=e.doneFn;n.addEventListener("message",(function e(t){if(t.data.source===r.requestId){n.removeEventListener("message",e);var p=t.data.decrypted;r.bytes=new Uint8Array(p.bytes,p.byteOffset,p.byteLength),os({segment:r,bytes:r.bytes,isPartial:!1,trackInfoFn:i,timingInfoFn:o,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:c,captionsFn:u,dataFn:l,doneFn:f})}})),t=r.key.bytes.slice?r.key.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.key.bytes)),n.postMessage(Aa({source:r.requestId,encrypted:r.encryptedBytes,key:t,iv:r.key.iv}),[r.encryptedBytes.buffer,t.buffer])}({decryptionWorker:n,segment:d,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:c,dataFn:u,doneFn:l});os({segment:d,bytes:d.bytes,isPartial:!1,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:c,dataFn:u,doneFn:l})}}}},ss=function(e){var t=e.segment,n=e.progressFn,r=e.trackInfoFn,i=e.timingInfoFn,o=e.videoSegmentTimingInfoFn,a=e.audioSegmentTimingInfoFn,s=e.id3Fn,c=e.captionsFn,u=e.dataFn,l=e.handlePartialData;return function(e){var f=e.target;if(!f.aborted){if(l&&!t.key&&f.responseText&&f.responseText.length>=8){var p=za(f.responseText.substring(t.lastReachedChar||0));!t.lastReachedChar&&Object(Ae.isLikelyFmp4MediaSegment)(new Uint8Array(p))||(t.lastReachedChar=f.responseText.length,os({segment:t,bytes:p,isPartial:!0,trackInfoFn:r,timingInfoFn:i,videoSegmentTimingInfoFn:o,audioSegmentTimingInfoFn:a,id3Fn:s,captionsFn:c,dataFn:u}))}return t.stats=Vo.mergeOptions(t.stats,function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}}},cs=function(e){var t=e.xhr,n=e.xhrOptions,r=e.decryptionWorker,i=e.segment,o=e.abortFn,a=e.progressFn,s=e.trackInfoFn,c=e.timingInfoFn,u=e.videoSegmentTimingInfoFn,l=e.audioSegmentTimingInfoFn,f=e.id3Fn,p=e.captionsFn,d=e.dataFn,h=e.doneFn,y=e.handlePartialData,m=[],v=as({activeXhrs:m,decryptionWorker:r,trackInfoFn:s,timingInfoFn:c,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:f,captionsFn:p,dataFn:d,doneFn:h});if(i.key&&!i.key.bytes){var g=t(Vo.mergeOptions(n,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),function(e,t){return function(n,r){var i=r.response,o=rs(n,r);if(o)return t(o,e);if(16!==i.byteLength)return t({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:Ja,xhr:r},e);var a=new DataView(i);return e.key.bytes=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]),t(null,e)}}(i,v));m.push(g)}if(i.map&&!i.map.bytes){var b=t(Vo.mergeOptions(n,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:Ea(i.map)}),function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,r){var i=r.response,o=rs(e,r);if(o)return n(o,t);if(0===i.byteLength)return n({status:r.status,message:"Empty HLS segment content at URL: "+r.uri,code:Ja,xhr:r},t);t.map.bytes=new Uint8Array(r.response);var a=Object(Ae.detectContainerForBytes)(t.map.bytes);return"mp4"!==a?n({status:r.status,message:"Found unsupported "+(a||"unknown")+" container for initialization segment at URL: "+r.uri,code:Ja,internal:!0,xhr:r},t):(Ne.a.tracks(t.map.bytes).forEach((function(e){t.map.tracks=t.map.tracks||{},t.map.tracks[e.type]||(t.map.tracks[e.type]=e,"number"==typeof e.id&&e.timescale&&(t.map.timescales=t.map.timescales||{},t.map.timescales[e.id]=e.timescale))})),n(null,t))}}({segment:i,finishProcessingFn:v}));m.push(b)}var w=Vo.mergeOptions(n,{uri:i.resolvedUri,responseType:"arraybuffer",headers:Ea(i)});y&&(w.responseType="text",w.beforeSend=function(e){e.overrideMimeType("text/plain; charset=x-user-defined")});var _=t(w,function(e){var t=e.segment,n=e.finishProcessingFn,r=e.responseType;return function(e,i){var o=i.response,a=rs(e,i);if(a)return n(a,t);var s="arraybuffer"!==r&&i.responseText?za(i.responseText.substring(t.lastReachedChar||0)):i.response;return 0===o.byteLength?n({status:i.status,message:"Empty HLS segment content at URL: "+i.uri,code:Ja,xhr:i},t):(t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(i),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t))}}({segment:i,finishProcessingFn:v,responseType:w.responseType}));_.addEventListener("progress",ss({segment:i,progressFn:a,trackInfoFn:s,timingInfoFn:c,videoSegmentTimingInfoFn:u,audioSegmentTimingInfoFn:l,id3Fn:f,captionsFn:p,dataFn:d,handlePartialData:y})),m.push(_);var S={};return m.forEach((function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:S,abortFn:o}))})),function(){return ns(m)}},us="undefined"!=typeof window?window:{},ls="undefined"==typeof Symbol?"__target":Symbol(),fs=us.BlobBuilder||us.WebKitBlobBuilder||us.MozBlobBuilder||us.MSBlobBuilder,ps=us.URL||us.webkitURL||ps&&ps.msURL,ds=us.Worker;function hs(e,t){return function(n){var r=this;if(!t)return new ds(e);if(ds&&!n){var i=gs(t.toString().replace(/^function.+?{/,"").slice(0,-1));return this[ls]=new ds(i),function(e,t){if(!e||!t)return;var n=e.terminate;e.objURL=t,e.terminate=function(){e.objURL&&ps.revokeObjectURL(e.objURL),n.call(e)}}(this[ls],i),this[ls]}var o={postMessage:function(e){r.onmessage&&setTimeout((function(){r.onmessage({data:e,target:o})}))}};t.call(o),this.postMessage=function(e){setTimeout((function(){o.onmessage({data:e,target:r})}))},this.isThisThread=!0}}if(ds){var ys,ms=gs("self.onmessage = function () {}"),vs=new Uint8Array(1);try{(ys=new ds(ms)).postMessage(vs,[vs.buffer])}catch(e){ds=null}finally{ps.revokeObjectURL(ms),ys&&ys.terminate()}}function gs(e){try{return ps.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new fs;return t.append(e),ps.createObjectURL(t.getBlob(type))}}var bs=new hs("./transmuxer-worker.worker.js",(function(e,t){var n=this;
|
|
4
4
|
/*! @name @videojs/http-streaming @version 2.4.2 @license Apache-2.0 */!function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,r,i,o,a,s,c,u,l,f,p,d,h,y,m,v,g,b,w,_,S,C,T,E,O,k,P,A,I,x,L,R,j,N,D,B,U,M,V,F,H=e,z=Math.pow(2,32)-1;!function(){var e;if(C={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in C)C.hasOwnProperty(e)&&(C[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);T=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),O=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),E=new Uint8Array([0,0,0,1]),k=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),P=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),A={video:k,audio:P},L=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),x=new Uint8Array([0,0,0,0,0,0,0,0]),R=new Uint8Array([0,0,0,0,0,0,0,0]),j=R,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=R,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,r=[],i=0;for(t=1;t<arguments.length;t++)r.push(arguments[t]);for(t=r.length;t--;)i+=r[t].byteLength;for(n=new Uint8Array(i+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,i=8;t<r.length;t++)n.set(r[t],i),i+=r[t].byteLength;return n},r=function(){return t(C.dinf,t(C.dref,L))},i=function(e){return t(C.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},m=function(e){return t(C.hdlr,A[e])},y=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(C.mdhd,n)},h=function(e){return t(C.mdia,y(e),m(e.type),s(e))},a=function(e){return t(C.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(C.minf,"video"===e.type?t(C.vmhd,I):t(C.smhd,x),r(),g(e))},c=function(e,n){for(var r=[],i=n.length;i--;)r[i]=w(n[i]);return t.apply(null,[C.moof,a(e)].concat(r))},u=function(e){for(var n=e.length,r=[];n--;)r[n]=p(e[n]);return t.apply(null,[C.moov,f(4294967295)].concat(r).concat(l(e)))},l=function(e){for(var n=e.length,r=[];n--;)r[n]=_(e[n]);return t.apply(null,[C.mvex].concat(r))},f=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(C.mvhd,n)},v=function(e){var n,r,i=e.samples||[],o=new Uint8Array(4+i.length);for(r=0;r<i.length;r++)n=i[r].flags,o[r+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(C.sdtp,o)},g=function(e){return t(C.stbl,b(e),t(C.stts,D),t(C.stsc,j),t(C.stsz,N),t(C.stco,R))},b=function(e){return t(C.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?B(e):U(e))},B=function(e){var n,r,i=e.sps||[],o=e.pps||[],a=[],s=[];for(n=0;n<i.length;n++)a.push((65280&i[n].byteLength)>>>8),a.push(255&i[n].byteLength),a=a.concat(Array.prototype.slice.call(i[n]));for(n=0;n<o.length;n++)s.push((65280&o[n].byteLength)>>>8),s.push(255&o[n].byteLength),s=s.concat(Array.prototype.slice.call(o[n]));if(r=[C.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(C.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[o.length],s))),t(C.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var c=e.sarRatio[0],u=e.sarRatio[1];r.push(t(C.pasp,new Uint8Array([(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return t.apply(null,r)},U=function(e){return t(C.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),i(e))},d=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(C.tkhd,n)},w=function(e){var n,r,i,o,a,s;return n=t(C.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),a=Math.floor(e.baseMediaDecodeTime/(z+1)),s=Math.floor(e.baseMediaDecodeTime%(z+1)),r=t(C.tfdt,new Uint8Array([1,0,0,0,a>>>24&255,a>>>16&255,a>>>8&255,255&a,s>>>24&255,s>>>16&255,s>>>8&255,255&s])),92,"audio"===e.type?(i=S(e,92),t(C.traf,n,r,i)):(o=v(e),i=S(e,o.length+92),t(C.traf,n,r,i,o))},p=function(e){return e.duration=e.duration||4294967295,t(C.trak,d(e),h(e))},_=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(C.trex,n)},F=function(e,t){var n=0,r=0,i=0,o=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(r=2),void 0!==e[0].flags&&(i=4),void 0!==e[0].compositionTimeOffset&&(o=8)),[0,0,n|r|i|o,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},V=function(e,n){var r,i,o,a,s,c;for(n+=20+16*(a=e.samples||[]).length,o=F(a,n),(i=new Uint8Array(o.length+16*a.length)).set(o),r=o.length,c=0;c<a.length;c++)s=a[c],i[r++]=(4278190080&s.duration)>>>24,i[r++]=(16711680&s.duration)>>>16,i[r++]=(65280&s.duration)>>>8,i[r++]=255&s.duration,i[r++]=(4278190080&s.size)>>>24,i[r++]=(16711680&s.size)>>>16,i[r++]=(65280&s.size)>>>8,i[r++]=255&s.size,i[r++]=s.flags.isLeading<<2|s.flags.dependsOn,i[r++]=s.flags.isDependedOn<<6|s.flags.hasRedundancy<<4|s.flags.paddingValue<<1|s.flags.isNonSyncSample,i[r++]=61440&s.flags.degradationPriority,i[r++]=15&s.flags.degradationPriority,i[r++]=(4278190080&s.compositionTimeOffset)>>>24,i[r++]=(16711680&s.compositionTimeOffset)>>>16,i[r++]=(65280&s.compositionTimeOffset)>>>8,i[r++]=255&s.compositionTimeOffset;return t(C.trun,i)},M=function(e,n){var r,i,o,a,s,c;for(n+=20+8*(a=e.samples||[]).length,o=F(a,n),(r=new Uint8Array(o.length+8*a.length)).set(o),i=o.length,c=0;c<a.length;c++)s=a[c],r[i++]=(4278190080&s.duration)>>>24,r[i++]=(16711680&s.duration)>>>16,r[i++]=(65280&s.duration)>>>8,r[i++]=255&s.duration,r[i++]=(4278190080&s.size)>>>24,r[i++]=(16711680&s.size)>>>16,r[i++]=(65280&s.size)>>>8,r[i++]=255&s.size;return t(C.trun,r)},S=function(e,t){return"audio"===e.type?M(e,t):V(e,t)};o=function(){return t(C.ftyp,T,E,T,O)};var W,q,G,K,Y,X,Q,$,Z=function(e){return t(C.mdat,e)},J=c,ee=function(e){var t,n=o(),r=u(e);return(t=new Uint8Array(n.byteLength+r.byteLength)).set(n),t.set(r,n.byteLength),t},te=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},ne=function(e){var t,n,r=[],i=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,r.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(r.length&&(r.duration=n.dts-r.dts,i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r)),(r=[n]).byteLength=n.data.byteLength,r.pts=n.pts,r.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(r.keyFrame=!0),r.duration=n.dts-r.dts,r.byteLength+=n.data.byteLength,r.push(n));return i.length&&(!r.duration||r.duration<=0)&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.length,i.duration+=r.duration,i.push(r),i},re=function(e){var t,n,r=[],i=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(r.length&&(i.push(r),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration),(r=[n]).nalCount=n.length,r.byteLength=n.byteLength,r.pts=n.pts,r.dts=n.dts,r.duration=n.duration):(r.duration+=n.duration,r.nalCount+=n.length,r.byteLength+=n.byteLength,r.push(n));return i.length&&r.duration<=0&&(r.duration=i[i.length-1].duration),i.byteLength+=r.byteLength,i.nalCount+=r.nalCount,i.duration+=r.duration,i.push(r),i},ie=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},oe=function(e,t){var n,r,i,o,a,s=t||0,c=[];for(n=0;n<e.length;n++)for(o=e[n],r=0;r<o.length;r++)a=o[r],s+=(i=te(a,s)).size,c.push(i);return c},ae=function(e){var t,n,r,i,o,a,s=0,c=e.byteLength,u=e.nalCount,l=new Uint8Array(c+4*u),f=new DataView(l.buffer);for(t=0;t<e.length;t++)for(i=e[t],n=0;n<i.length;n++)for(o=i[n],r=0;r<o.length;r++)a=o[r],f.setUint32(s,a.data.byteLength),s+=4,l.set(a.data,s),s+=a.data.byteLength;return l},se=function(e,t){var n,r=[];return n=te(e,t||0),r.push(n),r},ce=function(e){var t,n,r=0,i=e.byteLength,o=e.length,a=new Uint8Array(i+4*o),s=new DataView(a.buffer);for(t=0;t<e.length;t++)n=e[t],s.setUint32(r,n.data.byteLength),r+=4,a.set(n.data,r),r+=n.data.byteLength;return a},ue=[33,16,5,32,164,27],le=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],fe=function(e){for(var t=[];e--;)t.push(0);return t},pe=function(){if(!W){var e={96e3:[ue,[227,64],fe(154),[56]],88200:[ue,[231],fe(170),[56]],64e3:[ue,[248,192],fe(240),[56]],48e3:[ue,[255,192],fe(268),[55,148,128],fe(54),[112]],44100:[ue,[255,192],fe(268),[55,163,128],fe(84),[112]],32e3:[ue,[255,192],fe(268),[55,234],fe(226),[112]],24e3:[ue,[255,192],fe(268),[55,255,128],fe(268),[111,112],fe(126),[224]],16e3:[ue,[255,192],fe(268),[55,255,128],fe(268),[111,255],fe(269),[223,108],fe(195),[1,192]],12e3:[le,fe(268),[3,127,248],fe(268),[6,255,240],fe(268),[13,255,224],fe(268),[27,253,128],fe(259),[56]],11025:[le,fe(268),[3,127,248],fe(268),[6,255,240],fe(268),[13,255,224],fe(268),[27,255,192],fe(268),[55,175,128],fe(108),[112]],8e3:[le,fe(268),[3,121,16],fe(47),[7]]};t=e,W=Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(e,t){return e.concat(t)}),[])),e}),{})}var t;return W};X=function(e,t){return q(Y(e,t))},Q=function(e,t){return G(K(e),t)},$=function(e,t,n){return K(n?e:e-t)};var de=9e4,he=q=function(e){return 9e4*e},ye=(G=function(e,t){return e*t},K=function(e){return e/9e4}),me=(Y=function(e,t){return e/t},X),ve=Q,ge=$,be=function(e,t,n,r){var i,o,a,s,c,u=0,l=0,f=0;if(t.length&&(i=me(e.baseMediaDecodeTime,e.samplerate),o=Math.ceil(de/(e.samplerate/1024)),n&&r&&(u=i-Math.max(n,r),f=(l=Math.floor(u/o))*o),!(l<1||f>de/2))){for((a=pe()[e.samplerate])||(a=t[0].data),s=0;s<l;s++)c=t[0],t.splice(0,0,{data:a,dts:c.dts-o,pts:c.pts-o});return e.baseMediaDecodeTime-=Math.floor(ve(f,e.samplerate)),f}},we=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},_e=function(e){var t,n,r=[];for(t=0;t<e.length;t++)n=e[t],r.push({size:n.data.byteLength,duration:1024});return r},Se=function(e){var t,n,r=0,i=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],i.set(n.data,r),r+=n.data.byteLength;return i},Ce=de,Te=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ee=function(e,t){var n,r=e.minSegmentDts;return t||(r-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=r,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/Ce,n=Math.floor(n)),n},Oe=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},ke=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},r=0,i=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)r+=255,t++;for(r+=e[t++];255===e[t];)i+=255,t++;if(i+=e[t++],!n.payload&&4===r){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=r,n.payloadSize=i,n.payload=e.subarray(t,t+i);break}n.payload=void 0}t+=i,r=0,i=0}return n},Pe=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ae=function(e,t){var n,r,i,o,a=[];if(!(64&t[0]))return a;for(r=31&t[0],n=0;n<r;n++)o={type:3&t[(i=3*n)+2],pts:e},4&t[i+2]&&(o.ccData=t[i+3]<<8|t[i+4],a.push(o));return a},Ie=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},xe=4,Le=function e(){e.prototype.init.call(this),this.captionPackets_=[],this.ccStreams_=[new He(0,0),new He(0,1),new He(1,0),new He(1,1)],this.cc708Stream_=new Be,this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done"))};(Le.prototype=new H).push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=ke(e.escapedRBSP)).payload&&t.payloadType===xe&&(n=Pe(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));r=Ae(e.pts,n),this.captionPackets_=this.captionPackets_.concat(r),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},Le.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},Le.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},Le.prototype.flush=function(){return this.flushStream("flush")},Le.prototype.partialFlush=function(){return this.flushStream("partialFlush")},Le.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},Le.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},Le.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},Le.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},Le.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},Le.prototype.dispatchCea708Packet=function(e){this.cc708Stream_.push(e)};var Re={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},je=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Ne=function(e){this.windowNum=e,this.reset()};Ne.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ne.prototype.getText=function(){return this.rows.join("\n")},Ne.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ne.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ne.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ne.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ne.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var De=function(e){this.serviceNum=e,this.text="",this.currentWindow=new Ne(-1),this.windows=[]};De.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Ne(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},De.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]};var Be=function e(){e.prototype.init.call(this);var t=this;this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(t.new708Packet(),t.add708Bytes(e)):(null===t.current708Packet&&t.new708Packet(),t.add708Bytes(e))}};Be.prototype=new H,Be.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Be.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,r=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(r)},Be.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,r=null,i=0,o=t[i++];for(e.seq=o>>6,e.sizeCode=63&o;i<t.length;i++)r=31&(o=t[i++]),7===(n=o>>5)&&r>0&&(n=o=t[i++]),this.pushServiceBlock(n,i,r),r>0&&(i+=r-1)},Be.prototype.pushServiceBlock=function(e,t,n){var r,i=t,o=this.current708Packet.data,a=this.services[e];for(a||(a=this.initService(e,i));i<t+n&&i<o.length;i++)r=o[i],je(r)?i=this.handleText(i,a):16===r?i=this.extendedCommands(i,a):128<=r&&r<=135?i=this.setCurrentWindow(i,a):152<=r&&r<=159?i=this.defineWindow(i,a):136===r?i=this.clearWindows(i,a):140===r?i=this.deleteWindows(i,a):137===r?i=this.displayWindows(i,a):138===r?i=this.hideWindows(i,a):139===r?i=this.toggleWindows(i,a):151===r?i=this.setWindowAttributes(i,a):144===r?i=this.setPenAttributes(i,a):145===r?i=this.setPenColor(i,a):146===r?i=this.setPenLocation(i,a):143===r?a=this.reset(i,a):8===r?a.currentWindow.backspace():12===r?a.currentWindow.clearText():13===r?a.currentWindow.pendingNewLine=!0:14===r?a.currentWindow.clearText():141===r&&i++},Be.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return je(n)&&(e=this.handleText(e,t,!0)),e},Be.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Be.prototype.initService=function(e,t){var n=this;return this.services[e]=new De(e),this.services[e].init(this.getPts(t),(function(t){n.flushDisplayed(t,n.services[e])})),this.services[e]},Be.prototype.handleText=function(e,t,n){var r,i,o=this.current708Packet.data[e],a=(i=Re[r=(n?4096:0)|o]||r,4096&r&&r===i?"":String.fromCharCode(i)),s=t.currentWindow;return s.pendingNewLine&&!s.isEmpty()&&s.newLine(this.getPts(e)),s.pendingNewLine=!1,s.addText(a),e},Be.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},Be.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,r=n[e],i=7&r;t.setCurrentWindow(i);var o=t.currentWindow;return r=n[++e],o.visible=(32&r)>>5,o.rowLock=(16&r)>>4,o.columnLock=(8&r)>>3,o.priority=7&r,r=n[++e],o.relativePositioning=(128&r)>>7,o.anchorVertical=127&r,r=n[++e],o.anchorHorizontal=r,r=n[++e],o.anchorPoint=(240&r)>>4,o.rowCount=15&r,r=n[++e],o.columnCount=63&r,r=n[++e],o.windowStyle=(56&r)>>3,o.penStyle=7&r,o.virtualRowCount=o.rowCount+1,e},Be.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.winAttr;return r=n[++e],i.fillOpacity=(192&r)>>6,i.fillRed=(48&r)>>4,i.fillGreen=(12&r)>>2,i.fillBlue=3&r,r=n[++e],i.borderType=(192&r)>>6,i.borderRed=(48&r)>>4,i.borderGreen=(12&r)>>2,i.borderBlue=3&r,r=n[++e],i.borderType+=(128&r)>>5,i.wordWrap=(64&r)>>6,i.printDirection=(48&r)>>4,i.scrollDirection=(12&r)>>2,i.justify=3&r,r=n[++e],i.effectSpeed=(240&r)>>4,i.effectDirection=(12&r)>>2,i.displayEffect=3&r,e},Be.prototype.flushDisplayed=function(e,t){for(var n=[],r=0;r<8;r++)t.windows[r].visible&&!t.windows[r].isEmpty()&&n.push(t.windows[r].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Be.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Be.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=1);return e},Be.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible=0);return e},Be.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&(t.windows[i].visible^=1);return e},Be.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].clearText();return e},Be.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],r=this.getPts(e);this.flushDisplayed(r,t);for(var i=0;i<8;i++)n&1<<i&&t.windows[i].reset();return e},Be.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penAttr;return r=n[++e],i.textTag=(240&r)>>4,i.offset=(12&r)>>2,i.penSize=3&r,r=n[++e],i.italics=(128&r)>>7,i.underline=(64&r)>>6,i.edgeType=(56&r)>>3,i.fontStyle=7&r,e},Be.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penColor;return r=n[++e],i.fgOpacity=(192&r)>>6,i.fgRed=(48&r)>>4,i.fgGreen=(12&r)>>2,i.fgBlue=3&r,r=n[++e],i.bgOpacity=(192&r)>>6,i.bgRed=(48&r)>>4,i.bgGreen=(12&r)>>2,i.bgBlue=3&r,r=n[++e],i.edgeRed=(48&r)>>4,i.edgeGreen=(12&r)>>2,i.edgeBlue=3&r,e},Be.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,r=n[e],i=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,r=n[++e],i.row=15&r,r=n[++e],i.column=63&r,e},Be.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var Ue={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Me=function(e){return null===e?"":(e=Ue[e]||e,String.fromCharCode(e))},Ve=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],Fe=function(){for(var e=[],t=15;t--;)e.push("");return e},He=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,r,i,o;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),r=t>>>8,i=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=Fe();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=Fe();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=Fe()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(r,i))o=Me((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isExtCharacter(r,i))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),o=Me((r=(3&r)<<8)|i),this[this.mode_](e.pts,o),this.column_++;else if(this.isMidRowCode(r,i))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&i)&&this.addFormatting(e.pts,["i"]),1==(1&i)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(r,i))this.column_+=3&i;else if(this.isPAC(r,i)){var a=Ve.indexOf(7968&t);"rollUp"===this.mode_&&(a-this.rollUpRows_+1<0&&(a=this.rollUpRows_-1),this.setRollUp(e.pts,a)),a!==this.row_&&(this.clearFormatting(e.pts),this.row_=a),1&i&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(i)&&14==(14&i)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(r)&&(0===i&&(i=null),o=Me(r),o+=Me(i),this[this.mode_](e.pts,o),this.column_+=o.length)}else this.lastControlCode_=null}};He.prototype=new H,He.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e){try{return e.trim()}catch(e){return console.error("Skipping malformed caption."),""}})).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},He.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=Fe(),this.nonDisplayed_=Fe(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},He.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},He.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},He.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},He.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},He.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},He.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},He.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},He.prototype.isNormalChar=function(e){return e>=32&&e<=127},He.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=Fe(),this.displayed_=Fe()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},He.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},He.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},He.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},He.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},He.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},He.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var ze={CaptionStream:Le,Cea608Stream:He,Cea708Stream:Be},We={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},qe=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Ge=function e(t){var n,r;e.prototype.init.call(this),this.type_=t||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===r&&(r=e.dts),e.dts=qe(e.dts,r),e.pts=qe(e.pts,r),n=e.dts,this.trigger("data",e))},this.flush=function(){r=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){r=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ge.prototype=new H;var Ke,Ye=Ge,Xe=function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i},Qe=function(e,t,n){return decodeURIComponent(Xe(e,t,n))},$e=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},Ze={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Qe(e.data,1,t),e.value=Qe(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Qe(e.data,1,t),e.url=Qe(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,n;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(n=e.data,unescape(Xe(n,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};(Ke=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,i=[],o=0;if(Ke.prototype.init.call(this),this.dispatchType=We.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,a,s,c,u;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(o=0,i.length=0),0===i.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))n.debug&&console.log("Skipping unrecognized metadata packet");else if(i.push(e),o+=e.data.byteLength,1===i.length&&(r=$e(e.data.subarray(6,10)),r+=10),!(o<r)){for(t={data:new Uint8Array(r),frames:[],pts:i[0].pts,dts:i[0].dts},u=0;u<r;)t.data.set(i[0].data.subarray(0,r-u),u),u+=i[0].data.byteLength,o-=i[0].data.byteLength,i.shift();a=10,64&t.data[5]&&(a+=4,a+=$e(t.data.subarray(10,14)),r-=$e(t.data.subarray(16,20)));do{if((s=$e(t.data.subarray(a+4,a+8)))<1)return console.log("Malformed ID3 frame encountered. Skipping metadata parsing.");if((c={id:String.fromCharCode(t.data[a],t.data[a+1],t.data[a+2],t.data[a+3]),data:t.data.subarray(a+10,a+s+10)}).key=c.id,Ze[c.id]&&(Ze[c.id](c),"com.apple.streaming.transportStreamTimestamp"===c.owner)){var l=c.data,f=(1&l[3])<<30|l[4]<<22|l[5]<<14|l[6]<<6|l[7]>>>2;f*=4,f+=3&l[7],c.timeStamp=f,void 0===t.pts&&void 0===t.dts&&(t.pts=c.timeStamp,t.dts=c.timeStamp),this.trigger("timestamp",c)}t.frames.push(c),a+=10,a+=s}while(a<r);this.trigger("data",t)}}}).prototype=new H;var Je,et,tt,nt=Ke,rt=Ye;(Je=function(){var e=new Uint8Array(188),t=0;Je.prototype.init.call(this),this.push=function(n){var r,i=0,o=188;for(t?((r=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),r.set(n,t),t=0):r=n;o<r.byteLength;)71!==r[i]||71!==r[o]?(i++,o++):(this.trigger("data",r.subarray(i,o)),i+=188,o+=188);i<r.byteLength&&(e.set(r.subarray(i),0),t=r.byteLength-i)},this.flush=function(){188===t&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new H,(et=function(){var e,t,n,r;et.prototype.init.call(this),r=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,r){var i=0;r.payloadUnitStartIndicator&&(i+=e[i]+1),"pat"===r.type?t(e.subarray(i),r):n(e.subarray(i),r)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],r.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=r.pmtPid},n=function(e,t){var n,i;if(1&e[5]){for(r.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,i=12+((15&e[10])<<8|e[11]);i<n;){var o=e[i],a=(31&e[i+1])<<8|e[i+2];o===We.H264_STREAM_TYPE&&null===r.programMapTable.video?r.programMapTable.video=a:o===We.ADTS_STREAM_TYPE&&null===r.programMapTable.audio?r.programMapTable.audio=a:o===We.METADATA_STREAM_TYPE&&(r.programMapTable["timed-metadata"][a]=o),i+=5+((15&e[i+3])<<8|e[i+4])}t.programMapTable=r.programMapTable}},this.push=function(t){var n={},r=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(r+=t[r]+1),0===n.pid)n.type="pat",e(t.subarray(r),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(r),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,r,n]):this.processPes_(t,r,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=We.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=We.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new H,et.STREAM_TYPES={h264:27,adts:15},(tt=function(){var e,t=this,n={data:[],size:0},r={data:[],size:0},i={data:[],size:0},o=function(e,n,r){var i,o,a=new Uint8Array(e.size),s={type:n},c=0,u=0;if(e.data.length&&!(e.size<9)){for(s.trackId=e.data[0].pid,c=0;c<e.data.length;c++)o=e.data[c],a.set(o.data,u),u+=o.data.byteLength;var l,f,p;l=a,(f=s).packetLength=6+(l[4]<<8|l[5]),f.dataAlignmentIndicator=0!=(4&l[6]),192&(p=l[7])&&(f.pts=(14&l[9])<<27|(255&l[10])<<20|(254&l[11])<<12|(255&l[12])<<5|(254&l[13])>>>3,f.pts*=4,f.pts+=(6&l[13])>>>1,f.dts=f.pts,64&p&&(f.dts=(14&l[14])<<27|(255&l[15])<<20|(254&l[16])<<12|(255&l[17])<<5|(254&l[18])>>>3,f.dts*=4,f.dts+=(6&l[18])>>>1)),f.data=l.subarray(9+l[8]),i="video"===n||s.packetLength<=e.size,(r||i)&&(e.size=0,e.data.length=0),i&&t.trigger("data",s)}};tt.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case We.H264_STREAM_TYPE:e=n,t="video";break;case We.ADTS_STREAM_TYPE:e=r,t="audio";break;case We.METADATA_STREAM_TYPE:e=i,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var n={type:"metadata",tracks:[]};null!==(e=a.programMapTable).video&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&n.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",n)}})[a.type]()},this.reset=function(){n.size=0,n.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(n,"video"),o(r,"audio"),o(i,"timed-metadata")},this.flush=function(){this.flushStreams_(),this.trigger("done")}}).prototype=new H;var it={PAT_PID:0,MP2T_PACKET_LENGTH:188,TransportPacketStream:Je,TransportParseStream:et,ElementaryStream:tt,TimestampRolloverStream:rt,CaptionStream:ze.CaptionStream,Cea608Stream:ze.Cea608Stream,Cea708Stream:ze.Cea708Stream,MetadataStream:nt};for(var ot in We)We.hasOwnProperty(ot)&&(it[ot]=We[ot]);var at,st=it,ct=de,ut=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(at=function(e){var t,n=0;at.prototype.init.call(this),this.push=function(r){var i,o,a,s,c,u,l=0;if(e||(n=0),"audio"===r.type)for(t?(s=t,(t=new Uint8Array(s.byteLength+r.data.byteLength)).set(s),t.set(r.data,s.byteLength)):t=r.data;l+5<t.length;)if(255===t[l]&&240==(246&t[l+1])){if(o=2*(1&~t[l+1]),i=(3&t[l+3])<<11|t[l+4]<<3|(224&t[l+5])>>5,u=(c=1024*(1+(3&t[l+6])))*ct/ut[(60&t[l+2])>>>2],a=l+i,t.byteLength<a)return;if(this.trigger("data",{pts:r.pts+n*u,dts:r.dts+n*u,sampleCount:c,audioobjecttype:1+(t[l+2]>>>6&3),channelcount:(1&t[l+2])<<2|(192&t[l+3])>>>6,samplerate:ut[(60&t[l+2])>>>2],samplingfrequencyindex:(60&t[l+2])>>>2,samplesize:16,data:t.subarray(l+7+o,a)}),n++,t.byteLength===a)return void(t=void 0);t=t.subarray(a)}else l++},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}}).prototype=new H;var lt,ft,pt,dt=at,ht=function(e){var t=e.byteLength,n=0,r=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+r},this.loadWord=function(){var i=e.byteLength-t,o=new Uint8Array(4),a=Math.min(4,t);if(0===a)throw new Error("no bytes available");o.set(e.subarray(i,i+a)),n=new DataView(o.buffer).getUint32(0),r=8*a,t-=a},this.skipBits=function(e){var i;r>e?(n<<=e,r-=e):(e-=r,e-=8*(i=Math.floor(e/8)),t-=i,this.loadWord(),n<<=e,r-=e)},this.readBits=function(e){var i=Math.min(r,e),o=n>>>32-i;return(r-=i)>0?n<<=i:t>0&&this.loadWord(),(i=e-i)>0?o<<i|this.readBits(i):o},this.skipLeadingZeros=function(){var e;for(e=0;e<r;++e)if(0!=(n&2147483648>>>e))return n<<=e,r-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};(ft=function(){var e,t,n=0;ft.prototype.init.call(this),this.push=function(r){var i;t?((i=new Uint8Array(t.byteLength+r.data.byteLength)).set(t),i.set(r.data,t.byteLength),t=i):t=r.data;for(var o=t.byteLength;n<o-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<o;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<o);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}}).prototype=new H,pt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},(lt=function(){var e,t,n,r,i,o,a,s=new ft;lt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,r=e.dts,s.push(e))},s.on("data",(function(a){var s={trackId:t,pts:n,dts:r,data:a};switch(31&a[0]){case 5:s.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:s.nalUnitType="sei_rbsp",s.escapedRBSP=i(a.subarray(1));break;case 7:s.nalUnitType="seq_parameter_set_rbsp",s.escapedRBSP=i(a.subarray(1)),s.config=o(s.escapedRBSP);break;case 8:s.nalUnitType="pic_parameter_set_rbsp";break;case 9:s.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",s)})),s.on("done",(function(){e.trigger("done")})),s.on("partialdone",(function(){e.trigger("partialdone")})),s.on("reset",(function(){e.trigger("reset")})),s.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){s.flush()},this.partialFlush=function(){s.partialFlush()},this.reset=function(){s.reset()},this.endTimeline=function(){s.endTimeline()},a=function(e,t){var n,r=8,i=8;for(n=0;n<e;n++)0!==i&&(i=(r+t.readExpGolomb()+256)%256),r=0===i?r:i},i=function(e){for(var t,n,r=e.byteLength,i=[],o=1;o<r-2;)0===e[o]&&0===e[o+1]&&3===e[o+2]?(i.push(o+2),o+=2):o++;if(0===i.length)return e;t=r-i.length,n=new Uint8Array(t);var a=0;for(o=0;o<t;a++,o++)a===i[0]&&(a++,i.shift()),n[o]=e[a];return n},o=function(e){var t,n,r,i,o,s,c,u,l,f,p,d,h,y=0,m=0,v=0,g=0,b=1;if(n=(t=new ht(e)).readUnsignedByte(),i=t.readUnsignedByte(),r=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),pt[n]&&(3===(o=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(p=3!==o?8:12,h=0;h<p;h++)t.readBoolean()&&a(h<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(s=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===s)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),c=t.readUnsignedExpGolomb(),h=0;h<c;h++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),l=t.readUnsignedExpGolomb(),0===(f=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(y=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:d=[1,1];break;case 2:d=[12,11];break;case 3:d=[10,11];break;case 4:d=[16,11];break;case 5:d=[40,33];break;case 6:d=[24,11];break;case 7:d=[20,11];break;case 8:d=[32,11];break;case 9:d=[80,33];break;case 10:d=[18,11];break;case 11:d=[15,11];break;case 12:d=[64,33];break;case 13:d=[160,99];break;case 14:d=[4,3];break;case 15:d=[3,2];break;case 16:d=[2,1];break;case 255:d=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}d&&(b=d[0]/d[1])}return{profileIdc:n,levelIdc:r,profileCompatibility:i,width:Math.ceil((16*(u+1)-2*y-2*m)*b),height:(2-f)*(l+1)*16-2*v-2*g,sarRatio:d}}}).prototype=new H;var yt,mt={H264Stream:lt,NalByteStream:ft},vt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},gt=function(e){var t=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=vt(t,n))}(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},bt=vt,wt=function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n};(yt=function(){var e=new Uint8Array,t=0;yt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var r,i,o,a,s=0,c=0;for(e.length?(a=e.length,(e=new Uint8Array(n.byteLength+a)).set(e.subarray(0,a)),e.set(n,a)):e=n;e.length-c>=3;)if(e[c]!=="I".charCodeAt(0)||e[c+1]!=="D".charCodeAt(0)||e[c+2]!=="3".charCodeAt(0))if(255!=(255&e[c])||240!=(240&e[c+1]))c++;else{if(e.length-c<7)break;if(c+(s=wt(e,c))>e.length)break;o={type:"audio",data:e.subarray(c,c+s),pts:t,dts:t},this.trigger("data",o),c+=s}else{if(e.length-c<10)break;if(c+(s=bt(e,c))>e.length)break;i={type:"timed-metadata",data:e.subarray(c,c+s)},this.trigger("data",i),c+=s}r=e.length-c,e=r>0?e.subarray(c):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new H;var _t,St,Ct,Tt,Et=yt,Ot=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],kt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Pt=mt.H264Stream,At=gt,It=de,xt=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},Lt=function(e,t,n,r,i,o){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(r-t),pts:e+(i-n)},prependedContentDuration:o,baseMediaDecodeTime:e}};(St=function(e,t){var n=[],r=0,i=0,o=0,a=1/0;t=t||{},St.prototype.init.call(this),this.push=function(t){Oe(e,t),e&&Ot.forEach((function(n){e[n]=t[n]})),n.push(t)},this.setEarliestDts=function(e){i=e},this.setVideoBaseMediaDecodeTime=function(e){a=e},this.setAudioAppendStart=function(e){o=e},this.flush=function(){var s,c,u,l,f,p,d;0!==n.length?(s=we(n,e,i),e.baseMediaDecodeTime=Ee(e,t.keepOriginalTimestamps),d=be(e,s,o,a),e.samples=_e(s),u=Z(Se(s)),n=[],c=J(r,[e]),l=new Uint8Array(c.byteLength+u.byteLength),r++,l.set(c),l.set(u,c.byteLength),Te(e),f=Math.ceil(1024*It/e.samplerate),s.length&&(p=s.length*f,this.trigger("segmentTimingInfo",Lt(me(e.baseMediaDecodeTime,e.samplerate),s[0].dts,s[0].pts,s[0].dts+p,s[0].pts+p,d||0)),this.trigger("timingInfo",{start:s[0].pts,end:s[0].pts+p})),this.trigger("data",{track:e,boxes:l}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){Te(e),n=[],this.trigger("reset")}}).prototype=new H,(_t=function(e,t){var n,r,i=0,o=[],a=[];t=t||{},_t.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Oe(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||n||(n=t.config,e.sps=[t.data],kt.forEach((function(t){e[t]=n[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),o.push(t)},this.flush=function(){for(var n,r,s,c,u,l,f,p,d=0;o.length&&"access_unit_delimiter_rbsp"!==o[0].nalUnitType;)o.shift();if(0===o.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(n=ne(o),(s=re(n))[0][0].keyFrame||((r=this.getGopForFusion_(o[0],e))?(d=r.duration,s.unshift(r),s.byteLength+=r.byteLength,s.nalCount+=r.nalCount,s.pts=r.pts,s.dts=r.dts,s.duration+=r.duration):s=ie(s)),a.length){var h;if(!(h=t.alignGopsAtEnd?this.alignGopsAtEnd_(s):this.alignGopsAtStart_(s)))return this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");Te(e),s=h}Oe(e,s),e.samples=oe(s),u=Z(ae(s)),e.baseMediaDecodeTime=Ee(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",s.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),f=s[0],p=s[s.length-1],this.trigger("segmentTimingInfo",Lt(e.baseMediaDecodeTime,f.dts,f.pts,p.dts+p.duration,p.pts+p.duration,d)),this.trigger("timingInfo",{start:s[0].pts,end:s[s.length-1].pts+s[s.length-1].duration}),this.gopCache_.unshift({gop:s.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),o=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),c=J(i,[e]),l=new Uint8Array(c.byteLength+u.byteLength),i++,l.set(c),l.set(u,c.byteLength),this.trigger("data",{track:e,boxes:l}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),o=[],this.gopCache_.length=0,a.length=0,this.trigger("reset")},this.resetStream_=function(){Te(e),n=void 0,r=void 0},this.getGopForFusion_=function(t){var n,r,i,o,a,s=1/0;for(a=0;a<this.gopCache_.length;a++)i=(o=this.gopCache_[a]).gop,e.pps&&xt(e.pps[0],o.pps[0])&&e.sps&&xt(e.sps[0],o.sps[0])&&(i.dts<e.timelineStartInfo.dts||(n=t.dts-i.dts-i.duration)>=-1e4&&n<=45e3&&(!r||s>n)&&(r=o,s=n));return r?r.gop:null},this.alignGopsAtStart_=function(e){var t,n,r,i,o,s,c,u;for(o=e.byteLength,s=e.nalCount,c=e.duration,t=n=0;t<a.length&&n<e.length&&(r=a[t],i=e[n],r.pts!==i.pts);)i.pts>r.pts?t++:(n++,o-=i.byteLength,s-=i.nalCount,c-=i.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=o,u.duration=c,u.nalCount=s,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,r,i,o,s,c;for(t=a.length-1,n=e.length-1,o=null,s=!1;t>=0&&n>=0;){if(r=a[t],i=e[n],r.pts===i.pts){s=!0;break}r.pts>i.pts?t--:(t===a.length-1&&(o=n),n--)}if(!s&&null===o)return null;if(0===(c=s?n:o))return e;var u=e.slice(c),l=u.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return u.byteLength=l.byteLength,u.duration=l.duration,u.nalCount=l.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){a=e}}).prototype=new H,(Tt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Tt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}}).prototype=new H,Tt.prototype.flush=function(e){var t,n,r,i,o=0,a={captions:[],captionStreams:{},metadata:[],info:{}},s=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(s=this.videoTrack.timelineStartInfo.pts,kt.forEach((function(e){a.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(s=this.audioTrack.timelineStartInfo.pts,Ot.forEach((function(e){a.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?a.type=this.pendingTracks[0].type:a.type="combined",this.emittedTracks+=this.pendingTracks.length,r=ee(this.pendingTracks),a.initSegment=new Uint8Array(r.byteLength),a.initSegment.set(r),a.data=new Uint8Array(this.pendingBytes),i=0;i<this.pendingBoxes.length;i++)a.data.set(this.pendingBoxes[i],o),o+=this.pendingBoxes[i].byteLength;for(i=0;i<this.pendingCaptions.length;i++)(t=this.pendingCaptions[i]).startTime=ge(t.startPts,s,this.keepOriginalTimestamps),t.endTime=ge(t.endPts,s,this.keepOriginalTimestamps),a.captionStreams[t.stream]=!0,a.captions.push(t);for(i=0;i<this.pendingMetadata.length;i++)(n=this.pendingMetadata[i]).cueTime=ge(n.pts,s,this.keepOriginalTimestamps),a.metadata.push(n);for(a.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",a),i=0;i<a.captions.length;i++)t=a.captions[i],this.trigger("caption",t);for(i=0;i<a.metadata.length;i++)n=a.metadata[i],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Tt.prototype.setRemux=function(e){this.remuxTracks=e},(Ct=function(e){var t,n,r=this,i=!0;Ct.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="aac",i.metadataStream=new st.MetadataStream,i.aacStream=new Et,i.audioTimestampRolloverStream=new st.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new st.TimestampRolloverStream("timed-metadata"),i.adtsStream=new dt,i.coalesceStream=new Tt(e,i.metadataStream),i.headOfPipeline=i.aacStream,i.aacStream.pipe(i.audioTimestampRolloverStream).pipe(i.adtsStream),i.aacStream.pipe(i.timedMetadataTimestampRolloverStream).pipe(i.metadataStream).pipe(i.coalesceStream),i.metadataStream.on("timestamp",(function(e){i.aacStream.setTimestamp(e.timeStamp)})),i.aacStream.on("data",(function(o){"timed-metadata"!==o.type&&"audio"!==o.type||i.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:r.baseMediaDecodeTime},codec:"adts",type:"audio"},i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new St(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setupTsPipeline=function(){var i={};this.transmuxPipeline_=i,i.type="ts",i.metadataStream=new st.MetadataStream,i.packetStream=new st.TransportPacketStream,i.parseStream=new st.TransportParseStream,i.elementaryStream=new st.ElementaryStream,i.timestampRolloverStream=new st.TimestampRolloverStream,i.adtsStream=new dt,i.h264Stream=new Pt,i.captionStream=new st.CaptionStream,i.coalesceStream=new Tt(e,i.metadataStream),i.headOfPipeline=i.packetStream,i.packetStream.pipe(i.parseStream).pipe(i.elementaryStream).pipe(i.timestampRolloverStream),i.timestampRolloverStream.pipe(i.h264Stream),i.timestampRolloverStream.pipe(i.adtsStream),i.timestampRolloverStream.pipe(i.metadataStream).pipe(i.coalesceStream),i.h264Stream.pipe(i.captionStream).pipe(i.coalesceStream),i.elementaryStream.on("data",(function(o){var a;if("metadata"===o.type){for(a=o.tracks.length;a--;)t||"video"!==o.tracks[a].type?n||"audio"!==o.tracks[a].type||((n=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime):(t=o.tracks[a]).timelineStartInfo.baseMediaDecodeTime=r.baseMediaDecodeTime;t&&!i.videoSegmentStream&&(i.coalesceStream.numberOfTracks++,i.videoSegmentStream=new _t(t,e),i.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,i.audioSegmentStream.setEarliestDts(t.dts-r.baseMediaDecodeTime))})),i.videoSegmentStream.on("processedGopsInfo",r.trigger.bind(r,"gopInfo")),i.videoSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"videoSegmentTimingInfo")),i.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&i.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),i.videoSegmentStream.on("timingInfo",r.trigger.bind(r,"videoTimingInfo")),i.h264Stream.pipe(i.videoSegmentStream).pipe(i.coalesceStream)),n&&!i.audioSegmentStream&&(i.coalesceStream.numberOfTracks++,i.audioSegmentStream=new St(n,e),i.audioSegmentStream.on("timingInfo",r.trigger.bind(r,"audioTimingInfo")),i.audioSegmentStream.on("segmentTimingInfo",r.trigger.bind(r,"audioSegmentTimingInfo")),i.adtsStream.pipe(i.audioSegmentStream).pipe(i.coalesceStream)),r.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),i.coalesceStream.on("data",this.trigger.bind(this,"data")),i.coalesceStream.on("id3Frame",(function(e){e.dispatchType=i.metadataStream.dispatchType,r.trigger("id3Frame",e)})),i.coalesceStream.on("caption",this.trigger.bind(this,"caption")),i.coalesceStream.on("done",this.trigger.bind(this,"done"))},this.setBaseMediaDecodeTime=function(r){var i=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=r),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,Te(n),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Te(t),i.captionStream.reset()),i.timestampRolloverStream&&i.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.push=function(e){if(i){var t=At(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),i=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){i=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}}).prototype=new H;var Rt={Transmuxer:Ct,VideoSegmentStream:_t,AudioSegmentStream:St,AUDIO_PROPERTIES:Ot,VIDEO_PROPERTIES:kt,generateSegmentTimingInfo:Lt},jt={Adts:dt,h264:mt},Nt=de,Dt=function e(t,n){var r=[],i=0,o=0,a=0,s=1/0,c=null,u=null;n=n||{},e.prototype.init.call(this),this.push=function(e){Oe(t,e),t&&Ot.forEach((function(n){t[n]=e[n]})),r.push(e)},this.setEarliestDts=function(e){o=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.processFrames_=function(){var e,l,f,p,d;0!==r.length&&0!==(e=we(r,t,o)).length&&(t.baseMediaDecodeTime=Ee(t,n.keepOriginalTimestamps),be(t,e,a,s),t.samples=_e(e),f=Z(Se(e)),r=[],l=J(i,[t]),i++,t.initSegment=ee([t]),(p=new Uint8Array(l.byteLength+f.byteLength)).set(l),p.set(f,l.byteLength),Te(t),null===c&&(u=c=e[0].pts),u+=e.length*(1024*Nt/t.samplerate),d={start:c},this.trigger("timingInfo",d),this.trigger("data",{track:t,boxes:p}))},this.flush=function(){this.processFrames_(),this.trigger("timingInfo",{start:c,end:u}),this.resetTiming_(),this.trigger("done","AudioSegmentStream")},this.partialFlush=function(){this.processFrames_(),this.trigger("partialdone","AudioSegmentStream")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline","AudioSegmentStream")},this.resetTiming_=function(){Te(t),c=null,u=null},this.reset=function(){this.resetTiming_(),r=[],this.trigger("reset")}};Dt.prototype=new H;var Bt=Dt,Ut=function e(t,n){var r,i,o,a=0,s=[],c=[],u=null,l=null,f=!0;n=n||{},e.prototype.init.call(this),this.push=function(e){Oe(t,e),void 0===t.timelineStartInfo.dts&&(t.timelineStartInfo.dts=e.dts),"seq_parameter_set_rbsp"!==e.nalUnitType||r||(r=e.config,t.sps=[e.data],kt.forEach((function(e){t[e]=r[e]}),this)),"pic_parameter_set_rbsp"!==e.nalUnitType||i||(i=e.data,t.pps=[e.data]),s.push(e)},this.processNals_=function(e){var r;for(s=c.concat(s);s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0!==s.length){var i=ne(s);if(i.length)if(c=i[i.length-1],e&&(i.pop(),i.duration-=c.duration,i.nalCount-=c.length,i.byteLength-=c.byteLength),i.length){if(this.trigger("timelineStartInfo",t.timelineStartInfo),f){if(!(o=re(i))[0][0].keyFrame){if(!(o=ie(o))[0][0].keyFrame)return s=[].concat.apply([],i).concat(c),void(c=[]);(i=[].concat.apply([],o)).duration=o.duration}f=!1}for(null===u&&(u=i[0].pts,l=u),l+=i.duration,this.trigger("timingInfo",{start:u,end:l}),r=0;r<i.length;r++){var p=i[r];t.samples=se(p);var d=Z(ce(p));Te(t),Oe(t,p),t.baseMediaDecodeTime=Ee(t,n.keepOriginalTimestamps);var h=J(a,[t]);a++,t.initSegment=ee([t]);var y=new Uint8Array(h.byteLength+d.byteLength);y.set(h),y.set(d,h.byteLength),this.trigger("data",{track:t,boxes:y,sequence:a,videoFrameDts:p.dts,videoFramePts:p.pts})}s=[]}else s=[]}},this.resetTimingAndConfig_=function(){r=void 0,i=void 0,u=null,l=null},this.partialFlush=function(){this.processNals_(!0),this.trigger("partialdone","VideoSegmentStream")},this.flush=function(){this.processNals_(!1),this.resetTimingAndConfig_(),this.trigger("done","VideoSegmentStream")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline","VideoSegmentStream")},this.reset=function(){this.resetTimingAndConfig_(),c=[],s=[],f=!0,this.trigger("reset")}};Ut.prototype=new H;var Mt=Ut,Vt=gt,Ft=function(e){return e.prototype=new H,e.prototype.init.call(e),e},Ht=function(e,t){e.on("data",t.trigger.bind(t,"data")),e.on("done",t.trigger.bind(t,"done")),e.on("partialdone",t.trigger.bind(t,"partialdone")),e.on("endedtimeline",t.trigger.bind(t,"endedtimeline")),e.on("audioTimingInfo",t.trigger.bind(t,"audioTimingInfo")),e.on("videoTimingInfo",t.trigger.bind(t,"videoTimingInfo")),e.on("trackinfo",t.trigger.bind(t,"trackinfo")),e.on("id3Frame",(function(n){n.dispatchType=e.metadataStream.dispatchType,n.cueTime=ye(n.pts),t.trigger("id3Frame",n)})),e.on("caption",(function(e){t.trigger("caption",e)}))},zt=function e(t){var n=null,r=!0;t=t||{},e.prototype.init.call(this),t.baseMediaDecodeTime=t.baseMediaDecodeTime||0,this.push=function(e){if(r){var i=Vt(e);!i||n&&"aac"===n.type?i||n&&"ts"===n.type||(n=function(e){var t={type:"ts",tracks:{audio:null,video:null},packet:new st.TransportPacketStream,parse:new st.TransportParseStream,elementary:new st.ElementaryStream,timestampRollover:new st.TimestampRolloverStream,adts:new jt.Adts,h264:new jt.h264.H264Stream,captionStream:new st.CaptionStream,metadataStream:new st.MetadataStream};return t.headOfPipeline=t.packet,t.packet.pipe(t.parse).pipe(t.elementary).pipe(t.timestampRollover),t.timestampRollover.pipe(t.h264),t.h264.pipe(t.captionStream),t.timestampRollover.pipe(t.metadataStream),t.timestampRollover.pipe(t.adts),t.elementary.on("data",(function(n){if("metadata"===n.type){for(var r=0;r<n.tracks.length;r++)t.tracks[n.tracks[r].type]||(t.tracks[n.tracks[r].type]=n.tracks[r],t.tracks[n.tracks[r].type].timelineStartInfo.baseMediaDecodeTime=e.baseMediaDecodeTime);t.tracks.video&&!t.videoSegmentStream&&(t.videoSegmentStream=new Mt(t.tracks.video,e),t.videoSegmentStream.on("timelineStartInfo",(function(n){t.tracks.audio&&!e.keepOriginalTimestamps&&t.audioSegmentStream.setEarliestDts(n.dts-e.baseMediaDecodeTime)})),t.videoSegmentStream.on("timingInfo",t.trigger.bind(t,"videoTimingInfo")),t.videoSegmentStream.on("data",(function(e){t.trigger("data",{type:"video",data:e})})),t.videoSegmentStream.on("done",t.trigger.bind(t,"done")),t.videoSegmentStream.on("partialdone",t.trigger.bind(t,"partialdone")),t.videoSegmentStream.on("endedtimeline",t.trigger.bind(t,"endedtimeline")),t.h264.pipe(t.videoSegmentStream)),t.tracks.audio&&!t.audioSegmentStream&&(t.audioSegmentStream=new Bt(t.tracks.audio,e),t.audioSegmentStream.on("data",(function(e){t.trigger("data",{type:"audio",data:e})})),t.audioSegmentStream.on("done",t.trigger.bind(t,"done")),t.audioSegmentStream.on("partialdone",t.trigger.bind(t,"partialdone")),t.audioSegmentStream.on("endedtimeline",t.trigger.bind(t,"endedtimeline")),t.audioSegmentStream.on("timingInfo",t.trigger.bind(t,"audioTimingInfo")),t.adts.pipe(t.audioSegmentStream)),t.trigger("trackinfo",{hasAudio:!!t.tracks.audio,hasVideo:!!t.tracks.video})}})),t.captionStream.on("data",(function(n){var r;r=t.tracks.video&&t.tracks.video.timelineStartInfo.pts||0,n.startTime=ge(n.startPts,r,e.keepOriginalTimestamps),n.endTime=ge(n.endPts,r,e.keepOriginalTimestamps),t.trigger("caption",n)})),(t=Ft(t)).metadataStream.on("data",t.trigger.bind(t,"id3Frame")),t}(t),Ht(n,this)):(n=function(e){var t={type:"aac",tracks:{audio:null},metadataStream:new st.MetadataStream,aacStream:new Et,audioRollover:new st.TimestampRolloverStream("audio"),timedMetadataRollover:new st.TimestampRolloverStream("timed-metadata"),adtsStream:new dt(!0)};return t.headOfPipeline=t.aacStream,t.aacStream.pipe(t.audioRollover).pipe(t.adtsStream),t.aacStream.pipe(t.timedMetadataRollover).pipe(t.metadataStream),t.metadataStream.on("timestamp",(function(e){t.aacStream.setTimestamp(e.timeStamp)})),t.aacStream.on("data",(function(n){"timed-metadata"!==n.type&&"audio"!==n.type||t.audioSegmentStream||(t.tracks.audio=t.tracks.audio||{timelineStartInfo:{baseMediaDecodeTime:e.baseMediaDecodeTime},codec:"adts",type:"audio"},t.audioSegmentStream=new Bt(t.tracks.audio,e),t.audioSegmentStream.on("data",(function(e){t.trigger("data",{type:"audio",data:e})})),t.audioSegmentStream.on("partialdone",t.trigger.bind(t,"partialdone")),t.audioSegmentStream.on("done",t.trigger.bind(t,"done")),t.audioSegmentStream.on("endedtimeline",t.trigger.bind(t,"endedtimeline")),t.audioSegmentStream.on("timingInfo",t.trigger.bind(t,"audioTimingInfo")),t.adtsStream.pipe(t.audioSegmentStream),t.trigger("trackinfo",{hasAudio:!!t.tracks.audio,hasVideo:!!t.tracks.video}))})),(t=Ft(t)).metadataStream.on("data",t.trigger.bind(t,"id3Frame")),t}(t),Ht(n,this)),r=!1}n.headOfPipeline.push(e)},this.flush=function(){n&&(r=!0,n.headOfPipeline.flush())},this.partialFlush=function(){n&&n.headOfPipeline.partialFlush()},this.endTimeline=function(){n&&n.headOfPipeline.endTimeline()},this.reset=function(){n&&n.headOfPipeline.reset()},this.setBaseMediaDecodeTime=function(e){t.keepOriginalTimestamps||(t.baseMediaDecodeTime=e),n&&(n.tracks.audio&&(n.tracks.audio.timelineStartInfo.dts=void 0,n.tracks.audio.timelineStartInfo.pts=void 0,Te(n.tracks.audio),n.audioRollover&&n.audioRollover.discontinuity()),n.tracks.video&&(n.videoSegmentStream&&(n.videoSegmentStream.gopCache_=[]),n.tracks.video.timelineStartInfo.dts=void 0,n.tracks.video.timelineStartInfo.pts=void 0,Te(n.tracks.video)),n.timestampRollover&&n.timestampRollover.discontinuity())},this.setRemux=function(e){t.remux=e,n&&n.coalesceStream&&n.coalesceStream.setRemux(e)},this.setAudioAppendStart=function(e){n&&n.tracks.audio&&n.audioSegmentStream&&n.audioSegmentStream.setAudioAppendStart(e)},this.alignGopsWith=function(e){}};zt.prototype=new H;var Wt=zt,qt=function(e){return e>>>0},Gt=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Kt=qt,Yt=function e(t,n){var r,i,o,a,s,c=[];if(!n.length)return null;for(r=0;r<t.byteLength;)i=Kt(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]),o=Gt(t.subarray(r+4,r+8)),a=i>1?r+i:t.byteLength,o===n[0]&&(1===n.length?c.push(t.subarray(r+8,a)):(s=e(t.subarray(r+8,a),n.slice(1))).length&&(c=c.concat(s))),r=a;return c},Xt=qt,Qt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:Xt(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=Xt(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t},$t=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Zt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},r=new DataView(e.buffer,e.byteOffset,e.byteLength),i=1&n.flags[2],o=4&n.flags[2],a=1&n.flags[1],s=2&n.flags[1],c=4&n.flags[1],u=8&n.flags[1],l=r.getUint32(4),f=8;for(i&&(n.dataOffset=r.getInt32(f),f+=4),o&&l&&(t={flags:$t(e.subarray(f,f+4))},f+=4,a&&(t.duration=r.getUint32(f),f+=4),s&&(t.size=r.getUint32(f),f+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(f):t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t),l--);l--;)t={},a&&(t.duration=r.getUint32(f),f+=4),s&&(t.size=r.getUint32(f),f+=4),c&&(t.flags=$t(e.subarray(f,f+4)),f+=4),u&&(1===n.version?t.compositionTimeOffset=r.getInt32(f):t.compositionTimeOffset=r.getUint32(f),f+=4),n.samples.push(t);return n},Jt=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],a=8&r.flags[2],s=16&r.flags[2],c=32&r.flags[2],u=65536&r.flags[0],l=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),c&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&l&&(r.baseDataOffsetIsMoof=!0),r},en=Ie,tn=ze.CaptionStream,nn=function(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(n<i.size)return i;n-=i.size}return null},rn=function(e,t){var n=Yt(e,["moof","traf"]),r=Yt(e,["mdat"]),i={},o=[];return r.forEach((function(e,t){var r=n[t];o.push({mdat:e,traf:r})})),o.forEach((function(e){var n,r=e.mdat,o=e.traf,a=Yt(o,["tfhd"]),s=Jt(a[0]),c=s.trackId,u=Yt(o,["tfdt"]),l=u.length>0?Qt(u[0]).baseMediaDecodeTime:0,f=Yt(o,["trun"]);t===c&&f.length>0&&(n=function(e,t,n){var r,i,o,a,s=new DataView(e.buffer,e.byteOffset,e.byteLength),c=[];for(i=0;i+4<e.length;i+=o)if(o=s.getUint32(i),i+=4,!(o<=0))switch(31&e[i]){case 6:var u=e.subarray(i+1,i+1+o),l=nn(i,t);if(r={nalUnitType:"sei_rbsp",size:o,data:u,escapedRBSP:en(u),trackId:n},l)r.pts=l.pts,r.dts=l.dts,a=l;else{if(!a){console.log("We've encountered a nal unit without data. See mux.js#233.");break}r.pts=a.pts,r.dts=a.dts}c.push(r)}return c}(r,function(e,t,n){var r=t,i=n.defaultSampleDuration||0,o=n.defaultSampleSize||0,a=n.trackId,s=[];return e.forEach((function(e){var t=Zt(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=i),void 0===e.size&&(e.size=o),e.trackId=a,e.dts=r,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),e.pts=r+e.compositionTimeOffset,r+=e.duration})),s=s.concat(t)})),s}(f,l,s),c),i[c]||(i[c]=[]),i[c]=i[c].concat(n))})),i},on=function(){var e,t,n,r,i,o,a=!1;this.isInitialized=function(){return a},this.init=function(t){e=new tn,a=!0,o=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/r,e.endTime=e.endPts/r,i.captions.push(e),i.captionStreams[e.stream]=!0}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||r!==t[n])},this.parse=function(e,o,a){var s;if(!this.isInitialized())return null;if(!o||!a)return null;if(this.isNewInit(o,a))n=o[0],r=a[n];else if(null===n||!r)return t.push(e),null;for(;t.length>0;){var c=t.shift();this.parse(c,o,a)}return null!==(s=function(e,t,n){return null===t?null:{seiNals:rn(e,t)[t],timescale:n}}(e,n,r))&&s.seiNals?(this.pushNals(s.seiNals),this.flushStream(),i):null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;o?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){i.captions=[],i.captionStreams={}},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,r=null,i?this.clearParsedCaptions():i={captions:[],captionStreams:{}},this.resetCaptionStream()},this.reset()},an=function(e){return"AudioSegmentStream"===e?"audio":"VideoSegmentStream"===e?"video":""},sn=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=this.options.handlePartialData?new Wt(this.options):new Rt.Transmuxer(this.options),this.options.handlePartialData?function(e,t){t.on("data",(function(t){var n={data:t.data.track.initSegment.buffer,byteOffset:t.data.track.initSegment.byteOffset,byteLength:t.data.track.initSegment.byteLength},r={boxes:{data:t.data.boxes.buffer,byteOffset:t.data.boxes.byteOffset,byteLength:t.data.boxes.byteLength},initSegment:n,type:t.type,sequence:t.data.sequence};void 0!==t.data.videoFrameDts&&(r.videoFrameDtsTime=ye(t.data.videoFrameDts)),void 0!==t.data.videoFramePts&&(r.videoFramePtsTime=ye(t.data.videoFramePts)),e.postMessage({action:"data",segment:r},[r.boxes.data,r.initSegment.data])})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("done",(function(t){e.postMessage({action:"done",type:an(t)})})),t.on("partialdone",(function(t){e.postMessage({action:"partialdone",type:an(t)})})),t.on("endedsegment",(function(t){e.postMessage({action:"endedSegment",type:an(t)})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){if(null!==t.start){var n={start:ye(t.start)};t.end&&(n.end=ye(t.end)),e.postMessage({action:"audioTimingInfo",audioTimingInfo:n})}else e.postMessage({action:"audioTimingInfo",audioTimingInfo:t})})),t.on("videoTimingInfo",(function(t){var n={start:ye(t.start)};t.end&&(n.end=ye(t.end)),e.postMessage({action:"videoTimingInfo",videoTimingInfo:n})}))}(this.self,this.transmuxer):function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var r=t.data;t.data=r.buffer,e.postMessage({action:"data",segment:t,byteOffset:r.byteOffset,byteLength:r.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:ye(t.start.dts),presentation:ye(t.start.pts)},end:{decode:ye(t.end.dts),presentation:ye(t.end.pts)},baseMediaDecodeTime:ye(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ye(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:ye(t.start.dts),presentation:ye(t.start.pts)},end:{decode:ye(t.end.dts),presentation:ye(t.end.pts)},baseMediaDecodeTime:ye(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ye(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ye(t.start),end:ye(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ye(t.start),end:ye(t.end)}})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new on,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],data:t.buffer},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(he(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(he(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),n.postMessage({action:"done",type:"transmuxed"})},t.partialFlush=function(e){this.transmuxer.partialFlush(),n.postMessage({action:"partialdone",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),n.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();new function(e){e.onmessage=function(t){"init"===t.data.action&&t.data.options?this.messageHandlers=new sn(e,t.data.options):(this.messageHandlers||(this.messageHandlers=new sn(e)),t.data&&t.data.action&&"init"!==t.data.action&&this.messageHandlers[t.data.action]&&this.messageHandlers[t.data.action](t.data))}}(n)}()})),ws=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},_s=function(e,t){var n=t.attributes||{},r=function(e){var t=e.attributes||{};if(t.CODECS)return Object(De.parseCodecs)(t.CODECS)}(t)||{};if(ws(e,t)&&!r.audio&&!function(e,t){if(!ws(e,t))return!0;var n=t.attributes||{},r=e.mediaGroups.AUDIO[n.AUDIO];for(var i in r)if(!r[i].uri&&!r[i].playlists)return!0;return!1}(e,t)){var i=Object(De.codecsFromDefault)(e,n.AUDIO);i&&(r.audio=i.audio)}var o={};return r.video&&(o.video=Object(De.translateLegacyCodec)(""+r.video.type+r.video.details)),r.audio&&(o.audio=Object(De.translateLegacyCodec)(""+r.audio.type+r.audio.details)),r.text&&(o.text=r.text.type),r.unknown&&(o.unknown=r.unknown),o},Ss=function(e){return Vo.log.debug?Vo.log.debug.bind(Vo,"VHS:",e+" >"):function(){}},Cs=Ss("PlaylistSelector"),Ts=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},Es=function(e,t){if(!e)return"";var n=i.a.getComputedStyle(e);return n?n[t]:""},Os=function(e,t){var n=e.slice();e.sort((function(e,r){var i=t(e,r);return 0===i?n.indexOf(e)-n.indexOf(r):i}))},ks=function(e,t){var n,r;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||i.a.Number.MAX_VALUE,t.attributes.BANDWIDTH&&(r=t.attributes.BANDWIDTH),n-(r=r||i.a.Number.MAX_VALUE)},Ps=function(e,t,n,r,o){if(e){var a={bandwidth:t,width:n,height:r,limitRenditionByPlayerDimensions:o},s=e.playlists.map((function(e){var t=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes.BANDWIDTH||i.a.Number.MAX_VALUE,width:t,height:n,playlist:e}}));Os(s,(function(e,t){return e.bandwidth-t.bandwidth}));var c=(s=s.filter((function(e){return!wa.isIncompatible(e.playlist)}))).filter((function(e){return wa.isEnabled(e.playlist)}));c.length||(c=s.filter((function(e){return!wa.isDisabled(e.playlist)})));var u=c.filter((function(e){return e.bandwidth*Ha.BANDWIDTH_VARIANCE<t})),l=u[u.length-1],f=u.filter((function(e){return e.bandwidth===l.bandwidth}))[0];if(!1===o){var p=f||c[0]||s[0];if(p&&p.playlist){var d="sortedPlaylistReps";return f&&(d="bandwidthBestRep"),c[0]&&(d="enabledPlaylistReps"),Cs("choosing "+Ts(p)+" using "+d+" with options",a),p.playlist}return Cs("could not choose a playlist with options",a),null}var h=u.filter((function(e){return e.width&&e.height}));Os(h,(function(e,t){return e.width-t.width}));var y=h.filter((function(e){return e.width===n&&e.height===r}));l=y[y.length-1];var m,v,g,b=y.filter((function(e){return e.bandwidth===l.bandwidth}))[0];b||(v=(m=h.filter((function(e){return e.width>n||e.height>r}))).filter((function(e){return e.width===m[0].width&&e.height===m[0].height})),l=v[v.length-1],g=v.filter((function(e){return e.bandwidth===l.bandwidth}))[0]);var w=g||b||f||c[0]||s[0];if(w&&w.playlist){var _="sortedPlaylistReps";return g?_="resolutionPlusOneRep":b?_="resolutionBestRep":f?_="bandwidthBestRep":c[0]&&(_="enabledPlaylistReps"),Cs("choosing "+Ts(w)+" using "+_+" with options",a),w.playlist}return Cs("could not choose a playlist with options",a),null}},As=function(){var e=this.useDevicePixelRatio&&i.a.devicePixelRatio||1;return Ps(this.playlists.master,this.systemBandwidth,parseInt(Es(this.tech_.el(),"width"),10)*e,parseInt(Es(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions)},Is=function(e){var t=e.inbandTextTracks,n=e.metadataArray,r=e.timestampOffset,o=e.videoDuration;if(n){var a=i.a.WebKitDataCue||i.a.VTTCue,s=t.metadataTrack_;if(s&&(n.forEach((function(e){var t=e.cueTime+r;!("number"!=typeof t||i.a.isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new a(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return Vo.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return Vo.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return Vo.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),s.addCue(n)}))})),s.cues&&s.cues.length)){for(var c=s.cues,u=[],l=0;l<c.length;l++)c[l]&&u.push(c[l]);var f=u.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),p=Object.keys(f).sort((function(e,t){return Number(e)-Number(t)}));p.forEach((function(e,t){var n=f[e],r=Number(p[t+1])||o;n.forEach((function(e){e.endTime=r}))}))}}},xs=function(e,t,n){var r,i;if(n&&n.cues)for(r=n.cues.length;r--;)(i=n.cues[r]).startTime>=e&&i.endTime<=t&&n.removeCue(i)},Ls=function(e){return"number"==typeof e&&isFinite(e)},Rs=function(e){return e+"TimingInfo"},js=function(e){var t=e.segmentTimeline,n=e.currentTimeline,r=e.startOfSegment,i=e.buffered;return e.overrideCheck||t!==n?t<n?r:i.length?i.end(i.length-1):r:null},Ns=function(e){var t=e.timelineChangeController,n=e.currentTimeline,r=e.segmentTimeline,i=e.loaderType,o=e.audioDisabled;if(n===r)return!1;if("audio"===i){var a=t.lastTimelineChange({type:"main"});return!a||a.to!==r}if("main"===i&&o){var s=t.pendingTimelineChange({type:"audio"});return!s||s.to!==r}return!1},Ds=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+1/30},Bs=function(e,t){if("hls"!==t)return null;var n,r,i,o,a=(n=e.audioTimingInfo,r=e.videoTimingInfo,i=n&&"number"==typeof n.start&&"number"==typeof n.end?n.end-n.start:0,o=r&&"number"==typeof r.start&&"number"==typeof r.end?r.end-r.start:0,Math.max(i,o));if(!a)return null;var s=e.playlist.targetDuration,c=Ds({segmentDuration:a,maxDuration:2*s}),u=Ds({segmentDuration:a,maxDuration:s}),l="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+a+" when the reported duration is "+e.duration+" and the target duration is "+s+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return c||u?{severity:c?"warn":"info",message:l}:null},Us=function(e){function t(t,n){var r;if(r=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return r.bandwidth=t.bandwidth,r.throughput={rate:0,count:0},r.roundTrip=NaN,r.resetStats_(),r.mediaIndex=null,r.hasPlayed_=t.hasPlayed,r.currentTime_=t.currentTime,r.seekable_=t.seekable,r.seeking_=t.seeking,r.duration_=t.duration,r.mediaSource_=t.mediaSource,r.vhs_=t.vhs,r.loaderType_=t.loaderType,r.currentMediaInfo_=void 0,r.startingMediaInfo_=void 0,r.segmentMetadataTrack_=t.segmentMetadataTrack,r.goalBufferLength_=t.goalBufferLength,r.sourceType_=t.sourceType,r.sourceUpdater_=t.sourceUpdater,r.inbandTextTracks_=t.inbandTextTracks,r.state_="INIT",r.handlePartialData_=t.handlePartialData,r.timelineChangeController_=t.timelineChangeController,r.shouldSaveSegmentTimingInfo_=!0,r.checkBufferTimeout_=null,r.error_=void 0,r.currentTimeline_=-1,r.pendingSegment_=null,r.xhrOptions_=null,r.pendingSegments_=[],r.audioDisabled_=!1,r.isPendingTimestampOffset_=!1,r.gopBuffer_=[],r.timeMapping_=0,r.safeAppend_=Vo.browser.IE_VERSION>=11,r.appendInitSegment_={audio:!0,video:!0},r.playlistOfLastInitSegment_={audio:null,video:null},r.callQueue_=[],r.loadQueue_=[],r.metadataQueue_={id3:[],caption:[]},r.activeInitSegmentId_=null,r.initSegments_={},r.cacheEncryptionKeys_=t.cacheEncryptionKeys,r.keyCache_={},r.decrypter_=t.decrypter,r.syncController_=t.syncController,r.syncPoint_={segmentIndex:0,time:0},r.transmuxer_=r.createTransmuxer_(),r.triggerSyncInfoUpdate_=function(){return r.trigger("syncinfoupdate")},r.syncController_.on("syncinfoupdate",r.triggerSyncInfoUpdate_),r.mediaSource_.addEventListener("sourceopen",(function(){r.isEndOfStream_()||(r.ended_=!1)})),r.fetchAtBuffer_=!1,r.logger_=Ss("SegmentLoader["+r.loaderType_+"]"),Object.defineProperty(l()(r),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),r.sourceUpdater_.on("ready",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"main"===r.loaderType_&&r.timelineChangeController_.on("pendingtimelinechange",(function(){r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),"audio"===r.loaderType_&&r.timelineChangeController_.on("timelinechange",(function(){r.hasEnoughInfoToLoad_()&&r.processLoadQueue_(),r.hasEnoughInfoToAppend_()&&r.processCallQueue_()})),r}p()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){var e=new bs;return e.postMessage({action:"init",options:{remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,handlePartialData:this.handlePartialData_}}),e},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&(this.transmuxer_.terminate(),$a()),this.resetStats_(),this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_)},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&Qa(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){if(!this.sourceUpdater_||!this.startingMediaInfo_)return Vo.createTimeRanges();if("main"===this.loaderType_){var e=this.startingMediaInfo_,t=e.hasAudio,n=e.hasVideo,r=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!r)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ia(e),r=this.initSegments_[n];return t&&!r&&e.bytes&&(this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),r||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=xa(e),r=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!r&&e.bytes&&(this.keyCache_[n]=r={resolvedUri:e.resolvedUri,bytes:e.bytes});var i={resolvedUri:(r||e).resolvedUri};return r&&(i.bytes=r.bytes),i},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_){if(this.syncController_.setDateTimeMapping(this.playlist_),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY")}},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,r=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0});var i=null;if(n&&(n.id?i=n.id:n.uri&&(i=n.uri)),this.logger_("playlist update ["+i+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return(null!==this.mediaIndex||this.handlePartialData_)&&this.resyncLoader(),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var o=e.mediaSequence-n.mediaSequence;this.logger_("live window shift ["+o+"]"),null!==this.mediaIndex&&(this.mediaIndex-=o),r&&(r.mediaIndex-=o,r.mediaIndex>=0&&(r.segment=e.segments[r.mediaIndex])),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"})},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&Qa(this.transmuxer_),this.mediaIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n){if(void 0===n&&(n=function(){}),t===1/0&&(t=this.duration_()),this.sourceUpdater_&&this.currentMediaInfo_){var r=1,i=function(){0===--r&&n()};for(var o in this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,i)),"main"===this.loaderType_&&this.currentMediaInfo_&&this.currentMediaInfo_.hasVideo&&(this.gopBuffer_=function(e,t,n,r){for(var i=Math.ceil((t-r)*Re.ONE_SECOND_IN_TS),o=Math.ceil((n-r)*Re.ONE_SECOND_IN_TS),a=e.slice(),s=e.length;s--&&!(e[s].pts<=o););if(-1===s)return a;for(var c=s+1;c--&&!(e[c].pts<=i););return c=Math.max(c,0),a.splice(c,s-c+1),a}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,i)),this.inbandTextTracks_)xs(e,t,this.inbandTextTracks_[o]);xs(e,t,this.segmentMetadataTrack_),i()}},n.monitorBuffer_=function(){this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&i.a.clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=i.a.setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var e=this.buffered_(),t=this.checkBuffer_(e,this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);t&&(t.timestampOffset=js({segmentTimeline:t.timeline,currentTimeline:this.currentTimeline_,startOfSegment:t.startOfSegment,buffered:e,overrideCheck:this.isPendingTimestampOffset_}),this.isPendingTimestampOffset_=!1,"number"==typeof t.timestampOffset&&this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:t.timeline}),this.loadSegment_(t))}},n.isEndOfStream_=function(e,t){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),!t||!this.mediaSource_)return!1;var n=e+1===t.segments.length;return t.endList&&"open"===this.mediaSource_.readyState&&n},n.checkBuffer_=function(e,t,n,r,i,o){var a=0;e.length&&(a=e.end(e.length-1));var s=Math.max(0,a-i);if(!t.segments.length)return null;if(s>=this.goalBufferLength_())return null;if(!r&&s>=1)return null;var c,u=null,l=!1;if(null===o)u=this.getSyncSegmentCandidate_(t),l=!0;else if(null!==n){var f=t.segments[n];c=f&&f.end?f.end:a,u=n+1}else if(this.fetchAtBuffer_){var p=wa.getMediaInfoForTime(t,a,o.segmentIndex,o.time);u=p.mediaIndex,c=p.startTime}else{var d=wa.getMediaInfoForTime(t,i,o.segmentIndex,o.time);u=d.mediaIndex,c=d.startTime}var h=this.generateSegmentInfo_(t,u,c,l);return!h||this.mediaSource_&&this.playlist_&&h.mediaIndex===this.playlist_.segments.length-1&&"ended"===this.mediaSource_.readyState&&!this.seeking_()?void 0:(this.logger_("checkBuffer_ returning "+h.uri,{segmentInfo:h,playlist:t,currentMediaIndex:n,nextMediaIndex:u,startOfSegment:c,isSyncRequest:l}),h)},n.getSyncSegmentCandidate_=function(e){var t=this;if(-1===this.currentTimeline_)return 0;var n=e.segments.map((function(e,t){return{timeline:e.timeline,segmentIndex:t}})).filter((function(e){return e.timeline===t.currentTimeline_}));return n.length?n[Math.min(n.length-1,1)].segmentIndex:Math.max(e.segments.length-1,0)},n.generateSegmentInfo_=function(e,t,n,r){if(t<0||t>=e.segments.length)return null;var i,o,a=e.segments[t],s=this.sourceUpdater_.audioBuffered(),c=this.sourceUpdater_.videoBuffered();return s.length&&(i=s.end(s.length-1)-this.sourceUpdater_.audioTimestampOffset()),c.length&&(o=function(e,t,n){if(null==t||!e.length)return[];var r,i=Math.ceil((t-n+3)*Re.ONE_SECOND_IN_TS);for(r=0;r<e.length&&!(e[r].pts>i);r++);return e.slice(r)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),{requestId:"segment-loader-"+Math.random(),uri:a.resolvedUri,mediaIndex:t,isSyncRequest:r,startOfSegment:n,playlist:e,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:a.timeline,duration:a.duration,segment:a,byteLength:0,transmuxer:this.transmuxer_,audioAppendStart:i,gopsToAlignWith:o}},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,r=this.pendingSegment_.duration,i=wa.estimateSegmentRequestTime(r,n,this.playlist_,e.bytesReceived),o=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(i<=o)){var a=function(e){var t=e.master,n=e.currentTime,r=e.bandwidth,i=e.duration,o=e.segmentDuration,a=e.timeUntilRebuffer,s=e.currentTimeline,c=e.syncController,u=t.playlists.filter((function(e){return!wa.isIncompatible(e)})),l=u.filter(wa.isEnabled);l.length||(l=u.filter((function(e){return!wa.isDisabled(e)})));var f=l.filter(wa.hasAttribute.bind(null,"BANDWIDTH")).map((function(e){var t=c.getSyncPoint(e,i,s,n)?1:2;return{playlist:e,rebufferingImpact:wa.estimateSegmentRequestTime(o,r,e)*t-a}})),p=f.filter((function(e){return e.rebufferingImpact<=0}));return Os(p,(function(e,t){return ks(t.playlist,e.playlist)})),p.length?p[0]:(Os(f,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),f[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:r,timeUntilRebuffer:o,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(a){var s=i-o-a.rebufferingImpact,c=.5;o<=1/30&&(c=1),!a.playlist||a.playlist.uri===this.playlist_.uri||s<c||(this.bandwidth=a.playlist.attributes.BANDWIDTH*Ha.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(){this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),r=Object.keys(t).sort();if(n.length!==r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(o!==r[i])return!1;if(e[o]!==t[o])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,r){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var i=this.pendingSegment_,o=Rs(t);i[o]=i[o]||{},i[o][n]=r,this.logger_("timinginfo: "+t+" - "+n+" - "+r),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),o={};t.forEach((function(e){o[e.stream]=o[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=o[e.stream];t.startTime=Math.min(t.startTime,e.startTime+r),t.endTime=Math.max(t.endTime,e.endTime+r),t.captions.push(e)})),Object.keys(o).forEach((function(e){var t=o[e],a=t.startTime,s=t.endTime,c=t.captions,u=n.inbandTextTracks_;n.logger_("adding cues from "+a+" -> "+s+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var r=t.textTracks().getTrackById(n);e[n]=r||t.addRemoteTextTrack({kind:"captions",id:n,label:n},!1).track}}(u,n.vhs_.tech_,e),xs(a,s,u[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,r=e.timestampOffset;if(n){var o=i.a.WebKitDataCue||i.a.VTTCue;n.forEach((function(e){var n=e.stream;t[n].addCue(new o(e.startTime+r,e.endTime+r,e.text))}))}}({captionArray:c,inbandTextTracks:u,timestampOffset:r})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var r=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),Is({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:r,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.currentMediaInfo_||!Ns({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;var e=this.pendingSegment_;if(!e||!e.trackInfo)return!1;if(!this.handlePartialData_){var t=this.currentMediaInfo_,n=t.hasAudio,r=t.hasVideo,i=t.isMuxed;if(r&&!e.videoTimingInfo)return!1;if(n&&!this.audioDisabled_&&!i&&!e.audioTimingInfo)return!1}return!Ns({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_})},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[Rs(t.type)].start;else{var r,i="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo;i&&(r=this.handlePartialData_?t.videoFramePtsTime:n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:i,firstVideoFrameTimeForData:r,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,r=e.map,i=e.playlist;if(r){var o=Ia(r);if(this.activeInitSegmentId_===o)return null;n=this.initSegmentForMap(r,!0).bytes,this.activeInitSegmentId_=o}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=i,this.appendInitSegment_[t]=!!r,this.activeInitSegmentId_=null,n):null},n.appendToSourceBuffer_=function(e){var t=this,n=e.segmentInfo,r=e.type,i=e.initSegment,o=e.data,a=[o],s=o.byteLength;i&&(a.unshift(i),s+=i.byteLength);var c,u,l,f=(l=0,(c={bytes:s,segments:a}).bytes&&(u=new Uint8Array(c.bytes),c.segments.forEach((function(e){u.set(e,l),l+=e.byteLength}))),u);this.sourceUpdater_.appendBuffer({segmentInfo:n,type:r,bytes:f},(function(e){e&&(t.error(r+" append of "+f.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),t.trigger("appenderror"))}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var r=this.pendingSegment_.segment,i=e+"TimingInfo";r[i]||(r[i]={}),r[i].transmuxerPrependedSeconds=n.prependedContentDuration||0,r[i].transmuxedPresentationStart=n.start.presentation,r[i].transmuxedDecodeStart=n.start.decode,r[i].transmuxedPresentationEnd=n.end.presentation,r[i].transmuxedDecodeEnd=n.end.decode,r[i].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,r=t.data;if(r&&r.byteLength&&("audio"!==n||!this.audioDisabled_)){var i=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:i,data:r})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=t.buffered_();"number"==typeof e.timestampOffset&&(e.timestampOffset=js({segmentTimeline:e.timeline,currentTimeline:t.currentTimeline_,startOfSegment:e.startOfSegment,buffered:n,overrideCheck:!0})),delete e.audioAppendStart;var r=t.sourceUpdater_.audioBuffered();r.length&&(e.audioAppendStart=r.end(r.length-1)-t.sourceUpdater_.audioTimestampOffset()),t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var t=this.createSimplifiedSegmentObj_(e);e.abortRequests=cs({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,handlePartialData:this.handlePartialData_,abortFn:this.handleAbort_.bind(this),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this)})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var r=t-Ha.BACK_BUFFER_LENGTH;e.length&&(r=Math.max(r,e.start(0)));var i=t-n;return Math.min(i,r)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n={resolvedUri:t.resolvedUri,byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?n.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(n.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var i=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);n.key=this.segmentKey(t.key),n.key.iv=i}return t.map&&(n.map=this.initSegmentForMap(t.map)),n},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<1/60?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record "+1/60):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===ts)return;return this.pause(),e.code===es?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var r=this.pendingSegment_;this.saveBandwidthRelatedStats_(r.duration,t.stats),r.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var r=t[0].pts,i=0;i<e.length&&!(e[i].pts>=r);i++);return e.slice(0,i).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING";var i=this.isEndOfStream_(r.mediaIndex,r.playlist),o=null!==this.mediaIndex,a=r.timeline!==this.currentTimeline_&&r.timeline>0;!r.isFmp4&&(i||o&&a)&&Za(this.transmuxer_),this.trigger("appending"),this.waitForAppendsToComplete_(r)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,r=e.mediaIndex,i=e.firstVideoFrameTimeForData,o=e.currentVideoTimestampOffset,a=e.useVideoTimingInfo,s=e.videoTimingInfo,c=e.audioTimingInfo;if(void 0!==t)return t;if(!a)return c.start;var u=n.segments[r-1];return 0!==r&&u&&void 0!==u.start&&u.end===i+o?s.start:i},n.waitForAppendsToComplete_=function(e){if(!this.currentMediaInfo_)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var t=this.currentMediaInfo_,n=t.hasAudio,r=t.hasVideo,i=t.isMuxed,o="main"===this.loaderType_&&r,a=!this.audioDisabled_&&n&&!i;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);o&&e.waitingOnAppends++,a&&e.waitingOnAppends++,o&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),a&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.currentMediaInfo_,e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=e.timingInfo.start,e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t="main"===this.loaderType_&&this.currentMediaInfo_.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;t&&(e.timingInfo.end="number"==typeof t.end?t.end:t.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_}),this.logger_(function(e){var t=e.segment,n=t.start,r=t.end,i=e.playlist,o=i.mediaSequence,a=i.id,s=i.segments,c=void 0===s?[]:s,u=e.mediaIndex,l=e.timeline;return["appending ["+u+"] of ["+o+", "+(o+c.length)+"] from playlist ["+a+"]","["+n+" => "+r+"] in timeline ["+l+"]"].join(" ")}(e));var t=Bs(e,this.sourceType_);if(t&&("warn"===t.severity?Vo.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest)this.trigger("syncinfoupdate");else{this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment;if(n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration)this.resetEverything();else null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.isEndOfStream_(e.mediaIndex,e.playlist)&&this.endOfStream(),this.trigger("appended"),this.paused()||this.monitorBuffer_()}},n.recordThroughput_=function(e){if(e.duration<1/60)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record "+1/60);else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,r=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(r-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,r=t.end;if(Ls(n)&&Ls(r)){xs(n,r,this.segmentMetadataTrack_);var o=i.a.WebKitDataCue||i.a.VTTCue,a={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:r},s=new o(n,r,JSON.stringify(a));s.value=a,this.segmentMetadataTrack_.addCue(s)}}},t}(Vo.EventTarget);function Ms(){}var Vs,Fs=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},Hs=["video","audio"],zs=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},Ws=function e(t,n){if(0!==n.queue.length){var r=0,i=n.queue[r];if("mediaSource"!==i.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!zs(t,n)){if(i.type!==t){if(null===(r=function(e,t){for(var n=0;n<t.length;n++){var r=t[n];if("mediaSource"===r.type)return null;if(r.type===e)return n}return null}(t,n.queue)))return;i=n.queue[r]}n.queue.splice(r,1),i.action(t,n),i.doneFn?n.queuePending[t]=i:e(t,n)}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),i.action(n),i.doneFn&&i.doneFn(),e("audio",n),e("video",n))}},qs=function(e,t){var n=t[e+"Buffer"],r=Fs(e);n&&(n.removeEventListener("updateend",t["on"+r+"UpdateEnd_"]),n.removeEventListener("error",t["on"+r+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},Gs=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Ks=function(e,t){return function(n,r){var i=r[n+"Buffer"];Gs(r.mediaSource,i)&&(r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+n+"Buffer"),i.appendBuffer(e))}},Ys=function(e,t){return function(n,r){var i=r[n+"Buffer"];Gs(r.mediaSource,i)&&(r.logger_("Removing "+e+" to "+t+" from "+n+"Buffer"),i.remove(e,t))}},Xs=function(e){return function(t,n){var r=n[t+"Buffer"];Gs(n.mediaSource,r)&&(n.logger_("Setting "+t+"timestampOffset to "+e),r.timestampOffset=e)}},Qs=function(e){return function(t,n){e()}},$s=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){Vo.log.warn("Failed to call media source endOfStream",e)}}}},Zs=function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){Vo.log.warn("Failed to set media source duration",e)}}},Js=function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(Gs(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){Vo.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},ec=function(e,t){return function(n){var r=Fs(e),i=Object(De.getMimeForCodec)(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var o=n.mediaSource.addSourceBuffer(i);o.addEventListener("updateend",n["on"+r+"UpdateEnd_"]),o.addEventListener("error",n["on"+r+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=o}},tc=function(e){return function(t){var n=t[e+"Buffer"];if(qs(e,t),Gs(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){Vo.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},nc=function(e){return function(t,n){var r=n[t+"Buffer"],i=Object(De.getMimeForCodec)(e);Gs(n.mediaSource,r)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),r.changeType(i),n.codecs[t]=e)}},rc=function(e){var t=e.type,n=e.sourceUpdater,r=e.action,i=e.doneFn,o=e.name;n.queue.push({type:t,action:r,doneFn:i,name:o}),Ws(t,n)},ic=function(e,t){return function(n){if(t.queuePending[e]){var r=t.queuePending[e].doneFn;t.queuePending[e]=null,r&&r(t[e+"Error_"])}Ws(e,t)}},oc=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return Ws("mediaSource",l()(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Ss("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null},n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=ic("video",l()(n)),n.onAudioUpdateEnd_=ic("audio",l()(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}p()(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){rc({type:"mediaSource",sourceUpdater:this,action:ec(e,t),name:"addSourceBuffer"})},n.abort=function(e){rc({type:e,sourceUpdater:this,action:Js(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?rc({type:"mediaSource",sourceUpdater:this,action:tc(e),name:"removeSourceBuffer"}):Vo.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!Vo.browser.IE_VERSION&&!Vo.browser.IS_FIREFOX&&i.a.MediaSource&&i.a.MediaSource.prototype&&"function"==typeof i.a.MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return i.a.SourceBuffer&&i.a.SourceBuffer.prototype&&"function"==typeof i.a.SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?rc({type:e,sourceUpdater:this,action:nc(t),name:"changeType"}):Vo.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var r=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,r);t.canChangeType()&&t.changeType(n,r)}))},n.appendBuffer=function(e,t){var n=this,r=e.segmentInfo,i=e.type,o=e.bytes;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+o.length+" until video append");if(rc({type:i,sourceUpdater:this,action:Ks(o,r||{mediaIndex:-1}),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var a=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+a.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,a.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return Gs(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Vo.createTimeRange()},n.videoBuffered=function(){return Gs(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Vo.createTimeRange()},n.buffered=function(){var e=Gs(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=Gs(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,r=null,i=0,o=[],a=[];if(!(e&&e.length&&t&&t.length))return Vo.createTimeRange();for(var s=e.length;s--;)o.push({time:e.start(s),type:"start"}),o.push({time:e.end(s),type:"end"});for(s=t.length;s--;)o.push({time:t.start(s),type:"start"}),o.push({time:t.end(s),type:"end"});for(o.sort((function(e,t){return e.time-t.time})),s=0;s<o.length;s++)"start"===o[s].type?2===++i&&(n=o[s].time):"end"===o[s].type&&1===--i&&(r=o[s].time),null!==n&&null!==r&&(a.push([n,r]),n=null,r=null);return Vo.createTimeRanges(a)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=Ms),rc({type:"mediaSource",sourceUpdater:this,action:Zs(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=Ms),"string"!=typeof e&&(e=void 0),rc({type:"mediaSource",sourceUpdater:this,action:$s(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=Ms),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?rc({type:"audio",sourceUpdater:this,action:Ys(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=Ms),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?rc({type:"video",sourceUpdater:this,action:Ys(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!zs("audio",this)&&!zs("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(rc({type:"audio",sourceUpdater:this,action:Xs(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(rc({type:"video",sourceUpdater:this,action:Xs(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&rc({type:"audio",sourceUpdater:this,action:Qs(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&rc({type:"video",sourceUpdater:this,action:Qs(e),name:"callback"})},n.dispose=function(){var e=this;this.trigger("dispose"),Hs.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return qs(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(Vo.EventTarget),ac=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},sc=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),cc=function(e){function t(t,n){var r;return void 0===n&&(n={}),(r=e.call(this,t,n)||this).handlePartialData_=!1,r.mediaSource_=null,r.subtitlesTrack_=null,r.loaderType_="subtitle",r.featuresNativeTextTracks_=t.featuresNativeTextTracks,r.shouldSaveSegmentTimingInfo_=!1,r}p()(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues.length)return Vo.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return Vo.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ia(e),r=this.initSegments_[n];if(t&&!r&&e.bytes){var i=sc.byteLength+e.bytes.byteLength,o=new Uint8Array(i);o.set(e.bytes),o.set(sc,e.bytes.byteLength),this.initSegments_[n]=r={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:o}}return r||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){xs(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this;this.syncPoint_||(this.syncPoint_=this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_()));var t=this.checkBuffer_(this.buffered_(),this.playlist_,this.mediaIndex,this.hasPlayed_(),this.currentTime_(),this.syncPoint_);if(t=this.skipEmptySegments_(t)){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",(function(){e.state="READY",e.paused()||e.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;)e=this.generateSegmentInfo_(e.playlist,e.mediaIndex+1,e.startOfSegment+e.duration,e.isSyncRequest);return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var r=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===es&&this.handleTimeout_(),e.code===ts?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var o=this.pendingSegment_;this.saveBandwidthRelatedStats_(o.duration,t.stats),this.state="APPENDING",this.trigger("appending");var a=o.segment;if(a.map&&(a.map.bytes=t.map.bytes),o.bytes=t.bytes,"function"!=typeof i.a.WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var s,c=function(){r.subtitlesTrack_.tech_.off("vttjsloaded",s),r.stopForError({message:"Error loading vtt.js"})};return s=function(){r.subtitlesTrack_.tech_.off("vttjserror",c),r.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",s),void this.subtitlesTrack_.tech_.one("vttjserror",c)}a.requested=!0;try{this.parseVTTCues_(o)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(o,this.syncController_.timelines[o.timeline],this.playlist_),o.cues.length?o.timingInfo={start:o.cues[0].startTime,end:o.cues[o.cues.length-1].endTime}:o.timingInfo={start:o.startOfSegment,end:o.startOfSegment+o.duration},o.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");o.byteLength=o.bytes.byteLength,this.mediaSecondsLoaded+=a.duration,o.cues.forEach((function(e){r.subtitlesTrack_.addCue(r.featuresNativeTextTracks_?new i.a.VTTCue(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var r=[],i=0,o=0;o<t.length;o++)t[n].startTime===t[o].startTime&&t[n].endTime===t[o].endTime&&t[n].text===t[o].text&&++i>1&&r.push(t[o]);r.length&&r.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof i.a.TextDecoder?t=new i.a.TextDecoder("utf8"):(t=i.a.WebVTT.StringDecoder(),n=!0);var r=new i.a.WebVTT.Parser(i.a,i.a.vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},r.oncue=e.cues.push.bind(e.cues),r.ontimestampmap=function(t){e.timestampmap=t},r.onparsingerror=function(e){Vo.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var o=e.segment.map.bytes;n&&(o=ac(o)),r.parse(o)}var a=e.bytes;n&&(a=ac(a)),r.parse(a),r.flush()},n.updateTimeMapping_=function(e,t,n){var r=e.segment;if(t)if(e.cues.length){var i=e.timestampmap,o=i.MPEGTS/Re.ONE_SECOND_IN_TS-i.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=o,e.endTime+=o})),!n.syncInfo){var a=e.cues[0].startTime,s=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(a,s-r.duration)}}}else r.empty=!0},t}(Us),uc=function(e,t){for(var n=e.cues,r=0;r<n.length;r++){var i=n[r];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},lc=[{name:"VOD",run:function(e,t,n,r,i){if(n!==1/0){return{time:0,segmentIndex:0}}return null}},{name:"ProgramDateTime",run:function(e,t,n,r,i){if(!e.datetimeToDisplayTime)return null;var o=t.segments||[],a=null,s=null;i=i||0;for(var c=0;c<o.length;c++){var u=o[c];if(u.dateTimeObject){var l=u.dateTimeObject.getTime()/1e3+e.datetimeToDisplayTime,f=Math.abs(i-l);if(null!==s&&(0===f||s<f))break;s=f,a={time:l,segmentIndex:c}}}return a}},{name:"Segment",run:function(e,t,n,r,i){var o=t.segments||[],a=null,s=null;i=i||0;for(var c=0;c<o.length;c++){var u=o[c];if(u.timeline===r&&void 0!==u.start){var l=Math.abs(i-u.start);if(null!==s&&s<l)break;(!a||null===s||s>=l)&&(s=l,a={time:u.start,segmentIndex:c})}}return a}},{name:"Discontinuity",run:function(e,t,n,r,i){var o=null;if(i=i||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var a=null,s=0;s<t.discontinuityStarts.length;s++){var c=t.discontinuityStarts[s],u=t.discontinuitySequence+s+1,l=e.discontinuities[u];if(l){var f=Math.abs(i-l.time);if(null!==a&&a<f)break;(!o||null===a||a>=f)&&(a=f,o={time:l.time,segmentIndex:c})}}return o}},{name:"Playlist",run:function(e,t,n,r,i){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence}:null}}],fc=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.datetimeToDisplayTime=null,n.logger_=Ss("SyncController"),n}p()(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,r){var i=this.runStrategies_(e,t,n,r);return i.length?this.selectSyncPoint_(i,{key:"time",value:r}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var r=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return r.segmentIndex>0&&(r.time*=-1),Math.abs(r.time+pa(e,r.segmentIndex,0))},n.runStrategies_=function(e,t,n,r){for(var i=[],o=0;o<lc.length;o++){var a=lc[o],s=a.run(this,e,t,n,r);s&&(s.strategy=a.name,i.push({strategy:a.name,syncPoint:s}))}return i},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,r=Math.abs(e[0].syncPoint[t.key]-t.value),i=e[0].strategy,o=1;o<e.length;o++){var a=Math.abs(e[o].syncPoint[t.key]-t.value);a<r&&(r=a,n=e[o].syncPoint,i=e[o].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+i+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+"]"),n},n.saveExpiredSegmentInfo=function(e,t){for(var n=t.mediaSequence-e.mediaSequence-1;n>=0;n--){var r=e.segments[n];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+n,time:r.start},this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMapping=function(e){if(!this.datetimeToDisplayTime&&e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0].dateTimeObject.getTime()/1e3;this.datetimeToDisplayTime=-t}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping;this.calculateSegmentTimeMapping_(t,t.timingInfo,n)&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:t.segment.start}))},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var r=e.segment,i=this.timelines[e.timeline];if(null!==e.timestampOffset)i={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=i,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+i.time+"] [mapping: "+i.mapping+"]")),r.start=e.startOfSegment,r.end=t.end+i.mapping;else{if(!i)return!1;r.start=t.start+i.mapping,r.end=t.end+i.mapping}return!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var r=0;r<t.discontinuityStarts.length;r++){var i=t.discontinuityStarts[r],o=t.discontinuitySequence+r+1,a=i-e.mediaIndex,s=Math.abs(a);if(!this.discontinuities[o]||this.discontinuities[o].accuracy>s){var c=void 0;c=a<0?n.start-pa(t,e.mediaIndex,i):n.end+pa(t,e.mediaIndex+1,i),this.discontinuities[o]={time:c,accuracy:s}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(Vo.EventTarget),pc=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}p()(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:r},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,r=e.to;return"number"==typeof n&&"number"==typeof r&&(this.lastTimelineChanges_[t]={type:t,from:n,to:r},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(Vo.EventTarget),dc=new hs("./decrypter-worker.worker.js",(function(e,t){var n=this;
|
|
@@ -43,6 +43,6 @@ var r=n(815),i=n(816),o=n(817);function a(){return c.TYPED_ARRAY_SUPPORT?2147483
|
|
|
43
43
|
*
|
|
44
44
|
* Date: 2019-10-04T04:33:48.372Z
|
|
45
45
|
*/
|
|
46
|
-
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},u=!!s&&"ontouchstart"in c.document.documentElement,l=!!s&&"PointerEvent"in c,f="".concat("cropper","-crop"),p="".concat("cropper","-disabled"),d="".concat("cropper","-hidden"),h="".concat("cropper","-hide"),y="".concat("cropper","-invisible"),m="".concat("cropper","-modal"),v="".concat("cropper","-move"),g="".concat("cropper","Action"),b="".concat("cropper","Preview"),w=u?"touchstart":"mousedown",_=u?"touchmove":"mousemove",S=u?"touchend touchcancel":"mouseup",C=l?"pointerdown":w,T=l?"pointermove":_,E=l?"pointerup pointercancel":S,O=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,k=/^data:/,P=/^data:image\/jpeg;base64,/,A=/^img|canvas$/i,I={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},x=Number.isNaN||c.isNaN;function L(e){return"number"==typeof e&&!x(e)}var R=function(e){return e>0&&e<1/0};function j(e){return void 0===e}function N(t){return"object"===e(t)&&null!==t}var D=Object.prototype.hasOwnProperty;function B(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&D.call(n,"isPrototypeOf")}catch(e){return!1}}function U(e){return"function"==typeof e}var M=Array.prototype.slice;function V(e){return Array.from?Array.from(e):M.call(e)}function F(e,t){return e&&U(t)&&(Array.isArray(e)||L(e.length)?V(e).forEach((function(n,r){t.call(e,n,r,e)})):N(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var H=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N(e)&&n.length>0&&n.forEach((function(t){N(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},z=/\.\d*(?:0|9){12}\d*$/;function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return z.test(e)?Math.round(e*t)/t:e}var q=/^width|height|left|top|marginLeft|marginTop$/;function G(e,t){var n=e.style;F(t,(function(e,t){q.test(t)&&L(e)&&(e="".concat(e,"px")),n[t]=e}))}function K(e,t){if(t)if(L(e.length))F(e,(function(e){K(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Y(e,t){t&&(L(e.length)?F(e,(function(e){Y(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function X(e,t,n){t&&(L(e.length)?F(e,(function(e){X(e,t,n)})):n?K(e,t):Y(e,t))}var Q=/([a-z\d])([A-Z])/g;function $(e){return e.replace(Q,"$1-$2").toLowerCase()}function Z(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat($(t)))}function J(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat($(t)),n)}var ee=/\s\s*/,te=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(!te){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(r.once&&!te){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function ie(e,t,n){var r;return U(Event)&&U(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function oe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,se=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ce(e){var t=e.match(se);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function ue(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];L(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),L(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),L(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),L(n)&&1!==n&&a.push("scaleX(".concat(n,")")),L(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function fe(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({startX:n,startY:r},i)}function pe(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=R(r),a=R(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,c=t.rotate,u=void 0===c?0:c,l=t.scaleX,f=void 0===l?1:l,p=t.scaleY,d=void 0===p?1:p,h=n.aspectRatio,y=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,S=void 0===_?"low":_,C=r.maxWidth,T=void 0===C?1/0:C,E=r.maxHeight,O=void 0===E?1/0:E,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,x=document.createElement("canvas"),L=x.getContext("2d"),R=pe({aspectRatio:h,width:T,height:O}),j=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(R.width,Math.max(j.width,y)),D=Math.min(R.height,Math.max(j.height,m)),B=pe({aspectRatio:i,width:T,height:O}),U=pe({aspectRatio:i,width:P,height:I},"cover"),M=Math.min(B.width,Math.max(U.width,o)),V=Math.min(B.height,Math.max(U.height,s)),F=[-M/2,-V/2,M,V];return x.width=W(N),x.height=W(D),L.fillStyle=g,L.fillRect(0,0,N,D),L.save(),L.translate(N/2,D/2),L.rotate(u*Math.PI/180),L.scale(f,d),L.imageSmoothingEnabled=w,L.imageSmoothingQuality=S,L.drawImage.apply(L,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),L.restore(),x}var he=String.fromCharCode,ye=/^data:.*,/;function me(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var c=i+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(n,i+4,4)){var u=n.getUint16(c);if(((r=18761===u)||19789===u)&&42===n.getUint16(c+2,r)){var l=n.getUint32(c+4,r);l>=8&&(o=c+l)}}}if(o){var f,p,d=n.getUint16(o,r);for(p=0;p<d;p+=1)if(f=o+12*p+2,274===n.getUint16(f,r)){f+=8,t=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(e){t=1}return t}var ve={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;K(r,d),Y(e,d);var i={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=i,G(r,{width:i.width,height:i.height}),K(e,d),Y(r,d)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,c=e.height;e.height*a>e.width?3===n?s=e.height*a:c=e.width/a:3===n?c=e.width/a:s=e.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(e.width-s)/2,u.top=(e.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=H({},t),this.initialCanvasData=H({},u)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(e){var u=Number(n.minCanvasWidth)||0,l=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),l=Math.max(l,r.height),3===a&&(l*s>u?u=l*s:l=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):l?l=Math.max(l,c?o.height:0):c&&(u=o.width,(l=o.height)*s>u?u=l*s:l=u/s));var f=pe({aspectRatio:s,width:u,height:l});u=f.width,l=f.height,i.minWidth=u,i.minHeight=l,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(c?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,c=t*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,G(this.canvas,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);H(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),G(this.image,H({width:n.width,height:n.height},le(H({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=H({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,l=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,f=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),f*s>l?f=l/s:l=f*s),o.minWidth=Math.min(c,l),o.minHeight=Math.min(u,f),o.maxWidth=l,o.maxHeight=f}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&J(this.face,g,n.width>=t.width&&n.height>=t.height?"move":"all"),G(this.cropBox,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ie(this.element,"crop",this.getData())}},ge={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,F(a,(function(e){var n=document.createElement("img");J(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){F(this.previews,(function(e){var t=Z(e,b);G(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(N(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat($(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,c=n.top-t.top-e.top;this.cropped&&!this.disabled&&(G(this.viewBoxImage,H({width:o,height:a},le(H({translateX:-s,translateY:-c},e)))),F(this.previews,(function(t){var n=Z(t,b),u=n.width,l=n.height,f=u,p=l,d=1;r&&(p=i*(d=u/r)),i&&p>l&&(f=r*(d=l/i),p=l),G(t,{width:f,height:p}),G(t.getElementsByTagName("img")[0],H({width:o*d,height:a*d},le(H({translateX:-s*d,translateY:-c*d},e))))})))}},be={bind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&re(e,"cropstart",t.cropstart),U(t.cropmove)&&re(e,"cropmove",t.cropmove),U(t.cropend)&&re(e,"cropend",t.cropend),U(t.crop)&&re(e,"crop",t.crop),U(t.zoom)&&re(e,"zoom",t.zoom),re(n,C,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&re(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&re(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),re(e.ownerDocument,T,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,E,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&re(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&ne(e,"cropstart",t.cropstart),U(t.cropmove)&&ne(e,"cropmove",t.cropmove),U(t.cropend)&&ne(e,"cropend",t.cropend),U(t.crop)&&ne(e,"crop",t.crop),U(t.zoom)&&ne(e,"zoom",t.zoom),ne(n,C,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ne(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ne(n,"dblclick",this.onDblclick),ne(e.ownerDocument,T,this.onCropMove),ne(e.ownerDocument,E,this.onCropEnd),t.responsive&&ne(window,"resize",this.onResize)}},we={resize:function(){var e=this.options,t=this.container,n=this.containerData,r=Number(e.minContainerWidth)||200,i=Number(e.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=t.offsetWidth/n.width;1===s&&t.offsetHeight===n.height||(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(F(o,(function(e,t){o[t]=e*s}))),this.setCropBoxData(F(a,(function(e,t){a[t]=e*s})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=f,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(L(t)&&1!==t||L(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){o[e.identifier]=fe(e)})):o[e.pointerId||0]=fe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(e.target,g),O.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,K(this.dragBox,m)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ie(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?F(e.changedTouches,(function(e){H(n[e.identifier]||{},fe(e,!0))})):H(n[e.pointerId||0]||{},fe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,X(this.dragBox,m,this.cropped&&this.options.modal)),ie(this.element,"cropend",{originalEvent:e,action:t}))}}},_e={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,l=a.left,f=a.top,p=a.width,h=a.height,y=l+p,m=f+h,v=0,g=0,b=i.width,w=i.height,_=!0;!u&&e.shiftKey&&(u=p&&h?p/h:1),this.limited&&(v=a.minLeft,g=a.minTop,b=v+Math.min(i.width,r.width,r.left+r.width),w=g+Math.min(i.height,r.height,r.top+r.height));var S=s[Object.keys(s)[0]],C={x:S.endX-S.startX,y:S.endY-S.startY},T=function(e){switch(e){case"e":y+C.x>b&&(C.x=b-y);break;case"w":l+C.x<v&&(C.x=v-l);break;case"n":f+C.y<g&&(C.y=g-f);break;case"s":m+C.y>w&&(C.y=w-m)}};switch(c){case"all":l+=C.x,f+=C.y;break;case"e":if(C.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}T("e"),(p+=C.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(C.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}T("n"),h-=C.y,f+=C.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(C.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}T("w"),p-=C.x,l+=C.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(C.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}T("s"),(h+=C.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(C.y<=0&&(f<=g||y>=b)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u}else T("n"),T("e"),C.x>=0?y<b?p+=C.x:C.y<=0&&f<=g&&(_=!1):p+=C.x,C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="sw",f-=h=-h,l-=p=-p):p<0?(c="nw",l-=p=-p):h<0&&(c="se",f-=h=-h);break;case"nw":if(u){if(C.y<=0&&(f<=g||l<=v)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u,l+=a.width-p}else T("n"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y<=0&&f<=g&&(_=!1):(p-=C.x,l+=C.x),C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="se",f-=h=-h,l-=p=-p):p<0?(c="ne",l-=p=-p):h<0&&(c="sw",f-=h=-h);break;case"sw":if(u){if(C.x<=0&&(l<=v||m>=w)){_=!1;break}T("w"),p-=C.x,l+=C.x,h=p/u}else T("s"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y>=0&&m>=w&&(_=!1):(p-=C.x,l+=C.x),C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="ne",f-=h=-h,l-=p=-p):p<0?(c="se",l-=p=-p):h<0&&(c="nw",f-=h=-h);break;case"se":if(u){if(C.x>=0&&(y>=b||m>=w)){_=!1;break}T("e"),h=(p+=C.x)/u}else T("s"),T("e"),C.x>=0?y<b?p+=C.x:C.y>=0&&m>=w&&(_=!1):p+=C.x,C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="nw",f-=h=-h,l-=p=-p):p<0?(c="sw",l-=p=-p):h<0&&(c="ne",f-=h=-h);break;case"move":this.move(C.x,C.y),_=!1;break;case"zoom":this.zoom(function(e){var t=o({},e),n=[];return F(e,(function(e,r){delete t[r],F(t,(function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),c=(Math.sqrt(o*o+a*a)-s)/s;n.push(c)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),_=!1;break;case"crop":if(!C.x||!C.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(l-=p,c=C.y>0?"sw":"nw"),C.y<0&&(f-=h),this.cropped||(Y(this.cropBox,d),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(a.width=p,a.height=h,a.left=l,a.top=f,this.action=c,this.renderCropBox()),F(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},Se={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&K(this.dragBox,m),Y(this.cropBox,d),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=H({},this.initialImageData),this.canvasData=H({},this.initialCanvasData),this.cropBoxData=H({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(H(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Y(this.dragBox,m),K(this.cropBox,d)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,F(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Y(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,K(this.cropper,p)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(j(e)?e:r+Number(e),j(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(L(e)&&(n.left=e,r=!0),L(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*e,l=c*e;if(!1===ie(this.element,"zoom",{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var f=this.pointers,p=oe(this.cropper),d=f&&Object.keys(f).length?function(e){var t=0,n=0,r=0;return F(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),{pageX:t/=r,pageY:n/=r}}(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((d.pageX-p.left-i.left)/o),i.top-=(l-a)*((d.pageY-p.top-i.top)/a)}else B(t)&&L(t.x)&&L(t.y)?(i.left-=(u-o)*((t.x-i.left)/o),i.top-=(l-a)*((t.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(l-a)/2);i.width=u,i.height=l,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return L(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,L(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(L(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(L(e)&&(n.scaleX=e,r=!0),L(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(F(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),c=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=c-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&B(e)){var o=!1;t.rotatable&&L(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(L(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),L(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;L(e.x)&&(i.left=e.x*a+r.left),L(e.y)&&(i.top=e.y*a+r.top),L(e.width)&&(i.width=e.width*a),L(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?H({},this.containerData):{}},getImageData:function(){return this.sized?H({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&F(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&B(e)&&(L(e.left)&&(t.left=e.left),L(e.top)&&(t.top=e.top),L(e.width)?(t.width=e.width,t.height=e.width/n):L(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&B(e)&&(L(e.left)&&(r.left=e.left),L(e.top)&&(r.top=e.top),L(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),L(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,s=r.width,c=r.height,u=n.width/Math.floor(t.naturalWidth);1!==u&&(i*=u,o*=u,s*=u,c*=u);var l=s/c,f=pe({aspectRatio:l,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=pe({aspectRatio:l,width:e.minWidth||0,height:e.minHeight||0},"cover"),d=pe({aspectRatio:l,width:e.width||(1!==u?n.width:s),height:e.height||(1!==u?n.height:c)}),h=d.width,y=d.height;h=Math.min(f.width,Math.max(p.width,h)),y=Math.min(f.height,Math.max(p.height,y));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=W(h),m.height=W(y),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,h,y);var g=e.imageSmoothingEnabled,b=void 0===g||g,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,w&&(v.imageSmoothingQuality=w);var _,S,C,T,E,O,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,C=0,E=0):A<=0?(C=-A,A=0,E=_=Math.min(k,s+A)):A<=k&&(C=0,E=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,T=0,O=0):I<=0?(T=-I,I=0,O=S=Math.min(P,c+I)):I<=P&&(T=0,O=S=Math.min(c,P-I));var x=[A,I,_,S];if(E>0&&O>0){var L=h/s;x.push(C*L,T*L,E*L,O*L)}return v.drawImage.apply(v,[n].concat(a(x.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||j(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===e,o=t.movable&&"move"===e;e=i||o?e:"none",t.dragMode=e,J(n,g,e),X(n,f,i),X(n,v,o),t.cropBoxMovable||(J(r,g,e),X(r,f,i),X(r,v,o))}return this}},Ce=c.Cropper,Te=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!A.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=H({},I,B(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,i,o;return r=e,o=[{key:"noConflict",value:function(){return window.Cropper=Ce,e}},{key:"setDefaults",value:function(e){H(I,B(e)&&e)}}],(i=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(e))P.test(e)?this.read((i=e.replace(ye,""),o=atob(i),a=new ArrayBuffer(o.length),F(s=new Uint8Array(a),(function(e,t){s[t]=o.charCodeAt(t)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){t.read(c.response)},c.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&ce(e)&&n.crossOrigin&&(e=ue(e)),c.open("GET",e),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=me(e),i=0,o=1,a=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(he.apply(null,V(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ce(t)&&(n||(n="anonymous"),r=ue(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),K(i,h),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){H(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),K(e,d),r.insertBefore(o,e.nextSibling),this.isImg||Y(n,h),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,K(c,d),t.guides||K(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||K(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&K(o,"".concat("cropper","-bg")),t.highlight||K(u,y),t.cropBoxMovable&&(K(u,v),J(u,g,"all")),t.cropBoxResizable||(K(c.getElementsByClassName("".concat("cropper","-line")),d),K(c.getElementsByClassName("".concat("cropper","-point")),d)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),U(t.ready)&&re(e,"ready",t.ready,{once:!0}),ie(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Y(this.element,d))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,i),o&&n(r,o),e}();return H(Te.prototype,ve,ge,be,we,_e,Se),Te}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(18),i=n(29);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,i=e.cursor;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+' partial-loading-background"></div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),i=n(348),o=function(e){return"recently:shared:to:".concat(e)},a={getRecentlySharedTo:function(e){return i.a.getRecentItem(o(e),r.a)},addRecentlySharedTo:function(e,t){return i.a.addRecentItem(o(e),r.a,t)}}},function(e,t,n){"use strict";var r=n(571);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(35),i=n(66);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={reorder:function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var i=r.a.moveItem(e,t,n),o=n<e.length-1?i[n+1].id:null;return{reorderedItems:i,reorderRequest:{sourceMemberId:i[n].id,destinationMemberId:o}}},updateState:function(e,t,n){for(var a=[],s=i.a.deepClone(n),c=[e],u=n[e],l=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){a.push.apply(a,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,p=!!f&&"".concat(e,":").concat(f);(u=f&&n[p])&&c.push(p)}if(!a.length)return n;var d=r.a.findIndex(a,(function(e){return e.id===t.sourceMemberId})),h=[].concat(a),y=h.splice(d,1),m=t.destinationMemberId?r.a.findIndex(h,(function(e){return e.id===t.destinationMemberId})):h.length;return h.splice(m,0,y[0]),c.forEach((function(e){var t=h.splice(0,l);s[e].data=t})),s}}},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Online="Online",e.Primary="Primary"}(r||(r={}))},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n(33),o=n(1),a=n(27),s=n(28),c=n(85),u=n(162),l=n(413),f=n(276),p=n(45),d=n(226),h=n(369),y=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=r.memo((function(e){var t,n=e.hideButtonText,h=void 0!==n&&n,v=m(Object(f.a)(),2),g=v[0],b=v[1],w=Object(u.a)(p.b.VideoUpload),_=Object(d.a)(),S=!!_&&!b;return r.createElement(l.a,{svgName:S?null:s.b.Upload,className:(t="btn btn-outline-dark",h&&!S&&(t+=" pl-3"),S&&(t+=" pr-2"),t),mimeType:"video/*",onFileSelect:function(e){return w.addFiles(e,{entity:o.EntityType.Video,actionType:o.UserAction.Upload,workflowPhase:o.WorkflowPhase.Start,descriptor:a.a.mapInteractionType(o.InteractionType.FileSelect),location:o.LocationContext.TopNav})}},r.createElement("div",{className:"d-flex align-items-center w-100",ref:g},S&&r.createElement("span",{className:"position-relative"},r.createElement(i.Spinner,{animation:"border",size:"sm",className:"mr-2 ".concat(y.a.spinner)}),r.createElement("span",{className:"badge badge-danger badge-pill ".concat(y.a.totalUploading)},_)),h?r.createElement("span",{className:"invisible"}," "):r.createElement(c.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n.n(r),o=n(33),a=n(114),s=n(276),c=n(177);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t=u(Object(s.a)(),2),n=t[0],r=t[1];if(i.a.useEffect((function(){e.onHover(r?e.rating:null)}),[r]),!e.rating.code)return i.a.createElement(i.a.Fragment,null);var o=i.a.createElement(c.a,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?o:i.a.createElement(a.a,{title:e.rating.name,spanHack:!0},o)}function p(e){var t=u(i.a.useState([]),2),n=t[0],r=t[1],a=function(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))};function s(e){r(e?a(e):[])}var c=function(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))};return i.a.createElement("div",null,i.a.createElement(o.ButtonGroup,null,e.ratings.map((function(t){var n;return i.a.createElement(f,{key:t.id,rating:t,onClick:function(){return function(t){var n=a(t);e.onSelectRange(n)}(t)},onHover:s,isActive:c(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}p.defaultProps={selections:[]}},function(e,t,n){"use strict";var r=n(580);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(582);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(583);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(584);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(585);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(586);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(289);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(587);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(588);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(589);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(590);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(591);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return h.ClassroomGroupColour})),n.o(h,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(592);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return y.ClassroomGroupColour})),n.o(y,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return y.ClassroomStatus})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType})),n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var m=n(593);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return m.ClassroomGroupColour})),n.o(m,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return m.ClassroomStatus})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var v=n(594);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return v.ClassroomGroupColour})),n.o(v,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return v.ClassroomStatus})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(595);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return g.ClassroomGroupColour})),n.o(g,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return g.ClassroomStatus})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(596);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return b.ClassroomGroupColour})),n.o(b,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return b.ClassroomStatus})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(597);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return w.ClassroomGroupColour})),n.o(w,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return w.ClassroomStatus})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(598);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return _.ClassroomGroupColour})),n.o(_,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return _.ClassroomStatus})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(599);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return S.ClassroomGroupColour})),n.o(S,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return S.ClassroomStatus})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var C=n(600);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return C.ClassroomGroupColour})),n.o(C,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return C.ClassroomStatus})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(601);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return T.ClassroomGroupColour})),n.o(T,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return T.ClassroomStatus})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(602);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return E.ClassroomGroupColour})),n.o(E,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return E.ClassroomStatus})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(603);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(O,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return O.ClassroomGroupColour})),n.o(O,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return O.ClassroomStatus})),n.o(O,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType}));var k=n(604);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return k.ClassroomGroupColour})),n.o(k,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return k.ClassroomStatus})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(605);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return P.ClassroomGroupColour})),n.o(P,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return P.ClassroomStatus})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(606);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return A.ClassroomGroupColour})),n.o(A,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return A.ClassroomStatus})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(607);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return I.ClassroomGroupColour})),n.o(I,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return I.ClassroomStatus})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}))},function(e,t,n){"use strict";var r=n(581);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(609);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(612);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(618);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(624);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(625);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(626);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(627);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(628);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(629);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(630);n.d(t,"ClassroomStatus",(function(){return p.a}));var d=n(631);n.d(t,"ClassroomGroupColour",(function(){return d.a}));var h=n(632);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(633);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var m=n(634);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var v=n(635);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(290);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(636);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(637);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(638);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(639);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var C=n(640);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(641);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(291);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(642);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(O,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType})),n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(643);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(644);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(645);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(646);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var x=n(647);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables})),n.o(x,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return x.InteractionTypeId})),n.o(x,"WidgetType")&&n.d(t,"WidgetType",(function(){return x.WidgetType}));var L=n(292);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId})),n.o(L,"WidgetType")&&n.d(t,"WidgetType",(function(){return L.WidgetType}));var R=n(648);n.d(t,"WidgetType",(function(){return R.a}));var j=n(649);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables})),n.o(j,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return j.InteractionTypeId}));var N=n(650);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables})),n.o(N,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return N.InteractionTypeId}));var D=n(651);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables})),n.o(D,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return D.InteractionTypeId}));var B=n(652);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables})),n.o(B,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return B.InteractionTypeId}));var U=n(653);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables})),n.o(U,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return U.InteractionTypeId}));var M=n(654);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables})),n.o(M,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return M.InteractionTypeId}));var V=n(655);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables})),n.o(V,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return V.InteractionTypeId}));var F=n(656);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables})),n.o(F,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return F.InteractionTypeId}));var H=n(657);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables})),n.o(H,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return H.InteractionTypeId}));var z=n(658);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables})),n.o(z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return z.InteractionTypeId}));var W=n(659);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(W,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(660);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables})),n.o(q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(661);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables})),n.o(G,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return G.InteractionTypeId}));var K=n(662);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(K,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Y=n(663);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables})),n.o(Y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Y.InteractionTypeId}));var X=n(664);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables})),n.o(X,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return X.InteractionTypeId}));var Q=n(665);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables})),n.o(Q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var $=n(666);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o($,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return $.InteractionTypeId})),n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId}));var Z=n(667);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables})),n.o(Z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Z.InteractionTypeId}));var J=n(668);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables})),n.o(J,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return J.InteractionTypeId}));var ee=n(669);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables})),n.o(ee,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ee.InteractionTypeId}));var te=n(670);n.o(te,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return te.BaseNotificationsAppVariables})),n.o(te,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return te.BaseSearchAppVariables})),n.o(te,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return te.InteractionTypeId})),n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId}));var ne=n(671);n.o(ne,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ne.BaseNotificationsAppVariables})),n.o(ne,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ne.BaseSearchAppVariables})),n.o(ne,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ne.InteractionTypeId}));var re=n(672);n.o(re,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return re.BaseNotificationsAppVariables})),n.o(re,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return re.BaseSearchAppVariables})),n.o(re,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return re.InteractionTypeId}));var ie=n(673);n.o(ie,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ie.BaseNotificationsAppVariables})),n.o(ie,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ie.BaseSearchAppVariables})),n.o(ie,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ie.InteractionTypeId}));var oe=n(674);n.o(oe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return oe.BaseNotificationsAppVariables})),n.o(oe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return oe.BaseSearchAppVariables})),n.o(oe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return oe.InteractionTypeId}));var ae=n(675);n.o(ae,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ae.BaseNotificationsAppVariables})),n.o(ae,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ae.BaseSearchAppVariables})),n.o(ae,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ae.InteractionTypeId}));var se=n(676);n.o(se,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return se.BaseNotificationsAppVariables})),n.o(se,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return se.BaseSearchAppVariables})),n.o(se,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return se.InteractionTypeId}));var ce=n(677);n.o(ce,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ce.BaseNotificationsAppVariables})),n.o(ce,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ce.BaseSearchAppVariables})),n.o(ce,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ce.InteractionTypeId}));var ue=n(678);n.o(ue,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ue.BaseNotificationsAppVariables})),n.o(ue,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ue.BaseSearchAppVariables})),n.o(ue,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ue.InteractionTypeId}));var le=n(679);n.o(le,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return le.BaseNotificationsAppVariables})),n.o(le,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return le.BaseSearchAppVariables})),n.o(le,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return le.InteractionTypeId}));var fe=n(680);n.o(fe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return fe.BaseNotificationsAppVariables})),n.o(fe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return fe.BaseSearchAppVariables})),n.o(fe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return fe.InteractionTypeId}));var pe=n(681);n.o(pe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return pe.BaseNotificationsAppVariables})),n.o(pe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return pe.BaseSearchAppVariables})),n.o(pe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return pe.InteractionTypeId}));var de=n(682);n.o(de,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return de.BaseNotificationsAppVariables})),n.o(de,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return de.BaseSearchAppVariables})),n.o(de,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return de.InteractionTypeId}));var he=n(683);n.o(he,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return he.BaseNotificationsAppVariables})),n.o(he,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return he.BaseSearchAppVariables})),n.o(he,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return he.InteractionTypeId}));var ye=n(684);n.o(ye,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ye.BaseNotificationsAppVariables})),n.o(ye,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ye.BaseSearchAppVariables})),n.o(ye,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ye.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(610);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(611);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(613);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(614);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(615);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(616);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(617);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(619);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(620);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(621);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(622);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(623);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Archived=0]="Archived",e[e.Published=1]="Published"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(686);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t,n){"use strict";var r=n(688);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(689);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(690);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(691);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(692);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(693);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(694);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(695);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(696);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(697);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(698);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(699)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(701);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(702);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(704);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(705);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(706);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(707);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(708);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(709);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(710);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,u=i.ENTITY_REFERENCE_NODE=5,l=i.ENTITY_NODE=6,f=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,h=i.DOCUMENT_TYPE_NODE=10,y=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,v={},g={},b=(v.INDEX_SIZE_ERR=(g[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(g[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(g[3]="Hierarchy request error",3)),w=(v.WRONG_DOCUMENT_ERR=(g[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(g[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(g[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(g[7]="No modification allowed",7),v.NOT_FOUND_ERR=(g[8]="Not found",8)),_=(v.NOT_SUPPORTED_ERR=(g[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(g[10]="Attribute in use",10));v.INVALID_STATE_ERR=(g[11]="Invalid state",11),v.SYNTAX_ERR=(g[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(g[13]="Invalid modification",13),v.NAMESPACE_ERR=(g[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(g[15]="Invalid access",15);function S(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,g[e]),this.message=g[e],Error.captureStackTrace&&Error.captureStackTrace(this,S);return n.code=e,t&&(this.message=this.message+": "+t),n}function C(){}function T(e,t){this._node=e,this._refresh=t,E(this)}function E(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function O(){}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[k(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&N(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function A(e,t,n){var r=k(t,n);if(!(r>=0))throw S(w,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(N(o,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function x(){}function L(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function R(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(R(e,t))return!0}while(e=e.nextSibling)}function j(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function D(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,D(e.ownerDocument,e),t}function U(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===y){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return D(e.ownerDocument||e,e),t.nodeType==y&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function V(){}function F(){}function H(){}function z(){}function W(){}function q(){}function G(){}function K(){}function Y(){}function X(){}function Q(){}function $(){}function Z(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,n,e,t,a),n.join("")}function J(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);i.length;var l=e.attributes,m=l.length,v=e.firstChild,g=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",g);for(var b=0;b<m;b++){"xmlns"==(w=l.item(b)).prefix?i.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&i.push({prefix:"",namespace:w.value})}for(b=0;b<m;b++){var w;if(J(w=l.item(b),0,i)){var _=w.prefix||"",S=w.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(g)){if(t.push(">"),n&&/^script$/i.test(g))for(;v;)v.data?t.push(v.data):ee(v,t,n,r,i),v=v.nextSibling;else for(;v;)ee(v,t,n,r,i),v=v.nextSibling;t.push("</",g,">")}else t.push("/>");return;case d:case y:for(v=e.firstChild;v;)ee(v,t,n,r,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,L),'"');case s:return t.push(e.data.replace(/[<&]/g,L));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var T=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(' PUBLIC "',T),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case f:return t.push("<?",e.target," ",e.data,"?>");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}S.prototype=Error.prototype,n(v,S),C.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ee(this[r],n,e,t);return n.join("")}},T.prototype.item=function(e){return E(this),this[e]},r(T,C),O.prototype={length:0,item:C.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new S(_);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new S(_);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},I.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new j;if(r.implementation=this,r.childNodes=new C,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new q;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},x.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return U(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var s in n){var c=n[s];"object"!=typeof c&&c!=i[s]&&(i[s]=c)}n.childNodes&&(i.childNodes=new C);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new O,f=u.length;l._ownerElement=i;for(var p=0;p<f;p++)i.setAttributeNode(e(t,u.item(p),!0));break;case a:r=!0}if(r)for(var d=n.firstChild;d;)i.appendChild(e(t,d,r)),d=d.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,x),n(i,x.prototype),j.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==y){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),U(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=t;case y:break;case a:r=!0}i||(i=n.cloneNode(!1));if(i.ownerDocument=t,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(e(t,s,r)),s=s.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return R(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new M;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new C,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Q;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new V;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new O;return n.childNodes=new C,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new V,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(j,x),M.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===y?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,D(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new T(this,(function(t){var n=[];return R(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return R(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},j.prototype.getElementsByTagName=M.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,x),V.prototype.nodeType=a,r(V,x),F.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(g[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(F,x),H.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,F),z.prototype={nodeName:"#comment",nodeType:p},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),q.prototype.nodeType=h,r(q,x),G.prototype.nodeType=m,r(G,x),K.prototype.nodeType=l,r(K,x),Y.prototype.nodeType=u,r(Y,x),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,x),Q.prototype.nodeType=f,r(Q,x),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},x.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case y:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case o:case y:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=I,t.XMLSerializer=$},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t){e.exports=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])}},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();var a,s=Array.prototype,c=Function.prototype,u=Object.prototype,l=o["__core-js_shared__"],f=(a=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",p=c.toString,d=u.hasOwnProperty,h=u.toString,y=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(o,"Map"),g=E(Object,"create");function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function C(e){return!(!k(e)||(t=e,f&&f in t))&&(function(e){var t=k(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return C(n)?n:void 0}function O(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(O.Cache||_),n}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=g?g(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(g){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return d.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return g?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=g&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(v||w),string:new b}},_.prototype.delete=function(e){return T(this,e).delete(e)},_.prototype.get=function(e){return T(this,e).get(e)},_.prototype.has=function(e){return T(this,e).has(e)},_.prototype.set=function(e,t){return T(this,e).set(e,t),this},O.Cache=_,e.exports=O}).call(this,n(116))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function s(){o(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=v(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),c=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(e){return e===l(e).document.documentElement}(e)){var u=Math.round(s+o)-t,h=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(h)&&(c-=h)}return v(i.left,i.top,s,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):h(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,i,o,a,s,c,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);u(this,{target:e,contentRect:l})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=C}).call(this,n(116))},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorView",(function(){return d}));var r=n(0),i=n(8),o=n(234),a=n(268),s=n(5),c=n(7),u=n(60),l=n(206);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,p,d,h=e.error;Object(a.a)((null==h?void 0:h.heading)||i.a.getPhrase("default.error","defaultPageTitle"));var y=f(r.useState(o.a.getRandomInt(21)+1),1)[0],m=u.a.ErrorViews.SMALL.replace("{number}",y.toString());return h?r.createElement(l.a,null,r.createElement(l.a.Image,{src:m}),r.createElement(l.a.Heading,null,h.heading),!!h.description&&r.createElement(l.a.Info,{injectHtml:h.injectDescriptionHtml},h.description),!1!==h.cta&&r.createElement(l.a.Cta,{text:null!==(n=null===(t=h.cta)||void 0===t?void 0:t.text)&&void 0!==n?n:i.a.getPhrase("default.error","discoverVideos"),className:"info-link ".concat(h.description?"mt-n2":""),appLink:null!==(d=null===(p=h.cta)||void 0===p?void 0:p.appLink)&&void 0!==d?d:{application:s.a.DASHBOARD,action:c.a.Dashboard.HOME}})):r.createElement(r.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(115),i=n(8);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(this.lang,"heading"),text:i.a.getPhrase(this.lang,"body"),buttons:[{text:i.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:i.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,i=n(225);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,o=u(l);function l(){return a(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.BaseCollectionIdentifier);n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";var r=n(110);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(15);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var o=[r.a.POST,r.a.PUT];function a(e){var t=e.resource,n=e.type,r=e.headers,a=e.success,s=e.error,c=e.always,u={url:t,method:n};o.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){a&&a(e,i(n))})).fail((function(e){s&&s(i(e))})).always((function(){c&&c()}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(75);function i(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=null,r=null;return function(){return o(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function s(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),c=s(r),u=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=a,l.dependencies=c,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var u=c(a);var l=n(255),f=n(66),p=n(88),d=n(159),h=n(104),y=n(0);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return k})),n.d(t,"c",(function(){return P}));var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode,this.hasCompleted=t.hasCompleted}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===h.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===h.a.Fetching}},{key:"hasError",get:function(){return this.status===h.a.Error}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e,t,n){if(!e||!t)return w();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new g({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function w(){return new g({status:h.a.None})}function _(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function S(e,t){return function(){C(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function T(e,t){var n,r,i,o,a=_(e.getState(),null==t?void 0:t.key);if(t&&a.shouldFetch)C(e.dispatch,t);else if(a.isFetching)var s=!1,c=e.subscribe((function(){c(),s||(s=!0,T(e,t))}));else a.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:a.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(i=t.success)||void 0===i||i.call(t,a.data),null===(o=t.always)||void 0===o||o.call(t))}function E(e){var t=Object(r.useDispatch)();if(e)return S(t,e)}function O(e,t){var n=Object(y.useMemo)((function(){return e&&(null==t?void 0:t.optimize)?function(e){return c(a,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function k(e,t){var n=Object(r.useDispatch)(),i=O(e&&e.key,t),o=S(n,e);return e&&i.shouldFetch&&o(),i}function P(e,t){return v(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){var i=t.success,o=t.error;t.success=function(e){null==i||i(e),n(e)},t.error=function(e){null==o||o(e),r(e)},T(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(409);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,n,r,c=s(u);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,u),c.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:t})}return t=u,n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(225).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=h},function(e,t,n){e.exports=n(798).default},function(e,t){e.exports=y},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.unreadCount:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.unreadCount:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.unreadCount:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.heading:o,t))+"</h4>\r\n"},3:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return"<p>"+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.description:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+s(a(null!=(o=null!=t?t.options:t)?o.imageClass:o,t))+'"/>\r\n'+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.heading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.description:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.actionText:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.actionText:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+" "+s(a(null!=(o=null!=t?t.options:t)?o.iconClass:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.icon:o,t))?o:"")+'</div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="clamp-2 pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.content:o,t))+"</div>\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showActionText:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.notificationTime:o,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:i}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.hasNotifications:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.notificationsContainer:o,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t,n){"use strict";var r=n(570);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(758);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(574);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(575);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(576)},function(e,t,n){e.exports={radioFilter:"vo-iA"}},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){var r=n(349),i=n(813);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(349);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},f={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var u=n(818).XMLReader,l=t.DOMImplementation=n(723).DOMImplementation;t.XMLSerializer=n(723).XMLSerializer,t.DOMParser=r},function(e,t){var n=Math.pow(2,32);e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=t.getUint32(i)*n+t.getUint32(i+4),r.firstOffset=t.getUint32(i+8)*n+t.getUint32(i+12),i+=16),i+=2;var o=t.getUint16(i);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r}},function(e,t,n){"use strict";var r=n(724),i=n(819).handleRollover,o={};o.ts=n(821),o.aac=n(822);var a=n(201).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c++,u++;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c+=188,u+=188}for(c=(u=e.byteLength)-188,l=!1;c>=0;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c--,u--;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c-=188,u-=188}},c=function(e,t,n){for(var r,i,a,s,c,u,l,f=0,p=188,d=!1,h={data:[],size:0};p<e.byteLength;)if(71!==e[f]||71!==e[p])f++,p++;else{switch(r=e.subarray(f,p),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!d&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0),!n.firstKeyFrame)){if(a&&0!==h.size){for(c=new Uint8Array(h.size),u=0;h.data.length;)l=h.data.shift(),c.set(l,u),u+=l.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var y=o.ts.parsePesTime(c);y?(n.firstKeyFrame=y,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}h.size=0}h.data.push(r),h.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;f+=188,p+=188}for(f=(p=e.byteLength)-188,d=!1;f>=0;)if(71!==e[f]||71!==e[p])f--,p--;else{switch(r=e.subarray(f,p),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0)}if(d)break;f-=188,p-=188}},u=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],c(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,c=0,u=0;e.length-u>=3;){switch(o.aac.parseType(e,u)){case"timed-metadata":if(e.length-u<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,u))>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+c),s=o.aac.parseAacTimestamp(t)),u+=c;break;case"audio":if(e.length-u<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,u))>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+c),i=o.aac.parseSampleRate(t)),r++,u+=c;break;default:u++}if(n)return null}if(null===i||null===s)return null;var l=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):u(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}))}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e){e.exports=JSON.parse('{"a":"0.0.25"}')},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var i,o,a,s=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=1)o=(a=i+c)>>>2,s.length<=o&&s.push(0),s[o]|=e[i]<<8*(u+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,i){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var i,o,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=2){if(o=parseInt(e.substr(i,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(a=(s=(i>>>1)+u)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(l+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,i)};case"TEXT":return function(e,t,n){return function(e,t,n,r,i){var o,a,s,c,u,l,f,p,d=0,h=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===i?3:0,s=0;s<e.length;s+=1)for(a=[],128>(o=e.charCodeAt(s))?a.push(o):2048>o?(a.push(192|o>>>6),a.push(128|63&o)):55296>o||57344<=o?a.push(224|o>>>12,128|o>>>6&63,128|63&o):(s+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(s)),a.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),c=0;c<a.length;c+=1){for(u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=a[c]<<8*(f+i*(l%4)),d+=1}else for(f=-1===i?2:0,p="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===p&&(o=(c=255&o)<<8|o>>>8),u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=o<<8*(f+i*(l%4)),d+=2}return{value:h,binLen:8*d+r}}(e,r,t,n,i)};case"B64":return function(e,n,r){return function(e,n,r,i){var o,a,s,c,u,l,f=0,p=n||[0],d=(r=r||0)>>>3,h=-1===i?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){for(c=e.substr(o,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(u=(l=f+d)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(h+i*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,i)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var i,o,a,s,c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+u)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(l+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,i){return n(new Uint8Array(e),t,r,i)}(e,t,r,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e,n,r,i){switch(e){case"HEX":return function(e){return function(e,t,n,r){var i,o,a="",s=t/8,c=-1===n?3:0;for(i=0;i<s;i+=1)o=e[i>>>2]>>>8*(c+n*(i%4)),a+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return r.outputUpper?a.toUpperCase():a}(e,n,r,i)};case"B64":return function(e){return function(e,n,r,i){var o,a,s,c,u,l="",f=n/8,p=-1===r?3:0;for(o=0;o<f;o+=3)for(c=o+1<f?e[o+1>>>2]:0,u=o+2<f?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(p+r*(o%4))&255)<<16|(c>>>8*(p+r*((o+1)%4))&255)<<8|u>>>8*(p+r*((o+2)%4))&255,a=0;a<4;a+=1)l+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return l}(e,n,r,i)};case"BYTES":return function(e){return function(e,t,n){var r,i,o="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)i=e[r>>>2]>>>8*(s+n*(r%4))&255,o+=String.fromCharCode(i);return o}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=new ArrayBuffer(i),a=new Uint8Array(o),s=-1===n?3:0;for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return o}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=-1===n?3:0,a=new Uint8Array(i);for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(o+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16))<<16|65535&o}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,i,o,f,p,d,h,y=[];for(n=t[0],r=t[1],i=t[2],o=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&i^~h&o,f,1518500249,y[d]):d<40?l(a(n,5),s(r,i,o),f,1859775393,y[d]):d<60?l(a(n,5),c(r,i,o),f,2400959708,y[d]):l(a(n,5),s(r,i,o),f,3395469782,y[d]),f=o,o=i,i=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(i,t[2]),t[3]=u(o,t[3]),t[4]=u(f,t[4]),t}function d(e,t,n,r){for(var i,o=15+(t+65>>>9<<4),a=t+n;e.length<=o;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[o]=4294967295&a,e[o-1]=a/4294967296|0,i=0;i<e.length;i+=16)r=p(e.slice(i,i+16),r);return r}return function(t){function n(e,n,i){var o=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=i||{};return(o=t.call(this,e,n,i)||this).t=!0,o.i=o.o,o.u=-1,o.s=r(o.h,o.v,o.u),o.A=p,o.p=function(e){return e.slice()},o.l=f,o.R=d,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,a.hmacKey&&o.B(function(e,t,n,i){var o="hmacKey must include a value and format";if(!t)throw new Error(o);if(void 0===t.value||!t.format)throw new Error(o);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,o.u)),o}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,i=this.s(e,this.Y,this.I),o=i.binLen,a=i.value,s=o>>>5;for(t=0;t<s;t+=r)n+this.T<=o&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=o%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=o(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=i(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var i=r(t,(n||{}).encoding||"UTF8",this.u);this.B(i(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=o(t);return i(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.43"}')},function(e,t){e.exports=m},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>\r\n<div id="print-region"></div>'},useData:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"EmbedErrorView",(function(){return c}));var r=n(0),i=n.n(r),o=n(235),a=n(203),s=n.n(a);function c(e){var t=e.error;return i.a.createElement("div",{className:"text-white ".concat(s.a.embedError)},i.a.createElement("div",{className:s.a.logo},i.a.createElement(o.b,null)),i.a.createElement("div",{className:"".concat(s.a.content," d-flex flex-column align-items-center")},i.a.createElement("div",{className:"".concat(s.a.imgContainer," mb-3")},i.a.createElement("img",{src:t.imageUrl,className:s.a.img,role:"presentation",alt:""})),i.a.createElement("h1",{className:"".concat(s.a.heading," font-weight-500 mb-0")},t.heading),!!t.description&&i.a.createElement("p",{className:"mb-0"},t.description)))}},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(176),i=n(24),o=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,o;if(Object(i.h)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),o=a.byteLength>s?a.slice(s).buffer:null}else{var c,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),o=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[o,f]},t}()}).call(this,n(415).Buffer)},function(e,t,n){e.exports={notificationsView:"_3UtcL"}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(2);n(865);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,r,i=s(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=i.call(this,e,t)).update(),n}return t=c,(n=[{key:"update",value:function(){this.options_.isFavourited?this.addClass("cv-favourited"):this.removeClass("cv-favourited")}},{key:"handleClick",value:function(){if(this.options_.isFavourited=!this.options_.isFavourited,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-favourite-button"}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.a.getComponent("Button"));function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}l.prototype.controlText_="Favourite";var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(o,e);var t,n,r,i=y(o);function o(){return p(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setFavourite",value:function(e,t){var n=this;e!==this.isFavourite&&(this.isFavourite=e,this.onClickFavourite=t,this.player.ready((function(){n.renderFavouriteButton()})))}},{key:"renderFavouriteButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{isFavourited:this.isFavourite,clickHandler:this.onClickFavourite}),this.player.addChild(this.button))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("favouritePlugin",g)},function(e,t,n){"use strict";var r=n(2),i=n(134);n(867);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this,e,t)).update(),n}return t=u,(n=[{key:"update",value:function(){this.options_.activityStatus===i.a.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.options_.activityStatus===i.a.Complete?i.a.Incomplete:i.a.Complete,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.getComponent("Button"));function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}f.prototype.controlText_="ActivityStatus";var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,n,r,i=m(o);function o(){return d(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setActivityStatus",value:function(e,t){var n=this;e!==this.activityStatus&&(this.activityStatus=e,this.onToggleStatus=t,this.player.ready((function(){n.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new f(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("activityStatusPlugin",b)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(799));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,g="<"+h+' href="'+s(d)+'"';y&&(g+=' class="'+s(y)+'"'),m&&(g+=' target="'+s(m)+'"'),v&&(g+=" "+c(v)),g+=">"+a(p)+"</"+h+">",r.push(g)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(286),i=s(n(800)),o=s(n(801)),a=s(n(802));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||t&&o.type!==t||r.push(o.toObject())}return r},t.inherits=r.inherits,t.options=i,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=i,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:i[e])?o(t,n.type):o}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(452),i=n(346),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ",""],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),h=f(i.DOMAIN),y=f(),m=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,m),m.on(u,m);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,_),l.push.apply(l,S);var C=b.pop(),T=w.pop(),E=_.pop(),O=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);T.on("s",k).on(":",P),E.on("s",k).on(":",P),l.push(k),C.on(":",P),k.on(":",P),O.on(":",A);var I=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,I),p.on(s,d),d.on("-",y).on(s,d).on(c,h),h.on("-",y).on(c,h);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=p,a=null,s=0,c=null,u=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,i++;if(!(u<0)){i-=u,s-=u;var l=c.emit();r.push(new l(e.substr(i-s,s)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(452),i=n(803),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),a=n(346);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),d=s(),h=s(),y=s(i.URL),m=s(),v=s(i.URL),g=s(i.URL),b=s(),w=s(),_=s(),S=s(),C=s(),T=s(i.URL),E=s(i.URL),O=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),x=s(),L=s(),R=s(),j=s(i.EMAIL),N=s(),D=s(i.EMAIL),B=s(i.MAILTOEMAIL),U=s(),M=s(),V=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),d.on(a.DOT,h),L.on(a.DOT,R),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),R.on(a.TLD,j).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,h),j.on(a.DOT,R),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,D);var z=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),T.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),w.on(z,T),_.on(z,E),S.on(z,O),C.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),C.on(W,x),T.on(z,T),E.on(z,E),O.on(z,O),k.on(z,k),T.on(W,T),E.on(W,E),O.on(W,O),k.on(W,k),P.on(z,T),A.on(z,E),I.on(z,O),x.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),x.on(W,x),g.on(z,g),b.on(z,g),g.on(W,b),b.on(W,b),l.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,U),U.on(z,B).on(W,U);var q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(q,M).on(a.AT,V),y.on(q,M).on(a.AT,V),h.on(q,M),M.on(q,M).on(a.AT,V).on(a.DOT,F),F.on(q,M),V.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,j);t.State=r.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,r=[],o=[];n<t;){for(var a=c,s=null,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var h=f.emit();r.push(new h(e.slice(n-l,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(453),i=n(286),o=n(346);function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,i=[],s=0;r[s]instanceof o.PROTOCOL;)t=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){},function(e,t){},function(e,t,n){var r=n(794).default,i=n(25);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){var r=n(318),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function u(e,t,n){var r=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),u(),t.endTime=i(),u(),function(e,t){var r=new s;c(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},h={rt:"ruby"};function y(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!h[t.localName]||h[t.localName]===e.localName}function i(t,n){var r=f[t];if(!r)return null;var i=e.document.createElement(r),o=d[t];return o&&n&&(i[o]=n.trim()),i}for(var o,s,c=e.document.createElement("div"),u=c,y=[];null!==(o=n());)if("<"!==o[0])u.appendChild(e.document.createTextNode((s=o,l.innerHTML=s,s=l.textContent,l.textContent="",s)));else{if("/"===o[1]){y.length&&y[y.length-1]===o.substr(2).replace(">","")&&(y.pop(),u=u.parentNode);continue}var m,v=a(o.substr(1,o.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),u.appendChild(m);continue}var g=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g)continue;if(!(m=i(g[1],g[3])))continue;if(!r(u,m))continue;if(g[2]){var b=g[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(p.hasOwnProperty(n)){var r=t?"background-color":"color",i=p[n];m.style[r]=i}})),m.className=b.join(" ")}y.push(g[1]),u.appendChild(m),u=m}return c}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function g(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(v(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function w(e,t,n){b.call(this),this.cue=t,this.cueDiv=y(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function S(e,t,n,r){var i=new _(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var c;switch(o.vertical){case"":s=["+y","-y"],c="height";break;case"rl":s=["+x","-x"],c="width";break;case"lr":s=["-x","+x"],c="width"}var u=i.lineHeight,l=u*Math.round(a),f=n[c]+u,p=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/u)*u),a<0&&(l+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(p,l)}else{var d=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new _(t)}var h=function(e,t){for(var i,o=new _(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var c=e.intersectPercentage(n);a>c&&(i=new _(e),a=c),e=new _(o)}return i||o}(i,s);t.move(h.toCSSCompatValues(n))}function C(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},w.prototype=i(b.prototype),w.prototype.constructor=w,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};C.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=_.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,c=0;c<t.length;c++)s=t[c],n=new w(e,s,a),r.appendChild(n.div),S(0,n,o,i),s.displayState=n.div,i.push(_.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},C.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},C.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?c(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new s;c(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",a(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):c(e,(function(e,n){switch(e){case"Region":!function(e){var n=new s;if(c(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{u(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==i.indexOf("--\x3e");if(!i||p&&(f=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new o(o.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=C},function(e,t){},function(e,t){var n={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function o(e,t,r){this.hasBeenReset=!1;var o="",a=!1,s=e,c=t,u=r,l=null,f="",p=!0,d="auto",h="start",y="auto",m="auto",v=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");f=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=i(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
46
|
+
e.exports=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(n,!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var s="undefined"!=typeof window&&void 0!==window.document,c=s?window:{},u=!!s&&"ontouchstart"in c.document.documentElement,l=!!s&&"PointerEvent"in c,f="".concat("cropper","-crop"),p="".concat("cropper","-disabled"),d="".concat("cropper","-hidden"),h="".concat("cropper","-hide"),y="".concat("cropper","-invisible"),m="".concat("cropper","-modal"),v="".concat("cropper","-move"),g="".concat("cropper","Action"),b="".concat("cropper","Preview"),w=u?"touchstart":"mousedown",_=u?"touchmove":"mousemove",S=u?"touchend touchcancel":"mouseup",C=l?"pointerdown":w,T=l?"pointermove":_,E=l?"pointerup pointercancel":S,O=/^e|w|s|n|se|sw|ne|nw|all|crop|move|zoom$/,k=/^data:/,P=/^data:image\/jpeg;base64,/,A=/^img|canvas$/i,I={viewMode:0,dragMode:"crop",initialAspectRatio:NaN,aspectRatio:NaN,data:null,preview:"",responsive:!0,restore:!0,checkCrossOrigin:!0,checkOrientation:!0,modal:!0,guides:!0,center:!0,highlight:!0,background:!0,autoCrop:!0,autoCropArea:.8,movable:!0,rotatable:!0,scalable:!0,zoomable:!0,zoomOnTouch:!0,zoomOnWheel:!0,wheelZoomRatio:.1,cropBoxMovable:!0,cropBoxResizable:!0,toggleDragModeOnDblclick:!0,minCanvasWidth:0,minCanvasHeight:0,minCropBoxWidth:0,minCropBoxHeight:0,minContainerWidth:200,minContainerHeight:100,ready:null,cropstart:null,cropmove:null,cropend:null,crop:null,zoom:null},x=Number.isNaN||c.isNaN;function L(e){return"number"==typeof e&&!x(e)}var R=function(e){return e>0&&e<1/0};function j(e){return void 0===e}function N(t){return"object"===e(t)&&null!==t}var D=Object.prototype.hasOwnProperty;function B(e){if(!N(e))return!1;try{var t=e.constructor,n=t.prototype;return t&&n&&D.call(n,"isPrototypeOf")}catch(e){return!1}}function U(e){return"function"==typeof e}var M=Array.prototype.slice;function V(e){return Array.from?Array.from(e):M.call(e)}function F(e,t){return e&&U(t)&&(Array.isArray(e)||L(e.length)?V(e).forEach((function(n,r){t.call(e,n,r,e)})):N(e)&&Object.keys(e).forEach((function(n){t.call(e,e[n],n,e)}))),e}var H=Object.assign||function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return N(e)&&n.length>0&&n.forEach((function(t){N(t)&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e},z=/\.\d*(?:0|9){12}\d*$/;function W(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e11;return z.test(e)?Math.round(e*t)/t:e}var q=/^width|height|left|top|marginLeft|marginTop$/;function G(e,t){var n=e.style;F(t,(function(e,t){q.test(t)&&L(e)&&(e="".concat(e,"px")),n[t]=e}))}function K(e,t){if(t)if(L(e.length))F(e,(function(e){K(e,t)}));else if(e.classList)e.classList.add(t);else{var n=e.className.trim();n?n.indexOf(t)<0&&(e.className="".concat(n," ").concat(t)):e.className=t}}function Y(e,t){t&&(L(e.length)?F(e,(function(e){Y(e,t)})):e.classList?e.classList.remove(t):e.className.indexOf(t)>=0&&(e.className=e.className.replace(t,"")))}function X(e,t,n){t&&(L(e.length)?F(e,(function(e){X(e,t,n)})):n?K(e,t):Y(e,t))}var Q=/([a-z\d])([A-Z])/g;function $(e){return e.replace(Q,"$1-$2").toLowerCase()}function Z(e,t){return N(e[t])?e[t]:e.dataset?e.dataset[t]:e.getAttribute("data-".concat($(t)))}function J(e,t,n){N(n)?e[t]=n:e.dataset?e.dataset[t]=n:e.setAttribute("data-".concat($(t)),n)}var ee=/\s\s*/,te=function(){var e=!1;if(s){var t=!1,n=function(){},r=Object.defineProperty({},"once",{get:function(){return e=!0,t},set:function(e){t=e}});c.addEventListener("test",n,r),c.removeEventListener("test",n,r)}return e}();function ne(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(!te){var o=e.listeners;o&&o[t]&&o[t][n]&&(i=o[t][n],delete o[t][n],0===Object.keys(o[t]).length&&delete o[t],0===Object.keys(o).length&&delete e.listeners)}e.removeEventListener(t,i,r)}))}function re(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=n;t.trim().split(ee).forEach((function(t){if(r.once&&!te){var o=e.listeners,a=void 0===o?{}:o;i=function(){delete a[t][n],e.removeEventListener(t,i,r);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];n.apply(e,s)},a[t]||(a[t]={}),a[t][n]&&e.removeEventListener(t,a[t][n],r),a[t][n]=i,e.listeners=a}e.addEventListener(t,i,r)}))}function ie(e,t,n){var r;return U(Event)&&U(CustomEvent)?r=new CustomEvent(t,{detail:n,bubbles:!0,cancelable:!0}):(r=document.createEvent("CustomEvent")).initCustomEvent(t,!0,!0,n),e.dispatchEvent(r)}function oe(e){var t=e.getBoundingClientRect();return{left:t.left+(window.pageXOffset-document.documentElement.clientLeft),top:t.top+(window.pageYOffset-document.documentElement.clientTop)}}var ae=c.location,se=/^(\w+:)\/\/([^:/?#]*):?(\d*)/i;function ce(e){var t=e.match(se);return null!==t&&(t[1]!==ae.protocol||t[2]!==ae.hostname||t[3]!==ae.port)}function ue(e){var t="timestamp=".concat((new Date).getTime());return e+(-1===e.indexOf("?")?"?":"&")+t}function le(e){var t=e.rotate,n=e.scaleX,r=e.scaleY,i=e.translateX,o=e.translateY,a=[];L(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),L(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),L(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),L(n)&&1!==n&&a.push("scaleX(".concat(n,")")),L(r)&&1!==r&&a.push("scaleY(".concat(r,")"));var s=a.length?a.join(" "):"none";return{WebkitTransform:s,msTransform:s,transform:s}}function fe(e,t){var n=e.pageX,r=e.pageY,i={endX:n,endY:r};return t?i:o({startX:n,startY:r},i)}function pe(e){var t=e.aspectRatio,n=e.height,r=e.width,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"contain",o=R(r),a=R(n);if(o&&a){var s=n*t;"contain"===i&&s>r||"cover"===i&&s<r?n=r/t:r=n*t}else o?n=r/t:a&&(r=n*t);return{width:r,height:n}}function de(e,t,n,r){var i=t.aspectRatio,o=t.naturalWidth,s=t.naturalHeight,c=t.rotate,u=void 0===c?0:c,l=t.scaleX,f=void 0===l?1:l,p=t.scaleY,d=void 0===p?1:p,h=n.aspectRatio,y=n.naturalWidth,m=n.naturalHeight,v=r.fillColor,g=void 0===v?"transparent":v,b=r.imageSmoothingEnabled,w=void 0===b||b,_=r.imageSmoothingQuality,S=void 0===_?"low":_,C=r.maxWidth,T=void 0===C?1/0:C,E=r.maxHeight,O=void 0===E?1/0:E,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,x=document.createElement("canvas"),L=x.getContext("2d"),R=pe({aspectRatio:h,width:T,height:O}),j=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(R.width,Math.max(j.width,y)),D=Math.min(R.height,Math.max(j.height,m)),B=pe({aspectRatio:i,width:T,height:O}),U=pe({aspectRatio:i,width:P,height:I},"cover"),M=Math.min(B.width,Math.max(U.width,o)),V=Math.min(B.height,Math.max(U.height,s)),F=[-M/2,-V/2,M,V];return x.width=W(N),x.height=W(D),L.fillStyle=g,L.fillRect(0,0,N,D),L.save(),L.translate(N/2,D/2),L.rotate(u*Math.PI/180),L.scale(f,d),L.imageSmoothingEnabled=w,L.imageSmoothingQuality=S,L.drawImage.apply(L,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),L.restore(),x}var he=String.fromCharCode,ye=/^data:.*,/;function me(e){var t,n=new DataView(e);try{var r,i,o;if(255===n.getUint8(0)&&216===n.getUint8(1))for(var a=n.byteLength,s=2;s+1<a;){if(255===n.getUint8(s)&&225===n.getUint8(s+1)){i=s;break}s+=1}if(i){var c=i+10;if("Exif"===function(e,t,n){var r="";n+=t;for(var i=t;i<n;i+=1)r+=he(e.getUint8(i));return r}(n,i+4,4)){var u=n.getUint16(c);if(((r=18761===u)||19789===u)&&42===n.getUint16(c+2,r)){var l=n.getUint32(c+4,r);l>=8&&(o=c+l)}}}if(o){var f,p,d=n.getUint16(o,r);for(p=0;p<d;p+=1)if(f=o+12*p+2,274===n.getUint16(f,r)){f+=8,t=n.getUint16(f,r),n.setUint16(f,1,r);break}}}catch(e){t=1}return t}var ve={render:function(){this.initContainer(),this.initCanvas(),this.initCropBox(),this.renderCanvas(),this.cropped&&this.renderCropBox()},initContainer:function(){var e=this.element,t=this.options,n=this.container,r=this.cropper;K(r,d),Y(e,d);var i={width:Math.max(n.offsetWidth,Number(t.minContainerWidth)||200),height:Math.max(n.offsetHeight,Number(t.minContainerHeight)||100)};this.containerData=i,G(r,{width:i.width,height:i.height}),K(e,d),Y(r,d)},initCanvas:function(){var e=this.containerData,t=this.imageData,n=this.options.viewMode,r=Math.abs(t.rotate)%180==90,i=r?t.naturalHeight:t.naturalWidth,o=r?t.naturalWidth:t.naturalHeight,a=i/o,s=e.width,c=e.height;e.height*a>e.width?3===n?s=e.height*a:c=e.width/a:3===n?c=e.width/a:s=e.height*a;var u={aspectRatio:a,naturalWidth:i,naturalHeight:o,width:s,height:c};u.left=(e.width-s)/2,u.top=(e.height-c)/2,u.oldLeft=u.left,u.oldTop=u.top,this.canvasData=u,this.limited=1===n||2===n,this.limitCanvas(!0,!0),this.initialImageData=H({},t),this.initialCanvasData=H({},u)},limitCanvas:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=n.viewMode,s=i.aspectRatio,c=this.cropped&&o;if(e){var u=Number(n.minCanvasWidth)||0,l=Number(n.minCanvasHeight)||0;a>1?(u=Math.max(u,r.width),l=Math.max(l,r.height),3===a&&(l*s>u?u=l*s:l=u/s)):a>0&&(u?u=Math.max(u,c?o.width:0):l?l=Math.max(l,c?o.height:0):c&&(u=o.width,(l=o.height)*s>u?u=l*s:l=u/s));var f=pe({aspectRatio:s,width:u,height:l});u=f.width,l=f.height,i.minWidth=u,i.minHeight=l,i.maxWidth=1/0,i.maxHeight=1/0}if(t)if(a>(c?0:1)){var p=r.width-i.width,d=r.height-i.height;i.minLeft=Math.min(0,p),i.minTop=Math.min(0,d),i.maxLeft=Math.max(0,p),i.maxTop=Math.max(0,d),c&&this.limited&&(i.minLeft=Math.min(o.left,o.left+(o.width-i.width)),i.minTop=Math.min(o.top,o.top+(o.height-i.height)),i.maxLeft=o.left,i.maxTop=o.top,2===a&&(i.width>=r.width&&(i.minLeft=Math.min(0,p),i.maxLeft=Math.max(0,p)),i.height>=r.height&&(i.minTop=Math.min(0,d),i.maxTop=Math.max(0,d))))}else i.minLeft=-i.width,i.minTop=-i.height,i.maxLeft=r.width,i.maxTop=r.height},renderCanvas:function(e,t){var n=this.canvasData,r=this.imageData;if(t){var i=function(e){var t=e.width,n=e.height,r=e.degree;if(90==(r=Math.abs(r)%180))return{width:n,height:t};var i=r%90*Math.PI/180,o=Math.sin(i),a=Math.cos(i),s=t*a+n*o,c=t*o+n*a;return r>90?{width:c,height:s}:{width:s,height:c}}({width:r.naturalWidth*Math.abs(r.scaleX||1),height:r.naturalHeight*Math.abs(r.scaleY||1),degree:r.rotate||0}),o=i.width,a=i.height,s=n.width*(o/n.naturalWidth),c=n.height*(a/n.naturalHeight);n.left-=(s-n.width)/2,n.top-=(c-n.height)/2,n.width=s,n.height=c,n.aspectRatio=o/a,n.naturalWidth=o,n.naturalHeight=a,this.limitCanvas(!0,!1)}(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCanvas(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,G(this.canvas,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.renderImage(e),this.cropped&&this.limited&&this.limitCropBox(!0,!0)},renderImage:function(e){var t=this.canvasData,n=this.imageData,r=n.naturalWidth*(t.width/t.naturalWidth),i=n.naturalHeight*(t.height/t.naturalHeight);H(n,{width:r,height:i,left:(t.width-r)/2,top:(t.height-i)/2}),G(this.image,H({width:n.width,height:n.height},le(H({translateX:n.left,translateY:n.top},n)))),e&&this.output()},initCropBox:function(){var e=this.options,t=this.canvasData,n=e.aspectRatio||e.initialAspectRatio,r=Number(e.autoCropArea)||.8,i={width:t.width,height:t.height};n&&(t.height*n>t.width?i.height=i.width/n:i.width=i.height*n),this.cropBoxData=i,this.limitCropBox(!0,!0),i.width=Math.min(Math.max(i.width,i.minWidth),i.maxWidth),i.height=Math.min(Math.max(i.height,i.minHeight),i.maxHeight),i.width=Math.max(i.minWidth,i.width*r),i.height=Math.max(i.minHeight,i.height*r),i.left=t.left+(t.width-i.width)/2,i.top=t.top+(t.height-i.height)/2,i.oldLeft=i.left,i.oldTop=i.top,this.initialCropBoxData=H({},i)},limitCropBox:function(e,t){var n=this.options,r=this.containerData,i=this.canvasData,o=this.cropBoxData,a=this.limited,s=n.aspectRatio;if(e){var c=Number(n.minCropBoxWidth)||0,u=Number(n.minCropBoxHeight)||0,l=a?Math.min(r.width,i.width,i.width+i.left,r.width-i.left):r.width,f=a?Math.min(r.height,i.height,i.height+i.top,r.height-i.top):r.height;c=Math.min(c,r.width),u=Math.min(u,r.height),s&&(c&&u?u*s>c?u=c/s:c=u*s:c?u=c/s:u&&(c=u*s),f*s>l?f=l/s:l=f*s),o.minWidth=Math.min(c,l),o.minHeight=Math.min(u,f),o.maxWidth=l,o.maxHeight=f}t&&(a?(o.minLeft=Math.max(0,i.left),o.minTop=Math.max(0,i.top),o.maxLeft=Math.min(r.width,i.left+i.width)-o.width,o.maxTop=Math.min(r.height,i.top+i.height)-o.height):(o.minLeft=0,o.minTop=0,o.maxLeft=r.width-o.width,o.maxTop=r.height-o.height))},renderCropBox:function(){var e=this.options,t=this.containerData,n=this.cropBoxData;(n.width>n.maxWidth||n.width<n.minWidth)&&(n.left=n.oldLeft),(n.height>n.maxHeight||n.height<n.minHeight)&&(n.top=n.oldTop),n.width=Math.min(Math.max(n.width,n.minWidth),n.maxWidth),n.height=Math.min(Math.max(n.height,n.minHeight),n.maxHeight),this.limitCropBox(!1,!0),n.left=Math.min(Math.max(n.left,n.minLeft),n.maxLeft),n.top=Math.min(Math.max(n.top,n.minTop),n.maxTop),n.oldLeft=n.left,n.oldTop=n.top,e.movable&&e.cropBoxMovable&&J(this.face,g,n.width>=t.width&&n.height>=t.height?"move":"all"),G(this.cropBox,H({width:n.width,height:n.height},le({translateX:n.left,translateY:n.top}))),this.cropped&&this.limited&&this.limitCanvas(!0,!0),this.disabled||this.output()},output:function(){this.preview(),ie(this.element,"crop",this.getData())}},ge={initPreview:function(){var e=this.element,t=this.crossOrigin,n=this.options.preview,r=t?this.crossOriginUrl:this.url,i=e.alt||"The image to preview",o=document.createElement("img");if(t&&(o.crossOrigin=t),o.src=r,o.alt=i,this.viewBox.appendChild(o),this.viewBoxImage=o,n){var a=n;"string"==typeof n?a=e.ownerDocument.querySelectorAll(n):n.querySelector&&(a=[n]),this.previews=a,F(a,(function(e){var n=document.createElement("img");J(e,b,{width:e.offsetWidth,height:e.offsetHeight,html:e.innerHTML}),t&&(n.crossOrigin=t),n.src=r,n.alt=i,n.style.cssText='display:block;width:100%;height:auto;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;image-orientation:0deg!important;"',e.innerHTML="",e.appendChild(n)}))}},resetPreview:function(){F(this.previews,(function(e){var t=Z(e,b);G(e,{width:t.width,height:t.height}),e.innerHTML=t.html,function(e,t){if(N(e[t]))try{delete e[t]}catch(n){e[t]=void 0}else if(e.dataset)try{delete e.dataset[t]}catch(n){e.dataset[t]=void 0}else e.removeAttribute("data-".concat($(t)))}(e,b)}))},preview:function(){var e=this.imageData,t=this.canvasData,n=this.cropBoxData,r=n.width,i=n.height,o=e.width,a=e.height,s=n.left-t.left-e.left,c=n.top-t.top-e.top;this.cropped&&!this.disabled&&(G(this.viewBoxImage,H({width:o,height:a},le(H({translateX:-s,translateY:-c},e)))),F(this.previews,(function(t){var n=Z(t,b),u=n.width,l=n.height,f=u,p=l,d=1;r&&(p=i*(d=u/r)),i&&p>l&&(f=r*(d=l/i),p=l),G(t,{width:f,height:p}),G(t.getElementsByTagName("img")[0],H({width:o*d,height:a*d},le(H({translateX:-s*d,translateY:-c*d},e))))})))}},be={bind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&re(e,"cropstart",t.cropstart),U(t.cropmove)&&re(e,"cropmove",t.cropmove),U(t.cropend)&&re(e,"cropend",t.cropend),U(t.crop)&&re(e,"crop",t.crop),U(t.zoom)&&re(e,"zoom",t.zoom),re(n,C,this.onCropStart=this.cropStart.bind(this)),t.zoomable&&t.zoomOnWheel&&re(n,"wheel",this.onWheel=this.wheel.bind(this),{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&re(n,"dblclick",this.onDblclick=this.dblclick.bind(this)),re(e.ownerDocument,T,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,E,this.onCropEnd=this.cropEnd.bind(this)),t.responsive&&re(window,"resize",this.onResize=this.resize.bind(this))},unbind:function(){var e=this.element,t=this.options,n=this.cropper;U(t.cropstart)&&ne(e,"cropstart",t.cropstart),U(t.cropmove)&&ne(e,"cropmove",t.cropmove),U(t.cropend)&&ne(e,"cropend",t.cropend),U(t.crop)&&ne(e,"crop",t.crop),U(t.zoom)&&ne(e,"zoom",t.zoom),ne(n,C,this.onCropStart),t.zoomable&&t.zoomOnWheel&&ne(n,"wheel",this.onWheel,{passive:!1,capture:!0}),t.toggleDragModeOnDblclick&&ne(n,"dblclick",this.onDblclick),ne(e.ownerDocument,T,this.onCropMove),ne(e.ownerDocument,E,this.onCropEnd),t.responsive&&ne(window,"resize",this.onResize)}},we={resize:function(){var e=this.options,t=this.container,n=this.containerData,r=Number(e.minContainerWidth)||200,i=Number(e.minContainerHeight)||100;if(!(this.disabled||n.width<=r||n.height<=i)){var o,a,s=t.offsetWidth/n.width;1===s&&t.offsetHeight===n.height||(e.restore&&(o=this.getCanvasData(),a=this.getCropBoxData()),this.render(),e.restore&&(this.setCanvasData(F(o,(function(e,t){o[t]=e*s}))),this.setCropBoxData(F(a,(function(e,t){a[t]=e*s})))))}},dblclick:function(){var e,t;this.disabled||"none"===this.options.dragMode||this.setDragMode((e=this.dragBox,t=f,(e.classList?e.classList.contains(t):e.className.indexOf(t)>-1)?"move":"crop"))},wheel:function(e){var t=this,n=Number(this.options.wheelZoomRatio)||.1,r=1;this.disabled||(e.preventDefault(),this.wheeling||(this.wheeling=!0,setTimeout((function(){t.wheeling=!1}),50),e.deltaY?r=e.deltaY>0?1:-1:e.wheelDelta?r=-e.wheelDelta/120:e.detail&&(r=e.detail>0?1:-1),this.zoom(-r*n,e)))},cropStart:function(e){var t=e.buttons,n=e.button;if(!(this.disabled||("mousedown"===e.type||"pointerdown"===e.type&&"mouse"===e.pointerType)&&(L(t)&&1!==t||L(n)&&0!==n||e.ctrlKey))){var r,i=this.options,o=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){o[e.identifier]=fe(e)})):o[e.pointerId||0]=fe(e),r=Object.keys(o).length>1&&i.zoomable&&i.zoomOnTouch?"zoom":Z(e.target,g),O.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,K(this.dragBox,m)))}},cropMove:function(e){var t=this.action;if(!this.disabled&&t){var n=this.pointers;e.preventDefault(),!1!==ie(this.element,"cropmove",{originalEvent:e,action:t})&&(e.changedTouches?F(e.changedTouches,(function(e){H(n[e.identifier]||{},fe(e,!0))})):H(n[e.pointerId||0]||{},fe(e,!0)),this.change(e))}},cropEnd:function(e){if(!this.disabled){var t=this.action,n=this.pointers;e.changedTouches?F(e.changedTouches,(function(e){delete n[e.identifier]})):delete n[e.pointerId||0],t&&(e.preventDefault(),Object.keys(n).length||(this.action=""),this.cropping&&(this.cropping=!1,X(this.dragBox,m,this.cropped&&this.options.modal)),ie(this.element,"cropend",{originalEvent:e,action:t}))}}},_e={change:function(e){var t,n=this.options,r=this.canvasData,i=this.containerData,a=this.cropBoxData,s=this.pointers,c=this.action,u=n.aspectRatio,l=a.left,f=a.top,p=a.width,h=a.height,y=l+p,m=f+h,v=0,g=0,b=i.width,w=i.height,_=!0;!u&&e.shiftKey&&(u=p&&h?p/h:1),this.limited&&(v=a.minLeft,g=a.minTop,b=v+Math.min(i.width,r.width,r.left+r.width),w=g+Math.min(i.height,r.height,r.top+r.height));var S=s[Object.keys(s)[0]],C={x:S.endX-S.startX,y:S.endY-S.startY},T=function(e){switch(e){case"e":y+C.x>b&&(C.x=b-y);break;case"w":l+C.x<v&&(C.x=v-l);break;case"n":f+C.y<g&&(C.y=g-f);break;case"s":m+C.y>w&&(C.y=w-m)}};switch(c){case"all":l+=C.x,f+=C.y;break;case"e":if(C.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}T("e"),(p+=C.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(C.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}T("n"),h-=C.y,f+=C.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(C.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}T("w"),p-=C.x,l+=C.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(C.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}T("s"),(h+=C.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(C.y<=0&&(f<=g||y>=b)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u}else T("n"),T("e"),C.x>=0?y<b?p+=C.x:C.y<=0&&f<=g&&(_=!1):p+=C.x,C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="sw",f-=h=-h,l-=p=-p):p<0?(c="nw",l-=p=-p):h<0&&(c="se",f-=h=-h);break;case"nw":if(u){if(C.y<=0&&(f<=g||l<=v)){_=!1;break}T("n"),h-=C.y,f+=C.y,p=h*u,l+=a.width-p}else T("n"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y<=0&&f<=g&&(_=!1):(p-=C.x,l+=C.x),C.y<=0?f>g&&(h-=C.y,f+=C.y):(h-=C.y,f+=C.y);p<0&&h<0?(c="se",f-=h=-h,l-=p=-p):p<0?(c="ne",l-=p=-p):h<0&&(c="sw",f-=h=-h);break;case"sw":if(u){if(C.x<=0&&(l<=v||m>=w)){_=!1;break}T("w"),p-=C.x,l+=C.x,h=p/u}else T("s"),T("w"),C.x<=0?l>v?(p-=C.x,l+=C.x):C.y>=0&&m>=w&&(_=!1):(p-=C.x,l+=C.x),C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="ne",f-=h=-h,l-=p=-p):p<0?(c="se",l-=p=-p):h<0&&(c="nw",f-=h=-h);break;case"se":if(u){if(C.x>=0&&(y>=b||m>=w)){_=!1;break}T("e"),h=(p+=C.x)/u}else T("s"),T("e"),C.x>=0?y<b?p+=C.x:C.y>=0&&m>=w&&(_=!1):p+=C.x,C.y>=0?m<w&&(h+=C.y):h+=C.y;p<0&&h<0?(c="nw",f-=h=-h,l-=p=-p):p<0?(c="sw",l-=p=-p):h<0&&(c="ne",f-=h=-h);break;case"move":this.move(C.x,C.y),_=!1;break;case"zoom":this.zoom(function(e){var t=o({},e),n=[];return F(e,(function(e,r){delete t[r],F(t,(function(t){var r=Math.abs(e.startX-t.startX),i=Math.abs(e.startY-t.startY),o=Math.abs(e.endX-t.endX),a=Math.abs(e.endY-t.endY),s=Math.sqrt(r*r+i*i),c=(Math.sqrt(o*o+a*a)-s)/s;n.push(c)}))})),n.sort((function(e,t){return Math.abs(e)<Math.abs(t)})),n[0]}(s),e),_=!1;break;case"crop":if(!C.x||!C.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,C.x>0?c=C.y>0?"se":"ne":C.x<0&&(l-=p,c=C.y>0?"sw":"nw"),C.y<0&&(f-=h),this.cropped||(Y(this.cropBox,d),this.cropped=!0,this.limited&&this.limitCropBox(!0,!0))}_&&(a.width=p,a.height=h,a.left=l,a.top=f,this.action=c,this.renderCropBox()),F(s,(function(e){e.startX=e.endX,e.startY=e.endY}))}},Se={crop:function(){return!this.ready||this.cropped||this.disabled||(this.cropped=!0,this.limitCropBox(!0,!0),this.options.modal&&K(this.dragBox,m),Y(this.cropBox,d),this.setCropBoxData(this.initialCropBoxData)),this},reset:function(){return this.ready&&!this.disabled&&(this.imageData=H({},this.initialImageData),this.canvasData=H({},this.initialCanvasData),this.cropBoxData=H({},this.initialCropBoxData),this.renderCanvas(),this.cropped&&this.renderCropBox()),this},clear:function(){return this.cropped&&!this.disabled&&(H(this.cropBoxData,{left:0,top:0,width:0,height:0}),this.cropped=!1,this.renderCropBox(),this.limitCanvas(!0,!0),this.renderCanvas(),Y(this.dragBox,m),K(this.cropBox,d)),this},replace:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!this.disabled&&e&&(this.isImg&&(this.element.src=e),t?(this.url=e,this.image.src=e,this.ready&&(this.viewBoxImage.src=e,F(this.previews,(function(t){t.getElementsByTagName("img")[0].src=e})))):(this.isImg&&(this.replaced=!0),this.options.data=null,this.uncreate(),this.load(e))),this},enable:function(){return this.ready&&this.disabled&&(this.disabled=!1,Y(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,K(this.cropper,p)),this},destroy:function(){var e=this.element;return e.cropper?(e.cropper=void 0,this.isImg&&this.replaced&&(e.src=this.originalUrl),this.uncreate(),this):this},move:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=n.left,i=n.top;return this.moveTo(j(e)?e:r+Number(e),j(t)?t:i+Number(t))},moveTo:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.canvasData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.movable&&(L(e)&&(n.left=e,r=!0),L(t)&&(n.top=t,r=!0),r&&this.renderCanvas(!0)),this},zoom:function(e,t){var n=this.canvasData;return e=(e=Number(e))<0?1/(1-e):1+e,this.zoomTo(n.width*e/n.naturalWidth,null,t)},zoomTo:function(e,t,n){var r=this.options,i=this.canvasData,o=i.width,a=i.height,s=i.naturalWidth,c=i.naturalHeight;if((e=Number(e))>=0&&this.ready&&!this.disabled&&r.zoomable){var u=s*e,l=c*e;if(!1===ie(this.element,"zoom",{ratio:e,oldRatio:o/s,originalEvent:n}))return this;if(n){var f=this.pointers,p=oe(this.cropper),d=f&&Object.keys(f).length?function(e){var t=0,n=0,r=0;return F(e,(function(e){var i=e.startX,o=e.startY;t+=i,n+=o,r+=1})),{pageX:t/=r,pageY:n/=r}}(f):{pageX:n.pageX,pageY:n.pageY};i.left-=(u-o)*((d.pageX-p.left-i.left)/o),i.top-=(l-a)*((d.pageY-p.top-i.top)/a)}else B(t)&&L(t.x)&&L(t.y)?(i.left-=(u-o)*((t.x-i.left)/o),i.top-=(l-a)*((t.y-i.top)/a)):(i.left-=(u-o)/2,i.top-=(l-a)/2);i.width=u,i.height=l,this.renderCanvas(!0)}return this},rotate:function(e){return this.rotateTo((this.imageData.rotate||0)+Number(e))},rotateTo:function(e){return L(e=Number(e))&&this.ready&&!this.disabled&&this.options.rotatable&&(this.imageData.rotate=e%360,this.renderCanvas(!0,!0)),this},scaleX:function(e){var t=this.imageData.scaleY;return this.scale(e,L(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(L(t)?t:1,e)},scale:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=this.imageData,r=!1;return e=Number(e),t=Number(t),this.ready&&!this.disabled&&this.options.scalable&&(L(e)&&(n.scaleX=e,r=!0),L(t)&&(n.scaleY=t,r=!0),r&&this.renderCanvas(!0,!0)),this},getData:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.options,r=this.imageData,i=this.canvasData,o=this.cropBoxData;if(this.ready&&this.cropped){e={x:o.left-i.left,y:o.top-i.top,width:o.width,height:o.height};var a=r.width/r.naturalWidth;if(F(e,(function(t,n){e[n]=t/a})),t){var s=Math.round(e.y+e.height),c=Math.round(e.x+e.width);e.x=Math.round(e.x),e.y=Math.round(e.y),e.width=c-e.x,e.height=s-e.y}}else e={x:0,y:0,width:0,height:0};return n.rotatable&&(e.rotate=r.rotate||0),n.scalable&&(e.scaleX=r.scaleX||1,e.scaleY=r.scaleY||1),e},setData:function(e){var t=this.options,n=this.imageData,r=this.canvasData,i={};if(this.ready&&!this.disabled&&B(e)){var o=!1;t.rotatable&&L(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(L(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),L(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;L(e.x)&&(i.left=e.x*a+r.left),L(e.y)&&(i.top=e.y*a+r.top),L(e.width)&&(i.width=e.width*a),L(e.height)&&(i.height=e.height*a),this.setCropBoxData(i)}return this},getContainerData:function(){return this.ready?H({},this.containerData):{}},getImageData:function(){return this.sized?H({},this.imageData):{}},getCanvasData:function(){var e=this.canvasData,t={};return this.ready&&F(["left","top","width","height","naturalWidth","naturalHeight"],(function(n){t[n]=e[n]})),t},setCanvasData:function(e){var t=this.canvasData,n=t.aspectRatio;return this.ready&&!this.disabled&&B(e)&&(L(e.left)&&(t.left=e.left),L(e.top)&&(t.top=e.top),L(e.width)?(t.width=e.width,t.height=e.width/n):L(e.height)&&(t.height=e.height,t.width=e.height*n),this.renderCanvas(!0)),this},getCropBoxData:function(){var e,t=this.cropBoxData;return this.ready&&this.cropped&&(e={left:t.left,top:t.top,width:t.width,height:t.height}),e||{}},setCropBoxData:function(e){var t,n,r=this.cropBoxData,i=this.options.aspectRatio;return this.ready&&this.cropped&&!this.disabled&&B(e)&&(L(e.left)&&(r.left=e.left),L(e.top)&&(r.top=e.top),L(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),L(e.height)&&e.height!==r.height&&(n=!0,r.height=e.height),i&&(t?r.height=r.width/i:n&&(r.width=r.height*i)),this.renderCropBox()),this},getCroppedCanvas:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.ready||!window.HTMLCanvasElement)return null;var t=this.canvasData,n=de(this.image,this.imageData,t,e);if(!this.cropped)return n;var r=this.getData(),i=r.x,o=r.y,s=r.width,c=r.height,u=n.width/Math.floor(t.naturalWidth);1!==u&&(i*=u,o*=u,s*=u,c*=u);var l=s/c,f=pe({aspectRatio:l,width:e.maxWidth||1/0,height:e.maxHeight||1/0}),p=pe({aspectRatio:l,width:e.minWidth||0,height:e.minHeight||0},"cover"),d=pe({aspectRatio:l,width:e.width||(1!==u?n.width:s),height:e.height||(1!==u?n.height:c)}),h=d.width,y=d.height;h=Math.min(f.width,Math.max(p.width,h)),y=Math.min(f.height,Math.max(p.height,y));var m=document.createElement("canvas"),v=m.getContext("2d");m.width=W(h),m.height=W(y),v.fillStyle=e.fillColor||"transparent",v.fillRect(0,0,h,y);var g=e.imageSmoothingEnabled,b=void 0===g||g,w=e.imageSmoothingQuality;v.imageSmoothingEnabled=b,w&&(v.imageSmoothingQuality=w);var _,S,C,T,E,O,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,C=0,E=0):A<=0?(C=-A,A=0,E=_=Math.min(k,s+A)):A<=k&&(C=0,E=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,T=0,O=0):I<=0?(T=-I,I=0,O=S=Math.min(P,c+I)):I<=P&&(T=0,O=S=Math.min(c,P-I));var x=[A,I,_,S];if(E>0&&O>0){var L=h/s;x.push(C*L,T*L,E*L,O*L)}return v.drawImage.apply(v,[n].concat(a(x.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||j(e)||(t.aspectRatio=Math.max(0,e)||NaN,this.ready&&(this.initCropBox(),this.cropped&&this.renderCropBox())),this},setDragMode:function(e){var t=this.options,n=this.dragBox,r=this.face;if(this.ready&&!this.disabled){var i="crop"===e,o=t.movable&&"move"===e;e=i||o?e:"none",t.dragMode=e,J(n,g,e),X(n,f,i),X(n,v,o),t.cropBoxMovable||(J(r,g,e),X(r,f,i),X(r,v,o))}return this}},Ce=c.Cropper,Te=function(){function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t(this,e),!n||!A.test(n.tagName))throw new Error("The first argument is required and must be an <img> or <canvas> element.");this.element=n,this.options=H({},I,B(r)&&r),this.cropped=!1,this.disabled=!1,this.pointers={},this.ready=!1,this.reloading=!1,this.replaced=!1,this.sized=!1,this.sizing=!1,this.init()}var r,i,o;return r=e,o=[{key:"noConflict",value:function(){return window.Cropper=Ce,e}},{key:"setDefaults",value:function(e){H(I,B(e)&&e)}}],(i=[{key:"init",value:function(){var e,t=this.element,n=t.tagName.toLowerCase();if(!t.cropper){if(t.cropper=this,"img"===n){if(this.isImg=!0,e=t.getAttribute("src")||"",this.originalUrl=e,!e)return;e=t.src}else"canvas"===n&&window.HTMLCanvasElement&&(e=t.toDataURL());this.load(e)}}},{key:"load",value:function(e){var t=this;if(e){this.url=e,this.imageData={};var n=this.element,r=this.options;if(r.rotatable||r.scalable||(r.checkOrientation=!1),r.checkOrientation&&window.ArrayBuffer)if(k.test(e))P.test(e)?this.read((i=e.replace(ye,""),o=atob(i),a=new ArrayBuffer(o.length),F(s=new Uint8Array(a),(function(e,t){s[t]=o.charCodeAt(t)})),a)):this.clone();else{var i,o,a,s,c=new XMLHttpRequest,u=this.clone.bind(this);this.reloading=!0,this.xhr=c,c.onabort=u,c.onerror=u,c.ontimeout=u,c.onprogress=function(){"image/jpeg"!==c.getResponseHeader("content-type")&&c.abort()},c.onload=function(){t.read(c.response)},c.onloadend=function(){t.reloading=!1,t.xhr=null},r.checkCrossOrigin&&ce(e)&&n.crossOrigin&&(e=ue(e)),c.open("GET",e),c.responseType="arraybuffer",c.withCredentials="use-credentials"===n.crossOrigin,c.send()}else this.clone()}}},{key:"read",value:function(e){var t=this.options,n=this.imageData,r=me(e),i=0,o=1,a=1;if(r>1){this.url=function(e,t){for(var n=[],r=new Uint8Array(e);r.length>0;)n.push(he.apply(null,V(r.subarray(0,8192)))),r=r.subarray(8192);return"data:".concat(t,";base64,").concat(btoa(n.join("")))}(e,"image/jpeg");var s=function(e){var t=0,n=1,r=1;switch(e){case 2:n=-1;break;case 3:t=-180;break;case 4:r=-1;break;case 5:t=90,r=-1;break;case 6:t=90;break;case 7:t=90,n=-1;break;case 8:t=-90}return{rotate:t,scaleX:n,scaleY:r}}(r);i=s.rotate,o=s.scaleX,a=s.scaleY}t.rotatable&&(n.rotate=i),t.scalable&&(n.scaleX=o,n.scaleY=a),this.clone()}},{key:"clone",value:function(){var e=this.element,t=this.url,n=e.crossOrigin,r=t;this.options.checkCrossOrigin&&ce(t)&&(n||(n="anonymous"),r=ue(t)),this.crossOrigin=n,this.crossOriginUrl=r;var i=document.createElement("img");n&&(i.crossOrigin=n),i.src=r||t,i.alt=e.alt||"The image to crop",this.image=i,i.onload=this.start.bind(this),i.onerror=this.stop.bind(this),K(i,h),e.parentNode.insertBefore(i,e.nextSibling)}},{key:"start",value:function(){var e=this,t=this.image;t.onload=null,t.onerror=null,this.sizing=!0;var n=c.navigator&&/(?:iPad|iPhone|iPod).*?AppleWebKit/i.test(c.navigator.userAgent),r=function(t,n){H(e.imageData,{naturalWidth:t,naturalHeight:n,aspectRatio:t/n}),e.sizing=!1,e.sized=!0,e.build()};if(!t.naturalWidth||n){var i=document.createElement("img"),o=document.body||document.documentElement;this.sizingImage=i,i.onload=function(){r(i.width,i.height),n||o.removeChild(i)},i.src=t.src,n||(i.style.cssText="left:0;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;opacity:0;position:absolute;top:0;z-index:-1;",o.appendChild(i))}else r(t.naturalWidth,t.naturalHeight)}},{key:"stop",value:function(){var e=this.image;e.onload=null,e.onerror=null,e.parentNode.removeChild(e),this.image=null}},{key:"build",value:function(){if(this.sized&&!this.ready){var e=this.element,t=this.options,n=this.image,r=e.parentNode,i=document.createElement("div");i.innerHTML='<div class="cropper-container" touch-action="none"><div class="cropper-wrap-box"><div class="cropper-canvas"></div></div><div class="cropper-drag-box"></div><div class="cropper-crop-box"><span class="cropper-view-box"></span><span class="cropper-dashed dashed-h"></span><span class="cropper-dashed dashed-v"></span><span class="cropper-center"></span><span class="cropper-face"></span><span class="cropper-line line-e" data-cropper-action="e"></span><span class="cropper-line line-n" data-cropper-action="n"></span><span class="cropper-line line-w" data-cropper-action="w"></span><span class="cropper-line line-s" data-cropper-action="s"></span><span class="cropper-point point-e" data-cropper-action="e"></span><span class="cropper-point point-n" data-cropper-action="n"></span><span class="cropper-point point-w" data-cropper-action="w"></span><span class="cropper-point point-s" data-cropper-action="s"></span><span class="cropper-point point-ne" data-cropper-action="ne"></span><span class="cropper-point point-nw" data-cropper-action="nw"></span><span class="cropper-point point-sw" data-cropper-action="sw"></span><span class="cropper-point point-se" data-cropper-action="se"></span></div></div>';var o=i.querySelector(".".concat("cropper","-container")),a=o.querySelector(".".concat("cropper","-canvas")),s=o.querySelector(".".concat("cropper","-drag-box")),c=o.querySelector(".".concat("cropper","-crop-box")),u=c.querySelector(".".concat("cropper","-face"));this.container=r,this.cropper=o,this.canvas=a,this.dragBox=s,this.cropBox=c,this.viewBox=o.querySelector(".".concat("cropper","-view-box")),this.face=u,a.appendChild(n),K(e,d),r.insertBefore(o,e.nextSibling),this.isImg||Y(n,h),this.initPreview(),this.bind(),t.initialAspectRatio=Math.max(0,t.initialAspectRatio)||NaN,t.aspectRatio=Math.max(0,t.aspectRatio)||NaN,t.viewMode=Math.max(0,Math.min(3,Math.round(t.viewMode)))||0,K(c,d),t.guides||K(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||K(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&K(o,"".concat("cropper","-bg")),t.highlight||K(u,y),t.cropBoxMovable&&(K(u,v),J(u,g,"all")),t.cropBoxResizable||(K(c.getElementsByClassName("".concat("cropper","-line")),d),K(c.getElementsByClassName("".concat("cropper","-point")),d)),this.render(),this.ready=!0,this.setDragMode(t.dragMode),t.autoCrop&&this.crop(),this.setData(t.data),U(t.ready)&&re(e,"ready",t.ready,{once:!0}),ie(e,"ready")}}},{key:"unbuild",value:function(){this.ready&&(this.ready=!1,this.unbind(),this.resetPreview(),this.cropper.parentNode.removeChild(this.cropper),Y(this.element,d))}},{key:"uncreate",value:function(){this.ready?(this.unbuild(),this.ready=!1,this.cropped=!1):this.sizing?(this.sizingImage.onload=null,this.sizing=!1,this.sized=!1):this.reloading?(this.xhr.onabort=null,this.xhr.abort()):this.image&&this.stop()}}])&&n(r.prototype,i),o&&n(r,o),e}();return H(Te.prototype,ve,ge,be,we,_e,Se),Te}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(18),i=n(29);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setData(t)}var t,n,a;return t=e,(n=[{key:"setData",value:function(e){var t=e.collectionPrefix,n=e.id,r=e.sort,i=e.cursor;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}},{key:"toString",value:function(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}},{key:"getSortTypeParam",value:function(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}])&&o(t.prototype,n),a&&o(t,a),Object.defineProperty(t,"prototype",{writable:!1}),e}()},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+' partial-loading-background"></div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(38),i=n(348),o=function(e){return"recently:shared:to:".concat(e)},a={getRecentlySharedTo:function(e){return i.a.getRecentItem(o(e),r.a)},addRecentlySharedTo:function(e,t){return i.a.addRecentItem(o(e),r.a,t)}}},function(e,t,n){"use strict";var r=n(571);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}))},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.OwnedByMe="owned_by_me",e.Followed="followed",e.All="all"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(35),i=n(66);function o(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var s={reorder:function(e,t,n){if(t===n)return{reorderedItems:e,reorderRequest:null};var i=r.a.moveItem(e,t,n),o=n<e.length-1?i[n+1].id:null;return{reorderedItems:i,reorderRequest:{sourceMemberId:i[n].id,destinationMemberId:o}}},updateState:function(e,t,n){for(var a=[],s=i.a.deepClone(n),c=[e],u=n[e],l=!!u&&!!u.data&&u.data.length;u&&Array.isArray(u.data);){a.push.apply(a,o(u.data));var f=u.pagination&&u.pagination.cursors&&u.pagination.cursors.next,p=!!f&&"".concat(e,":").concat(f);(u=f&&n[p])&&c.push(p)}if(!a.length)return n;var d=r.a.findIndex(a,(function(e){return e.id===t.sourceMemberId})),h=[].concat(a),y=h.splice(d,1),m=t.destinationMemberId?r.a.findIndex(h,(function(e){return e.id===t.destinationMemberId})):h.length;return h.splice(m,0,y[0]),c.forEach((function(e){var t=h.splice(0,l);s[e].data=t})),s}}},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Online="Online",e.Primary="Primary"}(r||(r={}))},function(e,t){},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(0),i=n(33),o=n(1),a=n(27),s=n(28),c=n(85),u=n(162),l=n(413),f=n(276),p=n(45),d=n(226),h=n(369),y=n.n(h);function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var g=r.memo((function(e){var t,n=e.hideButtonText,h=void 0!==n&&n,v=m(Object(f.a)(),2),g=v[0],b=v[1],w=Object(u.a)(p.b.VideoUpload),_=Object(d.a)(),S=!!_&&!b;return r.createElement(l.a,{svgName:S?null:s.b.Upload,className:(t="btn btn-outline-dark",h&&!S&&(t+=" pl-3"),S&&(t+=" pr-2"),t),mimeType:"video/*",onFileSelect:function(e){return w.addFiles(e,{entity:o.EntityType.Video,actionType:o.UserAction.Upload,workflowPhase:o.WorkflowPhase.Start,descriptor:a.a.mapInteractionType(o.InteractionType.FileSelect),location:o.LocationContext.TopNav})}},r.createElement("div",{className:"d-flex align-items-center w-100",ref:g},S&&r.createElement("span",{className:"position-relative"},r.createElement(i.Spinner,{animation:"border",size:"sm",className:"mr-2 ".concat(y.a.spinner)}),r.createElement("span",{className:"badge badge-danger badge-pill ".concat(y.a.totalUploading)},_)),h?r.createElement("span",{className:"invisible"}," "):r.createElement(c.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(0),i=n.n(r),o=n(33),a=n(114),s=n(276),c=n(177);function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e){var t=u(Object(s.a)(),2),n=t[0],r=t[1];if(i.a.useEffect((function(){e.onHover(r?e.rating:null)}),[r]),!e.rating.code)return i.a.createElement(i.a.Fragment,null);var o=i.a.createElement(c.a,{ref:n,className:e.getButtonClasses(e.rating,e.isActive,r),onClick:e.onClick,disabled:e.disabled},e.rating.code);return e.disabled?o:i.a.createElement(a.a,{title:e.rating.name,spanHack:!0},o)}function p(e){var t=u(i.a.useState([]),2),n=t[0],r=t[1],a=function(t){return e.ratings.filter((function(e){return e.code&&e.value<=t.value}))};function s(e){r(e?a(e):[])}var c=function(t){return n.length?!!n.find((function(e){return e.id===t.id})):!!e.selections.find((function(e){return e.id===t.id}))};return i.a.createElement("div",null,i.a.createElement(o.ButtonGroup,null,e.ratings.map((function(t){var n;return i.a.createElement(f,{key:t.id,rating:t,onClick:function(){return function(t){var n=a(t);e.onSelectRange(n)}(t)},onHover:s,isActive:c(t),disabled:e.disabled||(null===(n=e.isDisabled)||void 0===n?void 0:n.call(e,t)),getButtonClasses:e.getButtonClasses})}))))}p.defaultProps={selections:[]}},function(e,t,n){"use strict";var r=n(580);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(582);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(583);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(584);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(585);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(586);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(289);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(587);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(588);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(589);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(590);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(591);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return h.ClassroomGroupColour})),n.o(h,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return h.ClassroomStatus})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(592);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return y.ClassroomGroupColour})),n.o(y,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return y.ClassroomStatus})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType})),n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var m=n(593);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return m.ClassroomGroupColour})),n.o(m,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return m.ClassroomStatus})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var v=n(594);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return v.ClassroomGroupColour})),n.o(v,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return v.ClassroomStatus})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(595);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return g.ClassroomGroupColour})),n.o(g,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return g.ClassroomStatus})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(596);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return b.ClassroomGroupColour})),n.o(b,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return b.ClassroomStatus})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(597);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return w.ClassroomGroupColour})),n.o(w,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return w.ClassroomStatus})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(598);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return _.ClassroomGroupColour})),n.o(_,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return _.ClassroomStatus})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(599);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return S.ClassroomGroupColour})),n.o(S,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return S.ClassroomStatus})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var C=n(600);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return C.ClassroomGroupColour})),n.o(C,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return C.ClassroomStatus})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(601);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return T.ClassroomGroupColour})),n.o(T,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return T.ClassroomStatus})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(602);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return E.ClassroomGroupColour})),n.o(E,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return E.ClassroomStatus})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(603);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(O,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return O.ClassroomGroupColour})),n.o(O,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return O.ClassroomStatus})),n.o(O,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType}));var k=n(604);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return k.ClassroomGroupColour})),n.o(k,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return k.ClassroomStatus})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(605);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return P.ClassroomGroupColour})),n.o(P,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return P.ClassroomStatus})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(606);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return A.ClassroomGroupColour})),n.o(A,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return A.ClassroomStatus})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(607);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return I.ClassroomGroupColour})),n.o(I,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return I.ClassroomStatus})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}))},function(e,t,n){"use strict";var r=n(581);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(609);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(612);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(618);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(624);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(625);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(626);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(627);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(628);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(629);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(630);n.d(t,"ClassroomStatus",(function(){return p.a}));var d=n(631);n.d(t,"ClassroomGroupColour",(function(){return d.a}));var h=n(632);n.o(h,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return h.BaseNotificationsAppVariables})),n.o(h,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return h.BaseSearchAppVariables})),n.o(h,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(633);n.o(y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return y.BaseNotificationsAppVariables})),n.o(y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return y.BaseSearchAppVariables})),n.o(y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var m=n(634);n.o(m,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return m.BaseNotificationsAppVariables})),n.o(m,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return m.BaseSearchAppVariables})),n.o(m,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType}));var v=n(635);n.o(v,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return v.BaseNotificationsAppVariables})),n.o(v,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return v.BaseSearchAppVariables})),n.o(v,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(290);n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(636);n.o(b,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return b.BaseNotificationsAppVariables})),n.o(b,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return b.BaseSearchAppVariables})),n.o(b,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(637);n.o(w,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return w.BaseNotificationsAppVariables})),n.o(w,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return w.BaseSearchAppVariables})),n.o(w,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(638);n.o(_,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return _.BaseNotificationsAppVariables})),n.o(_,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return _.BaseSearchAppVariables})),n.o(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(639);n.o(S,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return S.BaseNotificationsAppVariables})),n.o(S,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return S.BaseSearchAppVariables})),n.o(S,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var C=n(640);n.o(C,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return C.BaseNotificationsAppVariables})),n.o(C,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return C.BaseSearchAppVariables})),n.o(C,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var T=n(641);n.o(T,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return T.BaseNotificationsAppVariables})),n.o(T,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return T.BaseSearchAppVariables})),n.o(T,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(291);n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(642);n.o(O,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return O.BaseNotificationsAppVariables})),n.o(O,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return O.BaseSearchAppVariables})),n.o(O,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType})),n.o(E,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return E.BaseNotificationsAppVariables})),n.o(E,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return E.BaseSearchAppVariables})),n.o(E,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var k=n(643);n.o(k,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return k.BaseNotificationsAppVariables})),n.o(k,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return k.BaseSearchAppVariables})),n.o(k,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(644);n.o(P,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return P.BaseNotificationsAppVariables})),n.o(P,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return P.BaseSearchAppVariables})),n.o(P,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(645);n.o(A,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return A.BaseNotificationsAppVariables})),n.o(A,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return A.BaseSearchAppVariables})),n.o(A,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(646);n.o(I,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return I.BaseNotificationsAppVariables})),n.o(I,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return I.BaseSearchAppVariables})),n.o(I,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var x=n(647);n.o(x,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return x.BaseNotificationsAppVariables})),n.o(x,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return x.BaseSearchAppVariables})),n.o(x,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return x.InteractionTypeId})),n.o(x,"WidgetType")&&n.d(t,"WidgetType",(function(){return x.WidgetType}));var L=n(292);n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId})),n.o(L,"WidgetType")&&n.d(t,"WidgetType",(function(){return L.WidgetType}));var R=n(648);n.d(t,"WidgetType",(function(){return R.a}));var j=n(649);n.o(j,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return j.BaseNotificationsAppVariables})),n.o(j,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return j.BaseSearchAppVariables})),n.o(j,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return j.InteractionTypeId}));var N=n(650);n.o(N,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return N.BaseNotificationsAppVariables})),n.o(N,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return N.BaseSearchAppVariables})),n.o(N,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return N.InteractionTypeId}));var D=n(651);n.o(D,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return D.BaseNotificationsAppVariables})),n.o(D,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return D.BaseSearchAppVariables})),n.o(D,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return D.InteractionTypeId}));var B=n(652);n.o(B,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return B.BaseNotificationsAppVariables})),n.o(B,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return B.BaseSearchAppVariables})),n.o(B,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return B.InteractionTypeId}));var U=n(653);n.o(U,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return U.BaseNotificationsAppVariables})),n.o(U,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return U.BaseSearchAppVariables})),n.o(U,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return U.InteractionTypeId}));var M=n(654);n.o(M,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return M.BaseNotificationsAppVariables})),n.o(M,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return M.BaseSearchAppVariables})),n.o(M,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return M.InteractionTypeId}));var V=n(655);n.o(V,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return V.BaseNotificationsAppVariables})),n.o(V,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return V.BaseSearchAppVariables})),n.o(V,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return V.InteractionTypeId}));var F=n(656);n.o(F,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return F.BaseNotificationsAppVariables})),n.o(F,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return F.BaseSearchAppVariables})),n.o(F,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return F.InteractionTypeId}));var H=n(657);n.o(H,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return H.BaseNotificationsAppVariables})),n.o(H,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return H.BaseSearchAppVariables})),n.o(H,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return H.InteractionTypeId}));var z=n(658);n.o(z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return z.BaseNotificationsAppVariables})),n.o(z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return z.BaseSearchAppVariables})),n.o(z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return z.InteractionTypeId}));var W=n(659);n.o(W,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return W.BaseNotificationsAppVariables})),n.o(W,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return W.BaseSearchAppVariables})),n.o(W,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return W.InteractionTypeId}));var q=n(660);n.o(q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return q.BaseNotificationsAppVariables})),n.o(q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return q.BaseSearchAppVariables})),n.o(q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return q.InteractionTypeId}));var G=n(661);n.o(G,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return G.BaseNotificationsAppVariables})),n.o(G,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return G.BaseSearchAppVariables})),n.o(G,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return G.InteractionTypeId}));var K=n(662);n.o(K,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return K.BaseNotificationsAppVariables})),n.o(K,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return K.BaseSearchAppVariables})),n.o(K,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return K.InteractionTypeId}));var Y=n(663);n.o(Y,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Y.BaseNotificationsAppVariables})),n.o(Y,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Y.BaseSearchAppVariables})),n.o(Y,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Y.InteractionTypeId}));var X=n(664);n.o(X,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return X.BaseNotificationsAppVariables})),n.o(X,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return X.BaseSearchAppVariables})),n.o(X,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return X.InteractionTypeId}));var Q=n(665);n.o(Q,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Q.BaseNotificationsAppVariables})),n.o(Q,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Q.BaseSearchAppVariables})),n.o(Q,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Q.InteractionTypeId}));var $=n(666);n.o($,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return $.BaseNotificationsAppVariables})),n.o($,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return $.BaseSearchAppVariables})),n.o($,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return $.InteractionTypeId})),n.o(L,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return L.BaseNotificationsAppVariables})),n.o(L,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return L.BaseSearchAppVariables})),n.o(L,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId}));var Z=n(667);n.o(Z,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return Z.BaseNotificationsAppVariables})),n.o(Z,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return Z.BaseSearchAppVariables})),n.o(Z,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return Z.InteractionTypeId}));var J=n(668);n.o(J,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return J.BaseNotificationsAppVariables})),n.o(J,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return J.BaseSearchAppVariables})),n.o(J,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return J.InteractionTypeId}));var ee=n(669);n.o(ee,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ee.BaseNotificationsAppVariables})),n.o(ee,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ee.BaseSearchAppVariables})),n.o(ee,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ee.InteractionTypeId}));var te=n(670);n.o(te,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return te.BaseNotificationsAppVariables})),n.o(te,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return te.BaseSearchAppVariables})),n.o(te,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return te.InteractionTypeId})),n.o(g,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return g.BaseNotificationsAppVariables})),n.o(g,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return g.BaseSearchAppVariables})),n.o(g,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId}));var ne=n(671);n.o(ne,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ne.BaseNotificationsAppVariables})),n.o(ne,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ne.BaseSearchAppVariables})),n.o(ne,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ne.InteractionTypeId}));var re=n(672);n.o(re,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return re.BaseNotificationsAppVariables})),n.o(re,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return re.BaseSearchAppVariables})),n.o(re,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return re.InteractionTypeId}));var ie=n(673);n.o(ie,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ie.BaseNotificationsAppVariables})),n.o(ie,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ie.BaseSearchAppVariables})),n.o(ie,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ie.InteractionTypeId}));var oe=n(674);n.o(oe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return oe.BaseNotificationsAppVariables})),n.o(oe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return oe.BaseSearchAppVariables})),n.o(oe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return oe.InteractionTypeId}));var ae=n(675);n.o(ae,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ae.BaseNotificationsAppVariables})),n.o(ae,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ae.BaseSearchAppVariables})),n.o(ae,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ae.InteractionTypeId}));var se=n(676);n.o(se,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return se.BaseNotificationsAppVariables})),n.o(se,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return se.BaseSearchAppVariables})),n.o(se,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return se.InteractionTypeId}));var ce=n(677);n.o(ce,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ce.BaseNotificationsAppVariables})),n.o(ce,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ce.BaseSearchAppVariables})),n.o(ce,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ce.InteractionTypeId}));var ue=n(678);n.o(ue,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ue.BaseNotificationsAppVariables})),n.o(ue,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ue.BaseSearchAppVariables})),n.o(ue,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ue.InteractionTypeId}));var le=n(679);n.o(le,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return le.BaseNotificationsAppVariables})),n.o(le,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return le.BaseSearchAppVariables})),n.o(le,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return le.InteractionTypeId}));var fe=n(680);n.o(fe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return fe.BaseNotificationsAppVariables})),n.o(fe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return fe.BaseSearchAppVariables})),n.o(fe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return fe.InteractionTypeId}));var pe=n(681);n.o(pe,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return pe.BaseNotificationsAppVariables})),n.o(pe,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return pe.BaseSearchAppVariables})),n.o(pe,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return pe.InteractionTypeId}));var de=n(682);n.o(de,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return de.BaseNotificationsAppVariables})),n.o(de,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return de.BaseSearchAppVariables})),n.o(de,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return de.InteractionTypeId}));var he=n(683);n.o(he,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return he.BaseNotificationsAppVariables})),n.o(he,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return he.BaseSearchAppVariables})),n.o(he,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return he.InteractionTypeId}));var ye=n(684);n.o(ye,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ye.BaseNotificationsAppVariables})),n.o(ye,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ye.BaseSearchAppVariables})),n.o(ye,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ye.InteractionTypeId}))},function(e,t,n){"use strict";var r=n(610);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(611);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(613);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(614);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(615);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(616);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(617);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.MultipleChoice=1]="MultipleChoice",e[e.ShortAnswer=2]="ShortAnswer",e[e.TrueOrFalse=3]="TrueOrFalse",e[e.Annotation=4]="Annotation",e[e.Image=5]="Image",e[e.MissingWord=6]="MissingWord"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(619);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(620);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(621);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(622);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(623);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Archived=0]="Archived",e[e.Published=1]="Published"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Pink="colour:0",e.Orange="colour:1",e.Green="colour:2",e.Blue="colour:3",e.Purple="colour:4",e.Indigo="colour:5"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(686);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}))},function(e,t){},function(e,t,n){"use strict";var r=n(688);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(689);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(690);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(691);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(692);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(693);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(694);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(695);n.o(l,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return l.BaseNotificationsAppVariables})),n.o(l,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return l.BaseSearchAppVariables})),n.o(l,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return l.ClassroomGroupColour})),n.o(l,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return l.ClassroomStatus})),n.o(l,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(696);n.o(f,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return f.BaseNotificationsAppVariables})),n.o(f,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return f.BaseSearchAppVariables})),n.o(f,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return f.ClassroomGroupColour})),n.o(f,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return f.ClassroomStatus})),n.o(f,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(697);n.o(p,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return p.BaseNotificationsAppVariables})),n.o(p,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return p.BaseSearchAppVariables})),n.o(p,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return p.ClassroomGroupColour})),n.o(p,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return p.ClassroomStatus})),n.o(p,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(698);n.o(d,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return d.BaseNotificationsAppVariables})),n.o(d,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return d.BaseSearchAppVariables})),n.o(d,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return d.ClassroomGroupColour})),n.o(d,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return d.ClassroomStatus})),n.o(d,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(699)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict"},function(e,t,n){"use strict";var r=n(701);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(702);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}))},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(704);n.o(r,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return r.BaseNotificationsAppVariables})),n.o(r,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return r.BaseSearchAppVariables})),n.o(r,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return r.ClassroomGroupColour})),n.o(r,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return r.ClassroomStatus})),n.o(r,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(705);n.o(i,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return i.BaseNotificationsAppVariables})),n.o(i,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return i.BaseSearchAppVariables})),n.o(i,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),n.o(i,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return i.ClassroomStatus})),n.o(i,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(706);n.o(o,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return o.BaseNotificationsAppVariables})),n.o(o,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return o.BaseSearchAppVariables})),n.o(o,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return o.ClassroomGroupColour})),n.o(o,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return o.ClassroomStatus})),n.o(o,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(707);n.o(a,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return a.BaseNotificationsAppVariables})),n.o(a,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return a.BaseSearchAppVariables})),n.o(a,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return a.ClassroomGroupColour})),n.o(a,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return a.ClassroomStatus})),n.o(a,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(708);n.o(s,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return s.BaseNotificationsAppVariables})),n.o(s,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return s.BaseSearchAppVariables})),n.o(s,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return s.ClassroomGroupColour})),n.o(s,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return s.ClassroomStatus})),n.o(s,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(709);n.o(c,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return c.BaseNotificationsAppVariables})),n.o(c,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return c.BaseSearchAppVariables})),n.o(c,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return c.ClassroomGroupColour})),n.o(c,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return c.ClassroomStatus})),n.o(c,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(710);n.o(u,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return u.BaseNotificationsAppVariables})),n.o(u,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return u.BaseSearchAppVariables})),n.o(u,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return u.ClassroomGroupColour})),n.o(u,"ClassroomStatus")&&n.d(t,"ClassroomStatus",(function(){return u.ClassroomStatus})),n.o(u,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){function n(e,t){for(var n in e)t[n]=e[n]}function r(e,t){var r=e.prototype;if(Object.create){var i=Object.create(t.prototype);r.__proto__=i}if(!(r instanceof t)){function o(){}o.prototype=t.prototype,n(r,o=new o),e.prototype=r=o}r.constructor!=e&&("function"!=typeof e&&console.error("unknow Class:"+e),r.constructor=e)}var i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,s=i.TEXT_NODE=3,c=i.CDATA_SECTION_NODE=4,u=i.ENTITY_REFERENCE_NODE=5,l=i.ENTITY_NODE=6,f=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,d=i.DOCUMENT_NODE=9,h=i.DOCUMENT_TYPE_NODE=10,y=i.DOCUMENT_FRAGMENT_NODE=11,m=i.NOTATION_NODE=12,v={},g={},b=(v.INDEX_SIZE_ERR=(g[1]="Index size error",1),v.DOMSTRING_SIZE_ERR=(g[2]="DOMString size error",2),v.HIERARCHY_REQUEST_ERR=(g[3]="Hierarchy request error",3)),w=(v.WRONG_DOCUMENT_ERR=(g[4]="Wrong document",4),v.INVALID_CHARACTER_ERR=(g[5]="Invalid character",5),v.NO_DATA_ALLOWED_ERR=(g[6]="No data allowed",6),v.NO_MODIFICATION_ALLOWED_ERR=(g[7]="No modification allowed",7),v.NOT_FOUND_ERR=(g[8]="Not found",8)),_=(v.NOT_SUPPORTED_ERR=(g[9]="Not supported",9),v.INUSE_ATTRIBUTE_ERR=(g[10]="Attribute in use",10));v.INVALID_STATE_ERR=(g[11]="Invalid state",11),v.SYNTAX_ERR=(g[12]="Syntax error",12),v.INVALID_MODIFICATION_ERR=(g[13]="Invalid modification",13),v.NAMESPACE_ERR=(g[14]="Invalid namespace",14),v.INVALID_ACCESS_ERR=(g[15]="Invalid access",15);function S(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,g[e]),this.message=g[e],Error.captureStackTrace&&Error.captureStackTrace(this,S);return n.code=e,t&&(this.message=this.message+": "+t),n}function C(){}function T(e,t){this._node=e,this._refresh=t,E(this)}function E(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function O(){}function k(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function P(e,t,n,r){if(r?t[k(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var i=e.ownerDocument;i&&(r&&N(i,e,r),function(e,t,n){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(i,e,n))}}function A(e,t,n){var r=k(t,n);if(!(r>=0))throw S(w,new Error(e.tagName+"@"+n));for(var i=t.length-1;r<i;)t[r]=t[++r];if(t.length=i,e){var o=e.ownerDocument;o&&(N(o,e,n),n.ownerElement=null)}}function I(e){if(this._features={},e)for(var t in e)this._features=e[t]}function x(){}function L(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function R(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(R(e,t))return!0}while(e=e.nextSibling)}function j(){}function N(e,t,n,r){e&&e._inc++,"http://www.w3.org/2000/xmlns/"==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:""]}function D(e,t,n){if(e&&e._inc){e._inc++;var r=t.childNodes;if(n)r[r.length++]=n;else{for(var i=t.firstChild,o=0;i;)r[o++]=i,i=i.nextSibling;r.length=o}}}function B(e,t){var n=t.previousSibling,r=t.nextSibling;return n?n.nextSibling=r:e.firstChild=r,r?r.previousSibling=n:e.lastChild=n,D(e.ownerDocument,e),t}function U(e,t,n){var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===y){var i=t.firstChild;if(null==i)return t;var o=t.lastChild}else i=o=t;var a=n?n.previousSibling:e.lastChild;i.previousSibling=a,o.nextSibling=n,a?a.nextSibling=i:e.firstChild=i,null==n?e.lastChild=o:n.previousSibling=o;do{i.parentNode=e}while(i!==o&&(i=i.nextSibling));return D(e.ownerDocument||e,e),t.nodeType==y&&(t.firstChild=t.lastChild=null),t}function M(){this._nsMap={}}function V(){}function F(){}function H(){}function z(){}function W(){}function q(){}function G(){}function K(){}function Y(){}function X(){}function Q(){}function $(){}function Z(e,t){var n=[],r=9==this.nodeType?this.documentElement:this,i=r.prefix,o=r.namespaceURI;if(o&&null==i&&null==(i=r.lookupPrefix(o)))var a=[{namespace:o,prefix:null}];return ee(this,n,e,t,a),n.join("")}function J(e,t,n){var r=e.prefix||"",i=e.namespaceURI;if(!r&&!i)return!1;if("xml"===r&&"http://www.w3.org/XML/1998/namespace"===i||"http://www.w3.org/2000/xmlns/"==i)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix==r)return a.namespace!=i}return!0}function ee(e,t,n,r,i){if(r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case o:i||(i=[]);i.length;var l=e.attributes,m=l.length,v=e.firstChild,g=e.tagName;n="http://www.w3.org/1999/xhtml"===e.namespaceURI||n,t.push("<",g);for(var b=0;b<m;b++){"xmlns"==(w=l.item(b)).prefix?i.push({prefix:w.localName,namespace:w.value}):"xmlns"==w.nodeName&&i.push({prefix:"",namespace:w.value})}for(b=0;b<m;b++){var w;if(J(w=l.item(b),0,i)){var _=w.prefix||"",S=w.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,C=_?" xmlns:"+_:" xmlns";t.push(C,'="',S,'"'),i.push({prefix:_,namespace:S})}if(v||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(g)){if(t.push(">"),n&&/^script$/i.test(g))for(;v;)v.data?t.push(v.data):ee(v,t,n,r,i),v=v.nextSibling;else for(;v;)ee(v,t,n,r,i),v=v.nextSibling;t.push("</",g,">")}else t.push("/>");return;case d:case y:for(v=e.firstChild;v;)ee(v,t,n,r,i),v=v.nextSibling;return;case a:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,L),'"');case s:return t.push(e.data.replace(/[<&]/g,L));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var T=e.publicId,E=e.systemId;if(t.push("<!DOCTYPE ",e.name),T)t.push(' PUBLIC "',T),E&&"."!=E&&t.push('" "',E),t.push('">');else if(E&&"."!=E)t.push(' SYSTEM "',E,'">');else{var O=e.internalSubset;O&&t.push(" [",O,"]"),t.push(">")}return;case f:return t.push("<?",e.target," ",e.data,"?>");case u:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function te(e,t,n){e[t]=n}S.prototype=Error.prototype,n(v,S),C.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],r=0;r<this.length;r++)ee(this[r],n,e,t);return n.join("")}},T.prototype.item=function(e){return E(this),this[e]},r(T,C),O.prototype={length:0,item:C.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new S(_);var n=this.getNamedItem(e.nodeName);return P(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new S(_);return t=this.getNamedItemNS(e.namespaceURI,e.localName),P(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return A(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return A(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var r=this[n];if(r.localName==t&&r.namespaceURI==e)return r}return null}},I.prototype={hasFeature:function(e,t){var n=this._features[e.toLowerCase()];return!(!n||t&&!(t in n))},createDocument:function(e,t,n){var r=new j;if(r.implementation=this,r.childNodes=new C,r.doctype=n,n&&r.appendChild(n),t){var i=r.createElementNS(e,t);r.appendChild(i)}return r},createDocumentType:function(e,t,n){var r=new q;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},x.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return U(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return B(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return function e(t,n,r){var i=new n.constructor;for(var s in n){var c=n[s];"object"!=typeof c&&c!=i[s]&&(i[s]=c)}n.childNodes&&(i.childNodes=new C);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new O,f=u.length;l._ownerElement=i;for(var p=0;p<f;p++)i.setAttributeNode(e(t,u.item(p),!0));break;case a:r=!0}if(r)for(var d=n.firstChild;d;)i.appendChild(e(t,d,r)),d=d.nextSibling;return i}(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==s&&e.nodeType==s?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var r in n)if(n[r]==e)return r;t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==a?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},n(i,x),n(i,x.prototype),j.prototype={nodeName:"#document",nodeType:d,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==y){for(var n=e.firstChild;n;){var r=n.nextSibling;this.insertBefore(n,t),n=r}return e}return null==this.documentElement&&e.nodeType==o&&(this.documentElement=e),U(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),B(this,e)},importNode:function(e,t){return function e(t,n,r){var i;switch(n.nodeType){case o:(i=n.cloneNode(!1)).ownerDocument=t;case y:break;case a:r=!0}i||(i=n.cloneNode(!1));if(i.ownerDocument=t,i.parentNode=null,r)for(var s=n.firstChild;s;)i.appendChild(e(t,s,r)),s=s.nextSibling;return i}(this,e,t)},getElementById:function(e){var t=null;return R(this.documentElement,(function(n){if(n.nodeType==o&&n.getAttribute("id")==e)return t=n,!0})),t},createElement:function(e){var t=new M;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new C,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new C,e},createTextNode:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new z;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new Q;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new V;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Y;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new O;return n.childNodes=new C,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,i._ownerElement=n,n},createAttributeNS:function(e,t){var n=new V,r=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==r.length?(n.prefix=r[0],n.localName=r[1]):n.localName=t,n}},r(j,x),M.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===y?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var r=e.lastChild;n.removeChild(t);r=e.lastChild}return r=e.lastChild,t.parentNode=e,t.previousSibling=r,t.nextSibling=null,r?r.nextSibling=t:e.firstChild=t,e.lastChild=t,D(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var r=this.ownerDocument.createAttributeNS(e,t);r.value=r.nodeValue=""+n,this.setAttributeNode(r)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new T(this,(function(t){var n=[];return R(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new T(this,(function(n){var r=[];return R(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},j.prototype.getElementsByTagName=M.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,x),V.prototype.nodeType=a,r(V,x),F.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(g[b])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},r(F,x),H.prototype={nodeName:"#text",nodeType:s,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var r=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(r,this.nextSibling),r}},r(H,F),z.prototype={nodeName:"#comment",nodeType:p},r(z,F),W.prototype={nodeName:"#cdata-section",nodeType:c},r(W,F),q.prototype.nodeType=h,r(q,x),G.prototype.nodeType=m,r(G,x),K.prototype.nodeType=l,r(K,x),Y.prototype.nodeType=u,r(Y,x),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,x),Q.prototype.nodeType=f,r(Q,x),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},x.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(T.prototype,"length",{get:function(){return E(this),this.$$length}}),Object.defineProperty(x.prototype,"textContent",{get:function(){return function e(t){switch(t.nodeType){case o:case y:var n=[];for(t=t.firstChild;t;)7!==t.nodeType&&8!==t.nodeType&&n.push(e(t)),t=t.nextSibling;return n.join("");default:return t.nodeValue}}(this)},set:function(e){switch(this.nodeType){case o:case y:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),te=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DOMImplementation=I,t.XMLSerializer=$},function(e,t,n){"use strict";e.exports={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21}},function(e,t){e.exports=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])}},function(e,t,n){(function(t){var n=/^\[object .+?Constructor\]$/,r="object"==typeof t&&t&&t.Object===Object&&t,i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();var a,s=Array.prototype,c=Function.prototype,u=Object.prototype,l=o["__core-js_shared__"],f=(a=/[^.]+$/.exec(l&&l.keys&&l.keys.IE_PROTO||""))?"Symbol(src)_1."+a:"",p=c.toString,d=u.hasOwnProperty,h=u.toString,y=RegExp("^"+p.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m=s.splice,v=E(o,"Map"),g=E(Object,"create");function b(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function w(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function S(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!=n&&r!=r)return i;return-1}function C(e){return!(!k(e)||(t=e,f&&f in t))&&(function(e){var t=k(e)?h.call(e):"";return"[object Function]"==t||"[object GeneratorFunction]"==t}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?y:n).test(function(e){if(null!=e){try{return p.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e));var t}function T(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function E(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return C(n)?n:void 0}function O(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(O.Cache||_),n}function k(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}b.prototype.clear=function(){this.__data__=g?g(null):{}},b.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},b.prototype.get=function(e){var t=this.__data__;if(g){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return d.call(t,e)?t[e]:void 0},b.prototype.has=function(e){var t=this.__data__;return g?void 0!==t[e]:d.call(t,e)},b.prototype.set=function(e,t){return this.__data__[e]=g&&void 0===t?"__lodash_hash_undefined__":t,this},w.prototype.clear=function(){this.__data__=[]},w.prototype.delete=function(e){var t=this.__data__,n=S(t,e);return!(n<0)&&(n==t.length-1?t.pop():m.call(t,n,1),!0)},w.prototype.get=function(e){var t=this.__data__,n=S(t,e);return n<0?void 0:t[n][1]},w.prototype.has=function(e){return S(this.__data__,e)>-1},w.prototype.set=function(e,t){var n=this.__data__,r=S(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},_.prototype.clear=function(){this.__data__={hash:new b,map:new(v||w),string:new b}},_.prototype.delete=function(e){return T(this,e).delete(e)},_.prototype.get=function(e){return T(this,e).get(e)},_.prototype.has=function(e){return T(this,e).has(e)},_.prototype.set=function(e,t){return T(this,e).set(e,t),this},O.Cache=_,e.exports=O}).call(this,n(116))},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,i=void 0!==e&&e.Math===Math?e:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),o="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)};var a=["top","right","bottom","left","width","height","size","weight"],s="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function s(){o(a)}function c(){var e=Date.now();if(n){if(e-i<2)return;r=!0}else n=!0,r=!1,setTimeout(s,t);i=e}return c}(this.refresh.bind(this),20)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),s?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t;a.some((function(e){return!!~n.indexOf(e)}))&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),u=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},l=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||i},f=v(0,0,0,0);function p(e){return parseFloat(e)||0}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){return t+p(e["border-"+n+"-width"])}),0)}function h(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return f;var r=l(e).getComputedStyle(e),i=function(e){for(var t={},n=0,r=["top","right","bottom","left"];n<r.length;n++){var i=r[n],o=e["padding-"+i];t[i]=p(o)}return t}(r),o=i.left+i.right,a=i.top+i.bottom,s=p(r.width),c=p(r.height);if("border-box"===r.boxSizing&&(Math.round(s+o)!==t&&(s-=d(r,"left","right")+o),Math.round(c+a)!==n&&(c-=d(r,"top","bottom")+a)),!function(e){return e===l(e).document.documentElement}(e)){var u=Math.round(s+o)-t,h=Math.round(c+a)-n;1!==Math.abs(u)&&(s-=u),1!==Math.abs(h)&&(c-=h)}return v(i.left,i.top,s,c)}var y="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof l(e).SVGGraphicsElement}:function(e){return e instanceof l(e).SVGElement&&"function"==typeof e.getBBox};function m(e){return r?y(e)?function(e){var t=e.getBBox();return v(0,0,t.width,t.height)}(e):h(e):f}function v(e,t,n,r){return{x:e,y:t,width:n,height:r}}var g=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=v(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=m(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),b=function(e,t){var n,r,i,o,a,s,c,l=(r=(n=t).x,i=n.y,o=n.width,a=n.height,s="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,c=Object.create(s.prototype),u(c,{x:r,y:i,width:o,height:a,top:i,right:r+o,bottom:a+i,left:r}),c);u(this,{target:e,contentRect:l})},w=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new g(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof l(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new b(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),_="undefined"!=typeof WeakMap?new WeakMap:new n,S=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=c.getInstance(),r=new w(t,n,this);_.set(this,r)};["observe","unobserve","disconnect"].forEach((function(e){S.prototype[e]=function(){var t;return(t=_.get(this))[e].apply(t,arguments)}}));var C=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=C}).call(this,n(116))},function(e,t,n){"use strict";n.r(t),n.d(t,"ErrorView",(function(){return d}));var r=n(0),i=n(8),o=n(234),a=n(268),s=n(5),c=n(7),u=n(60),l=n(206);function f(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e){var t,n,p,d,h=e.error;Object(a.a)((null==h?void 0:h.heading)||i.a.getPhrase("default.error","defaultPageTitle"));var y=f(r.useState(o.a.getRandomInt(21)+1),1)[0],m=u.a.ErrorViews.SMALL.replace("{number}",y.toString());return h?r.createElement(l.a,null,r.createElement(l.a.Image,{src:m}),r.createElement(l.a.Heading,null,h.heading),!!h.description&&r.createElement(l.a.Info,{injectHtml:h.injectDescriptionHtml},h.description),!1!==h.cta&&r.createElement(l.a.Cta,{text:null!==(n=null===(t=h.cta)||void 0===t?void 0:t.text)&&void 0!==n?n:i.a.getPhrase("default.error","discoverVideos"),className:"info-link ".concat(h.description?"mt-n2":""),appLink:null!==(d=null===(p=h.cta)||void 0===p?void 0:p.appLink)&&void 0!==d?d:{application:s.a.DASHBOARD,action:c.a.Dashboard.HOME}})):r.createElement(r.Fragment,null)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(115),i=n(8);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),o.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(this.lang,"heading"),text:i.a.getPhrase(this.lang,"body"),buttons:[{text:i.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:i.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a)},,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,i=n(225);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(l,e);var t,n,i,o=u(l);function l(){return a(this,l),o.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&s(t.prototype,n),i&&s(t,i),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.BaseCollectionIdentifier);n.d(t,"a",(function(){return p}))},function(e,t,n){"use strict";var r=n(110);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,o;return t=e,(n=[{key:"name",get:function(){return r.a.SEARCH}}])&&i(t.prototype,n),o&&i(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i;return t=e,(n=[{key:"name",get:function(){return r.a.NOTIFICATIONS}}])&&a(t.prototype,n),i&&a(t,i),Object.defineProperty(t,"prototype",{writable:!1}),e}();n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";var r=n(15);function i(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var o=[r.a.POST,r.a.PUT];function a(e){var t=e.resource,n=e.type,r=e.headers,a=e.success,s=e.error,c=e.always,u={url:t,method:n};o.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),r&&(u.headers=r),$.ajax(u).done((function(e,t,n){a&&a(e,i(n))})).fail((function(e){s&&s(i(e))})).always((function(){c&&c()}))}n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";var r=n(75);function i(e,t){return e===t}function o(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=null,r=null;return function(){return o(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function s(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function c(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),c=s(r),u=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return l.resultFunc=a,l.dependencies=c,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var u=c(a);var l=n(255),f=n(66),p=n(88),d=n(159),h=n(104),y=n(0);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return w})),n.d(t,"e",(function(){return _})),n.d(t,"d",(function(){return S})),n.d(t,"b",(function(){return C})),n.d(t,"f",(function(){return T})),n.d(t,"h",(function(){return E})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return k})),n.d(t,"c",(function(){return P}));var v=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},g=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode,this.hasCompleted=t.hasCompleted}var t,n,r;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===h.a.None||this.isExpired}},{key:"isExpired",get:function(){return l.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===h.a.Fetching}},{key:"hasError",get:function(){return this.status===h.a.Error}}])&&m(t.prototype,n),r&&m(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function b(e,t,n){if(!e||!t)return w();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new g({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function w(){return new g({status:h.a.None})}function _(e,t){return b(t,e.flightData.resources[t],e.flightData.entities)}function S(e,t){return function(){C(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function T(e,t){var n,r,i,o,a=_(e.getState(),null==t?void 0:t.key);if(t&&a.shouldFetch)C(e.dispatch,t);else if(a.isFetching)var s=!1,c=e.subscribe((function(){c(),s||(s=!0,T(e,t))}));else a.hasError?(null===(n=t.error)||void 0===n||n.call(t,{status:a.statusCode,getResponseHeader:null}),null===(r=t.always)||void 0===r||r.call(t)):(null===(i=t.success)||void 0===i||i.call(t,a.data),null===(o=t.always)||void 0===o||o.call(t))}function E(e){var t=Object(r.useDispatch)();if(e)return S(t,e)}function O(e,t){var n=Object(y.useMemo)((function(){return e&&(null==t?void 0:t.optimize)?function(e){return c(a,(function(e,t){var n=["response","request"];return f.a.isEqual(f.a.omit(e,n),f.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n=t.flightData.resources[e];return(null==n?void 0:n.entityIds)?n.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return b(e,t,n)}))}(e):function(e){return u((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return b(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function k(e,t){var n=Object(r.useDispatch)(),i=O(e&&e.key,t),o=S(n,e);return e&&i.shouldFetch&&o(),i}function P(e,t){return v(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,r){var i=t.success,o=t.error;t.success=function(e){null==i||i(e),n(e)},t.error=function(e){null==o||o(e),r(e)},T(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(409);function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(u,e);var t,n,r,c=s(u);function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return o(this,u),c.call(this,{collectionPrefix:"playlist:videos",id:e,cursor:t})}return t=u,n&&i(t.prototype,n),r&&i(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(225).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=h},function(e,t,n){e.exports=n(798).default},function(e,t){e.exports=y},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.unreadCount:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.unreadCount:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.unreadCount:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.heading:o,t))+"</h4>\r\n"},3:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return"<p>"+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.description:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+s(a(null!=(o=null!=t?t.options:t)?o.imageClass:o,t))+'"/>\r\n'+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.heading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.description:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.actionText:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.actionText:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+" "+s(a(null!=(o=null!=t?t.options:t)?o.iconClass:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.icon:o,t))?o:"")+'</div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="clamp-2 pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.content:o,t))+"</div>\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showActionText:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.notificationTime:o,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:i}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.hasNotifications:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.notificationsContainer:o,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t,n){"use strict";var r=n(570);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(758);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(574);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(575);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(576)},function(e,t,n){e.exports={radioFilter:"vo-iA"}},function(e,t){e.exports=function(e,t){var n,r=null;try{n=JSON.parse(e,t)}catch(e){r=e}return[r,n]}},function(e,t,n){var r=n(349),i=n(813);function o(t,n,a){return i()?(e.exports=o=Reflect.construct,e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r=n(349);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){function r(e){this.options=e||{locator:{}}}function i(){this.cdata=!1}function o(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function a(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function s(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function c(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}r.prototype.parseFromString=function(e,t){var n=this.options,r=new u,o=n.domBuilder||new i,s=n.errorHandler,c=n.locator,l=n.xmlns||{},f={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};return c&&o.setDocumentLocator(c),r.errorHandler=function(e,t,n){if(!e){if(t instanceof i)return t;e=t}var r={},o=e instanceof Function;function s(t){var i=e[t];!i&&o&&(i=2==e.length?function(n){e(t,n)}:e),r[t]=i&&function(e){i("[xmldom "+t+"]\t"+e+a(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),r}(s,o,c),r.domBuilder=n.domBuilder||o,/\/x?html?$/.test(t)&&(f.nbsp=" ",f.copy="©",l[""]="http://www.w3.org/1999/xhtml"),l.xml=l.xml||"http://www.w3.org/XML/1998/namespace",e?r.parse(e,l,f):r.errorHandler.error("invalid doc source"),o.doc},i.prototype={startDocument:function(){this.doc=(new l).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,r){var i=this.doc,a=i.createElementNS(e,n||t),s=r.length;c(this,a),this.currentElement=a,this.locator&&o(this.locator,a);for(var u=0;u<s;u++){e=r.getURI(u);var l=r.getValue(u),f=(n=r.getQName(u),i.createAttributeNS(e,n));this.locator&&o(r.getLocator(u),f),f.value=f.nodeValue=l,a.setAttributeNode(f)}},endElement:function(e,t,n){var r=this.currentElement;r.tagName;this.currentElement=r.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&o(this.locator,n),c(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=s.apply(this,arguments)){if(this.cdata)var r=this.doc.createCDATASection(e);else r=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(r):/^\s*$/.test(e)&&this.doc.appendChild(r),this.locator&&o(this.locator,r)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=s.apply(this,arguments);var r=this.doc.createComment(e);this.locator&&o(this.locator,r),c(this,r)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var r=this.doc.implementation;if(r&&r.createDocumentType){var i=r.createDocumentType(e,t,n);this.locator&&o(this.locator,i),c(this,i)}},warning:function(e){console.warn("[xmldom warning]\t"+e,a(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,a(this.locator))},fatalError:function(e){throw console.error("[xmldom fatalError]\t"+e,a(this.locator)),e}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){i.prototype[e]=function(){return null}}));var u=n(818).XMLReader,l=t.DOMImplementation=n(723).DOMImplementation;t.XMLSerializer=n(723).XMLSerializer,t.DOMParser=r},function(e,t){var n=Math.pow(2,32);e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},i=12;0===r.version?(r.earliestPresentationTime=t.getUint32(i),r.firstOffset=t.getUint32(i+4),i+=8):(r.earliestPresentationTime=t.getUint32(i)*n+t.getUint32(i+4),r.firstOffset=t.getUint32(i+8)*n+t.getUint32(i+12),i+=16),i+=2;var o=t.getUint16(i);for(i+=2;o>0;i+=12,o--)r.references.push({referenceType:(128&e[i])>>>7,referencedSize:2147483647&t.getUint32(i),subsegmentDuration:t.getUint32(i+4),startsWithSap:!!(128&e[i+8]),sapType:(112&e[i+8])>>>4,sapDeltaTime:268435455&t.getUint32(i+8)});return r}},function(e,t,n){"use strict";var r=n(724),i=n(819).handleRollover,o={};o.ts=n(821),o.aac=n(822);var a=n(201).ONE_SECOND_IN_TS,s=function(e,t,n){for(var r,i,a,s,c=0,u=188,l=!1;u<=e.byteLength;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c++,u++;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c+=188,u+=188}for(c=(u=e.byteLength)-188,l=!1;c>=0;)if(71!==e[c]||71!==e[u]&&u!==e.byteLength)c--,u--;else{switch(r=e.subarray(c,u),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"audio"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="audio",n.audio.push(s),l=!0)}if(l)break;c-=188,u-=188}},c=function(e,t,n){for(var r,i,a,s,c,u,l,f=0,p=188,d=!1,h={data:[],size:0};p<e.byteLength;)if(71!==e[f]||71!==e[p])f++,p++;else{switch(r=e.subarray(f,p),o.ts.parseType(r,t.pid)){case"pes":if(i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&(a&&!d&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0),!n.firstKeyFrame)){if(a&&0!==h.size){for(c=new Uint8Array(h.size),u=0;h.data.length;)l=h.data.shift(),c.set(l,u),u+=l.byteLength;if(o.ts.videoPacketContainsKeyFrame(c)){var y=o.ts.parsePesTime(c);y?(n.firstKeyFrame=y,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}h.size=0}h.data.push(r),h.size+=r.byteLength}}if(d&&n.firstKeyFrame)break;f+=188,p+=188}for(f=(p=e.byteLength)-188,d=!1;f>=0;)if(71!==e[f]||71!==e[p])f--,p--;else{switch(r=e.subarray(f,p),o.ts.parseType(r,t.pid)){case"pes":i=o.ts.parsePesType(r,t.table),a=o.ts.parsePayloadUnitStartIndicator(r),"video"===i&&a&&(s=o.ts.parsePesTime(r))&&(s.type="video",n.video.push(s),d=!0)}if(d)break;f-=188,p-=188}},u=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,r=0,i=188;i<e.byteLength;)if(71!==e[r]||71!==e[i])r++,i++;else{switch(n=e.subarray(r,i),o.ts.parseType(n,t.pid)){case"pat":t.pid||(t.pid=o.ts.parsePat(n));break;case"pmt":t.table||(t.table=o.ts.parsePmt(n))}if(t.pid&&t.table)return;r+=188,i+=188}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case r.H264_STREAM_TYPE:n.video=[],c(e,t,n),0===n.video.length&&delete n.video;break;case r.ADTS_STREAM_TYPE:n.audio=[],s(e,t,n),0===n.audio.length&&delete n.audio}}return n};e.exports={inspect:function(e,t){var n;return(n=o.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,r=0,i=null,s=null,c=0,u=0;e.length-u>=3;){switch(o.aac.parseType(e,u)){case"timed-metadata":if(e.length-u<10){n=!0;break}if((c=o.aac.parseId3TagSize(e,u))>e.length){n=!0;break}null===s&&(t=e.subarray(u,u+c),s=o.aac.parseAacTimestamp(t)),u+=c;break;case"audio":if(e.length-u<7){n=!0;break}if((c=o.aac.parseAdtsSize(e,u))>e.length){n=!0;break}null===i&&(t=e.subarray(u,u+c),i=o.aac.parseSampleRate(t)),r++,u+=c;break;default:u++}if(n)return null}if(null===i||null===s)return null;var l=a/i;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*r*l,pts:s+1024*r*l}]}}(e):u(e))&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;void 0===n&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=i(e.dts,n),e.pts=i(e.pts,n),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a}))}if(e.video&&e.video.length){var r=t;if(void 0===r&&(r=e.video[0].dts),e.video.forEach((function(e){e.dts=i(e.dts,r),e.pts=i(e.pts,r),e.dtsTime=e.dts/a,e.ptsTime=e.pts/a})),e.firstKeyFrame){var o=e.firstKeyFrame;o.dts=i(o.dts,r),o.pts=i(o.pts,r),o.dtsTime=o.dts/a,o.ptsTime=o.dts/a}}}(n,t),n):null},parseAudioPes_:s}},function(e){e.exports=JSON.parse('{"a":"0.0.26"}')},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var i,o,a,s=t||[0],c=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=1)o=(a=i+c)>>>2,s.length<=o&&s.push(0),s[o]|=e[i]<<8*(u+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,i){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var i,o,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=2){if(o=parseInt(e.substr(i,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(a=(s=(i>>>1)+u)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(l+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,i)};case"TEXT":return function(e,t,n){return function(e,t,n,r,i){var o,a,s,c,u,l,f,p,d=0,h=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===i?3:0,s=0;s<e.length;s+=1)for(a=[],128>(o=e.charCodeAt(s))?a.push(o):2048>o?(a.push(192|o>>>6),a.push(128|63&o)):55296>o||57344<=o?a.push(224|o>>>12,128|o>>>6&63,128|63&o):(s+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(s)),a.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),c=0;c<a.length;c+=1){for(u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=a[c]<<8*(f+i*(l%4)),d+=1}else for(f=-1===i?2:0,p="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===p&&(o=(c=255&o)<<8|o>>>8),u=(l=d+y)>>>2;h.length<=u;)h.push(0);h[u]|=o<<8*(f+i*(l%4)),d+=2}return{value:h,binLen:8*d+r}}(e,r,t,n,i)};case"B64":return function(e,n,r){return function(e,n,r,i){var o,a,s,c,u,l,f=0,p=n||[0],d=(r=r||0)>>>3,h=-1===i?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){for(c=e.substr(o,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(u=(l=f+d)>>>2;p.length<=u;)p.push(0);p[u]|=(s>>>16-8*a&255)<<8*(h+i*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,i)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var i,o,a,s,c=t||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+u)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(l+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,i)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,i){return n(new Uint8Array(e),t,r,i)}(e,t,r,i)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e,n,r,i){switch(e){case"HEX":return function(e){return function(e,t,n,r){var i,o,a="",s=t/8,c=-1===n?3:0;for(i=0;i<s;i+=1)o=e[i>>>2]>>>8*(c+n*(i%4)),a+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return r.outputUpper?a.toUpperCase():a}(e,n,r,i)};case"B64":return function(e){return function(e,n,r,i){var o,a,s,c,u,l="",f=n/8,p=-1===r?3:0;for(o=0;o<f;o+=3)for(c=o+1<f?e[o+1>>>2]:0,u=o+2<f?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(p+r*(o%4))&255)<<16|(c>>>8*(p+r*((o+1)%4))&255)<<8|u>>>8*(p+r*((o+2)%4))&255,a=0;a<4;a+=1)l+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return l}(e,n,r,i)};case"BYTES":return function(e){return function(e,t,n){var r,i,o="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)i=e[r>>>2]>>>8*(s+n*(r%4))&255,o+=String.fromCharCode(i);return o}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=new ArrayBuffer(i),a=new Uint8Array(o),s=-1===n?3:0;for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return o}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,i=t/8,o=-1===n?3:0,a=new Uint8Array(i);for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(o+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function u(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16))<<16|65535&o}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,i,o,f,p,d,h,y=[];for(n=t[0],r=t[1],i=t[2],o=t[3],f=t[4],d=0;d<80;d+=1)y[d]=d<16?e[d]:a(y[d-3]^y[d-8]^y[d-14]^y[d-16],1),p=d<20?l(a(n,5),(h=r)&i^~h&o,f,1518500249,y[d]):d<40?l(a(n,5),s(r,i,o),f,1859775393,y[d]):d<60?l(a(n,5),c(r,i,o),f,2400959708,y[d]):l(a(n,5),s(r,i,o),f,3395469782,y[d]),f=o,o=i,i=a(r,30),r=n,n=p;return t[0]=u(n,t[0]),t[1]=u(r,t[1]),t[2]=u(i,t[2]),t[3]=u(o,t[3]),t[4]=u(f,t[4]),t}function d(e,t,n,r){for(var i,o=15+(t+65>>>9<<4),a=t+n;e.length<=o;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[o]=4294967295&a,e[o-1]=a/4294967296|0,i=0;i<e.length;i+=16)r=p(e.slice(i,i+16),r);return r}return function(t){function n(e,n,i){var o=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=i||{};return(o=t.call(this,e,n,i)||this).t=!0,o.i=o.o,o.u=-1,o.s=r(o.h,o.v,o.u),o.A=p,o.p=function(e){return e.slice()},o.l=f,o.R=d,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,a.hmacKey&&o.B(function(e,t,n,i){var o="hmacKey must include a value and format";if(!t)throw new Error(o);if(void 0===t.value||!t.format)throw new Error(o);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,o.u)),o}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,i=this.s(e,this.Y,this.I),o=i.binLen,a=i.value,s=o>>>5;for(t=0;t<s;t+=r)n+this.T<=o&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=o%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=o(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=i(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return c(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var i=r(t,(n||{}).encoding||"UTF8",this.u);this.B(i(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=o(t);return i(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.44"}')},function(e,t){e.exports=m},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>\r\n<div id="print-region"></div>'},useData:!0})},function(e,t,n){"use strict";n.r(t),n.d(t,"EmbedErrorView",(function(){return c}));var r=n(0),i=n.n(r),o=n(235),a=n(203),s=n.n(a);function c(e){var t=e.error;return i.a.createElement("div",{className:"text-white ".concat(s.a.embedError)},i.a.createElement("div",{className:s.a.logo},i.a.createElement(o.b,null)),i.a.createElement("div",{className:"".concat(s.a.content," d-flex flex-column align-items-center")},i.a.createElement("div",{className:"".concat(s.a.imgContainer," mb-3")},i.a.createElement("img",{src:t.imageUrl,className:s.a.img,role:"presentation",alt:""})),i.a.createElement("h1",{className:"".concat(s.a.heading," font-weight-500 mb-0")},t.heading),!!t.description&&i.a.createElement("p",{className:"mb-0"},t.description)))}},function(e,t,n){var r=n(128);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n(176),i=n(24),o=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,o;if(Object(i.h)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(c=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var s=c+1;n=String.fromCharCode.apply(null,a.slice(0,s)),o=a.byteLength>s?a.slice(s).buffer:null}else{var c,u=t;if(-1===(c=u.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");s=c+1;n=u.substring(0,s),o=u.length>s?u.substring(s):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[o,f]},t}()}).call(this,n(415).Buffer)},function(e,t,n){e.exports={notificationsView:"_3UtcL"}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){"use strict";var r=n(2);n(865);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var i=u(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,r,i=s(c);function c(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=i.call(this,e,t)).update(),n}return t=c,(n=[{key:"update",value:function(){this.options_.isFavourited?this.addClass("cv-favourited"):this.removeClass("cv-favourited")}},{key:"handleClick",value:function(){if(this.options_.isFavourited=!this.options_.isFavourited,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-favourite-button"}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(r.a.getComponent("Button"));function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}l.prototype.controlText_="Favourite";var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(o,e);var t,n,r,i=y(o);function o(){return p(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setFavourite",value:function(e,t){var n=this;e!==this.isFavourite&&(this.isFavourite=e,this.onClickFavourite=t,this.player.ready((function(){n.renderFavouriteButton()})))}},{key:"renderFavouriteButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new l(this.player,{isFavourited:this.isFavourite,clickHandler:this.onClickFavourite}),this.player.addChild(this.button))}}])&&d(t.prototype,n),r&&d(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("favouritePlugin",g)},function(e,t,n){"use strict";var r=n(2),i=n(134);n(867);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var i=l(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(u,e);var t,n,r,o=c(u);function u(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(n=o.call(this,e,t)).update(),n}return t=u,(n=[{key:"update",value:function(){this.options_.activityStatus===i.a.Complete?this.addClass("cv-activity-completed"):this.removeClass("cv-activity-completed")}},{key:"handleClick",value:function(){if(this.options_.activityStatus=this.options_.activityStatus===i.a.Complete?i.a.Incomplete:i.a.Complete,this.update(),this.options_.clickHandler){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.options_.clickHandler.call(this,t)}}},{key:"buildCSSClass",value:function(){return"cv-activity-status-button"}}])&&a(t.prototype,n),r&&a(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.a.getComponent("Button"));function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}f.prototype.controlText_="ActivityStatus";var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(o,e);var t,n,r,i=m(o);function o(){return d(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"setActivityStatus",value:function(e,t){var n=this;e!==this.activityStatus&&(this.activityStatus=e,this.onToggleStatus=t,this.player.ready((function(){n.renderActivityStatusButton()})))}},{key:"renderActivityStatusButton",value:function(){this.player.isDisposed()||(this.button&&this.player.removeChild(this.button),this.button=new f(this.player,{activityStatus:this.activityStatus,clickHandler:this.onToggleStatus}),this.player.addChild(this.button))}}])&&h(t.prototype,n),r&&h(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.getPlugin("plugin"));r.a.registerPlugin("activityStatusPlugin",b)},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function p(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&d())}function d(){if(!l){var e=s(p);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function y(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=y,i.addListener=y,i.once=y,i.off=y,i.removeListener=y,i.removeAllListeners=y,i.emit=y,i.prependListener=y,i.prependOnceListener=y,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},,function(e,t){function n(t){return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(799));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function s(e){return e.replace(/"/g,""")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],u=0;u<n.length;u++){var l=n[u];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,d=f.formattedHref,h=f.tagName,y=f.className,m=f.target,v=f.attributes,g="<"+h+' href="'+s(d)+'"';y&&(g+=' class="'+s(y)+'"'),m&&(g+=' target="'+s(m)+'"'),v&&(g+=" "+c(v)),g+=">"+a(p)+"</"+h+">",r.push(g)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return u(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return u(this,e)})}t.default=u},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(286),i=s(n(800)),o=s(n(801)),a=s(n(802));function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var c=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||t&&o.type!==t||r.push(o.toObject())}return r},t.inherits=r.inherits,t.options=i,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function o(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=i,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var o=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(o=a.hasOwnProperty(n.type)?a[n.type]:i[e])?o(t,n.type):o}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(452),i=n(346),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v"," "," ",""],l=[],f=function(e){return new r.CharacterState(e)},p=f(),d=f(i.NUM),h=f(i.DOMAIN),y=f(),m=f(i.WS);p.on("@",f(i.AT)).on(".",f(i.DOT)).on("+",f(i.PLUS)).on("#",f(i.POUND)).on("?",f(i.QUERY)).on("/",f(i.SLASH)).on("_",f(i.UNDERSCORE)).on(":",f(i.COLON)).on("{",f(i.OPENBRACE)).on("[",f(i.OPENBRACKET)).on("<",f(i.OPENANGLEBRACKET)).on("(",f(i.OPENPAREN)).on("}",f(i.CLOSEBRACE)).on("]",f(i.CLOSEBRACKET)).on(">",f(i.CLOSEANGLEBRACKET)).on(")",f(i.CLOSEPAREN)).on("&",f(i.AMPERSAND)).on([",",";","!",'"',"'"],f(i.PUNCTUATION)),p.on("\n",f(i.NL)).on(u,m),m.on(u,m);for(var v=0;v<a.length;v++){var g=(0,r.stateify)(a[v],p,i.TLD,i.DOMAIN);l.push.apply(l,g)}var b=(0,r.stateify)("file",p,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("ftp",p,i.DOMAIN,i.DOMAIN),_=(0,r.stateify)("http",p,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("mailto",p,i.DOMAIN,i.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,_),l.push.apply(l,S);var C=b.pop(),T=w.pop(),E=_.pop(),O=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);T.on("s",k).on(":",P),E.on("s",k).on(":",P),l.push(k),C.on(":",P),k.on(":",P),O.on(":",A);var I=(0,r.stateify)("localhost",p,i.LOCALHOST,i.DOMAIN);l.push.apply(l,I),p.on(s,d),d.on("-",y).on(s,d).on(c,h),h.on("-",y).on(c,h);for(var x=0;x<l.length;x++)l[x].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=p,a=null,s=0,c=null,u=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(u=0,c=o):u>=0&&u++,s++,i++;if(!(u<0)){i-=u,s-=u;var l=c.emit();r.push(new l(e.substr(i-s,s)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(452),i=n(803),o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(i),a=n(346);var s=function(e){return new r.TokenState(e)},c=s(),u=s(),l=s(),f=s(),p=s(),d=s(),h=s(),y=s(i.URL),m=s(),v=s(i.URL),g=s(i.URL),b=s(),w=s(),_=s(),S=s(),C=s(),T=s(i.URL),E=s(i.URL),O=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),x=s(),L=s(),R=s(),j=s(i.EMAIL),N=s(),D=s(i.EMAIL),B=s(i.MAILTOEMAIL),U=s(),M=s(),V=s(),F=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),c.on(a.TLD,d).on(a.DOMAIN,d).on(a.LOCALHOST,y).on(a.NUM,d),p.on(a.TLD,g).on(a.DOMAIN,g).on(a.NUM,g).on(a.LOCALHOST,g),d.on(a.DOT,h),L.on(a.DOT,R),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),R.on(a.TLD,j).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,h),j.on(a.DOT,R),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),j.on(a.COLON,N),N.on(a.NUM,D);var z=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],W=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];g.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,C),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),C.on(a.CLOSEPAREN,g),T.on(a.CLOSEBRACE,g),E.on(a.CLOSEBRACKET,g),O.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),x.on(a.CLOSEPAREN,g),w.on(z,T),_.on(z,E),S.on(z,O),C.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),C.on(W,x),T.on(z,T),E.on(z,E),O.on(z,O),k.on(z,k),T.on(W,T),E.on(W,E),O.on(W,O),k.on(W,k),P.on(z,T),A.on(z,E),I.on(z,O),x.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),x.on(W,x),g.on(z,g),b.on(z,g),g.on(W,b),b.on(W,b),l.on(a.TLD,B).on(a.DOMAIN,B).on(a.NUM,B).on(a.LOCALHOST,B),B.on(z,B).on(W,U),U.on(z,B).on(W,U);var q=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(q,M).on(a.AT,V),y.on(q,M).on(a.AT,V),h.on(q,M),M.on(q,M).on(a.AT,V).on(a.DOT,F),F.on(q,M),V.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,j);t.State=r.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,r=[],o=[];n<t;){for(var a=c,s=null,u=null,l=0,f=null,p=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(u=s||a.next(e[n]));)s=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var d=n-l;d<n;d++)o.push(e[d]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=p,l-=p;var h=f.emit();r.push(new h(e.slice(n-l,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},t.start=c},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(453),i=n(286),o=n(346);function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,r.createTokenClass)();s.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var c=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),f=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,i=[],s=0;r[s]instanceof o.PROTOCOL;)t=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=u,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){},function(e,t){},function(e,t,n){var r=n(794).default,i=n(25);e.exports=function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t){e.exports=function(e){if(!e)return!1;var t=n.call(e);return"[object Function]"===t||"function"==typeof e&&"[object RegExp]"!==t||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var n=Object.prototype.toString},function(e,t,n){var r=n(318),i=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();function o(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function a(e){function t(e,t,n,r){return 3600*(0|e)+60*(0|t)+(0|n)+(0|r)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function s(){this.values=i(null)}function c(e,t,n,r){var i=r?e.split(r):[e];for(var o in i)if("string"==typeof i[o]){var a=i[o].split(n);if(2===a.length)t(a[0],a[1])}}function u(e,t,n){var r=e;function i(){var t=a(e);if(null===t)throw new o(o.Errors.BadTimeStamp,"Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=i(),u(),"--\x3e"!==e.substr(0,3))throw new o(o.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+r);e=e.substr(3),u(),t.endTime=i(),u(),function(e,t){var r=new s;c(e,(function(e,t){switch(e){case"region":for(var i=n.length-1;i>=0;i--)if(n[i].id===t){r.set(e,n[i].region);break}break;case"vertical":r.alt(e,t,["rl","lr"]);break;case"line":var o=t.split(","),a=o[0];r.integer(e,a),r.percent(e,a)&&r.set("snapToLines",!1),r.alt(e,a,["auto"]),2===o.length&&r.alt("lineAlign",o[1],["start","center","end"]);break;case"position":o=t.split(","),r.percent(e,o[0]),2===o.length&&r.alt("positionAlign",o[1],["start","center","end"]);break;case"size":r.percent(e,t);break;case"align":r.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=r.get("region",null),t.vertical=r.get("vertical","");try{t.line=r.get("line","auto")}catch(e){}t.lineAlign=r.get("lineAlign","start"),t.snapToLines=r.get("snapToLines",!0),t.size=r.get("size",100);try{t.align=r.get("align","center")}catch(e){t.align=r.get("align","middle")}try{t.position=r.get("position","auto")}catch(e){t.position=r.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=r.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}o.prototype=i(Error.prototype),o.prototype.constructor=o,o.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},s.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var r=0;r<n.length;++r)if(t===n[r]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var l=r.createElement&&r.createElement("textarea"),f={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},p={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},d={v:"title",lang:"lang"},h={rt:"ruby"};function y(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function r(e,t){return!h[t.localName]||h[t.localName]===e.localName}function i(t,n){var r=f[t];if(!r)return null;var i=e.document.createElement(r),o=d[t];return o&&n&&(i[o]=n.trim()),i}for(var o,s,c=e.document.createElement("div"),u=c,y=[];null!==(o=n());)if("<"!==o[0])u.appendChild(e.document.createTextNode((s=o,l.innerHTML=s,s=l.textContent,l.textContent="",s)));else{if("/"===o[1]){y.length&&y[y.length-1]===o.substr(2).replace(">","")&&(y.pop(),u=u.parentNode);continue}var m,v=a(o.substr(1,o.length-2));if(v){m=e.document.createProcessingInstruction("timestamp",v),u.appendChild(m);continue}var g=o.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!g)continue;if(!(m=i(g[1],g[3])))continue;if(!r(u,m))continue;if(g[2]){var b=g[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(p.hasOwnProperty(n)){var r=t?"background-color":"color",i=p[n];m.style[r]=i}})),m.className=b.join(" ")}y.push(g[1]),u.appendChild(m),u=m}return c}var m=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<m.length;t++){var n=m[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function g(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function r(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function i(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var o=n.match(/^.*(\n|\r)/);return o?(e.length=0,o[0]):n}return"ruby"===t.tagName?i(e):t.childNodes?(r(e,t),i(e)):void 0}for(r(t,e);n=i(t);)for(var o=0;o<n.length;o++)if(v(n.charCodeAt(o)))return"rtl";return"ltr"}function b(){}function w(e,t,n){b.call(this),this.cue=t,this.cueDiv=y(e,t.text);var r={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(r,this.cueDiv),this.div=e.document.createElement("div"),r={direction:g(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(r),this.div.appendChild(this.cueDiv);var i=0;switch(t.positionAlign){case"start":i=t.position;break;case"center":i=t.position-t.size/2;break;case"end":i=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(i,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(i,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function _(e){var t,n,r,i;if(e.div){n=e.div.offsetHeight,r=e.div.offsetWidth,i=e.div.offsetTop;var o=(o=e.div.childNodes)&&(o=o[0])&&o.getClientRects&&o.getClientRects();e=e.div.getBoundingClientRect(),t=o?Math.max(o[0]&&o[0].height||0,e.height/o.length):0}this.left=e.left,this.right=e.right,this.top=e.top||i,this.height=e.height||n,this.bottom=e.bottom||i+(e.height||n),this.width=e.width||r,this.lineHeight=void 0!==t?t:e.lineHeight}function S(e,t,n,r){var i=new _(t),o=t.cue,a=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,r=0,i=0;i<n.length&&n[i]!==t;i++)"showing"===n[i].mode&&r++;return-1*++r}(o),s=[];if(o.snapToLines){var c;switch(o.vertical){case"":s=["+y","-y"],c="height";break;case"rl":s=["+x","-x"],c="width";break;case"lr":s=["-x","+x"],c="width"}var u=i.lineHeight,l=u*Math.round(a),f=n[c]+u,p=s[0];Math.abs(l)>f&&(l=l<0?-1:1,l*=Math.ceil(f/u)*u),a<0&&(l+=""===o.vertical?n.height:n.width,s=s.reverse()),i.move(p,l)}else{var d=i.lineHeight/n.height*100;switch(o.lineAlign){case"center":a-=d/2;break;case"end":a-=d}switch(o.vertical){case"":t.applyStyles({top:t.formatStyle(a,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(a,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(a,"%")})}s=["+y","-x","+x","-y"],i=new _(t)}var h=function(e,t){for(var i,o=new _(e),a=1,s=0;s<t.length;s++){for(;e.overlapsOppositeAxis(n,t[s])||e.within(n)&&e.overlapsAny(r);)e.move(t[s]);if(e.within(n))return e;var c=e.intersectPercentage(n);a>c&&(i=new _(e),a=c),e=new _(o)}return i||o}(i,s);t.move(h.toCSSCompatValues(n))}function C(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},w.prototype=i(b.prototype),w.prototype.constructor=w,_.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},_.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},_.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},_.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},_.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},_.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},_.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},_.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,r=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||r,height:e.height||t,bottom:e.bottom||r+(e.height||t),width:e.width||n}},C.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},C.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};C.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var r=e.document.createElement("div");if(r.style.position="absolute",r.style.left="0",r.style.right="0",r.style.top="0",r.style.bottom="0",r.style.margin="1.5%",n.appendChild(r),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var i=[],o=_.getSimpleBoxPosition(r),a={font:Math.round(.05*o.height*100)/100+"px sans-serif"};!function(){for(var n,s,c=0;c<t.length;c++)s=t[c],n=new w(e,s,a),r.appendChild(n.div),S(0,n,o,i),s.displayState=n.div,i.push(_.getSimpleBoxPosition(n))}()}else for(var s=0;s<t.length;s++)r.appendChild(t[s].displayState)},C.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},C.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof o))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var r=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),r}function r(e){e.match(/X-TIMESTAMP-MAP/)?c(e,(function(e,n){switch(e){case"X-TIMESTAMP-MAP":!function(e){var n=new s;c(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",a(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}}),/=/):c(e,(function(e,n){switch(e){case"Region":!function(e){var n=new s;if(c(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var r=t.split(",");if(2!==r.length)break;var i=new s;if(i.percent("x",r[0]),i.percent("y",r[1]),!i.has("x")||!i.has("y"))break;n.set(e+"X",i.get("x")),n.set(e+"Y",i.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var r=new(t.vttjs.VTTRegion||t.window.VTTRegion);r.width=n.get("width",100),r.lines=n.get("lines",3),r.regionAnchorX=n.get("regionanchorX",0),r.regionAnchorY=n.get("regionanchorY",100),r.viewportAnchorX=n.get("viewportanchorX",0),r.viewportAnchorY=n.get("viewportanchorY",100),r.scroll=n.get("scroll",""),t.onregion&&t.onregion(r),t.regionList.push({id:n.get("id"),region:r})}}(n)}}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var i;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var l=(i=n()).match(/^WEBVTT([ \t].*)?$/);if(!l||!l[0])throw new o(o.Errors.BadSignature);t.state="HEADER"}for(var f=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(f?f=!1:i=n(),t.state){case"HEADER":/:/.test(i)?r(i):i||(t.state="ID");continue;case"NOTE":i||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(i)){t.state="NOTE";break}if(!i)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===i.indexOf("--\x3e")){t.cue.id=i;continue}case"CUE":try{u(i,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var p=-1!==i.indexOf("--\x3e");if(!i||p&&(f=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=i.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":i||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new o(o.Errors.BadSignature)}catch(e){this.reportOrThrowError(e)}return this.onflush&&this.onflush(),this}},e.exports=C},function(e,t){},function(e,t){var n={"":1,lr:1,rl:1},r={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&(!!r[e.toLowerCase()]&&e.toLowerCase())}function o(e,t,r){this.hasBeenReset=!1;var o="",a=!1,s=e,c=t,u=r,l=null,f="",p=!0,d="auto",h="start",y="auto",m="auto",v=100,g="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return o},set:function(e){o=""+e}},pauseOnExit:{enumerable:!0,get:function(){return a},set:function(e){a=!!e}},startTime:{enumerable:!0,get:function(){return s},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");s=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");c=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return l},set:function(e){l=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return f},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);if(!1===t)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");f=t,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return p},set:function(e){p=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return d},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");d=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return h},set:function(e){var t=i(e);t?(h=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return y},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");y=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return m},set:function(e){var t=i(e);t?(m=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");g=t,this.hasBeenReset=!0}}}),this.displayState=void 0}o.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=o},function(e,t){var n={"":!0,up:!0};function r(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,t=3,i=0,o=100,a=0,s=100,c="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!r(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return t},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");t=e}},regionAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!r(e))throw new Error("RegionAnchorX must be between 0 and 100.");o=e}},regionAnchorX:{enumerable:!0,get:function(){return i},set:function(e){if(!r(e))throw new Error("RegionAnchorY must be between 0 and 100.");i=e}},viewportAnchorY:{enumerable:!0,get:function(){return s},set:function(e){if(!r(e))throw new Error("ViewportAnchorY must be between 0 and 100.");s=e}},viewportAnchorX:{enumerable:!0,get:function(){return a},set:function(e){if(!r(e))throw new Error("ViewportAnchorX must be between 0 and 100.");a=e}},scroll:{enumerable:!0,get:function(){return c},set:function(e){var t=function(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}(e);!1===t?console.warn("Scroll: an invalid or illegal string was specified."):c=t}}})}},function(e,t){e.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},function(e,t,n){var r,i,o,a,s;r=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,i=/^(?=([^\/?#]*))\1([^]*)$/,o=/(?:\/|^)\.(?=\/)/g,a=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,n){if(n=n||{},e=e.trim(),!(t=t.trim())){if(!n.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return n.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var c=i.exec(a.path);a.netLoc=c[1],a.path=c[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var l=a.path,f=l.substring(0,l.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(f)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=n.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},parseURL:function(e){var t=r.exec(e);return t?{scheme:t[1]||"",netLoc:t[2]||"",path:t[3]||"",params:t[4]||"",query:t[5]||"",fragment:t[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(o,"");e.length!==(e=e.replace(a,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=s},function(e,t,n){"use strict";t.byteLength=function(e){var t=u(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=u(e),a=r[0],s=r[1],c=new o(function(e,t,n){return 3*(t+n)/4-n}(0,a,s)),l=0,f=s>0?a-4:a;for(n=0;n<f;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,n=e.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(e,a,a+16383>s?s:a+16383));1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var i,o,a=[],s=t;s<n;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(e,t){
|
|
47
47
|
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
48
48
|
t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,f=n?i-1:0,p=n?-1:1,d=e[t+f];for(f+=p,o=d&(1<<-l)-1,d>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=p,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=u}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,f=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,h=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+f>=1?p/c:p*Math.pow(2,1-f))*c>=2&&(a++,c/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*c-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=h,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;e[n+d]=255&a,d+=h,a/=256,u-=8);e[n+d-h]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t){var n=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,r=new RegExp("[\\-\\.0-9"+n.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),i=new RegExp("^"+n.source+r.source+"*(?::"+n.source+r.source+"*)?$");function o(){}function a(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function s(e,t,n,r,i,o){for(var a,s=++t,c=0;;){var u=e.charAt(s);switch(u){case"=":if(1===c)a=e.slice(t,s),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),a=e.slice(t,s)),t=s+1,!((s=e.indexOf(u,t))>0))throw new Error("attribute value no end '"+u+"' match");l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');l=e.slice(t,s).replace(/&#?\w+;/g,i),n.add(a,l,t),o.warning('attribute "'+a+'" missed start quot('+u+")!!"),t=s+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,s)),s;case">":switch(c){case 0:n.setTagName(e.slice(t,s));case 5:case 6:case 7:break;case 4:case 1:"/"===(l=e.slice(t,s)).slice(-1)&&(n.closed=!0,l=l.slice(0,-1));case 2:2===c&&(l=a),4==c?(o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l.replace(/&#?\w+;/g,i),t)):("http://www.w3.org/1999/xhtml"===r[""]&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead!!'),n.add(l,l,t));break;case 3:throw new Error("attribute value missed!!")}return s;case"":u=" ";default:if(u<=" ")switch(c){case 0:n.setTagName(e.slice(t,s)),c=6;break;case 1:a=e.slice(t,s),c=2;break;case 4:var l=e.slice(t,s).replace(/&#?\w+;/g,i);o.warning('attribute "'+l+'" missed quot(")!!'),n.add(a,l,t);case 5:c=6}else switch(c){case 2:n.tagName;"http://www.w3.org/1999/xhtml"===r[""]&&a.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+a+'" missed value!! "'+a+'" instead2!!'),n.add(a,a,t),t=s,c=1;break;case 5:o.warning('attribute space is required"'+a+'"!!');case 6:c=1,t=s;break;case 3:c=4,t=s;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}s++}}function c(e,t,n){for(var r=e.tagName,i=null,o=e.length;o--;){var a=e[o],s=a.qName,c=a.value;if((d=s.indexOf(":"))>0)var u=a.prefix=s.slice(0,d),l=s.slice(d+1),p="xmlns"===u&&l;else l=s,u=null,p="xmlns"===s&&"";a.localName=l,!1!==p&&(null==i&&(i={},f(n,n={})),n[p]=i[p]=c,a.uri="http://www.w3.org/2000/xmlns/",t.startPrefixMapping(p,c))}for(o=e.length;o--;){(u=(a=e[o]).prefix)&&("xml"===u&&(a.uri="http://www.w3.org/XML/1998/namespace"),"xmlns"!==u&&(a.uri=n[u||""]))}var d;(d=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,d),l=e.localName=r.slice(d+1)):(u=null,l=e.localName=r);var h=e.uri=n[u||""];if(t.startElement(h,l,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=i,!0;if(t.endElement(h,l,r),i)for(u in i)t.endPrefixMapping(u)}function u(e,t,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var o=e.indexOf("</"+n+">",t),a=e.substring(t+1,o);if(/[&<]/.test(a))return/^script$/i.test(n)?(i.characters(a,0,a.length),o):(a=a.replace(/&#?\w+;/g,r),i.characters(a,0,a.length),o)}return t+1}function l(e,t,n,r){var i=r[n];return null==i&&((i=e.lastIndexOf("</"+n+">"))<t&&(i=e.lastIndexOf("</"+n)),r[n]=i),i<t}function f(e,t){for(var n in e)t[n]=e[n]}function p(e,t,n,r){switch(e.charAt(t+2)){case"-":return"-"===e.charAt(t+3)?(i=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,i-t-4),i+3):(r.error("Unclosed comment"),-1):-1;default:if("CDATA["==e.substr(t+3,6)){var i=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,i-t-9),n.endCDATA(),i+3}var o=function(e,t){var n,r=[],i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=t,i.exec(e);for(;n=i.exec(e);)if(r.push(n),n[1])return r}(e,t),a=o.length;if(a>1&&/!doctype/i.test(o[0][0])){var s=o[1][0],c=a>3&&/^public$/i.test(o[2][0])&&o[3][0],u=a>4&&o[4][0],l=o[a-1];return n.startDTD(s,c&&c.replace(/^(['"])(.*?)\1$/,"$2"),u&&u.replace(/^(['"])(.*?)\1$/,"$2")),n.endDTD(),l.index+l[0].length}}return-1}function d(e,t,n){var r=e.indexOf("?>",t);if(r){var i=e.substring(t,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;return n.processingInstruction(i[1],i[2]),r+2}return-1}return-1}function h(e){}function y(e,t){return e.__proto__=t,e}o.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(t,t={}),function(e,t,n,r,i){function o(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(i.error("entity not found:"+e),e)}function f(t){if(t>S){var n=e.substring(S,t).replace(/&#?\w+;/g,o);b&&y(S),r.characters(n,0,t-S),S=t}}function y(t,n){for(;t>=v&&(n=g.exec(e));)m=n.index,v=m+n[0].length,b.lineNumber++;b.columnNumber=t-m+1}var m=0,v=0,g=/.*(?:\r\n?|\n)|.*$/g,b=r.locator,w=[{currentNSMap:t}],_={},S=0;for(;;){try{var C=e.indexOf("<",S);if(C<0){if(!e.substr(S).match(/^\s*$/)){var T=r.doc,E=T.createTextNode(e.substr(S));T.appendChild(E),r.currentElement=E}return}switch(C>S&&f(C),e.charAt(C+1)){case"/":var O=e.indexOf(">",C+3),k=e.substring(C+2,O),P=w.pop();O<0?(k=e.substring(C+2).replace(/[\s<].*/,""),i.error("end tag name: "+k+" is not complete:"+P.tagName),O=C+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),i.error("end tag name: "+k+" maybe not complete"),O=C+1+k.length);var A=P.localNSMap,I=P.tagName==k;if(I||P.tagName&&P.tagName.toLowerCase()==k.toLowerCase()){if(r.endElement(P.uri,P.localName,k),A)for(var x in A)r.endPrefixMapping(x);I||i.fatalError("end tag name: "+k+" is not match the current start tagName:"+P.tagName)}else w.push(P);O++;break;case"?":b&&y(C),O=d(e,C,r);break;case"!":b&&y(C),O=p(e,C,r,i);break;default:b&&y(C);var L=new h,R=w[w.length-1].currentNSMap,j=(O=s(e,C,L,R,o,i),L.length);if(!L.closed&&l(e,O,L.tagName,_)&&(L.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&j){for(var N=a(b,{}),D=0;D<j;D++){var B=L[D];y(B.offset),B.locator=a(b,{})}r.locator=N,c(L,r,R)&&w.push(L),r.locator=b}else c(L,r,R)&&w.push(L);"http://www.w3.org/1999/xhtml"!==L.uri||L.closed?O++:O=u(e,O,L.tagName,o,r)}}catch(e){i.error("element parse error: "+e),O=-1}O>S?S=O:f(Math.max(C,S)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},h.prototype={setTagName:function(e){if(!i.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},add:function(e,t,n){if(!i.test(e))throw new Error("invalid attribute:"+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},y({},y.prototype)instanceof y||(y=function(e,t){function n(){}for(t in n.prototype=t,n=new n,e)n[t]=e[t];return n}),t.XMLReader=o},function(e,t,n){"use strict";var r=n(820),i=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},o=function(e){var t,n;o.prototype.init.call(this),this.type_=e||"shared",this.push=function(e){"shared"!==this.type_&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=i(e.dts,n),e.pts=i(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};o.prototype=new r,e.exports={TimestampRolloverStream:o,handleRollover:i}},function(e,t,n){"use strict";var r=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var r;return!!e[t]&&(r=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(r,1),r>-1)},this.trigger=function(t){var n,r,i,o;if(n=e[t])if(2===arguments.length)for(i=n.length,r=0;r<i;++r)n[r].call(this,arguments[1]);else{for(o=[],r=arguments.length,r=1;r<arguments.length;++r)o.push(arguments[r]);for(i=n.length,r=0;r<i;++r)n[r].apply(this,o)}},this.dispose=function(){e={}}}};r.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},r.prototype.push=function(e){this.trigger("data",e)},r.prototype.flush=function(e){this.trigger("done",e)},r.prototype.partialFlush=function(e){this.trigger("partialdone",e)},r.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},r.prototype.reset=function(e){this.trigger("reset",e)},e.exports=r},function(e,t,n){"use strict";var r=n(724),i=function(e){var t=31&e[1];return t<<=8,t|=e[2]},o=function(e){return!!(64&e[1])},a=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},s=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}};e.exports={parseType:function(e,t){var n=i(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=o(e),n=4+a(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=o(e),r=4+a(e);if(n&&(r+=e[r]+1),1&e[r+5]){var i;i=3+((15&e[r+1])<<8|e[r+2])-4;for(var s=12+((15&e[r+10])<<8|e[r+11]);s<i;){var c=r+s;t[(31&e[c+1])<<8|e[c+2]]=e[c],s+=5+((15&e[c+3])<<8|e[c+4])}return t}},parsePayloadUnitStartIndicator:o,parsePesType:function(e,t){switch(t[i(e)]){case r.H264_STREAM_TYPE:return"video";case r.ADTS_STREAM_TYPE:return"audio";case r.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!o(e))return null;var t=4+a(e);if(t>=e.byteLength)return null;var n,r=null;return 192&(n=e[t+7])&&((r={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,r.pts*=4,r.pts+=(6&e[t+13])>>>1,r.dts=r.pts,64&n&&(r.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,r.dts*=4,r.dts+=(6&e[t+18])>>>1)),r},videoPacketContainsKeyFrame:function(e){for(var t=4+a(e),n=e.subarray(t),r=0,i=0,o=!1;i<n.byteLength-3;i++)if(1===n[i+2]){r=i+5;break}for(;r<n.byteLength;)switch(n[r]){case 0:if(0!==n[r-1]){r+=2;break}if(0!==n[r-2]){r++;break}i+3!==r-2&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0);do{r++}while(1!==n[r]&&r<n.length);i=r-2,r+=3;break;case 1:if(0!==n[r-1]||0!==n[r-2]){r+=3;break}"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),i=r-2,r+=3;break;default:r+=3}return n=n.subarray(i),r-=i,i=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===s(31&n[i+3])&&(o=!0),o}}},function(e,t,n){"use strict";var r=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],i=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},o=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=i(e,t),o(e,t))},a=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]};e.exports={isLikelyAacData:function(e){var t=o(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:i,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,r=e[t+4]<<3;return 6144&e[t+3]|r|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return r[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,r;t=10,64&e[5]&&(t+=4,t+=a(e.subarray(10,14)));do{if((n=a(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){r=e.subarray(t+10,t+n+10);for(var i=0;i<r.byteLength;i++)if(0===r[i]){if("com.apple.streaming.transportStreamTimestamp"===unescape(function(e,t,n){var r,i="";for(r=t;r<n;r++)i+="%"+("00"+e[r].toString(16)).slice(-2);return i}(r,0,i))){var o=r.subarray(i+1),s=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return s*=4,s+=3&o[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}}},function(e,t,n){var r=n(294).toUnsigned,i=n(725),o=function(e,t){var n,a,s,c,u,l=[];if(!t.length)return null;for(n=0;n<e.byteLength;)a=r(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),s=i(e.subarray(n+4,n+8)),c=a>1?n+a:e.byteLength,s===t[0]&&(1===t.length?l.push(e.subarray(n+8,c)):(u=o(e.subarray(n+8,c),t.slice(1))).length&&(l=l.concat(u))),n=c;return l};e.exports=o},function(e,t){e.exports=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),r={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},i=1&r.flags[2],o=2&r.flags[2],a=8&r.flags[2],s=16&r.flags[2],c=32&r.flags[2],u=65536&r.flags[0],l=131072&r.flags[0];return t=8,i&&(t+=4,r.baseDataOffset=n.getUint32(12),t+=4),o&&(r.sampleDescriptionIndex=n.getUint32(t),t+=4),a&&(r.defaultSampleDuration=n.getUint32(t),t+=4),s&&(r.defaultSampleSize=n.getUint32(t),t+=4),c&&(r.defaultSampleFlags=n.getUint32(t)),u&&(r.durationIsEmpty=!0),!i&&l&&(r.baseDataOffsetIsMoof=!0),r}},function(e,t,n){var r=n(826);e.exports=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),o=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],c=2&n.flags[1],u=4&n.flags[1],l=8&n.flags[1],f=i.getUint32(4),p=8;for(o&&(n.dataOffset=i.getInt32(p),p+=4),a&&f&&(t={flags:r(e.subarray(p,p+4))},p+=4,s&&(t.duration=i.getUint32(p),p+=4),c&&(t.size=i.getUint32(p),p+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(p):t.compositionTimeOffset=i.getUint32(p),p+=4),n.samples.push(t),f--);f--;)t={},s&&(t.duration=i.getUint32(p),p+=4),c&&(t.size=i.getUint32(p),p+=4),u&&(t.flags=r(e.subarray(p,p+4)),p+=4),l&&(1===n.version?t.compositionTimeOffset=i.getInt32(p):t.compositionTimeOffset=i.getUint32(p),p+=4),n.samples.push(t);return n}},function(e,t){e.exports=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}}},function(e,t,n){var r=n(294).toUnsigned;e.exports=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4)),baseMediaDecodeTime:r(e[4]<<24|e[5]<<16|e[6]<<8|e[7])};return 1===t.version&&(t.baseMediaDecodeTime*=Math.pow(2,32),t.baseMediaDecodeTime+=r(e[8]<<24|e[9]<<16|e[10]<<8|e[11])),t}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(795),n(796),n(797);var r=n(3),i=n(10),o=n(20),a=n(54),s=n(0),c=n.n(s),u=n(12),l=n.n(u),f=n(309),p=n(30);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var i=b(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(o,e);var t,n,r,i=v(o);function o(){return h(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,s.createElement(t,{alerts:r,removeAlert:function(e){return u.Radio.channel(p.a.ALERT).trigger("remove:alert",e)}}))}}}])&&y(t.prototype,n),r&&y(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(f.a),_="content",S="popup",C="alert",T="hidden",E=n(1),O="TeacherLayout",k="SimpleLayout",P=n(5),A=n(7),I=n(133),x=n(40),L=function(e,t){var n;return null===(n=null==e?void 0:e[t])||void 0===n?void 0:n.value},R=n(79),j=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},N={application:P.a.DEFAULT,action:A.a.Default.UPGRADE_ONBOARDING},D={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME};function B(e,t){var n,o;return j(this,void 0,void 0,regeneratorRuntime.mark((function a(){var s,c,u,l,f,p,d,h;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e.shell.store,c=N.application===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&N.action===(null===(o=e.appLink)||void 0===o?void 0:o.action),a.next=4,i.a.fetchAsync(s,I.a.customerSettings(t.customerId));case 4:return u=a.sent,a.next=7,i.a.fetchAsync(s,I.a.userSettings(t.id));case 7:if(l=a.sent,f=L(u,x.a.LiteUpgradeComplete),p=L(l,x.a.HasCompletedUpgradeOnboarding),!f&&!p){a.next=16;break}if(!c){a.next=15;break}return r.a.AppLinkHelper.trigger(D,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!0,redirected:!0});case 15:return a.abrupt("return",{isUpgradeCustomer:!0});case 16:if(d=L(u,x.a.LiteUpgradeTypeCustomer),h=L(l,x.a.LiteUpgradeTypeUser),!!h||!!d){a.next=25;break}if(!c){a.next=24;break}return r.a.AppLinkHelper.trigger(D,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!1,redirected:!0});case 24:return a.abrupt("return",{isUpgradeCustomer:!1});case 25:if(R.a.disableNav(),c){a.next=30;break}return r.a.AppLinkHelper.trigger(N,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!0,redirected:!0});case 30:return a.abrupt("return",{isUpgradeCustomer:!0});case 31:case"end":return a.stop()}}),a)})))}var U=n(363),M=n.n(U),V=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},F=[{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_WELCOME},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_TOPIC_PRESENTATION},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_CURRICULUM_PRESENTATION},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_LEVELS},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_TOPICS},{application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_SUMMARY}],H=[{application:P.a.DEFAULT,action:A.a.Default.NOT_FOUND},{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.DEFAULT,action:A.a.Default.PREVIEW_PDF}];function z(e,t){return V(this,void 0,void 0,regeneratorRuntime.mark((function n(){var s,c,u,l;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=e.shell.store,c=e.appLink,!H.find((function(e){return e.application===(null==c?void 0:c.application)&&e.action===(null==c?void 0:c.action)}))){n.next=4;break}return n.abrupt("return");case 4:return n.next=6,i.a.fetchAsync(s,o.a.permissions());case 6:if(n.sent[a.a.ManageSubjectPreferences]){n.next=9;break}return n.abrupt("return");case 9:if(M.a.get("_onboardingComplete")!==t.id.toString()){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,i.a.fetchAsync(s,I.a.userSettings(t.customerId));case 13:if(u=n.sent,!L(u,x.a.HasCompletedOnboarding)){n.next=18;break}return M.a.set("_onboardingComplete",t.id,{expires:30}),n.abrupt("return");case 18:if(l=!!F.find((function(t){var n,r;return t.application,null===(n=e.appLink)||void 0===n||n.application,t.action===(null===(r=e.appLink)||void 0===r?void 0:r.action)})),R.a.disableNav(),l){n.next=24;break}return r.a.AppLinkHelper.trigger({application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING_WELCOME},{replace:!0}),r.a.AppLinkUtility.routingEnded(),n.abrupt("return");case 24:case"end":return n.stop()}}),n)})))}var W=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},q={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME},G=P.a.DEFAULT,K=A.a.Default.UPGRADE_ONBOARDING;function Y(e,t){var n,s;return W(this,void 0,void 0,regeneratorRuntime.mark((function c(){var u,l,f,p,d,h;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return u=e.shell.store,l=!!F.find((function(t){var n,r;return t.application,null===(n=e.appLink)||void 0===n||n.application,t.action===(null===(r=e.appLink)||void 0===r?void 0:r.action)})),f=G===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&K===(null===(s=e.appLink)||void 0===s?void 0:s.action),c.prev=3,c.next=6,i.a.fetchAsync(u,o.a.currentUser());case 6:if((p=c.sent).isAuthenticated){c.next=13;break}if(!l&&!f){c.next=12;break}return r.a.AppLinkHelper.trigger(q,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 12:return c.abrupt("return",t(e));case 13:return c.next=15,i.a.fetchAsync(u,o.a.permissions());case 15:if(!c.sent[a.a.StudentExperience]){c.next=22;break}if(!l&&!f){c.next=21;break}return r.a.AppLinkHelper.trigger(q,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 21:return c.abrupt("return",t(e));case 22:return c.next=24,B(e,p);case 24:if(d=c.sent,h=d.isUpgradeCustomer,!d.redirected){c.next=29;break}return c.abrupt("return");case 29:if(!h){c.next=35;break}if(!l){c.next=34;break}return r.a.AppLinkHelper.trigger(q,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 34:return c.abrupt("return",t(e));case 35:return c.next=37,z(e,p);case 37:t(e),c.next=43;break;case 40:c.prev=40,c.t0=c.catch(3),t(e);case 43:case"end":return c.stop()}}),c,null,[[3,40]])})))}var X=n(117),Q=n(100),Z=n(70),J=n(222),ee=n(95),te=n(76),ne=n(8);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t){return(oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ce(e);if(t){var i=ce(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ce(e){return(ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue="liteShared.noAccess",le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(o,e);var t,n,r,i=ae(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,"Current user's school does not have access to the primary product")).config=e,t}return t=o,(n=[{key:"name",get:function(){return"NoAccessError"}},{key:"heading",get:function(){return ne.a.getPhrase(ue,"heading")}},{key:"description",get:function(){return ne.a.getPhrase(ue,"body",{learnMoreUrl:"https://www.clickview.com.au/upgrade?utm_source=ClickView+Online&utm_medium=website&utm_campaign=New+Product",onlineUrl:this.config.onlineUrl,escapeText:!0})}},{key:"cta",get:function(){return!1}},{key:"injectDescriptionHtml",get:function(){return!0}}])&&ie(t.prototype,n),r&&ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(te.a),fe=n(105),pe=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},de=[{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.DEFAULT,action:A.a.Default.DEV_ERROR},{application:P.a.DEFAULT,action:A.a.Default.PREVIEW_PDF},{application:P.a.DEFAULT,action:A.a.Default.LOG_IN},{application:P.a.DEFAULT,action:A.a.Default.LOG_OUT},{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK},{application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR},{application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN},{application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR},{application:P.a.EMBED,action:A.a.Embed.PLUGIN_LOGIN},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_RESOURCE},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_LCS_VIDEO},{application:P.a.EMBED,action:A.a.Embed.LCS_LOGIN}].reduce((function(e,t){return e[he(t)]=!0,e}),{});function he(e){return e.application+e.action}function ye(e,t){Z.a._forcePushContext(e),R.a.disableNav(),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(null!=t?t:new ee.a)}function me(e,t){var n=this,r=e.appLink,a=e.shell;X.a.isDevelopment?t(e):i.a.hooklessFetch(a.store,o.a.currentUser((function(o){if(!o.isAuthenticated)return t(e);i.a.hooklessFetch(a.store,J.a.userProducts((function(o){return pe(n,void 0,void 0,regeneratorRuntime.mark((function n(){var s;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o.find((function(e){return e.id===Q.a.Primary}))){n.next=3;break}return t(e),n.abrupt("return");case 3:if(!de[he(e.appLink)]){n.next=7;break}return R.a.disableNav(),t(e),n.abrupt("return");case 7:return n.next=9,i.a.fetchAsync(a.store,fe.a.config());case 9:s=n.sent,ye(r,new le(s));case 11:case"end":return n.stop()}}),n)})))}),(function(){return ye(r)})))}),(function(){return ye(r)})))}var ve=n(29),ge=n(223),be=n(38),we=n(57),_e=n(48),Se=n(17),Ce=n(224);function Te(e){return(Te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ie(e);if(t){var i=Ie(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){if(t&&("object"===Te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ie(e){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ke(e,t)}(o,e);var t,n,r,i=Pe(o);function o(){return Ee(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===o.type}}])&&Oe(t.prototype,n),r&&Oe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function je(e,t){return(je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Be(e);if(t){var i=Be(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return De(this,n)}}function De(e,t){if(t&&("object"===Le(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}xe.type="BaseAnalyticsEnricher";var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&je(e,t)}(o,e);var t,n,r,i=Ne(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).consumerKey=e.consumerKey,t}return t=o,(n=[{key:"name",get:function(){return"PluginEnricher"}},{key:"enrich",value:function(e,t){e.enrich("plugin",this.getPluginData()),t(e)}},{key:"getPluginData",value:function(){return{isPlugin:!0,consumerKey:this.consumerKey}}}])&&Re(t.prototype,n),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(xe);function Me(e){return(Me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Ve={application:P.a.DEFAULT,action:A.a.Default.PLUGIN},Fe={application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},He={application:P.a.DEFAULT,action:A.a.Default.PLAY_CLIP},ze={application:P.a.INTERACTIVES,action:A.a.Interactives.VIEW_INTERACTIVE},We={application:P.a.DEFAULT,action:A.a.Default.SHARE},qe=[Fe,He,ze,We],Ge=[P.a.CLASSROOMS,P.a.USER_MANAGER,P.a.SETTINGS];function Ke(e,t){return e.application===(null==t?void 0:t.application)&&e.action===(null==t?void 0:t.action)}function Ye(e){if(Ke(e,Fe))return E.EntityType.Video;if(Ke(e,He))return E.EntityType.Clip;if(Ke(e,ze))return E.EntityType.Interactive;if(Ke(e,We)){var t=Xe(e.params);return null==t?void 0:t.entityType}r.a.ErrorHelper.throw(new ve.a("No derived share entity type found"))}function Xe(e){return"object"===Me(e)?e:we.LocationUtils.DeserializeQueryParams(e)}function Qe(e){Z.a._forcePushContext(e),r.a.AppLinkUtility.routingEnded(),r.a.AppLinkHelper.trigger(e,{replace:!0})}function $e(e,t){var n,r,i=e.appLink,o=e.shell,a=be.b.get(_e.a.PLUGIN);if(a&&qe.find((function(e){return Ke(e,i)})))Qe({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_SHARE,args:[i.args[0]],params:{entityType:Ye(i)}});else if(a&&Ge.find((function(e){return e===i.application})))Qe({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_NEW_WINDOW,params:{url:we.AppLinkHelper.getHref(i)}});else{if(Ke(i,Ve)){var s=Xe(i.params),c={isPlugin:!0,consumerKey:s.consumerKey,ltiReturnUrl:s.ltiReturnUrl,submitUrl:s.submitUrl,lmsType:s.lmsType,sizeSelector:!("false"==(null===(n=s.sizeSelector)||void 0===n?void 0:n.toLowerCase())),singleSelectMode:"true"==(null===(r=s.singleSelectMode)||void 0===r?void 0:r.toLowerCase())};return o.store.dispatch({type:ge.a.UPDATE,payload:{viewModelKey:_e.a.PLUGIN,dataOrKey:c}}),be.b.set(_e.a.PLUGIN,c),function(e){if(e){var t=Se.a.getInstance(Ce.a.Analytics);t.hasEnricher(Ue)||t.registerEnricher(Ue,{consumerKey:e})}}(s.consumerKey),Qe({application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),void window.Intercom("update",{hide_default_launcher:!0})}t(e)}}var Ze=[{application:P.a.LAUNCHPAD,action:A.a.Launchpad.LOGIN_LANDING},{application:P.a.DEFAULT,action:A.a.Default.ERROR},{application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR},{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK},{application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_RESOURCE},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.PASSWORD_PROTECTED_SHARE_LINK},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.SHARE_LINK_SIGN_IN},{application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN},{application:P.a.EMBED,action:A.a.Embed.PLUGIN_LOGIN},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM_PROMPT},{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM},{application:P.a.EMBED,action:A.a.Embed.VIEW_EMBEDDED_LCS_VIDEO},{application:P.a.EMBED,action:A.a.Embed.LCS_LOGIN}].reduce((function(e,t){return e[Je(t)]=!0,e}),{});function Je(e){return e.application+e.action}function et(e,t){Ze[Je(e.appLink)]?t(e):i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(n){if(n.isAuthenticated)t(e);else{var i=e.appLink.params,o={};(null==i?void 0:i.customerId)&&(o.customerId=i.customerId),(null==i?void 0:i.skipPrompt)&&(o.skipPrompt=i.skipPrompt),"/"===we.LocationUtils.GetCurrentPath()&&(o.showJoinCode=!0),r.a.AppLinkUtility.routingEnded(),r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.LOGIN_LANDING,params:o},{replace:!0})}}),(function(){return t=e.appLink,Z.a._forcePushContext(t),R.a.disableNav(),r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ee.a);var t})))}function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function it(e,t,n){return t&&rt(e.prototype,t),n&&rt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ot(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&at(e,t)}function at(e,t){return(at=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function st(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ut(e);if(t){var i=ut(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(e,t){if(t&&("object"===tt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ut(e){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lt=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},ft=function(e){ot(n,e);var t=st(n);function n(){return nt(this,n),t.apply(this,arguments)}return it(n,[{key:"channelName",get:function(){return P.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/students":"classroomStudents","classrooms/:id/groups":"classroomGroups","classrooms/:id/teachers":"classroomTeachers","classrooms/:id/manage":"manageClassroom","classrooms/:id/classroom-link":"generateJoinLink"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup","addStudentsChoices","addStudentsChoicesMethod","contactSchoolAdmin","archiveClassroom","retrieveClassroom","addTeachers","assignAsOwner","revokeOwnership","removeTeachers"]}},{key:"filters",get:function(){return[et,me,Y,$e]}}]),n}(r.a.AppRouter),pt=function(e){ot(i,e);var t=st(i);function i(){return nt(this,i),t.apply(this,arguments)}return it(i,[{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return P.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.query;Promise.all([n.e(5),n.e(23),n.e(83)]).then(n.bind(null,2156)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(_,c.a.createElement(n,{query:r}))}))}},{key:"classroom",value:function(e){r.a.AppLinkHelper.trigger({application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS,args:[e]})}},{key:"classroomStudents",value:function(e){var t=this;Promise.all([n.e(12),n.e(87)]).then(n.bind(null,2160)).then((function(n){var r=n.ClassroomStudentsView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"classroomGroups",value:function(e){var t=this;Promise.all([n.e(12),n.e(79)]).then(n.bind(null,2165)).then((function(n){var r=n.ClassroomGroupsView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"classroomTeachers",value:function(e){var t=this;Promise.all([n.e(12),n.e(102)]).then(n.bind(null,2166)).then((function(n){var r=n.ClassroomTeachersView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e){r.a.AppLinkHelper.trigger({application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS,args:[e]},{replace:!0})}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(96)]).then(n.bind(null,2071)).then((function(t){var n=t.CreateClassroomView,r={actionType:E.UserAction.Create,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};e.layout.showChildView(S,c.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(97)]).then(n.bind(null,2072)).then((function(n){var r=n.EditClassroomView,i={actionType:E.UserAction.Edit,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};t.layout.showChildView(S,c.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(150).then(n.bind(null,2073)).then((function(n){var r=n.DeleteClassroomView,i={actionType:E.UserAction.Delete,entity:E.EntityType.Classroom,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};t.layout.showChildView(S,c.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(11),n.e(145)]).then(n.bind(null,2074)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:E.UserAction.Associate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};t.layout.showChildView(S,c.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:i}))}))}},{key:"removeStudents",value:function(e,t){var r=this,i=t.studentIds;n.e(151).then(n.bind(null,2075)).then((function(t){var n=t.RemoveStudentsFromClassroomView,o={actionType:E.UserAction.Dissociate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,studentIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"newGroup",value:function(e,t){var r=this,i=t.addStudents,o=void 0===i?[]:i;Promise.all([n.e(1),n.e(2),n.e(74)]).then(n.bind(null,2076)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:E.EntityType.ClassroomGroup,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,studentIds:o,closePopup:function(){return r.layout.closePopup()},analyticsOptions:i}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(75)]).then(n.bind(null,2077)).then((function(n){var i=n.EditClassroomGroupView,o={entity:E.EntityType.ClassroomGroup,actionType:E.UserAction.Edit,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(149).then(n.bind(null,2078)).then((function(n){var i=n.DeleteClassroomGroupView,o={entity:E.EntityType.ClassroomGroup,actionType:E.UserAction.Delete,location:E.LocationContext.Popup,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"generateJoinLink",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(73).then(n.bind(null,2178));case 2:r=t.sent,i=r.GenerateJoinLinkView,this.layout.showChildView(_,c.a.createElement(i,{classroomId:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addStudentsChoices",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(119).then(n.bind(null,2079));case 2:r=t.sent,i=r.AddStudentsChoicesView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addStudentsChoicesMethod",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(118).then(n.bind(null,2080));case 2:r=t.sent,i=r.AddStudentsChoicesMethodView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"contactSchoolAdmin",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(136).then(n.bind(null,2081));case 2:r=t.sent,i=r.ContactSchoolAdminView,this.layout.showChildView(S,c.a.createElement(i,{classroomId:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"archiveClassroom",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(147).then(n.bind(null,2082));case 2:r=t.sent,i=r.ArchiveClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"retrieveClassroom",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(153).then(n.bind(null,2083));case 2:r=t.sent,i=r.RetrieveClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"addTeachers",value:function(e){return lt(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(11),n.e(146)]).then(n.bind(null,2084));case 2:r=t.sent,i=r.AddTeachersToClassroomView,this.layout.showChildView(S,c.a.createElement(i,{id:e,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"assignAsOwner",value:function(e,t){return lt(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(5),n.e(148)]).then(n.bind(null,2085));case 2:i=r.sent,o=i.AssignAsOwnerView,this.layout.showChildView(S,c.a.createElement(o,{classroomId:e,teacherId:t,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"revokeOwnership",value:function(e,t){return lt(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(5),n.e(154)]).then(n.bind(null,2086));case 2:i=r.sent,o=i.RevokeOwnershipView,this.layout.showChildView(S,c.a.createElement(o,{classroomId:e,teacherId:t,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"removeTeachers",value:function(e,t){var r=this,i=t.teacherIds;n.e(152).then(n.bind(null,2087)).then((function(t){var n=t.RemoveTeachersFromClassroomView,o={actionType:E.UserAction.Dissociate,entity:E.EntityType.Classroom,location:E.LocationContext.Popup,descriptor:E.AssocDescriptor.User,workflowPhase:E.WorkflowPhase.Complete};r.layout.showChildView(S,c.a.createElement(n,{classroomId:e,teacherIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}}],[{key:"router",get:function(){return ft}}]),i}(w),dt="content",ht="popup",yt="alert",mt="hidden",vt=n(61),gt={getVideoAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO,args:[e.id,vt.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[e.id,vt.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:P.a.CONTENT_UPDATES,action:A.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,vt.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:P.a.SUBJECT,action:A.a.Subjects.CLASSIFICATION,args:[e.id,vt.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:P.a.PLAYLISTS,action:A.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME},contentUpdatesAppLink:{application:P.a.CONTENT_UPDATES,action:A.a.ContentUpdates.CONTENT_UPDATES}};function bt(e){return(bt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function St(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Tt(e,t){return(Tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var i=kt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){if(t&&("object"===bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pt=function(e){Ct(n,e);var t=Et(n);function n(){return wt(this,n),t.apply(this,arguments)}return St(n,[{key:"channelName",get:function(){return P.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"latest-releases":"contentUpdates","latest-releases/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),At=function(e){Ct(r,e);var t=Et(r);function r(){return wt(this,r),t.apply(this,arguments)}return St(r,[{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.CONTENT_UPDATES}},{key:"contentUpdates",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(25),n.e(125)]).then(n.bind(null,2179)).then((function(t){var n=t.ContentUpdatesView;e.layout.showChildView(dt,s.createElement(n,{appLinks:gt}))}))}},{key:"classificationUpdate",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(25),n.e(133)]).then(n.bind(null,2180)).then((function(n){var r=n.ClassificationUpdateView;t.layout.showChildView(dt,s.createElement(r,{classificationId:e,appLinks:gt}))}))}}],[{key:"router",get:function(){return Pt}}]),r}(w);function It(e){return(It="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e,t,n){return t&&Lt(e.prototype,t),n&&Lt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nt(e,t)}function Nt(e,t){return(Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ut(e);if(t){var i=Ut(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bt(this,n)}}function Bt(e,t){if(t&&("object"===It(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ut(e){return(Ut=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){jt(n,e);var t=Dt(n);function n(){return xt(this,n),t.apply(this,arguments)}return Rt(n,[{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","discover(/)":"discover","discover/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),Vt=function(e){jt(i,e);var t=Dt(i);function i(){return xt(this,i),t.apply(this,arguments)}return Rt(i,[{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"index",value:function(e){this.discover(e)}},{key:"discover",value:function(e){var t=this;Promise.all([n.e(0),n.e(6),n.e(20)]).then(n.bind(null,2154)).then((function(e){var n=e.DashboardView;t.layout.showChildView(dt,s.createElement(n,null))})),(null==e?void 0:e.upgradeFeedback)&&r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK})}},{key:"dashboard",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(22)]).then(n.bind(null,2191)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(dt,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return Mt}}]),i}(w),Ft=n(271),Ht=n(277),zt=n(60),Wt=n(31),qt=n(454);function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Kt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xt(e,t,n){return t&&Yt(e.prototype,t),n&&Yt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$t(e,t)}function $t(e,t){return($t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=en(e);if(t){var i=en(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(e,t){if(t&&("object"===Gt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tn=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},nn=function(e){Qt(n,e);var t=Zt(n);function n(){return Kt(this,n),t.apply(this,arguments)}return Xt(n,[{key:"channelName",get:function(){return P.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id/edit(/)":"editVideo","videos/:id(/:slug)":"playVideo","videos/:id/clips/new(/)":"createClip","clips/:id/edit(/)":"editClip","clips/:id(/:slug)":"playClip","series/:id(/:slug)":"series","favourites(/)":"favourites","my-videos(/)":"myVideos","shared-by-me(/)":"sharedByMe","shared-with-me(/)":"sharedWithMe","welcome(/)":"upgradeOnboarding","plugin(/)":"plugin","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","previewPdf","previewQuestions","createClipDetails","editClipDetails","deleteClip","viewCurriculumLinks","downloadVideo","deleteVideo","share","pluginShare","pluginNewWindow","uploadImage","editLink","deleteLink","editResource","deleteResource","deleteSubtitle","liteUpgradeFeedback","liteUpgradeVideo"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[et,me,Y,$e]}}]),n}(r.a.AppRouter),rn=function(e){Qt(i,e);var t=Zt(i);function i(){return Kt(this,i),t.apply(this,arguments)}return Xt(i,[{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:R.a.shouldShowNav(),alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.DEFAULT}},{key:"myVideos",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(61)]).then(n.bind(null,2167)).then((function(t){var n=t.MyVideosView;e.layout.showChildView(dt,s.createElement(n,null))}))}},{key:"playVideo",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return tn(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a=this;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=("string"==typeof t?r:t)||{},Promise.all([n.e(0),n.e(3),n.e(4),n.e(6),n.e(36)]).then(n.bind(null,2192)).then((function(t){var n=t.PlayView;a.layout.showChildView(dt,s.createElement(n,{id:e,queryParams:o}))}));case 2:case"end":return i.stop()}}),i)})))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(34),n.e(38)]).then(n.bind(null,2150)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(dt,s.createElement(r,{id:e}))}))}},{key:"series",value:function(e,t,r){var i=this,o=function(t){return{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO,args:[t.id,vt.a.slugify(t.name)],params:{context:Ht.a.Series,contextId:e}}};Promise.all([n.e(0),n.e(3),n.e(4),n.e(19)]).then(n.bind(null,2069)).then((function(t){var n=t.SeriesView;i.layout.showChildView(dt,s.createElement(n,{id:e,classificationId:r.classificationId,getVideoAppLink:o}))}))}},{key:"favourites",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(71)]).then(n.bind(null,2193)).then((function(t){var n=t.FavouritesView;e.layout.showChildView(dt,s.createElement(n,null))}))}},{key:"previewPdf",value:function(e){var t=this;Promise.all([n.e(14),n.e(62),n.e(80)]).then(n.bind(null,2194)).then((function(n){var r=n.PreviewPdfView;t.layout.showChildView(ht,s.createElement(r,{closePopup:function(){return t.layout.closePopup()},id:e}))}))}},{key:"createClip",value:function(e,t){var r=this;n.e(26).then(n.bind(null,2155)).then((function(n){var i=n.EditClipTimepointsView;r.layout.showChildView(dt,s.createElement(i,{videoId:e,startTime:t.startTime}))}))}},{key:"editClip",value:function(e){var t=this;n.e(26).then(n.bind(null,2155)).then((function(n){var r=n.EditClipTimepointsView;t.layout.showChildView(dt,s.createElement(r,{id:e}))}))}},{key:"createClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(28)]).then(n.bind(null,2195)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(ht,s.createElement(i,{videoId:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"editClipDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(28)]).then(n.bind(null,2195)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(ht,s.createElement(i,{id:e,startTime:t.startTime,endTime:t.endTime,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteClip",value:function(e){var t=this;n.e(169).then(n.bind(null,2088)).then((function(n){var r=n.DeleteClipView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"playClip",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};Promise.all([n.e(0),n.e(3),n.e(4),n.e(6),n.e(41)]).then(n.bind(null,2089)).then((function(n){var o=n.PlayClipView,a=("string"==typeof t?i:t)||{};r.layout.showChildView(dt,s.createElement(o,{id:e,queryParams:a}))}))}},{key:"viewCurriculumLinks",value:function(e){var t=this;n.e(95).then(n.bind(null,2090)).then((function(n){var r=n.ViewCurriculumLinksView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(171).then(n.bind(null,2181)).then((function(n){var r=n.DownloadVideoView;t.layout.showChildView(mt,s.createElement(r,{id:e}))}))}},{key:"deleteVideo",value:function(e){var t=this;n.e(170).then(n.bind(null,2091)).then((function(n){var r=n.DeleteVideoView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"share",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(11),n.e(43)]).then(n.bind(null,2157)).then((function(n){var i=n.ShareView;r.layout.showChildView(ht,s.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()},emptyStateImageUrl:zt.a.EmptyStates.TYPEAHEAD_RESULTS,errorStateImageUrl:zt.a.TYPEAHEAD_ERROR}))}))}},{key:"sharedByMe",value:function(){var e=this;Promise.all([n.e(13),n.e(0),n.e(18),n.e(55)]).then(n.bind(null,2158)).then((function(t){var n=t.SharedByMeView;e.layout.showChildView(dt,s.createElement(n,null))}))}},{key:"sharedWithMe",value:function(){var e=this;Promise.all([n.e(13),n.e(0),n.e(18),n.e(134)]).then(n.bind(null,2168)).then((function(t){var n=t.SharedWithMeView;e.layout.showChildView(dt,s.createElement(n,null))}))}},{key:"pluginShare",value:function(e,t){return tn(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o,a=this;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(1),n.e(2),n.e(76)]).then(n.bind(null,2171));case 2:i=r.sent,o=i.PluginShareView,this.layout.showChildView(ht,s.createElement(o,{entityId:e,entityType:t.entityType,closePopup:function(){return a.layout.closePopup()}}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"pluginNewWindow",value:function(e){return tn(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i,o=this;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(172).then(n.bind(null,2092));case 2:r=t.sent,i=r.PluginNewWindowView,this.layout.showChildView(ht,s.createElement(i,{url:e.url,closePopup:function(){return o.layout.closePopup()}}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"upgradeOnboarding",value:function(){return tn(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(100).then(n.bind(null,2093));case 2:t=e.sent,r=t.LiteUpgradeOnboardingView,this.layout.showChildView(dt,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Ft.a)}},{key:"notFound",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(155).then(n.bind(null,2094)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(dt,s.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");Promise.resolve().then(n.bind(null,728)).then((function(n){var r=n.ErrorView;e.layout.showChildView(dt,s.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(143).then(n.bind(null,2095)).then((function(n){var i=n.DialogView;e.layout.showChildView(ht,s.createElement(i,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(142).then(n.bind(null,2096)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(dt,s.createElement(r,{error:t}))}))}},{key:"uploadImage",value:function(e){var t=this,r=function(e,n,r){return qt.a.uploadBase64Image(e,n.split(",")[1],(function(e){r({url:e.location,fileId:e.id,fileIdType:Wt.a.ImageAPIv2})}),null,(function(){return t.layout.closePopup()}))};n.e(144).then(n.bind(null,2196)).then((function(n){var i=n.ImageUploadView;t.layout.showChildView(ht,s.createElement(i,{imageType:e,closePopup:function(){return t.layout.closePopup()},getRequest:r,submitVariant:"dark"}))}))}},{key:"editResource",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(99)]).then(n.bind(null,2197)).then((function(n){var i=n.EditResourceView;r.layout.showChildView(ht,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteResource",value:function(e,t){var r=this;n.e(132).then(n.bind(null,2097)).then((function(n){var i=n.DeleteResourceView;r.layout.showChildView(ht,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteSubtitle",value:function(e,t){var r=this;n.e(120).then(n.bind(null,2098)).then((function(n){var i=n.DeleteSubtitleView;r.layout.showChildView(ht,s.createElement(i,{subtitleId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"editLink",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(91)]).then(n.bind(null,2099)).then((function(n){var i=n.EditLinkView;r.layout.showChildView(ht,s.createElement(i,{linkId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteLink",value:function(e,t){var r=this;n.e(131).then(n.bind(null,2100)).then((function(n){var i=n.DeleteLinkView;r.layout.showChildView(ht,s.createElement(i,{linkId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"liteUpgradeFeedback",value:function(e){var t=this;Promise.all([n.e(141),n.e(124)]).then(n.bind(null,2161)).then((function(n){var r=n.LiteUpgradeFeedbackView;t.layout.showChildView(ht,s.createElement(r,{goToOnline:e.goToOnline,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"liteUpgradeVideo",value:function(){var e=this;n.e(123).then(n.bind(null,2101)).then((function(t){var n=t.LiteUpgradeVideoView;e.layout.showChildView(ht,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return nn}}]),i}(w),on=n(35),an=n(26),sn=n(282),cn=n(82),un=n(113),ln=n(405),fn=n(204),pn=n(278),dn=n(273),hn=n(145);function yn(e){return(yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vn(e,t){return(vn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wn(e);if(t){var i=wn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bn(this,n)}}function bn(e,t){if(t&&("object"===yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function wn(e){return(wn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vn(e,t)}(o,e);var t,n,r,i=gn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Share link has been deleted")}return t=o,(n=[{key:"name",get:function(){return"ShareLinkDeletedError"}},{key:"heading",get:function(){return ne.a.getPhrase("share.shareLinkDeletedError","heading")}},{key:"description",get:function(){return ne.a.getPhrase("share.shareLinkDeletedError","description")}},{key:"imageUrl",get:function(){return zt.a.EmptyStates.Share.DELETED}}])&&mn(t.prototype,n),r&&mn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(hn.a);function Sn(e){return(Sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kn(e);if(t){var i=kn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return On(this,n)}}function On(e,t){if(t&&("object"===Sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kn(e){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tn(e,t)}(o,e);var t,n,r,i=En(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Share link has expired")}return t=o,(n=[{key:"name",get:function(){return"ShareLinkExpiredError"}},{key:"heading",get:function(){return ne.a.getPhrase("share.shareLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return zt.a.EmptyStates.Share.EXPIRED}}])&&Cn(t.prototype,n),r&&Cn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(hn.a),An=n(455),In=n(406),xn=n(411),Ln=n(122);function Rn(e){return(Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return(Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Un(e);if(t){var i=Un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bn(this,n)}}function Bn(e,t){if(t&&("object"===Rn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nn(e,t)}(o,e);var t,n,r,i=Dn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Embed link deleted error")}return t=o,(n=[{key:"name",get:function(){return"EmbedLinkDeletedError"}},{key:"heading",get:function(){return ne.a.getPhrase("embed.embedLinkDeletedError","heading")}},{key:"description",get:function(){return ne.a.getPhrase("embed.embedLinkDeletedError","description")}},{key:"imageUrl",get:function(){return zt.a.EmptyStates.Share.DELETED}}])&&jn(t.prototype,n),r&&jn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ln.a);function Vn(e){return(Vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hn(e,t){return(Hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qn(e);if(t){var i=qn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wn(this,n)}}function Wn(e,t){if(t&&("object"===Vn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gn,Kn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hn(e,t)}(o,e);var t,n,r,i=zn(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,"Embed link expired error")}return t=o,(n=[{key:"name",get:function(){return"EmbedLinkExpiredError"}},{key:"heading",get:function(){return ne.a.getPhrase("embed.embedLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return zt.a.EmptyStates.Share.EXPIRED}}])&&Fn(t.prototype,n),r&&Fn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ln.a),Yn=n(287),Xn=n(397);function Qn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $n,Zn=(Qn(Gn={},an.a.Video,!0),Qn(Gn,an.a.Interactive,!0),Qn(Gn,an.a.Clip,!0),Qn(Gn,an.a.Playlist,!0),Qn(Gn,an.a.Series,!0),Gn),Jn={getErrors:function(e){return e===A.a.Share.VIEW_SHARE_LINK?{notFound:An.a,deleted:_n,private:In.a,unspecified:ee.a,expired:Pn}:{notFound:xn.a,deleted:Mn,private:Xn.a,unspecified:Yn.a,expired:Kn}},throwError:function(e,t){Z.a._forcePushContext(t),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(e)},validateShareLink:function(e,t,n){return Zn[e.objectTypeId]?e.type!==sn.a.ShareLink||e.status!==ln.a.Expired||(Jn.throwError(new n.expired,t),!1):(Jn.throwError(new n.unspecified,t),!1)},onShareLinkError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===un.a.Forbidden?"share-link-deleted"===e.responseJSON.type?Jn.throwError(new n.deleted,t):Jn.throwError(new n.private,t):e.status===un.a.NotFound?Jn.throwError(new n.notFound,t):Jn.throwError(new n.unspecified,t)},onFetchVideoError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===un.a.Forbidden?Jn.throwError(new n.private,t):e.status===un.a.NotFound?Jn.throwError(new n.notFound,t):Jn.throwError(new n.unspecified,t)},goToPortal:function(e,t){r.a.AppLinkUtility.routingEnded(),t.action!==A.a.Share.VIEW_SHARE_LINK?r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN,args:[e]}):r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.PASSWORD_PROTECTED_SHARE_LINK,args:[e],params:{appLink:t}})},goToSignIn:function(e,t){r.a.AppLinkUtility.routingEnded();var n=e.ownerCustomerId;if(t.action!==A.a.Embed.VIEW_EMBEDDED_RESOURCE){var i=r.a.AppLinkHelper.getHref(t),o=t.params||{},a=o.videoId,s=o.clipId,c=o.interactiveId;e.objectTypeId===an.a.Playlist&&(a||s||c)?r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.LOG_IN,params:{redirectUrl:i,customerId:n}}):r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.SHARE_LINK_SIGN_IN,args:[e.id],params:{redirectUrl:i,customerId:n}})}else r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN,args:[e.id],params:{customerId:n}})},getVideo:function(e,t,n,r,o,a){var s=r.objectId,c=r.objectTypeId,u=e.params;(null==u?void 0:u.videoId)?(s=u.videoId,c=an.a.Video):(null==u?void 0:u.clipId)?(s=u.clipId,c=an.a.Clip):(null==u?void 0:u.interactiveId)&&(s=u.interactiveId,c=an.a.Interactive),c!==an.a.Video?c!==an.a.Clip?c!==an.a.Interactive||i.a.hooklessFetch(t,dn.a.sharedInteractiveMetadata(s,n,o,a)):i.a.hooklessFetch(t,pn.a.sharedClip(s,n,o,a)):i.a.hooklessFetch(t,fn.a.sharedVideo(s,n,o,a))}};function er(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var tr=(er($n={},an.a.Video,!0),er($n,an.a.Interactive,!0),er($n,an.a.Clip,!0),$n);function nr(e,t){var n=e.appLink.action===A.a.Share.VIEW_SHARE_LINK,r=e.appLink.action===A.a.Embed.VIEW_EMBEDDED_RESOURCE;if(n||r){var a=Jn.getErrors(e.appLink.action),s=on.a.first(e.appLink.args);if(!s)return Jn.throwError(new a.notFound,e.appLink);i.a.hooklessFetch(e.shell.store,cn.a.getShareObject(s,(function(n){if(Jn.validateShareLink(n,e.appLink,a))return n.type===sn.a.DirectShare?t(e):void function(t){if(!t.isPasswordProtected)return void c(t);var n=be.b.get(s);if(n)return void i.a.hooklessFetch(e.shell.store,cn.a.checkPassword(s,n,(function(n){n.success?c(t):Jn.goToPortal(s,e.appLink)}),(function(){return Jn.goToPortal(s,e.appLink)})));Jn.goToPortal(s,e.appLink)}(n)}),(function(t){Jn.onShareLinkError(t,e.appLink,a)})))}else t(e);function c(n){var r,c,l=tr[n.objectTypeId],f=null!==(c=null===(r=e.appLink)||void 0===r?void 0:r.params)&&void 0!==c?c:{},p=f.videoId,d=f.clipId,h=f.interactiveId;if((p||d||h)&&(l=!0),!l)return n.objectTypeId===an.a.Playlist?void t(e):void i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(e){return u(n,e,!1)}),(function(){return Jn.throwError(new a.unspecified,e.appLink)})));Jn.getVideo(e.appLink,e.shell.store,s,n,(function(r){return function(n,r){var s;if(null===(s=r._canBeConsumed)||void 0===s?void 0:s.value)return void t(e);i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(e){return u(n,e,!0)}),(function(){return Jn.throwError(new a.unspecified,e.appLink)})))}(n,r)}),(function(t){return Jn.onFetchVideoError(t,e.appLink,a)}))}function u(n,r,i){r.isAuthenticated?i?Jn.throwError(new a.private,e.appLink):t(e):Jn.goToSignIn(n,e.appLink)}}function rr(e){return(rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function or(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ar(e,t,n){return t&&or(e.prototype,t),n&&or(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cr(e,t)}function cr(e,t){return(cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ur(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fr(e);if(t){var i=fr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lr(this,n)}}function lr(e,t){if(t&&("object"===rr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pr=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},dr=function(e){sr(n,e);var t=ur(n);function n(){return ir(this,n),t.apply(this,arguments)}return ar(n,[{key:"channelName",get:function(){return P.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shareId":"viewEmbeddedResource","embed-login-success":"embedLoginSuccess","plugin/login(/)":"pluginLogin","videos/embed/:videoId":"viewEmbeddedLcsVideo"}}},{key:"appLinks",get:function(){return["embedLogin","embedError","lcsLogin"]}},{key:"filters",get:function(){return[et,me,nr]}}]),n}(r.a.AppRouter),hr=function(e){sr(r,e);var t=ur(r);function r(){return ir(this,r),t.apply(this,arguments)}return ar(r,[{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:k}}},{key:"channelName",get:function(){return P.a.EMBED}},{key:"viewEmbeddedResource",value:function(e,t){var r=this;n.e(156).then(n.bind(null,2198)).then((function(n){var i=n.BaseEmbedView;r.layout.showChildView(dt,c.a.createElement(i,{shareId:e,queryParams:t}))}))}},{key:"embedLogin",value:function(e,t){return pr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(110).then(n.bind(null,2102));case 2:i=r.sent,o=i.EmbedLoginView,this.layout.showChildView(dt,c.a.createElement(o,{shareId:e,consumerKey:t.consumerKey,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"embedLoginSuccess",value:function(){return pr(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(126).then(n.bind(null,2199));case 2:t=e.sent,r=t.EmbedLoginSuccessView,this.layout.showChildView(dt,c.a.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"embedError",value:function(){return pr(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=u.Radio.channel("error:view").request("current:error"),e.next=3,Promise.resolve().then(n.bind(null,785));case 3:r=e.sent,i=r.EmbedErrorView,this.layout.showChildView(dt,c.a.createElement(i,{error:t}));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"pluginLogin",value:function(e){return pr(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(127).then(n.bind(null,2103));case 2:r=t.sent,i=r.PluginLoginView,this.layout.showChildView(dt,c.a.createElement(i,{returnUrl:e.returnUrl}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"viewEmbeddedLcsVideo",value:function(e,t){return pr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(82).then(n.bind(null,2104));case 2:i=r.sent,o=i.EmbeddedLcsVideoView,this.layout.showChildView(dt,c.a.createElement(o,{id:e,queryParams:t}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"lcsLogin",value:function(e,t){return pr(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(93).then(n.bind(null,2105));case 2:i=r.sent,o=i.EmbeddedLcsLoginView,this.layout.showChildView(dt,c.a.createElement(o,{videoId:e,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}}],[{key:"router",get:function(){return dr}}]),r}(w),yr=n(285);function mr(e){return(mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function br(e,t,n){return t&&gr(e.prototype,t),n&&gr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function wr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_r(e,t)}function _r(e,t){return(_r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Tr(e);if(t){var i=Tr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cr(this,n)}}function Cr(e,t){if(t&&("object"===mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Tr(e){return(Tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Er=function(e){wr(n,e);var t=Sr(n);function n(){return vr(this,n),t.apply(this,arguments)}return br(n,[{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),Or=function(e){wr(r,e);var t=Sr(r);function r(){return vr(this,r),t.apply(this,arguments)}return br(r,[{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"index",value:function(e){var t=this;n.e(128).then(n.bind(null,2200)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(_,s.createElement(yr.a,{view:r,options:{params:e}}))}))}}],[{key:"router",get:function(){return Er}}]),r}(w),kr=n(456);function Pr(e){return(Pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ir(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function xr(e,t,n){return t&&Ir(e.prototype,t),n&&Ir(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Rr(e,t)}function Rr(e,t){return(Rr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dr(e);if(t){var i=Dr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Nr(this,n)}}function Nr(e,t){if(t&&("object"===Pr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Dr(e){return(Dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Br=function(e){Lr(n,e);var t=jr(n);function n(){return Ar(this,n),t.apply(this,arguments)}return xr(n,[{key:"channelName",get:function(){return P.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist","copyPlaylist"]}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),Ur=function(e){Lr(r,e);var t=jr(r);function r(){return Ar(this,r),t.apply(this,arguments)}return xr(r,[{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.PLAYLISTS}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:E.LocationContext.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:P.a.PLAYLISTS,action:A.a.Playlists.PLAYLIST,args:[e.id,vt.a.slugify(e.name)]}},i=e.sort&&kr.a.getSortTypeFromName(e.sort);n.e(42).then(n.bind(null,2182)).then((function(e){var n=e.PlaylistsView;t.layout.showChildView(dt,s.createElement(n,{getPlaylistAppLink:r,sort:i}))}))}},{key:"playlist",value:function(e,t,r){var i=this,o="string"==typeof t?null==r?void 0:r.classificationId:null==t?void 0:t.classificationId,a=function(e){return{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[e.id,vt.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(3),n.e(4),n.e(17)]).then(n.bind(null,2064)).then((function(t){var n=t.PlaylistView;i.layout.showChildView(dt,s.createElement(n,{key:e,playlistId:e,getSeriesAppLink:a,classificationId:o}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(89)]).then(n.bind(null,2106)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(ht,s.createElement(n,Object.assign({application:P.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(88)]).then(n.bind(null,2107)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(ht,s.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(135).then(n.bind(null,2108)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(ht,s.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(47)]).then(n.bind(null,2183)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(ht,s.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(158).then(n.bind(null,2109)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(ht,s.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"copyPlaylist",value:function(e){var t=this;n.e(157).then(n.bind(null,2110)).then((function(n){var r=n.CopyPlaylistView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Br}}]),r}(w);function Mr(e){return(Mr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hr(e,t,n){return t&&Fr(e.prototype,t),n&&Fr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Wr(e,t)}function Wr(e,t){return(Wr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function qr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Kr(e);if(t){var i=Kr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Gr(this,n)}}function Gr(e,t){if(t&&("object"===Mr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yr=function(e){zr(n,e);var t=qr(n);function n(){return Vr(this,n),t.apply(this,arguments)}return Hr(n,[{key:"channelName",get:function(){return P.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),Xr=function(e){zr(r,e);var t=qr(r);function r(){return Vr(this,r),t.apply(this,arguments)}return Hr(r,[{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.SEARCH}},{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(6),n.e(35)]).then(n.bind(null,2152)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(dt,s.createElement(r,{queryParams:e}),{preventScrollTop:!0})}))}}],[{key:"router",get:function(){return Yr}}]),r}(w);function Qr(e){return(Qr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jr(e,t,n){return t&&Zr(e.prototype,t),n&&Zr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ei(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ti(e,t)}function ti(e,t){return(ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ii(e);if(t){var i=ii(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ri(this,n)}}function ri(e,t){if(t&&("object"===Qr(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ii(e){return(ii=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oi=function(e){ei(n,e);var t=ni(n);function n(){return $r(this,n),t.apply(this,arguments)}return Jr(n,[{key:"channelName",get:function(){return P.a.SUBJECT}},{key:"appRoutes",get:function(){return{"topics(/)":"classificationAll","topics/onboarding(/)":"onboarding","topics/onboarding/welcome(/)":"onboardingWelcome","topics/onboarding/school-level(/)":"onboardingTopicPresentation","topics/onboarding/curriculum(/)":"onboardingCurriculumPresentation","topics/onboarding/levels(/)":"onboardingLevels","topics/onboarding/topics(/)":"onboardingTopics","topics/onboarding/summary(/)":"onboardingSummary","topics/onboarding/*path":"onboardingCatchAll","topics/:id/topics":"classificationTopics","topics/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),ai=function(e){ei(i,e);var t=ni(i);function i(){return $r(this,i),t.apply(this,arguments)}return Jr(i,[{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return P.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:R.a.shouldShowNav(),alertRegion:C}}}},{key:"classificationAll",value:function(){var e=this;Promise.all([n.e(10),n.e(24)]).then(n.bind(null,2111)).then((function(t){var n=t.ClassificationsView;e.layout.showChildView(_,s.createElement(n,null))}))}},{key:"classificationTopics",value:function(e){var t=this;Promise.all([n.e(10),n.e(24)]).then(n.bind(null,2111)).then((function(n){var r=n.ClassificationsView;t.layout.showChildView(_,s.createElement(r,{id:e}))}))}},{key:"classification",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(6),n.e(10),n.e(39)]).then(n.bind(null,2162)).then((function(t){var n=t.ClassificationView;i.layout.showChildView(_,s.createElement(n,{key:e,id:e,queryParams:r}))}))}},{key:"onboarding",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(90).then(n.bind(null,2112)).then((function(n){var r=n.BaseOnboardingView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingWelcome",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(72).then(n.bind(null,2113)).then((function(n){var r=n.OnboardingWelcomeView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingTopicPresentation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(7),n.e(58)]).then(n.bind(null,2114)).then((function(n){var r=n.OnboardingTopicPresentationSelectorView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingCurriculumPresentation",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(7),n.e(57)]).then(n.bind(null,2115)).then((function(n){var r=n.OnboardingCurriculumPresentationSelectorView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingLevels",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(7),n.e(56)]).then(n.bind(null,2116)).then((function(n){var r=n.OnboardingAudiencePreferencesView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingTopics",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(7),n.e(49)]).then(n.bind(null,2117)).then((function(n){var r=n.OnboardingTopicPreferencesView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingSummary",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Promise.all([n.e(7),n.e(44)]).then(n.bind(null,2184)).then((function(n){var r=n.OnboardingSummaryView;e.layout.showChildView(_,s.createElement(r,{redirectUrl:t.redirectUrl||""}))}))}},{key:"onboardingCatchAll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a.AppLinkHelper.trigger({application:P.a.SUBJECT,action:A.a.Subjects.ONBOARDING,params:e},{replace:!0})}}],[{key:"router",get:function(){return oi}}]),i}(w);function si(e){return(si="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function li(e,t,n){return t&&ui(e.prototype,t),n&&ui(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pi(e,t)}function pi(e,t){return(pi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function di(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yi(e);if(t){var i=yi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hi(this,n)}}function hi(e,t){if(t&&("object"===si(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function yi(e){return(yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var mi=function(e){fi(n,e);var t=di(n);function n(){return ci(this,n),t.apply(this,arguments)}return li(n,[{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload","uploadImage"]}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),vi=function(e){fi(r,e);var t=di(r);function r(){return ci(this,r),t.apply(this,arguments)}return li(r,[{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(109)]).then(n.bind(null,2201)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(S,s.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(163).then(n.bind(null,2118)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(S,s.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return mi}}]),r}(w);function gi(e){return(gi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _i(e,t,n){return t&&wi(e.prototype,t),n&&wi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Si(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ci(e,t)}function Ci(e,t){return(Ci=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oi(e);if(t){var i=Oi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ei(this,n)}}function Ei(e,t){if(t&&("object"===gi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oi(e){return(Oi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ki=function(e){Si(n,e);var t=Ti(n);function n(){return bi(this,n),t.apply(this,arguments)}return _i(n,[{key:"channelName",get:function(){return P.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/staff(/)":"staffManager","user-manager/users/upload/edit":"bulkUserUploadEdit","user-manager/users/upload/duplicates":"bulkUserUploadDuplicates","user-manager/users/upload/review":"bulkUserUploadReview"}}},{key:"appLinks",get:function(){return["createUser","editUser","bulkRemoveUsers","toggleUserStatus","bulkUserUploadPopup","bulkUserUploadSuccess","changeStudentPassword","exportUserList"]}},{key:"filters",get:function(){return[et,me,Y,$e]}}]),n}(r.a.AppRouter),Pi=function(e){Si(r,e);var t=Ti(r);function r(){return bi(this,r),t.apply(this,arguments)}return _i(r,[{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return P.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(5),n.e(16),n.e(167)]).then(n.bind(null,2202)).then((function(n){var r=n.StudentManagerView;t.layout.showChildView(_,s.createElement(r,{queryParams:e}))}))}},{key:"staffManager",value:function(e){var t=this;Promise.all([n.e(5),n.e(16),n.e(166)]).then(n.bind(null,2203)).then((function(n){var r=n.StaffManagerView;t.layout.showChildView(_,s.createElement(r,{queryParams:e}))}))}},{key:"createUser",value:function(e){var t=this;Promise.all([n.e(1),n.e(5),n.e(9),n.e(105)]).then(n.bind(null,2119)).then((function(n){var r=n.CreateUserView,i={actionType:E.UserAction.Create,entity:E.EntityType.User,workflowPhase:E.WorkflowPhase.Complete,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.Popup};t.layout.showChildView(S,s.createElement(r,{userType:e.userType,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUser",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(5),n.e(9),n.e(106)]).then(n.bind(null,2120)).then((function(n){var i=n.EditUserView,o={actionType:E.UserAction.Edit,entity:E.EntityType.User,workflowPhase:E.WorkflowPhase.Complete,location:E.LocationContext.Popup};r.layout.showChildView(S,s.createElement(i,{id:e,userType:t.userType,analyticsOptions:o,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"bulkRemoveUsers",value:function(e){var t=this,r=e.userType;Promise.all([n.e(5),n.e(129)]).then(n.bind(null,2204)).then((function(e){var n=e.BulkRemoveUsersView;t.layout.showChildView(S,s.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"toggleUserStatus",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Promise.all([n.e(5),n.e(130)]).then(n.bind(null,2205)).then((function(n){var i=n.ToggleUserStatusView;t.layout.showChildView(S,s.createElement(i,{id:e,userType:r.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"changeStudentPassword",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(5),n.e(92)]).then(n.bind(null,2206)).then((function(n){var r=n.ChangeStudentPasswordView;t.layout.showChildView(S,s.createElement(r,{studentId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"exportUserList",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.userType;Promise.all([n.e(5),n.e(165)]).then(n.bind(null,2207)).then((function(t){var n=t.ExportUserListView;e.layout.showChildView(T,s.createElement(n,{userType:r,onDone:function(){return e.layout.unsetRegion(T)}}))}))}},{key:"bulkUserUploadPopup",value:function(e){var t=this,r=e.userType;Promise.all([n.e(1),n.e(2),n.e(5),n.e(65)]).then(n.bind(null,2153)).then((function(e){var n=e.BulkUserUploadPopupView;t.layout.showChildView(S,s.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"bulkUserUploadEdit",value:function(){var e=this,t=be.a.get(_e.a.BULK_USER_UPLOAD);Promise.all([n.e(1),n.e(5),n.e(9),n.e(27),n.e(107)]).then(n.bind(null,2172)).then((function(n){var r=n.BulkUserUploadEditView;e.layout.showChildView(_,s.createElement(r,{key:"bulk-user-upload-edit-".concat((new Date).toString()),userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadDuplicates",value:function(){var e=this,t=be.a.get(_e.a.BULK_USER_UPLOAD);Promise.all([n.e(1),n.e(5),n.e(9),n.e(27),n.e(164)]).then(n.bind(null,2169)).then((function(n){var r=n.BulkUserUploadDuplicatesView;e.layout.showChildView(_,s.createElement(r,{userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadReview",value:function(){var e=this,t=be.a.get(_e.a.BULK_USER_UPLOAD);Promise.all([n.e(5),n.e(68)]).then(n.bind(null,2185)).then((function(n){var r=n.BulkUserUploadReviewView;e.layout.showChildView(_,s.createElement(r,{userType:t,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"bulkUserUploadSuccess",value:function(){var e=this,t=be.a.get(_e.a.BULK_USER_UPLOAD);Promise.all([n.e(5),n.e(84)]).then(n.bind(null,2121)).then((function(n){var r=n.BulkUserUploadSuccessView;e.layout.showChildView(_,s.createElement(r,{closePopup:function(){return e.layout.closePopup()},userType:t}))}))}}],[{key:"router",get:function(){return ki}}]),r}(w);function Ai(e){return(Ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ii(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Li(e,t,n){return t&&xi(e.prototype,t),n&&xi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ri(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ji(e,t)}function ji(e,t){return(ji=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ni(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Bi(e);if(t){var i=Bi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Di(this,n)}}function Di(e,t){if(t&&("object"===Ai(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Bi(e){return(Bi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ui=function(e){Ri(n,e);var t=Ni(n);function n(){return Ii(this,n),t.apply(this,arguments)}return Li(n,[{key:"channelName",get:function(){return P.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index","settings/profile(/)":"profileDetails","settings/account(/)":"account","settings/integrations(/)":"integrations","settings/lti(/)":"ltiPlatforms","settings/lti/consumer/:key(/)":"editLtiConsumer","settings/lti/platform/:key(/)":"editLtiPlatform","settings/video-playback(/)":"videoPlayback","settings/preferences/topics(/)":"topicPreferences","settings/preferences/year-groups(/)":"audiencePreferences","settings/preferences/curriculum(/)":"curriculum","settings/preferences/school-level(/)":"schoolLevel","settings/security(/)":"security","settings/content-permissions(/)":"contentPermissions","settings/archived-classrooms(/)":"archivedClassrooms"}}},{key:"appLinks",get:function(){return["createLtiPlatform","deleteLtiPlatform"]}},{key:"filters",get:function(){return[et,me,Y,$e]}}]),n}(r.a.AppRouter),Mi=function(e){Ri(i,e);var t=Ni(i);function i(){return Ii(this,i),t.apply(this,arguments)}return Li(i,[{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.SETTINGS}},{key:"index",value:function(){var e=this;n.e(113).then(n.bind(null,2186)).then((function(t){var n=t.SettingsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"profileDetails",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(5),n.e(70)]).then(n.bind(null,2170)).then((function(t){var n=t.ProfileDetailsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"account",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(5),n.e(69)]).then(n.bind(null,2159)).then((function(t){var n=t.AccountSettingsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"integrations",value:function(){var e=this;n.e(67).then(n.bind(null,2187)).then((function(t){var n=t.IntegrationSettingsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"videoPlayback",value:function(){var e=this;Promise.all([n.e(1),n.e(66)]).then(n.bind(null,2163)).then((function(t){var n=t.VideoPlaybackSettingsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"contentPermissions",value:function(){var e=this;Promise.all([n.e(13),n.e(64)]).then(n.bind(null,2188)).then((function(t){var n=t.ContentPermissionsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"ltiPlatforms",value:function(){var e=this;n.e(78).then(n.bind(null,2164)).then((function(t){var n=t.LtiPlatformsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"editLtiPlatform",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(21),n.e(117)]).then(n.bind(null,2173)).then((function(n){var r=n.EditLtiPlatformView;t.layout.showChildView(dt,c.a.createElement(r,{platformId:e}))}))}},{key:"editLtiConsumer",value:function(e){var t=this;Promise.all([n.e(1),n.e(2),n.e(21),n.e(116)]).then(n.bind(null,2174)).then((function(n){var r=n.EditLtiConsumerView;t.layout.showChildView(dt,c.a.createElement(r,{consumerKey:e}))}))}},{key:"createLtiPlatform",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(98)]).then(n.bind(null,2208)).then((function(t){var n=t.CreateLtiPlatformView;e.layout.showChildView(ht,c.a.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"deleteLtiPlatform",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=t.consumerKey,o=t.platformId;i||o?i&&o?r.a.ErrorHelper.throw(new ve.a("AppLink for deleting LTI platforms cannot accept both a consumerKey and platformId")):n.e(140).then(n.bind(null,2122)).then((function(t){var n=t.DeleteLtiPlatformView;e.layout.showChildView(ht,c.a.createElement(n,{closePopup:function(){return e.layout.closePopup()},consumerKey:i,platformId:o}))})):r.a.ErrorHelper.throw(new ve.a("AppLink for deleting LTI platforms requires either a consumerKey or platformId query params"))}},{key:"topicPreferences",value:function(){var e=this;Promise.all([n.e(7),n.e(45)]).then(n.bind(null,2123)).then((function(t){var n=t.TopicPreferencesView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"audiencePreferences",value:function(){var e=this;Promise.all([n.e(7),n.e(52)]).then(n.bind(null,2124)).then((function(t){var n=t.AudiencePreferencesView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"curriculum",value:function(){var e=this;Promise.all([n.e(7),n.e(53)]).then(n.bind(null,2125)).then((function(t){var n=t.CurriculumSelectorView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"schoolLevel",value:function(){var e=this;Promise.all([n.e(7),n.e(54)]).then(n.bind(null,2126)).then((function(t){var n=t.SchoolLevelSelectorView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"security",value:function(){var e=this;Promise.all([n.e(1),n.e(2),n.e(81)]).then(n.bind(null,2175)).then((function(t){var n=t.SecuritySettingsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}},{key:"archivedClassrooms",value:function(){var e=this;Promise.all([n.e(23),n.e(85)]).then(n.bind(null,2189)).then((function(t){var n=t.ArchivedClassroomsView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return Ui}}]),i}(w);function Vi(e){return(Vi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zi(e,t,n){return t&&Hi(e.prototype,t),n&&Hi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wi(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qi(e,t)}function qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yi(e);if(t){var i=Yi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ki(this,n)}}function Ki(e,t){if(t&&("object"===Vi(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xi=function(e){Wi(n,e);var t=Gi(n);function n(){return Fi(this,n),t.apply(this,arguments)}return zi(n,[{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),Qi=function(e){Wi(r,e);var t=Gi(r);function r(){return Fi(this,r),t.apply(this,arguments)}return zi(r,[{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(60)]).then(n.bind(null,2176)).then((function(t){var n=t.WatchHistoryView;e.layout.showChildView(dt,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return Xi}}]),r}(w);function $i(e){return($i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function eo(e,t,n){return t&&Ji(e.prototype,t),n&&Ji(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function to(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&no(e,t)}function no(e,t){return(no=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ro(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oo(e);if(t){var i=oo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return io(this,n)}}function io(e,t){if(t&&("object"===$i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oo(e){return(oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ao=function(e){to(n,e);var t=ro(n);function n(){return Zi(this,n),t.apply(this,arguments)}return eo(n,[{key:"channelName",get:function(){return P.a.SHARE}},{key:"appRoutes",get:function(){return{"share/:id(/)":"viewShareLink"}}},{key:"appLinks",get:function(){return["shareLinkError"]}},{key:"filters",get:function(){return[et,me,nr]}}]),n}(r.a.AppRouter),so=function(e){to(r,e);var t=ro(r);function r(){return Zi(this,r),t.apply(this,arguments)}return eo(r,[{key:"name",get:function(){return"Share Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:R.a.shouldShowNav(),alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.SHARE}},{key:"viewShareLink",value:function(e,t){var r=this;n.e(159).then(n.bind(null,2209)).then((function(n){var i=n.BaseShareLinkView;r.layout.showChildView(dt,s.createElement(i,{key:"".concat(e,":").concat(we.LocationUtils.SerializeQueryParams(t)),shareId:e,queryParams:t}))}))}},{key:"shareLinkError",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(160).then(n.bind(null,2127)).then((function(n){var r=n.ShareLinkErrorView;e.layout.showChildView(dt,s.createElement(r,{error:t}))}))}}],[{key:"router",get:function(){return ao}}]),r}(w);function co(e){return(co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function uo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fo(e,t,n){return t&&lo(e.prototype,t),n&&lo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function po(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ho(e,t)}function ho(e,t){return(ho=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vo(e);if(t){var i=vo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mo(this,n)}}function mo(e,t){if(t&&("object"===co(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function vo(e){return(vo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var go=function(e){po(n,e);var t=yo(n);function n(){return uo(this,n),t.apply(this,arguments)}return fo(n,[{key:"channelName",get:function(){return P.a.INTERACTIVES}},{key:"appRoutes",get:function(){return{"interactive/:id/edit":"editInteractive","interactive/:id(/:slug)":"interactive"}}},{key:"appLinks",get:function(){return["editInteractiveDetails","previewQuestions","printQuestions","copyInteractive","newInteractive","newClipInteractive","unpublishInteractive","shareInteractive","deleteInteractive"]}},{key:"filters",get:function(){return[et,me,Y,$e]}}]),n}(r.a.AppRouter),bo=function(e){po(r,e);var t=yo(r);function r(){return uo(this,r),t.apply(this,arguments)}return fo(r,[{key:"name",get:function(){return"Interactives Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"channelName",get:function(){return P.a.INTERACTIVES}},{key:"interactive",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=("string"==typeof t?i:t)||{};Promise.all([n.e(8),n.e(0),n.e(3),n.e(4),n.e(32)]).then(n.bind(null,2128)).then((function(t){var n=t.InteractiveView;r.layout.showChildView(dt,s.createElement(n,{id:e,queryParams:o}))}))}},{key:"newInteractive",value:function(e){var t=this;n.e(108).then(n.bind(null,2129)).then((function(n){var r=n.NewInteractiveView;t.layout.showChildView(ht,s.createElement(r,{videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newClipInteractive",value:function(e){var t=this;n.e(114).then(n.bind(null,2210)).then((function(n){var r=n.NewClipInteractiveView;t.layout.showChildView(ht,s.createElement(r,{clipId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editInteractive",value:function(e){var t=this;Promise.all([n.e(8),n.e(15),n.e(63)]).then(n.bind(null,2177)).then((function(n){var r=n.EditInteractiveView;t.layout.showChildView(dt,s.createElement(r,{id:e}))}))}},{key:"editInteractiveDetails",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(2),n.e(0),n.e(86)]).then(n.bind(null,2211)).then((function(n){var i=n.EditInteractiveDetailsView;r.layout.showChildView(ht,s.createElement(i,{interactiveMetadataId:e,publish:!!t.publish,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"previewQuestions",value:function(e){var t=this;Promise.all([n.e(14),n.e(59)]).then(n.bind(null,2130)).then((function(n){var r=n.PreviewQuestionsView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"printQuestions",value:function(e){var t=this;Promise.all([n.e(14),n.e(115)]).then(n.bind(null,2131)).then((function(n){var r=n.PrintInteractiveView;t.layout.showChildView(ht,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"copyInteractive",value:function(e,t){var r=this;n.e(121).then(n.bind(null,2132)).then((function(n){var i=n.CopyInteractiveView;r.layout.showChildView(ht,s.createElement(i,{interactiveMetadataId:e,closePopup:function(){return r.layout.closePopup()},fromEdit:t.fromEdit}))}))}},{key:"shareInteractive",value:function(e){var t=this;n.e(138).then(n.bind(null,2133)).then((function(n){var r=n.ShareInteractiveView;t.layout.showChildView(ht,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"unpublishInteractive",value:function(e){var t=this;n.e(139).then(n.bind(null,2134)).then((function(n){var r=n.UnpublishInteractiveView;t.layout.showChildView(ht,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteInteractive",value:function(e){var t=this;n.e(137).then(n.bind(null,2135)).then((function(n){var r=n.DeleteInteractiveView;t.layout.showChildView(ht,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return go}}]),r}(w);function wo(e){return(wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function So(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Co(e,t,n){return t&&So(e.prototype,t),n&&So(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function To(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eo(e,t)}function Eo(e,t){return(Eo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Po(e);if(t){var i=Po(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ko(this,n)}}function ko(e,t){if(t&&("object"===wo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Po(e){return(Po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ao=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Io=function(e){To(n,e);var t=Oo(n);function n(){return _o(this,n),t.apply(this,arguments)}return Co(n,[{key:"channelName",get:function(){return P.a.LAUNCHPAD}},{key:"appRoutes",get:function(){return{join:"joinClassroomPrompt","join/:code(/)":"joinClassroom"}}},{key:"appLinks",get:function(){return["passwordProtectedShareLink","shareLinkSignIn","loginLanding"]}},{key:"filters",get:function(){return[et]}}]),n}(r.a.AppRouter),xo=function(e){To(i,e);var t=Oo(i);function i(){return _o(this,i),t.apply(this,arguments)}return Co(i,[{key:"name",get:function(){return"Launchpad Application"}},{key:"layoutOptions",get:function(){return{name:k}}},{key:"channelName",get:function(){return P.a.LAUNCHPAD}},{key:"passwordProtectedShareLink",value:function(e,t){return Ao(this,void 0,void 0,regeneratorRuntime.mark((function i(){var o,a;return regeneratorRuntime.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.e(104).then(n.bind(null,2136));case 2:if(o=i.sent,a=o.PasswordProtectedShareLinkView,null==t?void 0:t.appLink){i.next=7;break}return r.a.ErrorHelper.throw(new ve.a("PasswordProtectedShareLinkView must be passed an appLink as a param")),i.abrupt("return");case 7:this.layout.showChildView(dt,s.createElement(a,{shareId:e,appLink:t.appLink}));case 8:case"end":return i.stop()}}),i,this)})))}},{key:"shareLinkSignIn",value:function(e,t){return Ao(this,void 0,void 0,regeneratorRuntime.mark((function r(){var i,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(103).then(n.bind(null,2137));case 2:i=r.sent,o=i.ShareLinkSignIn,this.layout.showChildView(dt,s.createElement(o,{shareId:e,redirectUrl:t.redirectUrl,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"joinClassroomPrompt",value:function(){return Ao(this,void 0,void 0,regeneratorRuntime.mark((function e(){var t,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(94).then(n.bind(null,2212));case 2:t=e.sent,r=t.JoinClassroomPromptView,this.layout.showChildView(dt,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"joinClassroom",value:function(e){return Ao(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(111).then(n.bind(null,2213));case 2:r=t.sent,i=r.JoinClassroomView,this.layout.showChildView(dt,s.createElement(i,{joinCode:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"loginLanding",value:function(e){return Ao(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(112).then(n.bind(null,2138));case 2:r=t.sent,i=r.LoginLandingView,this.layout.showChildView(dt,s.createElement(i,{skipPrompt:e.skipPrompt,showJoinCode:e.showJoinCode,customerId:e.customerId}));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"router",get:function(){return Io}}]),i}(w),Lo=n(412);function Ro(e){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function No(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t,n){return t&&No(e.prototype,t),n&&No(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Uo(e,t)}function Uo(e,t){return(Uo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fo(e);if(t){var i=Fo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vo(this,n)}}function Vo(e,t){if(t&&("object"===Ro(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fo(e){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ho=function(e){Bo(n,e);var t=Mo(n);function n(){return jo(this,n),t.apply(this,arguments)}return Do(n,[{key:"channelName",get:function(){return P.a.LIBRARIES}},{key:"appRoutes",get:function(){return{"libraries/:id/recently-added":"recentlyAdded","libraries/:id(/:slug)":"library","libraries/:id/folders/:id(/:slug)":"folder"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),zo=function(e){Bo(r,e);var t=Mo(r);function r(){return jo(this,r),t.apply(this,arguments)}return Do(r,[{key:"name",get:function(){return"Libraries Application"}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:C}}}},{key:"channelName",get:function(){return P.a.LIBRARIES}},{key:"library",value:function(e){var t=this;Promise.all([n.e(0),n.e(6),n.e(50)]).then(n.bind(null,2139)).then((function(n){var r=n.LibraryView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"recentlyAdded",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(51)]).then(n.bind(null,2140)).then((function(n){var r=n.RecentlyAddedView;t.layout.showChildView(_,c.a.createElement(r,{id:e}))}))}},{key:"folder",value:function(e,t,r,i){var o=this,a="string"==typeof r?null==i?void 0:i.sort:null==r?void 0:r.sort,s=a&&Lo.a.getValidSortTypeFromParam(a);Promise.all([n.e(0),n.e(3),n.e(4),n.e(46)]).then(n.bind(null,2190)).then((function(n){var r=n.LibraryFolderView;o.layout.showChildView(_,c.a.createElement(r,{libraryId:e,folderId:t,sort:s}))}))}}],[{key:"router",get:function(){return Ho}}]),r}(w);function Wo(e){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function qo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ko(e,t,n){return t&&Go(e.prototype,t),n&&Go(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xo(e,t)}function Xo(e,t){return(Xo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zo(e);if(t){var i=Zo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return $o(this,n)}}function $o(e,t){if(t&&("object"===Wo(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Zo(e){return(Zo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jo=function(e){Yo(n,e);var t=Qo(n);function n(){return qo(this,n),t.apply(this,arguments)}return Ko(n,[{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"discover(/)":"index","discover/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),ea=function(e){Yo(r,e);var t=Qo(r);function r(){return qo(this,r),t.apply(this,arguments)}return Ko(r,[{key:"name",get:function(){return"Student Discover Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(6),n.e(20)]).then(n.bind(null,2154)).then((function(t){var n=t.DashboardView;e.layout.showChildView(dt,s.createElement(n,null))}))}},{key:"dashboard",value:function(e){var t=this;Promise.all([n.e(0),n.e(3),n.e(4),n.e(22)]).then(n.bind(null,2191)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(dt,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return Jo}}]),r}(w);function ta(e){return(ta="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function na(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ia(e,t,n){return t&&ra(e.prototype,t),n&&ra(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oa(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aa(e,t)}function aa(e,t){return(aa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function sa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ua(e);if(t){var i=ua(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ca(this,n)}}function ca(e,t){if(t&&("object"===ta(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ua(e){return(ua=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var la=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},fa=function(e){oa(n,e);var t=sa(n);function n(){return na(this,n),t.apply(this,arguments)}return ia(n,[{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"appRoutes",get:function(){return{"(/)":"index"}}},{key:"filters",get:function(){return[et,me,Y]}}]),n}(r.a.AppRouter),pa=function(e){oa(r,e);var t=sa(r);function r(){return na(this,r),t.apply(this,arguments)}return ia(r,[{key:"name",get:function(){return"Student Feed Application"}},{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"layoutOptions",get:function(){return{name:O,options:{showNav:!0,alertRegion:yt}}}},{key:"index",value:function(e){return la(this,void 0,void 0,regeneratorRuntime.mark((function t(){var r,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(0),n.e(3),n.e(6),n.e(48)]).then(n.bind(null,2151));case 2:r=t.sent,i=r.StudentFeedView,this.layout.showChildView(dt,s.createElement(i,{date:e.date,key:e.date}));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"router",get:function(){return fa}}]),r}(w);var da,ha=n(4);!function(e){e.Fifo="FifoMemoryCache"}(da||(da={}));var ya=n(103),ma=n(18);function va(e){return(va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ga(e){return function(e){if(Array.isArray(e))return ba(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ba(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ba(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ba(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _a(e,t){return(_a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ta(e);if(t){var i=Ta(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ca(this,n)}}function Ca(e,t){if(t&&("object"===va(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ta(e){return(Ta=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ea=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_a(e,t)}(o,e);var t,n,r,i=Sa(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=o,(n=[{key:"name",get:function(){return da.Fifo}},{key:"removeCacheKey",value:function(e){this.cachedkeys=ha.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||ma.c.throw(new ve.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=ha.object(this.cachedkeys,this.cachedkeys),i=[];ha.each(e,(function(e){var t;r[e]&&i.push(e);var n=new RegExp(e,"i"),o=ha.filter(r,(function(e){return n.test(e)}));(t=i).push.apply(t,ga(o))})),i.length&&(i=ha.uniq(i),ha.each(i,(function(e){delete n.cache[e],ha.isFunction(t)&&t(e)})),this.cachedkeys=ha.without.apply(ha,[this.cachedkeys].concat(ga(i))))}}])&&wa(t.prototype,n),r&&wa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ya.a);var Oa,ka=n(71),Pa=n(221),Aa=n(15),Ia=n(173);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(Oa||(Oa={}));var xa=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function La(e){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ra(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ja(e,t){return(ja=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Na(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ba(e);if(t){var i=Ba(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Da(this,n)}}function Da(e,t){if(t&&("object"===La(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ba(e){return(Ba=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ua=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ja(e,t)}(o,e);var t,n,r,i=Na(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=o,(n=[{key:"name",get:function(){return Oa.Ajax}},{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=Aa.a.GET);var i=ha.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===Aa.a.POST||n===Aa.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);var a=$.ajax(o);return ha.keys(this.successMiddleware).length&&a.done(ha.values(this.successMiddleware)),ha.keys(this.errorMiddleware).length&&a.fail(ha.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,Aa.a.POST).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,Aa.a.GET).done((function(e,t,i){n.trigger(r,e,t,i)})).fail((function(e,t,r){n.trigger(i,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.base(e,t,Aa.a.PUT).done((function(e,t,n){return r.trigger(i,e,t,n)})).fail((function(e,t,n){return r.trigger(o,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,i=t.errorEvent;this.base(e,null,Aa.a.DELETE).done((function(e,t,i){return n.trigger(r,e,t,i)})).fail((function(e,t,r){return n.trigger(i,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e){var t=e.responseJSON,n=Pa.a;switch(n.code=e.status,n.message=xa(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=Ia.a.BadRequest;break;case 401:n.type=Ia.a.Unauthorized;break;case 403:n.type=Ia.a.Forbidden;break;case 404:n.type=Ia.a.NotFound;break;case 500:n.type=Ia.a.InternalServer}return n}}])&&Ra(t.prototype,n),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ka.Object);var Ma=n(77),Va=n(92);function Fa(e){return(Fa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ha(e){return function(e){if(Array.isArray(e))return za(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return za(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return za(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function za(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wa(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qa(e,t){return(qa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ga(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xa(e);if(t){var i=Xa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ka(this,n)}}function Ka(e,t){if(t&&("object"===Fa(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ya(e)}function Ya(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qa=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qa(e,t)}(o,e);var t,n,r,i=Ga(o);function o(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),t=i.call(this,e),ha.result(Ya(t),"name")||ma.c.throw(new ve.a("Must provide a name when extending BaseDataService")),ha.result(Ya(t),"channelName")||ma.c.throw(new ve.a("Must provide a channelName for ".concat(ha.result(Ya(t),"name"))));var n=[].concat(Ha(t.defaultProps),Ha(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=o,(n=[{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}},{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=this.getEventNames(i),a=o.syncEvent,s=o.errorEvent,c=this.cache.get(i);if(c&&c.openRequest)return this.listenToOnce(this.getChannel(),a,(function(e){ha.isFunction(r)&&t.stopListening(t.getChannel(),s,r),ha.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),s,(function(){ha.isFunction(n)&&t.stopListening(t.getChannel(),a,n),ha.isFunction(r)&&r()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,r=e.errorCallback,i=e.eventPrefix,o=e.resource,a=e.formatData,s=e.expiryTime,c=e.successHandler,u=e.errorHandler,l=e.bootstrapName,f=this.getEventNames(i),p=f.syncEvent,d=f.requestEvent,h=f.successEvent,y=f.errorEvent,m=this.getChannel(),v=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(i,this.bootstrapData[l],a,{openRequest:!1,timestamp:v}),delete this.bootstrapData[l]);var g,b=this.cache.get(i);b&&(g=b.data);var w=b&&b.openRequest,_=this.isExpired(i,s);if(w&&(this.listenToOnce(m,p,(function(e){ha.isFunction(r)&&t.stopListening(t.getChannel(),y,r),ha.isFunction(n)&&n(e)})),this.listenToOnce(m,y,(function(){ha.isFunction(n)&&t.stopListening(t.getChannel(),p,n),ha.isFunction(r)&&r()}))),this.cache.has(i)&&!_||(m.trigger(d),this.listenToResponse({eventPrefix:i,formatData:a,cacheOptions:{timestamp:v},callback:n,errorCallback:r,successHandler:c,errorHandler:u}),this.cacheData(i,null,null,{openRequest:!0,timestamp:v}),this.dataProvider.read(o,{channel:this.getTransportChannel(),successEvent:h,errorEvent:y})),g&&ha.isFunction(n)&&!_&&n(g),g)return g}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,i=e.formatData,o=e.callback,a=e.errorCallback,s=e.invalidationKeys,c=e.successHandler,u=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:o,errorCallback:a,successHandler:c,errorHandler:u}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:d})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,i=e.resource,o=e.formatData,a=e.eventPrefix,s=e.invalidationKeys,c=e.errorHandler,u=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,d=l.errorEvent,h=this.getChannel(),y=this.getTransportChannel();h.trigger(f),this.listenToResponse({eventPrefix:a,formatData:o,invalidationKeys:s,callback:n,errorCallback:r,successHandler:u,errorHandler:c}),this.dataProvider.update(i,t,{channel:y,successEvent:p,errorEvent:d})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,i=e.errorCallback,o=e.invalidationKeys,a=e.successHandler,s=e.errorHandler,c=this.getEventNames(t),u=c.successEvent,l=c.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:o,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:s}),this.dataProvider.delete(n,{channel:f,successEvent:u,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,r=e.formatData,i=e.callback,o=e.errorCallback,a=e.successHandler,s=e.errorHandler,c=e.invalidationKeys,u=e.cacheOptions,l=void 0===u?{}:u,f=this.getEventNames(n),p=f.syncEvent,d=f.successEvent,h=f.errorEvent,y=f.successAlertEvent,m=f.errorAlertEvent,v=this.getChannel(),g=this.getTransportChannel(),b=this.getAlertChannel();ha.isFunction(i)&&this.listenToOnce(v,p,i),ha.isFunction(o)&&this.listenToOnce(v,h,o),this.stopListening(b,y),this.stopListening(b,m),ha.isFunction(a)&&this.listenToOnce(b,y,a),ha.isFunction(s)&&this.listenToOnce(b,m,s),!ha.isFunction(s)&&!1!==s&&ha.isFunction(this.defaultErrorHandler)&&this.listenToOnce(b,m,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(g,d,(function(e){t.stopListening(v,h,o);for(var i=arguments.length,a=new Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];b.trigger.apply(b,[y,e].concat(a));var u=l.noCache?t.formatData(e,r):t.cacheData(n,e,r);l.clearCacheKey&&t.cache.remove(n),v.trigger(p,u),c&&c.length&&t.cache.invalidate(c,(function(e){return v.trigger("".concat(e,":invalidate"))}))})),this.listenTo(g,h,(function(){var e;t.stopListening(v,p,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);b.trigger(m,r),v.trigger(h,r),l.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.openRequest,o=void 0!==i&&i,a=r.timestamp;a||(a=this.currentTimestamp());var s=this.processPagination(t),c=this.formatData(t,n);return this.cache.set(e,{data:c,timestamp:a,cursors:s,openRequest:o}),c}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:ha.isUndefined(t.offset)||ha.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return ha.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){ha.isFunction(e)&&e(t)},r=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return r(e,"get")},create:function(e){return r(e,"create")},update:function(e){return r(e,"update")},delete:function(e){return r(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return u.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return u.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,r=e.totalItems,i=r>0&&t<r&&t+n,o=r>0&&t>0&&Math.max(t-n,0),a={};if(i&&i<r&&(a.next=i.toString()),ha.isNumber(o)&&(a.previous=o.toString()),!ha.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=ha.isNumber(t)&&t>0&&t<n&&t+1,i=ha.isNumber(t)&&t>1&&t-1,o={};if(r&&r<=n&&(o.next=r.toString()),i&&(o.previous=i.toString()),!ha.isEmpty(o))return o}}])&&Wa(t.prototype,n),r&&Wa(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ya.a),$a=n(39),Za=n(111),Ja=n(72),es=n(52),ts=n(227);function ns(e){return(ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function is(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function os(e,t){return(os=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function as(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cs(e);if(t){var i=cs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(e,t){if(t&&("object"===ns(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cs(e){return(cs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var us=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&os(e,t)}(o,e);var t,n,r,i=as(o);function o(){return rs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return $a.a.Language}},{key:"channelName",get:function(){return es.b.LANGUAGE}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:Ja.a.LOCALE,expiryTime:Za.a.STANDARD,bootstrapName:ts.a.LOCALE,callback:function(n){t.locale=n,t.phrases&&ha.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:Ja.a.PHRASES,expiryTime:Za.a.STANDARD,bootstrapName:ts.a.PHRASES,callback:function(n){t.phrases=n,t.locale&&ha.isFunction(e)&&e(t)}})}}])&&is(t.prototype,n),r&&is(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa);function ls(e){return(ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function fs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ps(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ds(e,t){return(ds=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ms(e);if(t){var i=ms(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(e,t){if(t&&("object"===ls(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ms(e){return(ms=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ds(e,t)}(o,e);var t,n,r,i=hs(o);function o(){return ps(this,o),i.apply(this,arguments)}return t=o,n&&fs(t.prototype,n),r&&fs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(r.a.Model);function gs(e){return(gs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ws(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _s(e,t){return(_s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ss(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ts(e);if(t){var i=Ts(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cs(this,n)}}function Cs(e,t){if(t&&("object"===gs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ts(e){return(Ts=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Es=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_s(e,t)}(o,e);var t,n,r,i=Ss(o);function o(){return bs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return $a.a.NotificationSocket}},{key:"channelName",get:function(){return es.b.NOTIFICATIONS_SOCKET}},{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new vs(e)},resource:"notify",eventPrefix:"".concat(Ja.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(Ja.a.NOTIFICATIONS,":count")})}}])&&ws(t.prototype,n),r&&ws(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa),Os=n(65),ks=n(23),Ps=n(174);function As(e){return(As="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Is(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xs(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ls(e,t){return(Ls=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ns(e);if(t){var i=Ns(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return js(this,n)}}function js(e,t){if(t&&("object"===As(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ns(e){return(Ns=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ds=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ls(e,t)}(o,e);var t,n,r,i=Rs(o);function o(){return Is(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"model",get:function(){return vs}},{key:"parse",value:function(e){return e.data||e}}])&&xs(t.prototype,n),r&&xs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Collection);function Bs(e){return(Bs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Us(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ms(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vs(e,t){return(Vs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zs(e);if(t){var i=zs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hs(this,n)}}function Hs(e,t){if(t&&("object"===Bs(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zs(e){return(zs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ws=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,i=t.cursor,o=t.before,a=[],s=ks.a.buildFilter({limit:r,before:o});return s&&a.push("filter=".concat(s)),i&&a.push("cursor=".concat(i)),a.length?"".concat(n,"&").concat(a.join("&")):n},qs=function(e){return"/api/notifications/v1/notifications/".concat(e)},Gs="/api/notifications/v1/notifications",Ks="/api/domain/v1/notifications",Ys=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vs(e,t)}(o,e);var t,n,r,i=Fs(o);function o(){return Us(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return $a.a.Notification}},{key:"channelName",get:function(){return es.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}},{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:Ws(e,t),expiryTime:Za.a.STANDARD,eventPrefix:n,formatData:function(e){return new Ds(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Ps.a.Read},resource:qs(e),eventPrefix:"".concat(Ja.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Os().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Ps.a.Seen},resource:"".concat(Gs,"?to=").concat(t,"¬ificationStatus=").concat(Ps.a.Received),eventPrefix:"".concat(Ja.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(Ks),eventPrefix:"".concat(Ja.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(ne.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}])&&Ms(t.prototype,n),r&&Ms(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa),Xs=n(258),Qs=n(28),$s=n(69),Zs=n(53),Js=n(148),ec=n.n(Js);function tc(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,o=t.message,a=t.heading,c=t.appLink,u=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l;return s.createElement(s.Fragment,null,s.createElement("div",{className:"d-inline-block ".concat(ec.a.icon)},s.createElement($s.a,{svgName:n,className:"svg-container ".concat(r)})),s.createElement("div",{className:"pl-2 d-inline-block ".concat(ec.a.alertContent)},s.createElement("p",{className:"p-0 m-0 pb-1 ".concat(ec.a.heading)},a),s.createElement("p",{className:"p-0 text-break clamp-4 ".concat(ec.a.message),dangerouslySetInnerHTML:{__html:o}}),!!c&&s.createElement(Zs.a,{className:f,appLink:c},u)),s.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function nc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ic=function(e){switch(e.type){case Ma.a.Success:return Qs.b.CheckCircleOutline;case Ma.a.Fail:case Ma.a.Warning:return Qs.b.Warning;case Ma.a.Info:default:return Qs.b.Info}};function oc(e){var t=e.alert,n=e.closeAlert,r=nc(s.useState(!0),2),i=r[0],o=r[1],a=s.useRef();s.useEffect((function(){i?a.current=window.setTimeout(n,3e3):clearTimeout(a.current)}),[i]);var c="text-".concat(t.type.toLowerCase());return s.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(ec.a.alertItem),onMouseEnter:function(){return o(!1)},onMouseLeave:function(){return o(!0)}},s.createElement(tc,{alert:t,svgName:ic(t),svgClassName:c,closeAlert:n}))}function ac(e){var t=e.alerts,n=e.removeAlert;return s.createElement("div",{className:ec.a.alertBox},s.createElement(Xs.TransitionGroup,{component:"ul",className:"".concat(ec.a.alertList," list-unstyled")},t&&t.map((function(e,t){return s.createElement(Xs.CSSTransition,{key:t,timeout:200,classNames:"alert"},s.createElement(oc,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}function sc(e){return(sc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lc(e,t){return(lc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=dc(e);if(t){var i=dc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return pc(this,n)}}function pc(e,t){if(t&&("object"===sc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function dc(e){return(dc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lc(e,t)}(o,e);var t,n,r,i=fc(o);function o(){return cc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return $a.a.User}},{key:"channelName",get:function(){return es.b.USER}},{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:Ja.a.CURRENT_USER,expiryTime:Za.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:Ja.a.WORKSPACE,expiryTime:Za.a.STANDARD,callback:e,errorCallback:t})}}])&&uc(t.prototype,n),r&&uc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa),yc=($a.a.User,es.b.USER,$a.a.User,"".concat(Ja.a.CURRENT_USER,":sync"),n(241)),mc=n(21);function vc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var gc=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(mc.a.SERIES),key:"series:".concat(e),success:t}},bc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"name",get:function(){return $a.a.Series}},{key:"channelName",get:function(){return es.b.SERIES}},{key:"getSeries",value:function(e,t){var n=gc(e,(function(e){return t&&t(new r.a.Model(e))})),o=i.a.getResponse(this.store.getState(),n.key);o.shouldFetch&&i.a.fetch(this.store.dispatch,n);var a=o.data?new r.a.Model(o.data):null;return t&&a&&t(a),a}}])&&vc(t.prototype,n),o&&vc(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),wc=n(45);function _c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Sc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"name",get:function(){return wc.a.FlightUser}},{key:"getCurrentUser",value:function(e,t){i.a.hooklessFetch(this.store,o.a.currentUser(e,t))}},{key:"getToken",value:function(e,t){i.a.hooklessFetch(this.store,o.a.token(e,t))}},{key:"getWorkspace",value:function(e,t){i.a.hooklessFetch(this.store,o.a.workspace(e,t))}},{key:"getPermissions",value:function(e,t){i.a.hooklessFetch(this.store,o.a.permissions(e,t))}}])&&_c(t.prototype,n),r&&_c(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Cc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Tc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"name",get:function(){return wc.a.FlightConfig}},{key:"getConfig",value:function(e,t){i.a.hooklessFetch(this.store,fe.a.config(e,t))}},{key:"getVersion",value:function(e,t){i.a.hooklessFetch(this.store,fe.a.version(e,t))}}])&&Cc(t.prototype,n),r&&Cc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Ec(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Oc=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"name",get:function(){return wc.a.FlightShare}},{key:"getShareLink",value:function(e,t,n){i.a.hooklessFetch(this.store,cn.a.getShareObject(e,t,n))}}])&&Ec(t.prototype,n),r&&Ec(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function kc(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ac(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ic(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Lc(e);if(t){var i=Lc(this).constructor;Reflect.construct(r,arguments,i)}else r.apply(this,arguments);return xc(this,n)}}function xc(e,t){if(t&&("object"===kc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Lc(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}ma.a;function Rc(e){return(Rc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function jc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nc(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dc(e,t){return(Dc=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bc(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mc(e);if(t){var i=Mc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uc(this,n)}}function Uc(e,t){if(t&&("object"===Rc(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mc(e){return(Mc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vc=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dc(e,t)}(o,e);var t,n,r,i=Bc(o);function o(){return jc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return"AlertError"}}])&&Nc(t.prototype,n),r&&Nc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.SilentError),Fc=n(115),Hc=n(378),zc=n(379),Wc=n(407),qc=n(387),Gc=n(554),Kc=n(555);function Yc(e){Se.a.getInstance(Va.a.ALERT).createAlert({heading:yc.a.Fail,type:Ma.a.Fail,message:e.message})}function Xc(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.NOT_FOUND})}function Qc(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.ERROR})}function $c(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.DIALOG_ERROR})}function Zc(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.SHARE,action:A.a.Share.SHARE_LINK_ERROR})}function Jc(e){u.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_ERROR})}var eu=n(96),tu=n(75);function nu(e){return(nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ru(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ou(e,t){return(ou=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function au(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cu(e);if(t){var i=cu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return su(this,n)}}function su(e,t){if(t&&("object"===nu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function cu(e){return(cu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ou(e,t)}(o,e);var t,n,r,i=au(o);function o(){return ru(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"isReactComponent",value:function(e){return s&&s.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),eu.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return eu.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return eu.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return s.createElement(tu.Provider,{store:this.options.store},e)}}])&&iu(t.prototype,n),r&&iu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(311).a),lu=n(556),fu=n(162),pu=n(81),du=n(200),hu=n(314),yu=n(27);var mu=n(205),vu=n(43),gu=n(408),bu=n(392),wu=n(331);function _u(e){return(_u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cu(e,t){return(Cu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ou(e);if(t){var i=Ou(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Eu(this,n)}}function Eu(e,t){if(t&&("object"===_u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ou(e){return(Ou=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ku=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Cu(e,t)}(a,e);var t,n,i,o=Tu(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).currentErrorHandled=!1,t.state={error:null},t}return t=a,i=[{key:"getDerivedStateFromError",value:function(e){return{error:e}}}],(n=[{key:"componentDidCatch",value:function(e,t){var n=this;this.currentErrorHandled||(this.currentErrorHandled=!0,window.trackJs&&window.trackJs.console.error(e.message,{errorInfo:t}),this.props.throwError&&(r.a.ErrorHelper.throw(new this.props.throwError(e.message)),window.setTimeout((function(){n.currentErrorHandled=!1,n.setState({error:null})}),500)))}},{key:"render",value:function(){var e=this.state.error;if(e&&this.props.renderError){var t=this.props.renderError;return c.a.createElement(t,null)}return e||!this.props.children?c.a.createElement(c.a.Fragment,null):this.props.children}}])&&Su(t.prototype,n),i&&Su(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.a.Component);function Pu(e){return(Pu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Au(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ru(e);if(t){var i=Ru(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Lu(this,n)}}function Lu(e,t){if(t&&("object"===Pu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ru(e){return(Ru=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ju=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Iu(e,t)}(o,e);var t,n,r,i=xu(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this,"Unspecified dialog error")).btnVariant="dark",e}return t=o,(n=[{key:"name",get:function(){return"UnspecifiedDialogError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.unspecifiedDialogError","title"),text:ne.a.getPhrase("shared.unspecifiedDialogError","body"),buttons:[{text:ne.a.getPhrase("shared.unspecifiedDialogError","close"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}}])&&Au(t.prototype,n),r&&Au(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Fc.a),Nu=n(110),Du=n(762),Bu=n.n(Du),Uu=n(323),Mu=n.n(Uu);function Vu(e){return(Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Fu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hu(e,t){return(Hu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function zu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qu(e);if(t){var i=qu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Wu(this,n)}}function Wu(e,t){if(t&&("object"===Vu(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qu(e){return(qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Gu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Hu(e,t)}(o,e);var t,n,r,i=zu(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(Mu.a.notificationIcon," ").concat(Mu.a[this.options.color])}},{key:"template",get:function(){return Bu.a}},{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:Mu.a,svg:Qs.a.getSvg(Qs.b.Bell),unreadCount:this.model.get("unreadCount")}}}])&&Fu(t.prototype,n),r&&Fu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Component),Ku=n(315),Yu=n(558),Xu=n(754),Qu=n(766),$u=n.n(Qu),Zu=n(567),Ju=n.n(Zu),el=n(568),tl=n.n(el);function nl(e){return(nl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function il(e,t){return(il=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ol(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sl(e);if(t){var i=sl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return al(this,n)}}function al(e,t){if(t&&("object"===nl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function sl(e){return(sl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&il(e,t)}(o,e);var t,n,r,i=ol(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return $u.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:Yu.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Ju.a,className:"px-1 py-2",viewOptions:{styles:tl.a}}}}}}}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}},{key:"initialize",value:function(){this.notificationService=Se.a.getInstance($a.b.Notification,this),this.appVariables=Se.a.getInstance(Nu.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Xu.a({collectionPrefix:Ja.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new Ku.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}}])&&rl(t.prototype,n),r&&rl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),ul=n(767),ll=n.n(ul),fl=n(367),pl=n.n(fl);function dl(e){return(dl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ml(e,t){return(ml=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bl(e);if(t){var i=bl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gl(this,n)}}function gl(e,t){if(t&&("object"===dl(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bl(e){return(bl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ml(e,t)}(o,e);var t,n,r,i=vl(o);function o(){return hl(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){this.appVariables=Se.a.getInstance(Nu.a.NOTIFICATIONS)}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative ".concat(pl.a.noPopoverArrow)}},{key:"template",get:function(){return ll.a}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new cl({childType:Ku.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=Se.a.getInstance($a.b.Notification),t=new Gu({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return pl.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}}])&&yl(t.prototype,n),r&&yl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),_l=n(235),Sl=n(99),Cl=n(177),Tl=n(89),El=n(33),Ol=n(380),kl=n(269),Pl=n(402),Al=n(144);function Il(e){return function(e){if(Array.isArray(e))return xl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ll=ne.a.encloseNamespace("shared.userOptions");var Rl=n(85);function jl(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Nl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Nl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Dl(e){var t,n=jl(s.useState(!1),2),r=n[0],i=n[1];function o(e){e.stopPropagation(),i(!r)}function a(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;o(t),n!==e.currentCustomerId&&we.LocationUtils.PageLoad(c(n))}function c(e){return e?"/change-customer?customerId=".concat(e):"/change-customer"}return s.useEffect((function(){e.isParentOpen||i(!1)}),[e.isParentOpen]),(null===(t=e.customers)||void 0===t?void 0:t.length)&&e.currentCustomerId?e.customers.length<=1?s.createElement(s.Fragment,null):e.customers.length>4?s.createElement(El.Dropdown.Item,{as:"li",onClick:function(e){return a(e)}},s.createElement("div",{className:"d-flex justify-content-between"},s.createElement(Rl.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement($s.a,{svgName:Qs.b.House,className:"svg-container text-muted"}))):s.createElement("li",{className:"dropdown-item dropleft",onClick:o},s.createElement("div",{className:"d-flex justify-content-between"},s.createElement(Rl.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement($s.a,{svgName:Qs.b.House,className:"svg-container text-muted"})),s.createElement("ul",{className:"dropdown-menu ".concat(r?"show":"")},e.customers.map((function(t,n){var r=t.id===e.currentCustomerId;return s.createElement(El.Dropdown.Item,{key:n,as:"li",onClick:function(e){return a(e,t.id)},disabled:r},t.name)})))):s.createElement(s.Fragment,null)}var Bl=n(368),Ul=n.n(Bl);function Ml(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Fl=ne.a.encloseNamespace("shared.userOptions");function Hl(e){var t=e.item;if(t.appLink)return s.createElement(El.Dropdown.Item,{as:Zs.a,appLink:t.appLink,openInNewTab:t.openInNewTab,className:"d-flex justify-content-between",analyticsData:t.analyticsData,analyticsOptions:t.analyticsOptions},t.label,!!t.openInNewTab&&s.createElement($s.a,{svgName:Qs.b.NewWindow,className:"svg-container text-muted"}));if(t.url){return s.createElement(El.Dropdown.Item,{as:"a",href:t.url,target:!1===t.openInNewTab?null:"_blank",className:"d-flex justify-content-between",onClick:function(e){e.preventDefault(),t.analyticsData&&t.analyticsOptions&&yu.a.logUserAction(Object.assign({href:t.url},t.analyticsData),t.analyticsOptions),we.LocationUtils.PageLoad(t.url,!0)}},t.label,!1!==t.openInNewTab&&s.createElement($s.a,{svgName:Qs.b.NewWindow,className:"svg-container text-muted"}))}return s.createElement(s.Fragment,null)}function zl(e){var t,n,r,c,u=Ml(s.useState(!1),2),l=u[0],f=u[1],p=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}),d=i.a.useBasicFetch(fe.a.config(),{optimize:!0}),h=i.a.useBasicFetch((null===(t=p.data)||void 0===t?void 0:t.isAuthenticated)&&o.a.customers(p.data.id)),y=function(e,t,n){var r=Object(Tl.a)().hasPermissions,i=Object(Al.b)(),o=on.a.sortBy(n,"order");e&&t&&(o.push({label:Ll("helpCentre"),order:0,url:Pl.a.getArticle(t.supportSiteUrl,null,null==e?void 0:e.countryCode)}),r(a.a.ViewProductBoard)&&!i.isUpgrading&&o.push({label:Ll("featureRequests"),order:0,url:t.productBoardUrl}));var s={main:[],logOut:[]};return o.forEach((function(e){"logOut"===e.section?s.logOut.push(e):s.main.push(e)})),s}(p.data,d.data,e.additionalItems),m=function(e,t){var n,r=i.a.useBasicFetch(o.a.currentUser()),a=i.a.useBasicFetch((null===(n=r.data)||void 0===n?void 0:n.isAuthenticated)&&J.a.userProducts()),s=Object(Al.b)();if(!t&&a.data&&!s.isLoading){var c=Il(a.data),u=Array.isArray(e)?e:[e];return s.isUpgrading&&!u.includes(Q.a.Online)&&u.push(Q.a.Online),on.a.sortBy(c.filter((function(e){return!u.includes(e.id)}),"order"))}}(e.productId,e.hideProductList);return p.hasCompleted&&d.data?(null===(n=p.data)||void 0===n?void 0:n.isAuthenticated)?s.createElement(El.Dropdown,{className:"cursor-pointer position-relative",onToggle:function(e){return f(e)}},s.createElement(El.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat(Ul.a.avatarContainer," no-caret")},s.createElement(Ol.a,{imageUrl:p.data.avatar,imageCdnUrl:d.data.imageCdnUrl,initials:kl.a.getInitials(p.data.givenName,p.data.familyName)})),s.createElement(El.Dropdown.Menu,{as:"ul",align:"right"},s.createElement(El.Dropdown.Item,{as:"div"},s.createElement("div",{className:"m-0 d-flex flex-wrap"},s.createElement("strong",null,p.data.displayName)," ",s.createElement("span",{className:"text-muted"},"(",p.data.username,")")),s.createElement("div",{className:"m-0 text-muted"},p.data.customerName)),s.createElement(Dl,{isParentOpen:l,currentCustomerId:null===(r=p.data)||void 0===r?void 0:r.customerId,customers:null===(c=h.data)||void 0===c?void 0:c.data}),s.createElement(El.Dropdown.Divider,null),y.main.map((function(e,t){return s.createElement(Hl,{key:t,item:e})})),s.createElement(El.Dropdown.Divider,null),null==m?void 0:m.map((function(e,t){return s.createElement(El.Dropdown.Item,{key:t,as:"a",href:e.url,target:"_blank",className:"d-flex align-items-center py-1"},s.createElement("img",{src:e.imageUrl,className:"".concat(Ul.a.productLogo," mr-2")}),e.name)})),!!(null==m?void 0:m.length)&&s.createElement(El.Dropdown.Divider,null),y.logOut.map((function(e,t){return s.createElement(Hl,{key:t,item:e})})),s.createElement(El.Dropdown.Item,{as:Zs.a,appLink:e.appLinks.logOut},Fl("signOut")))):s.createElement(Zs.a,{appLink:e.appLinks.logIn,className:"btn btn-dark mr-2"},Fl("logIn")):s.createElement(s.Fragment,null)}var Wl=n(138),ql=n(263),Gl=n.n(ql);function Kl(){var e=Object(Tl.a)().hasPermissions,t=Object(Al.b)();return e(a.a.StudentExperience)?c.a.createElement(c.a.Fragment,null):!t.isLoading&&t.isUpgrading&&t.hasCompletedOnboarding?t.upgradeType===Al.a.Launch?c.a.createElement(Rl.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(Gl.a.banner)},c.a.createElement("span",{className:"text-light d-inline-block py-3 h6 mb-0"},c.a.createElement("span",{className:"d-none d-lg-inline"},c.a.createElement(Rl.b,{phrase:"launchMessage"})," "),c.a.createElement(Rl.b,{phrase:"message",options:{smartCount:t.daysLeft}})," "),c.a.createElement(Zs.a,{className:"btn btn-dark float-right mr-3 ".concat(Gl.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!0}},analyticsData:{upgradeType:Al.a.Launch},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.GoToOnline,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Rl.b,{phrase:"switchBack"})))):c.a.createElement(Rl.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(Gl.a.banner)},c.a.createElement("span",{className:"text-light d-inline-block py-3 h6 mb-0"},c.a.createElement("span",{className:"d-none d-lg-inline"},c.a.createElement(Rl.b,{phrase:"liteMessage"})," "),c.a.createElement(Rl.b,{phrase:"message",options:{smartCount:t.daysLeft}})," ",c.a.createElement(Zs.a,{className:"text-light text-underline cursor-pointer",appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!0}},analyticsData:{upgradeType:Al.a.Lite},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.GoToOnline,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Rl.b,{phrase:"switchBack"}))),c.a.createElement(Zs.a,{className:"btn btn-dark float-right mr-3 ".concat(Gl.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!1}},analyticsData:{upgradeType:Al.a.Lite},analyticsOptions:{actionType:E.UserAction.Click,location:E.LocationContext.LiteUpgradeBanner,entity:E.EntityType.User,descriptor:E.UpgradeBannerDescriptors.Feedback,workflowPhase:E.WorkflowPhase.Start}},c.a.createElement(Rl.b,{phrase:"giveFeedback"})))):c.a.createElement(c.a.Fragment,null)}var Yl=n(577),Xl=n(66),Ql=n(198),$l=n(151),Zl=n(288),Jl=n(328),ef=n(420),tf=n(219);function nf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function of(){var e,t,n=Z.a.getCurrentRoute().appLink;return tf.a.isSearchAppLink(n)&&null!==(t=null===(e=n.params)||void 0===e?void 0:e.query)&&void 0!==t?t:""}var af=c.a.memo((function(e){var t,n=c.a.useMemo(of,[]),i=nf(c.a.useState(n),2),o=i[0],a=i[1],s=nf(c.a.useState(!1),2),l=s[0],f=s[1],d=nf(Object(pu.a)(_e.a.SHOW_SEARCH_MASK,!1),2),h=d[0],y=d[1],m=Object(Zl.a)(o,300),v=Z.a.getCurrentRoute(),g=v.appLink,b=tf.a.isSearchAppLink(g),w=tf.a.useReferrerAppLink();function _(e){var t;if(null==o?void 0:o.trim())return!0;var n=null===(t=e)||void 0===t?void 0:t.tagOrClassification;return Array.isArray(n)?!!n.length:!!n}function S(){y(!0),window.setTimeout((function(){y(!1),r.a.AppLinkHelper.trigger(w,{replace:!0})}),200)}c.a.useEffect((function(){(b||o)&&(l?window.setTimeout((function(){return f(!1)}),0):b||!o||h||y(!0))}),[null==o?void 0:o.trim(),l]),c.a.useEffect((function(){!_(g.params)&&b&&S()}),[null===(t=g.params)||void 0===t?void 0:t.tagOrClassification]),c.a.useEffect((function(){var e=Object.assign({},g.params);m.trim()&&(null==e?void 0:e.tagOrClassification)&&!v.pageLoad&&delete e.tagOrClassification;var t=_(e);if(!t&&b)return S();t&&(yu.a.logUserAction({query:o,indices:Jl.a.getIndices(g.params)},{actionType:E.UserAction.InstantSearch,entity:E.EntityType.SearchResults,location:E.LocationContext.SearchBar,workflowPhase:E.WorkflowPhase.Complete}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,i={};t=n?Xl.a.omit(t,["query"]):{},e&&(i.query=e.trimLeft()),Object.keys(t).length&&(i=Object.assign(Object.assign({},i),t)),r.a.AppLinkHelper.trigger({application:P.a.SEARCH,action:A.a.Search.HOME,params:i},{replace:n})}(o,e,b))}),[m]),Object(Ql.a)(u.Radio.channel(p.a.SHELL),r.a.EventNames.URL_CHANGE,(function(e){var t,n;e||(e=Z.a.getCurrentRoute().appLink),o&&!tf.a.isSearchAppLink(e)&&(f(!0),a("")),tf.a.isSearchAppLink(e)&&(null===(t=e.params)||void 0===t?void 0:t.query)!==!o&&a(null!==(n=e.params.query)&&void 0!==n?n:"")}),[o,a]);var C=Object(ef.a)(o,Jl.a.getIndices(g.params),{entity:E.EntityType.SearchResults,location:E.LocationContext.SearchBar}).onBlur;return c.a.createElement("form",{className:"form-control p-0 pl-1 d-flex align-items-center border-0",onSubmit:function(e){return e.preventDefault()}},c.a.createElement($s.a,{svgName:Qs.b.Search}),c.a.createElement("input",{type:"text",className:"border-0 w-100 h-100 outline-none rounded",placeholder:ne.a.getPhrase("search.liteSearchBar","placeholder"),onChange:function(e){var t,n=null!==(t=e.target.value)&&void 0!==t?t:"";a(n)},onBlur:function(e){var t;return C(null!==(t=e.target.value)&&void 0!==t?t:"")},value:o,autoComplete:"off",spellCheck:!1,"aria-label":"Search"}),e.showCloseButton&&c.a.createElement($l.a,{svgName:Qs.b.Close,onClick:e.onClickClose,className:"btn btn-link"}))})),sf=ne.a.encloseNamespace("liteShared.header");var cf=n(149),uf=n.n(cf);function lf(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ff(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ff(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ff(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pf(e){var t=Object(Tl.a)().hasPermissions,n=Object(Sl.a)(vu.a.SMDown),r=n?uf.a.logoContainerSm:uf.a.logoContainerLg,i=null;return e.isLink&&(i=t(a.a.StudentExperience)?{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}:{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),s.createElement(Zs.a,{appLink:i,className:"navbar-brand text-hide align-top ".concat(r," d-inline-block'")},n?s.createElement(_l.d,null):s.createElement(_l.a,null))}function df(e){var t=lf(s.useState(!1),2),n=t[0],c=t[1],u=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}).data,l=i.a.useBasicFetch(fe.a.config(),{optimize:!0}),f=Object(mu.a)(),p=Object(Sl.a)(vu.a.SMDown),d=Object(Sl.a)(vu.a.MDDown),h=Object(Sl.a)(vu.a.LGDown),y=function(){var e=Object(Wl.b)().isPlugin,t={application:P.a.DEFAULT,action:A.a.Default.LOG_IN},n=r.a.AppLinkHelper.getHref(r.a.AppLinkHelper.getCurrentAppLink());return"/"!==n&&(t.params={redirectUrl:n}),{logIn:t,logOut:{application:P.a.DEFAULT,action:A.a.Default.LOG_OUT,params:e?{redirectUrl:"/plugin"}:null}}}(),m=function(e,t,n){var r=Object(Tl.a)().hasPermissions;if(!e||!t||!n)return[];var i=[{label:sf("settings"),order:5,appLink:{application:P.a.SETTINGS,action:A.a.Settings.HOME}}];return r(a.a.StudentExperience)||i.push.apply(i,[{label:sf("shares"),order:0,appLink:{application:P.a.DEFAULT,action:A.a.Default.SHARED_BY_ME}}]),r(a.a.StudentExperience)&&i.push.apply(i,[{label:sf("joinClassroom"),order:1,appLink:{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM_PROMPT}}]),i}(u,l.data,e.showNav),v=Object(Wl.b)().isPlugin;s.useEffect((function(){!d&&n&&c(!1)}),[d,f,n]);var g=e.showNav&&!v,b=e.showNav&&!v&&!p;return s.createElement(s.Fragment,null,!v&&s.createElement(Kl,null),s.createElement("nav",{className:"navbar navbar-expanded w-100 ".concat(uf.a.nav)},!n&&s.createElement("div",{className:"d-flex align-items-center justify-content-start ".concat(uf.a.headerLeft)},e.showNav&&s.createElement($s.a,{svgName:Qs.b.Hamburger,className:"".concat(uf.a.hamburger," ml-1 mr-3"),onClick:e.toggleLeftNav}),s.createElement(pf,{isLink:e.showNav})),e.showNav?d&&!n?s.createElement(Cl.a,{className:"ml-auto mr-3",onClick:function(){return c(!0)}},s.createElement($s.a,{svgName:Qs.b.Search})):s.createElement("div",{className:"".concat(uf.a.searchBarContainer," ").concat(n?"px-3 pl-0":"")},s.createElement("div",{className:"container ".concat(uf.a.searchBarPadding," ").concat(n?"px-0":"")},s.createElement("div",{className:"".concat(uf.a.searchBar," border border-dark")},s.createElement(af,{showCloseButton:n,onClickClose:function(){return c(!1)}})))):s.createElement(s.Fragment,null),!n&&s.createElement("div",{className:"d-flex align-items-center justify-content-end ".concat(uf.a.actionButtons)},b&&s.createElement("div",{className:"mr-3"},s.createElement(Yl.a,{hideButtonText:h})),g&&s.createElement(yr.a,{view:wl,className:"mx-n2 pr-3"}),!!l.data&&s.createElement("span",{className:"mr-3"},s.createElement(zl,{productId:Q.a.Primary,appLinks:y,additionalItems:m,hideProductList:v})))))}var hf,yf=n(93),mf=n(13),vf=n(330),gf=n(377),bf=n(275),wf=n(226),_f=n(94),Sf=n(47),Cf=n.n(Sf);function Tf(e){var t=Object(Wl.b)().isPlugin,n=e.collapsed&&e.active,r="".concat(Cf.a.leftNavAnchor," ").concat(e.className," ");return r+=e.active?Cf.a.active:Cf.a.iconGrey,!e.collapsed&&e.active&&(r+=" "+Cf.a.bgGrey),c.a.createElement(Zs.a,{className:r,appLink:e.appLink,analyticsData:{id:yf.a.mapIdToAnalyticsId(e.id),label:e.name,icon:e.svgName},analyticsOptions:{actionType:E.UserAction.Click,entity:E.EntityType.Url,location:E.LocationContext.LeftNav}},c.a.createElement("span",{className:"".concat(Cf.a.leftNavIcon," position-relative")},!!e.svgName&&c.a.createElement($s.a,{svgName:e.svgName,size:t?$s.b.Medium:$s.b.ExtraLarge}),!!e.imageUrl&&c.a.createElement("span",{className:Cf.a.imageContainer},c.a.createElement("img",{src:_f.a.createUrl(e.imageUrl,{size:Wt.b.Small}),className:"img-fluid rounded-circle"})),e.showRedDot),c.a.createElement("span",{className:"".concat(Cf.a.leftNavText," ").concat(n?Cf.a.highlightText:"")},e.name),e.showRedDot&&c.a.createElement("span",{className:"".concat(Cf.a.redDot," bg-danger rounded-circle ").concat(e.collapsed?Cf.a.collapsed:Cf.a.expanded)}))}function Ef(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Of,kf=ne.a.encloseNamespace("shared.leftNav"),Pf=(Ef(hf={},mf.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),Ef(hf,mf.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),Ef(hf,mf.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),Ef(hf,mf.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),Ef(hf,mf.a.Classrooms,{application:P.a.CLASSROOMS,action:A.a.Classrooms.HOME}),Ef(hf,mf.a.Classroom,{application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS}),Ef(hf,mf.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),Ef(hf,mf.a.Libraries,{application:P.a.LIBRARIES,action:A.a.Libraries.LIBRARY}),Ef(hf,mf.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),hf);function Af(e){var t=e.activeItem,n=e.dynamicActiveId,r=e.favouritedClassrooms,i=e.hideClassrooms,o=Object(Tl.a)().hasPermissions,s=!!Object(wf.a)();return c.a.createElement("nav",{className:"".concat(Cf.a.leftNav," ").concat(Cf.a.leftNavExpanded)},c.a.createElement(bf.Scrollbars,{className:"h-100"},c.a.createElement("div",{className:"pt-3"},o(a.a.StudentExperience)&&c.a.createElement(Tf,{key:mf.a.StudentFeed,id:mf.a.StudentFeed,name:kf("home"),appLink:Pf[mf.a.StudentFeed],className:Cf.a.studentFeed,svgName:Qs.b.House,active:t===mf.a.StudentFeed}),c.a.createElement(Tf,{key:mf.a.Discover,id:mf.a.Discover,name:kf("discover"),appLink:Pf[mf.a.Discover],className:Cf.a.discover,svgName:Qs.b.Compass,active:t===mf.a.Discover}),c.a.createElement(Tf,{key:mf.a.Playlists,id:mf.a.Playlists,name:kf("playlists"),appLink:Pf[mf.a.Playlists],className:Cf.a.playlists,svgName:Qs.b.Playlist,active:t===mf.a.Playlists}),c.a.createElement(Tf,{key:mf.a.MyVideos,id:mf.a.MyVideos,name:kf("myVideos"),appLink:Pf[mf.a.MyVideos],className:Cf.a.myVideos,svgName:Qs.b.Video,active:t===mf.a.MyVideos,showRedDot:s}),c.a.createElement(Tf,{key:mf.a.Favourites,id:mf.a.Favourites,name:kf("favourites"),appLink:Pf[mf.a.Favourites],className:Cf.a.favourites,svgName:Qs.b.HeartOutline,active:t===mf.a.Favourites}),!o(a.a.StudentExperience)&&c.a.createElement(Tf,{key:mf.a.WatchHistory,id:mf.a.WatchHistory,name:kf("watchHistory"),appLink:Pf[mf.a.WatchHistory],className:Cf.a.watchHistory,svgName:Qs.b.History,active:t===mf.a.WatchHistory}),!o(a.a.StudentExperience)&&c.a.createElement("hr",{className:"my-2"}),!o(a.a.StudentExperience)&&!!e.libraries.length&&c.a.createElement(c.a.Fragment,null,e.libraries.length>1&&c.a.createElement("h6",{className:"m-b-2 pl-3"},kf("libraries")),e.libraries.map((function(e){var r,i,o,a,s;return c.a.createElement(Tf,{key:e.id,id:mf.a.Libraries,name:e.name,appLink:Object.assign(Object.assign({},Pf[mf.a.Libraries]),{args:[e.id,vt.a.slugify(e.name)]}),className:Cf.a.library,imageUrl:null===(i=null===(r=e.owner)||void 0===r?void 0:r.logo)||void 0===i?void 0:i.url,svgName:!(null===(a=null===(o=e.owner)||void 0===o?void 0:o.logo)||void 0===a?void 0:a.url)&&Qs.b.Library,active:t===mf.a.Libraries&&(null===(s=e.id)||void 0===s?void 0:s.toString())===(null==n?void 0:n.toString())})})),c.a.createElement("hr",{className:"my-2"})),!i&&c.a.createElement(c.a.Fragment,null,c.a.createElement(Tf,{key:mf.a.Classrooms,id:mf.a.Classrooms,name:kf("classrooms"),appLink:Pf[mf.a.Classrooms],className:Cf.a.classrooms,svgName:Qs.b.Classrooms,active:t===mf.a.Classrooms}),(null==r?void 0:r.length)?r.map((function(e){var r;return c.a.createElement(Tf,{key:e.id,id:mf.a.Classroom,name:e.name,appLink:Object.assign(Object.assign({},Pf[mf.a.Classroom]),{args:[e.id]}),className:Cf.a.classroom,svgName:Qs.b.StarOutline,active:t===mf.a.Classroom&&(null===(r=e.id)||void 0===r?void 0:r.toString())===(null==n?void 0:n.toString())})})):c.a.createElement(c.a.Fragment,null)))))}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xf,Lf,Rf=ne.a.encloseNamespace("shared.leftNav"),jf=(If(Of={},mf.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),If(Of,mf.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),If(Of,mf.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),If(Of,mf.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),If(Of,mf.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),If(Of,mf.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),Of);function Nf(e){var t=e.activeItem,n=Object(Tl.a)().hasPermissions,r=Object(Wl.b)().isPlugin,i=!!Object(wf.a)(),o="".concat(Cf.a.leftNav," ").concat(Cf.a.leftNavCollapsed);return r&&(o+=" ".concat(Cf.a.pluginLeftNav)),c.a.createElement("nav",{className:o},c.a.createElement(bf.Scrollbars,{height:"100%"},c.a.createElement("div",{className:r?"pt-1":"pt-3"},n(a.a.StudentExperience)&&c.a.createElement(Tf,{key:mf.a.StudentFeed,id:mf.a.StudentFeed,name:Rf("home"),appLink:jf[mf.a.StudentFeed],className:Cf.a.studentFeed,svgName:Qs.b.House,active:t===mf.a.StudentFeed,collapsed:!0}),c.a.createElement(Tf,{key:mf.a.Discover,id:mf.a.Discover,name:Rf("discover"),appLink:jf[mf.a.Discover],className:Cf.a.discover,svgName:Qs.b.Compass,active:t===mf.a.Discover,collapsed:!0}),c.a.createElement(Tf,{key:mf.a.Playlists,id:mf.a.Playlists,name:Rf("playlists"),appLink:jf[mf.a.Playlists],className:Cf.a.playlists,svgName:Qs.b.Playlist,active:t===mf.a.Playlists,collapsed:!0}),c.a.createElement(Tf,{key:mf.a.MyVideos,id:mf.a.MyVideos,name:Rf("myVideos"),appLink:jf[mf.a.MyVideos],className:Cf.a.myVideos,svgName:Qs.b.Video,active:t===mf.a.MyVideos,collapsed:!0,showRedDot:i}),c.a.createElement(Tf,{key:mf.a.Favourites,id:mf.a.Favourites,name:Rf("favourites"),appLink:jf[mf.a.Favourites],className:Cf.a.favourites,svgName:Qs.b.HeartOutline,active:t===mf.a.Favourites,collapsed:!0}),!n(a.a.StudentExperience)&&c.a.createElement(Tf,{key:mf.a.WatchHistory,id:mf.a.WatchHistory,name:Rf("watchHistory"),appLink:jf[mf.a.WatchHistory],className:Cf.a.watchHistory,svgName:Qs.b.History,active:t===mf.a.WatchHistory,collapsed:!0}))))}function Df(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Bf(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bf(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bf(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uf(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Lf||(Lf={}));var Mf=(Uf(xf={},mf.a.Discover,yf.a.getDiscoverAppLinks()),Uf(xf,mf.a.Playlists,yf.a.getPlaylistAppLinks()),Uf(xf,mf.a.MyVideos,yf.a.getMyVideosAppLinks()),Uf(xf,mf.a.Favourites,yf.a.getFavouritesAppLinks()),Uf(xf,mf.a.WatchHistory,yf.a.getWatchHistoryAppLinks()),Uf(xf,mf.a.Classrooms,yf.a.getClassroomsAppLinks()),Uf(xf,mf.a.Classroom,yf.a.getClassroomAppLinks()),Uf(xf,mf.a.Libraries,yf.a.getLibrariesAppLinks()),Uf(xf,mf.a.StudentFeed,yf.a.getStudentFeedAppLinks()),xf);function Vf(e){var t,n,r,s,u,l=Df(c.a.useState(null),2),f=l[0],p=l[1],d=i.a.useBasicFetch(o.a.currentUser()),h=i.a.useBasicFetch(d.data&&gf.a.getPinnedClassrooms(d.data.id)),y=i.a.useBasicFetch(vf.a.sharedLibraries());i.a.useBasicFetch(!!(null===(t=y.data)||void 0===t?void 0:t.length)&&vf.a.librariesWithOwnerLogos(y.data.map((function(e){return e.id}))));var m=Object(Tl.a)().hasPermissions;if(c.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(Mf).find((function(n){t||Mf[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=mf.a[n])})),p(t)}}),[e.activeAppLink]),e.navState===Lf.Hidden)return c.a.createElement(c.a.Fragment,null);var v=(null===(n=e.activeAppLink)||void 0===n?void 0:n.args)&&e.activeAppLink.args[0];return e.navState===Lf.Collapsed?c.a.createElement(Nf,{activeItem:f}):c.a.createElement(Af,{activeItem:f,dynamicActiveId:v,favouritedClassrooms:null!==(s=null===(r=h.data)||void 0===r?void 0:r.data)&&void 0!==s?s:[],libraries:null!==(u=y.data)&&void 0!==u?u:[],hideClassrooms:!m(a.a.ViewClassrooms)})}var Ff=n(233),Hf=n(42),zf=n(134),Wf=n(388),qf=n(274),Gf=n(208),Kf=n(414),Yf=n(401),Xf=n(236),Qf=n(376),$f=n(410),Zf=n(385),Jf=n(264),ep=n.n(Jf);function tp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return np(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return np(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function np(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rp(e){if(e.shareId)return{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK,args:[e.shareId]};var t={};return e.contextId&&e.context&&(t.contextId=e.contextId,t.context=e.context),Zf.a.getAppLink(e.video,t)}function ip(e){var t,n=tp(Object(pu.a)(_e.a.WEB_PLAYER_DATA),1)[0];return s.createElement("h2",{className:"mb-0 h6 w-100 ".concat(ep.a.title)},Hf.a.isVideo(n.video)&&Hf.a.hasSeries(n.video)&&s.createElement(Wf.b,{className:"d-block",video:n.video,appLink:e.hasProduct(Q.a.Primary)&&(t=n.video.series,{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[t.id,vt.a.slugify(t.name)]}),analyticsOptions:{location:E.LocationContext.FloatingPlayer}}),s.createElement(Zs.a,{appLink:!n.isOnPlayPage&&rp(n)},n.video.name))}function op(){var e,t,n;Object(Kf.a)();var a=tp(Object(pu.a)(_e.a.WEB_PLAYER_DATA),2),c=a[0],u=a[1],l=Object(Qf.a)(E.LocationContext.FloatingPlayer),f=l.setFavourite,p=l.canFavourite,d=Object($f.a)(E.LocationContext.FloatingPlayer),h=i.a.useBasicFetch(o.a.currentUser()),y=Object(Gf.a)().hasProduct;i.a.useBasicFetch((null===(e=h.data)||void 0===e?void 0:e.isAuthenticated)&&(null==c?void 0:c.video)?Xf.a.isFavourited(h.data.id,[c.video.id]):null);var m=qf.a.isFavouritedByCurrentUser(c.video),v=(null===(t=h.data)||void 0===t?void 0:t.isAuthenticated)&&Hf.a.isVideo(c.video)&&y(Q.a.Primary);return(null==c?void 0:c.video)&&(null==c?void 0:c.viewKey)?s.createElement(s.Fragment,null,s.createElement(Ff.a,{node:c.portalNode},(c.isOnPlayPage||c.showFloatingPlayer)&&s.createElement(Yf.a,{viewKey:c.viewKey,startTime:c.startTime,playerApiUrl:c.playerApiUrl,webPlayerUrl:c.webPlayerUrl,videoId:c.video.id,onExitPictureInPicture:function(){r.a.AppLinkHelper.trigger(rp(c))},onClickCreateClip:v&&function(){v&&r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.CREATE_CLIP,args:[c.video.id]})},autoplay:!0,canFavourite:p(c.video),favourited:m,onClickFavourite:function(){var e=!m;f(c.video,e,(function(){u("video",e?Object.assign(Object.assign({},c.video),{favouritedBy:{data:[h.data]}}):Object.assign(Object.assign({},c.video),{favouritedBy:{data:[]}}))}))},currentUser:h.data,activityStatus:c.activityStatus,onSetActivityStatus:function(){var e=c.activityStatus===zf.a.Complete?zf.a.Incomplete:zf.a.Complete;d(c.shareId,c.video,e),u("activityStatus",e)},allowPip:null===(n=h.data)||void 0===n?void 0:n.isAuthenticated,onError:function(){r.a.ErrorHelper.throw(new ee.a)}})),s.createElement("div",{className:ep.a.floatingPlayer},s.createElement(Xs.CSSTransition,{timeout:400,in:c.showFloatingPlayer,classNames:"floating-player"},s.createElement("div",{className:"d-none shadow"},c.showFloatingPlayer&&s.createElement(Ff.b,{node:c.portalNode}),s.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},s.createElement(ip,{hasProduct:y}),s.createElement("span",{className:"".concat(ep.a.buttons)},s.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){yu.a.logUserAction({id:c.video.id},{location:E.LocationContext.FloatingPlayer,entity:Hf.a.getAnalyticsEntity(c.video),actionType:E.UserAction.Click,descriptor:E.ClickDescriptor.Close}),u("showFloatingPlayer",!1)}},s.createElement($s.a,{svgName:Qs.b.Close})),s.createElement(Zs.a,{appLink:rp(c),onClick:function(){u("isOnPlayPage",!0),u("showFloatingPlayer",!1),yu.a.logUserAction({id:c.video.id},{location:E.LocationContext.FloatingPlayer,entity:Hf.a.getAnalyticsEntity(c.video),actionType:E.UserAction.Click,descriptor:E.ClickDescriptor.Open})}},!c.isOnPlayPage&&s.createElement($s.a,{svgName:Qs.b.NewWindow,className:"".concat(ep.a.flippedIcon," d-inline-block svg-container float-right")})))))))):s.createElement(s.Fragment,null)}var ap=n(728),sp=n(265),cp=n.n(sp);function up(){return s.createElement(s.Fragment,null,s.createElement("div",{className:cp.a.dropMask}),s.createElement("div",{className:cp.a.dropContent},s.createElement("div",{className:cp.a.border},s.createElement("h1",null,s.createElement(Rl.b,{namespace:"shared.dragMask",phrase:"message"})))),s.createElement("div",{className:cp.a.dropArea}))}var lp=n(126),fp=n.n(lp),pp=n(418);function dp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return hp(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return hp(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hp(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yp=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function mp(e){return e!==vu.a.XL&&e!==vu.a.XXL}var vp=function(e){var t,n,r=e.showNav,a=e.contentChild,c=e.popupChild,u=e.alertChild,l=e.hiddenChild,f=e.activeAppLink,p=e.appLinkIsRoute,d=dp(s.useState(!1),2),h=d[0],y=d[1];Object(bu.a)(),function(){function e(n){"Tab"===n.key&&(document.body.classList.add("user-is-tabbing"),window.removeEventListener("keydown",e),window.addEventListener("mousedown",t))}function t(){document.body.classList.remove("user-is-tabbing"),window.removeEventListener("mousedown",t),window.addEventListener("keydown",e)}Object(s.useEffect)((function(){return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}}),[])}();var m=i.a.useBasicFetch(o.a.currentUser());m.data&&!m.data.isAuthenticated&&(r=!1),Object(hu.b)((null===(t=m.data)||void 0===t?void 0:t.isAuthenticated)?wc.b.CombineUploads:null);var v=Object(mu.a)(),g=v===vu.a.XS,b=v===vu.a.SM,w=v===vu.a.XXL,_=dp(Object(pu.a)(_e.a.WEB_PLAYER_DATA),1)[0],S=dp(Object(pu.a)(_e.a.SHOW_SEARCH_MASK),1)[0],C=dp(Object(pu.a)(_e.a.LAYOUT_CONTAINER_FLUID,mp(v)),2),T=C[0],O=C[1],k=Object(gu.b)().enabled;s.useEffect((function(){y(!w)}),[w]),s.useEffect((function(){O(mp(v))}),[v]);var P=Object(Wl.b)().isPlugin,A=function(e,t,n,r,i){var o=i?fp.a.pluginCollapsedNavContent:fp.a.collapsedNavContent;return r?t?{state:e?Lf.Hidden:Lf.Open,showMask:!e,contentClass:fp.a.hiddenNavContent}:n?{state:e?Lf.Collapsed:Lf.Open,showMask:!e,contentClass:o}:{state:e?Lf.Collapsed:Lf.Open,showMask:!1,contentClass:e?o:fp.a.openNavContent}:{state:Lf.Hidden,showMask:!1,contentClass:fp.a.hiddenNavContent}}(h,g,b,r,P),I=Object(fu.a)(wc.b.VideoUpload),x=s.useCallback((function(e){k&&I.addFiles(e,{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Start,descriptor:yu.a.mapInteractionType(E.InteractionType.DragDrop),location:E.LocationContext.VideoUpload})}),[k]),L=Object(lu.useDropzone)({onDrop:x,noClick:!0,noKeyboard:!0,disabled:R.a.disableDropzone(P||!(null===(n=m.data)||void 0===n?void 0:n.isAuthenticated))}),j=L.getRootProps,N=L.getInputProps,D=L.isDragActive,B="d-flex flex-column align-items-end",U="",M=fp.a.fixedBottomRightContainer;return R.a.hasIntercom()&&(M+=" "+fp.a.intercomOverride),(null==_?void 0:_.showFloatingPlayer)?B+=" ".concat(M):U=M,s.createElement(ku,{renderError:function(){return Object(ap.ErrorView)({error:new ee.a})}},s.createElement("div",Object.assign({},j()),s.createElement(df,{toggleLeftNav:function(){y(!h)},showNav:r}),r&&s.createElement(Vf,{navState:A.state,activeAppLink:f,appLinkIsRoute:p}),s.createElement("div",{className:"".concat(fp.a.content," ").concat(A.contentClass)},s.createElement("div",{className:"container-fluid ".concat("banner-portal-container")}),s.createElement("div",{className:"".concat(T?"container-fluid":"container")},s.createElement(ku,{throwError:ee.a},a))),s.createElement(ku,{throwError:ju},c),A.showMask&&s.createElement("div",{className:"modal-backdrop show ".concat(fp.a.mask)}),s.createElement("div",{className:"".concat(fp.a.searchMask," ").concat(S?fp.a.show:""," modal-backdrop")}),s.createElement("div",{className:B},!!u&&s.createElement("div",{className:U},u),s.createElement(op,null)),D&&k&&s.createElement(up,null),s.createElement("input",Object.assign({},N())),s.createElement("div",{style:{display:"none"}},l)))};function gp(e){var t=e.provider,n=yp(e,["provider"]);return t?s.createElement(tu.Provider,{store:e.store},s.createElement(du.b,{defaultTitle:""},s.createElement(wu.b,{containerClassName:"banner-portal-container"},s.createElement(t,null,s.createElement(vp,Object.assign({},n)))))):s.createElement(tu.Provider,{store:e.store},s.createElement(du.b,{defaultTitle:""},s.createElement(wu.b,{containerClassName:"banner-portal-container"},s.createElement(pp.b,null,s.createElement(vp,Object.assign({},n))))))}var bp=n(784),wp=n.n(bp);function _p(e){return(_p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cp(){return(Cp="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Tp(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Tp(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Pp(e)););return e}function Ep(e,t){return(Ep=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Op(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pp(e);if(t){var i=Pp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return kp(this,n)}}function kp(e,t){if(t&&("object"===_p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pp(e){return(Pp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ap=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ep(e,t)}(a,e);var t,n,i,o=Op(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).childComponents={},t.preventScrollTop=!1,t}return t=a,i=[{key:"getCacheKey",value:function(e){var t;return"".concat(O,":").concat(e.showNav,":").concat(null===(t=e.provider)||void 0===t?void 0:t.name)}}],(n=[{key:"initialize",value:function(){var e,t=this;this.activeAppLink=null===(e=Z.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(p.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(p.a.SHELL,"prevent:scroll:top",(function(){return t.preventScrollTop=!0}))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return wp.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[dt],popupChild:this.childComponents[ht],alertChild:this.childComponents[yt],hiddenChild:this.childComponents[mt],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute,provider:this.options.provider}}},{key:"onRouteChange",value:function(e,t){this.activeAppLink=e,this.appLinkIsRoute=t.isAppRoute}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(ht)}},{key:"showChildView",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.childComponents[e]=t,e===dt&&(this.preventScrollTop||n.preventScrollTop||$(window).scrollTop(0),this.preventScrollTop=!1),this.renderLayout()}},{key:"renderLayout",value:function(){var e=Object.assign({provider:this.options.provider},this.getChildComponents());Cp(Pp(a.prototype),"showChildView",this).call(this,"layout",s.createElement(gp,Object.assign({},e)))}}])&&Sp(t.prototype,n),i&&Sp(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(uu),Ip=n(785);function xp(e){var t=e.contentChild;return s.createElement(s.Fragment,null,t)}function Lp(e){var t=e.store;return s.createElement(ku,{renderError:function(){return Object(Ip.EmbedErrorView)({error:new Yn.a})}},s.createElement(tu.Provider,{store:t},s.createElement(du.b,{defaultTitle:""},s.createElement(xp,Object.assign({},e)))))}var Rp=n(786),jp=n.n(Rp);function Np(e){return(Np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Up(){return(Up="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=Mp(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function Mp(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=zp(e)););return e}function Vp(e,t){return(Vp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Fp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zp(e);if(t){var i=zp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hp(this,n)}}function Hp(e,t){if(t&&("object"===Np(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function zp(e){return(zp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Wp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Vp(e,t)}(o,e);var t,n,r,i=Fp(o);function o(){var e;return Dp(this,o),(e=i.apply(this,arguments)).childComponents={},e}return t=o,r=[{key:"getCacheKey",value:function(){return k}}],(n=[{key:"title",get:function(){return!1}},{key:"name",get:function(){return"SimpleLayoutView"}},{key:"template",get:function(){return jp.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[dt],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(ht)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Up(zp(o.prototype),"showChildView",this).call(this,"layout",s.createElement(Lp,Object.assign({},this.getChildComponents())))}}])&&Bp(t.prototype,n),r&&Bp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(uu);function qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Gp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&qp(t.prototype,n),r&&qp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Kp=n(123),Yp=n(257);function Xp(e){return(Xp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $p(e,t){return($p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zp(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ed(e);if(t){var i=ed(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Jp(this,n)}}function Jp(e,t){if(t&&("object"===Xp(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ed(e){return(ed=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var td=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$p(e,t)}(o,e);var t,n,r,i=Zp(o);function o(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(e=i.call(this)).viewObjects={},e}return t=o,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"name",get:function(){return"ViewModelService"}},{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof Yp.a&&e.set(n,{silent:!0}),e instanceof Kp.a&&!(e instanceof Yp.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,i=void 0!==r&&r,o=this.viewObjects[e];if(o&&i)return this.updateViewModel(o,t);if(o)return o;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=r.ctor,o=r.storage,a=this.mergeData(t,n),s=i?new i(a):new Kp.a(a);return this.viewObjects[e]=s,o&&!n?(this.setLocalData(e,s,null,r),this.setupChangeListeners(e,s,r)):o&&n&&this.setupChangeListeners(e,s,r),s}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var i,o=r.storage;!o||o&&!o.persistProps||("string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),t instanceof Kp.a&&(i=t.pick(o.persistProps)),this.getStorageHelper(o.type).set(e,i))}},{key:"setupChangeListeners",value:function(e,t,n){var r=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),ha.each(i.persistProps,(function(i){r.listenTo(t,"change:".concat(i),ha.partial(r.setLocalData,e,ha,ha,n))})))}},{key:"mergeData",value:function(e,t){return t?ha.isObject(e)&&ha.isObject(t)?ha.extend(e,t):void ma.c.throw(new ve.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case be.c.LocalStorage:return be.a;case be.c.SessionStorage:return be.b}}}])&&Qp(t.prototype,n),r&&Qp(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ya.a).Instance;function nd(e){return(nd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function id(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function od(e,t,n){return t&&id(e.prototype,t),n&&id(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ad(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sd(e,t)}function sd(e,t){return(sd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ld(e);if(t){var i=ld(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ud(this,n)}}function ud(e,t){if(t&&("object"===nd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ld(e){return(ld=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fd,pd=function(e){ad(n,e);var t=cd(n);function n(){return rd(this,n),t.apply(this,arguments)}return od(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),dd=function(e){ad(n,e);var t=cd(n);function n(){return rd(this,n),t.apply(this,arguments)}return od(n,[{key:"model",get:function(){return pd}}]),n}(r.a.Collection),hd=n(175),yd=n(207),md=n(64);function vd(e){return(vd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wd(e,t){return(wd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cd(e);if(t){var i=Cd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Sd(this,n)}}function Sd(e,t){if(t&&("object"===vd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cd(e){return(Cd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Td=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wd(e,t)}(a,e);var t,n,i,o=_d(a);function a(){return gd(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return $a.b.PendingItems}},{key:"channelName",get:function(){return es.c.PENDING_ITEMS}},{key:"initialize",value:function(){this.videoDataService=Se.a.getInstance($a.a.Video,this),this.videoUploadDataService=Se.a.getInstance($a.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case hd.a.Completed:case hd.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),ha.isFunction(t)&&t()}));break;case hd.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),ha.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){u.Radio.channel(this.channelName).trigger(md.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new dd,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&u.Radio.channel(e.channelName).trigger(md.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===hd.a.Completed&&e.itemStatusChanged()}))})),window.setTimeout((function(){e.fetchPendingItems()}),200)),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var i=ha.map(n,(function(e){return e.masterVideoId.toString()})),o=function(r){ha.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===yd.a.Processing&&t.set("status",yd.a.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&(window.clearTimeout(fd),fd=window.setTimeout((function(){return e.fetchPendingItems()}),e.getTimeoutLength())),ha.isFunction(t.callback)&&t.callback()};i.length?e.videoDataService.getVideos(i,o):o(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=td.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;ha.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===hd.a.Processing}))?5e3:3e4}}])&&bd(t.prototype,n),i&&bd(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service),Ed=n(317);function Od(e){return(Od="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pd(e,t){return(Pd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ad(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xd(e);if(t){var i=xd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Id(this,n)}}function Id(e,t){if(t&&("object"===Od(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xd(e){return(xd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ld=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Pd(e,t)}(o,e);var t,n,r,i=Ad(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this)}return t=o,(n=[{key:"name",get:function(){return $a.b.Notification}},{key:"initDataServices",value:function(){this.notificationDataService=Se.a.getInstance($a.a.Notification,this),this.notificationSocketService=Se.a.getInstance($a.a.NotificationSocket,this),this.userDataService=Se.a.getInstance($a.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=Ja.a.NOTIFICATIONS;this.listenTo(es.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(es.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(es.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(es.a.NOTIFICATIONS,Ed.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,Ja.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=td.get(Ja.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(i){r.notificationDataService.getNotifications(i.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),td.get(Ja.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}])&&kd(t.prototype,n),r&&kd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service),Rd=n(124);function jd(e){return(jd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nd(e){return function(e){if(Array.isArray(e))return Dd(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Dd(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dd(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Dd(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ud(e,t){return(Ud=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Md(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fd(e);if(t){var i=Fd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Vd(this,n)}}function Vd(e,t){if(t&&("object"===jd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Fd(e){return(Fd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Hd(e){return(Hd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function zd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qd(e,t){return(qd=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yd(e);if(t){var i=Yd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Kd(this,n)}}function Kd(e,t){if(t&&("object"===Hd(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Yd(e){return(Yd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xd,Qd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qd(e,t)}(o,e);var t,n,r,i=Gd(o);function o(){return zd(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return Oa.Notifications}}])&&Wd(t.prototype,n),r&&Wd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ud(e,t)}(o,e);var t,n,r,i=Md(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=t.createConnection(e),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=o,(n=[{key:"setProviderOptions",value:function(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Rd.b.Connecting),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.connection.invoke(this.subscribeEvent,e.token).then((function(){return t.setConnectionState(Rd.b.Connected)})).catch((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.onclose((function(){return e.onConnectionError})),this.connection.onreconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):console.log("Connection Error."),this.setConnectionState(Rd.b.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(e){var t=new Rd.a,n=ks.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),i={logger:Rd.c.Error};return e.logging&&(i.logger=Rd.c.Debug),t.withUrl(r,i).build()}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){e===Rd.b.Connected&&console.log("Connected!"),e===Rd.b.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===Rd.b.Connecting||this.connectionState===Rd.b.Connected||this.connectionState===Rd.b.Reconnecting}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return Pa.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,i=n.successEvent,o=n.errorEvent;this.connection.invoke(e,t).then((function(e){return r.trigger.apply(r,[i].concat(Nd(e)))})).catch((function(e){return r.trigger.apply(r,[o].concat(Nd(e)))}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;this.connection.on(e,(function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];n.trigger.apply(n,[r].concat(t))}))}}])&&Bd(t.prototype,n),r&&Bd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(ka.Object));!function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Xd||(Xd={}));var $d=n(332),Zd=n(729),Jd=n(375);function eh(e){return(eh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nh(e,t){return(nh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oh(e);if(t){var i=oh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ih(this,n)}}function ih(e,t){if(t&&("object"===eh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oh(e){return(oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ah=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nh(e,t)}(o,e);var t,n,r,i=rh(o);function o(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,ne.a.getPhrase("upload.internetConnectivityError","title"))}return t=o,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("upload.internetConnectivityError","heading"),text:ne.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:ne.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&th(t.prototype,n),r&&th(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Fc.a);function sh(e){return(sh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uh(e,t){return(uh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ph(e);if(t){var i=ph(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fh(this,n)}}function fh(e,t){if(t&&("object"===sh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ph(e){return(ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dh,hh,yh=[],mh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uh(e,t)}(a,e);var t,n,i,o=lh(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,i=[{key:"isValidFile",value:function(e,t){return Jd.isValidFile(e,t)}}],(n=[{key:"name",get:function(){return"DropzoneWrapper"}},{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=u.Radio.channel(e.channelName),i=this;this.dropzone=new Jd(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(ha.each(yh,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=n[0]instanceof File?n[0].name:n[0];console.info(t,i,n)}))})),this.on("uploadprogress",(function(e,t,r){var o=r/e.size*100;n.trigger("progress",i.getId(e),o,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=ha.last(t),i=r.xhr;i||(i=r.file.xhr);var o=JSON.parse(i.response);e.cvUpload.fileId=o.id,n.trigger("upload:success",e,o)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new ah):"canceled"!==e.status&&r.a.ErrorHelper.throw(new Vc(ne.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}}])&&ch(t.prototype,n),i&&ch(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function vh(e){return(vh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _h(e,t,n){return t&&wh(e.prototype,t),n&&wh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}function Ch(e,t){return(Ch=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Th(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Oh(e);if(t){var i=Oh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Eh(this,n)}}function Eh(e,t){if(t&&("object"===vh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oh(e){return(Oh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kh,Ph=function(e){Sh(n,e);var t=Th(n);function n(){return bh(this,n),t.call(this,{dataProvider:Se.a.getInstance(Oa.Ajax),cache:Se.a.getInstance(da.Fifo),alertService:Se.a.getInstance(Va.a.ALERT)})}return _h(n,[{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}},{key:"requestUploads",value:function(e,t,n,r){var i=this,o=this.chain();ha.each(e,(function(e){o.create({resource:"/api/upload",eventPrefix:"request:upload",data:i.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),o.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){Se.a.releaseInstance(Oa.Ajax).releaseInstance(da.Fifo)}}]),n}(Qa);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(kh||(kh={}));var Ah=(gh(dh={},kh.Video,"video/*"),gh(dh,kh.LearningResource,$d.b.RESOURCES),gh(dh,kh.Subtitle,$d.b.SUBTITLES),dh),Ih=(gh(hh={},kh.Video,es.c.VIDEO_UPLOAD),gh(hh,kh.LearningResource,es.c.RESOURCE_UPLOAD),gh(hh,kh.Subtitle,es.c.SUBTITLE_UPLOAD),hh),xh=function(e){Sh(n,e);var t=Th(n);function n(){return bh(this,n),t.apply(this,arguments)}return _h(n,[{key:"initialize",value:function(){this.uploadDataService=new Ph,this.progressViewModel=td.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"channelName",get:function(){return Ih[this.uploadType]}},{key:"lang",get:function(){return"uploadShared.services"}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new mh({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,i=r>100;this.progressViewModel.set({progress:i?100:r,done:i})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return mh.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;ha.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new Zd.a(ne.a.getPhrase(this.lang,"invalidFileType"))):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),i=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===kh.Video&&(r=r.replace(/\.[^/.]+$/,"")),i.add({id:n.uploader.getId(e),file:e,name:r},{at:i.length-1})}),(function(){t&&yu.a.logUserAction({uploadCount:e.length},t),u.Radio.channel(n.channelName).trigger(md.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var i=r.get("file");this.uploader.removeFile(i),n.remove(r),this.uploadDataService.cancelUpload(i.cvUpload.uploadId,i.cvUpload.ingestUrl,(function(){yu.a.logUserAction({id:i.cvUpload.uploadId},{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Discard,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.MyUploads}),u.Radio.channel(t.channelName).trigger(md.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),yu.a.logUserAction({id:e.cvUpload.uploadId},{entity:E.EntityType.Video,actionType:E.UserAction.Upload,workflowPhase:E.WorkflowPhase.Complete,descriptor:E.OperationDescriptor.Single,location:E.LocationContext.VideoUpload}),u.Radio.channel(this.channelName).trigger(md.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));ha.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return Ah[this.uploadType]}}]),n}(r.a.Service),Lh=function(e){Sh(n,e);var t=Th(n);function n(){return bh(this,n),t.apply(this,arguments)}return _h(n,[{key:"uploadType",get:function(){return kh.Video}},{key:"name",get:function(){return $a.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Xd.Temporary}}]),n}(xh),Rh=function(e){Sh(n,e);var t=Th(n);function n(){return bh(this,n),t.apply(this,arguments)}return _h(n,[{key:"uploadType",get:function(){return kh.Subtitle}},{key:"name",get:function(){return $a.b.SubtitleUpload}},{key:"fileLifestyle",get:function(){return Xd.Permanent}}]),n}(xh),jh=function(e){Sh(n,e);var t=Th(n);function n(){return bh(this,n),t.apply(this,arguments)}return _h(n,[{key:"uploadType",get:function(){return kh.LearningResource}},{key:"name",get:function(){return $a.b.ResourceUpload}},{key:"fileLifestyle",get:function(){return Xd.Permanent}}]),n}(xh),Nh=n(41);function Dh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Bh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"name",get:function(){return wc.a.Video}},{key:"clearVideoCache",value:function(){this.store.dispatch({type:i.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=fn.a.videos(e,(function(e){Nh.a.isFunction(t)&&t(new r.a.Collection(e))}));return i.a.hooklessFetch(this.store,n),null}}])&&Dh(t.prototype,n),o&&Dh(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Uh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Mh,Vh,Fh,Hh=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Aa.a.DELETE}},zh=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Aa.a.DELETE}},Wh=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Aa.a.POST}},qh=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Gh=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Kh=function(e,t){return{url:"/api/upload/complete",key:"complete:upload:".concat(e.id),type:Aa.a.POST,success:t,data:e}},Yh=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"name",get:function(){return wc.a.VideoUpload}},{key:"clearPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,Hh(e,t))}},{key:"cancelPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,zh(e,t))}},{key:"retryPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,Wh(e,t))}},{key:"getPendingItem",value:function(e,t){i.a.fetch(this.store.dispatch,qh(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){var t=Gh(e);i.a.ajaxRequest({resource:t.url,type:Aa.a.GET,success:e,error:function(){}})}},{key:"completeVideoUpload",value:function(e,t){i.a.fetch(this.store.dispatch,Kh(e,t))}}])&&Uh(t.prototype,n),o&&Uh(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Xh=n(284);function Qh(e){return(Qh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Jh(){return(Jh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=ey(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}}).apply(this,arguments)}function ey(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=iy(e)););return e}function ty(e,t){return(ty=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ny(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=iy(e);if(t){var i=iy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ry(this,n)}}function ry(e,t){if(t&&("object"===Qh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function iy(e){return(iy=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Mh||(Mh={})),function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Vh||(Vh={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Fh||(Fh={}));var oy=ne.a.encloseNamespace("upload.services"),ay=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ty(e,t)}(o,e);var t,n,r,i=ny(o);function o(){return $h(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){Jh(iy(o.prototype),"initialize",this).call(this),this.videoUploadDataService=Se.a.getInstance(wc.a.VideoUpload,this),this.pendingItemsService=Se.a.getInstance(wc.b.PendingItems,this),this.userDataService=Se.a.getInstance(wc.a.FlightUser,this),this.alertService=Se.a.getInstance(Va.a.ALERT,this),this.listenTo(this.channelName,md.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,md.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,md.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:Ma.a.Success,heading:oy("startUploadAlertHeading"),message:1===e.length?oy("startUploadSingleAlertBody",{videoName:e[0].name}):oy("startUploadMultipleAlertBody",{uploadCount:e.length})},n=Z.a.getCurrentContext().appLink;!!yf.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=oy("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||u.Radio.channel(this.channelName).trigger(md.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(i){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:i.id,categoryId:null,pendingProcessOrigin:Mh.Upload,origin:Vh.Lite,fileId:t.id,subtitleOptions:{subtitleExtractOptions:Fh.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Jh(iy(o.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&Zh(t.prototype,n),r&&Zh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Lh);function sy(e){return(sy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cy(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uy(e,t){return(uy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ly(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=py(e);if(t){var i=py(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fy(this,n)}}function fy(e,t){if(t&&("object"===sy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function py(e){return(py=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uy(e,t)}(o,e);var t,n,r,i=ly(o);function o(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(t=i.call(this,e)).imageUrls=e.imageUrls,t}return t=o,(n=[{key:"name",get:function(){return $a.b.ImageUrl}},{key:"getImageUrls",value:function(){return this.imageUrls}}])&&cy(t.prototype,n),r&&cy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);var hy=n(327),yy=n(312);function my(e,t){return Xl.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var vy={version:null};function gy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vy,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case yy.a.API_RESPONSE:return my(e,t)}return e}function by(e){return(by="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _y(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),wy({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),wy({},t.payload.dataOrKey,t.payload.keyData)))):("object"===by(t.payload.dataOrKey)&&Array.isArray(t.payload.dataOrKey),Object.assign(Object.assign({},e),wy({},t.payload.viewModelKey,t.payload.dataOrKey)))}function Sy(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ge.a.UPDATE:return _y(e,t)}return e}var Cy=n(238);function Ty(e){return(Ty="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ey(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oy(e,t){return(Oy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ky(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ay(e);if(t){var i=Ay(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Py(this,n)}}function Py(e,t){if(t&&("object"===Ty(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ay(e){return(Ay=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Iy=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Oy(e,t)}(a,e);var t,n,i,o=ky(a);function a(e,t,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=o.call(this,ne.a.getPhrase("shared.oldVersion","title",{oldVersion:e,newVersion:t}))).btnVariant=n,r}return t=a,(n=[{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.oldVersion","heading"),text:ne.a.getPhrase("shared.oldVersion","body"),buttons:[{text:ne.a.getPhrase("shared.oldVersion","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&Ey(t.prototype,n),i&&Ey(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(Fc.a);function xy(e){return(xy="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ly(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ry(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jy(e,t,n){return t&&Ry(e.prototype,t),n&&Ry(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ny(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dy(e,t)}function Dy(e,t){return(Dy=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function By(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=My(e);if(t){var i=My(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Uy(this,n)}}function Uy(e,t){if(t&&("object"===xy(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function My(e){return(My=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vy=function(e){Ny(n,e);var t=By(n);function n(){return Ly(this,n),t.apply(this,arguments)}return jy(n,[{key:"onDone",value:function(){r.a.LocationUtils.PageLoad("/login?returnUrl=".concat(encodeURIComponent(r.a.LocationUtils.GetCurrentUrl())))}}]),n}(function(e){Ny(n,e);var t=By(n);function n(e){var r;return Ly(this,n),(r=t.call(this,ne.a.getPhrase("shared.authentication","title"))).btnVariant=e,r}return jy(n,[{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:ne.a.getPhrase("shared.authentication","heading"),text:ne.a.getPhrase("shared.authentication","body"),buttons:[{text:ne.a.getPhrase("shared.authentication","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}]),n}(Fc.a)),Fy=n(259),Hy={"{gateway}":"gatewayApiUrl","{image}":"imageCdnUrl"};function zy(e){return function(t,n){var r=Object.keys(Hy).find((function(e){return t.resource.startsWith(e)}));if(!r)return n(t);function a(){n(t)}function s(e,i){var o=e[Hy[r]],a=Object.assign(Object.assign({},t),{resource:Fy.a.safeUrlConcat(o,t.resource.split("".concat(r,"/"))[1])});(null==i?void 0:i.value)&&(a.headers={authorization:"Bearer ".concat(i.value)}),n(a)}i.a.hooklessFetch(e,fe.a.config((function(t){i.a.hooklessFetch(e,o.a.currentUser((function(n){return function(t,n){if(!n.isAuthenticated)return void s(t);i.a.hooklessFetch(e,o.a.token((function(e){return s(t,e)}),a))}(t,n)}),a))}),a))}}var Wy,qy=/\(([^()]*)\)/g;function Gy(e,t){return function(n,i){var o=new r.a.Middleware;decodeURIComponent(n.resource).replace(qy,(function(e){var n=t[e];if("string"!=typeof n)return n?void o.use(n):e;o.use(function(e,t){return function(n,r){r(Object.assign(Object.assign({},n),{resource:n.resource.replace(e,t)}))}}(e,n))}));var a={resource:n.resource,store:e};o.go(a,(function(e){i(Object.assign(Object.assign({},n),{resource:e.resource}))}))}}function Ky(e,t){return function(n){var o=new r.a.Middleware;o.use(zy(e.store)),o.use(Gy(e.store,t)),o.go(n,(function(e){i.a.ajaxRequest(e)}))}}function Yy(e){return function(t){return function(r){if(r.type===i.a.Actions.API_RESPONSE){var a=function(e){var t,n=e.getState().flightData,r=o.a.currentUser().key,i=null===(t=null==n?void 0:n.resources)||void 0===t?void 0:t[r];if(i){var a=on.a.first(i.entityIds);if(a)return n.entities[a]}}(e);if(!a||a.contentRegion!==Wy.US)return t(r);n.e(168).then(n.bind(null,2214)).then((function(e){for(var n=e.TranslateTermsHelper,i=Object.keys(r.entities),o=0;o<i.length;o++){var a=i[o],s=r.entities[a];s.typeId===an.a.Series&&"series"===s.type&&(s.name=n.translate(s.name),s.description=n.translate(s.description))}t(r)}))}else t(r)}}}!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(Wy||(Wy={}));var Xy=n(256);function Qy(e){return function(t,n){i.a.hooklessFetch(t.store,o.a.currentUser((function(r){var i="".concat("video[thumbnail],_canUpdate,_videoProgress,owner,_canBeConsumed");r.isAuthenticated&&(i+=",favouritedby{id:".concat(r.id,"}")),e===mc.a.CLIP&&(i+=",interactives[thumbnail,clip[video[thumbnail]],video[thumbnail]]");var o=t.resource.replace(e,i);n(Object.assign(Object.assign({},t),{resource:o}))}),(function(){return n(t)})))}}function $y(e){return function(t,n){i.a.hooklessFetch(t.store,o.a.currentUser((function(r){var i="".concat("thumbnail,rating,series,season,_videoProgress,_canBeConsumed");r.isAuthenticated&&(i+=",favouritedby{id:".concat(r.id,"}")),e===mc.a.VIDEO_COLLECTION&&(i+=",_canUpdate,subtitles{limit:1}");var o=t.resource.replace(e,i);n(Object.assign(Object.assign({},t),{resource:o}))}),(function(){return n(t)})))}}var Zy=[x.a.ShareToGoogleClassroom,x.a.ShareToMicrosoftTeams,x.a.DefaultPlaybackQuality,x.a.DefaultLocalCachePlaybackQuality,x.a.EnableSubtitlesDefault,x.a.LTI,x.a.LiteUpgradeTime,x.a.LiteUpgradeTypeCustomer,x.a.LiteUpgradeComplete];var Jy,em=[x.a.HasCompletedOnboarding,x.a.BulkOnboardingPreferencesState,x.a.LiteUpgradeTypeUser,x.a.HasCompletedUpgradeOnboarding,x.a.LiteUpgradeFeedback];function tm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nm,rm=(tm(Jy={},mc.a.VIDEO_COLLECTION,$y(mc.a.VIDEO_COLLECTION)),tm(Jy,Xy.a.WIDGET_VIDEO_COLLECTION,$y(Xy.a.WIDGET_VIDEO_COLLECTION)),tm(Jy,mc.a.CLIP,Qy(mc.a.CLIP)),tm(Jy,mc.a.CLIP_COLLECTION,Qy(mc.a.CLIP_COLLECTION)),tm(Jy,mc.a.INTERACTIVE,(function(e,t){i.a.hooklessFetch(e.store,o.a.currentUser((function(n){var r="video[thumbnail],thumbnail,clip[video[thumbnail]],_canUpdate,_isClickViewContent,_timepoints,_canBeConsumed";n.isAuthenticated&&(r+=",favouritedby{id:".concat(n.id,"}"));var i=e.resource.replace(mc.a.INTERACTIVE,r);t(Object.assign(Object.assign({},e),{resource:i}))}),(function(){return t(e)})))})),tm(Jy,"(customerSettings)",(nm="(customerSettings)",function(e,t){var n=Zy.map((function(e){return"type=".concat(e)})).join("&"),r=e.resource.replace(nm,n);t(Object.assign(Object.assign({},e),{resource:r}))})),tm(Jy,"(userSettings)",function(e){return function(t,n){var r=em.map((function(e){return"type=".concat(e)})).join("&"),i=t.resource.replace(e,r);n(Object.assign(Object.assign({},t),{resource:i}))}}("(userSettings)")),Jy);var im=n(161);function om(e){return(om="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function am(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cm(e,t){return(cm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function um(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fm(e);if(t){var i=fm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lm(this,n)}}function lm(e,t){if(t&&("object"===om(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fm(e){return(fm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cm(e,t)}(o,e);var t,n,r,i=um(o);function o(){return am(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{searchResults:{application:P.a.SEARCH,action:A.a.Search.HOME},series:{application:P.a.DEFAULT,action:A.a.Default.SERIES},videoDetails:{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},tagSearch:{application:P.a.SEARCH,action:A.a.Search.HOME},classification:{application:P.a.SUBJECT,action:A.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return ne.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}},{key:"showSearchTips",get:function(){return!1}},{key:"useContextualSearch",get:function(){return!1}}])&&sm(t.prototype,n),r&&sm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(im.BaseSearchAppVariables),dm=n(59),hm=n(788),ym=n.n(hm);function mm(e){return(mm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function vm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bm(e,t){return(bm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function wm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Sm(e);if(t){var i=Sm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _m(this,n)}}function _m(e,t){if(t&&("object"===mm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Sm(e){return(Sm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bm(e,t)}(o,e);var t,n,r,i=wm(o);function o(){return vm(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},notifications:{application:P.a.NOTIFICATIONS,action:A.a.Notifications.HOME},shareLink:{application:P.a.SHARE,action:A.a.Share.VIEW_SHARE_LINK}}}},{key:"notificationTypesWithAppLinks",get:function(){return[dm.a.VideoReviewReminder,dm.a.VideoReviewAddedToLibrary,dm.a.CustomLibraryVideoAvailable,dm.a.WorkspaceVideoAvailable,dm.a.ExchangeVideoAvailable,dm.a.NewDirectShare,dm.a.MyVideosVideoAvailable]}},{key:"unsupportedNotificationLinks",get:function(){return[dm.a.EditedVideoAvailable,dm.a.VideoReviewAddedToLibrary,dm.a.VideoReviewReminder,dm.a.StaffRequest,dm.a.StaffRequestFulfilled,dm.a.SuggestEdit,dm.a.VideoRequestAvailable,dm.a.VideoRequestDenied,dm.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return zt.a.EmptyStates.NOTIFICATIONS}},{key:"bellIconColor",get:function(){return"dark"}},{key:"notificationsViewClassNames",get:function(){return"px-3 ".concat(ym.a.notificationsView)}}])&&gm(t.prototype,n),r&&gm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(im.BaseNotificationsAppVariables);var Tm=n(128);function Em(e){return(Em="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Om={register:function(){var e=this;Tm.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return ne.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new ve.a("No language key provided.")),!1):"object"!==Em(t)?(r.a.ErrorHelper.throw(new ve.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!ha.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new ve.a("No `lang` property provided.")),!1)}};var km,Pm=n(152);function Am(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other",e[e.ClickView=254]="ClickView",e[e.System=255]="System"}(km||(km={}));var Im={curriculum:!1},xm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:Im},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return $a.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Pm.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Am(t.prototype,n),r&&Am(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var Lm=n(172),Rm=n(316);function jm(e){return(jm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Nm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dm(e,t){return(Dm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Bm(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mm(e);if(t){var i=Mm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Um(this,n)}}function Um(e,t){if(t&&("object"===jm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Mm(e){return(Mm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vm=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Dm(e,t)}(a,e);var t,n,i,o=Bm(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this)).clients={},t.enrichers={},td.get("application:options").set(null!=e?e:{}),t.bindNavigationListener(),t}return t=a,(n=[{key:"name",get:function(){return Ce.a.Analytics}},{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(Rm.a.ANALYTICS,Lm.a.Inlet,this.onEvent)}},{key:"registerClient",value:function(e,t){return this.validateConstructor(e),this.clients[e.prototype.name]=e.prototype.name,this.transport.subscribe(new e(t)),this}},{key:"registerEnricher",value:function(e,t){this.validateConstructor(e);var n=new e(t);return this.enrichers[n.name]=n,this.registerMiddleware(ha.bind(n.enrich,n)),this}},{key:"hasEnricher",value:function(e){return!!this.enrichers[e.prototype.name]}},{key:"onEvent",value:function(e){var t=this;this.executeMiddleware(e,(function(e){t.transport.publish(e)}))}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||r.a.ErrorHelper.throw(new ve.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return Nh.a.isFunction(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new ve.a("A client class with the name: ".concat(t," has already been registered with ").concat(this.name))),n("BaseAnalyticsEnricher")&&this.enrichers[t]&&r.a.ErrorHelper.throw(new ve.a("An enricher class named: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"registerMiddleware",value:function(e){var t;this.executeMiddleware=(t=this.executeMiddleware,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"executeMiddleware",value:function(e,t){t(e)}},{key:"bindNavigationListener",value:function(){this.listenTo(p.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}},{key:"logNavigate",value:function(e,t){yu.a.logNavigate(e,t)}}])&&Nm(t.prototype,n),i&&Nm(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function Fm(e){return(Fm="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Hm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zm(e,t,n){return t&&Hm(e.prototype,t),n&&Hm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gm(e,t)}function Gm(e,t){return(Gm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Km(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xm(e);if(t){var i=Xm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ym(this,n)}}function Ym(e,t){if(t&&("object"===Fm(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Xm(e){return(Xm=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qm=function(e){qm(n,e);var t=Km(n);function n(){return Wm(this,n),t.apply(this,arguments)}return zm(n,[{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}},{key:"publish",value:function(e){this.getChannel().trigger(Lm.a.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){Nh.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};ha.isFunction(t.listenTo)?t.listenTo(this.getChannel(),Lm.a.Outlet,n):this.listenTo(this.getChannel(),Lm.a.Outlet,n)}}]),n}(function(e){qm(n,e);var t=Km(n);function n(){return Wm(this,n),t.apply(this,arguments)}return zm(n)}(ka.Object));function $m(e){return($m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zm(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jm(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ev(e,t){return(ev=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=rv(e);if(t){var i=rv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return nv(this,n)}}function nv(e,t){if(t&&("object"===$m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function rv(e){return(rv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var iv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ev(e,t)}(o,e);var t,n,r,i=tv(o);function o(){return Zm(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return"UserDataEnricher"}},{key:"initialize",value:function(){this.user=td.get("application:options").get("user")}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("user",this.getUser(this.user)),t(e)}},{key:"getUser",value:function(e){return{country:e.countryCode,customerId:e.customerId,id:e.id,role:e.role}}}])&&Jm(t.prototype,n),r&&Jm(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(xe),ov=n(239);function av(e){return(av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function cv(e,t){return(cv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function uv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fv(e);if(t){var i=fv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return lv(this,n)}}function lv(e,t){if(t&&("object"===av(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fv(e){return(fv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cv(e,t)}(a,e);var t,n,i,o=uv(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).productName=e.productName,t.productVersion=e.productVersion,t}return t=a,(n=[{key:"name",get:function(){return"CoreContextEnricher"}},{key:"shouldEnrich",value:function(e){return!0}},{key:"enrich",value:function(e,t){this.shouldEnrich(e)||t(e),e.enrich("coreContext",this.getCoreContext()),t(e)}},{key:"getCoreContext",value:function(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}},{key:"getTimestamp",value:function(){return Os.utc().toISOString()}},{key:"getProductInfo",value:function(){return{name:this.productName,version:this.productVersion}}},{key:"getRequestInfo",value:function(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}},{key:"getClientInfo",value:function(){var e=ov.a.getOperatingSystem(),t=ov.a.getBrowser();return{os:e.os,osVersion:e.version,browser:t.browser,browserVersion:t.version,screenResolution:"".concat(window.screen.width,"x").concat(window.screen.height)}}}])&&sv(t.prototype,n),i&&sv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(xe),dv=n(322);function hv(e){return(hv="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mv(e,t){return(mv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vv(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bv(e);if(t){var i=bv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gv(this,n)}}function gv(e,t){if(t&&("object"===hv(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function bv(e){return(bv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mv(e,t)}(o,e);var t,n,r,i=vv(o);function o(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,e)}return t=o,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===o.type}}])&&yv(t.prototype,n),r&&yv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function _v(e){return(_v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Sv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cv(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tv(e,t){return(Tv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ev(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kv(e);if(t){var i=kv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ov(this,n)}}function Ov(e,t){if(t&&("object"===_v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function kv(e){return(kv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}wv.type="BaseAnalyticsClient";var Pv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tv(e,t)}(a,e);var t,n,i,o=Ev(a);function a(){return Sv(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return"DebuggerClient"}},{key:"shouldLog",value:function(){return X.a.isDevelopment}},{key:"log",value:function(e){var t=ha.clone(e);for(var n in e){var i=t[n];(i instanceof r.a.Model||i instanceof r.a.Collection)&&(t[n]=i.toJSON())}console.log("Event Debugger: ",t)}}])&&Cv(t.prototype,n),i&&Cv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(wv),Av=n(199),Iv=n(127),xv=n(305),Lv={getUser:function(e){return new Promise((function(t){i.a.hooklessFetch(e.store,o.a.currentUser((function(n){var r,a;if(n.isAuthenticated){var s=new Gp(2),c=function(){s.decrement(),s.getValue()>0||t(Lv.mapCurrentUserToAnalyticsUser(n,r,a))};i.a.hooklessFetch(e.store,o.a.user(n.id,(function(e){r=e,c()}))),i.a.hooklessFetch(e.store,xv.a.customer(n.customerId,(function(e){a=e,c()})))}else t(null)})))}))},mapCurrentUserToAnalyticsUser:function(e,t,n){var r,i=kl.a.getUserType(t);return{id:null==e?void 0:e.id,countryCode:null==e?void 0:e.countryCode,contentRegion:null==e?void 0:e.contentRegion,instanceRegion:null==e?void 0:e.instanceRegion,customerId:null==e?void 0:e.customerId,customerGuid:null==n?void 0:n.customerGuid,customerName:null==e?void 0:e.customerName,crmId:null==n?void 0:n.crmId,role:null==e?void 0:e.role,userGroup:i,yearGroup:i===Iv.a.Staff?"staff":null===(r=null==t?void 0:t.masterYearGroup)||void 0===r?void 0:r.name}}},Rv={logError:function(e){Nh.a.isFunction(null===trackJs||void 0===trackJs?void 0:trackJs.track)&&trackJs.track(e)}},jv={formatData:function(e){var t=Av.a.formatData(e),n={};return e.plugin&&(n.plugin=e.plugin),Object.assign(Object.assign({},n),t)}},Nv=l.a.Router.prototype._routeToRegExp("share/:id(/)"),Dv=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)");var Bv=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function s(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}c((r=r.apply(e,t||[])).next())}))},Uv=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)"),Mv=l.a.Router.prototype._routeToRegExp("videos/embed/:videoId(/)");var Vv=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});Vv.addInitializationStep((function(e,t){e.registerLayout(O,Ap).registerLayout(k,Wp),t(e)})).addInitializationStep((function(e,t){Se.a.registerInstance(Ea,{size:100}),t(e)})).addInitializationStep((function(e,t){Se.a.registerInstance(Ua,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep((function(e,t){var n,o,a,s,c=Object(hy.combineReducers)({flightData:i.a.FlightReducer,applicationData:gy,viewModelData:Sy}),u=i.a.createMiddleware({fetchData:Ky(e,rm),bootstrappedData:window.bootstrapData||{},defaultExpiryTime:Za.a.STANDARD}),l=(o=(n={oldVersionError:Iy,authenticationError:Vy}).oldVersionError,a=n.authenticationError,function(e){return function(t){return function(n){var i,s,c=n;if(n.type===Cy.Actions.API_ERROR&&a&&(null===(i=null==c?void 0:c.xhr)||void 0===i?void 0:i.status)===un.a.Unauthorized)return ma.c.throw(new a("dark"));if(n.type===Cy.Actions.API_RESPONSE){var u=e.getState().applicationData.version,l=null===(s=null==c?void 0:c.xhr)||void 0===s?void 0:s.getResponseHeader("X-App-Version");o&&u&&l&&l!==u&&r.a.ErrorHelper.delayedThrow("old-version-error",new o(u,l,"dark"),18e4),t(n)}else t(n)}}}),f=Object(hy.createStore)(c,Object(hy.applyMiddleware)(u,Yy,l));s=f,e.registerStore(s),t(),delete window.bootstrapData})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:yc.a.Success,type:Ma.a.Success},defaultErrorAlert:{heading:yc.a.Fail,type:Ma.a.Fail},alertViewCtor:ac};Se.a.registerSingleton(new Ma.b(n));var r=Se.a.getInstance(Va.a.ALERT),i={cache:da.Fifo,dataProvider:Oa.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};Se.a.registerDataService(hc,i).registerDataService(us,i).registerDataService(Ys,i);var o={store:e.store};Se.a.registerInstance(bc,o).registerInstance(Sc,o).registerInstance(Tc,o).registerInstance(Oc,o);var a={cache:da.Fifo,dataProvider:Oa.Notifications,alertService:r};Se.a.registerDataService(Es,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){Se.a.registerInstance(dy,{imageUrls:zt.a}).registerInstance(ay).registerInstance(Bh,{store:e.store}).registerInstance(Yh,{store:e.store}).registerInstance(Td).registerInstance(Xh.a).registerInstance(jh).registerInstance(Rh).registerInstance(Ld);var n=new Gp(2),r=function(){n.decrement(),n.getValue()>0||(Se.a.releaseInstance($a.a.Language),Se.a.releaseInstance(wc.a.FlightConfig),t(e))};Se.a.getInstance($a.a.Language).getLanguageConfig((function(e){ne.a.setConfig(e),r()})),Se.a.getInstance(wc.a.FlightConfig).getConfig((function(e){Se.a.registerInstance(Qd,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),r()}))})).addInitializationStep((function(e,t){var n,r,o,a=Se.a.getInstance(wc.a.FlightConfig),s=Se.a.getInstance(wc.a.FlightUser),c=new Gp(3),u=function(){c.decrement(),c.getValue()>0||(r.isAuthenticated?p(n.instanceRegion):f())},f=function(){var t=l.a.history.getFragment(we.LocationUtils.GetCurrentPath()),r=Nv.test(t),o=Dv.test(t);if(r||o){var a="";r?a=l.a.Router.prototype._extractParameters(Nv,t)[0]:o&&(a=l.a.Router.prototype._extractParameters(Dv,t)[0]),a?i.a.hooklessFetch(e.store,cn.a.getShareObject(a,(function(e){return p(e.ownerInstanceRegion)}),(function(){return p(n.instanceRegion)}))):p(n.instanceRegion)}else p(n.instanceRegion)},p=function(i){var a=new Vm({user:r,config:n});Se.a.registerSingleton(a),a.registerTransport(Qm),a.registerClient(Pv),a.registerClient(dv.a,{productName:"lite.web",productVersion:o,regionName:i,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:function(){return Lv.getUser(e)},shouldLog:Av.a.shouldLog,formatData:jv.formatData,logError:Rv.logError}),a.registerEnricher(pv,{productName:"ClickView Primary",productVersion:o}),a.registerEnricher(iv);var s=be.b.get(_e.a.PLUGIN);(null==s?void 0:s.consumerKey)&&!a.hasEnricher(Ue)&&a.registerEnricher(Ue,{consumerKey:s.consumerKey}),Se.a.releaseInstance(wc.a.FlightConfig),Se.a.releaseInstance(wc.a.FlightUser),t(e)};a.getVersion((function(e){o=e,u()})),a.getConfig((function(e){n=e,u()})),s.getCurrentUser((function(e){r=e,u()}),(function(){u()}))})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:ha.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Se.a.registerInstance(pm).registerInstance(Cm),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(te.a,Qc).registerErrorHandler(Fc.a,$c).registerErrorHandler(Vc,Yc).registerErrorHandler(Ft.a,Xc).registerErrorHandler(ee.a,Qc).registerErrorHandler(Hc.a,Qc).registerErrorHandler(zc.a,Qc).registerErrorHandler(Wc.a,Xc).registerErrorHandler(qc.a,Qc).registerErrorHandler(Gc.a,Xc).registerErrorHandler(Kc.a,Qc).registerErrorHandler(hn.a,Zc).registerErrorHandler(Ln.a,Jc),t()})).addInitializationStep((function(e,t){function n(){r.a.ErrorHelper.throw(new ee.a)}e.registerApplication(rn).registerApplication(so).registerApplication(Ur).registerApplication(ai).registerApplication(hr).registerApplication(Or).registerApplication(Xr).registerApplication(vi).registerApplication(Mi).registerApplication(bo).registerApplication(xo),i.a.hooklessFetch(e.store,o.a.currentUser((function(r){r.isAuthenticated?i.a.hooklessFetch(e.store,o.a.permissions((function(n){if(n[a.a.StudentExperience])return e.registerApplication(ea).registerApplication(pa),void t(e);e.registerApplication(Vt).registerApplication(Pi).registerApplication(pt).registerApplication(Qi).registerApplication(At).registerApplication(zo),t(e)}),n)):t(e)}),n))})).addInitializationStep((function(e,t){Om.register(),t(e)})).addInitializationStep((function(e,t){Se.a.registerSingleton(new xm({onlineRole:Pm.a.Staff,customerType:km.Primary})),t(e)})),Vv.addStartUpStep((function(e,t,n){Se.a.getInstance(wc.a.FlightConfig).getConfig((function(){X.a.setUpVariables({isDevelopment:!1}),n(e,t),Se.a.releaseInstance(wc.a.FlightConfig)}))})).addStartUpStep((function(e,t,n){return Bv(this,void 0,void 0,regeneratorRuntime.mark((function s(){var c,f,d,h,y,m,v;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null==(c=be.b.get(_e.a.PLUGIN))?void 0:c.isPlugin)){s.next=4;break}return n(e,t),s.abrupt("return");case 4:if(f=l.a.history.getFragment(r.a.LocationUtils.GetCurrentPath()),!(Uv.test(f)||Mv.test(f))){s.next=9;break}return n(e,t),s.abrupt("return");case 9:return s.prev=9,s.next=12,i.a.fetchAsync(e.store,o.a.currentUser());case 12:if((d=s.sent).isAuthenticated){s.next=16;break}return n(e,t),s.abrupt("return");case 16:return s.next=18,i.a.fetchAsync(e.store,o.a.permissions());case 18:if(!s.sent[a.a.StudentExperience]){s.next=22;break}return n(e,t),s.abrupt("return");case 22:return s.next=24,i.a.fetchAsync(e.store,I.a.customerSettings(d.customerId));case 24:if(h=s.sent,y=L(h,x.a.LiteUpgradeComplete),m=L(h,x.a.LiteUpgradeTypeCustomer),!y.value&&m.value){s.next=30;break}return n(e,t),s.abrupt("return");case 30:return s.next=32,i.a.fetchAsync(e.store,xv.a.customer(d.customerId));case 32:v=s.sent,window.Intercom("boot",{api_base:"https://api-iam.intercom.io",app_id:"jllvryg9",name:d.givenName+" "+d.familyName,email:d.email,user_id:d.id,company:{id:v.crmId,name:v.name},avatar:{type:"avatar",image_url:d.avatar}}),u.Radio.channel(p.a.SHELL).on(we.EventNames.ROUTE,(function(){window.Intercom("update")})),R.a.setHasIntercom(),n(e,t),s.next=43;break;case 40:s.prev=40,s.t0=s.catch(9),n(e,t);case 43:case"end":return s.stop()}}),s,null,[[9,40]])})))})),Vv.start()},function(e,t){e.exports=v},function(e,t){e.exports=g},function(e,t){e.exports=b},function(e,t){e.exports=w}])}));
|