@clickview/lite 0.3.0-rc.2 → 0.3.0

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.
Files changed (128) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{lite-app-db53d0d18a.css → lite-app-e69468fb69.css} +1 -1
  3. package/dist/scripts/{21-e5118ba1d6-lite.chunk.js → 21-c1b1cb7d22-lite.chunk.js} +1 -1
  4. package/dist/scripts/{bundle-547ed82f04.min.js → bundle-b0bca08b42.min.js} +2 -2
  5. package/package.json +61 -61
  6. /package/dist/scripts/{1-0549a91b81-lite.chunk.js → 1-16c1b9a4ff-lite.chunk.js} +0 -0
  7. /package/dist/scripts/{10-909e066c54-lite.chunk.js → 10-7bd2b95d1c-lite.chunk.js} +0 -0
  8. /package/dist/scripts/{100-1de2f7ad29-lite.chunk.js → 100-3ef0f5887b-lite.chunk.js} +0 -0
  9. /package/dist/scripts/{101-f07bc80a0c-lite.chunk.js → 101-4178b30c44-lite.chunk.js} +0 -0
  10. /package/dist/scripts/{102-eaf05d476d-lite.chunk.js → 102-56d4300318-lite.chunk.js} +0 -0
  11. /package/dist/scripts/{103-b9bc4b1056-lite.chunk.js → 103-f096d6e389-lite.chunk.js} +0 -0
  12. /package/dist/scripts/{104-d7a8d7a80b-lite.chunk.js → 104-0e85be3a59-lite.chunk.js} +0 -0
  13. /package/dist/scripts/{105-5f9f02e182-lite.chunk.js → 105-647adb1607-lite.chunk.js} +0 -0
  14. /package/dist/scripts/{106-7ed8ee1628-lite.chunk.js → 106-8b364ad8a7-lite.chunk.js} +0 -0
  15. /package/dist/scripts/{108-c907f87637-lite.chunk.js → 108-6649e6f30e-lite.chunk.js} +0 -0
  16. /package/dist/scripts/{109-1c5ef61452-lite.chunk.js → 109-a9370da846-lite.chunk.js} +0 -0
  17. /package/dist/scripts/{11-ad8e725636-lite.chunk.js → 11-845bd1d822-lite.chunk.js} +0 -0
  18. /package/dist/scripts/{110-d502ec9b0f-lite.chunk.js → 110-a936ab7ab2-lite.chunk.js} +0 -0
  19. /package/dist/scripts/{111-8d08af1d8d-lite.chunk.js → 111-814a0fdc6d-lite.chunk.js} +0 -0
  20. /package/dist/scripts/{112-c7011af2f3-lite.chunk.js → 112-42272a72ad-lite.chunk.js} +0 -0
  21. /package/dist/scripts/{113-8cc035bc1c-lite.chunk.js → 113-356b6fc34a-lite.chunk.js} +0 -0
  22. /package/dist/scripts/{114-b01583c069-lite.chunk.js → 114-49126cc023-lite.chunk.js} +0 -0
  23. /package/dist/scripts/{115-1fe05c1677-lite.chunk.js → 115-cbc83021f8-lite.chunk.js} +0 -0
  24. /package/dist/scripts/{116-bc05ff5135-lite.chunk.js → 116-163a38ff06-lite.chunk.js} +0 -0
  25. /package/dist/scripts/{117-525b35d0af-lite.chunk.js → 117-f129113da0-lite.chunk.js} +0 -0
  26. /package/dist/scripts/{118-9cae6d0f2d-lite.chunk.js → 118-62b227b6c0-lite.chunk.js} +0 -0
  27. /package/dist/scripts/{119-04bcd6cdad-lite.chunk.js → 119-8e7e4e9d89-lite.chunk.js} +0 -0
  28. /package/dist/scripts/{127-3aecfa9370-lite.chunk.js → 127-aae3b2ae3a-lite.chunk.js} +0 -0
  29. /package/dist/scripts/{129-c6345d2018-lite.chunk.js → 129-5396a24a99-lite.chunk.js} +0 -0
  30. /package/dist/scripts/{13-9559027344-lite.chunk.js → 13-05c1d537c5-lite.chunk.js} +0 -0
  31. /package/dist/scripts/{130-8b76186bd8-lite.chunk.js → 130-6f4ee81d37-lite.chunk.js} +0 -0
  32. /package/dist/scripts/{132-a86ec602ae-lite.chunk.js → 132-fd3b4ef8ce-lite.chunk.js} +0 -0
  33. /package/dist/scripts/{134-d60a36e66f-lite.chunk.js → 134-ffaad1bfd1-lite.chunk.js} +0 -0
  34. /package/dist/scripts/{14-e591b130b5-lite.chunk.js → 14-816ca3a4c5-lite.chunk.js} +0 -0
  35. /package/dist/scripts/{141-fc201da0df-lite.chunk.js → 141-3cc1bf3b71-lite.chunk.js} +0 -0
  36. /package/dist/scripts/{142-cb261b6161-lite.chunk.js → 142-7b19f57c68-lite.chunk.js} +0 -0
  37. /package/dist/scripts/{143-73461851fe-lite.chunk.js → 143-a69294ac20-lite.chunk.js} +0 -0
  38. /package/dist/scripts/{144-ce6685c0c5-lite.chunk.js → 144-a6061cb5fc-lite.chunk.js} +0 -0
  39. /package/dist/scripts/{145-606203dacd-lite.chunk.js → 145-94fe0469c7-lite.chunk.js} +0 -0
  40. /package/dist/scripts/{146-f2a11a77f6-lite.chunk.js → 146-4f195f16de-lite.chunk.js} +0 -0
  41. /package/dist/scripts/{147-cdedbb5dbf-lite.chunk.js → 147-e29e3b7a0a-lite.chunk.js} +0 -0
  42. /package/dist/scripts/{148-57352e6744-lite.chunk.js → 148-c88974dcf7-lite.chunk.js} +0 -0
  43. /package/dist/scripts/{15-715ca0b4bd-lite.chunk.js → 15-da10efd4b6-lite.chunk.js} +0 -0
  44. /package/dist/scripts/{151-4a36d6db4b-lite.chunk.js → 151-7e40445fce-lite.chunk.js} +0 -0
  45. /package/dist/scripts/{152-774e6c86a2-lite.chunk.js → 152-8cc71734ec-lite.chunk.js} +0 -0
  46. /package/dist/scripts/{153-1e9e04adb6-lite.chunk.js → 153-d74a2819d7-lite.chunk.js} +0 -0
  47. /package/dist/scripts/{156-b86db31d1e-lite.chunk.js → 156-cbec5f3860-lite.chunk.js} +0 -0
  48. /package/dist/scripts/{160-536eee9795-lite.chunk.js → 160-6997e4a747-lite.chunk.js} +0 -0
  49. /package/dist/scripts/{162-2cbbb6074b-lite.chunk.js → 162-7f2d6454c4-lite.chunk.js} +0 -0
  50. /package/dist/scripts/{163-f08f1d9389-lite.chunk.js → 163-8b8c9e087b-lite.chunk.js} +0 -0
  51. /package/dist/scripts/{164-b812385857-lite.chunk.js → 164-be435728f4-lite.chunk.js} +0 -0
  52. /package/dist/scripts/{165-1789d44a3b-lite.chunk.js → 165-9eeccdcc75-lite.chunk.js} +0 -0
  53. /package/dist/scripts/{167-f940c90e22-lite.chunk.js → 167-bcc5224826-lite.chunk.js} +0 -0
  54. /package/dist/scripts/{168-95eb6f5cb1-lite.chunk.js → 168-ed8c9ef09f-lite.chunk.js} +0 -0
  55. /package/dist/scripts/{17-f9517cb82b-lite.chunk.js → 17-4fd63a1a27-lite.chunk.js} +0 -0
  56. /package/dist/scripts/{170-e43cb1b856-lite.chunk.js → 170-76f6277f88-lite.chunk.js} +0 -0
  57. /package/dist/scripts/{174-55af5027eb-lite.chunk.js → 174-206777edba-lite.chunk.js} +0 -0
  58. /package/dist/scripts/{175-3cf5814b56-lite.chunk.js → 175-79b19b0d25-lite.chunk.js} +0 -0
  59. /package/dist/scripts/{18-fb0c393e1f-lite.chunk.js → 18-01e5da83ac-lite.chunk.js} +0 -0
  60. /package/dist/scripts/{183-0bfc709c39-lite.chunk.js → 183-fb14f48029-lite.chunk.js} +0 -0
  61. /package/dist/scripts/{186-043c65b1e7-lite.chunk.js → 186-028cb961b9-lite.chunk.js} +0 -0
  62. /package/dist/scripts/{19-02cb84e4cb-lite.chunk.js → 19-9e6e792c44-lite.chunk.js} +0 -0
  63. /package/dist/scripts/{193-6031a846d9-lite.chunk.js → 193-cb2ab35364-lite.chunk.js} +0 -0
  64. /package/dist/scripts/{20-b565d697b3-lite.chunk.js → 20-9bac9a6a51-lite.chunk.js} +0 -0
  65. /package/dist/scripts/{22-e893d7bb3f-lite.chunk.js → 22-0dec06a396-lite.chunk.js} +0 -0
  66. /package/dist/scripts/{23-41e39013a6-lite.chunk.js → 23-96696efd57-lite.chunk.js} +0 -0
  67. /package/dist/scripts/{24-f95bc129d4-lite.chunk.js → 24-9fe518a8fd-lite.chunk.js} +0 -0
  68. /package/dist/scripts/{25-9de5d6da68-lite.chunk.js → 25-0dea082f4d-lite.chunk.js} +0 -0
  69. /package/dist/scripts/{26-7f3c8a3286-lite.chunk.js → 26-3f0ed70090-lite.chunk.js} +0 -0
  70. /package/dist/scripts/{27-c106cb9df1-lite.chunk.js → 27-77d6ab28a4-lite.chunk.js} +0 -0
  71. /package/dist/scripts/{28-8c96d2d2ef-lite.chunk.js → 28-b809835777-lite.chunk.js} +0 -0
  72. /package/dist/scripts/{29-1c67cf7c55-lite.chunk.js → 29-4e868797d0-lite.chunk.js} +0 -0
  73. /package/dist/scripts/{30-85953b1bbf-lite.chunk.js → 30-b8a332c9fa-lite.chunk.js} +0 -0
  74. /package/dist/scripts/{31-c6240e5918-lite.chunk.js → 31-ccb422a3f3-lite.chunk.js} +0 -0
  75. /package/dist/scripts/{32-8a38f63375-lite.chunk.js → 32-35308772cf-lite.chunk.js} +0 -0
  76. /package/dist/scripts/{36-007c02b892-lite.chunk.js → 36-fadb32d4d0-lite.chunk.js} +0 -0
  77. /package/dist/scripts/{37-86080c3d74-lite.chunk.js → 37-2b9d1568aa-lite.chunk.js} +0 -0
  78. /package/dist/scripts/{39-f721b5df79-lite.chunk.js → 39-cfed3a6ed0-lite.chunk.js} +0 -0
  79. /package/dist/scripts/{40-9daae6d4cd-lite.chunk.js → 40-8999a51a78-lite.chunk.js} +0 -0
  80. /package/dist/scripts/{41-088121f281-lite.chunk.js → 41-646e21f28c-lite.chunk.js} +0 -0
  81. /package/dist/scripts/{42-907f493410-lite.chunk.js → 42-4537d92372-lite.chunk.js} +0 -0
  82. /package/dist/scripts/{43-664bbbe120-lite.chunk.js → 43-86a9517c22-lite.chunk.js} +0 -0
  83. /package/dist/scripts/{44-d6726e4ebd-lite.chunk.js → 44-9e83cc2353-lite.chunk.js} +0 -0
  84. /package/dist/scripts/{45-2002c3597f-lite.chunk.js → 45-29a7cf9698-lite.chunk.js} +0 -0
  85. /package/dist/scripts/{46-838806f3d3-lite.chunk.js → 46-bf1c45f217-lite.chunk.js} +0 -0
  86. /package/dist/scripts/{47-fa0ce7ec4d-lite.chunk.js → 47-1e12732067-lite.chunk.js} +0 -0
  87. /package/dist/scripts/{48-3beb89e740-lite.chunk.js → 48-4d7ceab227-lite.chunk.js} +0 -0
  88. /package/dist/scripts/{49-0a8593a2e4-lite.chunk.js → 49-605ed3c222-lite.chunk.js} +0 -0
  89. /package/dist/scripts/{5-59303fbfef-lite.chunk.js → 5-0fc3932271-lite.chunk.js} +0 -0
  90. /package/dist/scripts/{50-5bfd204084-lite.chunk.js → 50-e6ff5451e8-lite.chunk.js} +0 -0
  91. /package/dist/scripts/{52-f2f74568a3-lite.chunk.js → 52-7a09efc217-lite.chunk.js} +0 -0
  92. /package/dist/scripts/{53-a6e273433f-lite.chunk.js → 53-698f91923b-lite.chunk.js} +0 -0
  93. /package/dist/scripts/{55-10815b2286-lite.chunk.js → 55-3fa787f8c3-lite.chunk.js} +0 -0
  94. /package/dist/scripts/{56-376b908b0a-lite.chunk.js → 56-744b87e83d-lite.chunk.js} +0 -0
  95. /package/dist/scripts/{59-3aca88bc2c-lite.chunk.js → 59-7ef252470e-lite.chunk.js} +0 -0
  96. /package/dist/scripts/{6-a5c4d45fee-lite.chunk.js → 6-085719ae90-lite.chunk.js} +0 -0
  97. /package/dist/scripts/{60-c8c9f7499c-lite.chunk.js → 60-23ee3cd7ae-lite.chunk.js} +0 -0
  98. /package/dist/scripts/{63-d10dd4db9b-lite.chunk.js → 63-2c2bf530fa-lite.chunk.js} +0 -0
  99. /package/dist/scripts/{64-aff38ebad7-lite.chunk.js → 64-20490eca96-lite.chunk.js} +0 -0
  100. /package/dist/scripts/{66-f22b4c36cb-lite.chunk.js → 66-7717705a0a-lite.chunk.js} +0 -0
  101. /package/dist/scripts/{68-36a1ebb75f-lite.chunk.js → 68-ca7c960052-lite.chunk.js} +0 -0
  102. /package/dist/scripts/{69-e94f3a5dd7-lite.chunk.js → 69-d5ce781efa-lite.chunk.js} +0 -0
  103. /package/dist/scripts/{7-19fa807557-lite.chunk.js → 7-c262a77820-lite.chunk.js} +0 -0
  104. /package/dist/scripts/{70-df36e5f504-lite.chunk.js → 70-48d665b973-lite.chunk.js} +0 -0
  105. /package/dist/scripts/{71-dde52935b7-lite.chunk.js → 71-b7ff2e8a30-lite.chunk.js} +0 -0
  106. /package/dist/scripts/{72-6ec8f440f0-lite.chunk.js → 72-8bca5b4f93-lite.chunk.js} +0 -0
  107. /package/dist/scripts/{73-647fe6fcf3-lite.chunk.js → 73-9d10ce1c35-lite.chunk.js} +0 -0
  108. /package/dist/scripts/{75-615f72d037-lite.chunk.js → 75-bc77d81376-lite.chunk.js} +0 -0
  109. /package/dist/scripts/{77-6bd49f5799-lite.chunk.js → 77-6b81d2dcc5-lite.chunk.js} +0 -0
  110. /package/dist/scripts/{78-16f27c6392-lite.chunk.js → 78-f01567decd-lite.chunk.js} +0 -0
  111. /package/dist/scripts/{79-d7786f12e0-lite.chunk.js → 79-a7c8490e2f-lite.chunk.js} +0 -0
  112. /package/dist/scripts/{8-3147d05fe4-lite.chunk.js → 8-f57ada3d87-lite.chunk.js} +0 -0
  113. /package/dist/scripts/{80-3481dc549a-lite.chunk.js → 80-6f10da851d-lite.chunk.js} +0 -0
  114. /package/dist/scripts/{81-118d1f44ac-lite.chunk.js → 81-f44a933b94-lite.chunk.js} +0 -0
  115. /package/dist/scripts/{82-ccd445a265-lite.chunk.js → 82-4d76e463df-lite.chunk.js} +0 -0
  116. /package/dist/scripts/{83-b1f072ac32-lite.chunk.js → 83-08a1fe4084-lite.chunk.js} +0 -0
  117. /package/dist/scripts/{84-fb55a5dbec-lite.chunk.js → 84-1a1e749398-lite.chunk.js} +0 -0
  118. /package/dist/scripts/{85-7068508409-lite.chunk.js → 85-40d9c13ee8-lite.chunk.js} +0 -0
  119. /package/dist/scripts/{87-4bb2b16549-lite.chunk.js → 87-ce5504f10a-lite.chunk.js} +0 -0
  120. /package/dist/scripts/{89-aaa3097fc3-lite.chunk.js → 89-ca0dc6dd56-lite.chunk.js} +0 -0
  121. /package/dist/scripts/{90-41fe7a8033-lite.chunk.js → 90-3e80b3e77e-lite.chunk.js} +0 -0
  122. /package/dist/scripts/{91-f254031cd7-lite.chunk.js → 91-3119af91a5-lite.chunk.js} +0 -0
  123. /package/dist/scripts/{92-a131ba66fb-lite.chunk.js → 92-d679160f3e-lite.chunk.js} +0 -0
  124. /package/dist/scripts/{95-df4a285b05-lite.chunk.js → 95-051922b1e2-lite.chunk.js} +0 -0
  125. /package/dist/scripts/{96-ed9a51d457-lite.chunk.js → 96-46ace0c425-lite.chunk.js} +0 -0
  126. /package/dist/scripts/{97-dc358bfb4a-lite.chunk.js → 97-7c1a1f9f00-lite.chunk.js} +0 -0
  127. /package/dist/scripts/{98-abcd459831-lite.chunk.js → 98-e56d38d25c-lite.chunk.js} +0 -0
  128. /package/dist/scripts/{99-23ab0b2f56-lite.chunk.js → 99-dc410f48bf-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("ReactIntersectionObserver"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),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","ReactIntersectionObserver","reactDropzone","Polyglot","DOMPurify","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("ReactIntersectionObserver"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),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.ReactIntersectionObserver,e.reactDropzone,e.Polyglot,e.DOMPurify,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={34:0},i={34: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]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,14:1,15:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32: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,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,98:1,99:1,100:1,101:1,103:1,104:1,105:1,106:1,107:1,108:1,109:1,110:1,111:1,112:1,113:1,116:1,117:1,119:1,120:1,121:1,122:1,125:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:1,137:1,138:1,139:1,140:1,145:1,146:1,147:1,148:1,149:1,150:1,157:1,158:1,159:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var i="css/"+e+"-lite-"+{0:"31d6cfe0d1",1:"110c57f86c",2:"31d6cfe0d1",3:"e389fa3836",4:"6275209312",5:"4b02bf6bb2",6:"6004e0a317",7:"c2f18f1d28",8:"cbd9c15409",9:"bc5b087c76",10:"703bbc098c",11:"f22a7db2bf",12:"31d6cfe0d1",13:"a9f84a2113",14:"ed35084a5f",15:"10b57f05e6",16:"31d6cfe0d1",17:"ec1a5f8d9a",18:"83385c9f67",19:"0dcf823806",20:"a9eafe29ad",21:"2f6628cb25",22:"669fc3db49",23:"4a8376d820",24:"8a7c9a7069",25:"b4566faf7c",26:"28cf9b0c3c",27:"15769122b1",28:"239fc9777b",29:"3bd36e77bd",30:"985b6ef504",31:"c352c306bb",32:"f22a7db2bf",33:"31d6cfe0d1",36:"278dbb73fc",37:"278dbb73fc",38:"fb9eae4d42",39:"fb1813b688",40:"da4adc74f2",41:"da4adc74f2",42:"ec917a601f",43:"fac641a0a4",44:"43fe16d571",45:"43fe16d571",46:"492d27a0fc",47:"205e9cbddd",48:"853d71b02b",49:"24ed58dfcc",50:"2322f8283d",51:"2503796b18",52:"49ee1294f0",53:"2ff62b3253",54:"24793bd835",55:"27cd3166b1",56:"fb48f96122",57:"9a3f60d719",58:"9a3f60d719",59:"cc8a3d3d3a",60:"4a8376d820",61:"9a3f60d719",62:"9a3f60d719",63:"60fcc5292f",64:"bf28c6dd08",65:"e860778eaa",66:"9a94c2bfcd",67:"d9a373d8dc",68:"f209658b71",69:"dd10075796",70:"5a4ef89e6a",71:"649e1dbeab",72:"2ee776294c",73:"aae95b8739",74:"31d6cfe0d1",75:"1696cbd6bd",76:"6a27216e4e",77:"e957c3cfa0",78:"fb877ba4eb",79:"3eb30ea32d",80:"3eb30ea32d",81:"5450629a32",82:"985b6ef504",83:"d6cd54b11b",84:"f22a7db2bf",85:"4068292bca",86:"f90133ba2b",87:"a7bdb9e6a2",88:"872db466fa",89:"f22a7db2bf",90:"794d3729e3",91:"c08e97ad22",92:"f22a7db2bf",93:"e31b2b8630",94:"8d91e36e7a",95:"f429a540cb",96:"b4c6580112",97:"f22a7db2bf",98:"f22a7db2bf",99:"289275de6f",100:"f66a71557c",101:"f22a7db2bf",102:"31d6cfe0d1",103:"f22a7db2bf",104:"f22a7db2bf",105:"f22a7db2bf",106:"f22a7db2bf",107:"93d7a92eba",108:"f22a7db2bf",109:"fabbc44fbd",110:"f476beb875",111:"4ed16e028d",112:"1e90b333ab",113:"5450629a32",114:"31d6cfe0d1",115:"31d6cfe0d1",116:"602832f68a",117:"e8d0ed4921",118:"31d6cfe0d1",119:"7ab95ddac2",120:"42a5dcfa34",121:"4a91cb7ba9",122:"37878093ed",123:"31d6cfe0d1",124:"31d6cfe0d1",125:"9fcbe98fe1",126:"30208db4b8",127:"f476beb875",128:"d286b282d6",129:"40eedf96d7",130:"4ea4ab4f82",131:"3b9c83579c",132:"31d6cfe0d1",133:"c5e12d3f1d",134:"6e036f7110",135:"efd9c7cfc9",136:"bca705add4",137:"7737c99486",138:"30208db4b8",139:"30208db4b8",140:"30208db4b8",141:"31d6cfe0d1",142:"31d6cfe0d1",143:"31d6cfe0d1",144:"31d6cfe0d1",145:"14218ac613",146:"5d9ea175a9",147:"8fc51c67f9",148:"fdc3ceff80",149:"c6b61e0a7d",150:"57c23ed816",151:"31d6cfe0d1",152:"31d6cfe0d1",153:"31d6cfe0d1",154:"31d6cfe0d1",155:"31d6cfe0d1",156:"31d6cfe0d1",157:"859d0b7430",158:"a199ee0f72",159:"11ea457276",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",173:"31d6cfe0d1",174:"31d6cfe0d1",175:"31d6cfe0d1",176:"31d6cfe0d1",177:"31d6cfe0d1",178:"31d6cfe0d1",179:"31d6cfe0d1",180:"31d6cfe0d1",181:"31d6cfe0d1",182:"31d6cfe0d1",183:"31d6cfe0d1",184:"31d6cfe0d1",185:"31d6cfe0d1",186:"31d6cfe0d1",187:"31d6cfe0d1",188:"31d6cfe0d1",189:"31d6cfe0d1",190:"31d6cfe0d1",191:"31d6cfe0d1",192:"31d6cfe0d1",193:"31d6cfe0d1",194:"31d6cfe0d1",195:"31d6cfe0d1",196:"31d6cfe0d1",197:"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:"73745e668e",1:"0549a91b81",2:"9767109cc6",3:"3b28763e6a",4:"27098de098",5:"59303fbfef",6:"a5c4d45fee",7:"19fa807557",8:"3147d05fe4",9:"023cb53a4d",10:"909e066c54",11:"ad8e725636",12:"57a982bb73",13:"9559027344",14:"e591b130b5",15:"715ca0b4bd",16:"87d05cc99e",17:"f9517cb82b",18:"fb0c393e1f",19:"02cb84e4cb",20:"b565d697b3",21:"e5118ba1d6",22:"e893d7bb3f",23:"41e39013a6",24:"f95bc129d4",25:"9de5d6da68",26:"7f3c8a3286",27:"c106cb9df1",28:"8c96d2d2ef",29:"1c67cf7c55",30:"85953b1bbf",31:"c6240e5918",32:"8a38f63375",33:"65513a477b",36:"007c02b892",37:"86080c3d74",38:"c297fb6aaa",39:"f721b5df79",40:"9daae6d4cd",41:"088121f281",42:"907f493410",43:"664bbbe120",44:"d6726e4ebd",45:"2002c3597f",46:"838806f3d3",47:"fa0ce7ec4d",48:"3beb89e740",49:"0a8593a2e4",50:"5bfd204084",51:"a3d03aeb46",52:"f2f74568a3",53:"a6e273433f",54:"5f1d77bcd2",55:"10815b2286",56:"376b908b0a",57:"015340e60b",58:"799bd542fc",59:"3aca88bc2c",60:"c8c9f7499c",61:"e70be2827b",62:"2feda4dba2",63:"d10dd4db9b",64:"aff38ebad7",65:"4354417d0c",66:"f22b4c36cb",67:"26539bbf51",68:"36a1ebb75f",69:"e94f3a5dd7",70:"df36e5f504",71:"dde52935b7",72:"6ec8f440f0",73:"647fe6fcf3",74:"1aedec1f56",75:"615f72d037",76:"4bd4355ce1",77:"6bd49f5799",78:"16f27c6392",79:"d7786f12e0",80:"3481dc549a",81:"118d1f44ac",82:"ccd445a265",83:"b1f072ac32",84:"fb55a5dbec",85:"7068508409",86:"b3262f70db",87:"4bb2b16549",88:"6d7765ec8a",89:"aaa3097fc3",90:"41fe7a8033",91:"f254031cd7",92:"a131ba66fb",93:"19b44415eb",94:"f46ad2ef5d",95:"df4a285b05",96:"ed9a51d457",97:"dc358bfb4a",98:"abcd459831",99:"23ab0b2f56",100:"1de2f7ad29",101:"f07bc80a0c",102:"eaf05d476d",103:"b9bc4b1056",104:"d7a8d7a80b",105:"5f9f02e182",106:"7ed8ee1628",107:"64c3d657ca",108:"c907f87637",109:"1c5ef61452",110:"d502ec9b0f",111:"8d08af1d8d",112:"c7011af2f3",113:"8cc035bc1c",114:"b01583c069",115:"1fe05c1677",116:"bc05ff5135",117:"525b35d0af",118:"9cae6d0f2d",119:"04bcd6cdad",120:"9500917f85",121:"b3cfc7a82d",122:"42dc5e7ca3",123:"bd37d4232b",124:"d112c884ea",125:"bcb95fb87e",126:"b68d51ec68",127:"3aecfa9370",128:"a089c2f15d",129:"c6345d2018",130:"8b76186bd8",131:"648b92d296",132:"a86ec602ae",133:"cdb6d2dc21",134:"d60a36e66f",135:"f2cbc125a5",136:"930eabca47",137:"c7c4b16a20",138:"63818bd224",139:"3ce66457c3",140:"f4425a1fb7",141:"fc201da0df",142:"cb261b6161",143:"73461851fe",144:"ce6685c0c5",145:"606203dacd",146:"f2a11a77f6",147:"cdedbb5dbf",148:"57352e6744",149:"6157d9dac3",150:"3354a62afc",151:"4a36d6db4b",152:"774e6c86a2",153:"1e9e04adb6",154:"ca52b94383",155:"41150d5c4b",156:"b86db31d1e",157:"614dbe6bb8",158:"bcdcc81659",159:"8e7f174e37",160:"536eee9795",161:"54d576d2a5",162:"2cbbb6074b",163:"f08f1d9389",164:"b812385857",165:"1789d44a3b",166:"8d05c6627a",167:"f940c90e22",168:"95eb6f5cb1",169:"1bfb4339c7",170:"e43cb1b856",171:"eb9c696d22",172:"5f5912da55",173:"f766fe9e77",174:"55af5027eb",175:"3cf5814b56",176:"6190789066",177:"89f97c3626",178:"fe9c250261",179:"2e988a7168",180:"749d9afeb9",181:"62b95a46eb",182:"9969c0a45d",183:"0bfc709c39",184:"041a23615f",185:"50f99ee053",186:"043c65b1e7",187:"958282bed7",188:"ed6a31ee14",189:"1991d874f2",190:"58c1e3833a",191:"371cb9742a",192:"a87fa56b3b",193:"6031a846d9",194:"e3c96bd079",195:"f3c5a67c6c",196:"b8a4856bc9",197:"d716b99856"}[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=1103)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(67);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(328),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application",WATCH_HISTORY:"watch:history:application",SHARE:"share:application",INTERACTIVES:"interactives:application",LAUNCHPAD:"launchpad:application",LIBRARIES:"libraries:application",STUDENT_FEED:"student:feed:application"},i={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(14),a=n.n(o),s=n(191),c=n.n(s),u=n(27),l=n.n(u),f=(n(839),n(840),n(16)),p=n.n(f),d=n(807),h=n.n(d),y=n(36),m=n.n(y),v=n(386),g=n.n(v),b=n(387),w=n.n(b),_=n(808),S=n.n(_),T=n(809),E=n.n(T),O=n(244),C=n.n(O),k=n(341),P=n.n(k),A=n(334),I=n.n(A),L=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),x=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},j=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=x(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=x(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=x(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=x(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=x(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),R=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new L,t.parseStream=new j,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(388),D=n(208),B=n.n(D),U=n(810),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",G="DASH_INVALID_XML",q="NO_BASE_URL",Y="SEGMENT_TIME_UNSPECIFIED",K="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:C()(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(q);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 T=p+h.length+_,E=p+h.length;E<T;)h.push({number:E,duration:g/l,time:y,timeline:d}),y+=g,E++}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:C()(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(Y);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 C()(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)))}},Te=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(G);return n},Ee=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)))}}(Te(e),t),r=n.representationInfo.map(pe);return oe(r,n.locations,t.sidxMapping)},Oe=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(K)}return n}(Te(e))},Ce=J,ke=n(811),Pe=n.n(ke),Ae=n(215),Ie=n(342),Le=n(812),xe=n.n(Le),je=n(214),Re=n(389),Ne=n.n(Re),De=n(73),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 Ge(e){return We(e)&&"[object Object]"===Ve.call(e)&&e.constructor===Object}function qe(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 Ye(e){return"string"==typeof e&&Boolean(e.trim())}function Ke(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(!Ye(t))return a.a[e](null);Ye(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 Ke(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):(Ke(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(qe(e,"height"))),n.width||(n.width=parseFloat(qe(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,Tt=Ze("querySelector"),Et=Ze("querySelectorAll"),Ot=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,$:Tt,$$:Et}),Ct=!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 Ct||Pt(1)}};function Pt(e,t){t&&(St=t),i.a.setTimeout(kt,e)}function At(){Ct=!0,i.a.removeEventListener("load",At)}Xe()&&("complete"===a.a.readyState?At():i.a.addEventListener("load",At));var It,Lt=function(e){var t=a.a.createElement("style");return t.className=e,t},xt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},jt=3;function Rt(){return jt++}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]||Rt();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=Rt()),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||Rt(),Ft(e,t,r)}function Gt(e,t,n){var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Rt(),Ft(e,t,r)}var qt,Yt=Object.freeze({__proto__:null,fixEvent:Mt,on:Ft,off:Ht,trigger:zt,one:Wt,any:Gt}),Kt=function(e,t,n){t.guid||(t.guid=Rt());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(){},Gt(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;qt||(qt=new Map);var n=e.type||e,r=qt.get(this);r||(r=new Map,qt.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,qt.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=Kt(e,i)}},rn=function(e,t,n,r){Jt(e),e.nodeName?Yt[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=Kt(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){Ge(t)?(Ge(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_"+Rt()}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 Tt(e,t||this.contentEl())},t.$$=function(e,t){return Et(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=qe(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=Kt(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=Kt(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=Kt(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=Kt(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=Kt(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,Tn=/Android/i.test(gn),En=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}(),On=Tn&&En<5&&wn<537,Cn=/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}(),Ln=/Safari/i.test(gn)&&!Pn&&!Tn&&!kn,xn=/Windows/i.test(gn),jn=Boolean(Xe()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch)),Rn=/iPad/i.test(gn)||Ln&&jn&&!/iPhone/i.test(gn),Nn=/iPhone/i.test(gn)&&!Rn,Dn=Nn||Rn||_n,Bn=(Ln||Dn)&&!Pn,Un=Object.freeze({__proto__:null,IS_IPOD:_n,IOS_VERSION:Sn,IS_ANDROID:Tn,ANDROID_VERSION:En,IS_NATIVE_ANDROID:On,IS_FIREFOX:Cn,IS_EDGE:kn,IS_CHROME:Pn,CHROME_VERSION:An,IE_VERSION:In,IS_SAFARI:Ln,IS_WINDOWS:xn,TOUCH_ENABLED:jn,IS_IPAD:Rn,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},Gn=[["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"]],qn=Gn[0],Yn=0;Yn<Gn.length;Yn++)if(Gn[Yn][1]in a.a){zn=Gn[Yn];break}if(zn){for(var Kn=0;Kn<zn.length;Kn++)Wn[qn[Kn]]=zn[Kn];Wn.prefixed=zn[0]!==qn[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_"+Rt(),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()},Tr=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,Kt(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)})))},Er=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=Kt(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||Tr(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)&&Tr(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);Er.prototype.allowedEvents_={cuechange:"cuechange"};var Or=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),Cr=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 Er(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:Or,capitalName:"Audio"},video:{ListClass:cr,TrackClass:Cr,capitalName:"Video"},text:{ListClass:ur,TrackClass:Er,capitalName:"Text"}};Object.keys(Pr).forEach((function(e){Pr[e].getterName=e+"Tracks",Pr[e].privateName=e+"Tracks_"}));var Ar={remoteText:{ListClass:ur,TrackClass:Er,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 Lr=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(Kt(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"]&&Ge(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];Lr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Lr.prototype.featuresVolumeControl=!0,Lr.prototype.featuresMuteControl=!0,Lr.prototype.featuresFullscreenResize=!1,Lr.prototype.featuresPlaybackRate=!1,Lr.prototype.featuresProgressEvents=!1,Lr.prototype.featuresSourceset=!1,Lr.prototype.featuresTimeupdateEvents=!1,Lr.prototype.featuresNativeTextTracks=!1,Lr.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",Lr),Lr.registerTech("Tech",Lr),Lr.defaultTechOrder_=[];var xr={},jr={},Rr={};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,xr[c],r,i,o,a);else if(c){var l=function(e,t){var n=jr[e.id()],r=null;if(null==n)return r=t(e),jr[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:xr[s.type],r,i,o,a)}))}else u.length?e(t,u,r,i,o,a):a?r(t,o):e(t,xr["*"],r,i,o,!0)}(t,xr[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===Rr,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===Rr?Rr: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=Lr.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 Gr=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",Gr);var qr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",Kt(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}(Gr);mn.registerComponent("PosterImage",qr);var Yr={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 Kr(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=Kt(l()(o),o.updateDisplay);return t.on("loadstart",Kt(l()(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",Kt(l()(o),o.preselectTrack)),t.ready(Kt(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",Kr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Xr(a.firstChild,"backgroundColor",Kr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Xr(a,"backgroundColor",Kr(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=Yr[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}(Gr);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(Kt(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(Kt(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||Tn||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(Kt(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_=Kt(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||Tn||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(Kt(l()(r),r.handleMouseMove),30),r.throttledHandleMouseSeek=Xt(Kt(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 Ti=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",Ti);var Ei=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);Ei.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ei.prototype.playerEvent="volumechange",mn.registerComponent("VolumeBar",Ei);var Oi=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Ge(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(Kt(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);Oi.prototype.options_={children:["volumeBar"]},mn.registerComponent("VolumeControl",Oi);var Ci=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);Ci.prototype.controlText_="Mute",mn.registerComponent("MuteToggle",Ci);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||Ge(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",Kt(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Kt(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_=Kt(l()(r),r.handleBlur),r.boundHandleTapClick_=Kt(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",Kt(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",Kt(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=Kt(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 Li=["Tab","Esc","Up","Down","Right","Left"],xi=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){Li.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}(Gr);mn.registerComponent("MenuItem",xi);var ji=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}(xi);mn.registerComponent("TextTrackMenuItem",ji);var Ri=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}(ji);mn.registerComponent("OffTextTrackMenuItem",Ri);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=ji),this.label_&&(n=this.label_+" off"),e.push(new Ri(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",Kt(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}(xi);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=Kt(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}(ji);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}(ji);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}(xi);mn.registerComponent("AudioTrackMenuItem",Wi);var Gi=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);Gi.prototype.controlText_="Audio Track",mn.registerComponent("AudioTrackButton",Gi);var qi=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}(xi);qi.prototype.contentElType="button",mn.registerComponent("PlaybackRateMenuItem",qi);var Yi=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 qi(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);Yi.prototype.controlText_="Playback Rate",mn.registerComponent("PlaybackRateMenuButton",Yi);var Ki=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",Ki);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}(Ki);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=Kt(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_()}}}},To=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)},Eo=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_(),(jn||Nn||On)&&!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));jn&&!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&&Tn&&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}(Lr);To(Eo,"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}})),Eo.isSupported=function(){try{Eo.TEST_VID.volume=.5}catch(e){return!1}return!(!Eo.TEST_VID||!Eo.TEST_VID.canPlayType)},Eo.canPlayType=function(e){return Eo.TEST_VID.canPlayType(e)},Eo.canPlaySource=function(e,t){return Eo.canPlayType(e.type)},Eo.canControlVolume=function(){try{var e=Eo.TEST_VID.volume;return Eo.TEST_VID.volume=e/2+.1,e!==Eo.TEST_VID.volume}catch(e){return!1}},Eo.canMuteVolume=function(){try{var e=Eo.TEST_VID.muted;return Eo.TEST_VID.muted=!e,Eo.TEST_VID.muted?ut(Eo.TEST_VID,"muted","muted"):lt(Eo.TEST_VID,"muted"),e!==Eo.TEST_VID.muted}catch(e){return!1}},Eo.canControlPlaybackRate=function(){if(Tn&&Pn&&An<58)return!1;try{var e=Eo.TEST_VID.playbackRate;return Eo.TEST_VID.playbackRate=e/2+.1,e!==Eo.TEST_VID.playbackRate}catch(e){return!1}},Eo.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},Eo.supportsNativeTextTracks=function(){return Bn||Dn&&Pn},Eo.supportsNativeVideoTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.videoTracks)},Eo.supportsNativeAudioTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.audioTracks)},Eo.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];To(Eo.prototype,t,(function(){return Eo[n]()}),!0)})),Eo.prototype.movingMediaElementInDOM=!Dn,Eo.prototype.featuresFullscreenResize=!0,Eo.prototype.featuresProgressEvents=!0,Eo.prototype.featuresTimeupdateEvents=!0,Eo.patchCanPlayType=function(){En>=4&&!Cn&&!Pn&&(mo=Eo.TEST_VID&&Eo.TEST_VID.constructor.prototype.canPlayType,Eo.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":mo.call(this,e)})},Eo.unpatchCanPlayType=function(){var e=Eo.TEST_VID.constructor.prototype.canPlayType;return mo&&(Eo.TEST_VID.constructor.prototype.canPlayType=mo),e},Eo.patchCanPlayType(),Eo.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){}}()}},Eo.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){Eo.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Eo.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){Eo.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Eo.prototype["set"+ln(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Eo.prototype[e]=function(){return this.el_[e]()}})),Lr.withSourceHandlers(Eo),Eo.nativeSourceHandler={},Eo.nativeSourceHandler.canPlayType=function(e){try{return Eo.TEST_VID.canPlayType(e)}catch(e){return""}},Eo.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Eo.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=br(e.src);return Eo.nativeSourceHandler.canPlayType("video/"+n)}return""},Eo.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Eo.nativeSourceHandler.dispose=function(){},Eo.registerSourceHandler(Eo.nativeSourceHandler),Lr.registerTech("Html5",Eo);var Oo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Co={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_"+Rt(),(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_=Kt(l()(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=Kt(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"),jn&&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),jr[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&&xn)&&(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_=Lt("vjs-styles-dimensions");var c=Tt(".vjs-styles-defaults"),u=Tt("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),xt(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&&(Lr.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=Lr.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(Kt(this,this.handleTechReady_),!0),tr(this.textTracksJson_||[],this.tech_),Oo.forEach((function(e){n.on(n.tech_,e,n["handleTech"+ln(e)+"_"])})),Object.keys(Co).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Co[e]+"_"].bind(n),event:t}):n["handleTech"+Co[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=Lr.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,Lr.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=Kt(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||Tn||(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 Lo=i.a.navigator;Io.prototype.options_={techOrder:Lr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Lo&&(Lo.languages&&Lo.languages[0]||Lo.userLanguage||Lo.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)}})),Oo.forEach((function(e){Io.prototype["handleTech"+ln(e)+"_"]=function(){return this.trigger(e)}})),mn.registerComponent("Player",Io);var xo={},jo=function(e){return xo.hasOwnProperty(e)},Ro=function(e){return jo(e)?xo[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=Kt(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,xo[e])},e.isBasic=function(t){var n="string"==typeof t?Ro(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(jo(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 xo[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.");jo(e)&&(delete xo[e],delete Io.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(xo)),e.forEach((function(e){var n=Ro(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=Ro(e);return t&&t.VERSION||""},e}();Uo.getPlugin=Ro,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!!jo(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?Tt("#"+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=Tt(".vjs-styles-defaults");if(!Fo){Fo=Lt("vjs-styles-defaults");var Ho=Tt("head");Ho&&Ho.insertBefore(Fo,Ho.firstChild),xt(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=Tt("#"+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){Lr.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=Lr.getTech,Vo.registerTech=Lr.registerTech,Vo.use=function(e,t){xr[e]=xr[e]||[],xr[e].push(t)},Object.defineProperty(Vo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Vo.middleware,"TERMINATOR",{value:Rr,writeable:!1,enumerable:!0}),Vo.browser=Un,Vo.TOUCH_ENABLED=jn,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),E()(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},Vo.mergeOptions=fn,Vo.bind=Kt,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=Er,Vo.AudioTrack=Or,Vo.VideoTrack=Cr,["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"),Ot[e].apply(null,arguments)}})),Vo.computedStyle=qe,Vo.dom=Ot,Vo.url=_r,Vo.defineLazyProperty=To;
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("ReactIntersectionObserver"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),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","ReactIntersectionObserver","reactDropzone","Polyglot","DOMPurify","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("ReactIntersectionObserver"),require("reactDropzone"),require("Polyglot"),require("DOMPurify"),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.ReactIntersectionObserver,e.reactDropzone,e.Polyglot,e.DOMPurify,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={34:0},i={34: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]&&{1:1,3:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,11:1,13:1,14:1,15:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32: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,62:1,63:1,64:1,65:1,66:1,67:1,68:1,69:1,70:1,71:1,72:1,73:1,75:1,76:1,77:1,78:1,79:1,80:1,81:1,82:1,83:1,84:1,85:1,86:1,87:1,88:1,89:1,90:1,91:1,92:1,93:1,94:1,95:1,96:1,97:1,98:1,99:1,100:1,101:1,103:1,104:1,105:1,106:1,107:1,108:1,109:1,110:1,111:1,112:1,113:1,116:1,117:1,119:1,120:1,121:1,122:1,125:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:1,137:1,138:1,139:1,140:1,145:1,146:1,147:1,148:1,149:1,150:1,157:1,158:1,159:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var i="css/"+e+"-lite-"+{0:"31d6cfe0d1",1:"110c57f86c",2:"31d6cfe0d1",3:"e389fa3836",4:"6275209312",5:"4b02bf6bb2",6:"6004e0a317",7:"c2f18f1d28",8:"cbd9c15409",9:"bc5b087c76",10:"703bbc098c",11:"f22a7db2bf",12:"31d6cfe0d1",13:"a9f84a2113",14:"ed35084a5f",15:"10b57f05e6",16:"31d6cfe0d1",17:"ec1a5f8d9a",18:"83385c9f67",19:"0dcf823806",20:"a9eafe29ad",21:"2f6628cb25",22:"669fc3db49",23:"4a8376d820",24:"8a7c9a7069",25:"b4566faf7c",26:"28cf9b0c3c",27:"15769122b1",28:"239fc9777b",29:"3bd36e77bd",30:"985b6ef504",31:"c352c306bb",32:"f22a7db2bf",33:"31d6cfe0d1",36:"278dbb73fc",37:"278dbb73fc",38:"fb9eae4d42",39:"fb1813b688",40:"da4adc74f2",41:"da4adc74f2",42:"ec917a601f",43:"fac641a0a4",44:"43fe16d571",45:"43fe16d571",46:"492d27a0fc",47:"205e9cbddd",48:"853d71b02b",49:"24ed58dfcc",50:"2322f8283d",51:"2503796b18",52:"49ee1294f0",53:"2ff62b3253",54:"24793bd835",55:"27cd3166b1",56:"fb48f96122",57:"9a3f60d719",58:"9a3f60d719",59:"cc8a3d3d3a",60:"4a8376d820",61:"9a3f60d719",62:"9a3f60d719",63:"60fcc5292f",64:"bf28c6dd08",65:"e860778eaa",66:"9a94c2bfcd",67:"d9a373d8dc",68:"f209658b71",69:"dd10075796",70:"5a4ef89e6a",71:"649e1dbeab",72:"2ee776294c",73:"aae95b8739",74:"31d6cfe0d1",75:"1696cbd6bd",76:"6a27216e4e",77:"e957c3cfa0",78:"fb877ba4eb",79:"3eb30ea32d",80:"3eb30ea32d",81:"5450629a32",82:"985b6ef504",83:"d6cd54b11b",84:"f22a7db2bf",85:"4068292bca",86:"f90133ba2b",87:"a7bdb9e6a2",88:"872db466fa",89:"f22a7db2bf",90:"794d3729e3",91:"c08e97ad22",92:"f22a7db2bf",93:"e31b2b8630",94:"8d91e36e7a",95:"f429a540cb",96:"b4c6580112",97:"f22a7db2bf",98:"f22a7db2bf",99:"289275de6f",100:"f66a71557c",101:"f22a7db2bf",102:"31d6cfe0d1",103:"f22a7db2bf",104:"f22a7db2bf",105:"f22a7db2bf",106:"f22a7db2bf",107:"93d7a92eba",108:"f22a7db2bf",109:"fabbc44fbd",110:"f476beb875",111:"4ed16e028d",112:"1e90b333ab",113:"5450629a32",114:"31d6cfe0d1",115:"31d6cfe0d1",116:"602832f68a",117:"e8d0ed4921",118:"31d6cfe0d1",119:"7ab95ddac2",120:"42a5dcfa34",121:"4a91cb7ba9",122:"37878093ed",123:"31d6cfe0d1",124:"31d6cfe0d1",125:"9fcbe98fe1",126:"30208db4b8",127:"f476beb875",128:"d286b282d6",129:"40eedf96d7",130:"4ea4ab4f82",131:"3b9c83579c",132:"31d6cfe0d1",133:"c5e12d3f1d",134:"6e036f7110",135:"efd9c7cfc9",136:"bca705add4",137:"7737c99486",138:"30208db4b8",139:"30208db4b8",140:"30208db4b8",141:"31d6cfe0d1",142:"31d6cfe0d1",143:"31d6cfe0d1",144:"31d6cfe0d1",145:"14218ac613",146:"5d9ea175a9",147:"8fc51c67f9",148:"fdc3ceff80",149:"c6b61e0a7d",150:"57c23ed816",151:"31d6cfe0d1",152:"31d6cfe0d1",153:"31d6cfe0d1",154:"31d6cfe0d1",155:"31d6cfe0d1",156:"31d6cfe0d1",157:"859d0b7430",158:"a199ee0f72",159:"11ea457276",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",173:"31d6cfe0d1",174:"31d6cfe0d1",175:"31d6cfe0d1",176:"31d6cfe0d1",177:"31d6cfe0d1",178:"31d6cfe0d1",179:"31d6cfe0d1",180:"31d6cfe0d1",181:"31d6cfe0d1",182:"31d6cfe0d1",183:"31d6cfe0d1",184:"31d6cfe0d1",185:"31d6cfe0d1",186:"31d6cfe0d1",187:"31d6cfe0d1",188:"31d6cfe0d1",189:"31d6cfe0d1",190:"31d6cfe0d1",191:"31d6cfe0d1",192:"31d6cfe0d1",193:"31d6cfe0d1",194:"31d6cfe0d1",195:"31d6cfe0d1",196:"31d6cfe0d1",197:"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:"73745e668e",1:"16c1b9a4ff",2:"9767109cc6",3:"3b28763e6a",4:"27098de098",5:"0fc3932271",6:"085719ae90",7:"c262a77820",8:"f57ada3d87",9:"023cb53a4d",10:"7bd2b95d1c",11:"845bd1d822",12:"57a982bb73",13:"05c1d537c5",14:"816ca3a4c5",15:"da10efd4b6",16:"87d05cc99e",17:"4fd63a1a27",18:"01e5da83ac",19:"9e6e792c44",20:"9bac9a6a51",21:"c1b1cb7d22",22:"0dec06a396",23:"96696efd57",24:"9fe518a8fd",25:"0dea082f4d",26:"3f0ed70090",27:"77d6ab28a4",28:"b809835777",29:"4e868797d0",30:"b8a332c9fa",31:"ccb422a3f3",32:"35308772cf",33:"65513a477b",36:"fadb32d4d0",37:"2b9d1568aa",38:"c297fb6aaa",39:"cfed3a6ed0",40:"8999a51a78",41:"646e21f28c",42:"4537d92372",43:"86a9517c22",44:"9e83cc2353",45:"29a7cf9698",46:"bf1c45f217",47:"1e12732067",48:"4d7ceab227",49:"605ed3c222",50:"e6ff5451e8",51:"a3d03aeb46",52:"7a09efc217",53:"698f91923b",54:"5f1d77bcd2",55:"3fa787f8c3",56:"744b87e83d",57:"015340e60b",58:"799bd542fc",59:"7ef252470e",60:"23ee3cd7ae",61:"e70be2827b",62:"2feda4dba2",63:"2c2bf530fa",64:"20490eca96",65:"4354417d0c",66:"7717705a0a",67:"26539bbf51",68:"ca7c960052",69:"d5ce781efa",70:"48d665b973",71:"b7ff2e8a30",72:"8bca5b4f93",73:"9d10ce1c35",74:"1aedec1f56",75:"bc77d81376",76:"4bd4355ce1",77:"6b81d2dcc5",78:"f01567decd",79:"a7c8490e2f",80:"6f10da851d",81:"f44a933b94",82:"4d76e463df",83:"08a1fe4084",84:"1a1e749398",85:"40d9c13ee8",86:"b3262f70db",87:"ce5504f10a",88:"6d7765ec8a",89:"ca0dc6dd56",90:"3e80b3e77e",91:"3119af91a5",92:"d679160f3e",93:"19b44415eb",94:"f46ad2ef5d",95:"051922b1e2",96:"46ace0c425",97:"7c1a1f9f00",98:"e56d38d25c",99:"dc410f48bf",100:"3ef0f5887b",101:"4178b30c44",102:"56d4300318",103:"f096d6e389",104:"0e85be3a59",105:"647adb1607",106:"8b364ad8a7",107:"64c3d657ca",108:"6649e6f30e",109:"a9370da846",110:"a936ab7ab2",111:"814a0fdc6d",112:"42272a72ad",113:"356b6fc34a",114:"49126cc023",115:"cbc83021f8",116:"163a38ff06",117:"f129113da0",118:"62b227b6c0",119:"8e7e4e9d89",120:"9500917f85",121:"b3cfc7a82d",122:"42dc5e7ca3",123:"bd37d4232b",124:"d112c884ea",125:"bcb95fb87e",126:"b68d51ec68",127:"aae3b2ae3a",128:"a089c2f15d",129:"5396a24a99",130:"6f4ee81d37",131:"648b92d296",132:"fd3b4ef8ce",133:"cdb6d2dc21",134:"ffaad1bfd1",135:"f2cbc125a5",136:"930eabca47",137:"c7c4b16a20",138:"63818bd224",139:"3ce66457c3",140:"f4425a1fb7",141:"3cc1bf3b71",142:"7b19f57c68",143:"a69294ac20",144:"a6061cb5fc",145:"94fe0469c7",146:"4f195f16de",147:"e29e3b7a0a",148:"c88974dcf7",149:"6157d9dac3",150:"3354a62afc",151:"7e40445fce",152:"8cc71734ec",153:"d74a2819d7",154:"ca52b94383",155:"41150d5c4b",156:"cbec5f3860",157:"614dbe6bb8",158:"bcdcc81659",159:"8e7f174e37",160:"6997e4a747",161:"54d576d2a5",162:"7f2d6454c4",163:"8b8c9e087b",164:"be435728f4",165:"9eeccdcc75",166:"8d05c6627a",167:"bcc5224826",168:"ed8c9ef09f",169:"1bfb4339c7",170:"76f6277f88",171:"eb9c696d22",172:"5f5912da55",173:"f766fe9e77",174:"206777edba",175:"79b19b0d25",176:"6190789066",177:"89f97c3626",178:"fe9c250261",179:"2e988a7168",180:"749d9afeb9",181:"62b95a46eb",182:"9969c0a45d",183:"fb14f48029",184:"041a23615f",185:"50f99ee053",186:"028cb961b9",187:"958282bed7",188:"ed6a31ee14",189:"1991d874f2",190:"58c1e3833a",191:"371cb9742a",192:"a87fa56b3b",193:"cb2ab35364",194:"e3c96bd079",195:"f3c5a67c6c",196:"b8a4856bc9",197:"d716b99856"}[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=1103)}([function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(67);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(328),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application",WATCH_HISTORY:"watch:history:application",SHARE:"share:application",INTERACTIVES:"interactives:application",LAUNCHPAD:"launchpad:application",LIBRARIES:"libraries:application",STUDENT_FEED:"student:feed:application"},i={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),o=n(14),a=n.n(o),s=n(191),c=n.n(s),u=n(27),l=n.n(u),f=(n(839),n(840),n(16)),p=n.n(f),d=n(807),h=n.n(d),y=n(36),m=n.n(y),v=n(386),g=n.n(v),b=n(387),w=n.n(b),_=n(808),S=n.n(_),T=n(809),E=n.n(T),O=n(244),C=n.n(O),k=n(341),P=n.n(k),A=n(334),I=n.n(A),L=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),x=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},j=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=x(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=x(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=x(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=x(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=x(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),R=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new L,t.parseStream=new j,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(388),D=n(208),B=n.n(D),U=n(810),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",G="DASH_INVALID_XML",q="NO_BASE_URL",Y="SEGMENT_TIME_UNSPECIFIED",K="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:C()(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(q);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 T=p+h.length+_,E=p+h.length;E<T;)h.push({number:E,duration:g/l,time:y,timeline:d}),y+=g,E++}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:C()(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(Y);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 C()(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)))}},Te=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(G);return n},Ee=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)))}}(Te(e),t),r=n.representationInfo.map(pe);return oe(r,n.locations,t.sidxMapping)},Oe=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(K)}return n}(Te(e))},Ce=J,ke=n(811),Pe=n.n(ke),Ae=n(215),Ie=n(342),Le=n(812),xe=n.n(Le),je=n(214),Re=n(389),Ne=n.n(Re),De=n(73),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 Ge(e){return We(e)&&"[object Object]"===Ve.call(e)&&e.constructor===Object}function qe(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 Ye(e){return"string"==typeof e&&Boolean(e.trim())}function Ke(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(!Ye(t))return a.a[e](null);Ye(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 Ke(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):(Ke(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(qe(e,"height"))),n.width||(n.width=parseFloat(qe(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,Tt=Ze("querySelector"),Et=Ze("querySelectorAll"),Ot=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,$:Tt,$$:Et}),Ct=!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 Ct||Pt(1)}};function Pt(e,t){t&&(St=t),i.a.setTimeout(kt,e)}function At(){Ct=!0,i.a.removeEventListener("load",At)}Xe()&&("complete"===a.a.readyState?At():i.a.addEventListener("load",At));var It,Lt=function(e){var t=a.a.createElement("style");return t.className=e,t},xt=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},jt=3;function Rt(){return jt++}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]||Rt();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=Rt()),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||Rt(),Ft(e,t,r)}function Gt(e,t,n){var r=function r(){Ht(e,t,r),n.apply(this,arguments)};r.guid=n.guid=n.guid||Rt(),Ft(e,t,r)}var qt,Yt=Object.freeze({__proto__:null,fixEvent:Mt,on:Ft,off:Ht,trigger:zt,one:Wt,any:Gt}),Kt=function(e,t,n){t.guid||(t.guid=Rt());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(){},Gt(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;qt||(qt=new Map);var n=e.type||e,r=qt.get(this);r||(r=new Map,qt.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,qt.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=Kt(e,i)}},rn=function(e,t,n,r){Jt(e),e.nodeName?Yt[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=Kt(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){Ge(t)?(Ge(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_"+Rt()}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 Tt(e,t||this.contentEl())},t.$$=function(e,t){return Et(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=qe(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=Kt(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=Kt(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=Kt(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=Kt(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=Kt(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,Tn=/Android/i.test(gn),En=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}(),On=Tn&&En<5&&wn<537,Cn=/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}(),Ln=/Safari/i.test(gn)&&!Pn&&!Tn&&!kn,xn=/Windows/i.test(gn),jn=Boolean(Xe()&&("ontouchstart"in i.a||i.a.navigator.maxTouchPoints||i.a.DocumentTouch&&i.a.document instanceof i.a.DocumentTouch)),Rn=/iPad/i.test(gn)||Ln&&jn&&!/iPhone/i.test(gn),Nn=/iPhone/i.test(gn)&&!Rn,Dn=Nn||Rn||_n,Bn=(Ln||Dn)&&!Pn,Un=Object.freeze({__proto__:null,IS_IPOD:_n,IOS_VERSION:Sn,IS_ANDROID:Tn,ANDROID_VERSION:En,IS_NATIVE_ANDROID:On,IS_FIREFOX:Cn,IS_EDGE:kn,IS_CHROME:Pn,CHROME_VERSION:An,IE_VERSION:In,IS_SAFARI:Ln,IS_WINDOWS:xn,TOUCH_ENABLED:jn,IS_IPAD:Rn,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},Gn=[["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"]],qn=Gn[0],Yn=0;Yn<Gn.length;Yn++)if(Gn[Yn][1]in a.a){zn=Gn[Yn];break}if(zn){for(var Kn=0;Kn<zn.length;Kn++)Wn[qn[Kn]]=zn[Kn];Wn.prefixed=zn[0]!==qn[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_"+Rt(),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()},Tr=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,Kt(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)})))},Er=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=Kt(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||Tr(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)&&Tr(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);Er.prototype.allowedEvents_={cuechange:"cuechange"};var Or=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),Cr=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 Er(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:Or,capitalName:"Audio"},video:{ListClass:cr,TrackClass:Cr,capitalName:"Video"},text:{ListClass:ur,TrackClass:Er,capitalName:"Text"}};Object.keys(Pr).forEach((function(e){Pr[e].getterName=e+"Tracks",Pr[e].privateName=e+"Tracks_"}));var Ar={remoteText:{ListClass:ur,TrackClass:Er,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 Lr=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(Kt(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"]&&Ge(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];Lr.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Lr.prototype.featuresVolumeControl=!0,Lr.prototype.featuresMuteControl=!0,Lr.prototype.featuresFullscreenResize=!1,Lr.prototype.featuresPlaybackRate=!1,Lr.prototype.featuresProgressEvents=!1,Lr.prototype.featuresSourceset=!1,Lr.prototype.featuresTimeupdateEvents=!1,Lr.prototype.featuresNativeTextTracks=!1,Lr.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",Lr),Lr.registerTech("Tech",Lr),Lr.defaultTechOrder_=[];var xr={},jr={},Rr={};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,xr[c],r,i,o,a);else if(c){var l=function(e,t){var n=jr[e.id()],r=null;if(null==n)return r=t(e),jr[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:xr[s.type],r,i,o,a)}))}else u.length?e(t,u,r,i,o,a):a?r(t,o):e(t,xr["*"],r,i,o,!0)}(t,xr[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===Rr,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===Rr?Rr: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=Lr.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 Gr=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",Gr);var qr=function(e){function t(t,n){var r;return(r=e.call(this,t,n)||this).update(),t.on("posterchange",Kt(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}(Gr);mn.registerComponent("PosterImage",qr);var Yr={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 Kr(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=Kt(l()(o),o.updateDisplay);return t.on("loadstart",Kt(l()(o),o.toggleDisplay)),t.on("texttrackchange",a),t.on("loadedmetadata",Kt(l()(o),o.preselectTrack)),t.ready(Kt(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",Kr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(a.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Xr(a.firstChild,"backgroundColor",Kr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Xr(a,"backgroundColor",Kr(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=Yr[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}(Gr);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(Kt(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(Kt(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||Tn||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(Kt(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_=Kt(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||Tn||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(Kt(l()(r),r.handleMouseMove),30),r.throttledHandleMouseSeek=Xt(Kt(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 Ti=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",Ti);var Ei=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);Ei.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},Ei.prototype.playerEvent="volumechange",mn.registerComponent("VolumeBar",Ei);var Oi=function(e){function t(t,n){var r;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Ge(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(Kt(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);Oi.prototype.options_={children:["volumeBar"]},mn.registerComponent("VolumeControl",Oi);var Ci=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);Ci.prototype.controlText_="Mute",mn.registerComponent("MuteToggle",Ci);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||Ge(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",Kt(this,this.handleKeyPress))},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),Ht(a.a,"keyup",Kt(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_=Kt(l()(r),r.handleBlur),r.boundHandleTapClick_=Kt(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",Kt(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",Kt(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=Kt(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 Li=["Tab","Esc","Up","Down","Right","Left"],xi=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){Li.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}(Gr);mn.registerComponent("MenuItem",xi);var ji=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}(xi);mn.registerComponent("TextTrackMenuItem",ji);var Ri=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}(ji);mn.registerComponent("OffTextTrackMenuItem",Ri);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=ji),this.label_&&(n=this.label_+" off"),e.push(new Ri(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",Kt(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}(xi);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=Kt(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}(ji);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}(ji);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}(xi);mn.registerComponent("AudioTrackMenuItem",Wi);var Gi=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);Gi.prototype.controlText_="Audio Track",mn.registerComponent("AudioTrackButton",Gi);var qi=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}(xi);qi.prototype.contentElType="button",mn.registerComponent("PlaybackRateMenuItem",qi);var Yi=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 qi(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);Yi.prototype.controlText_="Playback Rate",mn.registerComponent("PlaybackRateMenuButton",Yi);var Ki=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",Ki);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}(Ki);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=Kt(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_()}}}},To=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)},Eo=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_(),(jn||Nn||On)&&!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));jn&&!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&&Tn&&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}(Lr);To(Eo,"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}})),Eo.isSupported=function(){try{Eo.TEST_VID.volume=.5}catch(e){return!1}return!(!Eo.TEST_VID||!Eo.TEST_VID.canPlayType)},Eo.canPlayType=function(e){return Eo.TEST_VID.canPlayType(e)},Eo.canPlaySource=function(e,t){return Eo.canPlayType(e.type)},Eo.canControlVolume=function(){try{var e=Eo.TEST_VID.volume;return Eo.TEST_VID.volume=e/2+.1,e!==Eo.TEST_VID.volume}catch(e){return!1}},Eo.canMuteVolume=function(){try{var e=Eo.TEST_VID.muted;return Eo.TEST_VID.muted=!e,Eo.TEST_VID.muted?ut(Eo.TEST_VID,"muted","muted"):lt(Eo.TEST_VID,"muted"),e!==Eo.TEST_VID.muted}catch(e){return!1}},Eo.canControlPlaybackRate=function(){if(Tn&&Pn&&An<58)return!1;try{var e=Eo.TEST_VID.playbackRate;return Eo.TEST_VID.playbackRate=e/2+.1,e!==Eo.TEST_VID.playbackRate}catch(e){return!1}},Eo.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},Eo.supportsNativeTextTracks=function(){return Bn||Dn&&Pn},Eo.supportsNativeVideoTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.videoTracks)},Eo.supportsNativeAudioTracks=function(){return!(!Eo.TEST_VID||!Eo.TEST_VID.audioTracks)},Eo.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];To(Eo.prototype,t,(function(){return Eo[n]()}),!0)})),Eo.prototype.movingMediaElementInDOM=!Dn,Eo.prototype.featuresFullscreenResize=!0,Eo.prototype.featuresProgressEvents=!0,Eo.prototype.featuresTimeupdateEvents=!0,Eo.patchCanPlayType=function(){En>=4&&!Cn&&!Pn&&(mo=Eo.TEST_VID&&Eo.TEST_VID.constructor.prototype.canPlayType,Eo.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":mo.call(this,e)})},Eo.unpatchCanPlayType=function(){var e=Eo.TEST_VID.constructor.prototype.canPlayType;return mo&&(Eo.TEST_VID.constructor.prototype.canPlayType=mo),e},Eo.patchCanPlayType(),Eo.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){}}()}},Eo.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){Eo.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Eo.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){Eo.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Eo.prototype["set"+ln(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Eo.prototype[e]=function(){return this.el_[e]()}})),Lr.withSourceHandlers(Eo),Eo.nativeSourceHandler={},Eo.nativeSourceHandler.canPlayType=function(e){try{return Eo.TEST_VID.canPlayType(e)}catch(e){return""}},Eo.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Eo.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=br(e.src);return Eo.nativeSourceHandler.canPlayType("video/"+n)}return""},Eo.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Eo.nativeSourceHandler.dispose=function(){},Eo.registerSourceHandler(Eo.nativeSourceHandler),Lr.registerTech("Html5",Eo);var Oo=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Co={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_"+Rt(),(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_=Kt(l()(o),o.documentFullscreenChange_),o.boundFullWindowOnEscKey_=Kt(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"),jn&&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),jr[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&&xn)&&(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_=Lt("vjs-styles-dimensions");var c=Tt(".vjs-styles-defaults"),u=Tt("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),xt(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&&(Lr.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=Lr.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(Kt(this,this.handleTechReady_),!0),tr(this.textTracksJson_||[],this.tech_),Oo.forEach((function(e){n.on(n.tech_,e,n["handleTech"+ln(e)+"_"])})),Object.keys(Co).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Co[e]+"_"].bind(n),event:t}):n["handleTech"+Co[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=Lr.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,Lr.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=Kt(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||Tn||(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 Lo=i.a.navigator;Io.prototype.options_={techOrder:Lr.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Lo&&(Lo.languages&&Lo.languages[0]||Lo.userLanguage||Lo.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)}})),Oo.forEach((function(e){Io.prototype["handleTech"+ln(e)+"_"]=function(){return this.trigger(e)}})),mn.registerComponent("Player",Io);var xo={},jo=function(e){return xo.hasOwnProperty(e)},Ro=function(e){return jo(e)?xo[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=Kt(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,xo[e])},e.isBasic=function(t){var n="string"==typeof t?Ro(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(jo(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 xo[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.");jo(e)&&(delete xo[e],delete Io.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(xo)),e.forEach((function(e){var n=Ro(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=Ro(e);return t&&t.VERSION||""},e}();Uo.getPlugin=Ro,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!!jo(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?Tt("#"+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=Tt(".vjs-styles-defaults");if(!Fo){Fo=Lt("vjs-styles-defaults");var Ho=Tt("head");Ho&&Ho.insertBefore(Fo,Ho.firstChild),xt(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=Tt("#"+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){Lr.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=Lr.getTech,Vo.registerTech=Lr.registerTech,Vo.use=function(e,t){xr[e]=xr[e]||[],xr[e].push(t)},Object.defineProperty(Vo,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(Vo.middleware,"TERMINATOR",{value:Rr,writeable:!1,enumerable:!0}),Vo.browser=Un,Vo.TOUCH_ENABLED=jn,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),E()(n,e),e&&(n.super_=e),r)r.hasOwnProperty(i)&&(n.prototype[i]=r[i]);return n},Vo.mergeOptions=fn,Vo.bind=Kt,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=Er,Vo.AudioTrack=Or,Vo.VideoTrack=Cr,["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"),Ot[e].apply(null,arguments)}})),Vo.computedStyle=qe,Vo.dom=Ot,Vo.url=_r,Vo.defineLazyProperty=To;
2
2
  /*! @name @videojs/http-streaming @version 2.4.2 @license Apache-2.0 */
3
3
  var zo,Wo=C.a,Go=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},qo=Vo.log,Yo=function(e,t){return e+"-"+t},Ko=function(e){var t=e.manifestString,n=e.customTagParsers,r=void 0===n?[]:n,i=e.customTagMappers,o=void 0===i?[]:i,a=new R;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=Yo(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:Yo(t,n.uri)}),n.resolvedUri=Wo(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||qo.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||Ko({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=Go(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=Go(e.handleManifestRedirects,e.src,n);var r=Ko({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=Yo(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,Ta=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)},Ea=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 Ta(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}},Oa=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},Ca=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(",")},La=function(e){return e.resolvedUri},xa=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},ja=Object.freeze({__proto__:null,createTransferableMessage:Aa,initSegmentId:Ia,segmentKeyId:La,hexDump:xa,tagDump:function(e){var t=e.bytes;return xa(t)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=Ca(e,t)+" ";return n}}),Ra=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=Go(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,Ce(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 Ta(e,null,{statusCode:e.status},s)}))}},(function(e,t){return Ta(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:Oa({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=Go(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=Oe(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=Ee(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]&&Ce(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=[],Ga=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}),qa()))},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"})},qa=function(){zo=null,Wa.length&&("function"==typeof(zo=Wa.shift())?zo():Ga(zo))},Ya=function(e,t){e.postMessage({action:t}),qa()},Ka=function(e,t){if(!zo)return zo=e,void Ya(t,e);Wa.push(Ya.bind(null,t,e))},Xa=function(e){if(!zo)return zo=e,void Ga(e);Wa.push(e)},Qa=function(e){Ka("reset",e)},$a=function(){zo=null,Wa.length=0},Za=function(e){Ka("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=xe.a.inspect(e,t*je.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:Oa(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:Oa(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,T,E,O,C,k,P,A,I,L,x,j,R,N,D,B,U,M,V,F,H=e,z=Math.pow(2,32)-1;!function(){var e;if(T={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 T)T.hasOwnProperty(e)&&(T[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);E=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),O=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},x=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),L=new Uint8Array([0,0,0,0,0,0,0,0]),j=new Uint8Array([0,0,0,0,0,0,0,0]),R=j,N=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),D=j,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(T.dinf,t(T.dref,x))},i=function(e){return t(T.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(T.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(T.mdhd,n)},h=function(e){return t(T.mdia,y(e),m(e.type),s(e))},a=function(e){return t(T.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},s=function(e){return t(T.minf,"video"===e.type?t(T.vmhd,I):t(T.smhd,L),r(),g(e))},c=function(e,n){for(var r=[],i=n.length;i--;)r[i]=w(n[i]);return t.apply(null,[T.moof,a(e)].concat(r))},u=function(e){for(var n=e.length,r=[];n--;)r[n]=p(e[n]);return t.apply(null,[T.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,[T.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(T.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(T.sdtp,o)},g=function(e){return t(T.stbl,b(e),t(T.stts,D),t(T.stsc,R),t(T.stsz,N),t(T.stco,j))},b=function(e){return t(T.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=[T.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(T.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([i.length],a,[o.length],s))),t(T.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(T.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(T.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(T.tkhd,n)},w=function(e){var n,r,i,o,a,s;return n=t(T.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(T.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(T.traf,n,r,i)):(o=v(e),i=S(e,o.length+92),t(T.traf,n,r,i,o))},p=function(e){return e.duration=e.duration||4294967295,t(T.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(T.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(T.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(T.trun,r)},S=function(e,t){return"audio"===e.type?M(e,t):V(e,t)};o=function(){return t(T.ftyp,E,O,E,C)};var W,G,q,Y,K,X,Q,$,Z=function(e){return t(T.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 G(K(e,t))},Q=function(e,t){return q(Y(e),t)},$=function(e,t,n){return Y(n?e:e-t)};var de=9e4,he=G=function(e){return 9e4*e},ye=(q=function(e,t){return e*t},Y=function(e){return e/9e4}),me=(K=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},Te=de,Ee=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Oe=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/Te,n=Math.floor(n)),n},Ce=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},Le=4,xe=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"))};(xe.prototype=new H).push=function(e){var t,n,r;if("sei_rbsp"===e.nalUnitType&&(t=ke(e.escapedRBSP)).payload&&t.payloadType===Le&&(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}},xe.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},xe.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)},xe.prototype.flush=function(){return this.flushStream("flush")},xe.prototype.partialFlush=function(){return this.flushStream("partialFlush")},xe.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},xe.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)},xe.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},xe.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},xe.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},xe.prototype.dispatchCea708Packet=function(e){this.cc708Stream_.push(e)};var je={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},Re=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],Re(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 Re(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=je[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:xe,Cea608Stream:He,Cea708Stream:Be},We={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},Ge=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},qe=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=Ge(e.dts,r),e.pts=Ge(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")}};qe.prototype=new H;var Ye,Ke=qe,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}};(Ye=function(e){var t,n={debug:!(!e||!e.debug),descriptor:e&&e.descriptor},r=0,i=[],o=0;if(Ye.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=Ye,rt=Ke;(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,Tt,Et,Ot=yt,Ct=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],kt=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Pt=mt.H264Stream,At=gt,It=de,Lt=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},xt=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){Ce(e,t),e&&Ct.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=Oe(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),Ee(e),f=Math.ceil(1024*It/e.samplerate),s.length&&(p=s.length*f,this.trigger("segmentTimingInfo",xt(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(){Ee(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){Ce(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");Ee(e),s=h}Ce(e,s),e.samples=oe(s),u=Z(ae(s)),e.baseMediaDecodeTime=Oe(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",xt(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(){Ee(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&&Lt(e.pps[0],o.pps[0])&&e.sps&&Lt(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,(Et=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,Et.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,Et.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,Ct.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)},Et.prototype.setRemux=function(e){this.remuxTracks=e},(Tt=function(e){var t,n,r=this,i=!0;Tt.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 Ot,i.audioTimestampRolloverStream=new st.TimestampRolloverStream("audio"),i.timedMetadataTimestampRolloverStream=new st.TimestampRolloverStream("timed-metadata"),i.adtsStream=new dt,i.coalesceStream=new Et(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 Et(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,Ee(n),i.audioTimestampRolloverStream&&i.audioTimestampRolloverStream.discontinuity()),t&&(i.videoSegmentStream&&(i.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,Ee(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 jt={Transmuxer:Tt,VideoSegmentStream:_t,AudioSegmentStream:St,AUDIO_PROPERTIES:Ct,VIDEO_PROPERTIES:kt,generateSegmentTimingInfo:xt},Rt={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){Ce(t,e),t&&Ct.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=Oe(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),Ee(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(){Ee(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){Ce(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));Ee(t),Ce(t,p),t.baseMediaDecodeTime=Oe(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 Rt.Adts,h264:new Rt.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 Ot,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,Ee(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,Ee(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,Gt=function(e){return e>>>0},qt=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])},Yt=Gt,Kt=function e(t,n){var r,i,o,a,s,c=[];if(!n.length)return null;for(r=0;r<t.byteLength;)i=Yt(t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3]),o=qt(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=Gt,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=Kt(e,["moof","traf"]),r=Kt(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=Kt(o,["tfhd"]),s=Jt(a[0]),c=s.trackId,u=Kt(o,["tfdt"]),l=u.length>0?Qt(u[0]).baseMediaDecodeTime:0,f=Kt(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 jt.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(){}},Ts=Ss("PlaylistSelector"),Es=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||""})}},Os=function(e,t){if(!e)return"";var n=i.a.getComputedStyle(e);return n?n[t]:""},Cs=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}}));Cs(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"),Ts("choosing "+Es(p)+" using "+d+" with options",a),p.playlist}return Ts("could not choose a playlist with options",a),null}var h=u.filter((function(e){return e.width&&e.height}));Cs(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"),Ts("choosing "+Es(w)+" using "+_+" with options",a),w.playlist}return Ts("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(Os(this.tech_.el(),"width"),10)*e,parseInt(Os(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}))}))}}},Ls=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)},xs=function(e){return"number"==typeof e&&isFinite(e)},js=function(e){return e+"TimingInfo"},Rs=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=La(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)*je.ONE_SECOND_IN_TS),o=Math.ceil((n-r)*je.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_)Ls(e,t,this.inbandTextTracks_[o]);Ls(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=Rs({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)*je.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 Cs(p,(function(e,t){return ks(t.playlist,e.playlist)})),p.length?p[0]:(Cs(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=js(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),Ls(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[js(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=Rs({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(xs(n)&&xs(r)){Ls(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))}},Gs=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)},qs=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},Ys=function(e,t){return function(n,r){var i=r[n+"Buffer"];qs(r.mediaSource,i)&&(r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+n+"Buffer"),i.appendBuffer(e))}},Ks=function(e,t){return function(n,r){var i=r[n+"Buffer"];qs(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"];qs(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(qs(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(Gs(e,t),qs(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);qs(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:Ys(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 qs(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:Vo.createTimeRange()},n.videoBuffered=function(){return qs(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:Vo.createTimeRange()},n.buffered=function(){var e=qs(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=qs(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:Ks(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:Ks(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 Gs(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){Ls(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/je.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(848),i=n(849),o=n(850);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",T=l?"pointerdown":w,E=l?"pointermove":_,O=l?"pointerup pointercancel":S,C=/^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},L=Number.isNaN||c.isNaN;function x(e){return"number"==typeof e&&!L(e)}var j=function(e){return e>0&&e<1/0};function R(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)||x(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 G=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;F(t,(function(e,t){G.test(t)&&x(e)&&(e="".concat(e,"px")),n[t]=e}))}function Y(e,t){if(t)if(x(e.length))F(e,(function(e){Y(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 K(e,t){t&&(x(e.length)?F(e,(function(e){K(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&&(x(e.length)?F(e,(function(e){X(e,t,n)})):n?Y(e,t):K(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=[];x(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),x(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),x(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),x(n)&&1!==n&&a.push("scaleX(".concat(n,")")),x(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=j(r),a=j(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":_,T=r.maxWidth,E=void 0===T?1/0:T,O=r.maxHeight,C=void 0===O?1/0:O,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,L=document.createElement("canvas"),x=L.getContext("2d"),j=pe({aspectRatio:h,width:E,height:C}),R=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(j.width,Math.max(R.width,y)),D=Math.min(j.height,Math.max(R.height,m)),B=pe({aspectRatio:i,width:E,height:C}),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 L.width=W(N),L.height=W(D),x.fillStyle=g,x.fillRect(0,0,N,D),x.save(),x.translate(N/2,D/2),x.rotate(u*Math.PI/180),x.scale(f,d),x.imageSmoothingEnabled=w,x.imageSmoothingQuality=S,x.drawImage.apply(x,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),x.restore(),L}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;Y(r,d),K(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,q(r,{width:i.width,height:i.height}),Y(e,d),K(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,q(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}),q(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"),q(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);q(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&&(q(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),q(t,{width:f,height:p}),q(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,T,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,E,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,O,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,T,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,E,this.onCropMove),ne(e.ownerDocument,O,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)&&(x(t)&&1!==t||x(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),C.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,Y(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]],T={x:S.endX-S.startX,y:S.endY-S.startY},E=function(e){switch(e){case"e":y+T.x>b&&(T.x=b-y);break;case"w":l+T.x<v&&(T.x=v-l);break;case"n":f+T.y<g&&(T.y=g-f);break;case"s":m+T.y>w&&(T.y=w-m)}};switch(c){case"all":l+=T.x,f+=T.y;break;case"e":if(T.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}E("e"),(p+=T.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(T.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}E("n"),h-=T.y,f+=T.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(T.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}E("w"),p-=T.x,l+=T.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(T.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}E("s"),(h+=T.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(T.y<=0&&(f<=g||y>=b)){_=!1;break}E("n"),h-=T.y,f+=T.y,p=h*u}else E("n"),E("e"),T.x>=0?y<b?p+=T.x:T.y<=0&&f<=g&&(_=!1):p+=T.x,T.y<=0?f>g&&(h-=T.y,f+=T.y):(h-=T.y,f+=T.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(T.y<=0&&(f<=g||l<=v)){_=!1;break}E("n"),h-=T.y,f+=T.y,p=h*u,l+=a.width-p}else E("n"),E("w"),T.x<=0?l>v?(p-=T.x,l+=T.x):T.y<=0&&f<=g&&(_=!1):(p-=T.x,l+=T.x),T.y<=0?f>g&&(h-=T.y,f+=T.y):(h-=T.y,f+=T.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(T.x<=0&&(l<=v||m>=w)){_=!1;break}E("w"),p-=T.x,l+=T.x,h=p/u}else E("s"),E("w"),T.x<=0?l>v?(p-=T.x,l+=T.x):T.y>=0&&m>=w&&(_=!1):(p-=T.x,l+=T.x),T.y>=0?m<w&&(h+=T.y):h+=T.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(T.x>=0&&(y>=b||m>=w)){_=!1;break}E("e"),h=(p+=T.x)/u}else E("s"),E("e"),T.x>=0?y<b?p+=T.x:T.y>=0&&m>=w&&(_=!1):p+=T.x,T.y>=0?m<w&&(h+=T.y):h+=T.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(T.x,T.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(!T.x||!T.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,T.x>0?c=T.y>0?"se":"ne":T.x<0&&(l-=p,c=T.y>0?"sw":"nw"),T.y<0&&(f-=h),this.cropped||(K(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&&Y(this.dragBox,m),K(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(),K(this.dragBox,m),Y(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,K(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Y(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(R(e)?e:r+Number(e),R(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&&(x(e)&&(n.left=e,r=!0),x(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)&&x(t.x)&&x(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 x(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,x(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(x(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&&(x(e)&&(n.scaleX=e,r=!0),x(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&&x(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(x(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),x(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;x(e.x)&&(i.left=e.x*a+r.left),x(e.y)&&(i.top=e.y*a+r.top),x(e.width)&&(i.width=e.width*a),x(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)&&(x(e.left)&&(t.left=e.left),x(e.top)&&(t.top=e.top),x(e.width)?(t.width=e.width,t.height=e.width/n):x(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)&&(x(e.left)&&(r.left=e.left),x(e.top)&&(r.top=e.top),x(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),x(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,T,E,O,C,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,T=0,O=0):A<=0?(T=-A,A=0,O=_=Math.min(k,s+A)):A<=k&&(T=0,O=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,E=0,C=0):I<=0?(E=-I,I=0,C=S=Math.min(P,c+I)):I<=P&&(E=0,C=S=Math.min(c,P-I));var L=[A,I,_,S];if(O>0&&C>0){var x=h/s;L.push(T*x,E*x,O*x,C*x)}return v.drawImage.apply(v,[n].concat(a(L.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||R(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}},Te=c.Cropper,Ee=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=Te,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),Y(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),Y(e,d),r.insertBefore(o,e.nextSibling),this.isImg||K(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,Y(c,d),t.guides||Y(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||Y(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&Y(o,"".concat("cropper","-bg")),t.highlight||Y(u,y),t.cropBoxMovable&&(Y(u,v),J(u,g,"all")),t.cropBoxResizable||(Y(c.getElementsByClassName("".concat("cropper","-line")),d),Y(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),K(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(Ee.prototype,ve,ge,be,we,_e,Se),Ee}()},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(139);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(48),i=n(364),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(595);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(30),i=n(71);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(35),o=n(1),a=n(31),s=n(21),c=n(44),u=n(173),l=n(434),f=n(291),p=n(49),d=n(240),h=n(385),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){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 T(){}function E(e,t){this._node=e,this._refresh=t,O(this)}function O(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function C(){}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 L(){}function x(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function j(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(j(e,t))return!0}while(e=e.nextSibling)}function R(){}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 G(){}function q(){}function Y(){}function K(){}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,T=_?" xmlns:"+_:" xmlns";t.push(T,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,T=_?" xmlns:"+_:" xmlns";t.push(T,'="',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,x),'"');case s:return t.push(e.data.replace(/[<&]/g,x));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var E=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(' PUBLIC "',E),O&&"."!=O&&t.push('" "',O),t.push('">');else if(O&&"."!=O)t.push(' SYSTEM "',O,'">');else{var C=e.internalSubset;C&&t.push(" [",C,"]"),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),T.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("")}},E.prototype.item=function(e){return O(this),this[e]},r(E,T),C.prototype={length:0,item:T.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 R;if(r.implementation=this,r.childNodes=new T,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 G;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},L.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 T);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new C,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,L),n(i,L.prototype),R.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 j(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 T,(t.attributes=new C)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new T,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 K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new C;return n.childNodes=new T,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(R,L),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 E(this,(function(t){var n=[];return j(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new E(this,(function(n){var r=[];return j(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},R.prototype.getElementsByTagName=M.prototype.getElementsByTagName,R.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,L),V.prototype.nodeType=a,r(V,L),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,L),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),G.prototype.nodeType=h,r(G,L),q.prototype.nodeType=m,r(q,L),Y.prototype.nodeType=l,r(Y,L),K.prototype.nodeType=u,r(K,L),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,L),Q.prototype.nodeType=f,r(Q,L),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},L.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(E.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(L.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=O(o,"Map"),g=O(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 T(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 E(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 O(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return T(n)?n:void 0}function C(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(C.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 E(this,e).delete(e)},_.prototype.get=function(e){return E(this,e).get(e)},_.prototype.has=function(e){return E(this,e).has(e)},_.prototype.set=function(e,t){return E(this,e).set(e,t),this},C.Cache=_,e.exports=C}).call(this,n(126))},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 T=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=T}).call(this,n(126))},function(e,t,n){},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(248),a=n(281),s=n(2),c=n(6),u=n(65),l=n(220);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(125),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?Object.setPrototypeOf.bind():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.bind():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=n(611);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(613);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(614);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(615);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(616);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(617);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(618);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(316);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(619);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(620);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(621);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(622);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(623);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var m=n(624);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType})),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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var v=n(625);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(626);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(627);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(628);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(629);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(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(630);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var T=n(631);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(632);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(633);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType}));var C=n(634);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var k=n(635);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(636);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(637);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(638);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var L=n(639);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId})),n.o(L,"WidgetType")&&n.d(t,"WidgetType",(function(){return L.WidgetType}))},function(e,t,n){"use strict";var r=n(612);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,"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){},function(e,t,n){"use strict";var r=n(641);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(644);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(650);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(656);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(657);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(658);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(659);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(660);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(661);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(662);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(663);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(664);n.d(t,"ClassroomGroupColour",(function(){return h.a}));var y=n(665);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(666);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(667);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(668);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(317);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(669);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(670);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(671);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 T=n(672);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(673);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(674);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}));var C=n(675);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 k=n(318);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(676);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})),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 A=n(677);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(678);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 L=n(679);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 x=n(680);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 j=n(681);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})),n.o(j,"WidgetType")&&n.d(t,"WidgetType",(function(){return j.WidgetType}));var R=n(319);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId})),n.o(R,"WidgetType")&&n.d(t,"WidgetType",(function(){return R.WidgetType}));var N=n(682);n.d(t,"WidgetType",(function(){return N.a}));var D=n(683);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(684);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(685);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(686);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(687);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(688);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(689);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(690);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(691);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 G=n(692);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 q=n(693);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 Y=n(694);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 K=n(695);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 X=n(696);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(697);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(698);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}));var Z=n(699);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(700);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})),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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId}));var ee=n(701);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(702);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}));var ne=n(703);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(704);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})),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 ie=n(705);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(706);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(707);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(708);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(709);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(710);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(711);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(712);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(713);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(714);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(715);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(716);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}));var me=n(717);n.o(me,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return me.BaseNotificationsAppVariables})),n.o(me,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return me.BaseSearchAppVariables})),n.o(me,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return me.InteractionTypeId}));var ve=n(718);n.o(ve,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ve.BaseNotificationsAppVariables})),n.o(ve,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ve.BaseSearchAppVariables})),n.o(ve,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ve.InteractionTypeId}));var ge=n(719);n.o(ge,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ge.BaseNotificationsAppVariables})),n.o(ge,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ge.BaseSearchAppVariables})),n.o(ge,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ge.InteractionTypeId}));var be=n(720);n.o(be,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return be.BaseNotificationsAppVariables})),n.o(be,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return be.BaseSearchAppVariables})),n.o(be,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return be.InteractionTypeId}));var we=n(721);n.o(we,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return we.BaseNotificationsAppVariables})),n.o(we,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return we.BaseSearchAppVariables})),n.o(we,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return we.InteractionTypeId}));var _e=n(722);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}));var Se=n(723);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}))},function(e,t,n){"use strict";var r=n(642);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(643);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,"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(645);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.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,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),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(647);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(648);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,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(649);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,"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(651);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(652);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(653);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(654);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(655);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,"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){},function(e,t){},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){},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){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(725);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,"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(727);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(728);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(729);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(730);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(731);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(732);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(733);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(734);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(735);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(736);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(737);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(738);var h=n(739);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.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"},function(e,t){},function(e,t,n){"use strict";var r=n(741);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(742);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(743);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(745);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(746);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(747);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(748);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(749);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(750);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(751);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,"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(e,t,n){"use strict";var r,i=n(239);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?Object.setPrototypeOf.bind():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.bind():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(119);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(77);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(267),f=n(71),p=n(95),d=n(171),h=n(113),y=n(0);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 v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==t&&n.call(g,i)&&(h=g);var b=d.prototype=f.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==m(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function S(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,s(b,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),s(b,a,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function g(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 S})),n.d(t,"f",(function(){return T})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return k})),n.d(t,"g",(function(){return P})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return I})),n.d(t,"l",(function(){return L})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return j}));var b=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())}))},w=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}}])&&g(t.prototype,n),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _(e,t,n){if(!e||!t)return S();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new w({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function S(){return new w({status:h.a.None})}function T(e,t){return _(t,e.flightData.resources[t],e.flightData.entities)}function E(e){return function(t){t&&C(e,t)}}function O(e){return function(t){if(t)return k(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function k(e,t){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)},C(e,t)}))}function P(e,t){var n,r,i,o,a=T(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,P(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 A(){return E(Object(r.useDispatch)())}function I(){return O(Object(r.useDispatch)())}function L(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 _(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 _(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function x(e,t){var n=Object(r.useDispatch)(),i=L(e&&e.key,t),o=E(n);return e&&i.shouldFetch&&o(e),i}function j(e,t){return b(this,void 0,void 0,v().mark((function n(){return v().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)},P(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(428);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?Object.setPrototypeOf.bind():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.bind():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(239).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(831).default},function(e,t){e.exports=m},function(e,t,n){e.exports={radioFilter:"vo-iA"}},function(e,t,n){var r=n(139);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(139);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(139);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(139);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(139);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(139);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(594);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(793);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(598);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(599);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(600)},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(365),i=n(846);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),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(365);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(851).XMLReader,l=t.DOMImplementation=n(602).DOMImplementation;t.XMLSerializer=n(602).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(603),i=n(852).handleRollover,o={};o.ts=n(854),o.aac=n(855);var a=n(214).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":"1.1.3"}')},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.3.0-rc.1"}')},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(139);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(249),a=n(216),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(139);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(186),i=n(26),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(436).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(3);n(897);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?Object.setPrototypeOf.bind():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.bind():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?Object.setPrototypeOf.bind():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.bind():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(3),i=n(144);n(899);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?Object.setPrototypeOf.bind():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.bind():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?Object.setPrototypeOf.bind():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.bind():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){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){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,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(832));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}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(302),i=s(n(833)),o=s(n(834)),a=s(n(835));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(472),i=n(362),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 T=b.pop(),E=w.pop(),O=_.pop(),C=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);E.on("s",k).on(":",P),O.on("s",k).on(":",P),l.push(k),T.on(":",P),k.on(":",P),C.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 L=0;L<l.length;L++)l[L].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var x=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=x},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(472),i=n(836),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(362);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(),T=s(),E=s(i.URL),O=s(i.URL),C=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),L=s(),x=s(),j=s(),R=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),x.on(a.DOT,j),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),j.on(a.TLD,R).on(a.DOMAIN,x).on(a.NUM,x).on(a.LOCALHOST,x),y.on(a.DOT,h),R.on(a.DOT,j),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),R.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,T),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,T),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),T.on(a.CLOSEPAREN,g),E.on(a.CLOSEBRACE,g),O.on(a.CLOSEBRACKET,g),C.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),L.on(a.CLOSEPAREN,g),w.on(z,E),_.on(z,O),S.on(z,C),T.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),T.on(W,L),E.on(z,E),O.on(z,O),C.on(z,C),k.on(z,k),E.on(W,E),O.on(W,O),C.on(W,C),k.on(W,k),P.on(z,E),A.on(z,O),I.on(z,C),L.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),L.on(W,L),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 G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(G,M).on(a.AT,V),y.on(G,M).on(a.AT,V),h.on(G,M),M.on(G,M).on(a.AT,V).on(a.DOT,F),F.on(G,M),V.on(a.TLD,x).on(a.DOMAIN,x).on(a.LOCALHOST,R);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(473),i=n(302),o=n(362);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(826).default,i=n(27);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.bind():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(333),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 T(){}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}},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};T.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)},T.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=[]},T.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=T},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",T=l?"pointerdown":w,E=l?"pointermove":_,O=l?"pointerup pointercancel":S,C=/^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},L=Number.isNaN||c.isNaN;function x(e){return"number"==typeof e&&!L(e)}var j=function(e){return e>0&&e<1/0};function R(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)||x(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 G=/^width|height|left|top|marginLeft|marginTop$/;function q(e,t){var n=e.style;F(t,(function(e,t){G.test(t)&&x(e)&&(e="".concat(e,"px")),n[t]=e}))}function Y(e,t){if(t)if(x(e.length))F(e,(function(e){Y(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 K(e,t){t&&(x(e.length)?F(e,(function(e){K(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&&(x(e.length)?F(e,(function(e){X(e,t,n)})):n?Y(e,t):K(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=[];x(i)&&0!==i&&a.push("translateX(".concat(i,"px)")),x(o)&&0!==o&&a.push("translateY(".concat(o,"px)")),x(t)&&0!==t&&a.push("rotate(".concat(t,"deg)")),x(n)&&1!==n&&a.push("scaleX(".concat(n,")")),x(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=j(r),a=j(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":_,T=r.maxWidth,E=void 0===T?1/0:T,O=r.maxHeight,C=void 0===O?1/0:O,k=r.minWidth,P=void 0===k?0:k,A=r.minHeight,I=void 0===A?0:A,L=document.createElement("canvas"),x=L.getContext("2d"),j=pe({aspectRatio:h,width:E,height:C}),R=pe({aspectRatio:h,width:P,height:I},"cover"),N=Math.min(j.width,Math.max(R.width,y)),D=Math.min(j.height,Math.max(R.height,m)),B=pe({aspectRatio:i,width:E,height:C}),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 L.width=W(N),L.height=W(D),x.fillStyle=g,x.fillRect(0,0,N,D),x.save(),x.translate(N/2,D/2),x.rotate(u*Math.PI/180),x.scale(f,d),x.imageSmoothingEnabled=w,x.imageSmoothingQuality=S,x.drawImage.apply(x,[e].concat(a(F.map((function(e){return Math.floor(W(e))}))))),x.restore(),L}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;Y(r,d),K(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,q(r,{width:i.width,height:i.height}),Y(e,d),K(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,q(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}),q(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"),q(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);q(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&&(q(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),q(t,{width:f,height:p}),q(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,T,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,E,this.onCropMove=this.cropMove.bind(this)),re(e.ownerDocument,O,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,T,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,E,this.onCropMove),ne(e.ownerDocument,O,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)&&(x(t)&&1!==t||x(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),C.test(r)&&!1!==ie(this.element,"cropstart",{originalEvent:e,action:r})&&(e.preventDefault(),this.action=r,this.cropping=!1,"crop"===r&&(this.cropping=!0,Y(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]],T={x:S.endX-S.startX,y:S.endY-S.startY},E=function(e){switch(e){case"e":y+T.x>b&&(T.x=b-y);break;case"w":l+T.x<v&&(T.x=v-l);break;case"n":f+T.y<g&&(T.y=g-f);break;case"s":m+T.y>w&&(T.y=w-m)}};switch(c){case"all":l+=T.x,f+=T.y;break;case"e":if(T.x>=0&&(y>=b||u&&(f<=g||m>=w))){_=!1;break}E("e"),(p+=T.x)<0&&(c="w",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"n":if(T.y<=0&&(f<=g||u&&(l<=v||y>=b))){_=!1;break}E("n"),h-=T.y,f+=T.y,h<0&&(c="s",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"w":if(T.x<=0&&(l<=v||u&&(f<=g||m>=w))){_=!1;break}E("w"),p-=T.x,l+=T.x,p<0&&(c="e",l-=p=-p),u&&(h=p/u,f+=(a.height-h)/2);break;case"s":if(T.y>=0&&(m>=w||u&&(l<=v||y>=b))){_=!1;break}E("s"),(h+=T.y)<0&&(c="n",f-=h=-h),u&&(p=h*u,l+=(a.width-p)/2);break;case"ne":if(u){if(T.y<=0&&(f<=g||y>=b)){_=!1;break}E("n"),h-=T.y,f+=T.y,p=h*u}else E("n"),E("e"),T.x>=0?y<b?p+=T.x:T.y<=0&&f<=g&&(_=!1):p+=T.x,T.y<=0?f>g&&(h-=T.y,f+=T.y):(h-=T.y,f+=T.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(T.y<=0&&(f<=g||l<=v)){_=!1;break}E("n"),h-=T.y,f+=T.y,p=h*u,l+=a.width-p}else E("n"),E("w"),T.x<=0?l>v?(p-=T.x,l+=T.x):T.y<=0&&f<=g&&(_=!1):(p-=T.x,l+=T.x),T.y<=0?f>g&&(h-=T.y,f+=T.y):(h-=T.y,f+=T.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(T.x<=0&&(l<=v||m>=w)){_=!1;break}E("w"),p-=T.x,l+=T.x,h=p/u}else E("s"),E("w"),T.x<=0?l>v?(p-=T.x,l+=T.x):T.y>=0&&m>=w&&(_=!1):(p-=T.x,l+=T.x),T.y>=0?m<w&&(h+=T.y):h+=T.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(T.x>=0&&(y>=b||m>=w)){_=!1;break}E("e"),h=(p+=T.x)/u}else E("s"),E("e"),T.x>=0?y<b?p+=T.x:T.y>=0&&m>=w&&(_=!1):p+=T.x,T.y>=0?m<w&&(h+=T.y):h+=T.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(T.x,T.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(!T.x||!T.y){_=!1;break}t=oe(this.cropper),l=S.startX-t.left,f=S.startY-t.top,p=a.minWidth,h=a.minHeight,T.x>0?c=T.y>0?"se":"ne":T.x<0&&(l-=p,c=T.y>0?"sw":"nw"),T.y<0&&(f-=h),this.cropped||(K(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&&Y(this.dragBox,m),K(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(),K(this.dragBox,m),Y(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,K(this.cropper,p)),this},disable:function(){return this.ready&&!this.disabled&&(this.disabled=!0,Y(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(R(e)?e:r+Number(e),R(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&&(x(e)&&(n.left=e,r=!0),x(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)&&x(t.x)&&x(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 x(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,x(t)?t:1)},scaleY:function(e){var t=this.imageData.scaleX;return this.scale(x(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&&(x(e)&&(n.scaleX=e,r=!0),x(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&&x(e.rotate)&&e.rotate!==n.rotate&&(n.rotate=e.rotate,o=!0),t.scalable&&(x(e.scaleX)&&e.scaleX!==n.scaleX&&(n.scaleX=e.scaleX,o=!0),x(e.scaleY)&&e.scaleY!==n.scaleY&&(n.scaleY=e.scaleY,o=!0)),o&&this.renderCanvas(!0,!0);var a=n.width/n.naturalWidth;x(e.x)&&(i.left=e.x*a+r.left),x(e.y)&&(i.top=e.y*a+r.top),x(e.width)&&(i.width=e.width*a),x(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)&&(x(e.left)&&(t.left=e.left),x(e.top)&&(t.top=e.top),x(e.width)?(t.width=e.width,t.height=e.width/n):x(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)&&(x(e.left)&&(r.left=e.left),x(e.top)&&(r.top=e.top),x(e.width)&&e.width!==r.width&&(t=!0,r.width=e.width),x(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,T,E,O,C,k=n.width,P=n.height,A=i,I=o;A<=-s||A>k?(A=0,_=0,T=0,O=0):A<=0?(T=-A,A=0,O=_=Math.min(k,s+A)):A<=k&&(T=0,O=_=Math.min(s,k-A)),_<=0||I<=-c||I>P?(I=0,S=0,E=0,C=0):I<=0?(E=-I,I=0,C=S=Math.min(P,c+I)):I<=P&&(E=0,C=S=Math.min(c,P-I));var L=[A,I,_,S];if(O>0&&C>0){var x=h/s;L.push(T*x,E*x,O*x,C*x)}return v.drawImage.apply(v,[n].concat(a(L.map((function(e){return Math.floor(W(e))}))))),m},setAspectRatio:function(e){var t=this.options;return this.disabled||R(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}},Te=c.Cropper,Ee=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=Te,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),Y(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),Y(e,d),r.insertBefore(o,e.nextSibling),this.isImg||K(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,Y(c,d),t.guides||Y(c.getElementsByClassName("".concat("cropper","-dashed")),d),t.center||Y(c.getElementsByClassName("".concat("cropper","-center")),d),t.background&&Y(o,"".concat("cropper","-bg")),t.highlight||Y(u,y),t.cropBoxMovable&&(Y(u,v),J(u,g,"all")),t.cropBoxResizable||(Y(c.getElementsByClassName("".concat("cropper","-line")),d),Y(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),K(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(Ee.prototype,ve,ge,be,we,_e,Se),Ee}()},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(139);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(48),i=n(364),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(595);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(30),i=n(71);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(35),o=n(1),a=n(31),s=n(21),c=n(44),u=n(173),l=n(434),f=n(291),p=n(49),d=n(240),h=n(385),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){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 T(){}function E(e,t){this._node=e,this._refresh=t,O(this)}function O(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var r=e._refresh(e._node);te(e,"length",r.length),n(r,e),e._inc=t}}function C(){}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 L(){}function x(e){return("<"==e?"&lt;":">"==e&&"&gt;")||"&"==e&&"&amp;"||'"'==e&&"&quot;"||"&#"+e.charCodeAt()+";"}function j(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(j(e,t))return!0}while(e=e.nextSibling)}function R(){}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 G(){}function q(){}function Y(){}function K(){}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,T=_?" xmlns:"+_:" xmlns";t.push(T,'="',S,'"'),i.push({prefix:_,namespace:S})}ee(w,t,n,r,i)}if(J(e,0,i)){_=e.prefix||"",S=e.namespaceURI,T=_?" xmlns:"+_:" xmlns";t.push(T,'="',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,x),'"');case s:return t.push(e.data.replace(/[<&]/g,x));case c:return t.push("<![CDATA[",e.data,"]]>");case p:return t.push("\x3c!--",e.data,"--\x3e");case h:var E=e.publicId,O=e.systemId;if(t.push("<!DOCTYPE ",e.name),E)t.push(' PUBLIC "',E),O&&"."!=O&&t.push('" "',O),t.push('">');else if(O&&"."!=O)t.push(' SYSTEM "',O,'">');else{var C=e.internalSubset;C&&t.push(" [",C,"]"),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),T.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("")}},E.prototype.item=function(e){return O(this),this[e]},r(E,T),C.prototype={length:0,item:T.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 R;if(r.implementation=this,r.childNodes=new T,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 G;return r.name=e,r.nodeName=e,r.publicId=t,r.systemId=n,r}},L.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 T);switch(i.ownerDocument=t,i.nodeType){case o:var u=n.attributes,l=i.attributes=new C,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,L),n(i,L.prototype),R.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 j(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 T,(t.attributes=new C)._ownerElement=t,t},createDocumentFragment:function(){var e=new X;return e.ownerDocument=this,e.childNodes=new T,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 K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new M,r=t.split(":"),i=n.attributes=new C;return n.childNodes=new T,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(R,L),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 E(this,(function(t){var n=[];return j(t,(function(r){r===t||r.nodeType!=o||"*"!==e&&r.tagName!=e||n.push(r)})),n}))},getElementsByTagNameNS:function(e,t){return new E(this,(function(n){var r=[];return j(n,(function(i){i===n||i.nodeType!==o||"*"!==e&&i.namespaceURI!==e||"*"!==t&&i.localName!=t||r.push(i)})),r}))}},R.prototype.getElementsByTagName=M.prototype.getElementsByTagName,R.prototype.getElementsByTagNameNS=M.prototype.getElementsByTagNameNS,r(M,L),V.prototype.nodeType=a,r(V,L),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,L),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),G.prototype.nodeType=h,r(G,L),q.prototype.nodeType=m,r(q,L),Y.prototype.nodeType=l,r(Y,L),K.prototype.nodeType=u,r(K,L),X.prototype.nodeName="#document-fragment",X.prototype.nodeType=y,r(X,L),Q.prototype.nodeType=f,r(Q,L),$.prototype.serializeToString=function(e,t,n){return Z.call(e,t,n)},L.prototype.toString=Z;try{if(Object.defineProperty){Object.defineProperty(E.prototype,"length",{get:function(){return O(this),this.$$length}}),Object.defineProperty(L.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=O(o,"Map"),g=O(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 T(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 E(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 O(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return T(n)?n:void 0}function C(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(C.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 E(this,e).delete(e)},_.prototype.get=function(e){return E(this,e).get(e)},_.prototype.has=function(e){return E(this,e).has(e)},_.prototype.set=function(e,t){return E(this,e).set(e,t),this},C.Cache=_,e.exports=C}).call(this,n(126))},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 T=void 0!==i.ResizeObserver?i.ResizeObserver:S;t.a=T}).call(this,n(126))},function(e,t,n){},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(248),a=n(281),s=n(2),c=n(6),u=n(65),l=n(220);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(125),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?Object.setPrototypeOf.bind():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.bind():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=n(611);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(613);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(614);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(615);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(616);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(617);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(618);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(316);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(619);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(620);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(621);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(622);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.WidgetType}));var y=n(623);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return y.InteractionTypeId})),n.o(y,"WidgetType")&&n.d(t,"WidgetType",(function(){return y.WidgetType}));var m=n(624);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return m.InteractionTypeId})),n.o(m,"WidgetType")&&n.d(t,"WidgetType",(function(){return m.WidgetType})),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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var v=n(625);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return v.InteractionTypeId})),n.o(v,"WidgetType")&&n.d(t,"WidgetType",(function(){return v.WidgetType}));var g=n(626);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return g.InteractionTypeId})),n.o(g,"WidgetType")&&n.d(t,"WidgetType",(function(){return g.WidgetType}));var b=n(627);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return b.InteractionTypeId})),n.o(b,"WidgetType")&&n.d(t,"WidgetType",(function(){return b.WidgetType}));var w=n(628);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return w.InteractionTypeId})),n.o(w,"WidgetType")&&n.d(t,"WidgetType",(function(){return w.WidgetType}));var _=n(629);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(_,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return _.InteractionTypeId})),n.o(_,"WidgetType")&&n.d(t,"WidgetType",(function(){return _.WidgetType}));var S=n(630);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return S.InteractionTypeId})),n.o(S,"WidgetType")&&n.d(t,"WidgetType",(function(){return S.WidgetType}));var T=n(631);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return T.InteractionTypeId})),n.o(T,"WidgetType")&&n.d(t,"WidgetType",(function(){return T.WidgetType}));var E=n(632);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return E.InteractionTypeId})),n.o(E,"WidgetType")&&n.d(t,"WidgetType",(function(){return E.WidgetType}));var O=n(633);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return O.InteractionTypeId})),n.o(O,"WidgetType")&&n.d(t,"WidgetType",(function(){return O.WidgetType}));var C=n(634);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return C.InteractionTypeId})),n.o(C,"WidgetType")&&n.d(t,"WidgetType",(function(){return C.WidgetType}));var k=n(635);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return k.InteractionTypeId})),n.o(k,"WidgetType")&&n.d(t,"WidgetType",(function(){return k.WidgetType}));var P=n(636);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return P.InteractionTypeId})),n.o(P,"WidgetType")&&n.d(t,"WidgetType",(function(){return P.WidgetType}));var A=n(637);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return A.InteractionTypeId})),n.o(A,"WidgetType")&&n.d(t,"WidgetType",(function(){return A.WidgetType}));var I=n(638);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return I.InteractionTypeId})),n.o(I,"WidgetType")&&n.d(t,"WidgetType",(function(){return I.WidgetType}));var L=n(639);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return L.InteractionTypeId})),n.o(L,"WidgetType")&&n.d(t,"WidgetType",(function(){return L.WidgetType}))},function(e,t,n){"use strict";var r=n(612);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,"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){},function(e,t,n){"use strict";var r=n(641);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(644);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(650);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(656);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(657);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(658);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(659);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(660);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(661);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(662);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(663);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));var h=n(664);n.d(t,"ClassroomGroupColour",(function(){return h.a}));var y=n(665);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(666);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(667);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(668);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(317);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(669);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(670);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(671);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 T=n(672);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(673);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(674);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}));var C=n(675);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 k=n(318);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(676);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})),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 A=n(677);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(678);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 L=n(679);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 x=n(680);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 j=n(681);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})),n.o(j,"WidgetType")&&n.d(t,"WidgetType",(function(){return j.WidgetType}));var R=n(319);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId})),n.o(R,"WidgetType")&&n.d(t,"WidgetType",(function(){return R.WidgetType}));var N=n(682);n.d(t,"WidgetType",(function(){return N.a}));var D=n(683);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(684);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(685);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(686);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(687);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(688);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(689);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(690);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(691);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 G=n(692);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 q=n(693);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 Y=n(694);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 K=n(695);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 X=n(696);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(697);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(698);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}));var Z=n(699);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(700);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})),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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return R.InteractionTypeId}));var ee=n(701);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(702);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}));var ne=n(703);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(704);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})),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 ie=n(705);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(706);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(707);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(708);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(709);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(710);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(711);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(712);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(713);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(714);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(715);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(716);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}));var me=n(717);n.o(me,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return me.BaseNotificationsAppVariables})),n.o(me,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return me.BaseSearchAppVariables})),n.o(me,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return me.InteractionTypeId}));var ve=n(718);n.o(ve,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ve.BaseNotificationsAppVariables})),n.o(ve,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ve.BaseSearchAppVariables})),n.o(ve,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ve.InteractionTypeId}));var ge=n(719);n.o(ge,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return ge.BaseNotificationsAppVariables})),n.o(ge,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return ge.BaseSearchAppVariables})),n.o(ge,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return ge.InteractionTypeId}));var be=n(720);n.o(be,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return be.BaseNotificationsAppVariables})),n.o(be,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return be.BaseSearchAppVariables})),n.o(be,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return be.InteractionTypeId}));var we=n(721);n.o(we,"BaseNotificationsAppVariables")&&n.d(t,"BaseNotificationsAppVariables",(function(){return we.BaseNotificationsAppVariables})),n.o(we,"BaseSearchAppVariables")&&n.d(t,"BaseSearchAppVariables",(function(){return we.BaseSearchAppVariables})),n.o(we,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return we.InteractionTypeId}));var _e=n(722);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}));var Se=n(723);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}))},function(e,t,n){"use strict";var r=n(642);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(643);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,"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(645);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.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,"ClassroomGroupColour")&&n.d(t,"ClassroomGroupColour",(function(){return i.ClassroomGroupColour})),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(647);n.d(t,"InteractionTypeId",(function(){return o.a}));var a=n(648);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,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(649);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,"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(651);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(652);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(653);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(654);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(655);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,"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){},function(e,t){},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){},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){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(725);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,"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(727);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(728);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(729);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(730);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(731);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(732);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(733);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return u.InteractionTypeId})),n.o(u,"WidgetType")&&n.d(t,"WidgetType",(function(){return u.WidgetType}));var l=n(734);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return l.InteractionTypeId})),n.o(l,"WidgetType")&&n.d(t,"WidgetType",(function(){return l.WidgetType}));var f=n(735);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return f.InteractionTypeId})),n.o(f,"WidgetType")&&n.d(t,"WidgetType",(function(){return f.WidgetType}));var p=n(736);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return p.InteractionTypeId})),n.o(p,"WidgetType")&&n.d(t,"WidgetType",(function(){return p.WidgetType}));var d=n(737);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return d.InteractionTypeId})),n.o(d,"WidgetType")&&n.d(t,"WidgetType",(function(){return d.WidgetType}));n(738);var h=n(739);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return h.InteractionTypeId})),n.o(h,"WidgetType")&&n.d(t,"WidgetType",(function(){return h.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"},function(e,t){},function(e,t,n){"use strict";var r=n(741);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(742);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(743);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}))},function(e,t){},function(e,t){},function(e,t){},function(e,t,n){"use strict";var r=n(745);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return r.InteractionTypeId})),n.o(r,"WidgetType")&&n.d(t,"WidgetType",(function(){return r.WidgetType}));var i=n(746);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return i.InteractionTypeId})),n.o(i,"WidgetType")&&n.d(t,"WidgetType",(function(){return i.WidgetType}));var o=n(747);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return o.InteractionTypeId})),n.o(o,"WidgetType")&&n.d(t,"WidgetType",(function(){return o.WidgetType}));var a=n(748);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return a.InteractionTypeId})),n.o(a,"WidgetType")&&n.d(t,"WidgetType",(function(){return a.WidgetType}));var s=n(749);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return s.InteractionTypeId})),n.o(s,"WidgetType")&&n.d(t,"WidgetType",(function(){return s.WidgetType}));var c=n(750);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,"InteractionTypeId")&&n.d(t,"InteractionTypeId",(function(){return c.InteractionTypeId})),n.o(c,"WidgetType")&&n.d(t,"WidgetType",(function(){return c.WidgetType}));var u=n(751);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,"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(e,t,n){"use strict";var r,i=n(239);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?Object.setPrototypeOf.bind():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.bind():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(119);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(77);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(267),f=n(71),p=n(95),d=n(171),h=n(113),y=n(0);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 v(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */v=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new O(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,g=y&&y(y(C([])));g&&g!==t&&n.call(g,i)&&(h=g);var b=d.prototype=f.prototype=Object.create(h);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==m(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function S(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:k}}function k(){return{value:void 0,done:!0}}return p.prototype=d,s(b,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(b),e},e.awrap=function(e){return{__await:e}},w(_.prototype),s(_.prototype,o,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new _(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(b),s(b,a,"Generator"),s(b,i,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=C,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function g(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 S})),n.d(t,"f",(function(){return T})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return O})),n.d(t,"b",(function(){return C})),n.d(t,"c",(function(){return k})),n.d(t,"g",(function(){return P})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return I})),n.d(t,"l",(function(){return L})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return j}));var b=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())}))},w=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}}])&&g(t.prototype,n),r&&g(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function _(e,t,n){if(!e||!t)return S();var r=t.response;return!1!==t.request.normalize&&(r=Object(d.a)(t.response,n)),new w({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,hasCompleted:t.hasCompleted,data:r})}function S(){return new w({status:h.a.None})}function T(e,t){return _(t,e.flightData.resources[t],e.flightData.entities)}function E(e){return function(t){t&&C(e,t)}}function O(e){return function(t){if(t)return k(e,t)}}function C(e,t){e({type:p.a.API_REQUEST,request:t})}function k(e,t){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)},C(e,t)}))}function P(e,t){var n,r,i,o,a=T(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,P(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 A(){return E(Object(r.useDispatch)())}function I(){return O(Object(r.useDispatch)())}function L(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 _(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 _(e,t,n)}))}(e)}),[e]);return Object(r.useSelector)((function(e){return n(e)}))}function x(e,t){var n=Object(r.useDispatch)(),i=L(e&&e.key,t),o=E(n);return e&&i.shouldFetch&&o(e),i}function j(e,t){return b(this,void 0,void 0,v().mark((function n(){return v().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)},P(e,t)})));case 1:case"end":return n.stop()}}),n)})))}},function(e,t,n){"use strict";n(428);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?Object.setPrototypeOf.bind():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.bind():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(239).BaseCollectionIdentifier);n.d(t,"a",(function(){return l}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(831).default},function(e,t){e.exports=m},function(e,t,n){e.exports={radioFilter:"vo-iA"}},function(e,t,n){var r=n(139);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(139);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(139);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(139);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(139);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(139);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(594);n.o(r,"PlaylistVideoCollectionIdentifier")&&n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return r.PlaylistVideoCollectionIdentifier}));var i=n(793);n.d(t,"PlaylistVideoCollectionIdentifier",(function(){return i.a}))},function(e,t,n){"use strict";var r=n(598);n.o(r,"MicrosoftTeamsProduct")&&n.d(t,"MicrosoftTeamsProduct",(function(){return r.MicrosoftTeamsProduct}));var i=n(599);n.d(t,"MicrosoftTeamsProduct",(function(){return i.a}));n(600)},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(365),i=n(846);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),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(365);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(851).XMLReader,l=t.DOMImplementation=n(602).DOMImplementation;t.XMLSerializer=n(602).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(603),i=n(852).handleRollover,o={};o.ts=n(854),o.aac=n(855);var a=n(214).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":"1.1.3"}')},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.3.0-rc.3"}')},function(e,t,n){e.exports={embeddedPlayer:"dgjVs"}},function(e,t,n){e.exports={image:"_3T3Ux"}},function(e,t,n){var r=n(139);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(249),a=n(216),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(139);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(186),i=n(26),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(436).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(3);n(897);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?Object.setPrototypeOf.bind():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.bind():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?Object.setPrototypeOf.bind():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.bind():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(3),i=n(144);n(899);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?Object.setPrototypeOf.bind():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.bind():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?Object.setPrototypeOf.bind():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.bind():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){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){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,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(832));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}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(302),i=s(n(833)),o=s(n(834)),a=s(n(835));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(472),i=n(362),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 T=b.pop(),E=w.pop(),O=_.pop(),C=S.pop(),k=f(i.DOMAIN),P=f(i.PROTOCOL),A=f(i.MAILTO);E.on("s",k).on(":",P),O.on("s",k).on(":",P),l.push(k),T.on(":",P),k.on(":",P),C.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 L=0;L<l.length;L++)l[L].on("-",y).on(c,h);y.on("-",y).on(s,h).on(c,h),p.defaultTransition=f(i.SYM);var x=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=x},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(472),i=n(836),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(362);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(),T=s(),E=s(i.URL),O=s(i.URL),C=s(i.URL),k=s(i.URL),P=s(),A=s(),I=s(),L=s(),x=s(),j=s(),R=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),x.on(a.DOT,j),h.on(a.TLD,y).on(a.DOMAIN,d).on(a.NUM,d).on(a.LOCALHOST,d),j.on(a.TLD,R).on(a.DOMAIN,x).on(a.NUM,x).on(a.LOCALHOST,x),y.on(a.DOT,h),R.on(a.DOT,j),y.on(a.COLON,m).on(a.SLASH,g),m.on(a.NUM,v),v.on(a.SLASH,g),R.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,T),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,_).on(a.OPENANGLEBRACKET,S).on(a.OPENPAREN,T),w.on(a.CLOSEBRACE,g),_.on(a.CLOSEBRACKET,g),S.on(a.CLOSEANGLEBRACKET,g),T.on(a.CLOSEPAREN,g),E.on(a.CLOSEBRACE,g),O.on(a.CLOSEBRACKET,g),C.on(a.CLOSEANGLEBRACKET,g),k.on(a.CLOSEPAREN,g),P.on(a.CLOSEBRACE,g),A.on(a.CLOSEBRACKET,g),I.on(a.CLOSEANGLEBRACKET,g),L.on(a.CLOSEPAREN,g),w.on(z,E),_.on(z,O),S.on(z,C),T.on(z,k),w.on(W,P),_.on(W,A),S.on(W,I),T.on(W,L),E.on(z,E),O.on(z,O),C.on(z,C),k.on(z,k),E.on(W,E),O.on(W,O),C.on(W,C),k.on(W,k),P.on(z,E),A.on(z,O),I.on(z,C),L.on(z,k),P.on(W,P),A.on(W,A),I.on(W,I),L.on(W,L),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 G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];d.on(G,M).on(a.AT,V),y.on(G,M).on(a.AT,V),h.on(G,M),M.on(G,M).on(a.AT,V).on(a.DOT,F),F.on(G,M),V.on(a.TLD,x).on(a.DOMAIN,x).on(a.LOCALHOST,R);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(473),i=n(302),o=n(362);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(826).default,i=n(27);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.bind():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(333),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 T(){}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}},T.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},T.convertCueToDOMTree=function(e,t){return e&&t?y(e,t):null};T.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)},T.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=[]},T.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=T},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 T=e.indexOf("<",S);if(T<0){if(!e.substr(S).match(/^\s*$/)){var E=r.doc,O=E.createTextNode(e.substr(S));E.appendChild(O),r.currentElement=O}return}switch(T>S&&f(T),e.charAt(T+1)){case"/":var C=e.indexOf(">",T+3),k=e.substring(T+2,C),P=w.pop();C<0?(k=e.substring(T+2).replace(/[\s<].*/,""),i.error("end tag name: "+k+" is not complete:"+P.tagName),C=T+1+k.length):k.match(/\s</)&&(k=k.replace(/[\s<].*/,""),i.error("end tag name: "+k+" maybe not complete"),C=T+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 L in A)r.endPrefixMapping(L);I||i.fatalError("end tag name: "+k+" is not match the current start tagName:"+P.tagName)}else w.push(P);C++;break;case"?":b&&y(T),C=d(e,T,r);break;case"!":b&&y(T),C=p(e,T,r,i);break;default:b&&y(T);var x=new h,j=w[w.length-1].currentNSMap,R=(C=s(e,T,x,j,o,i),x.length);if(!x.closed&&l(e,C,x.tagName,_)&&(x.closed=!0,n.nbsp||i.warning("unclosed xml attribute")),b&&R){for(var N=a(b,{}),D=0;D<R;D++){var B=x[D];y(B.offset),B.locator=a(b,{})}r.locator=N,c(x,r,j)&&w.push(x),r.locator=b}else c(x,r,j)&&w.push(x);"http://www.w3.org/1999/xhtml"!==x.uri||x.closed?C++:C=u(e,C,x.tagName,o,r)}}catch(e){i.error("element parse error: "+e),C=-1}C>S?S=C:f(Math.max(T,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(853),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(603),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(305).toUnsigned,i=n(604),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(859);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(305).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){"use strict";n.r(t);n(828),n(829),n(830);var r=n(4),i=n(10),o=n(22),a=n(52),s=n(0),c=n.n(s),u=n(13),l=n.n(u),f=n(324),p=n(34);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?Object.setPrototypeOf.bind():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.bind():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",T="alert",E="hidden",O=n(1),C="TeacherLayout",k="SimpleLayout",P=n(2),A=n(6),I=n(118),L=n(40),x=function(e,t){var n;return null===(n=null==e?void 0:e[t])||void 0===n?void 0:n.value},j=n(132);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 N(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */N=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==R(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var D=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())}))},B={application:P.a.DEFAULT,action:A.a.Default.UPGRADE_ONBOARDING},U={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME};function M(e,t){var n,o;return D(this,void 0,void 0,N().mark((function a(){var s,c,u,l,f,p,d,h;return N().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return s=e.shell.store,c=B.application===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&B.action===(null===(o=e.appLink)||void 0===o?void 0:o.action),a.next=4,i.a.hooklessFetchAsync(s,I.a.customerSettings(t.customerId));case 4:return u=a.sent,a.next=7,i.a.hooklessFetchAsync(s,I.a.userSettings(t.id));case 7:if(l=a.sent,f=x(u,L.a.LiteUpgradeComplete),p=x(l,L.a.HasCompletedUpgradeOnboarding),!f&&!p){a.next=16;break}if(!c){a.next=15;break}return r.a.AppLinkHelper.trigger(U,{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=x(u,L.a.LiteUpgradeTypeCustomer),h=x(l,L.a.LiteUpgradeTypeUser),!!h||!!d){a.next=25;break}if(!c){a.next=24;break}return r.a.AppLinkHelper.trigger(U,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return",{isUpgradeCustomer:!1,redirected:!0});case 24:return a.abrupt("return",{isUpgradeCustomer:!1});case 25:if(j.a.disableNav(),c){a.next=30;break}return r.a.AppLinkHelper.trigger(B,{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 V=n(379),F=n.n(V);function H(e){return(H="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 z(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */z=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==H(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}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())}))},G=[{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}],q=[{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 Y(e,t){return W(this,void 0,void 0,z().mark((function n(){var s,c,u,l;return z().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(s=e.shell.store,c=e.appLink,!q.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.hooklessFetchAsync(s,o.a.permissions());case 6:if(n.sent[a.a.ManageSubjectPreferences]){n.next=9;break}return n.abrupt("return");case 9:if(F.a.get("_onboardingComplete")!==t.id.toString()){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,i.a.hooklessFetchAsync(s,I.a.userSettings(t.customerId));case 13:if(u=n.sent,!x(u,L.a.HasCompletedOnboarding)){n.next=18;break}return F.a.set("_onboardingComplete",t.id,{expires:30}),n.abrupt("return");case 18:if(l=!!G.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)})),j.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)})))}function K(e){return(K="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 X(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */X=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==K(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Q=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())}))},Z={application:P.a.DASHBOARD,action:A.a.Dashboard.HOME},J=P.a.DEFAULT,ee=A.a.Default.UPGRADE_ONBOARDING;function te(e,t){var n,s;return Q(this,void 0,void 0,X().mark((function c(){var u,l,f,p,d,h;return X().wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return u=e.shell.store,l=!!G.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=J===(null===(n=e.appLink)||void 0===n?void 0:n.application)&&ee===(null===(s=e.appLink)||void 0===s?void 0:s.action),c.prev=3,c.next=6,i.a.hooklessFetchAsync(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(Z,{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.hooklessFetchAsync(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(Z,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 21:return c.abrupt("return",t(e));case 22:return c.next=24,M(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(Z,{replace:!0}),r.a.AppLinkUtility.routingEnded(),c.abrupt("return");case 34:return c.abrupt("return",t(e));case 35:return c.next=37,Y(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 ne=n(94),re=n(108),ie=n(74),oe=n(236),ae=n(104),se=n(81),ce=n(8);function ue(e){return(ue="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 le(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 fe(e,t){return(fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():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=he(e);if(t){var i=he(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"===ue(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 he(e){return(he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ye="liteShared.noAccess",me=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&&fe(e,t)}(o,e);var t,n,r,i=pe(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 ce.a.getPhrase(ye,"heading")}},{key:"description",get:function(){return ce.a.getPhrase(ye,"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}}])&&le(t.prototype,n),r&&le(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(se.a),ve=n(102),ge=n(89);function be(e){return(be="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 we(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */we=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==be(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var _e=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())}))},Se=[{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[Te(t)]=!0,e}),{});function Te(e){return e.application+e.action}function Ee(e,t){ie.a._forcePushContext(e),ge.a.disableNav(),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(null!=t?t:new ae.a)}function Oe(e,t){var n=this,r=e.appLink,a=e.shell;ne.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,oe.a.userProducts((function(o){return _e(n,void 0,void 0,we().mark((function n(){var s;return we().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!o.find((function(e){return e.id===re.a.Primary}))){n.next=3;break}return t(e),n.abrupt("return");case 3:if(!Se[Te(e.appLink)]){n.next=7;break}return ge.a.disableNav(),t(e),n.abrupt("return");case 7:return n.next=9,i.a.hooklessFetchAsync(a.store,ve.a.config());case 9:s=n.sent,Ee(r,new me(s));case 11:case"end":return n.stop()}}),n)})))}),(function(){return Ee(r)})))}),(function(){return Ee(r)})))}var Ce=n(29),ke=n(237),Pe=n(48),Ae=n(58),Ie=n(66),Le=n(17),xe=n(238);function je(e){return(je="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(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 De(e,t){return(De=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Be(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=Me(e);if(t){var i=Me(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ue(this,n)}}function Ue(e,t){if(t&&("object"===je(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 Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ve=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&&De(e,t)}(o,e);var t,n,r,i=Be(o);function o(){return Re(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}}])&&Ne(t.prototype,n),r&&Ne(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function Fe(e){return(Fe="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 He(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 ze(e,t){return(ze=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function We(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=qe(e);if(t){var i=qe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ge(this,n)}}function Ge(e,t){if(t&&("object"===Fe(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 qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ve.type="BaseAnalyticsEnricher";var Ye=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&&ze(e,t)}(o,e);var t,n,r,i=We(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}}}])&&He(t.prototype,n),r&&He(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ve);function Ke(e){return(Ke="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 Xe={application:P.a.DEFAULT,action:A.a.Default.PLUGIN},Qe={application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO},$e={application:P.a.DEFAULT,action:A.a.Default.PLAY_CLIP},Ze={application:P.a.INTERACTIVES,action:A.a.Interactives.VIEW_INTERACTIVE},Je={application:P.a.DEFAULT,action:A.a.Default.SHARE},et=[Qe,$e,Ze,Je],tt=[P.a.CLASSROOMS,P.a.USER_MANAGER,P.a.SETTINGS];function nt(e,t){return e.application===(null==t?void 0:t.application)&&e.action===(null==t?void 0:t.action)}function rt(e){if(nt(e,Qe))return O.EntityType.Video;if(nt(e,$e))return O.EntityType.Clip;if(nt(e,Ze))return O.EntityType.Interactive;if(nt(e,Je)){var t=it(e.params);return null==t?void 0:t.entityType}r.a.ErrorHelper.throw(new Ce.a("No derived share entity type found"))}function it(e){return"object"===Ke(e)?e:Ae.LocationUtils.DeserializeQueryParams(e)}function ot(e){ie.a._forcePushContext(e),r.a.AppLinkUtility.routingEnded(),r.a.AppLinkHelper.trigger(e,{replace:!0})}function at(e,t){var n,r,i=e.appLink,o=e.shell,a=Pe.b.get(Ie.a.PLUGIN);if(a&&et.find((function(e){return nt(e,i)})))ot({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_SHARE,args:[i.args[0]],params:{entityType:rt(i)}});else if(a&&tt.find((function(e){return e===i.application})))ot({application:P.a.DEFAULT,action:A.a.Default.PLUGIN_NEW_WINDOW,params:{url:Ae.AppLinkHelper.getHref(i)}});else{if(nt(i,Xe)){var s=it(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:ke.a.UPDATE,payload:{viewModelKey:Ie.a.PLUGIN,dataOrKey:c}}),Pe.b.set(Ie.a.PLUGIN,c),function(e){if(e){var t=Le.a.getInstance(xe.a.Analytics);t.hasEnricher(Ye)||t.registerEnricher(Ye,{consumerKey:e})}}(s.consumerKey),ot({application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),void window.Intercom("update",{hide_default_launcher:!0})}t(e)}}var st=[{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[ct(t)]=!0,e}),{});function ct(e){return e.application+e.action}function ut(e,t){st[ct(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),"/"===Ae.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,ie.a._forcePushContext(t),ge.a.disableNav(),r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ae.a);var t})))}function lt(e){return(lt="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 ft(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ft=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==lt(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dt(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 ht(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yt(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&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function vt(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=bt(e);if(t){var i=bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return gt(this,n)}}function gt(e,t){if(t&&("object"===lt(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 bt(e){return(bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=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())}))},_t=function(e){yt(n,e);var t=vt(n);function n(){return pt(this,n),t.apply(this,arguments)}return ht(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[ut,Oe,te,at]}}]),n}(r.a.AppRouter),St=function(e){yt(i,e);var t=vt(i);function i(){return pt(this,i),t.apply(this,arguments)}return ht(i,[{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return P.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:T}}}},{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.query;Promise.all([n.e(25),n.e(96)]).then(n.bind(null,2224)).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(15),n.e(111)]).then(n.bind(null,2230)).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(15),n.e(93)]).then(n.bind(null,2236)).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(15),n.e(119)]).then(n.bind(null,2237)).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(0),n.e(2),n.e(103)]).then(n.bind(null,2136)).then((function(t){var n=t.CreateClassroomView,r={actionType:O.UserAction.Create,entity:O.EntityType.Classroom,workflowPhase:O.WorkflowPhase.Complete,location:O.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(0),n.e(2),n.e(104)]).then(n.bind(null,2137)).then((function(n){var r=n.EditClassroomView,i={actionType:O.UserAction.Edit,entity:O.EntityType.Classroom,workflowPhase:O.WorkflowPhase.Complete,location:O.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(179).then(n.bind(null,2138)).then((function(n){var r=n.DeleteClassroomView,i={actionType:O.UserAction.Delete,entity:O.EntityType.Classroom,workflowPhase:O.WorkflowPhase.Complete,location:O.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(10),n.e(176)]).then(n.bind(null,2139)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:O.UserAction.Associate,entity:O.EntityType.Classroom,location:O.LocationContext.Popup,descriptor:O.AssocDescriptor.User,workflowPhase:O.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(180).then(n.bind(null,2140)).then((function(t){var n=t.RemoveStudentsFromClassroomView,o={actionType:O.UserAction.Dissociate,entity:O.EntityType.Classroom,location:O.LocationContext.Popup,descriptor:O.AssocDescriptor.User,workflowPhase:O.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(0),n.e(2),n.e(79)]).then(n.bind(null,2141)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:O.EntityType.ClassroomGroup,location:O.LocationContext.Popup,workflowPhase:O.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(0),n.e(2),n.e(80)]).then(n.bind(null,2142)).then((function(n){var i=n.EditClassroomGroupView,o={entity:O.EntityType.ClassroomGroup,actionType:O.UserAction.Edit,location:O.LocationContext.Popup,workflowPhase:O.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(178).then(n.bind(null,2143)).then((function(n){var i=n.DeleteClassroomGroupView,o={entity:O.EntityType.ClassroomGroup,actionType:O.UserAction.Delete,location:O.LocationContext.Popup,workflowPhase:O.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 wt(this,void 0,void 0,ft().mark((function t(){var r,i;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(67).then(n.bind(null,2249));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(139).then(n.bind(null,2144));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(138).then(n.bind(null,2145));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(161).then(n.bind(null,2146));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(162).then(n.bind(null,2147));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(163).then(n.bind(null,2148));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 wt(this,void 0,void 0,ft().mark((function t(){var r,i,o=this;return ft().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(10),n.e(177)]).then(n.bind(null,2149));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 wt(this,void 0,void 0,ft().mark((function r(){var i,o,a=this;return ft().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(164).then(n.bind(null,2150));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 wt(this,void 0,void 0,ft().mark((function r(){var i,o,a=this;return ft().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(165).then(n.bind(null,2151));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(181).then(n.bind(null,2152)).then((function(t){var n=t.RemoveTeachersFromClassroomView,o={actionType:O.UserAction.Dissociate,entity:O.EntityType.Classroom,location:O.LocationContext.Popup,descriptor:O.AssocDescriptor.User,workflowPhase:O.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 _t}}]),i}(w),Tt="content",Et="popup",Ot="alert",Ct="hidden",kt=n(51),Pt={getVideoAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.PLAY_VIDEO,args:[e.id,kt.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[e.id,kt.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:P.a.CONTENT_UPDATES,action:A.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,kt.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:P.a.SUBJECT,action:A.a.Subjects.CLASSIFICATION,args:[e.id,kt.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 At(e){return(At="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 It(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 xt(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&&Rt(e,t)}function Rt(e,t){return(Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nt(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=Bt(e);if(t){var i=Bt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Dt(this,n)}}function Dt(e,t){if(t&&("object"===At(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 Bt(e){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){jt(n,e);var t=Nt(n);function n(){return It(this,n),t.apply(this,arguments)}return xt(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[ut,Oe,te]}}]),n}(r.a.AppRouter),Mt=function(e){jt(r,e);var t=Nt(r);function r(){return It(this,r),t.apply(this,arguments)}return xt(r,[{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.CONTENT_UPDATES}},{key:"contentUpdates",value:function(){var e=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(29),n.e(146)]).then(n.bind(null,2250)).then((function(t){var n=t.ContentUpdatesView;e.layout.showChildView(Tt,s.createElement(n,{appLinks:Pt}))}))}},{key:"classificationUpdate",value:function(e){var t=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(29),n.e(157)]).then(n.bind(null,2251)).then((function(n){var r=n.ClassificationUpdateView;t.layout.showChildView(Tt,s.createElement(r,{classificationId:e,appLinks:Pt}))}))}}],[{key:"router",get:function(){return Ut}}]),r}(w);function Vt(e){return(Vt="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 Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(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 zt(e,t,n){return t&&Ht(e.prototype,t),n&&Ht(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wt(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&&Gt(e,t)}function Gt(e,t){return(Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function qt(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 Yt(this,n)}}function Yt(e,t){if(t&&("object"===Vt(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){Wt(n,e);var t=qt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return zt(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[ut,Oe,te]}}]),n}(r.a.AppRouter),Qt=function(e){Wt(i,e);var t=qt(i);function i(){return Ft(this,i),t.apply(this,arguments)}return zt(i,[{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"index",value:function(e){this.discover(e)}},{key:"discover",value:function(e){var t=this;Promise.all([n.e(1),n.e(6),n.e(26)]).then(n.bind(null,2225)).then((function(e){var n=e.DashboardView;t.layout.showChildView(Tt,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(1),n.e(3),n.e(4),n.e(27)]).then(n.bind(null,2262)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(Tt,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return Xt}}]),i}(w),$t=n(284),Zt=n(290),Jt=n(65),en=n(32),tn=n(474);function nn(e){return(nn="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 rn(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */rn=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==nn(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function on(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function an(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 sn(e,t,n){return t&&an(e.prototype,t),n&&an(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cn(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&&un(e,t)}function un(e,t){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ln(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=pn(e);if(t){var i=pn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fn(this,n)}}function fn(e,t){if(t&&("object"===nn(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 pn(e){return(pn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=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())}))},hn=function(e){cn(n,e);var t=ln(n);function n(){return on(this,n),t.apply(this,arguments)}return sn(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","changePresentation"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[ut,Oe,te,at]}}]),n}(r.a.AppRouter),yn=function(e){cn(i,e);var t=ln(i);function i(){return on(this,i),t.apply(this,arguments)}return sn(i,[{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!ge.a.shouldHideNav(),alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.DEFAULT}},{key:"myVideos",value:function(){var e=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(73)]).then(n.bind(null,2238)).then((function(t){var n=t.MyVideosView;e.layout.showChildView(Tt,s.createElement(n,null))}))}},{key:"playVideo",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return dn(this,void 0,void 0,rn().mark((function i(){var o,a=this;return rn().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=("string"==typeof t?r:t)||{},Promise.all([n.e(1),n.e(3),n.e(4),n.e(6),n.e(40)]).then(n.bind(null,2263)).then((function(t){var n=t.PlayView;a.layout.showChildView(Tt,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(0),n.e(2),n.e(38),n.e(42)]).then(n.bind(null,2219)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(Tt,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,kt.a.slugify(t.name)],params:{context:Zt.a.Series,contextId:e}}};Promise.all([n.e(1),n.e(3),n.e(4),n.e(23)]).then(n.bind(null,2134)).then((function(t){var n=t.SeriesView;i.layout.showChildView(Tt,s.createElement(n,{id:e,classificationId:r.classificationId,getVideoAppLink:o}))}))}},{key:"favourites",value:function(){var e=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(83)]).then(n.bind(null,2264)).then((function(t){var n=t.FavouritesView;e.layout.showChildView(Tt,s.createElement(n,null))}))}},{key:"previewPdf",value:function(e){var t=this;Promise.all([n.e(16),n.e(74),n.e(95)]).then(n.bind(null,2265)).then((function(n){var r=n.PreviewPdfView;t.layout.showChildView(Et,s.createElement(r,{closePopup:function(){return t.layout.closePopup()},id:e}))}))}},{key:"createClip",value:function(e,t){var r=this;n.e(31).then(n.bind(null,2223)).then((function(n){var i=n.EditClipTimepointsView;r.layout.showChildView(Tt,s.createElement(i,{videoId:e,startTime:t.startTime}))}))}},{key:"editClip",value:function(e){var t=this;n.e(31).then(n.bind(null,2223)).then((function(n){var r=n.EditClipTimepointsView;t.layout.showChildView(Tt,s.createElement(r,{id:e}))}))}},{key:"createClipDetails",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(1),n.e(32)]).then(n.bind(null,2266)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(Et,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(0),n.e(2),n.e(1),n.e(32)]).then(n.bind(null,2266)).then((function(n){var i=n.EditClipDetailsView;r.layout.showChildView(Et,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(194).then(n.bind(null,2153)).then((function(n){var r=n.DeleteClipView;t.layout.showChildView(Et,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(1),n.e(3),n.e(4),n.e(6),n.e(45)]).then(n.bind(null,2154)).then((function(n){var o=n.PlayClipView,a=("string"==typeof t?i:t)||{};r.layout.showChildView(Tt,s.createElement(o,{id:e,queryParams:a}))}))}},{key:"viewCurriculumLinks",value:function(e){var t=this;n.e(116).then(n.bind(null,2155)).then((function(n){var r=n.ViewCurriculumLinksView;t.layout.showChildView(Et,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"downloadVideo",value:function(e){var t=this;n.e(196).then(n.bind(null,2252)).then((function(n){var r=n.DownloadVideoView;t.layout.showChildView(Ct,s.createElement(r,{id:e}))}))}},{key:"deleteVideo",value:function(e){var t=this;n.e(195).then(n.bind(null,2156)).then((function(n){var r=n.DeleteVideoView;t.layout.showChildView(Et,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"share",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(10),n.e(47)]).then(n.bind(null,2231)).then((function(n){var i=n.ShareView;r.layout.showChildView(Et,s.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()},emptyStateImageUrl:Jt.a.EmptyStates.TYPEAHEAD_RESULTS,errorStateImageUrl:Jt.a.TYPEAHEAD_ERROR}))}))}},{key:"sharedByMe",value:function(){var e=this;Promise.all([n.e(12),n.e(1),n.e(19),n.e(63)]).then(n.bind(null,2226)).then((function(t){var n=t.SharedByMeView;e.layout.showChildView(Tt,s.createElement(n,null))}))}},{key:"sharedWithMe",value:function(){var e=this;Promise.all([n.e(12),n.e(1),n.e(19),n.e(158)]).then(n.bind(null,2239)).then((function(t){var n=t.SharedWithMeView;e.layout.showChildView(Tt,s.createElement(n,null))}))}},{key:"pluginShare",value:function(e,t){return dn(this,void 0,void 0,rn().mark((function r(){var i,o,a=this;return rn().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([n.e(0),n.e(2),n.e(85)]).then(n.bind(null,2242));case 2:i=r.sent,o=i.PluginShareView,this.layout.showChildView(Et,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 dn(this,void 0,void 0,rn().mark((function t(){var r,i,o=this;return rn().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(197).then(n.bind(null,2157));case 2:r=t.sent,i=r.PluginNewWindowView,this.layout.showChildView(Et,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 dn(this,void 0,void 0,rn().mark((function e(){var t,r;return rn().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(117).then(n.bind(null,2158));case 2:t=e.sent,r=t.LiteUpgradeOnboardingView,this.layout.showChildView(Tt,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new $t.a)}},{key:"notFound",value:function(){var e=this,t=u.Radio.channel("error:view").request("current:error");n.e(182).then(n.bind(null,2159)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(Tt,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,608)).then((function(n){var r=n.ErrorView;e.layout.showChildView(Tt,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(174).then(n.bind(null,2160)).then((function(n){var i=n.DialogView;e.layout.showChildView(Et,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(173).then(n.bind(null,2161)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(Tt,s.createElement(r,{error:t}))}))}},{key:"uploadImage",value:function(e){var t=this,r=function(e,n,r){return tn.a.uploadBase64Image(e,n.split(",")[1],(function(e){r({url:e.location,fileId:e.id,fileIdType:en.a.ImageAPIv2})}),null,(function(){return t.layout.closePopup()}))};n.e(175).then(n.bind(null,2267)).then((function(n){var i=n.ImageUploadView;t.layout.showChildView(Et,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(0),n.e(2),n.e(106)]).then(n.bind(null,2268)).then((function(n){var i=n.EditResourceView;r.layout.showChildView(Et,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteResource",value:function(e,t){var r=this;n.e(155).then(n.bind(null,2162)).then((function(n){var i=n.DeleteResourceView;r.layout.showChildView(Et,s.createElement(i,{resourceId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteSubtitle",value:function(e,t){var r=this;n.e(141).then(n.bind(null,2163)).then((function(n){var i=n.DeleteSubtitleView;r.layout.showChildView(Et,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(0),n.e(2),n.e(101)]).then(n.bind(null,2164)).then((function(n){var i=n.EditLinkView;r.layout.showChildView(Et,s.createElement(i,{linkId:t,videoId:e,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"deleteLink",value:function(e,t){var r=this;n.e(154).then(n.bind(null,2165)).then((function(n){var i=n.DeleteLinkView;r.layout.showChildView(Et,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(172),n.e(145)]).then(n.bind(null,2232)).then((function(n){var r=n.LiteUpgradeFeedbackView;t.layout.showChildView(Et,s.createElement(r,{goToOnline:e.goToOnline,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"liteUpgradeVideo",value:function(){var e=this;n.e(144).then(n.bind(null,2166)).then((function(t){var n=t.LiteUpgradeVideoView;e.layout.showChildView(Et,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"changePresentation",value:function(){var e=this;n.e(22).then(n.bind(null,2269)).then((function(t){var n=t.SchoolLevelSelectorPopupView;e.layout.showChildView(Et,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return hn}}]),i}(w),mn=n(30),vn=n(28),gn=n(298),bn=n(86),wn=n(124),_n=n(424),Sn=n(218),Tn=n(292),En=n(288),On=n(156);function Cn(e){return(Cn="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 kn(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 Pn(e,t){return(Pn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function An(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=Ln(e);if(t){var i=Ln(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return In(this,n)}}function In(e,t){if(t&&("object"===Cn(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 Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xn=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&&Pn(e,t)}(o,e);var t,n,r,i=An(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 ce.a.getPhrase("share.shareLinkDeletedError","heading")}},{key:"description",get:function(){return ce.a.getPhrase("share.shareLinkDeletedError","description")}},{key:"imageUrl",get:function(){return Jt.a.EmptyStates.Share.DELETED}}])&&kn(t.prototype,n),r&&kn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(On.a);function jn(e){return(jn="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 Rn(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?Object.setPrototypeOf.bind():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"===jn(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.bind():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,"Share link has expired")}return t=o,(n=[{key:"name",get:function(){return"ShareLinkExpiredError"}},{key:"heading",get:function(){return ce.a.getPhrase("share.shareLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return Jt.a.EmptyStates.Share.EXPIRED}}])&&Rn(t.prototype,n),r&&Rn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(On.a),Vn=n(475),Fn=n(425),Hn=n(431),zn=n(133);function Wn(e){return(Wn="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 Gn(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 qn(e,t){return(qn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yn(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=Xn(e);if(t){var i=Xn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Kn(this,n)}}function Kn(e,t){if(t&&("object"===Wn(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 Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qn=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&&qn(e,t)}(o,e);var t,n,r,i=Yn(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 ce.a.getPhrase("embed.embedLinkDeletedError","heading")}},{key:"description",get:function(){return ce.a.getPhrase("embed.embedLinkDeletedError","description")}},{key:"imageUrl",get:function(){return Jt.a.EmptyStates.Share.DELETED}}])&&Gn(t.prototype,n),r&&Gn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(zn.a);function $n(e){return($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)}function Zn(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 Jn(e,t){return(Jn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function er(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=nr(e);if(t){var i=nr(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tr(this,n)}}function tr(e,t){if(t&&("object"===$n(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 nr(e){return(nr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rr,ir=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&&Jn(e,t)}(o,e);var t,n,r,i=er(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 ce.a.getPhrase("embed.embedLinkExpiredError","heading")}},{key:"imageUrl",get:function(){return Jt.a.EmptyStates.Share.EXPIRED}}])&&Zn(t.prototype,n),r&&Zn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(zn.a),or=n(303),ar=n(416);function sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr,ur=(sr(rr={},vn.a.Video,!0),sr(rr,vn.a.Interactive,!0),sr(rr,vn.a.Clip,!0),sr(rr,vn.a.Playlist,!0),sr(rr,vn.a.Series,!0),rr),lr={getErrors:function(e){return e===A.a.Share.VIEW_SHARE_LINK?{notFound:Vn.a,deleted:xn,private:Fn.a,unspecified:ae.a,expired:Mn}:{notFound:Hn.a,deleted:Qn,private:ar.a,unspecified:or.a,expired:ir}},throwError:function(e,t){ie.a._forcePushContext(t),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(e)},validateShareLink:function(e,t,n){return ur[e.objectTypeId]?e.type!==gn.a.ShareLink||e.status!==_n.a.Expired||(lr.throwError(new n.expired,t),!1):(lr.throwError(new n.unspecified,t),!1)},onShareLinkError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===wn.a.Forbidden?"share-link-deleted"===e.responseJSON.type?lr.throwError(new n.deleted,t):lr.throwError(new n.private,t):e.status===wn.a.NotFound?lr.throwError(new n.notFound,t):lr.throwError(new n.unspecified,t)},onFetchVideoError:function(e,t,n){if(r.a.AppLinkUtility.hasActiveRoute())return e.status===wn.a.Forbidden?lr.throwError(new n.private,t):e.status===wn.a.NotFound?lr.throwError(new n.notFound,t):lr.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],params:t.params}):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,i=t.params;if("string"==typeof i&&(i=Ae.LocationUtils.DeserializeQueryParams(i)),t.action!==A.a.Embed.VIEW_EMBEDDED_RESOURCE){var o=r.a.AppLinkHelper.getHref(t),a=t.params||{},s=a.videoId,c=a.clipId,u=a.interactiveId;e.objectTypeId===vn.a.Playlist&&(s||c||u)?r.a.AppLinkHelper.trigger({application:P.a.DEFAULT,action:A.a.Default.LOG_IN,params:Object.assign(Object.assign({},i),{redirectUrl:o,customerId:n})}):r.a.AppLinkHelper.trigger({application:P.a.LAUNCHPAD,action:A.a.Launchpad.SHARE_LINK_SIGN_IN,args:[e.id],params:Object.assign(Object.assign({},i),{redirectUrl:o,customerId:n})})}else r.a.AppLinkHelper.trigger({application:P.a.EMBED,action:A.a.Embed.EMBED_LOGIN,args:[e.id],params:Object.assign(Object.assign({},i),{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=vn.a.Video):(null==u?void 0:u.clipId)?(s=u.clipId,c=vn.a.Clip):(null==u?void 0:u.interactiveId)&&(s=u.interactiveId,c=vn.a.Interactive),c!==vn.a.Video?c!==vn.a.Clip?c!==vn.a.Interactive||i.a.hooklessFetch(t,En.a.sharedInteractiveMetadata(s,n,o,a)):i.a.hooklessFetch(t,Tn.a.sharedClip(s,n,o,a)):i.a.hooklessFetch(t,Sn.a.sharedVideo(s,n,o,a))}};function fr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pr=(fr(cr={},vn.a.Video,!0),fr(cr,vn.a.Interactive,!0),fr(cr,vn.a.Clip,!0),cr);function dr(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=lr.getErrors(e.appLink.action),s=mn.a.first(e.appLink.args);if(!s)return lr.throwError(new a.notFound,e.appLink);i.a.hooklessFetch(e.shell.store,bn.a.getShareObject(s,(function(n){if(lr.validateShareLink(n,e.appLink,a))return n.type===gn.a.DirectShare?t(e):void function(t){if(!t.isPasswordProtected)return void c(t);var n=Pe.b.get(s);if(n)return void i.a.hooklessFetch(e.shell.store,bn.a.checkPassword(s,n,(function(n){n.success?c(t):lr.goToPortal(s,e.appLink)}),(function(){return lr.goToPortal(s,e.appLink)})));lr.goToPortal(s,e.appLink)}(n)}),(function(t){lr.onShareLinkError(t,e.appLink,a)})))}else t(e);function c(n){var r,c,l=pr[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===vn.a.Playlist?void t(e):void i.a.hooklessFetch(e.shell.store,o.a.currentUser((function(e){return u(n,e,!1)}),(function(){return lr.throwError(new a.unspecified,e.appLink)})));lr.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 lr.throwError(new a.unspecified,e.appLink)})))}(n,r)}),(function(t){return lr.onFetchVideoError(t,e.appLink,a)}))}function u(n,r,i){r.isAuthenticated?i?lr.throwError(new a.private,e.appLink):t(e):lr.goToSignIn(n,e.appLink)}}function hr(e){return(hr="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 yr(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */yr=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==hr(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vr(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 gr(e,t,n){return t&&vr(e.prototype,t),n&&vr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function br(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?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function _r(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 Sr(this,n)}}function Sr(e,t){if(t&&("object"===hr(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Er=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())}))},Or=function(e){br(n,e);var t=_r(n);function n(){return mr(this,n),t.apply(this,arguments)}return gr(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[ut,Oe,dr]}}]),n}(r.a.AppRouter),Cr=function(e){br(r,e);var t=_r(r);function r(){return mr(this,r),t.apply(this,arguments)}return gr(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(183).then(n.bind(null,2270)).then((function(n){var i=n.BaseEmbedView;r.layout.showChildView(Tt,c.a.createElement(i,{shareId:e,queryParams:t}))}))}},{key:"embedLogin",value:function(e,t){return Er(this,void 0,void 0,yr().mark((function r(){var i,o;return yr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(127).then(n.bind(null,2167));case 2:i=r.sent,o=i.EmbedLoginView,this.layout.showChildView(Tt,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 Er(this,void 0,void 0,yr().mark((function e(){var t,r;return yr().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(147).then(n.bind(null,2271));case 2:t=e.sent,r=t.EmbedLoginSuccessView,this.layout.showChildView(Tt,c.a.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"embedError",value:function(){return Er(this,void 0,void 0,yr().mark((function e(){var t,r,i;return yr().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,819));case 3:r=e.sent,i=r.EmbedErrorView,this.layout.showChildView(Tt,c.a.createElement(i,{error:t}));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"pluginLogin",value:function(e){return Er(this,void 0,void 0,yr().mark((function t(){var r,i;return yr().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(148).then(n.bind(null,2168));case 2:r=t.sent,i=r.PluginLoginView,this.layout.showChildView(Tt,c.a.createElement(i,{returnUrl:e.returnUrl}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"viewEmbeddedLcsVideo",value:function(e,t){return Er(this,void 0,void 0,yr().mark((function r(){var i,o;return yr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(102).then(n.bind(null,2169));case 2:i=r.sent,o=i.EmbeddedLcsVideoView,this.layout.showChildView(Tt,c.a.createElement(o,{id:e,queryParams:t}));case 5:case"end":return r.stop()}}),r,this)})))}},{key:"lcsLogin",value:function(e,t){return Er(this,void 0,void 0,yr().mark((function r(){var i,o;return yr().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(110).then(n.bind(null,2170));case 2:i=r.sent,o=i.EmbeddedLcsLoginView,this.layout.showChildView(Tt,c.a.createElement(o,{videoId:e,customerId:t.customerId}));case 5:case"end":return r.stop()}}),r,this)})))}}],[{key:"router",get:function(){return Or}}]),r}(w),kr=n(301);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 Lr(e,t,n){return t&&Ir(e.prototype,t),n&&Ir(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function xr(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&&jr(e,t)}function jr(e,t){return(jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rr(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Br=function(e){xr(n,e);var t=Rr(n);function n(){return Ar(this,n),t.apply(this,arguments)}return Lr(n,[{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[ut,Oe,te]}}]),n}(r.a.AppRouter),Ur=function(e){xr(r,e);var t=Rr(r);function r(){return Ar(this,r),t.apply(this,arguments)}return Lr(r,[{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:T}}}},{key:"channelName",get:function(){return P.a.NOTIFICATIONS}},{key:"index",value:function(e){var t=this;n.e(151).then(n.bind(null,2272)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(_,s.createElement(kr.a,{view:r,options:{params:e}}))}))}}],[{key:"router",get:function(){return Br}}]),r}(w),Mr=n(476);function Vr(e){return(Vr="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 Fr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hr(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 zr(e,t,n){return t&&Hr(e.prototype,t),n&&Hr(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&&Gr(e,t)}function Gr(e,t){return(Gr=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 Yr(this,n)}}function Yr(e,t){if(t&&("object"===Vr(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xr=function(e){Wr(n,e);var t=qr(n);function n(){return Fr(this,n),t.apply(this,arguments)}return zr(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[ut,Oe,te]}}]),n}(r.a.AppRouter),Qr=function(e){Wr(r,e);var t=qr(r);function r(){return Fr(this,r),t.apply(this,arguments)}return zr(r,[{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.PLAYLISTS}},{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:O.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,kt.a.slugify(e.name)]}},i=e.sort&&Mr.a.getSortTypeFromName(e.sort);n.e(46).then(n.bind(null,2253)).then((function(e){var n=e.PlaylistsView;t.layout.showChildView(Tt,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,kt.a.slugify(e.name)]}};Promise.all([n.e(1),n.e(3),n.e(4),n.e(18)]).then(n.bind(null,2129)).then((function(t){var n=t.PlaylistView;i.layout.showChildView(Tt,s.createElement(n,{key:e,playlistId:e,getSeriesAppLink:a,classificationId:o}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(98)]).then(n.bind(null,2171)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(Et,s.createElement(n,Object.assign({application:P.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(97)]).then(n.bind(null,2172)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(Et,s.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(160).then(n.bind(null,2173)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(Et,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(0),n.e(2),n.e(50)]).then(n.bind(null,2254)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(Et,s.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(185).then(n.bind(null,2174)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(Et,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(184).then(n.bind(null,2175)).then((function(n){var r=n.CopyPlaylistView;t.layout.showChildView(Et,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Xr}}]),r}(w);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 Zr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jr(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 ei(e,t,n){return t&&Jr(e.prototype,t),n&&Jr(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ti(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&&ni(e,t)}function ni(e,t){return(ni=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ri(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 ii(this,n)}}function ii(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 oi(e){return(oi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ai=function(e){ti(n,e);var t=ri(n);function n(){return Zr(this,n),t.apply(this,arguments)}return ei(n,[{key:"channelName",get:function(){return P.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[ut,Oe,te]}}]),n}(r.a.AppRouter),si=function(e){ti(r,e);var t=ri(r);function r(){return Zr(this,r),t.apply(this,arguments)}return ei(r,[{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.SEARCH}},{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(6),n.e(39)]).then(n.bind(null,2221)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(Tt,s.createElement(r,{queryParams:e}),{preventScrollTop:!0})}))}}],[{key:"router",get:function(){return ai}}]),r}(w);function ci(e){return(ci="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 ui(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function li(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 fi(e,t,n){return t&&li(e.prototype,t),n&&li(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pi(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&&di(e,t)}function di(e,t){return(di=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function hi(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=mi(e);if(t){var i=mi(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yi(this,n)}}function yi(e,t){if(t&&("object"===ci(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 mi(e){return(mi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vi=function(e){pi(n,e);var t=hi(n);function n(){return ui(this,n),t.apply(this,arguments)}return fi(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[ut,Oe,te]}}]),n}(r.a.AppRouter),gi=function(e){pi(i,e);var t=hi(i);function i(){return ui(this,i),t.apply(this,arguments)}return fi(i,[{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return P.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!ge.a.shouldHideNav(),alertRegion:T}}}},{key:"classificationAll",value:function(){var e=this;Promise.all([n.e(14),n.e(28)]).then(n.bind(null,2176)).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(14),n.e(28)]).then(n.bind(null,2176)).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(1),n.e(6),n.e(14),n.e(43)]).then(n.bind(null,2233)).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(114).then(n.bind(null,2177)).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(87).then(n.bind(null,2178)).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(100)]).then(n.bind(null,2179)).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(99)]).then(n.bind(null,2180)).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(24),n.e(113)]).then(n.bind(null,2181)).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(81)]).then(n.bind(null,2182)).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(56)]).then(n.bind(null,2255)).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 vi}}]),i}(w);function bi(e){return(bi="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 wi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 Si(e,t,n){return t&&_i(e.prototype,t),n&&_i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ti(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&&Ei(e,t)}function Ei(e,t){return(Ei=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oi(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=ki(e);if(t){var i=ki(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ci(this,n)}}function Ci(e,t){if(t&&("object"===bi(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 ki(e){return(ki=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pi=function(e){Ti(n,e);var t=Oi(n);function n(){return wi(this,n),t.apply(this,arguments)}return Si(n,[{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload","uploadImage"]}},{key:"filters",get:function(){return[ut,Oe,te]}}]),n}(r.a.AppRouter),Ai=function(e){Ti(r,e);var t=Oi(r);function r(){return wi(this,r),t.apply(this,arguments)}return Si(r,[{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return P.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:T}}}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(108)]).then(n.bind(null,2273)).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(190).then(n.bind(null,2183)).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 Pi}}]),r}(w),Ii=n(187),Li=n(33),xi=n(285),ji=n(408);function Ri(e){return(Ri="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 Ni(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ni=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ri(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Di=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())}))};function Bi(e){if(e.application!==P.a.USER_MANAGER)return!1;var t=Object(xi.a)(Li.a.Unknown),n=Ii.a.getWizardAppLinks(t),r=ji.a.getWizardAppLinks(t),i=!!n.find((function(t){return t.action===e.action})),o=!!r.find((function(t){return t.action===e.action}));return i||o}function Ui(e,t){var n;return Di(this,void 0,void 0,Ni().mark((function a(){var s,c,u,l;return Ni().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(s=e.appLink,c=Object(xi.a)(Li.a.Unknown),s.action!==c.userUploadPopup.action){a.next=4;break}return a.abrupt("return",t(e));case 4:if(Bi(s)){a.next=7;break}return ge.a.enableNav(),a.abrupt("return",t(e));case 7:return a.next=9,i.a.hooklessFetchAsync(e.shell.store,o.a.currentUser());case 9:return u=a.sent,a.next=12,i.a.hooklessFetchAsync(e.shell.store,I.a.customerSettings(u.customerId));case 12:if(a.sent.has_bulk_user_actions){a.next=18;break}return l=Object(xi.a)(null===(n=s.params)||void 0===n?void 0:n.userType),r.a.AppLinkHelper.trigger(l.userManager,{replace:!0}),r.a.AppLinkUtility.routingEnded(),a.abrupt("return");case 18:ge.a.disableNav(),t(e);case 20:case"end":return a.stop()}}),a)})))}function Mi(e){return(Mi="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 Vi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fi(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 Hi(e,t,n){return t&&Fi(e.prototype,t),n&&Fi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zi(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&&Wi(e,t)}function Wi(e,t){return(Wi=Object.setPrototypeOf?Object.setPrototypeOf.bind():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 qi(this,n)}}function qi(e,t){if(t&&("object"===Mi(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){zi(n,e);var t=Gi(n);function n(){return Vi(this,n),t.apply(this,arguments)}return Hi(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/review-accounts":"userUploadReviewAccounts","user-manager/users/upload/fix-duplicates":"userUploadFixDuplicates","user-manager/users/upload/status/polling":"userUploadStatusPolling","user-manager/users/upload/status/complete":"userUploadStatusComplete","user-manager/bulk-action-history(/)":"auditLog","user-manager/wizard/review-accounts(/)":"wizardReviewAccounts","user-manager/wizard/select-action(/)":"wizardSelectAction","user-manager/wizard/action-details/delete(/)":"wizardDeleteActionDetails","user-manager/wizard/action-details/activation(/)":"wizardActivationActionDetails","user-manager/wizard/action-details/change-year-group(/)":"wizardChangeYearGroupActionDetails","user-manager/wizard/action-details/year-group-rollover(/)":"wizardYearGroupRolloverActionDetails","user-manager/wizard/action-details/add-to-classroom(/)":"wizardAddToClassroomActionDetails","user-manager/wizard/action-details/reset-password(/)":"wizardResetPasswordActionDetails","user-manager/wizard/confirmation/reactivation(/)":"wizardReactivationConfirmation","user-manager/wizard/confirmation/deactivation(/)":"wizardDeactivationConfirmation","user-manager/wizard/confirmation/delete(/)":"wizardDeleteConfirmation","user-manager/wizard/confirmation/year-group-rollover(/)":"wizardYearGroupRolloverConfirmation","user-manager/wizard/confirmation/change-year-group(/)":"wizardChangeYearGroupConfirmation","user-manager/wizard/confirmation/reset-email(/)":"wizardResetEmailConfirmation","user-manager/wizard/confirmation/add-to-classroom(/)":"wizardAddToClassroomConfirmation","user-manager/wizard/confirmation/reset-password(/)":"wizardResetPasswordConfirmation","user-manager/wizard/status/polling(/)":"wizardStatusPolling","user-manager/wizard/status/complete(/)":"wizardStatusComplete"}}},{key:"appLinks",get:function(){return["createUser","addNewUsers","editUser","bulkRemoveUsers","toggleUserStatus","userUploadPopup","changeStudentPassword","exportUserList","changePresentation","bulkActionSummary"]}},{key:"filters",get:function(){return[ut,Oe,te,at,Ui]}}]),n}(r.a.AppRouter),Xi=function(e){zi(r,e);var t=Gi(r);function r(){return Vi(this,r),t.apply(this,arguments)}return Hi(r,[{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return P.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!ge.a.shouldHideNav(),alertRegion:T}}}},{key:"initialize",value:function(){ge.a.lockContentWidth()}},{key:"onDestroy",value:function(){ge.a.unlockContentWidth()}},{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(8),n.e(13),n.e(21),n.e(171)]).then(n.bind(null,2274)).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(8),n.e(13),n.e(21),n.e(191)]).then(n.bind(null,2275)).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(0),n.e(8),n.e(11),n.e(123)]).then(n.bind(null,2184)).then((function(n){var r=n.CreateUserView,i={actionType:O.UserAction.Create,entity:O.EntityType.User,workflowPhase:O.WorkflowPhase.Complete,descriptor:O.OperationDescriptor.Single,location:O.LocationContext.Popup};t.layout.showChildView(S,s.createElement(r,{userType:e.userType,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addNewUsers",value:function(e){var t=this;n.e(140).then(n.bind(null,2276)).then((function(n){var r=n.AddNewUsersView;t.layout.showChildView(S,s.createElement(r,{userType:e.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUser",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(8),n.e(11),n.e(124)]).then(n.bind(null,2185)).then((function(n){var i=n.EditUserView,o={actionType:O.UserAction.Edit,entity:O.EntityType.User,workflowPhase:O.WorkflowPhase.Complete,location:O.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;n.e(152).then(n.bind(null,2277)).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]:{};n.e(153).then(n.bind(null,2278)).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(0),n.e(2),n.e(84)]).then(n.bind(null,2186)).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;n.e(170).then(n.bind(null,2279)).then((function(t){var n=t.ExportUserListView;e.layout.showChildView(E,s.createElement(n,{userType:r,onDone:function(){return e.layout.unsetRegion(E)}}))}))}},{key:"userUploadPopup",value:function(e){var t=this,r=e.userType;Promise.all([n.e(0),n.e(2),n.e(70)]).then(n.bind(null,2222)).then((function(e){var n=e.BulkUserUploadPopupView;t.layout.showChildView(S,s.createElement(n,{userType:r,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"userUploadReviewAccounts",value:function(e){var t=this;Promise.all([n.e(0),n.e(8),n.e(11),n.e(30),n.e(109)]).then(n.bind(null,2227)).then((function(n){var r=n.BulkUserUploadReviewAccountsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"userUploadFixDuplicates",value:function(e){var t=this;Promise.all([n.e(0),n.e(8),n.e(11),n.e(30),n.e(159)]).then(n.bind(null,2240)).then((function(n){var r=n.BulkUserUploadFixDuplicatesView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"userUploadStatusPolling",value:function(e){var t=this;n.e(82).then(n.bind(null,2187)).then((function(n){var r=n.BulkUserUploadStatusPollingView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType,jobId:e.jobId}))}))}},{key:"userUploadStatusComplete",value:function(e){var t=this;n.e(48).then(n.bind(null,2188)).then((function(n){var r=n.BulkUserUploadStatusCompleteView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType,jobId:e.jobId}))}))}},{key:"auditLog",value:function(e){var t=this;Promise.all([n.e(12),n.e(13),n.e(94)]).then(n.bind(null,2228)).then((function(n){var r=n.UserAuditLogView;t.layout.showChildView(_,s.createElement(r,{queryParams:e}))}))}},{key:"bulkActionSummary",value:function(e){var t=this;n.e(149).then(n.bind(null,2280)).then((function(n){var r=n.BulkActionSummaryView;t.layout.showChildView(S,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"wizardReviewAccounts",value:function(e){var t=this;Promise.all([n.e(5),n.e(65)]).then(n.bind(null,2256)).then((function(n){var r=n.BulkUserActionsReviewAccountsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardSelectAction",value:function(e){var t=this;Promise.all([n.e(5),n.e(150)]).then(n.bind(null,2243)).then((function(n){var r=n.BulkUserActionsSelectActionView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeleteActionDetails",value:function(e){var t=this;Promise.all([n.e(5),n.e(192)]).then(n.bind(null,2281)).then((function(n){var r=n.BulkUserActionsDeleteActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardActivationActionDetails",value:function(e){var t=this;Promise.all([n.e(5),n.e(137)]).then(n.bind(null,2282)).then((function(n){var r=n.BulkUserActionsActivationActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardChangeYearGroupActionDetails",value:function(e){var t=this;Promise.all([n.e(5),n.e(131)]).then(n.bind(null,2283)).then((function(n){var r=n.BulkUserActionsChangeYearGroupActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardYearGroupRolloverActionDetails",value:function(e){var t=this;Promise.all([n.e(5),n.e(122)]).then(n.bind(null,2284)).then((function(n){var r=n.BulkUserActionsYearGroupRolloverActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardAddToClassroomActionDetails",value:function(e){var t=this;Promise.all([n.e(5),n.e(10),n.e(156)]).then(n.bind(null,2285)).then((function(n){var r=n.BulkUserActionsAddToClassroomActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardResetPasswordActionDetails",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(5),n.e(89)]).then(n.bind(null,2286)).then((function(n){var r=n.BulkUserActionsResetPasswordActionDetailsView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardReactivationConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(58)]).then(n.bind(null,2287)).then((function(n){var r=n.BulkUserActionsReactivationConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardResetPasswordConfirmation",value:function(e){var t=this;Promise.all([n.e(0),n.e(5),n.e(53)]).then(n.bind(null,2288)).then((function(n){var r=n.BulkUserActionsResetPasswordConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeactivationConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(57)]).then(n.bind(null,2289)).then((function(n){var r=n.BulkUserActionsDeactivationConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardDeleteConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(61)]).then(n.bind(null,2290)).then((function(n){var r=n.BulkUserActionsDeleteConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardYearGroupRolloverConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(54)]).then(n.bind(null,2291)).then((function(n){var r=n.BulkUserActionsYearGroupRolloverConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardChangeYearGroupConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(51)]).then(n.bind(null,2292)).then((function(n){var r=n.BulkUserActionsChangeYearGroupConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardResetEmailConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(62)]).then(n.bind(null,2293)).then((function(n){var r=n.BulkUserActionsResetEmailConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardAddToClassroomConfirmation",value:function(e){var t=this;Promise.all([n.e(5),n.e(49)]).then(n.bind(null,2294)).then((function(n){var r=n.BulkUserActionsAddToClassroomConfirmationView;t.layout.showChildView(_,s.createElement(r,{userType:e.userType}))}))}},{key:"wizardStatusPolling",value:function(e){var t=this;Promise.all([n.e(5),n.e(132)]).then(n.bind(null,2189)).then((function(n){var r=n.BulkUserActionsStatusPollingView;t.layout.showChildView(_,s.createElement(r,Object.assign({},e)))}))}},{key:"wizardStatusComplete",value:function(e){var t=this;Promise.all([n.e(5),n.e(68)]).then(n.bind(null,2190)).then((function(n){var r=n.BulkUserActionsStatusCompleteView;t.layout.showChildView(_,s.createElement(r,Object.assign({},e)))}))}},{key:"changePresentation",value:function(){var e=this;n.e(22).then(n.bind(null,2269)).then((function(t){var n=t.SchoolLevelSelectorPopupView;e.layout.showChildView(S,s.createElement(n,{closePopup:function(){return e.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Ki}}]),r}(w);function Qi(e){return(Qi="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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zi(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 Ji(e,t,n){return t&&Zi(e.prototype,t),n&&Zi(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eo(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&&to(e,t)}function to(e,t){return(to=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function no(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=io(e);if(t){var i=io(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ro(this,n)}}function ro(e,t){if(t&&("object"===Qi(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 io(e){return(io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oo=function(e){eo(n,e);var t=no(n);function n(){return $i(this,n),t.apply(this,arguments)}return Ji(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[ut,Oe,te,at]}}]),n}(r.a.AppRouter),ao=function(e){eo(i,e);var t=no(i);function i(){return $i(this,i),t.apply(this,arguments)}return Ji(i,[{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.SETTINGS}},{key:"index",value:function(){var e=this;n.e(130).then(n.bind(null,2257)).then((function(t){var n=t.SettingsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"profileDetails",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(71)]).then(n.bind(null,2241)).then((function(t){var n=t.ProfileDetailsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"account",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(69)]).then(n.bind(null,2229)).then((function(t){var n=t.AccountSettingsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"integrations",value:function(){var e=this;n.e(78).then(n.bind(null,2258)).then((function(t){var n=t.IntegrationSettingsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"videoPlayback",value:function(){var e=this;Promise.all([n.e(0),n.e(77)]).then(n.bind(null,2234)).then((function(t){var n=t.VideoPlaybackSettingsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"contentPermissions",value:function(){var e=this;Promise.all([n.e(12),n.e(76)]).then(n.bind(null,2259)).then((function(t){var n=t.ContentPermissionsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"ltiPlatforms",value:function(){var e=this;n.e(91).then(n.bind(null,2235)).then((function(t){var n=t.LtiPlatformsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"editLtiPlatform",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(20),n.e(136)]).then(n.bind(null,2244)).then((function(n){var r=n.EditLtiPlatformView;t.layout.showChildView(Tt,c.a.createElement(r,{platformId:e}))}))}},{key:"editLtiConsumer",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(20),n.e(135)]).then(n.bind(null,2245)).then((function(n){var r=n.EditLtiConsumerView;t.layout.showChildView(Tt,c.a.createElement(r,{consumerKey:e}))}))}},{key:"createLtiPlatform",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(105)]).then(n.bind(null,2295)).then((function(t){var n=t.CreateLtiPlatformView;e.layout.showChildView(Et,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 Ce.a("AppLink for deleting LTI platforms cannot accept both a consumerKey and platformId")):n.e(169).then(n.bind(null,2191)).then((function(t){var n=t.DeleteLtiPlatformView;e.layout.showChildView(Et,c.a.createElement(n,{closePopup:function(){return e.layout.closePopup()},consumerKey:i,platformId:o}))})):r.a.ErrorHelper.throw(new Ce.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(64)]).then(n.bind(null,2192)).then((function(t){var n=t.TopicPreferencesView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"audiencePreferences",value:function(){var e=this;Promise.all([n.e(24),n.e(107)]).then(n.bind(null,2193)).then((function(t){var n=t.AudiencePreferencesView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"curriculum",value:function(){var e=this;Promise.all([n.e(7),n.e(86)]).then(n.bind(null,2194)).then((function(t){var n=t.CurriculumSelectorView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"schoolLevel",value:function(){var e=this;Promise.all([n.e(7),n.e(88)]).then(n.bind(null,2195)).then((function(t){var n=t.SchoolLevelSelectorView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"security",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(115)]).then(n.bind(null,2246)).then((function(t){var n=t.SecuritySettingsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}},{key:"archivedClassrooms",value:function(){var e=this;Promise.all([n.e(25),n.e(125)]).then(n.bind(null,2260)).then((function(t){var n=t.ArchivedClassroomsView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return oo}}]),i}(w);function so(e){return(so="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 co(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uo(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 lo(e,t,n){return t&&uo(e.prototype,t),n&&uo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fo(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&&po(e,t)}function po(e,t){return(po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ho(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=mo(e);if(t){var i=mo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return yo(this,n)}}function yo(e,t){if(t&&("object"===so(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 mo(e){return(mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vo=function(e){fo(n,e);var t=ho(n);function n(){return co(this,n),t.apply(this,arguments)}return lo(n,[{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[ut,Oe,te]}}]),n}(r.a.AppRouter),go=function(e){fo(r,e);var t=ho(r);function r(){return co(this,r),t.apply(this,arguments)}return lo(r,[{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.WATCH_HISTORY}},{key:"index",value:function(){var e=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(72)]).then(n.bind(null,2247)).then((function(t){var n=t.WatchHistoryView;e.layout.showChildView(Tt,c.a.createElement(n,null))}))}}],[{key:"router",get:function(){return vo}}]),r}(w);function bo(e){return(bo="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 wo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 So(e,t,n){return t&&_o(e.prototype,t),n&&_o(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?Object.setPrototypeOf.bind():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=ko(e);if(t){var i=ko(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Co(this,n)}}function Co(e,t){if(t&&("object"===bo(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 ko(e){return(ko=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Po=function(e){To(n,e);var t=Oo(n);function n(){return wo(this,n),t.apply(this,arguments)}return So(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[ut,Oe,dr]}}]),n}(r.a.AppRouter),Ao=function(e){To(r,e);var t=Oo(r);function r(){return wo(this,r),t.apply(this,arguments)}return So(r,[{key:"name",get:function(){return"Share Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!j.a.shouldHideNav(),alertRegion:Ot}}}},{key:"channelName",get:function(){return P.a.SHARE}},{key:"viewShareLink",value:function(e,t){var r=this;n.e(186).then(n.bind(null,2296)).then((function(n){var i=n.BaseShareLinkView;r.layout.showChildView(Tt,s.createElement(i,{key:"".concat(e,":").concat(Ae.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(187).then(n.bind(null,2196)).then((function(n){var r=n.ShareLinkErrorView;e.layout.showChildView(Tt,s.createElement(r,{error:t}))}))}}],[{key:"router",get:function(){return Po}}]),r}(w);function Io(e){return(Io="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 Lo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xo(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 jo(e,t,n){return t&&xo(e.prototype,t),n&&xo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ro(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?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Do(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=Uo(e);if(t){var i=Uo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Bo(this,n)}}function Bo(e,t){if(t&&("object"===Io(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 Uo(e){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mo=function(e){Ro(n,e);var t=Do(n);function n(){return Lo(this,n),t.apply(this,arguments)}return jo(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[ut,Oe,te,at]}}]),n}(r.a.AppRouter),Vo=function(e){Ro(r,e);var t=Do(r);function r(){return Lo(this,r),t.apply(this,arguments)}return jo(r,[{key:"name",get:function(){return"Interactives Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{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(9),n.e(1),n.e(3),n.e(4),n.e(36)]).then(n.bind(null,2197)).then((function(t){var n=t.InteractiveView;r.layout.showChildView(Tt,s.createElement(n,{id:e,queryParams:o}))}))}},{key:"newInteractive",value:function(e){var t=this;n.e(126).then(n.bind(null,2198)).then((function(n){var r=n.NewInteractiveView;t.layout.showChildView(Et,s.createElement(r,{videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newClipInteractive",value:function(e){var t=this;n.e(133).then(n.bind(null,2297)).then((function(n){var r=n.NewClipInteractiveView;t.layout.showChildView(Et,s.createElement(r,{clipId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editInteractive",value:function(e){var t=this;Promise.all([n.e(9),n.e(17),n.e(75)]).then(n.bind(null,2248)).then((function(n){var r=n.EditInteractiveView;t.layout.showChildView(Tt,s.createElement(r,{id:e}))}))}},{key:"editInteractiveDetails",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(1),n.e(92)]).then(n.bind(null,2298)).then((function(n){var i=n.EditInteractiveDetailsView;r.layout.showChildView(Et,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(16),n.e(66)]).then(n.bind(null,2199)).then((function(n){var r=n.PreviewQuestionsView;t.layout.showChildView(Et,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"printQuestions",value:function(e){var t=this;Promise.all([n.e(16),n.e(134)]).then(n.bind(null,2200)).then((function(n){var r=n.PrintInteractiveView;t.layout.showChildView(Et,s.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"copyInteractive",value:function(e,t){var r=this;n.e(142).then(n.bind(null,2201)).then((function(n){var i=n.CopyInteractiveView;r.layout.showChildView(Et,s.createElement(i,{interactiveMetadataId:e,closePopup:function(){return r.layout.closePopup()},fromEdit:t.fromEdit}))}))}},{key:"shareInteractive",value:function(e){var t=this;n.e(167).then(n.bind(null,2202)).then((function(n){var r=n.ShareInteractiveView;t.layout.showChildView(Et,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"unpublishInteractive",value:function(e){var t=this;n.e(168).then(n.bind(null,2203)).then((function(n){var r=n.UnpublishInteractiveView;t.layout.showChildView(Et,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteInteractive",value:function(e){var t=this;n.e(166).then(n.bind(null,2204)).then((function(n){var r=n.DeleteInteractiveView;t.layout.showChildView(Et,s.createElement(r,{interactiveMetadataId:e,closePopup:function(){return t.layout.closePopup()}}))}))}}],[{key:"router",get:function(){return Mo}}]),r}(w);function Fo(e){return(Fo="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 Ho(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ho=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Fo(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function zo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wo(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 Go(e,t,n){return t&&Wo(e.prototype,t),n&&Wo(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function qo(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&&Yo(e,t)}function Yo(e,t){return(Yo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ko(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=Qo(e);if(t){var i=Qo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Xo(this,n)}}function Xo(e,t){if(t&&("object"===Fo(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 Qo(e){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $o=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())}))},Zo=function(e){qo(n,e);var t=Ko(n);function n(){return zo(this,n),t.apply(this,arguments)}return Go(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[ut]}}]),n}(r.a.AppRouter),Jo=function(e){qo(i,e);var t=Ko(i);function i(){return zo(this,i),t.apply(this,arguments)}return Go(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 $o(this,void 0,void 0,Ho().mark((function i(){var o,a;return Ho().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,n.e(121).then(n.bind(null,2205));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 Ce.a("PasswordProtectedShareLinkView must be passed an appLink as a param")),i.abrupt("return");case 7:this.layout.showChildView(Tt,s.createElement(a,{shareId:e,appLink:t.appLink}));case 8:case"end":return i.stop()}}),i,this)})))}},{key:"shareLinkSignIn",value:function(e,t){return $o(this,void 0,void 0,Ho().mark((function r(){var i,o;return Ho().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,n.e(120).then(n.bind(null,2206));case 2:i=r.sent,o=i.ShareLinkSignIn,this.layout.showChildView(Tt,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 $o(this,void 0,void 0,Ho().mark((function e(){var t,r;return Ho().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.e(112).then(n.bind(null,2299));case 2:t=e.sent,r=t.JoinClassroomPromptView,this.layout.showChildView(Tt,s.createElement(r,null));case 5:case"end":return e.stop()}}),e,this)})))}},{key:"joinClassroom",value:function(e){return $o(this,void 0,void 0,Ho().mark((function t(){var r,i;return Ho().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(128).then(n.bind(null,2300));case 2:r=t.sent,i=r.JoinClassroomView,this.layout.showChildView(Tt,s.createElement(i,{joinCode:e}));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"loginLanding",value:function(e){return $o(this,void 0,void 0,Ho().mark((function t(){var r,i;return Ho().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.e(129).then(n.bind(null,2207));case 2:r=t.sent,i=r.LoginLandingView,this.layout.showChildView(Tt,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 Zo}}]),i}(w),ea=n(432);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?Object.setPrototypeOf.bind():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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var la=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.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[ut,Oe,te]}}]),n}(r.a.AppRouter),fa=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"Libraries Application"}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:T}}}},{key:"channelName",get:function(){return P.a.LIBRARIES}},{key:"library",value:function(e){var t=this;Promise.all([n.e(1),n.e(6),n.e(59)]).then(n.bind(null,2208)).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(1),n.e(3),n.e(4),n.e(60)]).then(n.bind(null,2209)).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&&ea.a.getValidSortTypeFromParam(a);Promise.all([n.e(1),n.e(3),n.e(4),n.e(52)]).then(n.bind(null,2261)).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 la}}]),r}(w);function pa(e){return(pa="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 da(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ha(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 ya(e,t,n){return t&&ha(e.prototype,t),n&&ha(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ma(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&&va(e,t)}function va(e,t){return(va=Object.setPrototypeOf?Object.setPrototypeOf.bind():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=wa(e);if(t){var i=wa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ba(this,n)}}function ba(e,t){if(t&&("object"===pa(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 wa(e){return(wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _a=function(e){ma(n,e);var t=ga(n);function n(){return da(this,n),t.apply(this,arguments)}return ya(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[ut,Oe,te]}}]),n}(r.a.AppRouter),Sa=function(e){ma(r,e);var t=ga(r);function r(){return da(this,r),t.apply(this,arguments)}return ya(r,[{key:"name",get:function(){return"Student Discover Application"}},{key:"channelName",get:function(){return P.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"index",value:function(){var e=this;Promise.all([n.e(1),n.e(6),n.e(26)]).then(n.bind(null,2225)).then((function(t){var n=t.DashboardView;e.layout.showChildView(Tt,s.createElement(n,null))}))}},{key:"dashboard",value:function(e){var t=this;Promise.all([n.e(1),n.e(3),n.e(4),n.e(27)]).then(n.bind(null,2262)).then((function(n){var r=n.DashboardWidgetView;t.layout.showChildView(Tt,s.createElement(r,{widgetId:e}))}))}}],[{key:"router",get:function(){return _a}}]),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 Ea(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ea=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Ta(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}function Oa(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ca(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 ka(e,t,n){return t&&Ca(e.prototype,t),n&&Ca(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Pa(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?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ia(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 La(this,n)}}function La(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 xa(e){return(xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ja=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())}))},Ra=function(e){Pa(n,e);var t=Ia(n);function n(){return Oa(this,n),t.apply(this,arguments)}return ka(n,[{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"appRoutes",get:function(){return{"(/)":"index"}}},{key:"filters",get:function(){return[ut,Oe,te]}}]),n}(r.a.AppRouter),Na=function(e){Pa(r,e);var t=Ia(r);function r(){return Oa(this,r),t.apply(this,arguments)}return ka(r,[{key:"name",get:function(){return"Student Feed Application"}},{key:"channelName",get:function(){return P.a.STUDENT_FEED}},{key:"layoutOptions",get:function(){return{name:C,options:{showNav:!0,alertRegion:Ot}}}},{key:"index",value:function(e){return ja(this,void 0,void 0,Ea().mark((function t(){var r,i;return Ea().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all([n.e(1),n.e(3),n.e(6),n.e(55)]).then(n.bind(null,2220));case 2:r=t.sent,i=r.StudentFeedView,this.layout.showChildView(Tt,s.createElement(i,{date:e.date,key:e.date}));case 5:case"end":return t.stop()}}),t,this)})))}}],[{key:"router",get:function(){return Ra}}]),r}(w);var Da,Ba=n(5);!function(e){e.Fifo="FifoMemoryCache"}(Da||(Da={}));var Ua=n(111),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 Fa(e){return function(e){if(Array.isArray(e))return Ha(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 Ha(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 Ha(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 Ha(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 za(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 Wa(e,t){return(Wa=Object.setPrototypeOf?Object.setPrototypeOf.bind():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=Ya(e);if(t){var i=Ya(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qa(this,n)}}function qa(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 Ya(e){return(Ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ka=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&&Wa(e,t)}(o,e);var t,n,r,i=Ga(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=Ba.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 Ce.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=Ba.object(this.cachedkeys,this.cachedkeys),i=[];Ba.each(e,(function(e){var t;r[e]&&i.push(e);var n=new RegExp(e,"i"),o=Ba.filter(r,(function(e){return n.test(e)}));(t=i).push.apply(t,Fa(o))})),i.length&&(i=Ba.uniq(i),Ba.each(i,(function(e){delete n.cache[e],Ba.isFunction(t)&&t(e)})),this.cachedkeys=Ba.without.apply(Ba,[this.cachedkeys].concat(Fa(i))))}}])&&za(t.prototype,n),r&&za(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ua.a);var Xa,Qa=n(75),$a=n(235),Za=n(15),Ja=n(184);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(Xa||(Xa={}));var es=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 ts(e){return(ts="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 ns(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 rs(e,t){return(rs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function is(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=as(e);if(t){var i=as(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return os(this,n)}}function os(e,t){if(t&&("object"===ts(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 as(e){return(as=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ss=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&&rs(e,t)}(o,e);var t,n,r,i=is(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 Xa.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=Za.a.GET);var i=Ba.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===Za.a.POST||n===Za.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 Ba.keys(this.successMiddleware).length&&a.done(Ba.values(this.successMiddleware)),Ba.keys(this.errorMiddleware).length&&a.fail(Ba.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,Za.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,Za.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,Za.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,Za.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=$a.a;switch(n.code=e.status,n.message=es(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,t),e.status){case 400:n.type=Ja.a.BadRequest;break;case 401:n.type=Ja.a.Unauthorized;break;case 403:n.type=Ja.a.Forbidden;break;case 404:n.type=Ja.a.NotFound;break;case 500:n.type=Ja.a.InternalServer}return n}}])&&ns(t.prototype,n),r&&ns(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa.Object);var cs=n(82),us=n(101);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){return function(e){if(Array.isArray(e))return ps(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 ps(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 ps(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 ps(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 ds(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 hs(e,t){return(hs=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ys(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=gs(e);if(t){var i=gs(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ms(this,n)}}function ms(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 vs(e)}function vs(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gs(e){return(gs=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var bs=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&&hs(e,t)}(o,e);var t,n,r,i=ys(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),Ba.result(vs(t),"name")||Ma.c.throw(new Ce.a("Must provide a name when extending BaseDataService")),Ba.result(vs(t),"channelName")||Ma.c.throw(new Ce.a("Must provide a channelName for ".concat(Ba.result(vs(t),"name"))));var n=[].concat(fs(t.defaultProps),fs(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){Ba.isFunction(r)&&t.stopListening(t.getChannel(),s,r),Ba.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),s,(function(){Ba.isFunction(n)&&t.stopListening(t.getChannel(),a,n),Ba.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){Ba.isFunction(r)&&t.stopListening(t.getChannel(),y,r),Ba.isFunction(n)&&n(e)})),this.listenToOnce(m,y,(function(){Ba.isFunction(n)&&t.stopListening(t.getChannel(),p,n),Ba.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&&Ba.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();Ba.isFunction(i)&&this.listenToOnce(v,p,i),Ba.isFunction(o)&&this.listenToOnce(v,h,o),this.stopListening(b,y),this.stopListening(b,m),Ba.isFunction(a)&&this.listenToOnce(b,y,a),Ba.isFunction(s)&&this.listenToOnce(b,m,s),!Ba.isFunction(s)&&!1!==s&&Ba.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:Ba.isUndefined(t.offset)||Ba.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return Ba.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){Ba.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()),Ba.isNumber(o)&&(a.previous=o.toString()),!Ba.isEmpty(a))return a}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,r=Ba.isNumber(t)&&t>0&&t<n&&t+1,i=Ba.isNumber(t)&&t>1&&t-1,o={};if(r&&r<=n&&(o.next=r.toString()),i&&(o.previous=i.toString()),!Ba.isEmpty(o))return o}}])&&ds(t.prototype,n),r&&ds(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ua.a),ws=n(42),_s=n(120),Ss=n(76),Ts=n(56),Es=n(241);function Os(e){return(Os="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 Cs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ks(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){return(Ps=Object.setPrototypeOf?Object.setPrototypeOf.bind():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=Ls(e);if(t){var i=Ls(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Is(this,n)}}function Is(e,t){if(t&&("object"===Os(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 Ls(e){return(Ls=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xs=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&&Ps(e,t)}(o,e);var t,n,r,i=As(o);function o(){return Cs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return ws.a.Language}},{key:"channelName",get:function(){return Ts.b.LANGUAGE}},{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:Ss.a.LOCALE,expiryTime:_s.a.STANDARD,bootstrapName:Es.a.LOCALE,callback:function(n){t.locale=n,t.phrases&&Ba.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:Ss.a.PHRASES,expiryTime:_s.a.STANDARD,bootstrapName:Es.a.PHRASES,callback:function(n){t.phrases=n,t.locale&&Ba.isFunction(e)&&e(t)}})}}])&&ks(t.prototype,n),r&&ks(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(bs);function js(e){return(js="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){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 Ns(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ds(e,t){return(Ds=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Bs(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 Us(this,n)}}function Us(e,t){if(t&&("object"===js(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.bind():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=Bs(o);function o(){return Ns(this,o),i.apply(this,arguments)}return t=o,n&&Rs(t.prototype,n),r&&Rs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(r.a.Model);function Fs(e){return(Fs="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 Hs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zs(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 Ws(e,t){return(Ws=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gs(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=Ys(e);if(t){var i=Ys(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qs(this,n)}}function qs(e,t){if(t&&("object"===Fs(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 Ys(e){return(Ys=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ks=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&&Ws(e,t)}(o,e);var t,n,r,i=Gs(o);function o(){return Hs(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return ws.a.NotificationSocket}},{key:"channelName",get:function(){return Ts.b.NOTIFICATIONS_SOCKET}},{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new Vs(e)},resource:"notify",eventPrefix:"".concat(Ss.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(Ss.a.NOTIFICATIONS,":count")})}}])&&zs(t.prototype,n),r&&zs(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(bs),Xs=n(70),Qs=n(23),$s=n(185);function Zs(e){return(Zs="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 Js(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function tc(e,t){return(tc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function nc(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=ic(e);if(t){var i=ic(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return rc(this,n)}}function rc(e,t){if(t&&("object"===Zs(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 ic(e){return(ic=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oc=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&&tc(e,t)}(o,e);var t,n,r,i=nc(o);function o(){return Js(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}}])&&ec(t.prototype,n),r&&ec(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Collection);function ac(e){return(ac="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 sc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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)}}function uc(e,t){return(uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function lc(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=pc(e);if(t){var i=pc(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return fc(this,n)}}function fc(e,t){if(t&&("object"===ac(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 pc(e){return(pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dc=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=Qs.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},hc=function(e){return"/api/notifications/v1/notifications/".concat(e)},yc="/api/notifications/v1/notifications",mc="/api/domain/v1/notifications",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&&uc(e,t)}(o,e);var t,n,r,i=lc(o);function o(){return sc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return ws.a.Notification}},{key:"channelName",get:function(){return Ts.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}},{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:dc(e,t),expiryTime:_s.a.STANDARD,eventPrefix:n,formatData:function(e){return new oc(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:$s.a.Read},resource:hc(e),eventPrefix:"".concat(Ss.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Xs().utc().toISOString();return this.update({callback:e,data:{notificationStatus:$s.a.Seen},resource:"".concat(yc,"?to=").concat(t,"&notificationStatus=").concat($s.a.Received),eventPrefix:"".concat(Ss.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(mc),eventPrefix:"".concat(Ss.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(ce.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}])&&cc(t.prototype,n),r&&cc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(bs),gc=n(270),bc=n(21),wc=n(64),_c=n(57),Sc=n(159),Tc=n.n(Sc);function Ec(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(Tc.a.icon)},s.createElement(wc.a,{svgName:n,className:"svg-container ".concat(r)})),s.createElement("div",{className:"pl-2 d-inline-block ".concat(Tc.a.alertContent)},s.createElement("p",{className:"p-0 m-0 pb-1 ".concat(Tc.a.heading)},a),s.createElement("p",{className:"p-0 text-break clamp-4 ".concat(Tc.a.message),dangerouslySetInnerHTML:{__html:o}}),!!c&&s.createElement(_c.a,{className:f,appLink:c},u)),s.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function Oc(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 Cc(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 Cc(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 Cc(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 kc=function(e){switch(e.type){case cs.a.Success:return bc.b.CheckCircleOutline;case cs.a.Fail:case cs.a.Warning:return bc.b.Warning;case cs.a.Info:default:return bc.b.Info}};function Pc(e){var t=e.alert,n=e.closeAlert,r=Oc(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(Tc.a.alertItem),onMouseEnter:function(){return o(!1)},onMouseLeave:function(){return o(!0)}},s.createElement(Ec,{alert:t,svgName:kc(t),svgClassName:c,closeAlert:n}))}function Ac(e){var t=e.alerts,n=e.removeAlert;return s.createElement("div",{className:Tc.a.alertBox},s.createElement(gc.TransitionGroup,{component:"ul",className:"".concat(Tc.a.alertList," list-unstyled")},t&&t.map((function(e,t){return s.createElement(gc.CSSTransition,{key:t,timeout:200,classNames:"alert"},s.createElement(Pc,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}function Ic(e){return(Ic="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 Lc(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xc(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 jc(e,t){return(jc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Rc(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 Nc(this,n)}}function Nc(e,t){if(t&&("object"===Ic(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bc=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&&jc(e,t)}(o,e);var t,n,r,i=Rc(o);function o(){return Lc(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return ws.a.User}},{key:"channelName",get:function(){return Ts.b.USER}},{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:Ss.a.CURRENT_USER,expiryTime:_s.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:Ss.a.WORKSPACE,expiryTime:_s.a.STANDARD,callback:e,errorCallback:t})}}])&&xc(t.prototype,n),r&&xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(bs),Uc=(ws.a.User,Ts.b.USER,ws.a.User,"".concat(Ss.a.CURRENT_USER,":sync"),n(253)),Mc=n(24);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 Fc=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Mc.a.SERIES),key:"series:".concat(e),success:t}},Hc=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 ws.a.Series}},{key:"channelName",get:function(){return Ts.b.SERIES}},{key:"getSeries",value:function(e,t){var n=Fc(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}(),zc=n(49);function Wc(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(){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 zc.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))}}])&&Wc(t.prototype,n),r&&Wc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function qc(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 Yc=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 zc.a.FlightConfig}},{key:"getConfig",value:function(e,t){i.a.hooklessFetch(this.store,ve.a.config(e,t))}},{key:"getVersion",value:function(e,t){i.a.hooklessFetch(this.store,ve.a.version(e,t))}}])&&qc(t.prototype,n),r&&qc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Kc(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 Xc=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 zc.a.FlightShare}},{key:"getShareLink",value:function(e,t,n){i.a.hooklessFetch(this.store,bn.a.getShareObject(e,t,n))}}])&&Kc(t.prototype,n),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Qc(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 $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)}}function Zc(e,t){return(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jc(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=tu(e);if(t){var i=tu(this).constructor;Reflect.construct(r,arguments,i)}else r.apply(this,arguments);return eu(this,n)}}function eu(e,t){if(t&&("object"===Qc(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 tu(e){return(Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Ma.a;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?Object.setPrototypeOf.bind():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.bind():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:"name",get:function(){return"AlertError"}}])&&iu(t.prototype,n),r&&iu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.SilentError),lu=n(125),fu=n(395),pu=n(396),du=n(426),hu=n(406),yu=n(578),mu=n(579);function vu(e){Le.a.getInstance(us.a.ALERT).createAlert({heading:Uc.a.Fail,type:cs.a.Fail,message:e.message})}function gu(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 bu(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 wu(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 _u(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 Su(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 Tu=n(105),Eu=n(77);function Ou(e){return(Ou="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 Cu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ku(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 Pu(e,t){return(Pu=Object.setPrototypeOf?Object.setPrototypeOf.bind():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=Lu(e);if(t){var i=Lu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Iu(this,n)}}function Iu(e,t){if(t&&("object"===Ou(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 Lu(e){return(Lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xu=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&&Pu(e,t)}(o,e);var t,n,r,i=Au(o);function o(){return Cu(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"),Tu.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Tu.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Tu.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return s.createElement(Eu.Provider,{store:this.options.store},e)}}])&&ku(t.prototype,n),r&&ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(n(326).a),ju=n(580),Ru=n(173),Nu=n(78),Du=n(212),Bu=n(330),Uu=n(31);var Mu=n(219),Vu=n(45),Fu=n(427),Hu=n(405),zu=n(346);function Wu(e){return(Wu="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 Gu(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 qu(e,t){return(qu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Yu(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=Xu(e);if(t){var i=Xu(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ku(this,n)}}function Ku(e,t){if(t&&("object"===Wu(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 Xu(e){return(Xu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qu=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&&qu(e,t)}(a,e);var t,n,i,o=Yu(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}}])&&Gu(t.prototype,n),i&&Gu(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(c.a.Component);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 Zu(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 Ju(e,t){return(Ju=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function el(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=nl(e);if(t){var i=nl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tl(this,n)}}function tl(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 nl(e){return(nl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rl=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&&Ju(e,t)}(o,e);var t,n,r,i=el(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:ce.a.getPhrase("shared.unspecifiedDialogError","title"),text:ce.a.getPhrase("shared.unspecifiedDialogError","body"),buttons:[{text:ce.a.getPhrase("shared.unspecifiedDialogError","close"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}}])&&Zu(t.prototype,n),r&&Zu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(lu.a),il=n(433),ol=n(119),al=n(798),sl=n.n(al),cl=n(338),ul=n.n(cl);function ll(e){return(ll="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 fl(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 pl(e,t){return(pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function dl(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=yl(e);if(t){var i=yl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return hl(this,n)}}function hl(e,t){if(t&&("object"===ll(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 yl(e){return(yl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ml=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&&pl(e,t)}(o,e);var t,n,r,i=dl(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(ul.a.notificationIcon," ").concat(ul.a[this.options.color])}},{key:"template",get:function(){return sl.a}},{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:ul.a,svg:bc.a.getSvg(bc.b.Bell),unreadCount:this.model.get("unreadCount")}}}])&&fl(t.prototype,n),r&&fl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Component),vl=n(329),gl=n(582),bl=n(789),wl=n(802),_l=n.n(wl),Sl=n(591),Tl=n.n(Sl),El=n(592),Ol=n.n(El);function Cl(e){return(Cl="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 kl(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 Pl(e,t){return(Pl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Al(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=Ll(e);if(t){var i=Ll(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Il(this,n)}}function Il(e,t){if(t&&("object"===Cl(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 Ll(e){return(Ll=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xl=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&&Pl(e,t)}(o,e);var t,n,r,i=Al(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 _l.a}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:gl.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:Tl.a,className:"px-1 py-2",viewOptions:{styles:Ol.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=Le.a.getInstance(ws.b.Notification,this),this.appVariables=Le.a.getInstance(ol.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 bl.a({collectionPrefix:Ss.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new vl.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()}}])&&kl(t.prototype,n),r&&kl(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),jl=n(803),Rl=n.n(jl),Nl=n(383),Dl=n.n(Nl);function Bl(e){return(Bl="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 Ul(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ml(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 Vl(e,t){return(Vl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Fl(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=zl(e);if(t){var i=zl(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Hl(this,n)}}function Hl(e,t){if(t&&("object"===Bl(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 zl(e){return(zl=Object.setPrototypeOf?Object.getPrototypeOf.bind():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&&Vl(e,t)}(o,e);var t,n,r,i=Fl(o);function o(){return Ul(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){this.appVariables=Le.a.getInstance(ol.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(Dl.a.noPopoverArrow)}},{key:"template",get:function(){return Rl.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 xl({childType:vl.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=Le.a.getInstance(ws.b.Notification),t=new ml({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return Dl.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}}])&&Ml(t.prototype,n),r&&Ml(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.View),Gl=n(249),ql=n(98),Yl=n(137),Kl=n(97),Xl=n(35),Ql=n(393),$l=n(280),Zl=n(413),Jl=n(112);function ef(e){return function(e){if(Array.isArray(e))return tf(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 tf(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 tf(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 tf(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 nf=ce.a.encloseNamespace("shared.userOptions");var rf=n(44);function of(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 af(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 af(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 af(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 sf(e){var t,n=of(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&&Ae.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(Xl.Dropdown.Item,{as:"li",onClick:function(e){return a(e)}},s.createElement("div",{className:"d-flex justify-content-between"},s.createElement(rf.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement(wc.a,{svgName:bc.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(rf.b,{namespace:"shared.customerSelectorItem",phrase:"title"}),s.createElement(wc.a,{svgName:bc.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(Xl.Dropdown.Item,{key:n,as:"li",onClick:function(e){return a(e,t.id)},disabled:r},t.name)})))):s.createElement(s.Fragment,null)}var cf=n(384),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}var pf=ce.a.encloseNamespace("shared.userOptions");function df(e){var t=e.item;if(t.appLink)return s.createElement(Xl.Dropdown.Item,{as:_c.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(wc.a,{svgName:bc.b.NewWindow,className:"svg-container text-muted"}));if(t.url){return s.createElement(Xl.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&&Uu.a.logUserAction(Object.assign({href:t.url},t.analyticsData),t.analyticsOptions),Ae.LocationUtils.PageLoad(t.url,!0)}},t.label,!1!==t.openInNewTab&&s.createElement(wc.a,{svgName:bc.b.NewWindow,className:"svg-container text-muted"}))}return s.createElement(s.Fragment,null)}function hf(e){var t,n,r,c,u=lf(s.useState(!1),2),l=u[0],f=u[1],p=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}),d=i.a.useBasicFetch(ve.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(Kl.a)().hasPermissions,i=Object(Jl.b)(),o=mn.a.sortBy(n,"order");e&&t&&(o.push({label:nf("helpCentre"),order:0,url:Zl.a.getArticle(t.supportSiteUrl,null,null==e?void 0:e.countryCode)}),r(a.a.ViewProductBoard)&&!i.isUpgrading&&o.push({label:nf("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)&&oe.a.userProducts()),s=Object(Jl.b)();if(!t&&a.data&&!s.isLoading){var c=ef(a.data),u=Array.isArray(e)?e:[e];return s.isUpgrading&&!u.includes(re.a.Online)&&u.push(re.a.Online),mn.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(Xl.Dropdown,{className:"cursor-pointer position-relative",onToggle:function(e){return f(e)}},s.createElement(Xl.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat(uf.a.avatarContainer," no-caret")},s.createElement(Ql.a,{imageUrl:p.data.avatar,imageCdnUrl:d.data.imageCdnUrl,initials:$l.a.getInitials(p.data.givenName,p.data.familyName)})),s.createElement(Xl.Dropdown.Menu,{as:"ul",align:"right"},s.createElement(Xl.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(sf,{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(Xl.Dropdown.Divider,null),y.main.map((function(e,t){return s.createElement(df,{key:t,item:e})})),s.createElement(Xl.Dropdown.Divider,null),null==m?void 0:m.map((function(e,t){return s.createElement(Xl.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(uf.a.productLogo," mr-2")}),e.name)})),!!(null==m?void 0:m.length)&&s.createElement(Xl.Dropdown.Divider,null),y.logOut.map((function(e,t){return s.createElement(df,{key:t,item:e})})),s.createElement(Xl.Dropdown.Item,{as:_c.a,appLink:e.appLinks.logOut},pf("signOut")))):s.createElement(_c.a,{appLink:e.appLinks.logIn,className:"btn btn-dark mr-2"},pf("logIn")):s.createElement(s.Fragment,null)}var yf=n(127),mf=n(275),vf=n.n(mf);function gf(){var e=Object(Kl.a)().hasPermissions,t=Object(Jl.b)();return e(a.a.StudentExperience)?c.a.createElement(c.a.Fragment,null):!t.isLoading&&t.isUpgrading&&t.hasCompletedOnboarding?t.upgradeType===Jl.a.Launch?c.a.createElement(rf.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(vf.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(rf.b,{phrase:"launchMessage"})," "),c.a.createElement(rf.b,{phrase:"message",options:{smartCount:t.daysLeft}})," "),c.a.createElement(_c.a,{className:"btn btn-dark float-right mr-3 ".concat(vf.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!0}},analyticsData:{upgradeType:Jl.a.Launch},analyticsOptions:{actionType:O.UserAction.Click,location:O.LocationContext.LiteUpgradeBanner,entity:O.EntityType.User,descriptor:O.UpgradeBannerDescriptors.GoToOnline,workflowPhase:O.WorkflowPhase.Start}},c.a.createElement(rf.b,{phrase:"switchBack"})))):c.a.createElement(rf.a.Provider,{value:"shared.liteUpgradeBanner"},c.a.createElement("div",{className:"bg-dark-blue d-none d-md-block text-center ".concat(vf.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(rf.b,{phrase:"liteMessage"})," "),c.a.createElement(rf.b,{phrase:"message",options:{smartCount:t.daysLeft}})," ",c.a.createElement(_c.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:Jl.a.Lite},analyticsOptions:{actionType:O.UserAction.Click,location:O.LocationContext.LiteUpgradeBanner,entity:O.EntityType.User,descriptor:O.UpgradeBannerDescriptors.GoToOnline,workflowPhase:O.WorkflowPhase.Start}},c.a.createElement(rf.b,{phrase:"switchBack"}))),c.a.createElement(_c.a,{className:"btn btn-dark float-right mr-3 ".concat(vf.a.feedback),appLink:{application:P.a.DEFAULT,action:A.a.Default.LITE_UPGRADE_FEEDBACK,params:{goToOnline:!1}},analyticsData:{upgradeType:Jl.a.Lite},analyticsOptions:{actionType:O.UserAction.Click,location:O.LocationContext.LiteUpgradeBanner,entity:O.EntityType.User,descriptor:O.UpgradeBannerDescriptors.Feedback,workflowPhase:O.WorkflowPhase.Start}},c.a.createElement(rf.b,{phrase:"giveFeedback"})))):c.a.createElement(c.a.Fragment,null)}var bf=n(601),wf=n(71),_f=n(210),Sf=n(163),Tf=n(304),Ef=n(149),Of=n(440),Cf=n(233);function kf(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 Pf(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 Pf(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 Pf(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 Af(){var e,t,n=ie.a.getCurrentRoute().appLink;return Cf.a.isSearchAppLink(n)&&null!==(t=null===(e=n.params)||void 0===e?void 0:e.query)&&void 0!==t?t:""}var If=c.a.memo((function(e){var t,n=c.a.useMemo(Af,[]),i=kf(c.a.useState(n),2),o=i[0],a=i[1],s=kf(c.a.useState(!1),2),l=s[0],f=s[1],d=kf(Object(Nu.a)(Ie.a.SHOW_SEARCH_MASK,!1),2),h=d[0],y=d[1],m=Object(Tf.a)(o,300),v=ie.a.getCurrentRoute(),g=v.appLink,b=Cf.a.isSearchAppLink(g),w=Cf.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&&(Uu.a.logUserAction({query:o,indices:Ef.a.getAppliedIndices(g.params)},{actionType:O.UserAction.InstantSearch,entity:O.EntityType.SearchResults,location:O.LocationContext.SearchBar,workflowPhase:O.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?wf.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(_f.a)(u.Radio.channel(p.a.SHELL),r.a.EventNames.URL_CHANGE,(function(e){var t,n;e||(e=ie.a.getCurrentRoute().appLink),o&&!Cf.a.isSearchAppLink(e)&&(f(!0),a("")),Cf.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 T=Object(Of.a)(o,Ef.a.getAppliedIndices(g.params),{entity:O.EntityType.SearchResults,location:O.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(wc.a,{svgName:bc.b.Search}),c.a.createElement("input",{type:"text",className:"border-0 w-100 h-100 outline-none rounded",placeholder:ce.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 T(null!==(t=e.target.value)&&void 0!==t?t:"")},value:o,autoComplete:"off",spellCheck:!1,"aria-label":"Search"}),e.showCloseButton&&c.a.createElement(Sf.a,{svgName:bc.b.Close,onClick:e.onClickClose,className:"btn btn-link"}))})),Lf=ce.a.encloseNamespace("liteShared.header");var xf=n(161),jf=n.n(xf);function Rf(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 Nf(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 Nf(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 Nf(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 Df(e){var t=Object(Kl.a)().hasPermissions,n=Object(ql.a)(Vu.a.SMDown),r=n?jf.a.logoContainerSm:jf.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(_c.a,{appLink:i,className:"navbar-brand text-hide align-top ".concat(r," d-inline-block'")},n?s.createElement(Gl.d,null):s.createElement(Gl.a,null))}function Bf(e){var t=Rf(s.useState(!1),2),n=t[0],c=t[1],u=i.a.useBasicFetch(o.a.currentUser(),{optimize:!0}).data,l=i.a.useBasicFetch(ve.a.config(),{optimize:!0}),f=Object(Mu.a)(),p=Object(ql.a)(Vu.a.SMDown),d=Object(ql.a)(Vu.a.MDDown),h=Object(ql.a)(Vu.a.LGDown),y=function(){var e=Object(yf.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(Kl.a)().hasPermissions;if(!e||!t||!n)return[];var i=[{label:Lf("settings"),order:5,appLink:{application:P.a.SETTINGS,action:A.a.Settings.HOME}}];return r(a.a.StudentExperience)||i.push.apply(i,[{label:Lf("shares"),order:0,appLink:{application:P.a.DEFAULT,action:A.a.Default.SHARED_BY_ME}}]),r(a.a.StudentExperience)&&i.push.apply(i,[{label:Lf("joinClassroom"),order:1,appLink:{application:P.a.LAUNCHPAD,action:A.a.Launchpad.JOIN_CLASSROOM_PROMPT}}]),i}(u,l.data,e.showNav),v=Object(yf.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(gf,null),s.createElement("nav",{className:"navbar navbar-expanded w-100 ".concat(jf.a.nav)},!n&&s.createElement("div",{className:"d-flex align-items-center justify-content-start ".concat(jf.a.headerLeft)},e.showNav&&s.createElement(wc.a,{svgName:bc.b.Hamburger,className:"".concat(jf.a.hamburger," ml-1 mr-3"),onClick:e.toggleLeftNav}),s.createElement(Df,{isLink:e.showNav})),e.showNav?d&&!n?s.createElement(Yl.a,{className:"ml-auto mr-3",onClick:function(){return c(!0)}},s.createElement(wc.a,{svgName:bc.b.Search})):s.createElement("div",{className:"".concat(jf.a.searchBarContainer," ").concat(n?"px-3 pl-0":"")},s.createElement("div",{className:"container ".concat(jf.a.searchBarPadding," ").concat(n?"px-0":"")},s.createElement("div",{className:"".concat(jf.a.searchBar," border border-dark")},s.createElement(If,{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(jf.a.actionButtons)},b&&s.createElement("div",{className:"mr-3"},s.createElement(bf.a,{hideButtonText:h})),g&&s.createElement(kr.a,{view:Wl,className:"mx-n2 pr-3"}),!!l.data&&s.createElement("span",{className:"mr-3"},s.createElement(hf,{productId:re.a.Primary,appLinks:y,additionalItems:m,hideProductList:v})))))}var Uf,Mf,Vf=n(188),Ff=n(286),Hf=n(155),zf=n(96),Wf=n(12),Gf=n(345);!function(e){e[e.None=0]="None",e[e.PresentationSelector=1]="PresentationSelector"}(Uf||(Uf={})),function(e){e.PresentationSwitcher="_displayPresentationSwitcherSpotlight"}(Mf||(Mf={}));var qf=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:6312e4;e&&docCookies.setItem(t,e,n,"/",null,!0,"none")},Yf=function(e){return docCookies.getItem(e)},Kf=n(397),Xf=n(287),Qf=n(429),$f=n(213),Zf=n.n($f),Jf=n(412);function ep(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 tp(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 tp(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 tp(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 np(e){var t,n=ep(c.a.useState(null),2),r=n[0],i=n[1],o=ep(c.a.useState("0rem"),2),a=o[0],s=o[1];function u(){if(r){var e=r.getBoundingClientRect().height;s("-".concat(e+15,"px"))}}c.a.useEffect(u,[r]),Object(Jf.a)(u,u,[r]);var l="".concat(Zf.a.info," ").concat(null!==(t=e.extraInfoClasses)&&void 0!==t?t:"");return c.a.createElement("div",{ref:function(e){return i(e)},className:"".concat(l," bg-white p-3"),style:{top:a}},c.a.createElement("h2",{className:Zf.a.spotlightHeading},e.headingText),c.a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:kt.a.sanitize(e.bodyText)}}),e.buttonText&&c.a.createElement(Yl.a,{className:"info-link float-right",onClick:function(t){t.stopPropagation(),e.onClickButton()}},e.buttonText))}function rp(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 ip(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 ip(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 ip(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 op(e){var t,n=rp(c.a.useState(null),2),r=n[0],i=n[1];c.a.useEffect((function(){if(r&&Qf.a.isNumber(e.scrollOffset)){var t=r.getBoundingClientRect().y;document.body.scroll({top:t+document.body.scrollTop-e.scrollOffset,behavior:"smooth"})}}),[e.scrollOffset,r]);var o="".concat(Zf.a.spotlight," ").concat(null!==(t=e.extraSpotlightClasses)&&void 0!==t?t:""),a=e.infoComponent?e.infoComponent:np;return c.a.createElement(c.a.Fragment,null,c.a.createElement("div",{onClick:e.onClickAway,className:"modal-backdrop show ".concat(Zf.a.mask)}),c.a.createElement("div",{ref:function(e){return i(e)},className:"position-relative bg-white ".concat(o)},c.a.createElement(a,Object.assign({},e.infoComponentProps)),e.coverSpotlightContent&&c.a.createElement("div",{className:Zf.a.cover}),e.children))}function ap(e){return e.showSpotlight?c.a.createElement(op,Object.assign({},e),e.children):c.a.createElement(c.a.Fragment,null,e.children)}var sp=n(296),cp=n(85),up=n(93),lp=n(340),fp=n.n(lp);function pp(e){var t;var n="".concat(fp.a.info," ").concat(null!==(t=e.extraInfoClasses)&&void 0!==t?t:"");return c.a.createElement("div",{className:"".concat(n," bg-white p-3 text-center")},c.a.createElement("div",{className:"position-relative d-inline-flex align-items-center p-3"},c.a.createElement("img",{className:"".concat(fp.a.cover," rounded"),src:cp.a.createUrl(up.a.Images.Level_1.TOPIC_COVER,{size:en.b.Small}),alt:"Initial school-level"}),c.a.createElement("div",{className:"flex-column px-1"},c.a.createElement(wc.a,{svgName:bc.b.ArrowLeft,className:"svg-container d-block",size:wc.b.Large}),c.a.createElement(wc.a,{svgName:bc.b.ArrowRight,className:"svg-container d-block",size:wc.b.Large})),c.a.createElement("img",{className:"".concat(fp.a.cover," rounded"),src:cp.a.createUrl(up.a.Images.Level_3.TOPIC_COVER,{size:en.b.Small}),alt:"Next school-level"})),c.a.createElement("h2",{className:"h4"},e.headingText),c.a.createElement("p",{className:"mb-0",dangerouslySetInnerHTML:{__html:kt.a.sanitize(e.bodyText)}}),e.buttonText&&c.a.createElement(Yl.a,{className:"btn btn-dark mt-3",onClick:function(t){t.stopPropagation(),e.onClickButton()}},e.buttonText))}var dp=n(240),hp=n(43),yp=n.n(hp);function mp(e){var t,n,r=Object(yf.b)().isPlugin,i=e.collapsed&&e.active,o="".concat(yp.a.leftNavAnchor," ").concat(null!==(t=e.className)&&void 0!==t?t:""," ");return o+=e.active?yp.a.active:yp.a.iconGrey,!e.collapsed&&e.active&&(o+=" "+yp.a.bgGrey),e.active||(o+=" "+yp.a.hoveredState),c.a.createElement(_c.a,{className:o,appLink:e.appLink,analyticsData:{id:zf.a.mapIdToAnalyticsId(e.id),label:e.name,icon:e.svgName},analyticsOptions:{actionType:O.UserAction.Click,entity:O.EntityType.Url,location:O.LocationContext.LeftNav}},c.a.createElement("span",{className:"".concat(yp.a.leftNavIcon," ").concat(null!==(n=e.iconClassName)&&void 0!==n?n:""," position-relative")},!!e.svgName&&c.a.createElement(wc.a,{svgName:e.svgName,size:r?wc.b.Medium:wc.b.ExtraLarge}),!!e.imageUrl&&c.a.createElement("span",{className:yp.a.imageContainer},c.a.createElement("img",{src:cp.a.createUrl(e.imageUrl,{size:en.b.Small}),className:"img-fluid rounded-circle"})),e.showRedDot),c.a.createElement("span",{className:"".concat(yp.a.leftNavText," ").concat(i?yp.a.highlightText:"")},e.name),e.showRedDot&&c.a.createElement("span",{className:"".concat(yp.a.redDot," bg-danger rounded-circle ").concat(e.collapsed?yp.a.collapsed:yp.a.expanded)}))}var vp=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},gp=c.a.forwardRef((function(e,t){var n=e.style,r=e.scrollBuffer,i=vp(e,["style","scrollBuffer"]);return c.a.createElement("div",Object.assign({},i,{ref:t,style:Object.assign(Object.assign({},n),{width:"6px",right:"2px",top:"2px",borderRadius:"3px",bottom:r||"2px"})}))})),bp=n(41);function wp(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}var Sp;function Tp(e){var t=e.hasBanner,n=e.showPresentationSelector,r=e.isPlugin,i=e.collapsed,o=wp(c.a.useState(""),2),a=o[0],s=o[1];return c.a.useEffect((function(){var e=bp.a.throttle((function(){var e=t&&!r&&window.innerWidth>768&&window.scrollY<59,o=r&&i?49:69;s(n&&e?59+o+"px":!n||e?n||!e?"":"59px":o+"px")}),1e3);return e(),window.addEventListener("scroll",e),window.addEventListener("resize",e),function(){window.removeEventListener("scroll",e),window.removeEventListener("resize",e)}}),[t,n,r,i]),a}function Ep(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Op,Cp=ce.a.encloseNamespace("shared.leftNav"),kp=(Ep(Sp={},Wf.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),Ep(Sp,Wf.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),Ep(Sp,Wf.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),Ep(Sp,Wf.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),Ep(Sp,Wf.a.Classrooms,{application:P.a.CLASSROOMS,action:A.a.Classrooms.HOME}),Ep(Sp,Wf.a.Classroom,{application:P.a.CLASSROOMS,action:A.a.Classrooms.CLASSROOM_STUDENTS}),Ep(Sp,Wf.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),Ep(Sp,Wf.a.Libraries,{application:P.a.LIBRARIES,action:A.a.Libraries.LIBRARY}),Ep(Sp,Wf.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),Ep(Sp,Wf.a.Presentation,{application:P.a.DEFAULT,action:A.a.Default.CHANGE_PRESENTATION}),Sp);function Pp(e){var t,n,i,o,s=e.activeItem,u=e.dynamicActiveId,l=e.favouritedClassrooms,f=e.hideClassrooms,p=Object(yf.b)().isPlugin,d=Object(Kl.a)().hasPermissions,h=Object(Jl.b)().isUpgrading,y=!!Object(dp.a)(),m=(null===(t=e.availablePresentations)||void 0===t?void 0:t.length)>=Hf.a.MULTI_PRESENTATION_THRESHOLD,v=d(a.a.ManageSubjectPreferences)&&m,g=Tp({hasBanner:h,showPresentationSelector:v,isPlugin:p});return c.a.createElement("nav",{className:"".concat(yp.a.leftNav," ").concat(yp.a.leftNavExpanded)},c.a.createElement(Xf.Scrollbars,{className:"".concat(m?yp.a.leftNavScrollableContent:"h-100"),renderTrackVertical:function(e){return c.a.createElement(gp,Object.assign({},e,{scrollBuffer:g}))}},c.a.createElement("div",{className:"pt-3",style:{paddingBottom:g}},d(a.a.StudentExperience)&&c.a.createElement(mp,{key:Wf.a.StudentFeed,id:Wf.a.StudentFeed,name:Cp("home"),appLink:kp[Wf.a.StudentFeed],className:yp.a.studentFeed,svgName:bc.b.House,active:s===Wf.a.StudentFeed}),c.a.createElement(mp,{key:Wf.a.Discover,id:Wf.a.Discover,name:Cp("discover"),appLink:kp[Wf.a.Discover],className:yp.a.discover,svgName:bc.b.Compass,active:s===Wf.a.Discover}),c.a.createElement(mp,{key:Wf.a.Playlists,id:Wf.a.Playlists,name:Cp("playlists"),appLink:kp[Wf.a.Playlists],className:yp.a.playlists,svgName:bc.b.Playlist,active:s===Wf.a.Playlists}),c.a.createElement(mp,{key:Wf.a.MyVideos,id:Wf.a.MyVideos,name:Cp("myVideos"),appLink:kp[Wf.a.MyVideos],className:yp.a.myVideos,svgName:bc.b.Video,active:s===Wf.a.MyVideos,showRedDot:y}),c.a.createElement(mp,{key:Wf.a.Favourites,id:Wf.a.Favourites,name:Cp("favourites"),appLink:kp[Wf.a.Favourites],className:yp.a.favourites,svgName:bc.b.HeartOutline,active:s===Wf.a.Favourites}),!d(a.a.StudentExperience)&&c.a.createElement(mp,{key:Wf.a.WatchHistory,id:Wf.a.WatchHistory,name:Cp("watchHistory"),appLink:kp[Wf.a.WatchHistory],className:yp.a.watchHistory,svgName:bc.b.History,active:s===Wf.a.WatchHistory}),!d(a.a.StudentExperience)&&c.a.createElement("hr",{className:"my-2"}),!d(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"},Cp("libraries")),e.libraries.map((function(e){var t,n,r,i,o;return c.a.createElement(mp,{key:e.id,id:Wf.a.Libraries,name:e.name,appLink:Object.assign(Object.assign({},kp[Wf.a.Libraries]),{args:[e.id,kt.a.slugify(e.name)]}),className:yp.a.library,imageUrl:null===(n=null===(t=e.owner)||void 0===t?void 0:t.logo)||void 0===n?void 0:n.url,svgName:!(null===(i=null===(r=e.owner)||void 0===r?void 0:r.logo)||void 0===i?void 0:i.url)&&bc.b.Library,active:s===Wf.a.Libraries&&(null===(o=e.id)||void 0===o?void 0:o.toString())===(null==u?void 0:u.toString())})})),c.a.createElement("hr",{className:"my-2"})),!f&&c.a.createElement(c.a.Fragment,null,c.a.createElement(mp,{key:Wf.a.Classrooms,id:Wf.a.Classrooms,name:Cp("classrooms"),appLink:kp[Wf.a.Classrooms],className:yp.a.classrooms,svgName:bc.b.Classrooms,active:s===Wf.a.Classrooms}),(null==l?void 0:l.length)?l.map((function(e){var t;return c.a.createElement(mp,{key:e.id,id:Wf.a.Classroom,name:e.name,appLink:Object.assign(Object.assign({},kp[Wf.a.Classroom]),{args:[e.id]}),className:yp.a.classroom,svgName:bc.b.StarOutline,active:s===Wf.a.Classroom&&(null===(t=e.id)||void 0===t?void 0:t.toString())===(null==u?void 0:u.toString())})})):c.a.createElement(c.a.Fragment,null)))),v&&c.a.createElement("div",{className:"".concat(yp.a.presentation)},c.a.createElement("hr",{className:"my-0"}),c.a.createElement(ap,{showSpotlight:e.activeSpotlight===Uf.PresentationSelector,onClickAway:function(){return e.updateSpotlight(Uf.None)},extraSpotlightClasses:yp.a.presentationSpotlight,infoComponent:pp,infoComponentProps:{onClickButton:function(){return e.updateSpotlight(Uf.None)},extraInfoClasses:yp.a.presentationSpotlightInfo,headingText:ce.a.getPhrase("shared.leftNav","presentationSpotlightHeader"),bodyText:ce.a.getPhrase("shared.leftNav","presentationSpotlightBody"),buttonText:ce.a.getPhrase("shared.leftNav","presentationSpotlightCta")},coverSpotlightContent:!0},c.a.createElement(mp,{key:Wf.a.Presentation,id:Wf.a.Presentation,name:null===(n=e.currentPresentation)||void 0===n?void 0:n.name,appLink:(o=kp[Wf.a.Presentation],r.a.AppLinkHelper.getCurrentAppLink().application===P.a.USER_MANAGER&&(o.application=P.a.USER_MANAGER),o),iconClassName:sp.a.getMappedPresentationBackgroundColour(null===(i=e.currentPresentation)||void 0===i?void 0:i.learningLevel),svgName:bc.b.School,active:!1}))))}function Ap(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ip,Lp,xp=ce.a.encloseNamespace("shared.leftNav"),jp=(Ap(Op={},Wf.a.Discover,{application:P.a.DASHBOARD,action:A.a.Dashboard.HOME}),Ap(Op,Wf.a.Playlists,{application:P.a.PLAYLISTS,action:A.a.Playlists.HOME}),Ap(Op,Wf.a.MyVideos,{application:P.a.DEFAULT,action:A.a.Default.MY_VIDEOS}),Ap(Op,Wf.a.Favourites,{application:P.a.DEFAULT,action:A.a.Default.FAVOURITES}),Ap(Op,Wf.a.WatchHistory,{application:P.a.WATCH_HISTORY,action:A.a.WatchHistory.HOME}),Ap(Op,Wf.a.StudentFeed,{application:P.a.STUDENT_FEED,action:A.a.StudentFeed.HOME}),Ap(Op,Wf.a.Presentation,{application:P.a.DEFAULT,action:A.a.Default.CHANGE_PRESENTATION}),Op);function Rp(e){var t,n,i,o=Object(Kl.a)().hasPermissions,s=Object(yf.b)().isPlugin,u=Object(Jl.b)().isUpgrading,l=!!Object(dp.a)(),f=(null===(t=e.availablePresentations)||void 0===t?void 0:t.length)>=Hf.a.MULTI_PRESENTATION_THRESHOLD,p="".concat(yp.a.leftNav," ").concat(yp.a.leftNavCollapsed);s&&(p+=" ".concat(yp.a.pluginLeftNav));var d,h=o(a.a.ManageSubjectPreferences)&&f,y=Tp({hasBanner:u,showPresentationSelector:h,isPlugin:s,collapsed:!0});return c.a.createElement("nav",{className:p},c.a.createElement(Xf.Scrollbars,{className:"h-100",renderTrackVertical:function(e){return c.a.createElement(gp,Object.assign({},e,{scrollBuffer:y}))}},c.a.createElement("div",{className:"".concat(s?"pt-1":"pt-3"),style:{paddingBottom:y}},o(a.a.StudentExperience)&&c.a.createElement(mp,{key:Wf.a.StudentFeed,id:Wf.a.StudentFeed,name:xp("home"),appLink:jp[Wf.a.StudentFeed],className:yp.a.studentFeed,svgName:bc.b.House,active:e.activeItem===Wf.a.StudentFeed,collapsed:!0}),c.a.createElement(mp,{key:Wf.a.Discover,id:Wf.a.Discover,name:xp("discover"),appLink:jp[Wf.a.Discover],className:yp.a.discover,svgName:bc.b.Compass,active:e.activeItem===Wf.a.Discover,collapsed:!0}),c.a.createElement(mp,{key:Wf.a.Playlists,id:Wf.a.Playlists,name:xp("playlists"),appLink:jp[Wf.a.Playlists],className:yp.a.playlists,svgName:bc.b.Playlist,active:e.activeItem===Wf.a.Playlists,collapsed:!0}),c.a.createElement(mp,{key:Wf.a.MyVideos,id:Wf.a.MyVideos,name:xp("myVideos"),appLink:jp[Wf.a.MyVideos],className:yp.a.myVideos,svgName:bc.b.Video,active:e.activeItem===Wf.a.MyVideos,collapsed:!0,showRedDot:l}),c.a.createElement(mp,{key:Wf.a.Favourites,id:Wf.a.Favourites,name:xp("favourites"),appLink:jp[Wf.a.Favourites],className:yp.a.favourites,svgName:bc.b.HeartOutline,active:e.activeItem===Wf.a.Favourites,collapsed:!0}),!o(a.a.StudentExperience)&&c.a.createElement(mp,{key:Wf.a.WatchHistory,id:Wf.a.WatchHistory,name:xp("watchHistory"),appLink:jp[Wf.a.WatchHistory],className:yp.a.watchHistory,svgName:bc.b.History,active:e.activeItem===Wf.a.WatchHistory,collapsed:!0}))),h&&c.a.createElement("div",{className:"".concat(yp.a.presentation)},c.a.createElement("hr",{className:"my-0"}),c.a.createElement(ap,{showSpotlight:e.activeSpotlight===Uf.PresentationSelector,extraSpotlightClasses:yp.a.presentationSpotlight,onClickAway:function(){return e.updateSpotlight(Uf.None)},infoComponent:pp,infoComponentProps:{onClickButton:function(){return e.updateSpotlight(Uf.None)},extraInfoClasses:yp.a.presentationSpotlightInfo,headingText:ce.a.getPhrase("shared.leftNav","presentationSpotlightHeader"),bodyText:ce.a.getPhrase("shared.leftNav","presentationSpotlightBody"),buttonText:ce.a.getPhrase("shared.leftNav","presentationSpotlightCta")},coverSpotlightContent:!0},c.a.createElement(mp,{key:Wf.a.Presentation,id:Wf.a.Presentation,name:null===(n=e.currentPresentation)||void 0===n?void 0:n.name,appLink:(d=jp[Wf.a.Presentation],r.a.AppLinkHelper.getCurrentAppLink().application===P.a.USER_MANAGER&&(d.application=P.a.USER_MANAGER),d),iconClassName:sp.a.getMappedPresentationBackgroundColour(null===(i=e.currentPresentation)||void 0===i?void 0:i.learningLevel),svgName:bc.b.School,active:!1}))))}function Np(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 Dp(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 Dp(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 Dp(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 Bp(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"}(Lp||(Lp={}));var Up=(Bp(Ip={},Wf.a.Discover,zf.a.getDiscoverAppLinks()),Bp(Ip,Wf.a.Playlists,zf.a.getPlaylistAppLinks()),Bp(Ip,Wf.a.MyVideos,zf.a.getMyVideosAppLinks()),Bp(Ip,Wf.a.Favourites,zf.a.getFavouritesAppLinks()),Bp(Ip,Wf.a.WatchHistory,zf.a.getWatchHistoryAppLinks()),Bp(Ip,Wf.a.Classrooms,zf.a.getClassroomsAppLinks()),Bp(Ip,Wf.a.Classroom,zf.a.getClassroomAppLinks()),Bp(Ip,Wf.a.Libraries,zf.a.getLibrariesAppLinks()),Bp(Ip,Wf.a.StudentFeed,zf.a.getStudentFeedAppLinks()),Bp(Ip,Wf.a.Presentation,zf.a.getPresentationsAppLinks()),Ip);function Mp(e){var t,n,r,s,u,l,f=Np(c.a.useState(null),2),p=f[0],d=f[1],h=i.a.useBasicFetch(o.a.currentUser()),y=i.a.useBasicFetch(h.data&&Kf.a.getPinnedClassrooms(h.data.id)),m=i.a.useBasicFetch(Gf.a.sharedLibraries());i.a.useBasicFetch(!!(null===(t=m.data)||void 0===t?void 0:t.length)&&Gf.a.librariesWithOwnerLogos(m.data.map((function(e){return e.id}))));var v=i.a.useBasicFetch(Vf.a.presentation(),{optimize:!0}),g=i.a.useBasicFetch(Vf.a.availablePresentations(Ff.a.Subject)),b=Object(Kl.a)().hasPermissions,w=Np(c.a.useState(Uf.PresentationSelector),2),_=w[0],S=w[1];c.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(Up).find((function(n){t||Up[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=Wf.a[n])})),d(t)}}),[e.activeAppLink]);var T=Object(ql.a)(Vu.a.XS);function E(e){var t;qf(null===(t=h.data)||void 0===t?void 0:t.id,Mf.PresentationSwitcher),S(e)}if(c.a.useEffect((function(){var e,t;(null===(e=g.data)||void 0===e?void 0:e.length)<Hf.a.MULTI_PRESENTATION_THRESHOLD?S(Uf.None):+Yf(Mf.PresentationSwitcher)==+(null===(t=h.data)||void 0===t?void 0:t.id)||T?S(Uf.None):S(Uf.PresentationSelector)}),[T,null===(n=g.data)||void 0===n?void 0:n.length]),e.navState===Lp.Hidden)return c.a.createElement(c.a.Fragment,null);var O=(null===(r=e.activeAppLink)||void 0===r?void 0:r.args)&&e.activeAppLink.args[0];return e.navState===Lp.Collapsed?c.a.createElement(Rp,{activeItem:p,currentPresentation:null==v?void 0:v.data,availablePresentations:null==g?void 0:g.data,activeSpotlight:_,updateSpotlight:E}):c.a.createElement(Pp,{activeItem:p,dynamicActiveId:O,favouritedClassrooms:null!==(u=null===(s=y.data)||void 0===s?void 0:s.data)&&void 0!==u?u:[],libraries:null!==(l=m.data)&&void 0!==l?l:[],hideClassrooms:!b(a.a.ViewClassrooms),currentPresentation:null==v?void 0:v.data,availablePresentations:null==g?void 0:g.data,activeSpotlight:_,updateSpotlight:E})}var Vp=n(247),Fp=n(46),Hp=n(144),zp=n(407),Wp=n(289),Gp=n(222),qp=n(435),Yp=n(420),Kp=n(250),Xp=n(394),Qp=n(430),$p=n(403),Zp=n(276),Jp=n.n(Zp);function ed(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 td(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 td(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 td(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 nd(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),$p.a.getAppLink(e.video,t)}function rd(e){var t,n=ed(Object(Nu.a)(Ie.a.WEB_PLAYER_DATA),1)[0];return s.createElement("h2",{className:"mb-0 h6 w-100 ".concat(Jp.a.title)},Fp.a.isVideo(n.video)&&Fp.a.hasSeries(n.video)&&s.createElement(zp.b,{className:"d-block",video:n.video,appLink:e.hasProduct(re.a.Primary)&&(t=n.video.series,{application:P.a.DEFAULT,action:A.a.Default.SERIES,args:[t.id,kt.a.slugify(t.name)]}),analyticsOptions:{location:O.LocationContext.FloatingPlayer}}),s.createElement(_c.a,{appLink:!n.isOnPlayPage&&nd(n)},n.video.name))}function id(){var e,t,n;Object(qp.a)();var a=ed(Object(Nu.a)(Ie.a.WEB_PLAYER_DATA),2),c=a[0],u=a[1],l=Object(Xp.a)(O.LocationContext.FloatingPlayer),f=l.setFavourite,p=l.canFavourite,d=Object(Qp.a)(O.LocationContext.FloatingPlayer),h=i.a.useBasicFetch(o.a.currentUser()),y=Object(Gp.a)().hasProduct;i.a.useBasicFetch((null===(e=h.data)||void 0===e?void 0:e.isAuthenticated)&&(null==c?void 0:c.video)?Kp.a.isFavourited(h.data.id,[c.video.id]):null);var m=Wp.a.isFavouritedByCurrentUser(c.video),v=(null===(t=h.data)||void 0===t?void 0:t.isAuthenticated)&&Fp.a.isVideo(c.video)&&y(re.a.Primary);return(null==c?void 0:c.video)&&(null==c?void 0:c.viewKey)?s.createElement(s.Fragment,null,s.createElement(Vp.a,{node:c.portalNode},(c.isOnPlayPage||c.showFloatingPlayer)&&s.createElement(Yp.a,{viewKey:c.viewKey,startTime:c.startTime,playerApiUrl:c.playerApiUrl,webPlayerUrl:c.webPlayerUrl,videoId:c.video.id,onExitPictureInPicture:function(){r.a.AppLinkHelper.trigger(nd(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===Hp.a.Complete?Hp.a.Incomplete:Hp.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 ae.a)}})),s.createElement("div",{className:Jp.a.floatingPlayer},s.createElement(gc.CSSTransition,{timeout:400,in:c.showFloatingPlayer,classNames:"floating-player"},s.createElement("div",{className:"d-none shadow"},c.showFloatingPlayer&&s.createElement(Vp.b,{node:c.portalNode}),s.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},s.createElement(rd,{hasProduct:y}),s.createElement("span",{className:"".concat(Jp.a.buttons)},s.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){Uu.a.logUserAction({id:c.video.id},{location:O.LocationContext.FloatingPlayer,entity:Fp.a.getAnalyticsEntity(c.video),actionType:O.UserAction.Click,descriptor:O.ClickDescriptor.Close}),u("showFloatingPlayer",!1)}},s.createElement(wc.a,{svgName:bc.b.Close})),s.createElement(_c.a,{appLink:nd(c),onClick:function(){u("isOnPlayPage",!0),u("showFloatingPlayer",!1),Uu.a.logUserAction({id:c.video.id},{location:O.LocationContext.FloatingPlayer,entity:Fp.a.getAnalyticsEntity(c.video),actionType:O.UserAction.Click,descriptor:O.ClickDescriptor.Open})}},!c.isOnPlayPage&&s.createElement(wc.a,{svgName:bc.b.NewWindow,className:"".concat(Jp.a.flippedIcon," d-inline-block svg-container float-right")})))))))):s.createElement(s.Fragment,null)}function od(){var e=i.a.useBasicFetch(ve.a.version());return e.data?c.a.createElement("div",{className:"text-center text-muted my-2"},c.a.createElement("small",null,"2003 - ",(new Date).getFullYear()," © ClickView | Version: ",e.data)):c.a.createElement(c.a.Fragment,null)}var ad=n(608),sd=n(277),cd=n.n(sd);function ud(){return s.createElement(s.Fragment,null,s.createElement("div",{className:cd.a.dropMask}),s.createElement("div",{className:cd.a.dropContent},s.createElement("div",{className:cd.a.border},s.createElement("h1",null,s.createElement(rf.b,{namespace:"shared.dragMask",phrase:"message"})))),s.createElement("div",{className:cd.a.dropArea}))}var ld=n(122),fd=n.n(ld);function pd(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 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,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 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}var hd=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 yd(e){return e!==Vu.a.XL&&e!==Vu.a.XXL}var md=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=pd(s.useState(!1),2),h=d[0],y=d[1];Object(Hu.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(Bu.b)((null===(t=m.data)||void 0===t?void 0:t.isAuthenticated)?zc.b.CombineUploads:null);var v=Object(Mu.a)(),g=v===Vu.a.XS,b=v===Vu.a.SM,w=v===Vu.a.XXL,_=pd(Object(Nu.a)(Ie.a.WEB_PLAYER_DATA),1)[0],S=pd(Object(Nu.a)(Ie.a.SHOW_SEARCH_MASK),1)[0],T=pd(Object(Nu.a)(Ie.a.LAYOUT_CONTAINER_FLUID,yd(v)),2),E=T[0],C=T[1],k=Object(Fu.b)().enabled;s.useEffect((function(){y(!w)}),[w]),s.useEffect((function(){C(yd(v))}),[v]),s.useEffect((function(){document.body.style.overflowY="scroll"}),[]);var P=Object(yf.b)().isPlugin,A=function(e,t,n,r,i){var o=i?fd.a.pluginCollapsedNavContent:fd.a.collapsedNavContent;return r?t?{state:e?Lp.Hidden:Lp.Open,showMask:!e,contentClass:fd.a.hiddenNavContent}:n?{state:e?Lp.Collapsed:Lp.Open,showMask:!e,contentClass:o}:{state:e?Lp.Collapsed:Lp.Open,showMask:!1,contentClass:e?o:fd.a.openNavContent}:{state:Lp.Hidden,showMask:!1,contentClass:fd.a.hiddenNavContent}}(h,g,b,r,P),I=Object(Ru.a)(zc.b.VideoUpload),L=s.useCallback((function(e){k&&I.addFiles(e,{entity:O.EntityType.Video,actionType:O.UserAction.Upload,workflowPhase:O.WorkflowPhase.Start,descriptor:Uu.a.mapInteractionType(O.InteractionType.DragDrop),location:O.LocationContext.VideoUpload})}),[k]),x=Object(ju.useDropzone)({onDrop:L,noClick:!0,noKeyboard:!0,disabled:j.a.disableDropzone(P||!(null===(n=m.data)||void 0===n?void 0:n.isAuthenticated))}),R=x.getRootProps,N=x.getInputProps,D=x.isDragActive,B="d-flex flex-column align-items-end",U="",M=fd.a.fixedBottomRightContainer;return j.a.hasIntercom()&&(M+=" "+fd.a.intercomOverride),(null==_?void 0:_.showFloatingPlayer)?B+=" ".concat(M):U=M,s.createElement(Qu,{renderError:function(){return Object(ad.ErrorView)({error:new ae.a})}},s.createElement("div",Object.assign({},R(),{className:j.a.shouldLockContentWidth()?fd.a.lockedWidth:""}),s.createElement(Bf,{toggleLeftNav:function(){y(!h)},showNav:r}),r&&s.createElement(Mp,{navState:A.state,activeAppLink:f,appLinkIsRoute:p}),s.createElement("div",{className:"".concat(fd.a.content," ").concat(A.contentClass)},s.createElement("div",{className:"container-fluid ".concat("banner-portal-container")}),s.createElement("div",{className:"".concat(E?"container-fluid":"container")},s.createElement(Qu,{throwError:ae.a},a),s.createElement(od,null))),s.createElement(Qu,{throwError:rl},c),A.showMask&&s.createElement("div",{className:"modal-backdrop show ".concat(fd.a.mask)}),s.createElement("div",{className:"".concat(fd.a.searchMask," ").concat(S?fd.a.show:""," modal-backdrop")}),s.createElement("div",{className:B},!!u&&s.createElement("div",{className:U},u),s.createElement(id,null)),D&&k&&s.createElement(ud,null),s.createElement("input",Object.assign({},N())),s.createElement("div",{style:{display:"none"}},l)))};function vd(e){var t=e.provider,n=hd(e,["provider"]);return t?s.createElement(Eu.Provider,{store:e.store},s.createElement(Du.b,{defaultTitle:""},s.createElement(zu.b,{containerClassName:"banner-portal-container"},s.createElement(t,null,s.createElement(md,Object.assign({},n)))))):s.createElement(Eu.Provider,{store:e.store},s.createElement(Du.b,{defaultTitle:""},s.createElement(zu.b,{containerClassName:"banner-portal-container"},s.createElement(il.b,null,s.createElement(md,Object.assign({},n))))))}var gd=n(818),bd=n.n(gd);function wd(e){return(wd="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){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 Sd(){return(Sd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Td(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 Td(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=kd(e)););return e}function Ed(e,t){return(Ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Od(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=kd(e);if(t){var i=kd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cd(this,n)}}function Cd(e,t){if(t&&("object"===wd(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 kd(e){return(kd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pd=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&&Ed(e,t)}(a,e);var t,n,i,o=Od(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(C,":").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=ie.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 bd.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[Tt],popupChild:this.childComponents[Et],alertChild:this.childComponents[Ot],hiddenChild:this.childComponents[Ct],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(Et)}},{key:"showChildView",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.childComponents[e]=t,e===Tt&&(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());Sd(kd(a.prototype),"showChildView",this).call(this,"layout",s.createElement(vd,Object.assign({},e)))}}])&&_d(t.prototype,n),i&&_d(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(xu),Ad=n(819);function Id(e){var t=e.contentChild;return s.useEffect((function(){document.body.style.overflowY="auto"}),[]),s.createElement(s.Fragment,null,t)}function Ld(e){var t=e.store;return s.createElement(Qu,{renderError:function(){return Object(Ad.EmbedErrorView)({error:new or.a})}},s.createElement(Eu.Provider,{store:t},s.createElement(Du.b,{defaultTitle:""},s.createElement(Id,Object.assign({},e)))))}var xd=n(820),jd=n.n(xd);function Rd(e){return(Rd="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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dd(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 Bd(){return(Bd="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Ud(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 Ud(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Hd(e)););return e}function Md(e,t){return(Md=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vd(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=Hd(e);if(t){var i=Hd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Fd(this,n)}}function Fd(e,t){if(t&&("object"===Rd(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 Hd(e){return(Hd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var zd=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&&Md(e,t)}(o,e);var t,n,r,i=Vd(o);function o(){var e;return Nd(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 jd.a}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[Tt],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(Et)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Bd(Hd(o.prototype),"showChildView",this).call(this,"layout",s.createElement(Ld,Object.assign({},this.getChildComponents())))}}])&&Dd(t.prototype,n),r&&Dd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(xu);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)}}var Gd=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}}])&&Wd(t.prototype,n),r&&Wd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),qd=n(134),Yd=n(269);function Kd(e){return(Kd="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 Xd(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?Object.setPrototypeOf.bind():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=Jd(e);if(t){var i=Jd(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Zd(this,n)}}function Zd(e,t){if(t&&("object"===Kd(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 Jd(e){return(Jd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var eh=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=$d(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 Yd.a&&e.set(n,{silent:!0}),e instanceof qd.a&&!(e instanceof Yd.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 qd.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 qd.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]),Ba.each(i.persistProps,(function(i){r.listenTo(t,"change:".concat(i),Ba.partial(r.setLocalData,e,Ba,Ba,n))})))}},{key:"mergeData",value:function(e,t){return t?Ba.isObject(e)&&Ba.isObject(t)?Ba.extend(e,t):void Ma.c.throw(new Ce.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case Pe.c.LocalStorage:return Pe.a;case Pe.c.SessionStorage:return Pe.b}}}])&&Xd(t.prototype,n),r&&Xd(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ua.a).Instance;function th(e){return(th="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 nh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rh(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 ih(e,t,n){return t&&rh(e.prototype,t),n&&rh(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function oh(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&&ah(e,t)}function ah(e,t){return(ah=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sh(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=uh(e);if(t){var i=uh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ch(this,n)}}function ch(e,t){if(t&&("object"===th(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 uh(e){return(uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lh,fh=function(e){oh(n,e);var t=sh(n);function n(){return nh(this,n),t.apply(this,arguments)}return ih(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),ph=function(e){oh(n,e);var t=sh(n);function n(){return nh(this,n),t.apply(this,arguments)}return ih(n,[{key:"model",get:function(){return fh}}]),n}(r.a.Collection),dh=n(160),hh=n(138),yh=n(69);function mh(e){return(mh="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 vh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gh(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 bh(e,t){return(bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function wh(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=Sh(e);if(t){var i=Sh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _h(this,n)}}function _h(e,t){if(t&&("object"===mh(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 Sh(e){return(Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Th=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&&bh(e,t)}(a,e);var t,n,i,o=wh(a);function a(){return vh(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return ws.b.PendingItems}},{key:"channelName",get:function(){return Ts.c.PENDING_ITEMS}},{key:"initialize",value:function(){this.videoDataService=Le.a.getInstance(ws.a.Video,this),this.videoUploadDataService=Le.a.getInstance(ws.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case dh.a.Completed:case dh.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),Ba.isFunction(t)&&t()}));break;case dh.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),Ba.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(yh.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new ph,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&u.Radio.channel(e.channelName).trigger(yh.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")===dh.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=Ba.map(n,(function(e){return e.masterVideoId.toString()})),o=function(r){Ba.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===hh.a.Processing&&t.set("status",hh.a.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&(window.clearTimeout(lh),lh=window.setTimeout((function(){return e.fetchPendingItems()}),e.getTimeoutLength())),Ba.isFunction(t.callback)&&t.callback()};i.length?e.videoDataService.getVideos(i,o):o(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=eh.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;Ba.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")===dh.a.Processing}))?5e3:3e4}}])&&gh(t.prototype,n),i&&gh(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service),Eh=n(332);function Oh(e){return(Oh="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 kh(e,t){return(kh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ph(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=Ih(e);if(t){var i=Ih(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ah(this,n)}}function Ah(e,t){if(t&&("object"===Oh(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 Ih(e){return(Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Lh=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&&kh(e,t)}(o,e);var t,n,r,i=Ph(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 ws.b.Notification}},{key:"initDataServices",value:function(){this.notificationDataService=Le.a.getInstance(ws.a.Notification,this),this.notificationSocketService=Le.a.getInstance(ws.a.NotificationSocket,this),this.userDataService=Le.a.getInstance(ws.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=Ss.a.NOTIFICATIONS;this.listenTo(Ts.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(Ts.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(Ts.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(Ts.a.NOTIFICATIONS,Eh.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,Ss.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=eh.get(Ss.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(),eh.get(Ss.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())}}])&&Ch(t.prototype,n),r&&Ch(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service),xh=n(135);function jh(e){return(jh="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 Rh(e){return function(e){if(Array.isArray(e))return Nh(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 Nh(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 Nh(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 Nh(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 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)}}function Bh(e,t){return(Bh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Uh(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=Vh(e);if(t){var i=Vh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Mh(this,n)}}function Mh(e,t){if(t&&("object"===jh(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 Vh(e){return(Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fh(e){return(Fh="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 Hh(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 Wh(e,t){return(Wh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gh(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=Yh(e);if(t){var i=Yh(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qh(this,n)}}function qh(e,t){if(t&&("object"===Fh(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 Yh(e){return(Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kh,Xh=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&&Wh(e,t)}(o,e);var t,n,r,i=Gh(o);function o(){return Hh(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return Xa.Notifications}}])&&zh(t.prototype,n),r&&zh(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&&Bh(e,t)}(o,e);var t,n,r,i=Uh(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(xh.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(xh.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(xh.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 xh.a,n=Qs.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),i={logger:xh.c.Error};return e.logging&&(i.logger=xh.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===xh.b.Connected&&console.log("Connected!"),e===xh.b.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===xh.b.Connecting||this.connectionState===xh.b.Connected||this.connectionState===xh.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 $a.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(Rh(e)))})).catch((function(e){return r.trigger.apply(r,[o].concat(Rh(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))}))}}])&&Dh(t.prototype,n),r&&Dh(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Qa.Object));!function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Kh||(Kh={}));var Qh=n(348),$h=n(609),Zh=n(391);function Jh(e){return(Jh="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 ty(e,t){return(ty=Object.setPrototypeOf?Object.setPrototypeOf.bind():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"===Jh(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oy=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 function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),i.call(this,ce.a.getPhrase("upload.internetConnectivityError","title"))}return t=o,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:ce.a.getPhrase("upload.internetConnectivityError","heading"),text:ce.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:ce.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&ey(t.prototype,n),r&&ey(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(lu.a);function ay(e){return(ay="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 sy(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 cy(e,t){return(cy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function uy(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=fy(e);if(t){var i=fy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return ly(this,n)}}function ly(e,t){if(t&&("object"===ay(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 fy(e){return(fy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var py,dy,hy=[],yy=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&&cy(e,t)}(a,e);var t,n,i,o=uy(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 Zh.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 Zh(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&&(Ba.each(hy,(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=Ba.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 oy):"canceled"!==e.status&&r.a.ErrorHelper.throw(new uu(ce.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()}}])&&sy(t.prototype,n),i&&sy(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function my(e){return(my="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 vy(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function by(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 wy(e,t,n){return t&&by(e.prototype,t),n&&by(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _y(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&&Sy(e,t)}function Sy(e,t){return(Sy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ty(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=Oy(e);if(t){var i=Oy(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ey(this,n)}}function Ey(e,t){if(t&&("object"===my(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 Oy(e){return(Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Cy,ky=function(e){_y(n,e);var t=Ty(n);function n(){return gy(this,n),t.call(this,{dataProvider:Le.a.getInstance(Xa.Ajax),cache:Le.a.getInstance(Da.Fifo),alertService:Le.a.getInstance(us.a.ALERT)})}return wy(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();Ba.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(){Le.a.releaseInstance(Xa.Ajax).releaseInstance(Da.Fifo)}}]),n}(bs);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(Cy||(Cy={}));var Py=(vy(py={},Cy.Video,"video/*"),vy(py,Cy.LearningResource,Qh.b.RESOURCES),vy(py,Cy.Subtitle,Qh.b.SUBTITLES),py),Ay=(vy(dy={},Cy.Video,Ts.c.VIDEO_UPLOAD),vy(dy,Cy.LearningResource,Ts.c.RESOURCE_UPLOAD),vy(dy,Cy.Subtitle,Ts.c.SUBTITLE_UPLOAD),dy),Iy=function(e){_y(n,e);var t=Ty(n);function n(){return gy(this,n),t.apply(this,arguments)}return wy(n,[{key:"initialize",value:function(){this.uploadDataService=new ky,this.progressViewModel=eh.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"channelName",get:function(){return Ay[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 yy({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 yy.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;Ba.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new $h.a(ce.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===Cy.Video&&(r=r.replace(/\.[^/.]+$/,"")),i.add({id:n.uploader.getId(e),file:e,name:r},{at:i.length-1})}),(function(){t&&Uu.a.logUserAction({uploadCount:e.length},t),u.Radio.channel(n.channelName).trigger(yh.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(){Uu.a.logUserAction({id:i.cvUpload.uploadId},{entity:O.EntityType.Video,actionType:O.UserAction.Upload,workflowPhase:O.WorkflowPhase.Discard,descriptor:O.OperationDescriptor.Single,location:O.LocationContext.MyUploads}),u.Radio.channel(t.channelName).trigger(yh.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),Uu.a.logUserAction({id:e.cvUpload.uploadId},{entity:O.EntityType.Video,actionType:O.UserAction.Upload,workflowPhase:O.WorkflowPhase.Complete,descriptor:O.OperationDescriptor.Single,location:O.LocationContext.VideoUpload}),u.Radio.channel(this.channelName).trigger(yh.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));Ba.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return Py[this.uploadType]}}]),n}(r.a.Service),Ly=function(e){_y(n,e);var t=Ty(n);function n(){return gy(this,n),t.apply(this,arguments)}return wy(n,[{key:"uploadType",get:function(){return Cy.Video}},{key:"name",get:function(){return ws.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Kh.Temporary}}]),n}(Iy),xy=function(e){_y(n,e);var t=Ty(n);function n(){return gy(this,n),t.apply(this,arguments)}return wy(n,[{key:"uploadType",get:function(){return Cy.Subtitle}},{key:"name",get:function(){return ws.b.SubtitleUpload}},{key:"fileLifestyle",get:function(){return Kh.Permanent}}]),n}(Iy),jy=function(e){_y(n,e);var t=Ty(n);function n(){return gy(this,n),t.apply(this,arguments)}return wy(n,[{key:"uploadType",get:function(){return Cy.LearningResource}},{key:"name",get:function(){return ws.b.ResourceUpload}},{key:"fileLifestyle",get:function(){return Kh.Permanent}}]),n}(Iy);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)}}var Ny=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 zc.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=Sn.a.videos(e,(function(e){bp.a.isFunction(t)&&t(new r.a.Collection(e))}));return i.a.hooklessFetch(this.store,n),null}}])&&Ry(t.prototype,n),o&&Ry(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();function Dy(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 By,Uy,My,Vy=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:Za.a.DELETE}},Fy=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:Za.a.DELETE}},Hy=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:Za.a.POST}},zy=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Wy=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Gy=function(e,t){return{url:"/api/upload/complete",key:"complete:upload:".concat(e.id),type:Za.a.POST,success:t,data:e}},qy=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 zc.a.VideoUpload}},{key:"clearPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,Vy(e,t))}},{key:"cancelPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,Fy(e,t))}},{key:"retryPendingItems",value:function(e,t){i.a.fetch(this.store.dispatch,Hy(e,t))}},{key:"getPendingItem",value:function(e,t){i.a.fetch(this.store.dispatch,zy(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){var t=Wy(e);i.a.ajaxRequest({resource:t.url,type:Za.a.GET,success:e,error:function(){}})}},{key:"completeVideoUpload",value:function(e,t){i.a.fetch(this.store.dispatch,Gy(e,t))}}])&&Dy(t.prototype,n),o&&Dy(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}(),Yy=n(300);function Ky(e){return(Ky="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 Xy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qy(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(){return($y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=Zy(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 Zy(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nm(e)););return e}function Jy(e,t){return(Jy=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function em(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=nm(e);if(t){var i=nm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tm(this,n)}}function tm(e,t){if(t&&("object"===Ky(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 nm(e){return(nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(By||(By={})),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"}(Uy||(Uy={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(My||(My={}));var rm=ce.a.encloseNamespace("upload.services"),im=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&&Jy(e,t)}(o,e);var t,n,r,i=em(o);function o(){return Xy(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){$y(nm(o.prototype),"initialize",this).call(this),this.videoUploadDataService=Le.a.getInstance(zc.a.VideoUpload,this),this.pendingItemsService=Le.a.getInstance(zc.b.PendingItems,this),this.userDataService=Le.a.getInstance(zc.a.FlightUser,this),this.alertService=Le.a.getInstance(us.a.ALERT,this),this.listenTo(this.channelName,yh.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,yh.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,yh.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:cs.a.Success,heading:rm("startUploadAlertHeading"),message:1===e.length?rm("startUploadSingleAlertBody",{videoName:e[0].name}):rm("startUploadMultipleAlertBody",{uploadCount:e.length})},n=ie.a.getCurrentContext().appLink;!!zf.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=rm("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(yh.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:By.Upload,origin:Uy.Lite,fileId:t.id,subtitleOptions:{subtitleExtractOptions:My.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;$y(nm(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)}}])&&Qy(t.prototype,n),r&&Qy(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ly);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){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 sm(e,t){return(sm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function cm(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=lm(e);if(t){var i=lm(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"===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 lm(e){return(lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fm=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&&sm(e,t)}(o,e);var t,n,r,i=cm(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 ws.b.ImageUrl}},{key:"getImageUrls",value:function(){return this.imageUrls}}])&&am(t.prototype,n),r&&am(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);var pm=n(343),dm=n(327);function hm(e,t){return wf.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var ym={version:null};function mm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ym,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case dm.a.API_RESPONSE:return hm(e,t)}return e}function vm(e){return(vm="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 gm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bm(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),gm({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),gm({},t.payload.dataOrKey,t.payload.keyData)))):("object"===vm(t.payload.dataOrKey)&&Array.isArray(t.payload.dataOrKey),Object.assign(Object.assign({},e),gm({},t.payload.viewModelKey,t.payload.dataOrKey)))}function wm(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ke.a.UPDATE:return bm(e,t)}return e}var _m=n(251);function Sm(e){return(Sm="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 Tm(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 Em(e,t){return(Em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Om(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=km(e);if(t){var i=km(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Cm(this,n)}}function Cm(e,t){if(t&&("object"===Sm(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 km(e){return(km=Object.setPrototypeOf?Object.getPrototypeOf.bind():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&&Em(e,t)}(a,e);var t,n,i,o=Om(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,ce.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:ce.a.getPhrase("shared.oldVersion","heading"),text:ce.a.getPhrase("shared.oldVersion","body"),buttons:[{text:ce.a.getPhrase("shared.oldVersion","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}])&&Tm(t.prototype,n),i&&Tm(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(lu.a);function Am(e){return(Am="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 Im(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lm(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 xm(e,t,n){return t&&Lm(e.prototype,t),n&&Lm(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jm(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&&Rm(e,t)}function Rm(e,t){return(Rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nm(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=Bm(e);if(t){var i=Bm(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Dm(this,n)}}function Dm(e,t){if(t&&("object"===Am(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 Bm(e){return(Bm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Um=function(e){jm(n,e);var t=Nm(n);function n(){return Im(this,n),t.apply(this,arguments)}return xm(n,[{key:"onDone",value:function(){r.a.LocationUtils.PageLoad("/login?returnUrl=".concat(encodeURIComponent(r.a.LocationUtils.GetCurrentUrl())))}}]),n}(function(e){jm(n,e);var t=Nm(n);function n(e){var r;return Im(this,n),(r=t.call(this,ce.a.getPhrase("shared.authentication","title"))).btnVariant=e,r}return xm(n,[{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:ce.a.getPhrase("shared.authentication","heading"),text:ce.a.getPhrase("shared.authentication","body"),buttons:[{text:ce.a.getPhrase("shared.authentication","reload"),className:"btn btn-".concat(this.btnVariant),success:!0}]}}},{key:"onDone",value:function(){r.a.LocationUtils.Reload()}}]),n}(lu.a)),Mm=n(271),Vm={"{gateway}":"gatewayApiUrl","{image}":"imageCdnUrl"};function Fm(e){return function(t,n){var r=Object.keys(Vm).find((function(e){return t.resource.startsWith(e)}));if(!r)return n(t);function a(){n(t)}function s(e,i){var o=e[Vm[r]],a=Object.assign(Object.assign({},t),{resource:Mm.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,ve.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 Hm,zm=/\(([^()]*)\)/g;function Wm(e,t){return function(n,i){var o=new r.a.Middleware;decodeURIComponent(n.resource).replace(zm,(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 Gm(e,t){return function(n){var o=new r.a.Middleware;o.use(Fm(e.store)),o.use(Wm(e.store,t)),o.go(n,(function(e){i.a.ajaxRequest(e)}))}}function qm(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=mn.a.first(i.entityIds);if(a)return n.entities[a]}}(e);if(!a||a.contentRegion!==Hm.US)return t(r);n.e(193).then(n.bind(null,2301)).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===vn.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"}(Hm||(Hm={}));var Ym=n(268);function Km(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 Xm(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 Qm=[L.a.ShareToGoogleClassroom,L.a.ShareToMicrosoftTeams,L.a.DefaultPlaybackQuality,L.a.DefaultLocalCachePlaybackQuality,L.a.EnableSubtitlesDefault,L.a.LTI,L.a.LiteUpgradeTime,L.a.LiteUpgradeTypeCustomer,L.a.LiteUpgradeComplete,L.a.HasBulkUserActions];var $m,Zm=[L.a.HasCompletedOnboarding,L.a.BulkOnboardingPreferencesState,L.a.LiteUpgradeTypeUser,L.a.HasCompletedUpgradeOnboarding,L.a.LiteUpgradeFeedback];function Jm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ev,tv=(Jm($m={},Mc.a.VIDEO_COLLECTION,Xm(Mc.a.VIDEO_COLLECTION)),Jm($m,Ym.a.WIDGET_VIDEO_COLLECTION,Xm(Ym.a.WIDGET_VIDEO_COLLECTION)),Jm($m,Mc.a.CLIP,Km(Mc.a.CLIP)),Jm($m,Mc.a.CLIP_COLLECTION,Km(Mc.a.CLIP_COLLECTION)),Jm($m,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)})))})),Jm($m,"(customerSettings)",(ev="(customerSettings)",function(e,t){var n=Qm.map((function(e){return"type=".concat(e)})).join("&"),r=e.resource.replace(ev,n);t(Object.assign(Object.assign({},e),{resource:r}))})),Jm($m,"(userSettings)",function(e){return function(t,n){var r=Zm.map((function(e){return"type=".concat(e)})).join("&"),i=t.resource.replace(e,r);n(Object.assign(Object.assign({},t),{resource:i}))}}("(userSettings)")),$m);var nv=n(279);function rv(e){return(rv="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 iv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ov(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 av(e,t){return(av=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sv(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=uv(e);if(t){var i=uv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cv(this,n)}}function cv(e,t){if(t&&("object"===rv(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 uv(e){return(uv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lv=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&&av(e,t)}(o,e);var t,n,r,i=sv(o);function o(){return iv(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 ce.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}},{key:"showSearchTips",get:function(){return!1}},{key:"useContextualSearch",get:function(){return!1}}])&&ov(t.prototype,n),r&&ov(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(nv.BaseSearchAppVariables),fv=n(63),pv=n(822),dv=n.n(pv);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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mv(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 vv(e,t){return(vv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gv(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=wv(e);if(t){var i=wv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return bv(this,n)}}function bv(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 wv(e){return(wv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _v=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&&vv(e,t)}(o,e);var t,n,r,i=gv(o);function o(){return yv(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[fv.a.VideoReviewReminder,fv.a.VideoReviewAddedToLibrary,fv.a.CustomLibraryVideoAvailable,fv.a.WorkspaceVideoAvailable,fv.a.ExchangeVideoAvailable,fv.a.NewDirectShare,fv.a.MyVideosVideoAvailable]}},{key:"unsupportedNotificationLinks",get:function(){return[fv.a.EditedVideoAvailable,fv.a.VideoReviewAddedToLibrary,fv.a.VideoReviewReminder,fv.a.StaffRequest,fv.a.StaffRequestFulfilled,fv.a.SuggestEdit,fv.a.VideoRequestAvailable,fv.a.VideoRequestDenied,fv.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return Jt.a.EmptyStates.NOTIFICATIONS}},{key:"bellIconColor",get:function(){return"dark"}},{key:"notificationsViewClassNames",get:function(){return"px-3 ".concat(dv.a.notificationsView)}}])&&mv(t.prototype,n),r&&mv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(nv.BaseNotificationsAppVariables);var Sv=n(139);function Tv(e){return(Tv="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 Ev={register:function(){var e=this;Sv.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return ce.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new Ce.a("No language key provided.")),!1):"object"!==Tv(t)?(r.a.ErrorHelper.throw(new Ce.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!Ba.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new Ce.a("No `lang` property provided.")),!1)}};var Ov,Cv=n(103);function kv(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"}(Ov||(Ov={}));var Pv={curriculum:!1},Av=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:Pv},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return ws.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Cv.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&kv(t.prototype,n),r&&kv(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();var Iv=n(183),Lv=n(331);function xv(e){return(xv="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 jv(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 Rv(e,t){return(Rv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Nv(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 Dv(this,n)}}function Dv(e,t){if(t&&("object"===xv(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.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Uv=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&&Rv(e,t)}(a,e);var t,n,i,o=Nv(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={},eh.get("application:options").set(null!=e?e:{}),t.bindNavigationListener(),t}return t=a,(n=[{key:"name",get:function(){return xe.a.Analytics}},{key:"registerTransport",value:function(e,t){return this.transport=new e(t),this.bindTransportListeners(),this}},{key:"bindTransportListeners",value:function(){this.listenTo(Lv.a.ANALYTICS,Iv.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(Ba.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 Ce.a("Classes registered with ".concat(this.name," must have a unique name property.")));var n=function(t){return bp.a.isFunction(e.prototype.isType)&&e.prototype.isType(t)};(n("BaseAnalyticsClient")||"CollectionApiClient"===t)&&this.clients[t]&&r.a.ErrorHelper.throw(new Ce.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 Ce.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){Uu.a.logNavigate(e,t)}}])&&jv(t.prototype,n),i&&jv(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Service);function Mv(e){return(Mv="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 Vv(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 Fv(e,t,n){return t&&Vv(e.prototype,t),n&&Vv(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zv(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&&Wv(e,t)}function Wv(e,t){return(Wv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Gv(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=Yv(e);if(t){var i=Yv(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return qv(this,n)}}function qv(e,t){if(t&&("object"===Mv(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 Yv(e){return(Yv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kv=function(e){zv(n,e);var t=Gv(n);function n(){return Hv(this,n),t.apply(this,arguments)}return Fv(n,[{key:"name",get:function(){return"EventTransport"}},{key:"channelName",get:function(){return"event:transport"}},{key:"publish",value:function(e){this.getChannel().trigger(Iv.a.Outlet,e)}},{key:"subscribe",value:function(e){var t=e,n=function(n){bp.a.isFunction(t.shouldLog)&&!t.shouldLog(n)||e.log(n)};Ba.isFunction(t.listenTo)?t.listenTo(this.getChannel(),Iv.a.Outlet,n):this.listenTo(this.getChannel(),Iv.a.Outlet,n)}}]),n}(function(e){zv(n,e);var t=Gv(n);function n(){return Hv(this,n),t.apply(this,arguments)}return Fv(n)}(Qa.Object));function Xv(e){return(Xv="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 Qv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $v(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 Zv(e,t){return(Zv=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Jv(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=tg(e);if(t){var i=tg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return eg(this,n)}}function eg(e,t){if(t&&("object"===Xv(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 tg(e){return(tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ng=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&&Zv(e,t)}(o,e);var t,n,r,i=Jv(o);function o(){return Qv(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"name",get:function(){return"UserDataEnricher"}},{key:"initialize",value:function(){this.user=eh.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}}}])&&$v(t.prototype,n),r&&$v(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(Ve),rg=n(252);function ig(e){return(ig="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 og(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 ag(e,t){return(ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function sg(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=ug(e);if(t){var i=ug(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return cg(this,n)}}function cg(e,t){if(t&&("object"===ig(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 ug(e){return(ug=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lg=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&&ag(e,t)}(a,e);var t,n,i,o=sg(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 Xs.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=rg.a.getOperatingSystem(),t=rg.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)}}}])&&og(t.prototype,n),i&&og(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(Ve),fg=n(337);function pg(e){return(pg="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 dg(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 hg(e,t){return(hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function yg(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=vg(e);if(t){var i=vg(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return mg(this,n)}}function mg(e,t){if(t&&("object"===pg(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 vg(e){return(vg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gg=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&&hg(e,t)}(o,e);var t,n,r,i=yg(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}}])&&dg(t.prototype,n),r&&dg(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.a.Service);function bg(e){return(bg="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 wg(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _g(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 Sg(e,t){return(Sg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Tg(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=Og(e);if(t){var i=Og(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Eg(this,n)}}function Eg(e,t){if(t&&("object"===bg(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 Og(e){return(Og=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}gg.type="BaseAnalyticsClient";var Cg=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&&Sg(e,t)}(a,e);var t,n,i,o=Tg(a);function a(){return wg(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"name",get:function(){return"DebuggerClient"}},{key:"shouldLog",value:function(){return ne.a.isDevelopment}},{key:"log",value:function(e){var t=Ba.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)}}])&&_g(t.prototype,n),i&&_g(t,i),Object.defineProperty(t,"prototype",{writable:!1}),a}(gg),kg=n(211),Pg=n(297),Ag={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 Gd(2),c=function(){s.decrement(),s.getValue()>0||t(Ag.mapCurrentUserToAnalyticsUser(n,r,a))};i.a.hooklessFetch(e.store,o.a.user(n.id,(function(e){r=e,c()}))),i.a.hooklessFetch(e.store,Pg.a.customer(n.customerId,(function(e){a=e,c()})))}else t(null)})))}))},mapCurrentUserToAnalyticsUser:function(e,t,n){var r,i=$l.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===Li.a.Staff?"staff":null===(r=null==t?void 0:t.masterYearGroup)||void 0===r?void 0:r.name}}},Ig={logError:function(e){bp.a.isFunction(null===trackJs||void 0===trackJs?void 0:trackJs.track)&&trackJs.track(e)}},Lg={formatData:function(e){var t=kg.a.formatData(e),n={};return e.plugin&&(n.plugin=e.plugin),Object.assign(Object.assign({},n),t)}},xg=l.a.Router.prototype._routeToRegExp("share/:id(/)"),jg=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)");function Rg(e){return(Rg="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 Ng(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Ng=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=u(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===l)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}(e,n,a),o}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var l={};function f(){}function p(){}function d(){}var h={};s(h,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var v=d.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var c=u(e[i],e,o);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==Rg(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(c.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=u(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:O}}function O(){return{value:void 0,done:!0}}return p.prototype=d,s(v,"constructor",d),s(d,"constructor",p),p.displayName=s(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}var Dg=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())}))},Bg=l.a.Router.prototype._routeToRegExp("share/embed/:id(/)"),Ug=l.a.Router.prototype._routeToRegExp("videos/embed/:videoId(/)");var Mg=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});Mg.addInitializationStep((function(e,t){e.registerLayout(C,Pd).registerLayout(k,zd),t(e)})).addInitializationStep((function(e,t){Le.a.registerInstance(Ka,{size:100}),t(e)})).addInitializationStep((function(e,t){Le.a.registerInstance(ss,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep((function(e,t){var n,o,a,s,c=Object(pm.combineReducers)({flightData:i.a.FlightReducer,applicationData:mm,viewModelData:wm}),u=i.a.createMiddleware({fetchData:Gm(e,tv),bootstrappedData:window.bootstrapData||{},defaultExpiryTime:_s.a.STANDARD}),l=(o=(n={oldVersionError:Pm,authenticationError:Um}).oldVersionError,a=n.authenticationError,function(e){return function(t){return function(n){var i,s,c=n;if(n.type===_m.Actions.API_ERROR&&a&&(null===(i=null==c?void 0:c.xhr)||void 0===i?void 0:i.status)===wn.a.Unauthorized)return Ma.c.throw(new a("dark"));if(n.type===_m.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(pm.createStore)(c,Object(pm.applyMiddleware)(u,qm,l));s=f,e.registerStore(s),t(),delete window.bootstrapData})).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:Uc.a.Success,type:cs.a.Success},defaultErrorAlert:{heading:Uc.a.Fail,type:cs.a.Fail},alertViewCtor:Ac};Le.a.registerSingleton(new cs.b(n));var r=Le.a.getInstance(us.a.ALERT),i={cache:Da.Fifo,dataProvider:Xa.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};Le.a.registerDataService(Bc,i).registerDataService(xs,i).registerDataService(vc,i);var o={store:e.store};Le.a.registerInstance(Hc,o).registerInstance(Gc,o).registerInstance(Yc,o).registerInstance(Xc,o);var a={cache:Da.Fifo,dataProvider:Xa.Notifications,alertService:r};Le.a.registerDataService(Ks,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){Le.a.registerInstance(fm,{imageUrls:Jt.a}).registerInstance(im).registerInstance(Ny,{store:e.store}).registerInstance(qy,{store:e.store}).registerInstance(Th).registerInstance(Yy.a).registerInstance(jy).registerInstance(xy).registerInstance(Lh);var n=new Gd(2),r=function(){n.decrement(),n.getValue()>0||(Le.a.releaseInstance(ws.a.Language),Le.a.releaseInstance(zc.a.FlightConfig),t(e))};Le.a.getInstance(ws.a.Language).getLanguageConfig((function(e){ce.a.setConfig(e),r()})),Le.a.getInstance(zc.a.FlightConfig).getConfig((function(e){Le.a.registerInstance(Xh,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),r()}))})).addInitializationStep((function(e,t){var n,r,o,a=Le.a.getInstance(zc.a.FlightConfig),s=Le.a.getInstance(zc.a.FlightUser),c=new Gd(3),u=function(){c.decrement(),c.getValue()>0||(r.isAuthenticated?p(n.instanceRegion):f())},f=function(){var t=l.a.history.getFragment(Ae.LocationUtils.GetCurrentPath()),r=xg.test(t),o=jg.test(t);if(r||o){var a="";r?a=l.a.Router.prototype._extractParameters(xg,t)[0]:o&&(a=l.a.Router.prototype._extractParameters(jg,t)[0]),a?i.a.hooklessFetch(e.store,bn.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 Uv({user:r,config:n});Le.a.registerSingleton(a),a.registerTransport(Kv),a.registerClient(Cg),a.registerClient(fg.a,{productName:"lite.web",productVersion:o,regionName:i,collectionApiUrls:n.collectionApiUrls,collectionApiClientId:n.collectionApiClientId,getUser:function(){return Ag.getUser(e)},shouldLog:kg.a.shouldLog,formatData:Lg.formatData,logError:Ig.logError}),a.registerEnricher(lg,{productName:"ClickView Primary",productVersion:o}),a.registerEnricher(ng);var s=Pe.b.get(Ie.a.PLUGIN);(null==s?void 0:s.consumerKey)&&!a.hasEnricher(Ye)&&a.registerEnricher(Ye,{consumerKey:s.consumerKey}),Le.a.releaseInstance(zc.a.FlightConfig),Le.a.releaseInstance(zc.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:Ba.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Le.a.registerInstance(lv).registerInstance(_v),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(se.a,bu).registerErrorHandler(lu.a,wu).registerErrorHandler(uu,vu).registerErrorHandler($t.a,gu).registerErrorHandler(ae.a,bu).registerErrorHandler(fu.a,bu).registerErrorHandler(pu.a,bu).registerErrorHandler(du.a,gu).registerErrorHandler(hu.a,bu).registerErrorHandler(yu.a,gu).registerErrorHandler(mu.a,bu).registerErrorHandler(On.a,_u).registerErrorHandler(zn.a,Su),t()})).addInitializationStep((function(e,t){function n(){r.a.ErrorHelper.throw(new ae.a)}e.registerApplication(yn).registerApplication(Ao).registerApplication(Qr).registerApplication(gi).registerApplication(Cr).registerApplication(Ur).registerApplication(si).registerApplication(Ai).registerApplication(ao).registerApplication(Vo).registerApplication(Jo),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(Sa).registerApplication(Na),void t(e);e.registerApplication(Qt).registerApplication(Xi).registerApplication(St).registerApplication(go).registerApplication(Mt).registerApplication(fa),t(e)}),n)):t(e)}),n))})).addInitializationStep((function(e,t){Ev.register(),t(e)})).addInitializationStep((function(e,t){Le.a.registerSingleton(new Av({onlineRole:Cv.a.Staff,customerType:Ov.Primary})),t(e)})),Mg.addStartUpStep((function(e,t,n){Le.a.getInstance(zc.a.FlightConfig).getConfig((function(){ne.a.setUpVariables({isDevelopment:!1}),n(e,t),Le.a.releaseInstance(zc.a.FlightConfig)}))})).addStartUpStep((function(e,t,n){return Dg(this,void 0,void 0,Ng().mark((function s(){var c,f,d,h,y,m,v;return Ng().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!(null==(c=Pe.b.get(Ie.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()),!(Bg.test(f)||Ug.test(f))){s.next=9;break}return n(e,t),s.abrupt("return");case 9:return s.prev=9,s.next=12,i.a.hooklessFetchAsync(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.hooklessFetchAsync(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.hooklessFetchAsync(e.store,I.a.customerSettings(d.customerId));case 24:if(h=s.sent,y=x(h,L.a.LiteUpgradeComplete),m=x(h,L.a.LiteUpgradeTypeCustomer),!y&&m){s.next=30;break}return n(e,t),s.abrupt("return");case 30:return s.next=32,i.a.hooklessFetchAsync(e.store,Pg.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(Ae.EventNames.ROUTE,(function(){window.Intercom("update")})),j.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]])})))})),Mg.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}])}));