text: window.Player=function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}({"./node_modules/css-loader/index.js?!./node_modules/postcss-loader/lib/index.js!./node_modules/sass-loader/lib/loader.js!./src/style/index.scss":
  /*!*********************************************************************************************************************************************!*\
    !*** ./node_modules/css-loader??ref--5-1!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./src/style/index.scss ***!
    \*********************************************************************************************************************************************/
  /*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../node_modules/css-loader/lib/css-base.js */"./node_modules/css-loader/lib/css-base.js")(!1)).push([e.i,"@-webkit-keyframes playPause{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}99%{-webkit-transform:scale(1.3);transform:scale(1.3);opacity:0}to{-webkit-transform:scale(0);transform:scale(0);opacity:0}}@-webkit-keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@-webkit-keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@-webkit-keyframes enterTips{0%{opacity:0;left:0;width:3px}50%{opacity:1;left:50%;width:5px}to{opacity:0;left:100%;width:3px}}.hkplayer-download{position:relative;width:36px;height:40px;-webkit-order:8;-moz-box-ordinal-group:9;order:8;cursor:pointer}.hkplayer-inactive .hkplayer-download,.hkplayer-nostart .hkplayer-download{display:none}.hkplayer-download:hover .hkplayer-tips{display:block}.hkplayer-download-img{display:inline-block;width:24px;height:24px;margin-top:7px!important;margin-left:4px!important;background:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23FFF' fill-rule='evenodd'%3E%3Crect x='11' y='4' width='2' height='12' rx='1'/%3E%3Crect x='3' y='18' width='18' height='2' rx='1'/%3E%3Crect transform='rotate(90 4 17.5)' x='1.5' y='16.5' width='5' height='2' rx='1'/%3E%3Crect transform='rotate(90 20 17.5)' x='17.5' y='16.5' width='5' height='2' rx='1'/%3E%3Cpath d='M11.988 14.3l-4.243-4.242a1 1 0 0 0-1.414 1.414l4.95 4.95a1 1 0 0 0 1.414 0l4.95-4.95a1 1 0 1 0-1.414-1.414L11.988 14.3z'/%3E%3C/g%3E%3C/svg%3E\") no-repeat 50%/100% 100%}.hkplayer-rotate{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;display:inline-block;cursor:pointer;margin:0 4px}.hkplayer-rotate:hover .hkplayer-tips{display:block}.hkplayer-rotate-img{width:20px;height:20px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cg clip-path='url(%23a)' fill='%23fff'%3E%3Cpath d='M11.666 9.167h-7.5a2.5 2.5 0 0 0-2.5 2.5v4.166a2.5 2.5 0 0 0 2.5 2.5h7.5a2.5 2.5 0 0 0 2.5-2.5v-4.166a2.5 2.5 0 0 0-2.5-2.5z'/%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.881 4.063a.83.83 0 0 0 .105 1.193L6.99 8.06A.833.833 0 1 0 8.128 6.84L6.62 5.435l3.199-.013a6.667 6.667 0 0 1 6.374 9.322.833.833 0 0 0 1.528.665A8.334 8.334 0 0 0 9.8 3.756l-3.367.013 1.53-1.64A.833.833 0 1 0 6.743.992L3.903 4.04a.83.83 0 0 0-.021.023z'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h20v20H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E\");background-repeat:no-repeat;background-position:10px 10px}.hkplayer{background:rgba(0,0,0,.26);width:100%;height:100%;position:relative;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.hkplayer *{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}.hkplayer .hkplayer-none{display:none}.hkplayer.hkplayer-is-fullscreen{width:100%!important;height:100%!important;padding-top:0!important;z-index:9999}.hkplayer.hkplayer-is-fullscreen.hkplayer-inactive{cursor:none}.hkplayer video{width:100%;height:100%;outline:none}.hkplayer-icon{display:block;width:40px;height:40px;overflow:hidden;fill:#fff}.hkplayer-controls{display:-webkit-flex;display:-moz-box;display:flex;position:absolute;bottom:0;left:0;right:0;height:40px;background-image:linear-gradient(-1deg,rgba(0,0,0,.3),transparent);z-index:10}.hkplayer-nostart .hkplayer-controls{display:none}.no-controls .hkplayer-controls{display:none!important}.hkplayer-inactive .hkplayer-controls,.hkplayer-is-live .hkplayer-controls>*{display:none}.hkplayer-is-live .hkplayer-controls .hkplayer-fullscreen,.hkplayer-is-live .hkplayer-controls .hkplayer-live,.hkplayer-is-live .hkplayer-controls .hkplayer-placeholder,.hkplayer-is-live .hkplayer-controls .hkplayer-play,.hkplayer-is-live .hkplayer-controls .hkplayer-play-img,.hkplayer-is-live .hkplayer-controls .hkplayer-volume{display:block}.hkplayer-progress{display:block;position:absolute;height:20px;line-height:20px;left:0;right:0;outline:none;top:-10px;z-index:35}.hkplayer.hkplayer-definition-active .hkplayer-progress,.hkplayer.hkplayer-textTrack-active .hkplayer-progress,.hkplayer.hkplayer-volume-active .hkplayer-progress{z-index:15}.hkplayer-progress-outer{background:hsla(0,0%,100%,.3);display:block;height:3px;line-height:3px;margin-top:8.5px;width:100%;position:relative;cursor:pointer}.hkplayer-progress-cache,.hkplayer-progress-played{display:block;height:100%;line-height:1;position:absolute;left:0;top:0}.hkplayer-progress-cache{width:0;background:hsla(0,0%,100%,.5)}.hkplayer-progress-played{display:block;width:0;background-image:linear-gradient(-90deg,#fa1f41,#e31106);border-radius:0 1.5px 1.5px 0}.hkplayer-progress-btn{display:none;position:absolute;left:0;top:-6px;width:14px;height:16px;border-radius:6px;background:#fff;box-shadow:0 0 2px 0 rgba(0,0,0,.26)}.hkplayer-progress-point{position:absolute}.hkplayer-progress-point.hkplayer-tips{margin-left:0;top:-25px;display:none;z-index:100;-webkit-transform:translateX(0);-ms-transform:translateX(0);transform:translateX(0)}.hkplayer-progress-dot{display:inline-block;position:absolute;height:3px;width:5px;top:0;background:#fff;border-radius:6px;z-index:16}.hkplayer-progress-dot .hkplayer-progress-tip{position:absolute;left:0;top:-40px;height:auto;line-height:30px;width:auto;-webkit-transform:scale(.8);-ms-transform:scale(.8);transform:scale(.8);background:rgba(0,0,0,.3);border-radius:6px;border:1px solid rgba(0,0,0,.8);cursor:default;white-space:nowrap;display:none}.hkplayer-progress-dot-show .hkplayer-progress-tip{display:block}.hkplayer-progress-thumbnail{position:absolute;-moz-box-sizing:border-box;box-sizing:border-box}.hkplayer-progress-thumbnail.hkplayer-tips{margin-left:0;display:none;z-index:99}.hkplayer-progress:focus .hkplayer-progress-outer,.hkplayer-progress:hover .hkplayer-progress-outer{height:6px;margin-top:7px}.hkplayer-progress:focus .hkplayer-progress-dot,.hkplayer-progress:hover .hkplayer-progress-dot{height:6px}.hkplayer-progress:focus .hkplayer-progress-btn,.hkplayer-progress:hover .hkplayer-progress-btn{display:block}.hkplayer-play,.hkplayer-play-img{position:relative;-webkit-order:0;-moz-box-ordinal-group:1;order:0;display:block;cursor:pointer}.hkplayer-play-img .hkplayer-icon,.hkplayer-play .hkplayer-icon{margin-top:0;height:40px;width:40px}.hkplayer-play-img .hkplayer-icon svg,.hkplayer-play .hkplayer-icon svg{position:relative;left:50%;top:50%;-webkit-transform:translate(-30%,-42%);-ms-transform:translate(-30%,-42%);transform:translate(-30%,-42%)}.hkplayer-play-img:hover,.hkplayer-play:hover{opacity:.85}.hkplayer-play-img:hover .hkplayer-tips,.hkplayer-play:hover .hkplayer-tips{display:block}.hkplayer-playNext,.hkplayer-playNext-img{-webkit-order:1;-moz-box-ordinal-group:2;order:1;cursor:pointer}.hkplayer-playNext-img:hover,.hkplayer-playNext:hover{opacity:.85}.hkplayer-time{-webkit-order:2;-moz-box-ordinal-group:3;order:2;display:inline-block;opacity:.9;text-shadow:0 0 4px rgba(0,0,0,.6);font-size:12px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#fff}.hkplayer-time-wapper{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.hkplayer-time span:after{content:\"/\";display:inline-block;padding:0 3px}.hkplayer-time em{color:hsla(0,0%,100%,.5)}.hkplayer-tips{display:none;white-space:nowrap;position:absolute;top:-28px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);text-align:center;padding:2px 6px;border-radius:4px;background-color:rgba(0,0,0,.8);opacity:.85;font-family:PingFangSC;font-size:14px;font-weight:400;font-style:normal;font-stretch:normal;line-height:normal;letter-spacing:normal;color:#fff}.hkplayer-volume{outline:none;-webkit-order:4;-moz-box-ordinal-group:5;order:4;width:40px;height:140px;display:inline-block;position:relative;margin-top:-100px;z-index:38}.hkplayer-volume .hkplayer-icon{cursor:pointer;position:absolute;bottom:0}.hkplayer-volume .hkplayer-icon svg{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.hkplayer-slider{display:none;position:absolute;width:40px;height:108px;background:rgba(0,0,0,.54);bottom:42px;outline:none;left:0;border-radius:4px}.hkplayer.hkplayer-volume-active .hkplayer-slider{display:block}.hkplayer-slider:after{content:\" \";display:block;height:15px;width:28px;position:absolute;bottom:-15px;left:0;z-index:20}.hkplayer-bar,.hkplayer-drag{display:block;position:absolute;bottom:15px;left:50%;-webkit-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);background:hsla(0,0%,100%,.3);border-radius:100px;width:4px;height:78px;outline:none;cursor:pointer}.hkplayer-drag{bottom:0;background:#fa1f41;max-height:78px}.hkplayer-drag:after{content:\" \";display:inline-block;width:8px;height:8px;background:#fff;box-shadow:0 0 5px 0 rgba(0,0,0,.26);position:absolute;border-radius:50%;left:-2px;top:-6px}.hkplayer-placeholder{-webkit-flex:1;-moz-box-flex:1;flex:1;-webkit-order:3;-moz-box-ordinal-group:4;order:3;display:block}.hkplayer-start{border-radius:50%;display:inline-block;width:70px;height:70px;background:hsla(0,0%,100%,.3);overflow:hidden;text-align:center;line-height:70px;vertical-align:middle;position:absolute;left:50%;top:50%;z-index:1000;margin:-55px auto auto -35px;cursor:pointer}.hkplayer-inactive .hkplayer-start,.hkplayer-nostart .hkplayer-start{margin:-35px auto auto -35px}.hkplayer-start svg{fill:hsla(0,0%,100%,.7);margin:14px}.hkplayer-start.hkplayer-start-interact{-webkit-animation:playPause .4s ease-out forwards;animation:playPause .4s ease-out forwards}.hkplayer-start:hover{background:hsla(0,0%,100%,.5)}.hkplayer-start:hover svg{fill:hsla(0,0%,100%,.6)}.hkplayer-start-img{display:none;position:absolute;left:50%;top:50%;z-index:1000;cursor:pointer}.hkplayer-nostart .hkplayer-start-img{display:block}.hkplayer-start-img.hkplayer-start-interact{-webkit-animation:playPause .4s ease-out forwards;animation:playPause .4s ease-out forwards}.hkplayer-start-img:hover{opacity:.85}.hkplayer-textTrack{-webkit-order:7;-moz-box-ordinal-group:8;order:7;width:60px;height:150px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-left:10px;margin-top:-119px;margin-bottom:11px}.hkplayer-textTrack ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;left:0;text-align:center;white-space:nowrap;margin-left:-10px;z-index:26;cursor:pointer}.hkplayer.hkplayer-textTrack-active .hkplayer-textTrack ul{display:block}.hkplayer-textTrack ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);padding:6px 13px}.hkplayer-textTrack ul li.textTrack,.hkplayer-textTrack ul li:hover{color:#fff;opacity:1}.hkplayer-textTrack .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:0;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.hkplayer-is-textTrack .hkplayer-textTrack{display:block}.hkplayer-definition{-webkit-order:5;-moz-box-ordinal-group:6;order:5;width:60px;height:150px;z-index:18;position:relative;outline:none;display:none;cursor:default;margin-left:10px;margin-top:-119px;margin-bottom:11px}.hkplayer-definition ul{display:none;list-style:none;width:78px;background:rgba(0,0,0,.54);border-radius:1px;position:absolute;bottom:30px;left:0;text-align:center;white-space:nowrap;margin-left:-10px;z-index:26;cursor:pointer}.hkplayer.hkplayer-definition-active .hkplayer-definition ul{display:block}.hkplayer-definition ul li{opacity:.7;font-family:PingFangSC-Regular;font-size:11px;color:hsla(0,0%,100%,.8);padding:6px 13px}.hkplayer-definition ul li.definition,.hkplayer-definition ul li:hover{color:#fff;opacity:1}.hkplayer-definition .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;cursor:pointer;color:hsla(0,0%,100%,.8);position:absolute;bottom:0;width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.hkplayer-is-definition .hkplayer-definition{display:block}.hkplayer-playback{-webkit-order:8;-moz-box-ordinal-group:9;order:8;position:relative;outline:none;display:block;cursor:pointer;margin:10px;height:20px}.hkplayer-playback .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.hkplayer-playback .name span{width:40px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.hkplayer-playback:hover .hkplayer-tips{display:block;top:-40px}.hkplayer-pip{-webkit-order:9;-moz-box-ordinal-group:10;order:9;position:relative;outline:none;display:block;cursor:pointer;margin-left:10px;margin-top:9px;margin-bottom:11px;height:20px}.hkplayer-pip .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.hkplayer-pip .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.hkplayer.hkplayer-pip-active{position:fixed!important;right:0;bottom:200px;width:320px!important;height:180px!important;z-index:999!important}.hkplayer.hkplayer-pip-active .hkplayer-controls,.hkplayer.hkplayer-pip-active hk-bullet{display:none}.hkplayer.hkplayer-pip-active .hkplayer-pip-lay{display:block}.hkplayer-pip-lay{position:absolute;top:26px;left:0;z-index:1450;cursor:pointer;background-color:transparent;display:none}.hkplayer-pip-lay,.hkplayer-pip-lay div{width:100%;height:100%}.hkplayer-pip-drag{cursor:move;position:absolute;top:0;left:0;width:100%;height:26px;line-height:26px;background-image:linear-gradient(rgba(0,0,0,.3),transparent);z-index:1500;display:none}.hkplayer.hkplayer-pip-active .hkplayer-pip-drag{display:-webkit-flex;display:-moz-box;display:flex}.hkplayer.hkplayer-inactive .hkplayer-pip-drag{display:none}.hkplayer-fullscreen{-webkit-order:12;-moz-box-ordinal-group:13;order:12;position:relative;display:inline-block;cursor:pointer}.hkplayer-fullscreen .hkplayer-icon svg{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.hkplayer-fullscreen:hover .hkplayer-tips{display:block}.hkplayer.hkplayer-fullscreen-active{position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:99999!important}.hkplayer-cssfullscreen{-webkit-order:11;-moz-box-ordinal-group:12;order:11;position:relative;display:inline-block;cursor:pointer;opacity:.9}.hkplayer-cssfullscreen .hkplayer-icon svg{position:relative;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.hkplayer-cssfullscreen:hover .hkplayer-tips{display:block}.hkplayer.hkplayer-cssfullscreen-active{position:fixed!important;left:0!important;top:0!important;width:100%!important;height:100%!important;z-index:99999!important}.overhidden{overflow:hidden}.danmu-switch{-webkit-order:6;-moz-box-ordinal-group:7;order:6;z-index:26;margin:10px auto}.hkplayer-bullet{display:none;position:absolute;top:0;left:0;right:0;height:100%;overflow:hidden;z-index:9;outline:none}.hkplayer-bullet>*{position:absolute;white-space:nowrap;z-index:9}.hkplayer-has-bullet{display:block}.hkplayer-loading{display:none;width:100px;height:100px;overflow:hidden;-webkit-transform:scale(.7);-ms-transform:scale(.7);transform:scale(.7);position:absolute;left:50%;top:50%;margin:-70px auto auto -50px}.hkplayer-loading svg{border-radius:50%;-webkit-transform-origin:center;-ms-transform-origin:center;transform-origin:center;-webkit-animation:loadingRotate 1s linear infinite;animation:loadingRotate 1s linear infinite}.hkplayer-loading svg path{stroke:#ddd;stroke-dasharray:236;-webkit-animation:loadingDashOffset 2s linear infinite;animation:loadingDashOffset 2s linear infinite;animation-direction:alternate-reverse;fill:none;stroke-width:12px}.hkplayer-nostart .hkplayer-loading{display:none}.hkplayer-isloading .hkplayer-loading{display:block}.hkplayer-replay{position:absolute;left:0;top:0;width:100%;height:100%;z-index:500;display:none;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center;background:rgba(0,0,0,.54);-webkit-flex-direction:column;-moz-box-orient:vertical;-moz-box-direction:normal;flex-direction:column;cursor:pointer}.hkplayer-replay svg{background:rgba(0,0,0,.58);border-radius:100%;cursor:pointer}.hkplayer-replay svg path{-webkit-transform:translate(20px,21px);-ms-transform:translate(20px,21px);transform:translate(20px,21px);fill:#ddd}.hkplayer-replay svg:hover{background:rgba(0,0,0,.38)}.hkplayer-replay svg:hover path{fill:#fff}.hkplayer-replay .hkplayer-replay-img{position:absolute;left:50%;top:50%;cursor:pointer}.hkplayer-replay .hkplayer-replay-img:hover{opacity:.85}.hkplayer-replay .hkplayer-replay-txt{display:inline-block;font-family:PingFangSC-Regular;font-size:14px;color:#fff;line-height:34px;cursor:pointer}.hkplayer.hkplayer-ended .hkplayer-controls{display:none}.hkplayer.hkplayer-ended .hkplayer-replay{display:-webkit-flex;display:-moz-box;display:flex}.hkplayer-replay-img{display:none;position:absolute;left:50%;top:50%;z-index:500;cursor:pointer}.hkplayer-replay-img:hover{opacity:.85}.hkplayer.hkplayer-ended .hkplayer-replay-img{display:block}@keyframes playPause{0%{-webkit-transform:scale(1);transform:scale(1);opacity:1}99%{-webkit-transform:scale(1.3);transform:scale(1.3);opacity:0}to{-webkit-transform:scale(0);transform:scale(0);opacity:0}}@keyframes loadingRotate{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes loadingDashOffset{0%{stroke-dashoffset:236}to{stroke-dashoffset:0}}@keyframes enterTips{0%{opacity:0;left:0;width:3px}50%{opacity:1;left:50%;width:5px}to{opacity:0;left:100%;width:3px}}.hkplayer-enter{display:none;position:absolute;left:0;top:0;width:100%;height:100%;background:url(\"//s2.pstatp.com/cdn/expire-1-M/byted-player-images/1.0.2/bg.svg\") no-repeat 50%/cover;z-index:1100}.hkplayer-enter .hkplayer-enter-logo{display:block;position:absolute;left:50%;top:50%;width:130px;height:44px;margin:-22px auto auto -65px;background-size:130px 44px;background-image:url(\"//s3.pstatp.com/cdn/expire-1-M/byted-player-images/1.0.1/xg-logo-new.png\")}.hkplayer-enter .hkplayer-enter-tips{display:none;position:absolute;left:50%;top:50%;width:120px;height:1px;background:linear-gradient(90deg,#000,red,red,red,#000);margin:32px auto auto -62px}.hkplayer-enter .hkplayer-enter-tips:before{content:\" \";display:block;width:5px;height:1px;border-radius:50%;position:absolute;left:0;top:0;-webkit-animation:enterTips 1.6s linear infinite;animation:enterTips 1.6s linear infinite;background:#fff}.hkplayer-is-enter .hkplayer-enter,.hkplayer-is-enter .hkplayer-enter .hkplayer-enter-tips{display:block}.hkplayer-screenShot{-webkit-order:10;-moz-box-ordinal-group:11;order:10;position:relative;outline:none;display:block;cursor:pointer;margin-left:10px;margin-top:9px;margin-bottom:11px;height:20px}.hkplayer-screenShot .name{text-align:center;font-family:PingFangSC-Regular;font-size:13px;line-height:20px;height:20px;color:hsla(0,0%,100%,.8)}.hkplayer-screenShot .name span{width:60px;height:20px;line-height:20px;background:rgba(0,0,0,.38);border-radius:10px;display:inline-block;vertical-align:middle}.hkplayer-poster{position:absolute;left:0;top:0;width:100%;height:100%;z-index:100;background-size:cover;background-position:50%}.hkplayer-live{display:block;font-size:12px;color:#fff;line-height:40px;-webkit-order:1;-moz-box-ordinal-group:2;order:1}.hkplayer-error{background:#000;display:none;position:absolute;left:0;top:0;width:100%;height:100%;z-index:1200;font-family:PingFangSC-Regular;font-size:14px;color:#fff;text-align:center;line-height:100%;-webkit-justify-content:center;-moz-box-pack:center;justify-content:center;-webkit-align-items:center;-moz-box-align:center;align-items:center}.hkplayer-error .hkplayer-error-refresh{color:#fa1f41;padding:0 3px;cursor:pointer}.hkplayer-is-error .hkplayer-error{display:-webkit-flex;display:-moz-box;display:flex}.hkplayer-error .hkplayer-error-text{line-height:18px;margin:auto 6px}.hkplayer-mobile .hkplayer-progress-btn{display:block}.hkplayer-mobile .hkplayer-progress:focus .hkplayer-progress-outer,.hkplayer-mobile .hkplayer-progress:hover .hkplayer-progress-outer{height:3px;margin-top:8.5px}.hkplayer-mobile .hkplayer-progress:focus .hkplayer-progress-dot,.hkplayer-mobile .hkplayer-progress:hover .hkplayer-progress-dot{height:3px}.hkplayer-mobile.hkplayer-ended .hkplayer-start,.hkplayer-mobile.hkplayer-ended .hkplayer-start-img,.hkplayer-mobile.hkplayer-inactive .hkplayer-start,.hkplayer-mobile.hkplayer-inactive .hkplayer-start-img{display:none}.hkplayer-mobile .hkplayer-start{width:60px;height:60px;line-height:60px;display:none;margin:-50px auto auto -30px}.hkplayer-mobile .hkplayer-start svg{margin:10px}.hkplayer-mobile .hkplayer-start-img{display:none}.hkplayer-mobile .hkplayer-tips{display:none!important}.hkplayer-mobile.hkplayer-nostart .hkplayer-start{margin:-30px auto auto -30px;display:block}.hkplayer-mobile.hkplayer-nostart .hkplayer-start-img{display:block}.hkplayer-mobile .hkplayer-loading{-webkit-transform:scale(.5);-ms-transform:scale(.5);transform:scale(.5)}.hkplayer-mobile.hkplayer-mobile-npassed .hkplayer-controls,.hkplayer-mobile.hkplayer-mobile-npassed .hkplayer-poster,.hkplayer-mobile.hkplayer-mobile-npassed .hkplayer-start,.hkplayer-mobile.hkplayer-mobile-npassed .hkplayer-start-img{display:none}",""])},"./node_modules/css-loader/lib/css-base.js":
  /*!*************************************************!*\
    !*** ./node_modules/css-loader/lib/css-base.js ***!
    \*************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",o=e[3];if(!o)return n;if(t&&"function"==typeof btoa){var r=(a=o,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),i=o.sources.map((function(e){return"/*# sourceURL="+o.sourceRoot+e+" */"}));return[n].concat(i).concat([r]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},"./node_modules/d/index.js":
  /*!*********************************!*\
    !*** ./node_modules/d/index.js ***!
    \*********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! type/value/is */"./node_modules/type/value/is.js"),r=n(/*! type/plain-function/is */"./node_modules/type/plain-function/is.js"),i=n(/*! es5-ext/object/assign */"./node_modules/es5-ext/object/assign/index.js"),a=n(/*! es5-ext/object/normalize-options */"./node_modules/es5-ext/object/normalize-options.js"),s=n(/*! es5-ext/string/#/contains */"./node_modules/es5-ext/string/#/contains/index.js");(e.exports=function(e,t){var n,r,l,c,u;return arguments.length<2||"string"!=typeof e?(c=t,t=e,e=null):c=arguments[2],o(e)?(n=s.call(e,"c"),r=s.call(e,"e"),l=s.call(e,"w")):(n=l=!0,r=!1),u={value:t,configurable:n,enumerable:r,writable:l},c?i(a(c),u):u}).gs=function(e,t,n){var l,c,u,d;return"string"!=typeof e?(u=n,n=t,t=e,e=null):u=arguments[3],o(t)?r(t)?o(n)?r(n)||(u=n,n=void 0):n=void 0:(u=t,t=n=void 0):t=void 0,o(e)?(l=s.call(e,"c"),c=s.call(e,"e")):(l=!0,c=!1),d={get:t,set:n,configurable:l,enumerable:c},u?i(a(u),d):d}},"./node_modules/danmu.js/dist/index.js":
  /*!*********************************************!*\
    !*** ./node_modules/danmu.js/dist/index.js ***!
    \*********************************************/
  /*! no static exports found */function(e,t,n){"use strict";(function(e){var n,o,r,i,a="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};window,i=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==(void 0===e?"undefined":a(e))&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(22))&&o.__esModule?o:{default:o},i={};i.domObj=new r.default,i.createDom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement(e);return r.className=o,r.innerHTML=t,Object.keys(n).forEach((function(t){var o=t,i=n[t];"video"===e||"audio"===e?i&&r.setAttribute(o,i):r.setAttribute(o,i)})),r},i.hasClass=function(e,t){return e.classList?Array.prototype.some.call(e.classList,(function(e){return e===t})):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},i.addClass=function(e,t){e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)})):i.hasClass(e,t)||(e.className+=" "+t)},i.removeClass=function(e,t){e.classList?t.split(/\s+/g).forEach((function(t){e.classList.remove(t)})):i.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}))},i.toggleClass=function(e,t){t.split(/\s+/g).forEach((function(t){i.hasClass(e,t)?i.removeClass(e,t):i.addClass(e,t)}))},i.findDom=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch(o){t.startsWith("#")&&(n=e.getElementById(t.slice(1)))}return n},i.deepCopy=function(e,t){if("Object"===i.typeOf(t)&&"Object"===i.typeOf(e))return Object.keys(t).forEach((function(n){"Object"!==i.typeOf(t[n])||t[n]instanceof Node?"Array"===i.typeOf(t[n])?e[n]="Array"===i.typeOf(e[n])?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?i.deepCopy(e[n],t[n]):e[n]=t[n]})),e},i.typeOf=function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},i.copyDom=function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},i.formatTime=function(e){var t=Math.floor(e);return 1e3*t+(e-t)},t.default=i,e.exports=t.default},function(e,t,n){var o=n(13)();e.exports=function(e){return e!==o&&null!==e}},function(e,t,n){e.exports=n(3)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=(o=n(4))&&o.__esModule?o:{default:o};n(26),t.default=r.default,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(5)),i=s(n(21)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.config=a.default.deepCopy({overlap:!1,area:{start:0,end:1},live:!1,comments:[],direction:"r2l"},t),this.hideArr=[],(0,r.default)(this);var n=this;if(this.config.comments.forEach((function(e){e.duration=e.duration<5e3?5e3:e.duration,e.mode||(e.mode="scroll")})),!this.config.container||1!==this.config.container.nodeType)return this.emit("error","container id can't be empty"),!1;if(this.container=this.config.container,this.config.containerStyle){var o=this.config.containerStyle;Object.keys(o).forEach((function(e){n.container.style[e]=o[e]}))}this.live=this.config.live,this.player=this.config.player,this.direction=this.config.direction,a.default.addClass(this.container,"danmu"),this.bulletBtn=new i.default(this),this.emit("ready")}return o(e,[{key:"start",value:function(){this.bulletBtn.main.start()}},{key:"pause",value:function(){this.bulletBtn.main.pause()}},{key:"play",value:function(){this.bulletBtn.main.play()}},{key:"stop",value:function(){this.bulletBtn.main.stop()}},{key:"sendComment",value:function(e){e&&e.id&&e.duration&&(e.el||e.txt)&&(e.duration=e.duration<5e3?5e3:e.duration,this.bulletBtn.main.data.push(e))}},{key:"setCommentID",value:function(e,t){var n=this.container.getBoundingClientRect();e&&t&&(this.bulletBtn.main.data.some((function(n){return n.id===e&&(n.id=t,!0)})),this.bulletBtn.main.queue.some((function(o){return o.id===e&&(o.id=t,o.pauseMove(n),o.startMove(n),!0)})))}},{key:"setCommentDuration",value:function(e,t){var n=this.container.getBoundingClientRect();e&&t&&(t=t<5e3?5e3:t,this.bulletBtn.main.data.some((function(n){return n.id===e&&(n.duration=t,!0)})),this.bulletBtn.main.queue.some((function(o){return o.id===e&&(o.duration=t,o.pauseMove(n),o.startMove(n),!0)})))}},{key:"setAllDuration",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll",t=arguments[1],n=this.container.getBoundingClientRect();t&&(t=t<5e3?5e3:t,this.bulletBtn.main.data.forEach((function(n){e===n.mode&&(n.duration=t)})),this.bulletBtn.main.queue.forEach((function(o){e===o.mode&&(o.duration=t,o.pauseMove(n),o.startMove(n))})))}},{key:"hide",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll";this.hideArr.indexOf(e)<0&&this.hideArr.push(e),this.bulletBtn.main.queue.filter((function(t){return e===t.mode||"color"===e&&t.color})).forEach((function(e){return e.remove()}))}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"scroll",t=this.hideArr.indexOf(e);t>-1&&this.hideArr.splice(t,1)}},{key:"setDirection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"r2l";this.emit("changeDirection",e)}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){var o,r,i,s,l,c,u,d=n(6),p=n(20),h=Function.prototype.apply,f=Function.prototype.call,g=Object.create,m=Object.defineProperty,v=Object.defineProperties,y=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var n,r;return p(t),r=this,o.call(this,e,n=function(){i.call(r,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},l={on:o=function(e,t){var n;return p(t),y.call(this,"__ee__")?n=this.__ee__:(n=b.value=g(null),m(this,"__ee__",b),b.value=null),n[e]?"object"==a(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:i=function(e,t){var n,o,r,i;if(p(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"==a(o=n[e]))for(i=0;r=o[i];++i)r!==t&&r.__eeOnceListener__!==t||(2===o.length?n[e]=o[i?0:1]:o.splice(i,1));else o!==t&&o.__eeOnceListener__!==t||delete n[e];return this},emit:s=function(e){var t,n,o,r,i;if(y.call(this,"__ee__")&&(r=this.__ee__[e]))if("object"==(void 0===r?"undefined":a(r))){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(r=r.slice(),t=0;o=r[t];++t)h.call(o,this,i)}else switch(arguments.length){case 1:f.call(r,this);break;case 2:f.call(r,this,arguments[1]);break;case 3:f.call(r,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];h.call(r,this,i)}}},c={on:d(o),once:d(r),off:d(i),emit:d(s)},u=v({},c),e.exports=t=function(e){return null==e?g(u):v(Object(e),c)},t.methods=l},function(e,t,n){var o=n(7),r=n(15),i=n(16),a=n(17);(e.exports=function(e,t){var n,i,s,l,c;return arguments.length<2||"string"!=typeof e?(l=t,t=e,e=null):l=arguments[2],null==e?(n=s=!0,i=!1):(n=a.call(e,"c"),i=a.call(e,"e"),s=a.call(e,"w")),c={value:t,configurable:n,enumerable:i,writable:s},l?o(r(l),c):c}).gs=function(e,t,n){var s,l,c,u;return"string"!=typeof e?(c=n,n=t,t=e,e=null):c=arguments[3],null==t?t=void 0:i(t)?null==n?n=void 0:i(n)||(c=n,n=void 0):(c=t,t=n=void 0),null==e?(s=!0,l=!1):(s=a.call(e,"c"),l=a.call(e,"e")),u={get:t,set:n,configurable:s,enumerable:l},c?o(r(c),u):u}},function(e,t,n){e.exports=n(8)()?Object.assign:n(9)},function(e,t,n){e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},function(e,t,n){var o=n(10),r=n(14),i=Math.max;e.exports=function(e,t){var n,a,s,l=i(arguments.length,2);for(e=Object(r(e)),s=function(o){try{e[o]=t[o]}catch(e){n||(n=e)}},a=1;a<l;++a)t=arguments[a],o(t).forEach(s);if(void 0!==n)throw n;return e}},function(e,t,n){e.exports=n(11)()?Object.keys:n(12)},function(e,t,n){e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},function(e,t,n){var o=n(1),r=Object.keys;e.exports=function(e){return r(o(e)?Object(e):e)}},function(e,t,n){e.exports=function(){}},function(e,t,n){var o=n(1);e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},function(e,t,n){var o=n(1),r=Array.prototype.forEach,i=Object.create;e.exports=function(e){var t=i(null);return r.call(arguments,(function(e){o(e)&&function(e,t){var n;for(n in e)t[n]=e[n]}(Object(e),t)})),t}},function(e,t,n){e.exports=function(e){return"function"==typeof e}},function(e,t,n){e.exports=n(18)()?String.prototype.contains:n(19)},function(e,t,n){var o="razdwatrzy";e.exports=function(){return"function"==typeof o.contains&&!0===o.contains("dwa")&&!1===o.contains("foo")}},function(e,t,n){var o=String.prototype.indexOf;e.exports=function(e){return o.call(this,e,arguments[1])>-1}},function(e,t,n){e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(23));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.danmu=t,this.main=new i.default(t),t.config.defaultOff||this.main.start()}return o(e,[{key:"createSwitch",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.switchBtn=r.default.createDom("dk-switch",'<span class="txt">弹</span>',{},"danmu-switch "+(e?"danmu-switch-active":"")),this.switchBtn}}]),e}();t.default=s,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t={initDOM:function(){return document.createElement("div")},initSize:10},this.init(t)}return o(e,[{key:"init",value:function(e){this.idleList=[],this.usingList=[],this._id=0,this.options=e,this._expand(e.initSize)}},{key:"use",value:function(){this.idleList.length||this._expand(1);var e=this.idleList.shift();return this.usingList.push(e),e}},{key:"unuse",value:function(e){var t=this.usingList.indexOf(e);t<0||(this.usingList.splice(t,1),e.innerHTML="",e.textcontent="",e.style="",this.idleList.push(e))}},{key:"_expand",value:function(e){for(var t=0;t<e;t++)this.idleList.push(this.options.initDOM(this._id++))}}]),e}();t.default=r,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(24)),i=s(n(25)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.danmu=t,this.container=t.container,this.channel=new r.default(t),this.data=[].concat(t.config.comments),this.queue=[],this.timer=null,this.retryTimer=null,this.interval=2e3,this.status="idle",t.on("bullet_remove",this.updateQueue.bind(this));var n=this;this.danmu.on("changeDirection",(function(e){n.danmu.direction=e}))}return o(e,[{key:"updateQueue",value:function(e){var t=this;t.queue.some((function(n,o){return n.id===e.bullet.id&&(t.queue.splice(o,1),!0)}))}},{key:"init",value:function(e,t){t||(t=this),t.data.sort((function(e,t){return e.start-t.start})),t.retryTimer||(t.retryTimer=setInterval((function(){t.readData(),t.dataHandle()}),t.interval-1e3))}},{key:"start",value:function(){this.status="playing",this.queue=[],this.container.innerHTML="",this.channel.resetWithCb(this.init,this)}},{key:"stop",value:function(){this.status="closed",clearInterval(this.retryTimer),this.retryTimer=null,this.channel.reset(),this.queue=[],this.container.innerHTML=""}},{key:"play",value:function(){this.status="playing";var e=this.channel.channels,t=this.danmu.container.getBoundingClientRect();e&&e.length>0&&["scroll","top","bottom"].forEach((function(n){for(var o=0;o<e.length;o++)e[o].queue[n].forEach((function(e){e.resized||(e.startMove(t),e.resized=!0)}));for(var r=0;r<e.length;r++)e[r].queue[n].forEach((function(e){e.resized=!1}))}))}},{key:"pause",value:function(){this.status="paused";var e=this.channel.channels,t=this.danmu.container.getBoundingClientRect();e&&e.length>0&&["scroll","top","bottom"].forEach((function(n){for(var o=0;o<e.length;o++)e[o].queue[n].forEach((function(e){e.pauseMove(t)}))}))}},{key:"dataHandle",value:function(){var e=this;"paused"!==this.status&&"closed"!==this.status&&e.queue.length&&e.queue.forEach((function(t){"waiting"!==t.status&&"paused"!==t.status||t.startMove(e.channel.containerPos)}))}},{key:"readData",value:function(){var e=this,t=this.danmu,n=0;t.player&&t.player.currentTime&&(n=a.default.formatTime(t.player.currentTime));var o=void 0,r=e.interval,s=e.channel,l=void 0;t.player?(l=e.data.filter((function(t){return!t.start&&e.danmu.hideArr.indexOf(t.mode)<0&&(!t.color||e.danmu.hideArr.indexOf("color")<0)&&(t.start=n),e.danmu.hideArr.indexOf(t.mode)<0&&(!t.color||e.danmu.hideArr.indexOf("color")<0)&&t.start-r<=n&&n<=t.start+r})),t.live&&(e.data=e.data.filter((function(e){return e.start||(e.start=n),e.start>n-3*r})))):l=e.data.filter((function(t){return e.danmu.hideArr.indexOf(t.mode)<0&&(!t.color||e.danmu.hideArr.indexOf("color")<0)})),l.length>0&&l.forEach((function(n){(o=new i.default(t,n)).attach(),s.addBullet(o).result?(e.queue.push(o),o.topInit()):o.detach()}))}}]),e}();t.default=l,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.danmu=t,this.reset();var n=this;this.danmu.on("bullet_remove",(function(e){n.removeBullet(e.bullet)})),this.direction=t.direction,this.danmu.on("changeDirection",(function(e){n.direction=e})),this.containerPos=this.danmu.container.getBoundingClientRect(),this.containerWidth=this.containerPos.width,this.containerHeight=this.containerPos.height,this.containerLeft=this.containerPos.left,this.containerRight=this.containerPos.right,this.danmu.bulletResizeTimer=setInterval((function(){n.containerPos=n.danmu.container.getBoundingClientRect(),(Math.abs(n.containerPos.width-n.containerWidth)>=2||Math.abs(n.containerPos.height-n.containerHeight)>=2||Math.abs(n.containerPos.left-n.containerLeft)>=2||Math.abs(n.containerPos.right-n.containerRight)>=2)&&(n.containerWidth=n.containerPos.width,n.containerHeight=n.containerPos.height,n.containerLeft=n.containerPos.left,n.containerRight=n.containerPos.right,n.resize(!0))}),50)}return o(e,[{key:"resize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.danmu.container,n=this;setTimeout((function(){n.danmu.bulletBtn.main.data&&n.danmu.bulletBtn.main.data.forEach((function(e){e.bookChannelId&&delete e.bookChannelId}));var o=t.getBoundingClientRect();n.width=o.width,n.height=o.height,n.danmu.config.area&&n.danmu.config.area.start>=0&&n.danmu.config.area.end>=n.danmu.config.area.start&&("b2t"===n.direction?n.width=n.width*(n.danmu.config.area.end-n.danmu.config.area.start):n.height=n.height*(n.danmu.config.area.end-n.danmu.config.area.start)),n.container=t;var r,i=/mobile/gi.test(navigator.userAgent)?10:12;r="b2t"===n.direction?Math.floor(n.width/i):Math.floor(n.height/i);for(var a=[],s=0;s<r;s++)a[s]={id:s,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(n.channels&&n.channels.length<=a.length){for(var l=function(t){a[t]={id:t,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach((function(o){n.channels[t].queue[o].forEach((function(r){r.el&&(a[t].queue[o].push(r),r.resized||(r.pauseMove(n.containerPos,e),r.startMove(n.containerPos),r.resized=!0))}))})),n.channels[t].queue.bottom.forEach((function(o){if(o.el){if(a[t+a.length-n.channels.length].queue.bottom.push(o),o.channel_id[0]+o.channel_id[1]-1===t){var r=[].concat(o.channel_id);o.channel_id=[r[0]-n.channels.length+a.length,r[1]],o.top=o.channel_id[0]*i,n.danmu.config.area&&n.danmu.config.area.start&&(o.top+=n.containerHeight*n.danmu.config.area.start),o.topInit()}o.resized||(o.pauseMove(n.containerPos,e),o.startMove(n.containerPos),o.resized=!0)}}))},c=0;c<n.channels.length;c++)l(c);for(var u=function(e){["scroll","top","bottom"].forEach((function(t){a[e].queue[t].forEach((function(e){e.resized=!1}))}))},d=0;d<a.length;d++)u(d);n.channels=a,"b2t"===n.direction?n.channelWidth=i:n.channelHeight=i}else if(n.channels&&n.channels.length>a.length){for(var p=function(t){a[t]={id:t,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach((function(o){if("top"===o&&t>Math.floor(a.length/2));else if("bottom"===o&&t<=Math.floor(a.length/2));else{var r="bottom"===o?t-a.length+n.channels.length:t;n.channels[r].queue[o].forEach((function(s,l){if(s.el){if(a[t].queue[o].push(s),"bottom"===o&&s.channel_id[0]+s.channel_id[1]-1===r){var c=[].concat(s.channel_id);s.channel_id=[c[0]-n.channels.length+a.length,c[1]],s.top=s.channel_id[0]*i,n.danmu.config.area&&n.danmu.config.area.start&&(s.top+=n.containerHeight*n.danmu.config.area.start),s.topInit()}s.resized||(s.pauseMove(n.containerPos,e),s.startMove(n.containerPos),s.resized=!0)}n.channels[r].queue[o].splice(l,1)}))}}))},h=0;h<a.length;h++)p(h);for(var f=function(e){["scroll","top","bottom"].forEach((function(t){n.channels[e].queue[t].forEach((function(e){e.pauseMove(n.containerPos),e.remove()}))}))},g=a.length;g<n.channels.length;g++)f(g);for(var m=function(e){["scroll","top","bottom"].forEach((function(t){a[e].queue[t].forEach((function(e){e.resized=!1}))}))},v=0;v<a.length;v++)m(v);n.channels=a,"b2t"===n.direction?n.channelWidth=i:n.channelHeight=i}}),10)}},{key:"addBullet",value:function(e){var t=this.danmu,n=this.channels,o=void 0,r=void 0,i=void 0;if("b2t"===this.direction?(r=this.channelWidth,i=Math.ceil(e.width/r)):(o=this.channelHeight,i=Math.ceil(e.height/o)),i>n.length)return{result:!1,message:"exceed channels.length, occupy="+i+",channelsSize="+n.length};for(var a=!0,s=void 0,l=-1,c=0,u=n.length;c<u;c++)if(n[c].queue[e.mode].some((function(t){return t.id===e.id})))return{result:!1,message:"exsited, channelOrder="+c+",danmu_id="+e.id};if("scroll"===e.mode)for(var d=0,p=n.length-i;d<=p;d++){a=!0;for(var h=d;h<d+i;h++){if((s=n[h]).operating.scroll){a=!1;break}if((s.bookId.scroll||e.prior)&&s.bookId.scroll!==e.id){a=!1;break}s.operating.scroll=!0;var f=s.queue.scroll[0];if(f){var g=f.el.getBoundingClientRect();if("b2t"===this.direction){if(g.bottom>this.containerPos.bottom){a=!1,s.operating.scroll=!1;break}}else if(g.right>this.containerPos.right){a=!1,s.operating.scroll=!1;break}var m,v=void 0,y=void 0,b=void 0,k=void 0;if("b2t"===this.direction?(y=(g.top-this.containerPos.top+g.height)/(v=(this.containerPos.height+g.height)/f.duration),b=this.containerPos.height,k=(this.containerPos.height+e.height)/e.duration):(y=(g.left-this.containerPos.left+g.width)/(v=(this.containerPos.width+g.width)/f.duration),b=this.containerPos.width,k=(this.containerPos.width+e.width)/e.duration),m=b/k,t.config.bOffset||(t.config.bOffset=0),v<k&&y+t.config.bOffset>m){a=!1,s.operating.scroll=!1;break}}s.operating.scroll=!1}if(a){l=d;break}}else if("top"===e.mode)for(var w=0,_=n.length-i;w<=_;w++){a=!0;for(var x=w;x<w+i;x++){if(x>Math.floor(n.length/2)){a=!1;break}if((s=n[x]).operating[e.mode]){a=!1;break}if((s.bookId[e.mode]||e.prior)&&s.bookId[e.mode]!==e.id){a=!1;break}if(s.operating[e.mode]=!0,s.queue[e.mode].length>0){a=!1,s.operating[e.mode]=!1;break}s.operating[e.mode]=!1}if(a){l=w;break}}else if("bottom"===e.mode)for(var E=n.length-i;E>=0;E--){a=!0;for(var C=E;C<E+i;C++){if(C<=Math.floor(n.length/2)){a=!1;break}if((s=n[C]).operating[e.mode]){a=!1;break}if((s.bookId[e.mode]||e.prior)&&s.bookId[e.mode]!==e.id){a=!1;break}if(s.operating[e.mode]=!0,s.queue[e.mode].length>0){a=!1,s.operating[e.mode]=!1;break}s.operating[e.mode]=!1}if(a){l=E;break}}if(-1!==l){for(var S=l,P=l+i;S<P;S++)(s=n[S]).operating[e.mode]=!0,s.queue[e.mode].unshift(e),e.prior&&delete s.bookId[e.mode],s.operating[e.mode]=!1;return e.prior&&(delete e.bookChannelId,t.bulletBtn.main.data.some((function(t){return t.id===e.id&&(delete t.bookChannelId,!0)}))),e.channel_id=[l,i],"b2t"===this.direction?(e.top=l*r,this.danmu.config.area&&this.danmu.config.area.start&&(e.top+=this.containerWidth*this.danmu.config.area.start)):(e.top=l*o,this.danmu.config.area&&this.danmu.config.area.start&&(e.top+=this.containerHeight*this.danmu.config.area.start)),{result:e,message:"success"}}if(e.prior)if(e.bookChannelId)t.bulletBtn.main.data.some((function(t){return t.id===e.id&&(t.start+=2e3,!0)}));else{l=-1;for(var j=0,T=n.length-i;j<=T;j++){a=!0;for(var O=j;O<j+i;O++)if(n[O].bookId[e.mode]){a=!1;break}if(a){l=j;break}}if(-1!==l){for(var M=l;M<l+i;M++)n[M].bookId[e.mode]=e.id;t.bulletBtn.main.data.some((function(t){return t.id===e.id&&(t.start+=2e3,t.bookChannelId=[l,i],!0)}))}}return{result:!1,message:"no surplus will right"}}},{key:"removeBullet",value:function(e){for(var t=this.channels,n=e.channel_id,o=void 0,r=n[0],i=n[0]+n[1];r<i;r++)if(o=t[r]){o.operating[e.mode]=!0;var a=-1;o.queue[e.mode].some((function(t,n){return t.id===e.id&&(a=n,!0)})),a>-1&&o.queue[e.mode].splice(a,1),o.operating[e.mode]=!1}}},{key:"resetArea",value:function(){var e=this.danmu.container,t=this,n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.danmu.config.area&&t.danmu.config.area.start>=0&&t.danmu.config.area.end>=t.danmu.config.area.start&&("b2t"===t.direction?t.width=t.width*(t.danmu.config.area.end-t.danmu.config.area.start):t.height=t.height*(t.danmu.config.area.end-t.danmu.config.area.start)),t.container=e;var o,r=/mobile/gi.test(navigator.userAgent)?10:12;o="b2t"===t.direction?Math.floor(t.width/r):Math.floor(t.height/r);for(var i=[],a=0;a<o;a++)i[a]={id:a,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};if(t.channels&&t.channels.length<=i.length){for(var s=function(e){i[e]={id:e,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top"].forEach((function(n){t.channels[e].queue[n].forEach((function(o){o.el&&(i[e].queue[n].push(o),o.resized||(o.pauseMove(t.containerPos,!1),o.startMove(t.containerPos),o.resized=!0))}))})),t.channels[e].queue.bottom.forEach((function(n){if(n.el){if(i[e+i.length-t.channels.length].queue.bottom.push(n),n.channel_id[0]+n.channel_id[1]-1===e){var o=[].concat(n.channel_id);n.channel_id=[o[0]-t.channels.length+i.length,o[1]],n.top=n.channel_id[0]*r,t.danmu.config.area&&t.danmu.config.area.start&&(n.top+=t.containerHeight*t.danmu.config.area.start),n.topInit()}n.resized||(n.pauseMove(t.containerPos,!1),n.startMove(t.containerPos),n.resized=!0)}}))},l=0;l<t.channels.length;l++)s(l);for(var c=function(e){["scroll","top","bottom"].forEach((function(t){i[e].queue[t].forEach((function(e){e.resized=!1}))}))},u=0;u<i.length;u++)c(u);t.channels=i,"b2t"===t.direction?t.channelWidth=r:t.channelHeight=r}else if(t.channels&&t.channels.length>i.length){for(var d=function(e){i[e]={id:e,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}},["scroll","top","bottom"].forEach((function(n){if("top"===n&&e>Math.floor(i.length/2));else if("bottom"===n&&e<=Math.floor(i.length/2));else{var o="bottom"===n?e-i.length+t.channels.length:e;t.channels[o].queue[n].forEach((function(a,s){if(a.el){if(i[e].queue[n].push(a),"bottom"===n&&a.channel_id[0]+a.channel_id[1]-1===o){var l=[].concat(a.channel_id);a.channel_id=[l[0]-t.channels.length+i.length,l[1]],a.top=a.channel_id[0]*r,t.danmu.config.area&&t.danmu.config.area.start&&(a.top+=t.containerHeight*t.danmu.config.area.start),a.topInit()}a.resized||(a.pauseMove(t.containerPos,!1),a.startMove(t.containerPos),a.resized=!0)}t.channels[o].queue[n].splice(s,1)}))}}))},p=0;p<i.length;p++)d(p);for(var h=function(e){["scroll","top","bottom"].forEach((function(t){i[e].queue[t].forEach((function(e){e.resized=!1}))}))},f=0;f<i.length;f++)h(f);t.channels=i,"b2t"===t.direction?t.channelWidth=r:t.channelHeight=r}}},{key:"reset",value:function(){var e=this.danmu.container,t=this;t.channels&&t.channels.length>0&&["scroll","top","bottom"].forEach((function(e){for(var n=0;n<t.channels.length;n++)t.channels[n].queue[e].forEach((function(e){e.pauseMove(t.containerPos),e.remove()}))})),setTimeout((function(){var n=e.getBoundingClientRect();t.width=n.width,t.height=n.height,t.danmu.config.area&&t.danmu.config.area.start>=0&&t.danmu.config.area.end>=t.danmu.config.area.start&&("b2t"===t.direction?t.width=t.width*(t.danmu.config.area.end-t.danmu.config.area.start):t.height=t.height*(t.danmu.config.area.end-t.danmu.config.area.start)),t.container=e;var o,r=/mobile/gi.test(navigator.userAgent)?10:12;o="b2t"===t.direction?Math.floor(t.width/r):Math.floor(t.height/r);for(var i=[],a=0;a<o;a++)i[a]={id:a,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};t.channels=i,"b2t"===t.direction?t.channelWidth=r:t.channelHeight=r}),200)}},{key:"resetWithCb",value:function(e,t){var n=this.danmu.container,o=this;o.channels&&o.channels.length>0&&["scroll","top","bottom"].forEach((function(e){for(var t=0;t<o.channels.length;t++)o.channels[t].queue[e].forEach((function(e){e.pauseMove(o.containerPos),e.remove()}))}));var r=n.getBoundingClientRect();o.width=r.width,o.height=r.height,o.danmu.config.area&&o.danmu.config.area.start>=0&&o.danmu.config.area.end>=o.danmu.config.area.start&&("b2t"===o.direction?o.width=o.width*(o.danmu.config.area.end-o.danmu.config.area.start):o.height=o.height*(o.danmu.config.area.end-o.danmu.config.area.start)),o.container=n;var i,a=/mobile/gi.test(navigator.userAgent)?10:12;i="b2t"===o.direction?Math.floor(o.width/a):Math.floor(o.height/a);for(var s=[],l=0;l<i;l++)s[l]={id:l,queue:{scroll:[],top:[],bottom:[]},operating:{scroll:!1,top:!1,bottom:!1},bookId:{}};o.channels=s,o.channelHeight=a,e&&e(!0,t)}}]),e}();t.default=r,e.exports=t.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=(o=n(0))&&o.__esModule?o:{default:o},a=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.danmu=t,this.duration=n.duration,this.id=n.id,this.container=t.container,this.start=n.start,this.prior=n.prior,this.color=n.color,this.bookChannelId=n.bookChannelId,this.direction=t.direction;var o=this;this.danmu.on("changeDirection",(function(e){o.direction=e}));var r=void 0;if(this.domObj=i.default.domObj,n.el&&1===n.el.nodeType)(r=this.domObj.use()).appendChild(i.default.copyDom(n.el));else if((r=this.domObj.use()).textContent=n.txt,n.style){var a=n.style;Object.keys(a).forEach((function(e){r.style[e]=a[e]}))}"top"===n.mode||"bottom"===n.mode?this.mode=n.mode:this.mode="scroll",this.el=r,this.status="waiting";var s=this.container.getBoundingClientRect();this.el.style.left=s.width+"px"}return r(e,[{key:"attach",value:function(){this.container.appendChild(this.el),this.elPos=this.el.getBoundingClientRect(),"b2t"===this.direction?(this.width=this.elPos.height,this.height=this.elPos.width):(this.width=this.elPos.width,this.height=this.elPos.height)}},{key:"detach",value:function(){this.container&&this.el&&(this.domObj.unuse(this.el),this.container.removeChild(this.el));var e=this;this.danmu.off("changeDirection",(function(t){e.direction=t})),this.el=null}},{key:"topInit",value:function(){if("b2t"===this.direction){var e=this.container.getBoundingClientRect();this.el.style.transformOrigin="left top",this.el.style.transform="translateX(-"+this.top+"px) translateY("+e.height+"px) translateZ(0px) rotate(90deg)",this.el.style.transition="transform 0s linear 0s"}else this.el.style.top=this.top+"px"}},{key:"pauseMove",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("paused"!==this.status&&(this.status="paused",clearTimeout(this.removeTimer),this.el))if(this.el.style.willChange="auto","scroll"===this.mode){if(t){var n=((new Date).getTime()-this.moveTime)/1e3*this.moveV,o=0;o=this.moveMoreS-n>=0?"b2t"===this.direction?(this.moveMoreS-n)/this.moveContainerHeight*e.height:(this.moveMoreS-n)/this.moveContainerWidth*e.width:this.moveMoreS-n,"b2t"===this.direction?this.el.style.transform="translateX(-"+this.top+"px) translateY("+o+"px) translateZ(0px) rotate(90deg)":this.el.style.left=o+"px"}else"b2t"===this.direction?this.el.style.transform="translateX(-"+this.top+"px) translateY("+(this.el.getBoundingClientRect().top-e.top)+"px) translateZ(0px) rotate(90deg)":this.el.style.left=this.el.getBoundingClientRect().left-e.left+"px";"b2t"===this.direction?this.el.style.transition="transform 0s linear 0s":(this.el.style.transform="translateX(0px) translateY(0px) translateZ(0px)",this.el.style.transition="transform 0s linear 0s")}else this.pastDuration&&this.startTime?this.pastDuration=this.pastDuration+(new Date).getTime()-this.startTime:this.pastDuration=1}},{key:"startMove",value:function(e){var t=this;if(this.el&&"start"!==this.status)if(this.status="start",this.el.style.willChange="transform","scroll"===this.mode)if("b2t"===this.direction){this.moveV=(e.height+this.height)/this.duration*1e3;var n=(t.el.getBoundingClientRect().bottom-e.top)/this.moveV;this.el.style.transition="transform "+n+"s linear 0s",setTimeout((function(){t.el&&(t.el.style.transform="translateX(-"+t.top+"px) translateY(-"+t.height+"px) translateZ(0px) rotate(90deg)",t.moveTime=(new Date).getTime(),t.moveMoreS=t.el.getBoundingClientRect().top-e.top,t.moveContainerHeight=e.height,t.removeTimer=setTimeout(i,1e3*n))}),20)}else{this.moveV=(e.width+this.width)/this.duration*1e3;var o=(t.el.getBoundingClientRect().right-e.left)/this.moveV;this.el.style.transition="transform "+o+"s linear 0s",setTimeout((function(){t.el&&(t.el.style.transform="translateX(-"+(t.el.getBoundingClientRect().right-e.left)+"px) translateY(0px) translateZ(0px)",t.moveTime=(new Date).getTime(),t.moveMoreS=t.el.getBoundingClientRect().left-e.left,t.moveContainerWidth=e.width,t.removeTimer=setTimeout(i,1e3*o))}),20)}else{this.el.style.left="50%",this.el.style.margin="0 0 0 -"+this.width/2+"px",this.pastDuration||(this.pastDuration=1);var r=this.duration>=this.pastDuration?this.duration-this.pastDuration:0;this.removeTimer=setTimeout(i,r),this.startTime=(new Date).getTime()}function i(){if(t.el)if("scroll"===t.mode){var e=t.danmu.container.getBoundingClientRect(),n=t.el.getBoundingClientRect();"b2t"===t.direction?n&&n.bottom<=e.top+100?(t.status="end",t.remove()):(t.pauseMove(e),t.startMove(e)):n&&n.right<=e.left+100?(t.status="end",t.remove()):(t.pauseMove(e),t.startMove(e))}else t.status="end",t.remove()}}},{key:"remove",value:function(){var e=this;this.removeTimer&&clearTimeout(this.removeTimer),e.el&&e.el.parentNode&&(e.el.style.willChange="auto",this.danmu.off("changeDirection",(function(t){e.direction=t})),this.domObj.unuse(e.el),e.el.parentNode.removeChild(e.el),e.el=null,e.danmu.emit("bullet_remove",{bullet:e}))}}]),e}();t.default=a,e.exports=t.default},function(e,t,n){var o=n(27);"string"==typeof o&&(o=[[e.i,o,""]]),n(29)(o,{hmr:!0,transform:void 0,insertInto:void 0}),o.locals&&(e.exports=o.locals)},function(e,t,n){(e.exports=n(28)(!1)).push([e.i,".danmu{overflow:hidden;-webkit-user-select:none;-moz-user-select:none;user-select:none;-ms-user-select:none}.danmu>*{position:absolute;white-space:nowrap}.danmu-switch{width:32px;height:20px;border-radius:100px;background-color:#ccc;-webkit-box-sizing:border-box;box-sizing:border-box;outline:none;cursor:pointer;position:relative;text-align:center;margin:10px auto}.danmu-switch.danmu-switch-active{padding-left:12px;background-color:#f85959}.danmu-switch span.txt{width:20px;height:20px;line-height:20px;text-align:center;display:block;border-radius:100px;background-color:#ffffff;-webkit-box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);box-shadow:-2px 0 0 0 rgba(0, 0, 0, .04);font-family:PingFangSC;font-size:10px;font-weight:500;color:#f44336}\n",""])},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n,o=e[1]||"",r=e[3];if(!r)return o;if(t&&"function"==typeof btoa){var i=(n=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(n))))+" */"),a=r.sources.map((function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"}));return[o].concat(a).concat([i]).join("\n")}return[o].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var o={},r=0;r<this.length;r++){var i=this[r][0];"number"==typeof i&&(o[i]=!0)}for(r=0;r<e.length;r++){var a=e[r];"number"==typeof a[0]&&o[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t,n){var o,r,i={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,u=0,d=[],p=n(30);function h(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=i[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(b(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(b(o.parts[a],t));i[o.id]={id:o.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function g(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=d[d.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=a(e.insertAt)||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=v(t)),o=_.bind(null,n,a,!1),r=_.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),g(e,t),t}(t),o=function(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=p(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),r=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),o=function(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),r=function(){m(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=("undefined"==typeof document?"undefined":a(document)))throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==a(t.attrs)?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=s()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return h(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var a=n[r];(s=i[a.id]).refs--,o.push(s)}for(e&&h(f(e,t),t),r=0;r<o.length;r++){var s;if(0===(s=o[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var k,w=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function _(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}}])},"object"==a(t)&&"object"==a(e)?e.exports=i():(o=[],void 0===(r="function"==typeof(n=i)?n.apply(t,o):n)||(e.exports=r))}).call(this,n(/*! ./../../webpack/buildin/module.js */"./node_modules/webpack/buildin/module.js")(e))},"./node_modules/downloadjs/download.js":
  /*!*********************************************!*\
    !*** ./node_modules/downloadjs/download.js ***!
    \*********************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r,i;"function"==typeof Symbol&&Symbol.iterator;r=[],void 0===(i="function"==typeof(o=function(){return function e(t,n,o){var r,i,a=window,s="application/octet-stream",l=o||s,c=t,u=!n&&!o&&c,d=document.createElement("a"),p=function(e){return String(e)},h=a.Blob||a.MozBlob||a.WebKitBlob||p,f=n||"download";if(h=h.call?h.bind(a):Blob,"true"===String(this)&&(l=(c=[c,l])[0],c=c[1]),u&&u.length<2048&&(f=u.split("/").pop().split("?")[0],d.href=u,-1!==d.href.indexOf(u))){var g=new XMLHttpRequest;return g.open("GET",u,!0),g.responseType="blob",g.onload=function(t){e(t.target.response,f,s)},setTimeout((function(){g.send()}),0),g}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(c)){if(!(c.length>2096103.424&&h!==p))return navigator.msSaveBlob?navigator.msSaveBlob(b(c),f):k(c);l=(c=b(c)).type||s}else if(/([\x80-\xff])/.test(c)){for(var m=0,v=new Uint8Array(c.length),y=v.length;m<y;++m)v[m]=c.charCodeAt(m);c=new h([v],{type:l})}function b(e){for(var t=e.split(/[:;,]/),n=t[1],o=("base64"==t[2]?atob:decodeURIComponent)(t.pop()),r=o.length,i=0,a=new Uint8Array(r);i<r;++i)a[i]=o.charCodeAt(i);return new h([a],{type:n})}function k(e,t){if("download"in d)return d.href=e,d.setAttribute("download",f),d.className="download-js-link",d.innerHTML="downloading...",d.style.display="none",document.body.appendChild(d),setTimeout((function(){d.click(),document.body.removeChild(d),!0===t&&setTimeout((function(){a.URL.revokeObjectURL(d.href)}),250)}),66),!0;if(/(Version)\/(\d+)\.(\d+)(?:\.(\d+))?.*Safari\//.test(navigator.userAgent))return/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),window.open(e)||confirm("Displaying New Document\n\nUse Save As... to download, then click back to return to this page.")&&(location.href=e),!0;var n=document.createElement("iframe");document.body.appendChild(n),!t&&/^data:/.test(e)&&(e="data:"+e.replace(/^data:([\w\/\-\+]+)/,s)),n.src=e,setTimeout((function(){document.body.removeChild(n)}),333)}if(r=c instanceof h?c:new h([c],{type:l}),navigator.msSaveBlob)return navigator.msSaveBlob(r,f);if(a.URL)k(a.URL.createObjectURL(r),!0);else{if("string"==typeof r||r.constructor===p)try{return k("data:"+l+";base64,"+a.btoa(r))}catch(e){return k("data:"+l+","+encodeURIComponent(r))}(i=new FileReader).onload=function(e){k(this.result)},i.readAsDataURL(r)}return!0}})?o.apply(t,r):o)||(e.exports=i)},"./node_modules/draggabilly/draggabilly.js":
  /*!*************************************************!*\
    !*** ./node_modules/draggabilly/draggabilly.js ***!
    \*************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r;"function"==typeof Symbol&&Symbol.iterator;
  /*!
   * Draggabilly v2.2.0
   * Make that shiz draggable
   * https://draggabilly.desandro.com
   * MIT license
   */
  !function(i,a){o=[n(/*! get-size/get-size */"./node_modules/get-size/get-size.js"),n(/*! unidragger/unidragger */"./node_modules/unidragger/unidragger.js")],void 0===(r=function(e,t){return function(e,t,n){function o(e,t){for(var n in t)e[n]=t[n];return e}var r=e.jQuery;function i(e,t){this.element="string"==typeof e?document.querySelector(e):e,r&&(this.$element=r(this.element)),this.options=o({},this.constructor.defaults),this.option(t),this._create()}var a=i.prototype=Object.create(n.prototype);i.defaults={},a.option=function(e){o(this.options,e)};var s={relative:!0,absolute:!0,fixed:!0};function l(e,t,n){return n=n||"round",t?Math[n](e/t)*t:e}a._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=o({},this.position);var e=getComputedStyle(this.element);s[e.position]||(this.element.style.position="relative"),this.on("pointerDown",this.onPointerDown),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},a.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},a.dispatchEvent=function(e,t,n){var o=[t].concat(n);this.emitEvent(e,o),this.dispatchJQueryEvent(e,t,n)},a.dispatchJQueryEvent=function(t,n,o){var r=e.jQuery;if(r&&this.$element){var i=r.Event(n);i.type=t,this.$element.trigger(i,o)}},a._getPosition=function(){var e=getComputedStyle(this.element),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=isNaN(t)?0:t,this.position.y=isNaN(n)?0:n,this._addTransformPosition(e)},a._getPositionCoord=function(e,n){if(-1!=e.indexOf("%")){var o=t(this.element.parentNode);return o?parseFloat(e)/100*o[n]:0}return parseInt(e,10)},a._addTransformPosition=function(e){var t=e.transform;if(0===t.indexOf("matrix")){var n=t.split(","),o=0===t.indexOf("matrix3d")?12:4,r=parseInt(n[o],10),i=parseInt(n[o+1],10);this.position.x+=r,this.position.y+=i}},a.onPointerDown=function(e,t){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",e,[t])},a.dragStart=function(e,t){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",e,[t]),this.animate())},a.measureContainment=function(){var e=this.getContainer();if(e){var n=t(this.element),o=t(e),r=this.element.getBoundingClientRect(),i=e.getBoundingClientRect(),a=o.borderLeftWidth+o.borderRightWidth,s=o.borderTopWidth+o.borderBottomWidth,l=this.relativeStartPosition={x:r.left-(i.left+o.borderLeftWidth),y:r.top-(i.top+o.borderTopWidth)};this.containSize={width:o.width-a-l.x-n.width,height:o.height-s-l.y-n.height}}},a.getContainer=function(){var e=this.options.containment;if(e)return e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):this.element.parentNode},a.onPointerMove=function(e,t,n){this.dispatchJQueryEvent("pointerMove",e,[t,n])},a.dragMove=function(e,t,n){if(this.isEnabled){var o=n.x,r=n.y,i=this.options.grid,a=i&&i[0],s=i&&i[1];o=l(o,a),r=l(r,s),o=this.containDrag("x",o,a),r=this.containDrag("y",r,s),o="y"==this.options.axis?0:o,r="x"==this.options.axis?0:r,this.position.x=this.startPosition.x+o,this.position.y=this.startPosition.y+r,this.dragPoint.x=o,this.dragPoint.y=r,this.dispatchEvent("dragMove",e,[t,n])}},a.containDrag=function(e,t,n){if(!this.options.containment)return t;var o="x"==e?"width":"height",r=l(-this.relativeStartPosition[e],n,"ceil"),i=this.containSize[o];return i=l(i,n,"floor"),Math.max(r,Math.min(i,t))},a.onPointerUp=function(e,t){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",e,[t])},a.dragEnd=function(e,t){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",e,[t]))},a.animate=function(){if(this.isDragging){this.positionDrag();var e=this;requestAnimationFrame((function(){e.animate()}))}},a.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},a.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},a.staticClick=function(e,t){this.dispatchEvent("staticClick",e,[t])},a.setPosition=function(e,t){this.position.x=e,this.position.y=t,this.setLeftTop()},a.enable=function(){this.isEnabled=!0},a.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},a.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},a._init=function(){},r&&r.bridget&&r.bridget("draggabilly",i);return i}(i,e,t)}.apply(t,o))||(e.exports=r)}(window)},"./node_modules/es5-ext/function/noop.js":
  /*!***********************************************!*\
    !*** ./node_modules/es5-ext/function/noop.js ***!
    \***********************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(){}},"./node_modules/es5-ext/object/assign/index.js":
  /*!*****************************************************!*\
    !*** ./node_modules/es5-ext/object/assign/index.js ***!
    \*****************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=n(/*! ./is-implemented */"./node_modules/es5-ext/object/assign/is-implemented.js")()?Object.assign:n(/*! ./shim */"./node_modules/es5-ext/object/assign/shim.js")},"./node_modules/es5-ext/object/assign/is-implemented.js":
  /*!**************************************************************!*\
    !*** ./node_modules/es5-ext/object/assign/is-implemented.js ***!
    \**************************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(){var e,t=Object.assign;return"function"==typeof t&&(t(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}},"./node_modules/es5-ext/object/assign/shim.js":
  /*!****************************************************!*\
    !*** ./node_modules/es5-ext/object/assign/shim.js ***!
    \****************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../keys */"./node_modules/es5-ext/object/keys/index.js"),r=n(/*! ../valid-value */"./node_modules/es5-ext/object/valid-value.js"),i=Math.max;e.exports=function(e,t){var n,a,s,l=i(arguments.length,2);for(e=Object(r(e)),s=function(o){try{e[o]=t[o]}catch(e){n||(n=e)}},a=1;a<l;++a)t=arguments[a],o(t).forEach(s);if(void 0!==n)throw n;return e}},"./node_modules/es5-ext/object/is-value.js":
  /*!*************************************************!*\
    !*** ./node_modules/es5-ext/object/is-value.js ***!
    \*************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../function/noop */"./node_modules/es5-ext/function/noop.js")();e.exports=function(e){return e!==o&&null!==e}},"./node_modules/es5-ext/object/keys/index.js":
  /*!***************************************************!*\
    !*** ./node_modules/es5-ext/object/keys/index.js ***!
    \***************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=n(/*! ./is-implemented */"./node_modules/es5-ext/object/keys/is-implemented.js")()?Object.keys:n(/*! ./shim */"./node_modules/es5-ext/object/keys/shim.js")},"./node_modules/es5-ext/object/keys/is-implemented.js":
  /*!************************************************************!*\
    !*** ./node_modules/es5-ext/object/keys/is-implemented.js ***!
    \************************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}},"./node_modules/es5-ext/object/keys/shim.js":
  /*!**************************************************!*\
    !*** ./node_modules/es5-ext/object/keys/shim.js ***!
    \**************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../is-value */"./node_modules/es5-ext/object/is-value.js"),r=Object.keys;e.exports=function(e){return r(o(e)?Object(e):e)}},"./node_modules/es5-ext/object/normalize-options.js":
  /*!**********************************************************!*\
    !*** ./node_modules/es5-ext/object/normalize-options.js ***!
    \**********************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ./is-value */"./node_modules/es5-ext/object/is-value.js"),r=Array.prototype.forEach,i=Object.create,a=function(e,t){var n;for(n in e)t[n]=e[n]};e.exports=function(e){var t=i(null);return r.call(arguments,(function(e){o(e)&&a(Object(e),t)})),t}},"./node_modules/es5-ext/object/valid-callable.js":
  /*!*******************************************************!*\
    !*** ./node_modules/es5-ext/object/valid-callable.js ***!
    \*******************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},"./node_modules/es5-ext/object/valid-value.js":
  /*!****************************************************!*\
    !*** ./node_modules/es5-ext/object/valid-value.js ***!
    \****************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ./is-value */"./node_modules/es5-ext/object/is-value.js");e.exports=function(e){if(!o(e))throw new TypeError("Cannot use null or undefined");return e}},"./node_modules/es5-ext/string/#/contains/index.js":
  /*!*********************************************************!*\
    !*** ./node_modules/es5-ext/string/#/contains/index.js ***!
    \*********************************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=n(/*! ./is-implemented */"./node_modules/es5-ext/string/#/contains/is-implemented.js")()?String.prototype.contains:n(/*! ./shim */"./node_modules/es5-ext/string/#/contains/shim.js")},"./node_modules/es5-ext/string/#/contains/is-implemented.js":
  /*!******************************************************************!*\
    !*** ./node_modules/es5-ext/string/#/contains/is-implemented.js ***!
    \******************************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o="razdwatrzy";e.exports=function(){return"function"==typeof o.contains&&(!0===o.contains("dwa")&&!1===o.contains("foo"))}},"./node_modules/es5-ext/string/#/contains/shim.js":
  /*!********************************************************!*\
    !*** ./node_modules/es5-ext/string/#/contains/shim.js ***!
    \********************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=String.prototype.indexOf;e.exports=function(e){return o.call(this,e,arguments[1])>-1}},"./node_modules/ev-emitter/ev-emitter.js":
  /*!***********************************************!*\
    !*** ./node_modules/ev-emitter/ev-emitter.js ***!
    \***********************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r;"function"==typeof Symbol&&Symbol.iterator;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(o=function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var n=this._events=this._events||{},o=n[e]=n[e]||[];return-1==o.indexOf(t)&&o.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var n=this._onceEvents=this._onceEvents||{};return(n[e]=n[e]||{})[t]=!0,this}},t.off=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){var o=n.indexOf(t);return-1!=o&&n.splice(o,1),this}},t.emitEvent=function(e,t){var n=this._events&&this._events[e];if(n&&n.length){n=n.slice(0),t=t||[];for(var o=this._onceEvents&&this._onceEvents[e],r=0;r<n.length;r++){var i=n[r];o&&o[i]&&(this.off(e,i),delete o[i]),i.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?o.call(t,n,t,e):o)||(e.exports=r)},"./node_modules/event-emitter/index.js":
  /*!*********************************************!*\
    !*** ./node_modules/event-emitter/index.js ***!
    \*********************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r,i,a,s,l,c,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},d=n(/*! d */"./node_modules/d/index.js"),p=n(/*! es5-ext/object/valid-callable */"./node_modules/es5-ext/object/valid-callable.js"),h=Function.prototype.apply,f=Function.prototype.call,g=Object.create,m=Object.defineProperty,v=Object.defineProperties,y=Object.prototype.hasOwnProperty,b={configurable:!0,enumerable:!1,writable:!0};r=function(e,t){var n,r;return p(t),r=this,o.call(this,e,n=function(){i.call(r,e,n),h.call(t,this,arguments)}),n.__eeOnceListener__=t,this},s={on:o=function(e,t){var n;return p(t),y.call(this,"__ee__")?n=this.__ee__:(n=b.value=g(null),m(this,"__ee__",b),b.value=null),n[e]?"object"===u(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},once:r,off:i=function(e,t){var n,o,r,i;if(p(t),!y.call(this,"__ee__"))return this;if(!(n=this.__ee__)[e])return this;if("object"===(void 0===(o=n[e])?"undefined":u(o)))for(i=0;r=o[i];++i)r!==t&&r.__eeOnceListener__!==t||(2===o.length?n[e]=o[i?0:1]:o.splice(i,1));else o!==t&&o.__eeOnceListener__!==t||delete n[e];return this},emit:a=function(e){var t,n,o,r,i;if(y.call(this,"__ee__")&&(r=this.__ee__[e]))if("object"===(void 0===r?"undefined":u(r))){for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];for(r=r.slice(),t=0;o=r[t];++t)h.call(o,this,i)}else switch(arguments.length){case 1:f.call(r,this);break;case 2:f.call(r,this,arguments[1]);break;case 3:f.call(r,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,i=new Array(n-1),t=1;t<n;++t)i[t-1]=arguments[t];h.call(r,this,i)}}},l={on:d(o),once:d(r),off:d(i),emit:d(a)},c=v({},l),e.exports=t=function(e){return null==e?g(c):v(Object(e),l)},t.methods=s},"./node_modules/get-size/get-size.js":
  /*!*******************************************!*\
    !*** ./node_modules/get-size/get-size.js ***!
    \*******************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r,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};window,void 0===(r="function"==typeof(o=function(){function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},n=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],o=n.length;function r(e){var n=getComputedStyle(e);return n||t("Style returned "+n+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),n}var a,s=!1;function l(t){if(function(){if(!s){s=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var n=document.body||document.documentElement;n.appendChild(t);var o=r(t);a=200==Math.round(e(o.width)),l.isBoxSizeOuter=a,n.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==(void 0===t?"undefined":i(t))&&t.nodeType){var c=r(t);if("none"==c.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<o;t++)e[n[t]]=0;return e}();var u={};u.width=t.offsetWidth,u.height=t.offsetHeight;for(var d=u.isBorderBox="border-box"==c.boxSizing,p=0;p<o;p++){var h=n[p],f=c[h],g=parseFloat(f);u[h]=isNaN(g)?0:g}var m=u.paddingLeft+u.paddingRight,v=u.paddingTop+u.paddingBottom,y=u.marginLeft+u.marginRight,b=u.marginTop+u.marginBottom,k=u.borderLeftWidth+u.borderRightWidth,w=u.borderTopWidth+u.borderBottomWidth,_=d&&a,x=e(c.width);!1!==x&&(u.width=x+(_?0:m+k));var E=e(c.height);return!1!==E&&(u.height=E+(_?0:v+w)),u.innerWidth=u.width-(m+k),u.innerHeight=u.height-(v+w),u.outerWidth=u.width+y,u.outerHeight=u.height+b,u}}return l})?o.call(t,n,t,e):o)||(e.exports=r)},"./node_modules/pasition/dist/pasition.js":
  /*!************************************************!*\
    !*** ./node_modules/pasition/dist/pasition.js ***!
    \************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r,i,a="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=function(){var e=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(e){r=!0,i=e}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},t=2*Math.PI,n=function(e,t,n,o,r,i,a){var s=e.x,l=e.y;return{x:o*(s*=t)-r*(l*=n)+i,y:r*s+o*l+a}},o=function(e,t){var n=4/3*Math.tan(t/4),o=Math.cos(e),r=Math.sin(e),i=Math.cos(e+t),a=Math.sin(e+t);return[{x:o-r*n,y:r+o*n},{x:i+a*n,y:a-i*n},{x:i,y:a}]},r=function(e,t,n,o){var r=e*o-t*n<0?-1:1,i=(e*n+t*o)/(Math.sqrt(e*e+t*t)*Math.sqrt(e*e+t*t));return i>1&&(i=1),i<-1&&(i=-1),r*Math.acos(i)},i=function(i){var a=i.px,s=i.py,l=i.cx,c=i.cy,u=i.rx,d=i.ry,p=i.xAxisRotation,h=void 0===p?0:p,f=i.largeArcFlag,g=void 0===f?0:f,m=i.sweepFlag,v=void 0===m?0:m,y=[];if(0===u||0===d)return[];var b=Math.sin(h*t/360),k=Math.cos(h*t/360),w=k*(a-l)/2+b*(s-c)/2,_=-b*(a-l)/2+k*(s-c)/2;if(0===w&&0===_)return[];u=Math.abs(u),d=Math.abs(d);var x=Math.pow(w,2)/Math.pow(u,2)+Math.pow(_,2)/Math.pow(d,2);x>1&&(u*=Math.sqrt(x),d*=Math.sqrt(x));var E=function(e,n,o,i,a,s,l,c,u,d,p,h){var f=Math.pow(a,2),g=Math.pow(s,2),m=Math.pow(p,2),v=Math.pow(h,2),y=f*g-f*v-g*m;y<0&&(y=0),y/=f*v+g*m;var b=(y=Math.sqrt(y)*(l===c?-1:1))*a/s*h,k=y*-s/a*p,w=d*b-u*k+(e+o)/2,_=u*b+d*k+(n+i)/2,x=(p-b)/a,E=(h-k)/s,C=(-p-b)/a,S=(-h-k)/s,P=r(1,0,x,E),j=r(x,E,C,S);return 0===c&&j>0&&(j-=t),1===c&&j<0&&(j+=t),[w,_,P,j]}(a,s,l,c,u,d,g,v,b,k,w,_),C=e(E,4),S=C[0],P=C[1],j=C[2],T=C[3],O=Math.max(Math.ceil(Math.abs(T)/(t/4)),1);T/=O;for(var M=0;M<O;M++)y.push(o(j,T)),j+=T;return y.map((function(e){var t=n(e[0],u,d,k,b,S,P),o=t.x,r=t.y,i=n(e[1],u,d,k,b,S,P),a=i.x,s=i.y,l=n(e[2],u,d,k,b,S,P);return{x1:o,y1:r,x2:a,y2:s,x:l.x,y:l.y}}))},a={a:7,c:6,h:1,l:2,m:2,q:4,s:4,t:2,v:1,z:0},s=/([astvzqmhlc])([^astvzqmhlc]*)/gi,l=/-?[0-9]*\.?[0-9]+(?:e[-+]?\d+)?/gi;function c(e){var t=e[0][0],n=e[0][1],o=t,r=n;return e.forEach((function(e){var i=e[0],a=e[2],s=e[4],l=e[6],c=e[1],u=e[3],d=e[5],p=e[7];t=Math.min(t,i,a,s,l),n=Math.min(n,c,u,d,p),o=Math.max(o,i,a,s,l),r=Math.max(r,c,u,d,p)})),[t,n,o,r]}function u(e,t){var n=function(e){for(var t=[],n=0;n<e;n++){for(var o=[],r=0;r<e;r++){var i=r+n;i>e-1&&(i-=e),o[i]=r}t.push(o)}return t}(e.length),o=[];n.forEach((function(n){var r=0,i=0;n.forEach((function(n){var o,a,s,l,c,u,d,p,h,f,g,m,v,y,b,k,w,_;r+=(o=e[n],a=t[i++],s=o[0],l=o[2],c=o[4],u=o[6],d=o[1],p=o[3],h=o[5],f=o[7],g=a[0],m=a[2],v=a[4],y=a[6],b=a[1],k=a[3],w=a[5],_=a[7],Math.sqrt(Math.pow(g-s,2)+Math.pow(b-d,2))+Math.sqrt(Math.pow(m-l,2)+Math.pow(k-p,2))+Math.sqrt(Math.pow(v-c,2)+Math.pow(w-h,2))+Math.sqrt(Math.pow(y-u,2)+Math.pow(_-f,2)))})),o.push({index:n,distance:r})})),o.sort((function(e,t){return e.distance-t.distance}));var r=[];return o[0].index.forEach((function(t){r.push(e[t])})),r}function d(e,t){var n=function(e){for(var t=[],n=0;n<e;n++)t.push(n);return o=[],r=[],function e(t){var n,i;for(n=0;n<t.length;n++)i=t.splice(n,1)[0],r.push(i),0==t.length&&o.push(r.slice()),e(t),t.splice(n,0,i),r.pop();return o}(t);var o,r}(e.length),o=[];n.forEach((function(n){var r=0;n.forEach((function(n){var o,i;r+=(o=c(e[n]),i=c(t[n]),Math.sqrt(Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2))+Math.sqrt(Math.pow(o[2]-i[2],2)+Math.pow(o[3]-i[3],2)))})),o.push({index:n,distance:r})})),o.sort((function(e,t){return e.distance-t.distance}));var r=[];return o[0].index.forEach((function(t){r.push(e[t])})),r}var p={};function h(e,t,n,o,r,i,a,s,l,c){var u=(n-e)*l+e,d=(o-t)*l+t,p=(r-n)*l+n,h=(i-o)*l+o,f=(p-u)*l+u,g=(h-d)*l+d,m=(((a-r)*l+r-p)*l+p-f)*l+f,v=(((s-i)*l+i-h)*l+h-g)*l+g;return c?[m,v,f,g,u,d,e,t]:[e,t,u,d,f,g,m,v]}function f(e,t){for(var n=function(t){var n=e[e.length-1],o=[];n.forEach((function(e){o.push(e.slice(0))})),e.push(o)},o=0;o<t;o++)n()}return p.parser=function(e){var t=[];return e.replace(s,(function(e,n,o){var r=n.toLowerCase();for(o=function(e){var t=e.match(l);return t?t.map(Number):[]}(o),"m"==r&&o.length>2&&(t.push([n].concat(o.splice(0,2))),r="l",n="m"==n?"l":"L");;){if(o.length==a[r])return o.unshift(n),t.push(o);if(o.length<a[r])throw new Error("malformed path data");t.push([n].concat(o.splice(0,a[r])))}})),t},p.lerpCurve=function(e,t,n){return p.lerpPoints(e[0],e[1],t[0],t[1],n).concat(p.lerpPoints(e[2],e[3],t[2],t[3],n)).concat(p.lerpPoints(e[4],e[5],t[4],t[5],n)).concat(p.lerpPoints(e[6],e[7],t[6],t[7],n))},p.lerpPoints=function(e,t,n,o,r){return[e+(n-e)*r,t+(o-t)*r]},p.q2b=function(e,t,n,o,r,i){return[e,t,(e+2*n)/3,(t+2*o)/3,(r+2*n)/3,(i+2*o)/3,r,i]},p.path2shapes=function(e){for(var t=p.parser(e),n=0,o=0,r=0,a=t.length,s=[],l=null,c=void 0,u=void 0,d=void 0,h=void 0,f=void 0,g=void 0,m=void 0;r<a;r++){var v=t[r],y=v[0],b=t[r-1];switch(y){case"m":s[f=s.length]=[],l=s[f],n+=v[1],o+=v[2];break;case"M":s[f=s.length]=[],l=s[f],n=v[1],o=v[2];break;case"l":l.push([n,o,n,o,n,o,n+v[1],o+v[2]]),n+=v[1],o+=v[2];break;case"L":l.push([n,o,v[1],v[2],v[1],v[2],v[1],v[2]]),n=v[1],o=v[2];break;case"h":l.push([n,o,n,o,n,o,n+v[1],o]),n+=v[1];break;case"H":l.push([n,o,v[1],o,v[1],o,v[1],o]),n=v[1];break;case"v":l.push([n,o,n,o,n,o,n,o+v[1]]),o+=v[1];break;case"V":l.push([n,o,n,v[1],n,v[1],n,v[1]]),o=v[1];break;case"C":l.push([n,o,v[1],v[2],v[3],v[4],v[5],v[6]]),n=v[5],o=v[6];break;case"S":"C"===b[0]||"c"===b[0]?l.push([n,o,n+b[5]-b[3],o+b[6]-b[4],v[1],v[2],v[3],v[4]]):"S"!==b[0]&&"s"!==b[0]||l.push([n,o,n+b[3]-b[1],o+b[4]-b[2],v[1],v[2],v[3],v[4]]),n=v[3],o=v[4];break;case"c":l.push([n,o,n+v[1],o+v[2],n+v[3],o+v[4],n+v[5],o+v[6]]),n+=v[5],o+=v[6];break;case"s":"C"===b[0]||"c"===b[0]?l.push([n,o,n+b[5]-b[3],o+b[6]-b[4],n+v[1],o+v[2],n+v[3],o+v[4]]):"S"!==b[0]&&"s"!==b[0]||l.push([n,o,n+b[3]-b[1],o+b[4]-b[2],n+v[1],o+v[2],n+v[3],o+v[4]]),n+=v[3],o+=v[4];break;case"a":m=(g=i({rx:v[1],ry:v[2],px:n,py:o,xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5],cx:n+v[6],cy:o+v[7]}))[g.length-1],g.forEach((function(e,t){0===t?l.push([n,o,e.x1,e.y1,e.x2,e.y2,e.x,e.y]):l.push([g[t-1].x,g[t-1].y,e.x1,e.y1,e.x2,e.y2,e.x,e.y])})),n=m.x,o=m.y;break;case"A":m=(g=i({rx:v[1],ry:v[2],px:n,py:o,xAxisRotation:v[3],largeArcFlag:v[4],sweepFlag:v[5],cx:v[6],cy:v[7]}))[g.length-1],g.forEach((function(e,t){0===t?l.push([n,o,e.x1,e.y1,e.x2,e.y2,e.x,e.y]):l.push([g[t-1].x,g[t-1].y,e.x1,e.y1,e.x2,e.y2,e.x,e.y])})),n=m.x,o=m.y;break;case"Q":l.push(p.q2b(n,o,v[1],v[2],v[3],v[4])),n=v[3],o=v[4];break;case"q":l.push(p.q2b(n,o,n+v[1],o+v[2],v[3]+n,v[4]+o)),n+=v[3],o+=v[4];break;case"T":"Q"===b[0]||"q"===b[0]?(d=n+b[3]-b[1],h=o+b[4]-b[2],l.push(p.q2b(n,o,d,h,v[1],v[2]))):"T"!==b[0]&&"t"!==b[0]||(l.push(p.q2b(n,o,n+n-d,o+o-h,v[1],v[2])),d=n+n-d,h=o+o-h),n=v[1],o=v[2];break;case"t":"Q"===b[0]||"q"===b[0]?(d=n+b[3]-b[1],h=o+b[4]-b[2],l.push(p.q2b(n,o,d,h,n+v[1],o+v[2]))):"T"!==b[0]&&"t"!==b[0]||(l.push(p.q2b(n,o,n+n-d,o+o-h,n+v[1],o+v[2])),d=n+n-d,h=o+o-h),n+=v[1],o+=v[2];break;case"Z":case"z":c=l[0][0],u=l[0][1],l.push([n,o,c,u,c,u,c,u])}}return s},p._upCurves=function(e,t){for(var n=0,o=0,r=e.length;n<t;n++)e.push(e[o].slice(0)),++o>r-1&&(o-=r)},p._splitCurves=function(e,t){for(var n,o,r,i,a,s,l,c,u,d=0,p=0;d<t;d++){var f=e[p],g=(n=f[0],o=f[1],r=f[2],i=f[3],a=f[4],s=f[5],l=f[6],c=f[7],{left:h(n,o,r,i,a,s,l,c,u=.5),right:h(l,c,a,s,r,i,n,o,1-u,!0)});e.splice(p,1),e.splice(p,0,g.left,g.right),(p+=2)>=e.length-1&&(p=0)}},p.lerp=function(e,t,n){return p._lerp(p.path2shapes(e),p.path2shapes(t),n)},p.MIM_CURVES_COUNT=100,p._preprocessing=function(e,t){var n=e.length,o=t.length,r=JSON.parse(JSON.stringify(e)),i=JSON.parse(JSON.stringify(t));return n>o?f(i,n-o):n<o&&f(r,o-n),(r=d(r,i)).forEach((function(e,t){var n=e.length,o=i[t].length;n>o?n<p.MIM_CURVES_COUNT?(p._splitCurves(e,p.MIM_CURVES_COUNT-n),p._splitCurves(i[t],p.MIM_CURVES_COUNT-o)):p._splitCurves(i[t],n-o):n<o&&(o<p.MIM_CURVES_COUNT?(p._splitCurves(e,p.MIM_CURVES_COUNT-n),p._splitCurves(i[t],p.MIM_CURVES_COUNT-o)):p._splitCurves(e,o-n))})),r.forEach((function(e,t){r[t]=u(e,i[t])})),[r,i]},p._lerp=function(e,t,n){var o=[];return e.forEach((function(e,r){var i=[];e.forEach((function(e,o){i.push(p.lerpCurve(e,t[r][o],n))})),o.push(i)})),o},p.animate=function(e){var t=p.path2shapes(e.from),n=p.path2shapes(e.to),o=p._preprocessing(t,n),r=new Date,i=e.end||function(){},a=e.progress||function(){},s=e.begin||function(){},l=e.easing||function(e){return e},c=null,u=null,d=e.time;s(t),function e(){var t=new Date-r;if(t>=d)return a(u=n,1),i(u),void cancelAnimationFrame(c);var s=l(t/d);u=p._lerp(o[0],o[1],s),a(u,s),c=requestAnimationFrame(e)}()},p},"object"===a(t)&&void 0!==e?e.exports=i():void 0===(r="function"==typeof(o=i)?o.call(t,n,t,e):o)||(e.exports=r)},"./node_modules/style-loader/lib/addStyles.js":
  /*!****************************************************!*\
    !*** ./node_modules/style-loader/lib/addStyles.js ***!
    \****************************************************/
  /*! no static exports found */function(e,t,n){var o,r,i={},a=(o=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===r&&(r=o.apply(this,arguments)),r}),s=function(e){return document.querySelector(e)},l=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=s.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),c=null,u=0,d=[],p=n(/*! ./urls */"./node_modules/style-loader/lib/urls.js");function h(e,t){for(var n=0;n<e.length;n++){var o=e[n],r=i[o.id];if(r){r.refs++;for(var a=0;a<r.parts.length;a++)r.parts[a](o.parts[a]);for(;a<o.parts.length;a++)r.parts.push(b(o.parts[a],t))}else{var s=[];for(a=0;a<o.parts.length;a++)s.push(b(o.parts[a],t));i[o.id]={id:o.id,refs:1,parts:s}}}}function f(e,t){for(var n=[],o={},r=0;r<e.length;r++){var i=e[r],a=t.base?i[0]+t.base:i[0],s={css:i[1],media:i[2],sourceMap:i[3]};o[a]?o[a].parts.push(s):n.push(o[a]={id:a,parts:[s]})}return n}function g(e,t){var n=l(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=d[d.length-1];if("top"===e.insertAt)o?o.nextSibling?n.insertBefore(t,o.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),d.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=l(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,r)}}function m(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=d.indexOf(e);t>=0&&d.splice(t,1)}function v(e){var t=document.createElement("style");return e.attrs.type="text/css",y(t,e.attrs),g(e,t),t}function y(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function b(e,t){var n,o,r,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var a=u++;n=c||(c=v(t)),o=_.bind(null,n,a,!1),r=_.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",y(t,e.attrs),g(e,t),t}(t),o=E.bind(null,n,t),r=function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=v(t),o=x.bind(null,n),r=function(){m(n)});return o(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;o(e=t)}else r()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=f(e,t);return h(n,t),function(e){for(var o=[],r=0;r<n.length;r++){var a=n[r];(s=i[a.id]).refs--,o.push(s)}e&&h(f(e,t),t);for(r=0;r<o.length;r++){var s;if(0===(s=o[r]).refs){for(var l=0;l<s.parts.length;l++)s.parts[l]();delete i[s.id]}}}};var k,w=(k=[],function(e,t){return k[e]=t,k.filter(Boolean).join("\n")});function _(e,t,n,o){var r=n?"":o.css;if(e.styleSheet)e.styleSheet.cssText=w(t,r);else{var i=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(i,a[t]):e.appendChild(i)}}function x(e,t){var n=t.css,o=t.media;if(o&&e.setAttribute("media",o),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function E(e,t,n){var o=n.css,r=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||i)&&(o=p(o)),r&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var a=new Blob([o],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}},"./node_modules/style-loader/lib/urls.js":
  /*!***********************************************!*\
    !*** ./node_modules/style-loader/lib/urls.js ***!
    \***********************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,o=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,i=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(i)?e:(r=0===i.indexOf("//")?i:0===i.indexOf("/")?n+i:o+i.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}))}},"./node_modules/type/function/is.js":
  /*!******************************************!*\
    !*** ./node_modules/type/function/is.js ***!
    \******************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../prototype/is */"./node_modules/type/prototype/is.js");e.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!o(e)}},"./node_modules/type/object/is.js":
  /*!****************************************!*\
    !*** ./node_modules/type/object/is.js ***!
    \****************************************/
  /*! no static exports found */function(e,t,n){"use strict";var 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},r=n(/*! ../value/is */"./node_modules/type/value/is.js"),i={object:!0,function:!0,undefined:!0};e.exports=function(e){return!!r(e)&&hasOwnProperty.call(i,void 0===e?"undefined":o(e))}},"./node_modules/type/plain-function/is.js":
  /*!************************************************!*\
    !*** ./node_modules/type/plain-function/is.js ***!
    \************************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../function/is */"./node_modules/type/function/is.js"),r=/^\s*class[\s{/}]/,i=Function.prototype.toString;e.exports=function(e){return!!o(e)&&!r.test(i.call(e))}},"./node_modules/type/prototype/is.js":
  /*!*******************************************!*\
    !*** ./node_modules/type/prototype/is.js ***!
    \*******************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=n(/*! ../object/is */"./node_modules/type/object/is.js");e.exports=function(e){if(!o(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch(e){return!1}}},"./node_modules/type/value/is.js":
  /*!***************************************!*\
    !*** ./node_modules/type/value/is.js ***!
    \***************************************/
  /*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){return null!=e}},"./node_modules/unidragger/unidragger.js":
  /*!***********************************************!*\
    !*** ./node_modules/unidragger/unidragger.js ***!
    \***********************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r;"function"==typeof Symbol&&Symbol.iterator;
  /*!
   * Unidragger v2.3.0
   * Draggable base class
   * MIT license
   */
  !function(i,a){o=[n(/*! unipointer/unipointer */"./node_modules/unipointer/unipointer.js")],void 0===(r=function(e){return function(e,t){function n(){}var o=n.prototype=Object.create(t.prototype);o.bindHandles=function(){this._bindHandles(!0)},o.unbindHandles=function(){this._bindHandles(!1)},o._bindHandles=function(t){for(var n=(t=void 0===t||t)?"addEventListener":"removeEventListener",o=t?this._touchActionValue:"",r=0;r<this.handles.length;r++){var i=this.handles[r];this._bindStartEvent(i,t),i[n]("click",this),e.PointerEvent&&(i.style.touchAction=o)}},o._touchActionValue="none",o.pointerDown=function(e,t){this.okayPointerDown(e)&&(this.pointerDownPointer=t,e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t]))};var r={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},i={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return o.okayPointerDown=function(e){var t=r[e.target.nodeName],n=i[e.target.type],o=!t||n;return o||this._pointerReset(),o},o.pointerDownBlur=function(){var e=document.activeElement;e&&e.blur&&e!=document.body&&e.blur()},o.pointerMove=function(e,t){var n=this._dragPointerMove(e,t);this.emitEvent("pointerMove",[e,t,n]),this._dragMove(e,t,n)},o._dragPointerMove=function(e,t){var n={x:t.pageX-this.pointerDownPointer.pageX,y:t.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(e,t),n},o.hasDragStarted=function(e){return Math.abs(e.x)>3||Math.abs(e.y)>3},o.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},o._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},o._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},o.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},o._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},o.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},o._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},o.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},o.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},o._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},o.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},n.getPointerPoint=t.getPointerPoint,n}(i,e)}.apply(t,o))||(e.exports=r)}(window)},"./node_modules/unipointer/unipointer.js":
  /*!***********************************************!*\
    !*** ./node_modules/unipointer/unipointer.js ***!
    \***********************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r;"function"==typeof Symbol&&Symbol.iterator;
  /*!
   * Unipointer v2.3.0
   * base class for doing one thing with pointer event
   * MIT license
   */
  !function(i,a){o=[n(/*! ev-emitter/ev-emitter */"./node_modules/ev-emitter/ev-emitter.js")],void 0===(r=function(e){return function(e,t){function n(){}var o=n.prototype=Object.create(t.prototype);o.bindStartEvent=function(e){this._bindStartEvent(e,!0)},o.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},o._bindStartEvent=function(t,n){var o=(n=void 0===n||n)?"addEventListener":"removeEventListener",r="mousedown";e.PointerEvent?r="pointerdown":"ontouchstart"in e&&(r="touchstart"),t[o](r,this)},o.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},o.getTouch=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(n.identifier==this.pointerIdentifier)return n}},o.onmousedown=function(e){var t=e.button;t&&0!==t&&1!==t||this._pointerDown(e,e)},o.ontouchstart=function(e){this._pointerDown(e,e.changedTouches[0])},o.onpointerdown=function(e){this._pointerDown(e,e)},o._pointerDown=function(e,t){e.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==t.pointerId?t.pointerId:t.identifier,this.pointerDown(e,t))},o.pointerDown=function(e,t){this._bindPostStartEvents(e),this.emitEvent("pointerDown",[e,t])};var r={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return o._bindPostStartEvents=function(t){if(t){var n=r[t.type];n.forEach((function(t){e.addEventListener(t,this)}),this),this._boundPointerEvents=n}},o._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach((function(t){e.removeEventListener(t,this)}),this),delete this._boundPointerEvents)},o.onmousemove=function(e){this._pointerMove(e,e)},o.onpointermove=function(e){e.pointerId==this.pointerIdentifier&&this._pointerMove(e,e)},o.ontouchmove=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerMove(e,t)},o._pointerMove=function(e,t){this.pointerMove(e,t)},o.pointerMove=function(e,t){this.emitEvent("pointerMove",[e,t])},o.onmouseup=function(e){this._pointerUp(e,e)},o.onpointerup=function(e){e.pointerId==this.pointerIdentifier&&this._pointerUp(e,e)},o.ontouchend=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerUp(e,t)},o._pointerUp=function(e,t){this._pointerDone(),this.pointerUp(e,t)},o.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t])},o._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},o._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},o.pointerDone=function(){},o.onpointercancel=function(e){e.pointerId==this.pointerIdentifier&&this._pointerCancel(e,e)},o.ontouchcancel=function(e){var t=this.getTouch(e.changedTouches);t&&this._pointerCancel(e,t)},o._pointerCancel=function(e,t){this._pointerDone(),this.pointerCancel(e,t)},o.pointerCancel=function(e,t){this.emitEvent("pointerCancel",[e,t])},n.getPointerPoint=function(e){return{x:e.pageX,y:e.pageY}},n}(i,e)}.apply(t,o))||(e.exports=r)}(window)},"./node_modules/webpack/buildin/module.js":
  /*!***********************************!*\
    !*** (webpack)/buildin/module.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){"use strict";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}},"./package.json":
  /*!**********************!*\
    !*** ./package.json ***!
    \**********************/
  /*! exports provided: name, version, description, main, scripts, keywords, babel, repository, author, license, dependencies, browserslist, devDependencies, default */function(e){e.exports=JSON.parse('{"name":"hkplayer","version":"1.1.7","description":"video player","main":"./dist/index.js","scripts":{"prepare":"npm run build","build":"webpack --progress --display-chunks -p","dev":"webpack --progress --display-chunks -p --watch --mode development","test":"karma start --single-run","test:watch":"karma start"},"keywords":["video","player"],"babel":{"presets":["es2015"],"plugins":["add-module-exports","babel-plugin-bulk-import"]},"repository":{"type":"git","url":"git+https://github.com/bytedance/hkplayer.git"},"author":"yinguohui@bytedance.com","license":"MIT","dependencies":{"danmu.js":"0.1.0","deepmerge":"^1.5.0","downloadjs":"1.4.7","draggabilly":"^2.2.0","event-emitter":"^0.3.5","pasition":"^1.0.1","request-frame":"^1.5.3"},"browserslist":["> 5%","IE 9","iOS 7","Firefox > 20"],"devDependencies":{"autoprefixer":"^9.1.5","babel-core":"^6.26.3","babel-loader":"^7.1.4","babel-plugin-add-module-exports":"^0.2.1","babel-plugin-bulk-import":"^1.0.2","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-plugin-transform-runtime":"^6.23.0","babel-preset-es2015":"^6.24.1","chai":"^4.1.2","core-js":"^2.5.4","css-loader":"^0.28.11","json-loader":"^0.5.7","karma":"^3.0.0","karma-chrome-launcher":"^2.2.0","karma-mocha":"^1.3.0","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.32","karma-webpack":"^4.0.0-rc.1","mocha":"^5.2.0","node-sass":"^4.8.3","postcss-cssnext":"^3.1.0","postcss-loader":"^2.1.5","sass-loader":"^6.0.7","style-loader":"^0.20.3","sugarss":"^1.0.1","webpack":"^4.11.0","webpack-cli":"^3.0.2","zlib":"^1.0.5"}}')},"./src/control/collect.js":
  /*!********************************!*\
    !*** ./src/control/collect.js ***!
    \********************************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var 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},r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var i=void 0,a=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.set=function(e,n){var o=e,r=n;if(null===r)return!1;var i="";if(o.indexOf(".")>-1){var a=o.split(".");i=a[0],o=a[1]}"os_version"===o&&(r=""+r),i?"user"===i||"header"===i?t.envInfo[i][o]=r:"headers"===i?t.envInfo.header.headers[o]=r:t.envInfo.header.headers.custom[o]=r:t.envInfo.user.hasOwnProperty(o)?["user_type","device_id","ip_addr_id"].indexOf(o)>-1?t.envInfo.user[o]=Number(r):["user_id","web_id","user_unique_id","ssid"].indexOf(o)>-1?t.envInfo.user[o]=String(r):["user_is_auth","user_is_login"].indexOf(o)>-1&&(t.envInfo.user[o]=Boolean(r)):t.envInfo.header.hasOwnProperty(o)?t.envInfo.header[o]=r:t.envInfo.header.headers.hasOwnProperty(o)?t.envInfo.header.headers[o]=r:t.envInfo.header.headers.custom[o]=r},this.get=function(){var e={user:{},header:{headers:{custom:{}}}},n=t.envInfo,o=n.user,a=Object.keys(o),s=Array.isArray(a),l=0;for(a=s?a:a[Symbol.iterator]();;){var c;if(s){if(l>=a.length)break;c=a[l++]}else{if((l=a.next()).done)break;c=l.value}var u=c;o[u]!==i&&(e.user[u]=o[u])}var d=n.header,p=Object.keys(d),h=Array.isArray(p),f=0;for(p=h?p:p[Symbol.iterator]();;){var g;if(h){if(f>=p.length)break;g=p[f++]}else{if((f=p.next()).done)break;g=f.value}var m=g;d[m]!==i&&"headers"!==m&&(e.header[m]=d[m])}var v=n.header.headers,y=Object.keys(v),b=Array.isArray(y),k=0;for(y=b?y:y[Symbol.iterator]();;){var w;if(b){if(k>=y.length)break;w=y[k++]}else{if((k=y.next()).done)break;w=k.value}var _=w;"custom"!==_&&v[_]!==i&&(e.header.headers[_]=v[_])}var x=n.header.headers.custom,E=Object.keys(x);if(E.length){var C=E,S=Array.isArray(C),P=0;for(C=S?C:C[Symbol.iterator]();;){var j;if(S){if(P>=C.length)break;j=C[P++]}else{if((P=C.next()).done)break;j=P.value}var T=j;e.header.headers.custom[T]=x[T]}}return{user:e.user,header:r({},e.header,{headers:e.header.headers})}},this.envInfo={user:{user_unique_id:i,user_type:i,user_id:i,user_is_auth:i,user_is_login:i,device_id:i,web_id:i,ip_addr_id:i,ssid:i},header:{app_id:i,app_name:i,app_install_id:i,app_package:i,app_channel:i,app_version:i,os_name:i,os_version:i,device_model:i,ab_client:i,ab_version:i,traffic_type:i,utm_source:i,utm_medium:i,utm_campaign:i,client_ip:i,device_brand:i,os_api:i,access:i,language:i,region:i,app_language:i,app_region:i,creative_id:i,ad_id:i,campaign_id:i,log_type:i,rnd:i,platform:i,sdk_version:i,province:i,city:i,timezone:i,tz_offset:i,tz_name:i,sim_region:i,carrier:i,resolution:i,browser:i,browser_version:i,referrer:i,referrer_host:i,headers:{utm_term:i,utm_content:i,custom:{}}}}},s=function(e){var t=document.createElement("a");return t.href=e,t},l=screen.width||0,c=screen.height||0,u=l+" x "+c,d=navigator.appVersion,p=navigator.userAgent,h=navigator.language,f=document.referrer,g=s(f).hostname,m=function(e){var t=s(e).search;t=t.slice(1);var n={};return t.split("&").forEach((function(e){var t=e.split("="),o=t[0],r=t[1];n[o]=decodeURIComponent(void 0===r?"":r)})),n}(location.href),v="",y="",b="",k=""+parseFloat(d),w=void 0,_=void 0;-1!==(w=p.indexOf("Opera"))&&(b="Opera",k=p.substring(w+6),-1!==(w=p.indexOf("Version"))&&(k=p.substring(w+8))),-1!==(w=p.indexOf("Edge"))?(b="Microsoft Edge",k=p.substring(w+5)):-1!==(w=p.indexOf("MSIE"))?(b="Microsoft Internet Explorer",k=p.substring(w+5)):-1!==(w=p.indexOf("Chrome"))?(b="Chrome",k=p.substring(w+7)):-1!==(w=p.indexOf("Safari"))?(b="Safari",k=p.substring(w+7),-1!==(w=p.indexOf("Version"))&&(k=p.substring(w+8))):-1!==(w=p.indexOf("Firefox"))&&(b="Firefox",k=p.substring(w+8)),-1!==(_=k.indexOf(";"))&&(k=k.substring(0,_)),-1!==(_=k.indexOf(" "))&&(k=k.substring(0,_)),-1!==(_=k.indexOf(")"))&&(k=k.substring(0,_));for(var x,E,C=/Mobile|htc|mini|Android|iP(ad|od|hone)/.test(d)?"wap":"web",S=[{s:"Windows 10",r:/(Windows 10.0|Windows NT 10.0)/},{s:"Windows 8.1",r:/(Windows 8.1|Windows NT 6.3)/},{s:"Windows 8",r:/(Windows 8|Windows NT 6.2)/},{s:"Windows 7",r:/(Windows 7|Windows NT 6.1)/},{s:"Android",r:/Android/},{s:"Sun OS",r:/SunOS/},{s:"Linux",r:/(Linux|X11)/},{s:"iOS",r:/(iPhone|iPad|iPod)/},{s:"Mac OS X",r:/Mac OS X/},{s:"Mac OS",r:/(MacPPC|MacIntel|Mac_PowerPC|Macintosh)/}],P=0;P<S.length;P++){var j=S[P];if(j.r.test(p)){v=j.s;break}}function T(e,t){var n=e.exec(t);return n&&n[1]?n[1]:""}switch(/Windows/.test(v)&&(y=T(/Windows (.*)/,v),v="windows"),v){case"Mac OS X":y=T(/Mac OS X (10[\.\_\d]+)/,p),v="mac";break;case"Android":(E=T(/Android ([\.\_\d]+)/,x=p))||(E=T(/Android\/([\.\_\d]+)/,x)),y=E,v="android";break;case"iOS":y=(y=/OS (\d+)_(\d+)_?(\d+)?/.exec(d))?y[1]+"."+y[2]+"."+(0|y[3]):"",v="ios"}var O={screen_size:u,browser:b,browser_version:k,platform:C,os_name:v,os_version:y,userAgent:p,screen_width:l,screen_height:c,device_model:v,language:h,referrer:f,referrer_host:g,utm_source:m.utm_source,utm_medium:m.utm_medium,utm_campaign:m.utm_campaign,utm_term:m.utm_term,utm_content:m.utm_content},M={get:function(e){var t=localStorage.getItem(e),n=t;try{t&&"string"==typeof t&&(n=JSON.parse(t))}catch(e){}return n},set:function(e,t){try{var n="string"==typeof t?t:JSON.stringify(t);localStorage.setItem(e,n)}catch(e){}}},D="__tea_cache_",L=4001,A=4e3,R=4002,z=4003,I=500,B=5001,q="function"==typeof Symbol&&"symbol"===o(Symbol.iterator)?function(e){return void 0===e?"undefined":o(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":o(e)};function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var N=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";F(this,e),this.init=function(e){t.isLog=e},this.info=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var i;t.isLog&&(i=console).log.apply(i,[t.prefix+e].concat(o))},this.warn=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var i;t.isLog&&(i=console).warn.apply(i,[t.prefix+e].concat(o))},this.error=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];var i;t.isLog&&(i=console).error.apply(i,[t.prefix+e].concat(o))},this.dir=function(){var e;t.isLog&&(e=console).dir.apply(e,arguments)},this.table=function(e){t.isLog&&console.table(e)},this.logJSON=function(e){"object"===(void 0===e?"undefined":q(e))&&t.isLog&&t.info("",JSON.stringify(e,null,2))},this.deprecated=function(e){for(var n=arguments.length,o=Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];t.warn.apply(t,["[DEPRECATED]"+e].concat(o))},this.throw=function(e){throw t.error(t.prefix),new Error(e)};var o=n?"["+n+"]":"";this.prefix="[tea-sdk]"+o},U=new N,H=function(e,t,n,o){var r=new XMLHttpRequest;r.open("POST",e,!0),r.setRequestHeader("Content-Type","application/json; charset=utf-8"),r.onload=function(){try{var e=JSON.parse(r.responseText);n&&n(e)}catch(e){o&&o()}},r.onerror=function(){o&&o()},r.send(JSON.stringify(t))};var V=(new Date).getTimezoneOffset(),W=parseInt(-V/60,10),K=60*V,X=void 0;try{X="3.2.7"}catch(x){X="2.x"}var J=new(function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":o(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.initClientEnv=function(){n.set("os_name",O.os_name),n.set("os_version",O.os_version),n.set("device_model",O.device_model),n.set("platform",O.platform),n.set("sdk_version",X),n.set("browser",O.browser),n.set("browser_version",O.browser_version),n.set("language",O.language),n.set("timezone",W),n.set("tz_offset",K),n.set("resolution",O.screen_width+"x"+O.screen_height),n.set("screen_width",O.screen_width),n.set("screen_height",O.screen_height),n.set("referrer",O.referrer),n.set("referrer_host",O.referrer_host),n.set("utm_source",O.utm_source),n.set("utm_medium",O.utm_medium),n.set("utm_campaign",O.utm_campaign),n.set("utm_term",O.utm_term),n.set("utm_content",O.utm_content)},n.initClientEnv(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(a));var Z=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return e.prototype.isString=function(e){return"String"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isNumber=function(e){return"Number"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isBoolean=function(e){return"Boolean"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isFunction=function(e){return"Function"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isNull=function(e){return"Null"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isUndefined=function(e){return"Undefined"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isObj=function(e){return"Object"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isArray=function(e){return"Array"===Object.prototype.toString.call(e).slice(8,-1)},e.prototype.isFalse=function(e){return""===e||null==e||"null"===e||"undefined"===e||0===e||!1===e||NaN===e},e.prototype.isTrue=function(e){return!this.isFalse(e)},e.prototype.isLowIE=function(){return window.XDomainRequest},e}());var Q=function(e){return function(e,t,n){if("string"==typeof e&&"number"==typeof t&&"number"==typeof n){var o,r=[];n=n<=25?n:n%25;var i=String.fromCharCode(n+97);o=e.split(i);for(var a=0;a<o.length;a++){var s=parseInt(o[a],n);s=1*s^t;var l=String.fromCharCode(s);r.push(l)}return r.join("")}}(e,64,25)};function $(e){return e?(e^16*Math.random()>>e/4).toString(10):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,$)}var Y=function(){return $().replace(/-/g,"").slice(0,19)},G=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var ee={cn:"1fz22z22z1nz21z4mz4bz4bz1kz1az21z4az21z1lz21z21z1bz1iz4az1az1mz1k",sg:"1fz22z22z1nz21z4mz4bz4bz21z1ez18z1jz1gz49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k",va:"1fz22z22z1nz21z4mz4bz4bz1kz18z1jz1gz24z18z49z1kz1az21z4az19z27z22z1cz1mz24z1cz20z21z1cz18z4az1az1mz1k"},te=function(e){try{var t=document.cookie.match(new RegExp("(?:^|;)\\s*"+e+"=([^;]+)"));return decodeURIComponent(t?t[1]:"")}catch(e){return""}},ne=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":o(t))&&"function"!=typeof t?e:t}(this,e.call(this));return n.init=function(e){var t=e.app_id,o=e.channel,r=e.log,i=e.channel_domain,a=e.name;if("number"!=typeof t)throw new Error("app_id 必须是一个数字，注意检查是否是以`string`的方式传入的？");n.logger=new N(a),n.logger.init(r),n.initConfigs(e),n.initUrls(o,i),n.setEnv("app_id",t)},n.initConfigs=function(e){var t=e.app_id,o=e.disable_ssid,r=e.disable_webid,i=e.disable_sdk_monitor;n.app_id=t,n.evtDataCacheKey=D+"events_"+t,o&&(n.logger.info("ssid已禁用，设置user_unique_id不会请求ssid接口。"),n.isSsidDisabled=!0),r&&(n.logger.info("webid服务已禁用，ssid同时被禁用。将本地生成webid。"),n.isWebidDisabled=!0,n.isSsidDisabled=!0),i&&(n.logger.info("SDK监控已禁用。"),n.isSdkMonitorDisabled=!0)},n.initUrls=function(e,t){if("internal"===e&&(n.logger.warn("channel 的值 internal 已被废弃，已自动改为 cn。"),e="cn"),!t&&!ee[e])throw new Error("channel 变量只能是 `cn`, `sg`,`va`");var o=t||Q(ee[e]);o=o.replace(/\/+$/,""),n.reportUrl=o+"/v1/list",n.userTokensPrefix=""+o},n.setEnv=function(e,t){if("app_id"===e&&n.checkUserToken(t),"user_unique_id"===e){if(n.blackUuid.some((function(e){return e===String(t)})))return void n.logger.warn('设置了无效的值 {user_unique_id："%s"}。该操作已忽略。',t);n.verifyTokens(t)}if("web_id"===e){if(!t)return;(!n.envInfo.user.user_unique_id||n.envInfo.user.user_unique_id&&n.envInfo.user.user_unique_id===n.envInfo.user.web_id)&&n.set("user_unique_id",t)}n.set(e,t)},n.transferFromCookie=function(){var e=n.tokensCacheKey,t=te("tt_webid"),o=te("__tea_sdk__ssid"),r=te("__tea_sdk__user_unique_id");if(Z.isLowIE()){if(t){var i={web_id:t,ssid:t,user_unique_id:t};M.set(e,JSON.stringify(i))}return!1}if(t&&o&&r){var a={web_id:t,ssid:o,user_unique_id:r};M.set(e,JSON.stringify(a))}},n.purifyBlackUuid=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(n.blackUuid.some((function(t){return t===e.user_unique_id}))){var t={};return n.setUserTokens(t),n.logger.warn('检测到无效的用户标识，已重置用户状态。{user_unique_id: "%s"}',e.user_unique_id),t}return e},n.getUserTokens=function(){return M.get(n.tokensCacheKey)||{}},n.setUserTokens=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return M.set(n.tokensCacheKey,e)},n.checkUserToken=function(e){var t=D+"tokens_"+e;n.tokensCacheKey=t,n.transferFromCookie();var o=n.purifyBlackUuid(n.getUserTokens());o.user_unique_id&&o.web_id?(n.envInfo.user.user_unique_id=o.user_unique_id,n.envInfo.user.web_id=o.web_id,n.envInfo.user.ssid=o.ssid||"",n.logger.info("初始化已经检测到了 webid user_unique_id，一般情况下不需要再次验证 id 了"),n.unlock()):n.requestWebId(e)},n.saveTokenToStorage=function(e){var t=e.web_id,o=e.ssid,r=e.user_unique_id;n.setUserTokens({web_id:t,ssid:o,user_unique_id:r})},n.requestWebId=function(){n.isRequestWebId=!0;var e=function(e){var t=n.envInfo.user.web_id||e.web_id,o=e.ssid;n.isRequestWebId=!1,n.envInfo.user.ssid=o,n.envInfo.user.web_id=t,n.envInfo.user.user_unique_id=t,n.saveTokenToStorage({web_id:t,ssid:o,user_unique_id:t}),n.waitForVerifyTokens?(n.lock(),n.verifyTokens(n.realUuid)):(n.unlock(),n.callback&&n.callback())};n.isWebidDisabled?e({web_id:Y(),ssid:""}):function(){var t=n.userTokensPrefix+"/v1/user/webid";H(t,{app_id:n.app_id,url:location.href,user_agent:O.userAgent,referer:O.referrer,user_unique_id:""},(function(t){0!==t.e?n.logger.error("请求 webid 失败。请联系管理员。"):e(t)}),(function(){n.isRequestWebId=!1,n.logger.error("获取 webid 失败，数据将不会被上报")}))}()},n.verifyTokens=function(e){var t=n.tokensCacheKey;if(n.waitForVerifyTokens=!1,n.realUuid=""+e,n.isRequestWebId)return n.waitForVerifyTokens=!0,n.logger.info("正在请求 webid，requestSsid 将会在前者请求完毕之后被调用"),!1;var o=n.getUserTokens();if(o.user_unique_id===n.realUuid&&o.ssid&&o.web_id)n.logger.info("传入的 user_id/user_unique_id 与 缓存中的完全一致，无需再次请求"),n.unlock();else{n.lock(),n.envInfo.user.user_unique_id=n.realUuid;var r=G({},n.getUserTokens(),{user_unique_id:n.realUuid});if(M.set(t,JSON.stringify(r)),Z.isLowIE())return n.unlock(),!1;n.isSsidDisabled?(n.unlock(),n.callback&&n.callback()):n.requestSsid()}},n.requestSsid=function(){var e=n.getUserTokens(),t=n.userTokensPrefix+"/v1/user/ssid";H(t,{app_id:n.app_id,web_id:e.web_id,user_unique_id:""+e.user_unique_id},(function(t){if(n.unlock(),0!==t.e)n.logger.error("请求 ssid 失败~");else{n.envInfo.user.ssid=t.ssid;var o=G({},e,{ssid:t.ssid});n.setUserTokens(o),n.logger.info("根据 user_unique_id 更新 ssid 成功！注意：在这之前不应该有数据被发出去"),n.callback&&n.callback()}}),(function(){n.unlock(),n.logger.error("根据 user_unique_id 获取新 ssid 失败")}))},n.setEvtParams=function(e){var t=G({},e);Object.keys(t).forEach((function(e){n.evtParams[e]=t[e]}))},n.mergeEnvToEvents=function(e){var t=n.mergeEnv(),o=[],r=0,i=void 0;return e.forEach((function(e){var t=!!e.params.__disable_storage__;void 0===i?i=t:(t!==i||o[r].length>=5)&&(r+=1,i=!i),o[r]=o[r]||[],o[r].push(e)})),o.map((function(e){return{events:e.map((function(e){var t=G({},n.evtParams,e.params);return delete t.__disable_storage__,G({},e,{params:JSON.stringify(t)})})),user:t.user,header:t.header,verbose:n.debugMode?1:void 0,__disable_storage__:e[0].params.__disable_storage__}}))},n.mergeEnv=function(){var e=n.get(),t=J.get(),o=G({},e.user),r=G({},t.header.headers.custom,e.header.headers.custom),i=G({},t.header.headers,e.header.headers,{custom:r}),a=G({},t.header,e.header);return{user:o,header:G({},a,{headers:JSON.stringify(i)})}},n.evtParams={},n.reportUrl="",n.userTokensPrefix="",n.isSsidDisabled=!1,n.isWebidDisabled=!1,n.isSdkMonitorDisabled=!1,n.debugMode=!1,n.blackUuid=["null","undefined","0","","None"],n.logger=function(){},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.lock=function(){this.isUserTokensReady=!1},t.prototype.unlock=function(){this.isUserTokensReady=!0},t.prototype.enableDebugMode=function(e){this.debugMode=e},t}(a);var oe=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.set=function(e,n){t.cache[e]=n},this.get=function(e){return t.cache[e]},this.clean=function(e){t.cache[e]=void 0},this.cache={}},re=new oe;var ie=function(){function e(t){var n=t.disable_storage,o=void 0!==n&&n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._isPersistent=!o,this._storage=this._isPersistent?M:new oe,this._storageKey="",this._data=void 0}return e.prototype.setStorageKey=function(e){this._storageKey=e},e.prototype.getAllEvents=function(){var e=this.getData();Object.keys(e).reduce((function(t,n){return t.concat(e[n]||[])}),[])},e.prototype.getData=function(){return this._checkIsDataInit(),this._data},e.prototype.add=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this._checkIsDataInit(),0!==t.length&&(this._data[e]=t,this._save())},e.prototype.delete=function(e){this._checkIsDataInit(),this._data[e]&&(delete this._data[e],this._save())},e.prototype._checkIsDataInit=function(){if(void 0===this._data)try{var e,t=this._getDataFromStorage();if(Z.isArray(t))this._data=((e={})[Y()]=t,e),this._save();else this._data=t}catch(e){this._data={}}},e.prototype._checkStorageKey=function(){if(!this._storageKey)throw new Error("must call setStorageKey('xxx') first")},e.prototype._getDataFromStorage=function(){return this._checkStorageKey(),this._storage.get(this._storageKey)||{}},e.prototype._save=function(){this._checkStorageKey(),this._storage.set(this._storageKey,this._data)},e}(),ae=function(e,t){try{var n=e.split("v1")[0];t.forEach((function(e){var t=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+="&"+n+"="+encodeURIComponent(JSON.stringify(e[n])));return t="&"===t[0]?t.slice(1):t}(e),o=new Image(1,1);o.onload=function(){o=null},o.onerror=function(){o=null},o.src=n+"/v1/gif?"+t}))}catch(e){}},se=function(e,t){if(window.XDomainRequest)return ae(e,t);var n=new XMLHttpRequest;n.open("POST",e+"?rdn="+Math.random(),!0),n.onload=function(){},n.onerror=function(){n.abort()},n.send(JSON.stringify(t))},le=function e(t,n,o,r){try{var i=t.split("v1")[0];if(!i)return void r(t,n,L);n.forEach((function(e){var a=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t+="&"+n+"="+encodeURIComponent(JSON.stringify(e[n])));return t="&"===t[0]?t.slice(1):t}(e),s=new Image(1,1);s.onload=function(){s=null,o()},s.onerror=function(){s=null,r(t,n,A)},s.src=i+"/v1/gif?"+a}))}catch(e){r(t,n,R,e.message)}};var ce=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.send=function(e){var t=e.url,o=e.data,r=e.success,i=e.fail,a=e.eventError;if(function(e){var t=e.url,n=e.data,o=e.success,r=e.fail,i=e.notSure,a=e.isUnload,s=n;if(window.XDomainRequest)le(t,s,o,r);else{if(a)return window.navigator&&window.navigator.sendBeacon?(i(),void(window.navigator.sendBeacon(t,JSON.stringify(s))?o():r(t,n,z))):void le(t,s,o,r);var l=new XMLHttpRequest;l.open("POST",t+"?rdn="+Math.random(),!0),l.onload=function(){o(t,s,l.responseText)},l.onerror=function(){l.abort(),r(t,s,I)},l.send(JSON.stringify(s))}}({url:t,data:o,success:function(e,t,o){r();try{var i=JSON.parse(o).e;if(0!==i){var s="未知错误";-2===i&&(s="事件格式错误！请检查字段类型是否正确。"),n.logger.error("数据上报失败！","错误码："+i+"。错误信息："+s),a(t,i),de(e,t,i)}}catch(n){de(e,t,B)}},fail:function(e,t,o){n.logger.error("数据上报失败！","错误码："+o),i(t,o),de(e,t,o)},notSure:e.notSure,isUnload:e.isUnload}),!n.isSdkMonitorDisabled&&!n.isSdkOnLoadEventReady){n.isSdkOnLoadEventReady=!0;try{var s=o[0].header,l=o[0].user;ue(t,{app_id:s.app_id,app_name:s.app_name,sdk_version:s.sdk_version,web_id:l.web_id})}catch(e){}}},this.logger=t.logger||U,this.isSdkOnLoadEventReady=!1,this.isSdkMonitorDisabled=!1},ue=function(e,t){try{var n={events:[{event:"onload",params:JSON.stringify({app_id:t.app_id,app_name:t.app_name||"",sdk_version:t.sdk_version}),local_time_ms:Date.now()}],user:{user_unique_id:t.web_id},header:{app_id:1338}};setTimeout((function(){se(e,[n])}),16)}catch(e){}},de=function(e,t,n){try{var o=t[0].user,r=t[0].header,i=[];t.forEach((function(e){e.events.forEach((function(e){i.push(e)}))}));var a={events:i.map((function(e){return{event:"on_error",params:JSON.stringify({error_code:n,app_id:r.app_id,app_name:r.app_name||"",error_event:e.event,local_time_ms:e.local_time_ms,tea_event_index:Date.now(),params:e.params,header:JSON.stringify(r),user:JSON.stringify(o)}),local_time_ms:Date.now()}})),user:{user_unique_id:o.user_unique_id},header:{app_id:1338}};setTimeout((function(){se(e,[a])}),16)}catch(e){}};var pe=function(e){function t(n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":o(t))&&"function"!=typeof t?e:t}(this,e.call(this));r.addListener=function(){window.addEventListener("unload",(function(){r.report(!0)}),!1),window.addEventListener("beforeunload",(function(){r.report(!0)}),!1),document.addEventListener("visibilitychange",(function(){"hidden"===document.visibilityState&&r.report(!0)}),!1)},r.setReady=function(e){r.isReady=e,r.eventSender.isSdkMonitorDisabled=r.isSdkMonitorDisabled,r.checkAndSendCachedStorageEvents(),r.report()},r.eventReportTimer=null,r.event=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=re.get(r.evtDataCacheKey)||[],o=t?[].concat(e,n):[].concat(n,e);re.set(r.evtDataCacheKey,o),o.length>=5?r.report():(r.eventReportTimer&&clearTimeout(r.eventReportTimer),r.eventReportTimer=setTimeout((function(){r.report(),r.eventReportTimer=null}),r.waitForBatchTime))},r.report=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!r.isUserTokensReady)return!1;if(!r.isReady)return!1;var t=re.get(r.evtDataCacheKey)||[];re.clean(r.evtDataCacheKey);var n=r.mergeEnvToEvents(t);r.sendData(n,e)},r.sendData=function(e,t){var n=[],o=0,i=void 0;e.forEach((function(e){var t=!!e.__disable_storage__;void 0===i?i=t:(t!==i||n[o].length>=5)&&(o+=1,i=!i),n[o]=n[o]||[],n[o].push(e)})),n.forEach((function(e){var n=Y();e[0].__disable_storage__||r.eventStorage.add(n,e),r._sendData(n,e,t)}))},r.checkAndSendCachedStorageEvents=function(){var e=r.eventStorage.getData(),t=Object.keys(e);t.length>0&&t.forEach((function(t){r._sendData(t,e[t])}))},r._sendData=function(e,t,n){r.isReporting=!0;var o=function(){r.isReporting=!1};r.eventSender.send({url:r.reportUrl,data:t,success:function(){o(),r.sendDataSuccess(e)},fail:function(e,t){o(),r.reportErrorCallback(e,t),setTimeout((function(){r.report()}),3e3)},eventError:function(e,t){r.reportErrorCallback(e,t)},notSure:o,isUnload:n})},r.sendDataSuccess=function(e){r.eventStorage.delete(e),r.report()};var i=n.log,a=n.disable_storage,s=n.max_batch_num,l=void 0===s?5:s,c=n.batch_time,u=void 0===c?30:c;return r.init(n),r.maxBatchNum=l,r.waitForBatchTime=u,r.isReady=!1,r.addListener(),r.enableDebugMode(!!i),r.eventStorage=new ie({disable_storage:a}),r.eventStorage.setStorageKey(r.evtDataCacheKey),r.eventSender=new ce({logger:r.logger}),r.reportErrorCallback=function(){},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":o(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(ne),he=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e};var fe=function(){var e=+Date.now()+Number((""+Math.random()).slice(2,8));return function(){return e+=1}}(),ge=function(e,t){var n=e;/^event\./.test(e)&&(n=e.slice(6));var o=t;return Z.isObj(o)||(o={}),o.event_index=fe(),{event:n,params:o,local_time_ms:+new Date}},me=function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.init=function(e){if(!Z.isObj(e))throw new Error("init 的参数必须是Object类型");n.logger.init(e.log),n.channel=new pe(he({},e,{name:n.name})),n.channel.callback=function(){n.callbackSend&&n.start()}},this.config=function(e){Z.isObj(e)||n.logger.throw("config 参数必须是 {} 的格式"),e.log&&(n.logger.init(!0),n.channel.enableDebugMode(!0),e.log=null);var t=Object.keys(e);if(!t.length)return!1;var o=t,r=Array.isArray(o),i=0;for(o=r?o:o[Symbol.iterator]();;){var a;if(r){if(i>=o.length)break;a=o[i++]}else{if((i=o.next()).done)break;a=i.value}var s=a,l=e[s];switch(s){case"evtParams":n.channel.setEvtParams(l);break;case"disable_ssid":n.logger.deprecated("(disable_ssid)请通过init函数来设置。"),l&&(n.logger.info("ssid已禁用，设置user_unique_id不会请求ssid接口。"),n.channel.isSsidDisabled=l);break;case"disable_auto_pv":l&&(n.logger.info("已禁止默认上报predefine_pageview事件，需手动上报。"),n._autoSendPV=!1);break;case"_staging_flag":""+l=="1"&&n.logger.info("根据_staging_flag设置，数据将会上报到stag 表。"),n.channel.setEvtParams({_staging_flag:Number(l)});break;case"reportErrorCallback":"function"==typeof l&&(n.channel.reportErrorCallback=l);break;default:n.channel.setEnv(s,l)}}},this.send=function(){n.start()},this.start=function(){if(n.channel.isUserTokensReady){if(n._isSendFuncCalled)return;n._isSendFuncCalled=!0,n.logger.info("看到本提示，意味着用户信息已完全就绪，上报通道打开。用户标识如下："),n.logger.logJSON(n.channel.get().user),n._autoSendPV&&n.predefinePageView(),n.channel.setReady(!0)}else n.callbackSend=!0},this.predefinePageView=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={title:document.title||location.pathname,url:location.href,url_path:location.pathname},o=he({},t,e);n.event("predefine_pageview",o,!0)},this.event=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var r=Z.isBoolean(t[t.length-1]),i=!!r&&t[t.length-1],a=r?t.slice(0,t.length-1):t,s=a[0],l=[];Z.isArray(s)?l=a:l[0]=a,l=l.map((function(e){return ge.apply(void 0,e)})),n.channel.event(l,i)},this._isSendFuncCalled=!1,this._autoSendPV=!0,this.name=t,this.logger=new N(t)};me.exportMethods=["init","config","send","start","predefinePageView"];t.default=function e(t){var n=this;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._exportCollect=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];n._isQueueProcessed?n._executeCmd.apply(n,t):(n.cmdQueue.push(t),n._processCmdQueue())},this._processCmdQueue=function(){if(0!==n.cmdQueue.length){var e=function(e,t,n){var o=-1;return e.forEach((function(e,r){(void 0!==n?e[n]:e)===t&&(o=r)})),o}(n.cmdQueue,"init","0");-1!==e&&(n._isQueueProcessed=!0,n._executeCmd.apply(n,n.cmdQueue[e]),n.cmdQueue.forEach((function(t,o){o!==e&&n._executeCmd.apply(n,t)})),n.cmdQueue=[])}},this._executeCmd=function(){for(var e=arguments.length,t=Array(e),o=0;o<e;o++)t[o]=arguments[o];var r,i,a=t[0];me.exportMethods.indexOf(a)>-1?(r=n.colloctor)[a].apply(r,t.slice(1)):(i=n.colloctor).event.apply(i,t)},this.name=t||"Collector"+ +new Date,this.cmdQueue=[],this.colloctor=new me(this.name),this._isQueueProcessed=!1,this._processCmdQueue(),this._exportCollect.init=this._exportCollect.bind(this,"init"),this._exportCollect.config=this._exportCollect.bind(this,"config"),this._exportCollect.send=this._exportCollect.bind(this,"send"),this._exportCollect.start=this._exportCollect.bind(this,"start"),this._exportCollect.predefinePageView=this._exportCollect.bind(this,"predefinePageView"),this._exportCollect},e.exports=t.default},"./src/control/cssFullscreen.js":
  /*!**************************************!*\
    !*** ./src/control/cssFullscreen.js ***!
    \**************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("cssFullscreen",(function(){var e=i.default.util;if(this.config.cssFullscreen){var t="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z",n="M9,10V9a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1v2a.9.9,0,0,1-1,1H8a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm6,4v1a1,1,0,0,1-2,0V13a.9.9,0,0,1,1-1h2a1,1,0,0,1,0,2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z",o=e.createDom("hk-cssfullscreen",'<hk-icon class="hkplayer-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n            <path d="'+n+'"></path>\n        </svg></hk-icon>',{},"hkplayer-cssfullscreen"),r=this.config.lang&&"zh-cn"===this.config.lang?"网页全屏":"Full screen",a=this.config.lang&&"zh-cn"===this.config.lang?"退出网页全屏":"Exit full screen",s=this.controls,l=this.root,c=e.createDom("hk-tips",r,{},"hkplayer-tips"),u=o.querySelector("path");o.appendChild(c);var d=function(t){u.setAttribute("d",n),c.textContent=r,e.removeClass(t,"hkplayer-cssfullscreen-active"),e.removeClass(document.body,"overhidden")};s.appendChild(o),["click","touchend"].forEach((function(n){o.addEventListener(n,(function(n){var o;n.preventDefault(),n.stopPropagation(),e.hasClass(l,"hkplayer-cssfullscreen-active")||e.hasClass(l,"hkplayer-is-fullscreen")?d(l):(o=l,u.setAttribute("d",t),c.textContent=a,e.addClass(o,"hkplayer-cssfullscreen-active"),e.addClass(document.body,"overhidden"))}))})),document.onkeydown=function(t){27===(t||event).keyCode&&e.hasClass(l,"hkplayer-cssfullscreen-active")&&d(l)}}}))},"./src/control/danmu.js":
  /*!******************************!*\
    !*** ./src/control/danmu.js ***!
    \******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=i(n(/*! ../player */"./src/player.js")),r=i(n(/*! danmu.js */"./node_modules/danmu.js/dist/index.js"));function i(e){return e&&e.__esModule?e:{default:e}}o.default.install("danmu",(function(){var e=this;if(e.config.danmu){var t=o.default.util.createDom("hk-bullet","",{},"hkplayer-bullet");e.root.appendChild(t),t.style.height="100%";var n=o.default.util.deepCopy({container:t,player:e.video,comments:[],area:{start:0,end:1}},e.config.danmu);e.once("complete",(function(){var i=new r.default(n);o.default.util.addClass(t,"hkplayer-has-bullet"),e.config.danmu.closeDefaultBtn||(e.bulletBtn=o.default.util.copyDom(i.bulletBtn.createSwitch(!0)),e.controls.appendChild(e.bulletBtn),["click","touchend"].forEach((function(n){e.bulletBtn.addEventListener(n,(function(n){n.preventDefault(),n.stopPropagation(),o.default.util.toggleClass(e.bulletBtn,"danmu-switch-active"),o.default.util.hasClass(e.bulletBtn,"danmu-switch-active")?(o.default.util.addClass(t,"hkplayer-has-bullet"),e.once("timeupdate",(function(){i.start()}))):(o.default.util.removeClass(t,"hkplayer-has-bullet"),i.stop())}),!1)})),e.onElementClick&&t.addEventListener("click",(function(n){e.onElementClick(n,t)}),!1),e.onElementDblclick&&t.addEventListener("dblclick",(function(n){e.onElementDblclick(n,t)}),!1),e.on("pause",(function(){o.default.util.hasClass(e.bulletBtn,"danmu-switch-active")&&i.pause()})),e.on("play",(function(){o.default.util.hasClass(e.bulletBtn,"danmu-switch-active")&&i.play()})),e.on("seeked",(function(){o.default.util.hasClass(e.bulletBtn,"danmu-switch-active")&&(i.stop(),i.start())}))),e.danmu=i}))}}))},"./src/control/definition.js":
  /*!***********************************!*\
    !*** ./src/control/definition.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("definition",(function(){var e=this,t=i.default.util,n=i.default.sniffer,o=t.createDom("hk-definition","",{tabindex:3},"hkplayer-definition"),r=e.controls;"mobile"===n.device&&(e.config.definitionActive="click");var a=[];function s(){var n=["<ul>"],i=e.config.url,s=document.createElement("a");e.switchURL?["mp4","hls","__flv__","dash"].every((function(t){return!e[t]||(e[t].url&&(s.href=e[t].url),"__flv__"===t&&(e[t]._options?s.href=e[t]._options.url:s.href=e[t]._mediaDataSource.url),i=s.href,!1)})):i=e.currentSrc||e.src,e.hls&&(s.href=e.hls.url,i=s.href),a.forEach((function(t){s.href=t.url,e.dash?n.push("<li url='"+t.url+"' cname='"+t.name+"' class='"+(t.selected?"definition":"")+"'>"+t.name+"</li>"):n.push("<li url='"+t.url+"' cname='"+t.name+"' class='"+(s.href===i?"definition":"")+"'>"+t.name+"</li>")}));var l=a.filter((function(t){return s.href=t.url,e.dash?!0===t.selected:s.href===i}));n.push("</ul><p class='name'>"+(l[0]||{name:""}).name+"</p>");var c=r.querySelector(".hkplayer-definition");if(c){c.innerHTML=n.join("");var u=c.querySelector(".name");e.config.definitionActive&&"hover"!==e.config.definitionActive||u.addEventListener("mouseenter",(function(n){n.preventDefault(),n.stopPropagation(),t.addClass(e.root,"hkplayer-definition-active"),c.focus()}))}else{o.innerHTML=n.join("");var d=o.querySelector(".name");e.config.definitionActive&&"hover"!==e.config.definitionActive||d.addEventListener("mouseenter",(function(n){n.preventDefault(),n.stopPropagation(),t.addClass(e.root,"hkplayer-definition-active"),o.focus()})),r.appendChild(o)}}function l(n){(a=n)&&a instanceof Array&&a.length>1&&(t.addClass(e.root,"hkplayer-is-definition"),e.on("canplay",s))}e.on("resourceReady",l),["touchend","click"].forEach((function(r){o.addEventListener(r,(function(r){r.preventDefault(),r.stopPropagation();var i=r.target||r.srcElement,s=document.createElement("a");if(i&&"li"===i.tagName.toLocaleLowerCase()){if(e.emit("beforeDefinitionChange",s.href),Array.prototype.forEach.call(i.parentNode.childNodes,(function(e){t.removeClass(e,"definition")})),e.dash&&a.forEach((function(e){e.selected=!1,e.name===i.innerHTML&&(e.selected=!0)})),t.addClass(i,"definition"),i.parentNode.nextSibling.innerHTML=""+i.getAttribute("cname"),s.href=i.getAttribute("url"),e.switchURL){var l=document.createElement("a");["mp4","hls","__flv__","dash"].every((function(t){return!e[t]||(e[t].url&&(l.href=e[t].url),"__flv__"===t&&(e[t]._options?l.href=e[t]._options.url:l.href=e[t]._mediaDataSource.url),!1)})),l.href===s.href||e.ended||e.switchURL(s.href)}else{if(e.hls){document.createElement("a");e.hls.url}if(s.href!==e.currentSrc){var c=e.currentTime,u=e.paused;e.ended||(e.src=s.href,e.once("canplay",(function(){e.currentTime=c,u||e.play()})))}}e.emit("definitionChange",s.href),"mobile"===n.device&&t.removeClass(e.root,"hkplayer-definition-active")}else"click"!==e.config.definitionActive||!i||"p"!==i.tagName.toLocaleLowerCase()&&"em"!==i.tagName.toLocaleLowerCase()||(t.addClass(e.root,"hkplayer-definition-active"),o.focus());e.emit("focus")}),!1)})),o.addEventListener("mouseleave",(function(n){n.preventDefault(),n.stopPropagation(),t.removeClass(e.root,"hkplayer-definition-active")})),e.once("destroy",(function t(){e.off("canplay",s),e.off("resourceReady",l),e.off("destroy",t)}))}))},"./src/control/download.js":
  /*!*********************************!*\
    !*** ./src/control/download.js ***!
    \*********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=a(n(/*! ../player */"./src/player.js")),r=n(/*! ../utils/url */"./src/utils/url.js"),i=a(n(/*! downloadjs */"./node_modules/downloadjs/download.js"));function a(e){return e&&e.__esModule?e:{default:e}}o.default.install("download",(function(){var e=this;if(this.config.download){var t=e.root,n=o.default.util,a=n.createDom("hkplayer-download",'<hk-icon class="hkplayer-download-img"></hk-icon>',{},"hkplayer-download");e.controls.appendChild(a);var s=e.config.lang&&"zh-cn"===e.config.lang?"下载":"Download",l=n.createDom("hk-tips",s,{},"hkplayer-tips");a.appendChild(l),e.download=function(){var t=(0,r.getAbsoluteURL)(e.config.url);(0,i.default)(t)},a.addEventListener("click",(function(t){t.stopPropagation(),e.download()})),a.addEventListener("mouseenter",(function(e){e.preventDefault(),e.stopPropagation(),l.style.left="50%";var n=l.getBoundingClientRect(),o=t.getBoundingClientRect();n.right>o.right&&(l.style.left=-n.right+o.right+16+"px")}))}}))},"./src/control/error.js":
  /*!******************************!*\
    !*** ./src/control/error.js ***!
    \******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("error",(function(){var e=this,t=i.default.util,n=t.createDom("hk-error",'<em class="hkplayer-error-text">请<span class="hkplayer-error-refresh">刷新</span>试试</em>',{},"hkplayer-error");e.root.appendChild(n);var o=n.querySelector(".hkplayer-error-text"),r=null,a=!1;function s(){e.error?o.innerHTML=e.error:e.config.lang&&"zh-cn"===e.config.lang?o.innerHTML=e.lang.ERROR+'，请<span class="hkplayer-error-refresh">刷新</span>试试':o.innerHTML=e.lang.ERROR+'，please try to <span class="hkplayer-error-refresh">refresh</span>',t.addClass(e.root,"hkplayer-is-error"),(r=n.querySelector(".hkplayer-error-refresh"))&&!a&&(["touchend","click"].forEach((function(t){r.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation();var n=t.target||t.srcElement;n&&"span"===n.tagName.toLocaleLowerCase()&&(e.controls.style.display="flex",e.reload())}))})),a=!0)}e.on("error",s),e.once("destroy",(function t(){e.off("error",s),e.off("destroy",t)}))}))},"./src/control/flex.js":
  /*!*****************************!*\
    !*** ./src/control/flex.js ***!
    \*****************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("__flex__",(function(){var e=i.default.util.createDom("hk-placeholder","",{},"hkplayer-placeholder");this.controls.appendChild(e)}))},"./src/control/fullscreen.js":
  /*!***********************************!*\
    !*** ./src/control/fullscreen.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("fullscreen",(function(){var e=this,t=i.default.util,n="M5.5,7.5h2V5a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1V7.5a2,2,0,0,1-2,2H5a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1Zm13,0H19a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1H16.5a2,2,0,0,1-2-2V5a1,1,0,0,1,2,0V7.5Zm-13,9H5a1,1,0,0,1,0-2H7.5a2,2,0,0,1,2,2V19a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V16.5Zm13,0h-2V19a1,1,0,0,1-2,0V16.5a2,2,0,0,1,2-2H19a1,1,0,0,1,0,2Z",o="M8,6H6V8.5a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V6A2,2,0,0,1,6,4H8.5a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm8,0h-.5a.9.9,0,0,1-1-1,.9.9,0,0,1,1-1H18a2,2,0,0,1,2,2V8.5a1,1,0,0,1-2,0V6ZM8,18h.5a1,1,0,0,1,0,2H6a2,2,0,0,1-2-2V15.5a.9.9,0,0,1,1-1,.9.9,0,0,1,1,1V18Zm8,0h2V15.5a1,1,0,0,1,2,0V18a2,2,0,0,1-2,2H15.5a1,1,0,0,1,0-2Z",r=t.createDom("hk-fullscreen",'<hk-icon class="hkplayer-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n            <path d="'+o+'"></path>\n        </svg></-icon>',{},"hkplayer-fullscreen"),a=e.config.lang&&"zh-cn"===e.config.lang?"全屏":"Full screen",s=e.config.lang&&"zh-cn"===e.config.lang?"退出全屏":"Exit full screen",l=e.controls,c=e.root,u=t.createDom("hk-tips",a,{},"hkplayer-tips"),d=r.querySelector("path");r.appendChild(u);l.appendChild(r),["click","touchend"].forEach((function(o){r.addEventListener(o,(function(o){var r,i;o.preventDefault(),o.stopPropagation(),t.hasClass(c,"hkplayer-fullscreen-active")||t.hasClass(c,"hkplayer-is-fullscreen")?function(n){var o=t.findDom(e.controls,"hk-cssfullscreen"),r="M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z";if(o){var i=t.findDom(o,"hk-tips"),s=o.querySelector("path");o.style.display="block",i.textContent=e.config.lang&&"zh-cn"===e.config.lang?"网页全屏":"Full screen",s.setAttribute("d",r)}t.removeClass(n,"hkplayer-cssfullscreen-active"),t.removeClass(document.body,"overhidden"),d.setAttribute("d",r),u.textContent=a,document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():t.removeClass(n,"hkplayer-fullscreen-active")}(c):(r=c,(i=t.findDom(e.controls,"hk-cssfullscreen"))&&(i.style.display="none"),d.setAttribute("d",n),u.textContent=s,r.requestFullscreen?r.requestFullscreen():r.mozRequestFullScreen?r.mozRequestFullScreen():r.webkitRequestFullscreen?r.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.video.webkitSupportsFullscreen?e.video.webkitEnterFullscreen():r.msRequestFullscreen?r.msRequestFullscreen():t.addClass(r,"hkplayer-fullscreen-active"))}))})),e.video.addEventListener("webkitendfullscreen",(function(){e.emit("exitFullscreen"),d.setAttribute("d",o)}));["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach((function(n){document.addEventListener(n,(function(n){if(n.preventDefault(),n.stopPropagation(),!(document.fullscreenElement||document.webkitIsFullScreen||document.mozFullScreen||document.msFullscreenElement)){var o=t.findDom(e.controls,"hk-cssfullscreen"),r={default:"M9,10v1a.9.9,0,0,1-1,1,.9.9,0,0,1-1-1V9A.9.9,0,0,1,8,8h2a.9.9,0,0,1,1,1,.9.9,0,0,1-1,1Zm6,4V13a1,1,0,0,1,2,0v2a.9.9,0,0,1-1,1H14a1,1,0,0,1,0-2Zm3-7H6V17H18Zm2,0V17a2,2,0,0,1-2,2H6a2,2,0,0,1-2-2V7A2,2,0,0,1,6,5H18A2,2,0,0,1,20,7Z"};if(o){var i=t.findDom(o,"hk-tips"),s=o.querySelector("path");o.style.display="block",i.textContent=e.config.lang&&"zh-cn"===e.config.lang?"网页全屏":"Full screen",s.setAttribute("d",r.default)}t.removeClass(c,"hkplayer-cssfullscreen-active"),t.removeClass(document.body,"overhidden"),d.setAttribute("d",r.default),u.textContent=a,t.removeClass(c,"hkplayer-fullscreen-active")}}))}));var p=function(r){var i=document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement;i&&i===c?(t.addClass(c,"hkplayer-is-fullscreen"),d.setAttribute("d",n),u.textContent=s,e.emit("requestFullscreen")):(t.removeClass(c,"hkplayer-is-fullscreen"),d.setAttribute("d",o),u.textContent=a,e.emit("exitFullscreen"))};r.addEventListener("mouseenter",(function(e){e.preventDefault(),e.stopPropagation(),u.style.left="50%";var t=u.getBoundingClientRect(),n=c.getBoundingClientRect();t.right>n.right&&(u.style.left=-t.right+n.right+16+"px")})),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach((function(e){document.addEventListener(e,p)})),e.once("destroy",(function t(){["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"].forEach((function(e){document.removeEventListener(e,p)})),e.off("destroy",t)}))}))},"./src/control/i18n.js":
  /*!*****************************!*\
    !*** ./src/control/i18n.js ***!
    \*****************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js");((o=r)&&o.__esModule?o:{default:o}).default.install("i18n",(function(){var e=this,t={},n=e.constructor.util;t.en={HAVE_NOTHING:"There is no information on whether audio/video is ready",HAVE_METADATA:"audio/video metadata is ready ",HAVE_CURRENT_DATA:"Data about the current play location is available, but there is not enough data to play the next frame/millisecond",HAVE_FUTURE_DATA:"Current and at least one frame of data is available",HAVE_ENOUGH_DATA:"The available data is sufficient to start playing",NETWORK_EMPTY:"Audio/video has not been initialized",NETWORK_IDLE:"Audio/video is active and has been selected for resources, but no network is used",NETWORK_LOADING:"The browser is downloading the data",NETWORK_NO_SOURCE:"No audio/video source was found",MEDIA_ERR_ABORTED:"The fetch process is aborted by the user",MEDIA_ERR_NETWORK:"An error occurred while downloading",MEDIA_ERR_DECODE:"An error occurred while decoding",MEDIA_ERR_SRC_NOT_SUPPORTED:"Audio/video is not supported",REPLAY:"Replay",ERROR:"network is offline"},t["zh-cn"]={HAVE_NOTHING:"没有关于音频/视频是否就绪的信息",HAVE_METADATA:"音频/视频的元数据已就绪",HAVE_CURRENT_DATA:"关于当前播放位置的数据是可用的，但没有足够的数据来播放下一帧/毫秒",HAVE_FUTURE_DATA:"当前及至少下一帧的数据是可用的",HAVE_ENOUGH_DATA:"可用数据足以开始播放",NETWORK_EMPTY:"音频/视频尚未初始化",NETWORK_IDLE:"音频/视频是活动的且已选取资源，但并未使用网络",NETWORK_LOADING:"浏览器正在下载数据",NETWORK_NO_SOURCE:"未找到音频/视频来源",MEDIA_ERR_ABORTED:"取回过程被用户中止",MEDIA_ERR_NETWORK:"当下载时发生错误",MEDIA_ERR_DECODE:"当解码时发生错误",MEDIA_ERR_SRC_NOT_SUPPORTED:"不支持的音频/视频格式",REPLAY:"重播",ERROR:"网络连接似乎出现了问题"},Object.defineProperty(e,"lang",{get:function(){return t[e.config.lang]||t.en},set:function(e){"Object"===n.typeOf(e)&&Object.keys(e).forEach((function(n){t[n]=e[n]}))}})}))},"./src/control/loading.js":
  /*!********************************!*\
    !*** ./src/control/loading.js ***!
    \********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("loading",(function(){var e=i.default.util.createDom("hk-loading",'\n    <svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewbox="0 0 100 100">\n      <path d="M100,50A50,50,0,1,1,50,0"></path>\n    </svg>\n    ',{},"hkplayer-loading");this.root.appendChild(e)}))},"./src/control/localPreview.js":
  /*!*************************************!*\
    !*** ./src/control/localPreview.js ***!
    \*************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("localPreview",(function(){var e=this,t=i.default.util,n=t.createDom("hk-preview",'<input type="file">',{},"hkplayer-preview"),o=n.querySelector("input");e.config.preview&&e.config.preview.uploadEl&&(e.config.preview.uploadEl.appendChild(n),o.onchange=function(){e.uploadFile=o.files[0];var n=URL.createObjectURL(e.uploadFile);t.hasClass(e.root,"hkplayer-nostart")?(e.config.url=n,e.start()):(e.src=n,e.play())})}))},"./src/control/logger.js":
  /*!*******************************!*\
    !*** ./src/control/logger.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=a(n(/*! ../player */"./src/player.js")),r=a(n(/*! ../utils/sniffer */"./src/utils/sniffer.js")),i=a(n(/*! ./collect */"./src/control/collect.js"));function a(e){return e&&e.__esModule?e:{default:e}}o.default.install("logger",(function(){var e=this,t=o.default.util;if(!0!==e.config.noLog){var n=function(){e.video.played;var t=l(e.logParams.played),n=(new Date).getTime();c();var o={url:e.logParams.pluginSrc?e.logParams.pluginSrc:e.logParams.playSrc,vid:e.config.vid,bc:e.logParams.bc-1>0?e.logParams.bc-1:0,bb:e.logParams.bc-1>0?1:0,bu_acu_t:e.logParams.bu_acu_t,pt:e.logParams.pt,vt:e.logParams.vt,vd:1e3*e.logParams.vd,watch_dur:parseFloat((1e3*t).toFixed(3)),cur_play_pos:parseFloat((1e3*e.currentTime).toFixed(3)),et:n};window.__xigua_log_sdk__("c",o)},a=function(){e.video.played;var t=l(e.logParams.played),n=(new Date).getTime();c();var o={url:e.logParams.pluginSrc?e.logParams.pluginSrc:e.logParams.playSrc,vid:e.config.vid,bc:e.logParams.bc-1>0?e.logParams.bc-1:0,bb:e.logParams.bc-1>0?1:0,bu_acu_t:e.logParams.bu_acu_t,pt:e.logParams.pt,vt:e.logParams.vt,vd:1e3*e.logParams.vd,watch_dur:parseFloat((1e3*t).toFixed(3)),cur_play_pos:parseFloat((1e3*e.currentTime).toFixed(3)),lt:n};window.__xigua_log_sdk__("d",o)},s=function(t){e.video.played;var n=l(e.logParams.played);c();var o=(new Date).getTime();if(!(e.logParams.lastErrLog&&o-e.logParams.lastErrLog<=3e3)){e.logParams.lastErrLog=o;var r={url:e.logParams.pluginSrc?e.logParams.pluginSrc:e.logParams.playSrc,vid:e.config.vid,bc:e.logParams.bc-1>0?e.logParams.bc-1:0,bb:e.logParams.bc-1>0?1:0,bu_acu_t:e.logParams.bu_acu_t,pt:e.logParams.pt,vt:e.logParams.vt,vd:1e3*e.logParams.vd,watch_dur:parseFloat((1e3*n).toFixed(3)),err_msg:t.errd.msg,line:t.errd.line,et:o,cur_play_pos:parseFloat((1e3*e.currentTime).toFixed(3))};if(e.logParams.nologFunc&&e.logParams.nologFunc(e))return!0;window.__xigua_log_sdk__("e",r)}};window.__xigua_log_sdk__||(window.__xigua_log_sdk__=new i.default("tracker"),window.__xigua_log_sdk__.init({app_id:1300,channel:"cn",log:!1,disable_sdk_monitor:!0}),window.__xigua_log_sdk__("config",{evtParams:{log_type:"logger",page_url:document.URL,domain:window.location.host,pver:e.version,ua:navigator.userAgent.toLowerCase()},disable_auto_pv:!0}),window.__xigua_log_sdk__.start()),e.config.uid&&window.__xigua_log_sdk__("config",{user_unique_id:e.config.uid});var l=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[],n=0;n<e.length;n++)if(!(!e[n].end||e[n].begin<0||e[n].end<0||e[n].end<e[n].begin))if(t.length<1)t.push({begin:e[n].begin,end:e[n].end});else for(var o=0;o<t.length;o++){var r=e[n].begin,i=e[n].end;if(i<t[o].begin){t.splice(o,0,{begin:r,end:i});break}if(!(r>t[o].end)){var a=t[o].begin,s=t[o].end;t[o].begin=Math.min(r,a),t[o].end=Math.max(i,s);break}if(o>t.length-2){t.push({begin:r,end:i});break}}for(var l=0,c=0;c<t.length;c++)l+=t[c].end-t[c].begin;return l},c=function(){e.logParams.pt&&e.logParams.vt||(e.logParams.pt=(new Date).getTime(),e.logParams.vt=e.logParams.pt),e.logParams.pt>e.logParams.vt&&(e.logParams.pt=e.logParams.vt)},u=function(n){if(t.hasClass(e.root,"hkplayer-is-enter")){var o=(new Date).getTime(),r={url:e.logParams.pluginSrc?e.logParams.pluginSrc:e.logParams.playSrc,vid:e.config.vid,pt:e.logParams.pt,lt:o};window.__xigua_log_sdk__("b",r)}else if(t.hasClass(e.root,"hkplayer-playing")){var i=l(e.logParams.played),a=(new Date).getTime();c();var s={url:e.logParams.pluginSrc?e.logParams.pluginSrc:e.logParams.playSrc,vid:e.config.vid,bc:e.logParams.bc-1>0?e.logParams.bc-1:0,bb:e.logParams.bc-1>0?1:0,bu_acu_t:e.logParams.bu_acu_t,pt:e.logParams.pt,vt:e.logParams.vt,vd:1e3*e.logParams.vd,watch_dur:parseFloat((1e3*i).toFixed(3)),cur_play_pos:parseFloat((1e3*e.currentTime).toFixed(3)),lt:a};window.__xigua_log_sdk__("d",s)}};"pc"===r.default.device?window.addEventListener("beforeunload",u,!1):"mobile"===r.default.device&&window.addEventListener("pagehide",u,!1),e.on("routechange",u),e.on("ended",n),e.on("urlchange",a),e.on("error",s),e.once("destroy",(function t(){"pc"===r.default.device?window.removeEventListener("beforeunload",u):"mobile"===r.default.device&&window.removeEventListener("pagehide",u),e.off("routechange",u),e.off("ended",n),e.off("urlchange",a),e.off("error",s),e.off("destroy",t)}))}}))},"./src/control/mobile.js":
  /*!*******************************!*\
    !*** ./src/control/mobile.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=i(n(/*! ../player */"./src/player.js")),r=i(n(/*! ../utils/svg */"./src/utils/svg.js"));function i(e){return e&&e.__esModule?e:{default:e}}o.default.install("mobile",(function(){var e=this,t=o.default.util,n=e.root,i=function(e){var t=o.default.util;return e.some((function(e){return"Function"===t.typeOf(e)?e.call(void 0,navigator.userAgent):"RegExp"===t.typeOf(e)?e.test(navigator.userAgent):"String"===t.typeOf(e)&&navigator.userAgent.indexOf(e)>-1}))}(e.config.whitelist);e.mobilePass=i;var a=e.config.centerBtn?e.config.centerBtn:{},s=void 0,l=void 0,c=void 0,u=void 0;"img"===a.type?l=o.default.util.createImgBtn("start",a.url.play,a.width,a.height):(s={pause:a.pausePath?a.pausePath:"M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z",play:a.playPath?a.playPath:"M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"},l=t.createDom("hk-start",'\n          <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">\n              <path transform="scale(0.04,0.04)" d="'+s.pause+'"></path>\n          </svg>',{},"hkplayer-start"),c=l.querySelector("path"),u=new r.default({from:s.play,to:s.pause,progress:function(e,t){c.setAttribute("d",u.toSVGString(e))}}));var d=t.createDom("hk-enter",'<hk-enter-logo class="hkplayer-enter-logo"></hk-enter-logo><hk-enter-tips class="hkplayer-enter-tips"></hk-player-tips>',{},"hkplayer-enter"),p=d.querySelector(".hkplayer-enter-logo");n.appendChild(l),n.appendChild(d);var h=d.querySelector(".hkplayer-enter-tips"),f=new Image;f.onload=function(){h.style.display="block"},e.config.enterLogo&&e.config.enterLogo.url&&e.config.enterLogo.width&&e.config.enterLogo.height?(f.src=e.config.enterLogo.url,p.style.backgroundImage='url("'+e.config.enterLogo.url+'")',p.style.width=e.config.enterLogo.width+"px",p.style.height=e.config.enterLogo.height+"px",p.style.backgroundSize=e.config.enterLogo.width+"px "+e.config.enterLogo.height+"px",p.style.margin="-"+e.config.enterLogo.height/2+"px auto auto -"+e.config.enterLogo.width/2+"px",h.style.margin=e.config.enterLogo.height-6+"px auto auto -62px"):f.src=t.getBgImage(p),e.config.enterTips&&e.config.enterTips.background&&(h.style.background=""+e.config.enterTips.background),e.config.enterBg&&(e.config.enterBg.url?d.style.backgroundImage='url("'+e.config.enterBg.url+'")':e.config.enterBg.color&&(d.style.background=e.config.enterBg.color)),e.start(),i?(e.video.addEventListener("touchend",(function(o){o.preventDefault(),t.hasClass(n,"hkplayer-inactive")?e.emit("focus"):e.emit("blur"),e.config.closeVideoTouch||e.ended||(e.paused?e.play():e.pause())}),!1),l.addEventListener("touchend",(function(o){o.preventDefault(),t.hasClass(n,"hkplayer-nostart")?(t.removeClass(n,"hkplayer-nostart"),t.addClass(n,"hkplayer-is-enter"),e.on("canplay",(function(){t.removeClass(n,"hkplayer-is-enter")})),e.once("playing",(function(){t.removeClass(n,"hkplayer-is-enter")})),e.play()):e.paused?e.play():e.pause()})),e.on("play",(function(){"img"===a.type?l.style.backgroundImage='url("'+a.url.pause+'")':u.reset(s.play,s.pause)})),e.on("pause",(function(){"img"===a.type?l.style.backgroundImage='url("'+a.url.play+'")':u.reset(s.pause,s.play)}))):(t.addClass(n,"hkplayer-mobile-npassed"),e.once("ready",(function(){e.video.controls=e.config.controls,e.video.controlsList=e.config.controlsList.join(" "),e.config.poster&&(e.video.poster=e.config.poster)}))),e.config.debug&&function(e){var t={};Object.assign(t,{host:"127.0.0.1",port:9090},e);var n=document.createElement("script"),o=document.createElement("h4");o.style.cssText="position:fixed;bottom:0;padding:10px;width:100%;background-color:#fff;text-align:center",o.textContent="weinre --boundHost "+t.host+" --httpPort "+t.port+"\r\n 启动服务后，刷新页面",n.anonymous=!0,n.async=!0,n.src="http://"+t.host+":"+t.port+"/target/target-script-min.js#anonymous",n.onload=function(){o.parentNode.removeChild(o)},document.body.appendChild(n),document.body.appendChild(o)}(e.config.debug)}))},"./src/control/pc.js":
  /*!***************************!*\
    !*** ./src/control/pc.js ***!
    \***************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("pc",(function(){var e=this,t=i.default.util,n=e.controls,o=e.root,r=0,a=void 0,s=e.config.centerBtn?e.config.centerBtn:{},l=void 0,c=void 0,u=void 0;"img"===s.type?c=i.default.util.createImgBtn("start",s.url.play,s.width,s.height):(l={pause:s.pausePath?s.pausePath:"M576,363L810,512L576,661zM342,214L576,363L576,661L342,810z",play:s.playPath?s.playPath:"M598,214h170v596h-170v-596zM256 810v-596h170v596h-170z"},c=t.createDom("hk-start",'\n          <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">\n              <path transform="scale(0.04,0.04)" d="'+l.pause+'"></path>\n          </svg>',{},"hkplayer-start"),u=c.querySelector("path"));var d=t.createDom("hk-enter",'<hk-enter-logo class="hkplayer-enter-logo"></hk-enter-logo><hk-enter-tips class="hkplayer-enter-tips"></hk-player-tips>',{},"hkplayer-enter"),p=d.querySelector(".hkplayer-enter-logo");o.appendChild(c),o.appendChild(d);var h=d.querySelector(".hkplayer-enter-tips"),f=new Image;function g(){t.removeClass(o,"hkplayer-is-enter")}function m(){t.removeClass(o,"hkplayer-is-enter")}function v(){"img"===s.type?c.style.backgroundImage='url("'+s.url.pause+'")':u.setAttribute("d",l.pause),c.style.display="inline-block",t.addClass(c,"hkplayer-start-interact")}function y(){"img"===s.type?c.style.backgroundImage='url("'+s.url.play+'")':u.setAttribute("d",l.play),c.style.display="inline-block",t.addClass(c,"hkplayer-start-interact")}function b(t){e.config.autoplay&&e.start()}f.onload=function(){h.style.display="block"},e.config.enterLogo&&e.config.enterLogo.url&&e.config.enterLogo.width&&e.config.enterLogo.height?(f.src=e.config.enterLogo.url,p.style.backgroundImage='url("'+e.config.enterLogo.url+'")',p.style.width=e.config.enterLogo.width+"px",p.style.height=e.config.enterLogo.height+"px",p.style.backgroundSize=e.config.enterLogo.width+"px "+e.config.enterLogo.height+"px",p.style.margin="-"+e.config.enterLogo.height/2+"px auto auto -"+e.config.enterLogo.width/2+"px",h.style.margin=e.config.enterLogo.height-6+"px auto auto -62px"):f.src=t.getBgImage(p),e.config.enterTips&&e.config.enterTips.background&&(h.style.background=""+e.config.enterTips.background),e.config.enterBg&&(e.config.enterBg.url?d.style.backgroundImage='url("'+e.config.enterBg.url+'")':e.config.enterBg.color&&(d.style.background=e.config.enterBg.color)),["click","touchend"].forEach((function(n){c.addEventListener(n,(function(n){!function(n){n.preventDefault(),n.stopPropagation(),t.hasClass(o,"hkplayer-nostart")?(t.removeClass(o,"hkplayer-nostart"),t.addClass(o,"hkplayer-is-enter"),e.on("canplay",g),e.once("playing",m),o.querySelector("video")||e.start(),e.play()):e.paused&&(t.removeClass(o,"hkplayer-nostart hkplayer-isloading"),setTimeout((function(){e.play()}),10))}(n)}),!1)})),c.addEventListener("animationend",(function(e){!function(e){e.preventDefault(),t.removeClass(c,"hkplayer-start-interact"),c.style.display="none"}(e)})),e.on("play",v),e.on("pause",y),e.onElementClick=function(e,n){e.preventDefault(),e.stopPropagation();var o=this;o.config.closeVideoClick||(r++,a&&clearTimeout(a),1===r?a=setTimeout((function(){if(t.hasClass(o.root,"hkplayer-nostart"))return!1;o.ended||(o.paused?o.play():o.pause()),r=0}),200):r=0)},e.video.addEventListener("click",(function(t){e.onElementClick(t,e.video)}),!1),e.onElementDblclick=function(e,t){e.preventDefault(),e.stopPropagation();if(!this.config.closeVideoDblclick){var o=n.querySelector(".hkplayer-fullscreen");if(o){var r=void 0;document.createEvent?(r=document.createEvent("Event")).initEvent("click",!0,!0):r=new Event("click"),o.dispatchEvent(r)}}},e.video.addEventListener("dblclick",(function(t){e.onElementDblclick(t,e.video)}),!1),o.addEventListener("mouseenter",(function(){clearTimeout(e.leavePlayerTimer),e.emit("focus",e)}),!1),o.addEventListener("mouseleave",(function(){e.config.closePlayerBlur||(e.leavePlayerTimer=setTimeout((function(){e.emit("blur",e)}),e.config.leavePlayerTime||0))}),!1),n.addEventListener("mouseenter",(function(t){e.userTimer&&clearTimeout(e.userTimer)}),!1),n.addEventListener("mouseleave",(function(t){e.config.closeControlsBlur||e.emit("focus",e)}),!1),e.once("ready",b),e.once("destroy",(function t(){e.off("canplay",g),e.off("playing",m),e.off("play",v),e.off("pause",y),e.off("ready",b),e.off("destroy",t)}))}))},"./src/control/pip.js":
  /*!****************************!*\
    !*** ./src/control/pip.js ***!
    \****************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("pip",(function(){var e=this,t=i.default.util;if(e.config.pip){var n=t.createDom("hk-pip",'<p class="name"><span>画中画</span></p>',{tabindex:9},"hkplayer-pip"),o=e.controls,r=e.root;o.appendChild(n);["click","touchstart"].forEach((function(o){n.addEventListener(o,(function(n){n.preventDefault(),n.stopPropagation(),t.hasClass(r,"hkplayer-pip-active")?e.exitPIP(e):e.getPIP(e)}))}))}}))},"./src/control/play.js":
  /*!*****************************!*\
    !*** ./src/control/play.js ***!
    \*****************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=i(n(/*! ../player */"./src/player.js")),r=i(n(/*! ../utils/svg */"./src/utils/svg.js"));function i(e){return e&&e.__esModule?e:{default:e}}o.default.install("play",(function(){var e=this,t=e.controls,n=o.default.util,i=(e.config.iconScale,{play:"M15.9,10.5L5.3,17.2c-0.6,0.4-1.3,0.2-1.7-0.4c-0.1-0.2-0.2-0.4-0.2-0.6V2.8c0-0.7,0.5-1.2,1.2-1.2,c0.2,0,0.5,0.1,0.6,0.2l10.6,6.7c0.6,0.4,0.7,1.1,0.4,1.7C16.2,10.3,16.1,10.4,15.9,10.5z",pause:"M4.5,2.2A1.5,1.5,0,0,1,6,3.7v13a1.5,1.5,0,0,1-1.5,1.5A1.5,1.5,0,0,1,3,16.7V3.7A1.5,1.5,0,0,1,4.5,2.2Zm9,0A1.5,1.5,0,0,1,15,3.7v13a1.5,1.5,0,0,1-3,0V3.7A1.5,1.5,0,0,1,13.5,2.2Z",replay:"M11,5.8l0,2.1c0,0.3-0.2,0.6-0.5,0.6c-0.1,0-0.3,0-0.4-0.1L6.3,5C6.1,4.8,6,4.3,6.3,4c0,0,0,0,0.1-0.1,l3.7-3.3c0.2-0.2,0.6-0.2,0.8,0C10.9,0.8,11,1,11,1.1l0,2.2c4.3,0.2,7.8,3.8,7.8,8.2c0,4.6-3.7,8.2-8.2,8.2s-8.2-3.7-8.2-8.2,c0-1,0.2-2.1,0.6-3c0.3-0.6,1-1,1.6-0.7c0.6,0.3,1,1,0.7,1.6c-0.3,0.7-0.4,1.4-0.4,2.1c0,3.2,2.6,5.8,5.8,5.8s5.8-2.6,5.8-5.8,C16.2,8.5,13.9,6,11,5.8z"}),a=e.config.playBtn?e.config.playBtn:{},s=void 0,l=void 0,c=void 0;"img"===a.type?s=o.default.util.createImgBtn("play",a.url.play,a.width,a.height):(s=n.createDom("hk-play",'<hk-icon class="hkplayer-icon"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n              <path fill="#fff" d="'+i.play+'"></path>\n          </svg></hk-icon>',{},"hkplayer-play"),l=s.querySelector("path"),c=new r.default({progress:function(e,t){l.setAttribute("d",c.toSVGString(e))},from:i.pause,to:i.play,duration:50}));var u=e.config.lang&&"zh-cn"===e.config.lang?"播放":"Play",d=e.config.lang&&"zh-cn"===e.config.lang?"暂停":"Pause",p=(e.config.lang&&e.config.lang,n.createDom("hk-tips",u,{},"hkplayer-tips"));s.appendChild(p);function h(){"img"===a.type?s.style.backgroundImage='url("'+a.url.pause+'")':setTimeout((function(){p.textContent=d,c.to!==i.pause&&c.reset(i.pause,i.play)}),80)}function f(){"img"===a.type?s.style.backgroundImage='url("'+a.url.play+'")':setTimeout((function(){p.textContent=u,c.to!==i.play&&c.reset(i.play,i.pause)}),80)}t.appendChild(s),["click","touchstart"].forEach((function(t){s.addEventListener(t,(function(t){if(t.preventDefault(),t.stopPropagation(),e.ended)return!1;e.paused?e.play():e.pause()}),!1)})),e.on("play",h),e.on("pause",f),e.once("destroy",(function t(){e.off("play",h),e.off("pause",f),e.off("destroy",t)}))}))},"./src/control/playNext.js":
  /*!*********************************!*\
    !*** ./src/control/playNext.js ***!
    \*********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("playNext",(function(){var e=this,t=i.default.util,n=e.controls,o=e.config.playNextBtn,r=-1;if(o&&o.urlList){var a=void 0;a="img"===o.type?i.default.util.createImgBtn("playNext",o.url,o.width,o.height):t.createDom("hk-playNext",'<hk-icon class="hkplayer-icon"><svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">\n                <path transform="scale(0.025 0.025)"\n                d="M800 380v768h-128v-352l-320 320v-704l320 320v-352z"></path>\n            </svg></hk-icon>',{},"hkplayer-playNext"),n.appendChild(a);["click","touchend"].forEach((function(t){a.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),r+1<o.urlList.length?(r++,e.video.pause(),e.currentTime=0,e.video.autoplay=!0,e.src=o.urlList[r],e.emit("playerNext",r+1)):e.emit("urlList last")}),!1)}))}}))},"./src/control/playbackRate.js":
  /*!*************************************!*\
    !*** ./src/control/playbackRate.js ***!
    \*************************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("playbackRate",(function(){var e=this,t=i.default.util,n=0,o=1,r=[];if(!e.config.playbackRate)return!1;e.config.playbackRate.sort((function(e,t){return e-t})),e.config.playbackRate.forEach((function(t,i){e.config.defaultPlaybackRate&&e.config.defaultPlaybackRate===t?(n=i,o=t,e.once("playing",(function(){e.video.playbackRate=t}))):1!==t&&"1"!==t||(n=i),r.push(t+"x")}));var a=e.config.lang&&"zh-cn"===e.config.lang?"倍速":"Speed",s=t.createDom("hk-playback","<p class='name'><span>"+o+"x</span></p>",{},"hkplayer-playback"),l=e.controls,c=t.createDom("hk-tips",a,{},"hkplayer-tips");s.appendChild(c),l.appendChild(s),["touchstart","click"].forEach((function(t){s.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation();var o=t.target||t.srcElement;!o||"p"!==o.tagName.toLocaleLowerCase()&&"span"!==o.tagName.toLocaleLowerCase()||(n=n+1===r.length?0:n+1,s.querySelector("p").innerHTML="<span>"+r[n]+"</span>",e.video.playbackRate=1*r[n].replace(/x$/g,""))}),!1)})),s.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),c.style.left="50%";var n=c.getBoundingClientRect(),o=e.root.getBoundingClientRect();n.right>o.right&&(c.style.left=-n.right+o.right+16+"px")})),e.on("play",(function(){var t=parseFloat(r[n].substring(0,r[n].length-1));e.video.playbackRate.toFixed(1)!==t.toFixed(1)&&(e.video.playbackRate=t)}))}))},"./src/control/poster.js":
  /*!*******************************!*\
    !*** ./src/control/poster.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("poster",(function(){var e=this,t=i.default.util.createDom("hk-poster","",{},"hkplayer-poster"),n=e.root;function o(){t.style.display="none"}e.config.poster&&(t.style.backgroundImage="url("+e.config.poster+")",n.appendChild(t)),e.on("play",o),e.once("destroy",(function t(){e.off("play",o),e.off("destroy",t)}))}))},"./src/control/progress.js":
  /*!*********************************!*\
    !*** ./src/control/progress.js ***!
    \*********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("progress",(function(){var e=this,t=i.default.util,n=t.createDom("hk-progress",'<hk-outer class="hkplayer-progress-outer"><hk-cache class="hkplayer-progress-cache"></hk-cache><hk-played class="hkplayer-progress-played"></hkplayer-played><hk-progress-btn class="hkplayer-progress-btn"></hk-progress-btn><hk-point class="hkplayer-progress-point hkplayer-tips"></hk-point><hk-thumbnail class="hkplayer-progress-thumbnail hkplayer-tips"></hk-thumbnail></hk-outer>',{tabindex:1},"hkplayer-progress"),o=e.controls,r=void 0;o.appendChild(n);var a=n.querySelector(".hkplayer-progress-played"),s=n.querySelector(".hkplayer-progress-btn"),l=n.querySelector(".hkplayer-progress-outer"),c=n.querySelector(".hkplayer-progress-cache"),u=n.querySelector(".hkplayer-progress-point"),d=n.querySelector(".hkplayer-progress-thumbnail");function p(o,r){o.addEventListener("mouseenter",(function(e){r&&(t.addClass(o,"hkplayer-progress-dot-show"),t.addClass(n,"hkplayer-progress-dot-active"))})),o.addEventListener("mouseleave",(function(e){r&&(t.removeClass(o,"hkplayer-progress-dot-show"),t.removeClass(n,"hkplayer-progress-dot-active"))})),o.addEventListener("touchend",(function(i){i.preventDefault(),i.stopPropagation(),r&&(t.hasClass(o,"hkplayer-progress-dot-show")||Object.keys(e.dotArr).forEach((function(n){e.dotArr[n]&&t.removeClass(e.dotArr[n],"hkplayer-progress-dot-show")})),t.toggleClass(o,"hkplayer-progress-dot-show"),t.toggleClass(n,"hkplayer-progress-dot-active"))}))}function h(){e.config.progressDot&&"Array"===t.typeOf(e.config.progressDot)&&e.config.progressDot.forEach((function(n){if(n.time>=0&&n.time<=e.duration){var o=t.createDom("hk-progress-dot",n.text?'<span class="hkplayer-progress-tip">'+n.text+"</span>":"",{},"hkplayer-progress-dot");o.style.left=n.time/e.duration*100+"%",l.appendChild(o),e.dotArr[n.time]=o,p(o,n.text)}}))}e.dotArr={},e.once("canplay",h),e.addProgressDot=function(n,o){if(!e.dotArr[n]&&n>=0&&n<=e.duration){var r=t.createDom("hk-progress-dot","",{},"hkplayer-progress-dot");r.style.left=n/e.duration*100+"%",l.appendChild(r),e.dotArr[n]=r,p(r,o)}},e.removeProgressDot=function(t){if(t>=0&&t<=e.duration&&e.dotArr[t]){var n=e.dotArr[t];n.parentNode.removeChild(n),n=null,e.dotArr[t]=null}},e.removeAllProgressDot=function(){Object.keys(e.dotArr).forEach((function(t){if(e.dotArr[t]){var n=e.dotArr[t];n.parentNode.removeChild(n),n=null,e.dotArr[t]=null}}))};var f=0,g=0,m=0,v=0,y=0,b=0,k=[];e.config.thumbnail&&(f=e.config.thumbnail.pic_num,g=e.config.thumbnail.width,m=e.config.thumbnail.height,v=e.config.thumbnail.col,y=e.config.thumbnail.row,k=e.config.thumbnail.urls,d.style.width=g+"px",d.style.height=m+"px"),["touchstart","mousedown"].forEach((function(i){n.addEventListener(i,(function(i){if(i.preventDefault(),i.stopPropagation(),t.event(i),i._target===u||!e.config.allowSeekAfterEnded&&e.ended)return!1;n.focus(),r=n.getBoundingClientRect().width;var l=a.getBoundingClientRect().left,c=function(n){n.preventDefault(),n.stopPropagation(),t.event(n),e.isProgressMoving=!0;var i=n.clientX-l>r?r:n.clientX-l,c=i/r*e.duration;if(a.style.width=100*i/r+"%",i-7<0?(s.style.left="0px",s.style.transform=""):i+7>r?(s.style.left=r-14+"px",s.style.transform=""):(s.style.left="100%",s.style.transform="translate(-50%, 0)"),"video"!==e.videoConfig.mediaType||e.dash||e.config.closeMoveSeek){var u=t.findDom(o,".hkplayer-time");u&&(u.innerHTML="<span>"+t.format(c||0)+"</span><em>"+t.format(e.duration))}else e.currentTime=Number(c).toFixed(1);e.emit("focus")},d=function o(i){if(i.preventDefault(),i.stopPropagation(),t.event(i),window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c,{passive:!1}),window.removeEventListener("mouseup",o),window.removeEventListener("touchend",o),n.blur(),!e.isProgressMoving||"audio"===e.videoConfig.mediaType||e.dash||e.config.closeMoveSeek){var u=i.clientX-l,d=u/r*e.duration;a.style.width=100*u/r+"%",u-7<0?(s.style.left="0px",s.style.transform=""):u+7>r?(s.style.left=r-14+"px",s.style.transform=""):(s.style.left="100%",s.style.transform="translate(-50%, 0)"),e.currentTime=Number(d).toFixed(1)}e.emit("focus"),e.isProgressMoving=!1};return window.addEventListener("mousemove",c),window.addEventListener("touchmove",c,{passive:!1}),window.addEventListener("mouseup",d),window.addEventListener("touchend",d),!1}))})),n.addEventListener("mouseenter",(function(o){if(!e.config.allowSeekAfterEnded&&e.ended)return!1;var r=n.getBoundingClientRect().left,i=n.getBoundingClientRect().width,a=function(o){var a=(o.clientX-r)/i*e.duration;a=a<0?0:a,u.textContent=t.format(a);var s=u.getBoundingClientRect().width;if(e.config.thumbnail){b=e.duration/f;var l=Math.floor(a/b);d.style.backgroundImage="url("+k[Math.ceil((l+1)/(v*y))-1]+")";var c=l+1-v*y*(Math.ceil((l+1)/(v*y))-1),p=Math.ceil(c/y)-1,h=c-p*y-1;d.style["background-position"]="-"+h*g+"px -"+p*m+"px";var w=o.clientX-r-g/2;w=(w=w>0?w:0)<i-g?w:i-g,d.style.left=w+"px",d.style.top=-10-m+"px",d.style.display="block",u.style.left=w+g/2-s/2+"px"}else{var _=o.clientX-r-s/2;_=(_=_>0?_:0)>i-s?i-s:_,u.style.left=_+"px"}t.hasClass(n,"hkplayer-progress-dot-active")?u.style.display="none":u.style.display="block"},s=function(e){a(e)};n.addEventListener("mousemove",s,!1),n.addEventListener("mouseleave",(function e(t){n.removeEventListener("mousemove",s,!1),n.removeEventListener("mouseleave",e,!1),a(t),u.style.display="none",d.style.display="none"}),!1),a(o)}),!1);var w=!1,_=function(){if(!r&&n&&(r=n.getBoundingClientRect().width),"audio"!==e.videoConfig.mediaType||!e.isProgressMoving||!e.dash){a.style.width=100*e.currentTime/e.duration+"%";var t=e.currentTime/e.duration*r-7;if(t<0)s.style.left="0px",s.style.transform="",w=!1;else if(t+14>r)s.style.left=r-14+"px",s.style.transform="",w=!1;else{if(w)return;s.style.left="100%",s.style.transform="translate(-50%, 0)",w=!0}}};e.on("timeupdate",_);var x=function(){var t=e.buffered;if(t&&t.length>0){for(var n=t.end(t.length-1),o=0,r=t.length;o<r;o++)if(e.currentTime>=t.start(o)&&e.currentTime<=t.end(o)){n=t.end(o);for(var i=o+1;i<t.length;i++)if(t.start(i)-t.end(i-1)>=2){n=t.end(i-1);break}break}c.style.width=n/e.duration*100+"%"}},E=["bufferedChange","cacheupdate","ended","timeupdate"];E.forEach((function(t){e.on(t,x)})),e.once("destroy",(function t(){e.removeAllProgressDot(),e.off("canplay",h),e.off("timeupdate",_),E.forEach((function(t){e.off(t,x)})),e.off("destroy",t)}))}))},"./src/control/replay.js":
  /*!*******************************!*\
    !*** ./src/control/replay.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("replay",(function(){var e=this,t=i.default.util,n=e.config.centerBtn?e.config.centerBtn:{},o=void 0,r=void 0,a=void 0,s=void 0;if(!(navigator.userAgent.indexOf("iPhone OS 9")>-1)){if("img"===n.type){if(r=t.createDom("hk-replay",'<div class="hkplayer-replay-img"></div>',{},"hkplayer-replay"),(a=r.querySelector(".hkplayer-replay-img")).style.backgroundImage='url("'+n.url.replay+'")',n.width&&n.height){var l=void 0,c=void 0,u=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every((function(e){return!(n.width.indexOf(e)>-1&&n.height.indexOf(e)>-1)||(l=parseFloat(n.width.slice(0,n.width.indexOf(e)).trim()),c=parseFloat(n.height.slice(0,n.height.indexOf(e)).trim()),u=e,!1)})),a.style.width=""+l+u,a.style.height=""+c+u,a.style.backgroundSize=""+l+u+" "+c+u,a.style.margin="-"+c/2+u+" auto auto -"+l/2+u}}else o={replay:n.replayPath?n.replayPath:"M8.22708362,13.8757234 L11.2677371,12.6472196 C11.7798067,12.4403301 12.3626381,12.6877273 12.5695276,13.1997969 L12.9441342,14.1269807 C13.1510237,14.6390502 12.9036264,15.2218816 12.3915569,15.4287712 L6.8284538,17.6764107 L5.90126995,18.0510173 C5.38920044,18.2579068 4.80636901,18.0105096 4.5994795,17.49844 L1.97723335,11.0081531 C1.77034384,10.4960836 2.0177411,9.91325213 2.52981061,9.70636262 L3.45699446,9.33175602 C3.96906396,9.12486652 4.5518954,9.37226378 4.75878491,9.88433329 L5.67885163,12.1615783 C7.99551726,6.6766934 13.3983951,3 19.5,3 C27.7842712,3 34.5,9.71572875 34.5,18 C34.5,26.2842712 27.7842712,33 19.5,33 C15.4573596,33 11.6658607,31.3912946 8.87004692,28.5831991 C8.28554571,27.9961303 8.28762719,27.0463851 8.87469603,26.4618839 C9.46176488,25.8773827 10.4115101,25.8794641 10.9960113,26.466533 C13.2344327,28.7147875 16.263503,30 19.5,30 C26.127417,30 31.5,24.627417 31.5,18 C31.5,11.372583 26.127417,6 19.5,6 C14.4183772,6 9.94214483,9.18783811 8.22708362,13.8757234 Z"},s=(r=t.createDom("hk-replay",'\n          <svg class="hkplayer-replay-svg" xmlns="http://www.w3.org/2000/svg" width="78" height="78" viewbox="0 0 78 78">\n            <path d="'+o.replay+'"></path>\n          </svg>\n          <hk-replay-txt class="hkplayer-replay-txt">重播</hk-replay-txt>\n          ',{},"hkplayer-replay")).querySelector(".hkplayer-replay-svg");var d=e.root;d.appendChild(r),e.on("ended",p),(s||a).addEventListener("click",(function(n){n.preventDefault(),t.removeClass(d,"replay"),e.replay()})),e.once("destroy",(function t(){e.off("ended",p),e.off("destroy",t)}))}function p(){if("img"===n.type)a.style.backgroundImage='url("'+n.url.replay+'")';else{r.querySelector(".hkplayer-replay-txt").textContent=e.lang.REPLAY;var o=r.querySelector("path"),i=window.getComputedStyle(o).getPropertyValue("transform");"none"!==i&&o.setAttribute("transform",i)}e.config.loop||t.addClass(d,"replay")}}))},"./src/control/rotate.js":
  /*!*******************************!*\
    !*** ./src/control/rotate.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("rotate",(function(){var e=this;if(this.config.rotate){!0===this.config.rotate&&(this.config.rotate={});var t=i.default.util,n=t.createDom("hk-rotate",'<hk-icon class="hkplayer-icon hkplayer-rotate-img"></hk-icon>',{},"hkplayer-rotate"),o=e.config.lang&&"zh-cn"===e.config.lang?"旋转":"Rotate",r=t.createDom("hk-tips",o,{},"hkplayer-tips");n.appendChild(r),e.controls.appendChild(n);var a=0;e.rotate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,n=e.root.offsetWidth,o=e.root.offsetHeight;e.config.rotate.innerRotate||(e.root.style.width=o+"px",e.root.style.height=n+"px");var r=e.config.rotate.clockwise?1:-1,i=void 0;i=.25===(a=(a+1+.25*r*t)%1)||.75===a?(e.config.rotate.innerRotate,(o/n).toFixed(2)):1,e.video.style.transformOrigin="center center",e.video.style.transform="rotate("+a+"turn) scale("+i+")",e.video.style.webKitTransform="rotate("+a+"turn) scale("+i+")",e.emit("rotate",360*a)},n.addEventListener("mouseenter",(function(t){t.preventDefault(),t.stopPropagation(),r.style.left="50%";var n=r.getBoundingClientRect(),o=e.root.getBoundingClientRect();n.right>o.right&&(r.style.left=-n.right+o.right+16+"px")})),n.addEventListener("click",(function(){e.rotate()}))}}))},"./src/control/screenShot.js":
  /*!***********************************!*\
    !*** ./src/control/screenShot.js ***!
    \***********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("screenShot",(function(){var e=this,t=i.default.util;if(e.config.screenShot){var n=t.createDom("hk-screenShot",'<p class="name"><span>截图</span></p>',{tabindex:11},"hkplayer-screenShot"),o=document.createElement("canvas"),r=o.getContext("2d"),a=new Image;o.width=this.config.width||600,o.height=this.config.height||337.5,e.controls.appendChild(n);["click","touchstart"].forEach((function(t){n.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),a.onload=(r.drawImage(e.video,0,0,o.width,o.height),a.setAttribute("crossOrigin","anonymous"),a.src=o.toDataURL("image/png").replace("image/png","image/octet-stream"),void function(e,t){var n=document.createElement("a");n.href=e,n.download=t;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}(a.src.replace(/^data:image\/[^;]+/,"data:application/octet-stream"),"截图.png"))}))}))}}))},"./src/control/textTrack.js":
  /*!**********************************!*\
    !*** ./src/control/textTrack.js ***!
    \**********************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("textTrack",(function(){if(-1!==navigator.userAgent.indexOf("Chrome")){var e=this,t=i.default.util,n=(i.default.sniffer,t.createDom("hk-textTrack","",{tabindex:7},"hkplayer-textTrack")),o=e.controls,r=e.config.textTrack;r&&Array.isArray(r)&&r.length>1&&(t.addClass(e.root,"hkplayer-is-textTrack"),e.on("canplay",(function(){var i=["<ul>"];i.push("<li class=''}'>关闭</li>"),r.forEach((function(e){i.push("<li class='"+(e.default?"textTrack":"")+"'>"+e.label+"</li>")}));var a=e.config.lang&&"zh-cn"===e.config.lang?"字幕":"Caption";i.push('</ul><p class="name"><em>'+a+"</em></p>");var s=o.querySelector(".hkplayer-textTrack");s?(s.innerHTML=i.join(""),s.querySelector(".name").addEventListener("mouseenter",(function(n){n.preventDefault(),n.stopPropagation(),t.addClass(e.root,"hkplayer-textTrack-active"),s.focus()}))):(n.innerHTML=i.join(""),n.querySelector(".name").addEventListener("mouseenter",(function(o){o.preventDefault(),o.stopPropagation(),t.addClass(e.root,"hkplayer-textTrack-active"),n.focus()})),o.appendChild(n))}))),["touchend","click"].forEach((function(o){n.addEventListener(o,(function(n){n.preventDefault(),n.stopPropagation();var o=n.target||n.srcElement;if(o&&"li"===o.tagName.toLocaleLowerCase()){Array.prototype.forEach.call(o.parentNode.childNodes,(function(e){t.removeClass(e,"textTrack")})),t.addClass(o,"textTrack");var i=e.root.getElementsByTagName("Track");"关闭"===o.innerHTML?(i[0].track.mode="hidden",t.removeClass(e.root,"hkplayer-textTrack-active")):(t.hasClass(e.root,"hkplayer-textTrack-active")||t.addClass(e.root,"hkplayer-textTrack-active"),i[0].track.mode="showing",r.some((function(e){if(e.label===o.innerHTML)return i[0].src=e.src,e.kind&&(i[0].kind=e.kind),i[0].label=e.label,e.srclang&&(i[0].srclang=e.srclang),!0})),e.emit("textTrackChange",o.innerHTML))}}),!1)})),n.addEventListener("mouseleave",(function(n){n.preventDefault(),n.stopPropagation(),t.removeClass(e.root,"hkplayer-textTrack-active")}))}}))},"./src/control/time.js":
  /*!*****************************!*\
    !*** ./src/control/time.js ***!
    \*****************************/
  /*! no static exports found */function(e,t,n){"use strict";var o,r=n(/*! ../player */"./src/player.js"),i=(o=r)&&o.__esModule?o:{default:o};i.default.install("time",(function(){var e=this,t=i.default.util,n=t.format,o=t.createDom("hk-time",'<div class="hkplayer-time-wapper"><span>'+(e.currentTime||n(0))+"</span><em>"+(e.duration||n(0))+"</em></div>",{},"hkplayer-time");e.controls.appendChild(o);var r=function(){"audio"===e.videoConfig.mediaType&&e.isProgressMoving&&e.dash||(o.innerHTML='<div class="hkplayer-time-wapper"><span>'+n(e.currentTime||0)+"</span><em>"+n(e.duration)+"</em></div>")};e.on("durationchange",r),e.on("timeupdate",r),e.once("destroy",(function t(){e.off("durationchange",r),e.off("timeupdate",r),e.off("destroy",t)}))}))},"./src/control/volume.js":
  /*!*******************************!*\
    !*** ./src/control/volume.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";var o=i(n(/*! ../player */"./src/player.js")),r=i(n(/*! ../utils/svg */"./src/utils/svg.js"));function i(e){return e&&e.__esModule?e:{default:e}}o.default.install("volume",(function(){var e=this,t=o.default.util,n=o.default.sniffer;function i(){e.config.autoplay&&e.config.autoplayMuted?e.volume=0:e.volume=e.config.volume}e.config.autoplayMuted&&(e.config.volume=e.config.autoplay?0:e.config.volume),e.once("canplay",i);var a=e.config.volume;if("mobile"!==n.device){var s={muted:"M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z",small:"M795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z",large:"M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"},l=function(e){return 0===e?"muted":e<.5?"small":"large"},c=s[l(a)],u=s[l(a)],d=t.createDom("hk-volume",'<hk-icon class="hkplayer-icon">\n                                                    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n                                                        <path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n                                                        <path transform="scale(0.0220625 0.0220625)" d="'+u+'"></path>\n                                                    </svg>\n                                                </hk-icon>\n                                                <hk-slider class="hkplayer-slider" tabindex="2">\n                                                    <hk-bar class="hkplayer-bar">\n                                                        <hk-drag class="hkplayer-drag"></hk-drag>\n                                                    </hk-bar>\n                                                </hk-slider>',{},"hkplayer-volume");e.controls.appendChild(d);var p=void 0,h=d.querySelector(".hkplayer-slider"),f=d.querySelector(".hkplayer-bar"),g=d.querySelector(".hkplayer-drag"),m=d.querySelector(".hkplayer-icon");g.style.height=100*e.config.volume+"%";var v=d.querySelectorAll("path")[1],y=new r.default({progress:function(e,t){var n=y.toSVGString(e);v.setAttribute("d",n),c=n},from:c,to:s.large}),b=null,k=e.config.volume;h.volume=e.config.volume,["touchstart","mousedown"].forEach((function(n){f.addEventListener(n,(function(n){n.preventDefault(),n.stopPropagation(),e.video.muted=!1,h.focus(),t.event(n),p=f.getBoundingClientRect().height;n.clientX;var o=n.clientY,r=g.getBoundingClientRect().height,i=!1,a=function(n){n.preventDefault(),n.stopPropagation(),t.event(n),i=!0;var a=r-n.clientY+o,s=a/p;g.style.height=a+"px",e.volume=Math.max(Math.min(s,1),0)},s=function n(o){if(o.preventDefault(),o.stopPropagation(),t.event(o),window.removeEventListener("mousemove",a),window.removeEventListener("touchmove",a),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),b||(b=f.getBoundingClientRect()),!i){var r=b.height-(o.clientY-b.top),s=r/b.height;g.style.height=r+"px",s<=0&&(e.volume>0?g.volume=e.video.volume:s=g.volume),e.volume=Math.max(Math.min(s,1),.01)}h.volume=e.volume,e.volume&&(k=e.volume),i=!1};return window.addEventListener("mousemove",a),window.addEventListener("touchmove",a),window.addEventListener("mouseup",s),window.addEventListener("touchend",s),!1}))})),["touchstart","mousedown"].forEach((function(t){m.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.video.muted=!1,0===e.volume?(e.volume=k,h.volume=k):e.volume=0}))})),m.addEventListener("mouseenter",(function(n){n.preventDefault(),n.stopPropagation(),t.addClass(e.root,"hkplayer-volume-active"),d.focus()})),d.addEventListener("blur",(function(n){n.preventDefault(),n.stopPropagation(),t.removeClass(e.root,"hkplayer-volume-active")})),d.addEventListener("mouseleave",(function(n){n.preventDefault(),n.stopPropagation(),t.removeClass(e.root,"hkplayer-volume-active")}));var w=null;e.on("volumechange",O),e.once("destroy",(function t(){e.off("canplay",i),e.off("volumechange",O),e.off("destroy",t)}))}else{var _={muted:"M920.4 439.808l-108.544-109.056-72.704 72.704 109.568 108.544-109.056 108.544 72.704 72.704 108.032-109.568 108.544 109.056 72.704-72.704-109.568-108.032 109.056-108.544-72.704-72.704-108.032 109.568z",large:"M940.632 837.632l-72.192-72.192c65.114-64.745 105.412-154.386 105.412-253.44s-40.299-188.695-105.396-253.424l-0.016-0.016 72.192-72.192c83.639 83.197 135.401 198.37 135.401 325.632s-51.762 242.434-135.381 325.612l-0.020 0.020zM795.648 693.248l-72.704-72.704c27.756-27.789 44.921-66.162 44.921-108.544s-17.165-80.755-44.922-108.546l0.002 0.002 72.704-72.704c46.713 46.235 75.639 110.363 75.639 181.248s-28.926 135.013-75.617 181.227l-0.021 0.021z"},x=function(e){return 0===e?"muted":"large"},E=_[x(a)],C=_[x(a)],S=t.createDom("hk-volume",'<hk-icon class="hkplayer-icon">\n                                                      <svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 1024 1024">\n                                                          <path transform="scale(0.0220625 0.0220625)" d="M358.4 358.4h-204.8v307.2h204.8l256 256v-819.2l-256 256z"></path>\n                                                          <path transform="scale(0.0220625 0.0220625)" d="'+C+'"></path>\n                                                      </svg>\n                                                  </hk-icon>',{},"hkplayer-volume");e.controls.appendChild(S);var P=S.querySelector(".hkplayer-icon"),j=S.querySelectorAll("path")[1],T=new r.default({progress:function(e,t){var n=T.toSVGString(e);j.setAttribute("d",n),E=n},from:E,to:_.large});["touchend","mousedown"].forEach((function(t){P.addEventListener(t,(function(t){t.preventDefault(),t.stopPropagation(),e.video.muted?(e.video.muted=!1,e.volume=1,T.reset(_.large,_.muted),E=_.large):(e.volume=0,e.video.muted=!0,T.reset(_.muted,_.large),E=_.muted)}))}))}function O(){w&&clearTimeout(w),w=setTimeout((function(){y.reset(s[l(e.volume)],c),c=s[l[e.volume]],p||(p=f.getBoundingClientRect().height||76),g.style.height=e.volume*p+"px"}),50)}}))},"./src/error.js":
  /*!**********************!*\
    !*** ./src/error.js ***!
    \**********************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! ../package.json */"./package.json");function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i={network:{code:1,msg:"视频下载错误",remark:"只要视频下载错误就使用此类型，无论是video本身的超时还是xhr的分段请求超时或者资源不存在"},mse:{code:2,msg:"流追加错误",remark:"追加流的时候如果类型不对、无法被正确解码则会触发此类错误"},parse:{code:3,msg:"解析错误",remark:"mp4、hls、flv我们都是使用js进行格式解析，如果解析失败则会触发此类错误"},format:{code:4,msg:"格式错误",remark:"如果浏览器不支持的格式导致播放错误"},decoder:{code:5,msg:"解码错误",remark:"浏览器解码异常会抛出此类型错误"},runtime:{code:6,msg:"语法错误",remark:"播放器语法错误"},timeout:{code:7,msg:"播放超时",remark:"播放过程中无法正常请求下一个分段导致播放中断"},other:{code:8,msg:"其他错误",remark:"不可知的错误或被忽略的错误类型"}};t.default=function e(t,n,a,s,l,c,u,d){var p=arguments.length>8&&void 0!==arguments[8]?arguments[8]:{line:"",handle:"",msg:"",version:""};r(this,e);var h={};return h.playerVersion=o.version,h.errorType=t,h.domain=document.domain,h.duration=a,h.currentTime=n,h.networkState=s,h.readyState=l,h.currentSrc=u,h.src=c,h.ended=d,h.errd=p,h.ex=(i[t]||{}).msg,h},e.exports=t.default},"./src/index.js":
  /*!**********************!*\
    !*** ./src/index.js ***!
    \**********************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=O(n(/*! ./player */"./src/player.js")),r=O(n(/*! ./control/volume.js */"./src/control/volume.js")),i=O(n(/*! ./control/time.js */"./src/control/time.js")),a=O(n(/*! ./control/textTrack.js */"./src/control/textTrack.js")),s=O(n(/*! ./control/screenShot.js */"./src/control/screenShot.js")),l=O(n(/*! ./control/rotate.js */"./src/control/rotate.js")),c=O(n(/*! ./control/replay.js */"./src/control/replay.js")),u=O(n(/*! ./control/progress.js */"./src/control/progress.js")),d=O(n(/*! ./control/poster.js */"./src/control/poster.js")),p=O(n(/*! ./control/playNext.js */"./src/control/playNext.js")),h=O(n(/*! ./control/playbackRate.js */"./src/control/playbackRate.js")),f=O(n(/*! ./control/play.js */"./src/control/play.js")),g=O(n(/*! ./control/pip.js */"./src/control/pip.js")),m=O(n(/*! ./control/pc.js */"./src/control/pc.js")),v=O(n(/*! ./control/mobile.js */"./src/control/mobile.js")),y=O(n(/*! ./control/logger.js */"./src/control/logger.js")),b=O(n(/*! ./control/localPreview.js */"./src/control/localPreview.js")),k=O(n(/*! ./control/loading.js */"./src/control/loading.js")),w=O(n(/*! ./control/i18n.js */"./src/control/i18n.js")),_=O(n(/*! ./control/fullscreen.js */"./src/control/fullscreen.js")),x=O(n(/*! ./control/flex.js */"./src/control/flex.js")),E=O(n(/*! ./control/error.js */"./src/control/error.js")),C=O(n(/*! ./control/download.js */"./src/control/download.js")),S=O(n(/*! ./control/definition.js */"./src/control/definition.js")),P=O(n(/*! ./control/danmu.js */"./src/control/danmu.js")),j=O(n(/*! ./control/cssFullscreen.js */"./src/control/cssFullscreen.js")),T=O(n(/*! ./control/collect.js */"./src/control/collect.js"));function O(e){return e&&e.__esModule?e:{default:e}}n(/*! ./style/index.scss */"./src/style/index.scss");var M={};function D(e,t,n){var o=e;t.map((function(e,r){o[e]=r==t.length-1?n:o[e]||{},o=o[e]}))}D(M,["control","collect"],T.default),D(M,["control","cssFullscreen"],j.default),D(M,["control","danmu"],P.default),D(M,["control","definition"],S.default),D(M,["control","download"],C.default),D(M,["control","error"],E.default),D(M,["control","flex"],x.default),D(M,["control","fullscreen"],_.default),D(M,["control","i18n"],w.default),D(M,["control","loading"],k.default),D(M,["control","localPreview"],b.default),D(M,["control","logger"],y.default),D(M,["control","mobile"],v.default),D(M,["control","pc"],m.default),D(M,["control","pip"],g.default),D(M,["control","play"],f.default),D(M,["control","playbackRate"],h.default),D(M,["control","playNext"],p.default),D(M,["control","poster"],d.default),D(M,["control","progress"],u.default),D(M,["control","replay"],c.default),D(M,["control","rotate"],l.default),D(M,["control","screenShot"],s.default),D(M,["control","textTrack"],a.default),D(M,["control","time"],i.default),D(M,["control","volume"],r.default),t.default=o.default,e.exports=t.default},"./src/player.js":
  /*!***********************!*\
    !*** ./src/player.js ***!
    \***********************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=p(n(/*! ./proxy */"./src/proxy.js")),a=p(n(/*! ./utils/util */"./src/utils/util.js")),s=p(n(/*! ./utils/database */"./src/utils/database.js")),l=p(n(/*! ./utils/sniffer */"./src/utils/sniffer.js")),c=p(n(/*! ./error */"./src/error.js")),u=p(n(/*! draggabilly */"./node_modules/draggabilly/draggabilly.js")),d=n(/*! ../package.json */"./package.json");function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=h(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(n.config=a.default.deepCopy({width:600,height:337.5,ignores:[],whitelist:[],lang:(document.documentElement.getAttribute("lang")||navigator.language||"zh-cn").toLocaleLowerCase(),inactive:3e3,volume:.6,controls:!0,controlsList:["nodownload"]},e),n.version=d.version,n.userTimer=null,n.waitTimer=null,n.database=new s.default,n.history=[],n.isProgressMoving=!1,n.root=a.default.findDom(document,"#"+n.config.id),n.controls=a.default.createDom("hk-controls","",{unselectable:"on",onselectstart:"return false"},"hkplayer-controls"),!n.root){var o=n.config.el;if(!o||1!==o.nodeType)return n.emit("error",new c.default("use",n.config.vid,{line:32,handle:"Constructor",msg:"container id can't be empty"})),!1,h(n,!1);n.root=o}if(a.default.addClass(n.root,"hkplayer hkplayer-"+l.default.device+" hkplayer-nostart "+(n.config.controls?"":"no-controls")),n.root.appendChild(n.controls),n.config.fluid?(n.root.style["max-width"]="100%",n.root.style.width="100%",n.root.style.height="0",n.root.style["padding-top"]=100*n.config.height/n.config.width+"%",n.video.style.position="absolute",n.video.style.top="0",n.video.style.left="0"):(n.root.style.width=n.config.width+"px",n.root.style.height=n.config.height+"px"),n.config.execBeforePluginsCall&&n.config.execBeforePluginsCall.forEach((function(e){e.call(n,n)})),n.config.controlStyle&&"String"===a.default.typeOf(n.config.controlStyle)){var r=n;fetch(r.config.controlStyle,{method:"GET",headers:{Accept:"application/json"}}).then((function(e){e.ok&&e.json().then((function(e){for(var t in e)e.hasOwnProperty(t)&&(r.config[t]=e[t]);r.pluginsCall()}))})).catch((function(e){console.log("Fetch错误:"+e)}))}else n.pluginsCall();n.ev.forEach((function(e){var t=Object.keys(e)[0],o=n[e[t]];o&&n.on(t,o)})),["focus","blur"].forEach((function(e){n.on(e,n["on"+e.charAt(0).toUpperCase()+e.slice(1)])}));var i=n;return n.mousemoveFunc=function(){i.emit("focus"),i.config.closeFocusVideoFocus||i.video.focus()},n.root.addEventListener("mousemove",n.mousemoveFunc),n.playFunc=function(){i.emit("focus"),i.config.closePlayVideoFocus||i.video.focus()},i.once("play",n.playFunc),setTimeout((function(){n.emit("ready")}),0),n.config.keyShortcut&&"on"!==n.config.keyShortcut||["video","controls"].forEach((function(e){i[e].addEventListener("keydown",(function(e){i.onKeydown(e,i)}))})),n.config.videoInit&&a.default.hasClass(n.root,"hkplayer-nostart")&&n.start(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"start",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.config.url,o=this.root,r=this;n&&""!==n||this.emit("urlNull"),this.logParams.playSrc=n,this.canPlayFunc=function(){var e=r.video.play();void 0!==e&&e&&e.then((function(){r.emit("autoplay started")})).catch((function(){r.emit("autoplay was prevented"),t.util.addClass(r.root,"hkplayer-is-autoplay")})),r.off("canplay",r.canPlayFunc)},"String"===a.default.typeOf(n)?this.video.src=n:n.forEach((function(t){e.video.appendChild(a.default.createDom("source","",{src:""+t.src,type:""+(t.type||"")}))})),this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.loadeddataFunc=function(){r.logParams.vt=(new Date).getTime(),r.logParams.pt>r.logParams.vt&&(r.logParams.pt=r.logParams.vt),r.logParams.vd=r.video.duration},this.once("loadeddata",this.loadeddataFunc),this.config.autoplay&&this.on("canplay",this.canPlayFunc),o.insertBefore(this.video,o.firstChild),setTimeout((function(){e.emit("complete")}),1)}},{key:"reload",value:function(){this.video.load(),this.reloadFunc=function(){this.play()},this.once("loadeddata",this.reloadFunc)}},{key:"destroy",value:function(){var e=this,n=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=this,i=this.root.parentNode;for(var a in clearInterval(this.bulletResizeTimer),this._interval)clearInterval(this._interval[a]),this._interval[a]=null;function s(){for(var e in this.emit("destroy"),this.video.removeAttribute("src"),this.video.load(),n&&i.removeChild(this.root),this)delete this[e];this.off("pause",s)}this.ev.forEach((function(t){var n=Object.keys(t)[0],o=e[t[n]];o&&e.off(n,o)})),this.loadeddataFunc&&this.off("loadeddata",this.loadeddataFunc),this.reloadFunc&&this.off("loadeddata",this.reloadFunc),this.replayFunc&&this.off("play",this.replayFunc),this.playFunc&&this.off("play",this.playFunc),["focus","blur"].forEach((function(t){e.off(t,e["on"+t.charAt(0).toUpperCase()+t.slice(1)])})),this.config.keyShortcut&&"on"!==this.config.keyShortcut||["video","controls"].forEach((function(t){e[t]&&e[t].removeEventListener("keydown",(function(e){o.onKeydown(e,o)}))})),this.paused?s.call(this):(this.pause(),this.once("pause",s)),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"replay",value:function(){var e=this,t=this._replay;a.default.removeClass(this.root,"hkplayer-ended"),this.logParams={bc:0,bu_acu_t:0,played:[],pt:(new Date).getTime(),vt:(new Date).getTime(),vd:0},this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.replayFunc=function(){e.logParams.vt=(new Date).getTime(),e.logParams.pt>e.logParams.vt&&(e.logParams.pt=e.logParams.vt),e.logParams.vd=e.video.duration},this.once("play",this.replayFunc),this.logParams.playSrc=this.video.currentSrc,t&&t instanceof Function?t():(this.currentTime=0,this.play())}},{key:"pluginsCall",value:function(){var e=this,n=this;if(t.plugins){var o=this.config.ignores;Object.keys(t.plugins).forEach((function(r){var i=t.plugins[r];o.some((function(e){return r===e}))||(["pc","tablet","mobile"].some((function(e){return e===r}))?r===l.default.device&&setTimeout((function(){i.call(n,n)}),0):i.call(e,e))}))}}},{key:"getPIP",value:function(){var e=this.root.getBoundingClientRect(),t=e.top,n=e.left,o=a.default.createDom("hk-pip-lay","<div></div>",{},"hkplayer-pip-lay");this.root.appendChild(o);var r=a.default.createDom("hk-pip-drag",'<div class="drag-handle"><span>点击按住可拖动视频</span></div>',{tabindex:9},"hkplayer-pip-drag");this.root.appendChild(r);new u.default(".hkplayer",{handle:".drag-handle"});a.default.addClass(this.root,"hkplayer-pip-active"),this.root.style.right=0,this.root.style.bottom="200px",this.root.style.top="",this.root.style.left="",this.config.fluid&&(this.root.style["padding-top"]="");var i=this;["click","touchstart"].forEach((function(e){o.addEventListener(e,(function(e){e.preventDefault(),e.stopPropagation(),i.exitPIP(),i.root.style.top=t+"px",i.root.style.left=n+"px"}))}))}},{key:"exitPIP",value:function(){a.default.removeClass(this.root,"hkplayer-pip-active"),this.root.style.right="",this.root.style.bottom="",this.root.style.top="",this.root.style.left="",this.config.fluid&&(this.root.style["padding-top"]=100*this.config.height/this.config.width+"%")}},{key:"onFocus",value:function(){var e=this;a.default.removeClass(this.root,"hkplayer-inactive"),e.userTimer&&clearTimeout(e.userTimer),e.userTimer=setTimeout((function(){e.emit("blur")}),e.config.inactive)}},{key:"onBlur",value:function(){this.paused||this.ended||a.default.addClass(this.root,"hkplayer-inactive")}},{key:"onPlay",value:function(){a.default.addClass(this.root,"hkplayer-playing"),a.default.removeClass(this.root,"hkplayer-pause")}},{key:"onPause",value:function(){a.default.addClass(this.root,"hkplayer-pause"),this.userTimer&&clearTimeout(this.userTimer),this.emit("focus")}},{key:"onEnded",value:function(){a.default.addClass(this.root,"hkplayer-ended"),a.default.removeClass(this.root,"hkplayer-playing")}},{key:"onSeeking",value:function(){}},{key:"onSeeked",value:function(){this.waitTimer&&clearTimeout(this.waitTimer),a.default.removeClass(this.root,"hkplayer-isloading")}},{key:"onWaiting",value:function(){var e=this;e.waitTimer&&clearTimeout(e.waitTimer),e.waitTimer=setTimeout((function(){a.default.addClass(e.root,"hkplayer-isloading")}),500)}},{key:"onPlaying",value:function(){this.waitTimer&&clearTimeout(this.waitTimer),a.default.removeClass(this.root,"hkplayer-isloading hkplayer-nostart hkplayer-pause hkplayer-ended hkplayer-is-error hkplayer-replay"),a.default.addClass(this.root,"hkplayer-playing")}},{key:"onKeydown",value:function(e,t){var n=e||window.event;if(!n||37!==n.keyCode&&38!==n.keyCode&&39!==n.keyCode&&40!==n.keyCode&&32!==n.keyCode||t.emit("focus"),!n||40!==n.keyCode&&38!==n.keyCode)n&&39===n.keyCode?t.currentTime+10<=t.duration?t.currentTime+=10:t.currentTime=t.duration-1:n&&37===n.keyCode?t.currentTime-10>=0?t.currentTime-=10:t.currentTime=0:n&&32===n.keyCode&&(t.paused?t.play():t.pause());else{if(t.controls){var o=t.controls.querySelector(".hkplayer-slider");o&&(a.default.hasClass(o,"hkplayer-none")&&a.default.removeClass(o,"hkplayer-none"),t.sliderTimer&&clearTimeout(t.sliderTimer),t.sliderTimer=setTimeout((function(){a.default.addClass(o,"hkplayer-none")}),t.config.inactive))}n&&40===n.keyCode?t.volume-.1>=0?t.volume-=.1:t.volume=0:n&&38===n.keyCode&&(t.volume+.1<=1?t.volume+=.1:t.volume=1)}}}],[{key:"install",value:function(e,n){t.plugins||(t.plugins={}),t.plugins[e]=n}}]),t}(i.default);f.util=a.default,f.sniffer=l.default,f.Errors=c.default,t.default=f,e.exports=t.default},"./src/proxy.js":
  /*!**********************!*\
    !*** ./src/proxy.js ***!
    \**********************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=s(n(/*! event-emitter */"./node_modules/event-emitter/index.js")),i=s(n(/*! ./utils/util */"./src/utils/util.js")),a=s(n(/*! ./error */"./src/error.js"));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.logParams={bc:0,bu_acu_t:0,played:[]},this._hasStart=!1,this.videoConfig={controls:!1,autoplay:t.autoplay,playsinline:t.playsinline,"webkit-playsinline":t.playsinline,"x5-playsinline":t.playsinline,"x5-video-player-type":t["x5-video-player-type"],"x5-video-player-fullscreen":t["x5-video-player-fullscreen"],"x5-video-orientation":t["x5-video-orientation"],airplay:t.airplay,"webkit-airplay":t.airplay,tabindex:2,mediaType:t.mediaType||"video"},t.loop&&(this.videoConfig.loop="loop");var n="";if(t.textTrack&&Array.isArray(t.textTrack)&&(navigator.userAgent.indexOf("Chrome")>-1||navigator.userAgent.indexOf("Firefox")>-1)&&(t.textTrack.some((function(e){if(e.src&&e.label&&e.default)return n+='<track src="'+e.src+'" ',e.kind&&(n+='kind="'+e.kind+'" '),n+='label="'+e.label+'" ',e.srclang&&(n+='srclang="'+e.srclang+'" '),n+=(e.default?"default":"")+">",!0})),this.videoConfig.crossorigin="anonymous"),t.textTrackStyle){var o=document.createElement("style");this.textTrackStyle=o,document.head.appendChild(o);var s="";for(var l in t.textTrackStyle)s+=l+": "+t.textTrackStyle[l]+";";var c=t.id?"#"+t.id:t.el.id?"#"+t.el.id:"."+t.el.className;o.sheet.insertRule?o.sheet.insertRule(c+" video::cue { "+s+" }",0):o.sheet.addRule&&o.sheet.addRule(c+" video::cue",s)}this.video=i.default.createDom(this.videoConfig.mediaType,n,this.videoConfig,""),t.autoplay&&(this.video.autoplay=!0,t.autoplayMuted&&(this.video.muted=!0)),this.ev=["play","playing","pause","ended","error","seeking","seeked","timeupdate","waiting","canplay","canplaythrough","durationchange","volumechange","loadeddata"].map((function(e){return t={},n=e,o="on"+e.charAt(0).toUpperCase()+e.slice(1),n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t;var t,n,o})),(0,r.default)(this),this._interval={};var u="0,0",d=this;this.ev.forEach((function(e){d.evItem=Object.keys(e)[0];var t=Object.keys(e)[0];d.video.addEventListener(Object.keys(e)[0],(function(){d.logParams&&("play"===t?d.hasStart=!0:"waiting"===t?(d.logParams.bc++,d.inWaitingStart=(new Date).getTime()):"playing"===t?d.inWaitingStart&&(d.logParams.bu_acu_t+=(new Date).getTime()-d.inWaitingStart,d.inWaitingStart=void 0):"loadeddata"===t?d.logParams.played.push({begin:0,end:-1}):"seeking"===t?d.logParams.played.push({begin:d.video.currentTime,end:-1}):d&&d.logParams&&d.logParams.played&&"timeupdate"===t&&(d.logParams.played.length<1&&d.logParams.played.push({begin:d.video.currentTime,end:-1}),d.logParams.played[d.logParams.played.length-1].end=d.video.currentTime),"error"===t?d.video.error&&d.emit(t,new a.default("other",d.currentTime,d.duration,d.networkState,d.readyState,d.currentSrc,d.src,d.ended,{line:41,msg:d.error,handle:"Constructor"})):d.emit(t,d),d.hasOwnProperty("_interval")&&(["ended","error","timeupdate"].indexOf(t)<0?(clearInterval(d._interval.bufferedChange),i.default.setInterval(d,"bufferedChange",(function(){for(var e=[],t=0,n=d.video.buffered.length;t<n;t++)e.push([d.video.buffered.start(t),d.video.buffered.end(t)]);e.toString()!==u&&(u=e.toString(),d.emit("bufferedChange",e))}),200)):"timeupdate"!==t&&i.default.clearInterval(d,"bufferedChange")))}),!1)}))}return o(e,[{key:"destroy",value:function(){this.textTrackStyle&&this.textTrackStyle.parentNode.removeChild(this.textTrackStyle)}},{key:"play",value:function(){return this.video.play()}},{key:"pause",value:function(){this.video.pause()}},{key:"canPlayType",value:function(e){return this.video.canPlayType(e)}},{key:"getBufferedRange",value:function(){var e=[0,0],t=this.video,n=t.buffered,o=t.currentTime;if(n)for(var r=0,i=n.length;r<i&&(e[0]=n.start(r),e[1]=n.end(r),!(e[0]<=o&&o<=e[1]));r++);return e[0]-o<=0&&o-e[1]<=0?e:[0,0]}},{key:"hasStart",get:function(){return this._hasStart},set:function(e){"boolean"!=typeof e||!0!==e||this._hasStart||(this._hasStart=!0,this.emit("hasstart"))}},{key:"autoplay",set:function(e){this.video.autoplay=e},get:function(){return this.video.autoplay}},{key:"buffered",get:function(){return this.video.buffered}},{key:"crossOrigin",get:function(){return this.video.crossOrigin},set:function(e){this.video.crossOrigin=e}},{key:"currentSrc",get:function(){return this.video.currentSrc}},{key:"currentTime",get:function(){return this.video.currentTime},set:function(e){this.video.currentTime=e}},{key:"defaultMuted",get:function(){return this.video.defaultMuted},set:function(e){this.video.defaultMuted=e}},{key:"duration",get:function(){return this.video.duration}},{key:"ended",get:function(){return this.video.ended}},{key:"error",get:function(){var e=this.video.error;if(!e)return null;var t=[{en:"MEDIA_ERR_ABORTED",cn:"取回过程被用户中止"},{en:"MEDIA_ERR_NETWORK",cn:"当下载时发生错误"},{en:"MEDIA_ERR_DECODE",cn:"当解码时发生错误"},{en:"MEDIA_ERR_SRC_NOT_SUPPORTED",cn:"不支持音频/视频"}];return this.lang?this.lang[t[e.code-1].en]:t[e.code-1].en}},{key:"loop",get:function(){return this.video.loop},set:function(e){this.video.loop=e}},{key:"muted",get:function(){return this.video.muted},set:function(e){this.video.muted=e}},{key:"networkState",get:function(){var e=[{en:"NETWORK_EMPTY",cn:"音频/视频尚未初始化"},{en:"NETWORK_IDLE",cn:"音频/视频是活动的且已选取资源，但并未使用网络"},{en:"NETWORK_LOADING",cn:"浏览器正在下载数据"},{en:"NETWORK_NO_SOURCE",cn:"未找到音频/视频来源"}];return this.lang?this.lang[e[this.video.networkState].en]:e[this.video.networkState].en}},{key:"paused",get:function(){return this.video.paused}},{key:"playbackRate",get:function(){return this.video.playbackRate},set:function(e){this.video.playbackRate=e}},{key:"played",get:function(){return this.video.played}},{key:"preload",get:function(){return this.video.preload},set:function(e){this.video.preload=e}},{key:"readyState",get:function(){var e=[{en:"HAVE_NOTHING",cn:"没有关于音频/视频是否就绪的信息"},{en:"HAVE_METADATA",cn:"关于音频/视频就绪的元数据"},{en:"HAVE_CURRENT_DATA",cn:"关于当前播放位置的数据是可用的，但没有足够的数据来播放下一帧/毫秒"},{en:"HAVE_FUTURE_DATA",cn:"当前及至少下一帧的数据是可用的"},{en:"HAVE_ENOUGH_DATA",cn:"可用数据足以开始播放"}];return this.lang?this.lang[e[this.video.readyState].en]:e[this.video.readyState]}},{key:"seekable",get:function(){return this.video.seekable}},{key:"seeking",get:function(){return this.video.seeking}},{key:"src",get:function(){return this.video.src},set:function(e){var t=this;i.default.hasClass(this.root,"hkplayer-ended")||this.emit("urlchange",JSON.parse(JSON.stringify(t.logParams))),this.logParams={bc:0,bu_acu_t:0,played:[],pt:(new Date).getTime(),vt:(new Date).getTime(),vd:0},this.video.pause(),this.video.src=e,this.logParams.playSrc=e,this.logParams.pt=(new Date).getTime(),this.logParams.vt=this.logParams.pt,this.once("loadeddata",(function e(){t.logParams.vt=(new Date).getTime(),t.logParams.pt>t.logParams.vt&&(t.logParams.pt=t.logParams.vt),t.logParams.vd=t.video.duration,t.off("loadeddata",e)}))}},{key:"volume",get:function(){return this.video.volume},set:function(e){this.video.volume=e}},{key:"fullscreen",get:function(){return i.default.hasClass(this.root,"hkplayer-is-fullscreen")||i.default.hasClass(this.root,"hkplayer-fullscreen-active")}},{key:"bullet",get:function(){return!!i.default.findDom(this.root,"hk-bullet")&&i.default.hasClass(i.default.findDom(this.root,"hk-bullet"),"hkplayer-has-bullet")}},{key:"textTrack",get:function(){return i.default.hasClass(this.root,"hkplayer-is-textTrack")}},{key:"pip",get:function(){return i.default.hasClass(this.root,"hkplayer-pip-active")}}]),e}();t.default=l,e.exports=t.default},"./src/style/index.scss":
  /*!******************************!*\
    !*** ./src/style/index.scss ***!
    \******************************/
  /*! no static exports found */function(e,t,n){var o=n(/*! !../../node_modules/css-loader??ref--5-1!../../node_modules/postcss-loader/lib!../../node_modules/sass-loader/lib/loader.js!./index.scss */"./node_modules/css-loader/index.js?!./node_modules/postcss-loader/lib/index.js!./node_modules/sass-loader/lib/loader.js!./src/style/index.scss");"string"==typeof o&&(o=[[e.i,o,""]]);var r={hmr:!0,transform:void 0,insertInto:void 0};n(/*! ../../node_modules/style-loader/lib/addStyles.js */"./node_modules/style-loader/lib/addStyles.js")(o,r);o.locals&&(e.exports=o.locals)},"./src/utils/animation.js":
  /*!********************************!*\
    !*** ./src/utils/animation.js ***!
    \********************************/
  /*! no static exports found */function(e,t,n){"use strict";!function(){for(var e=0,t=["webkit","moz"],n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t,n){var o=(new Date).getTime(),r=Math.max(0,16-(o-e)),i=window.setTimeout((function(){t(o+r)}),r);return e=o+r,i}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}()},"./src/utils/database.js":
  /*!*******************************!*\
    !*** ./src/utils/database.js ***!
    \*******************************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();var r=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{name:"hkplayer",version:1,db:null,ojstore:{name:"hk-m4a",keypath:"vid"}};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.indexedDB=window.indexedDB||window.webkitindexedDB,this.IDBKeyRange=window.IDBKeyRange||window.webkitIDBKeyRange,this.myDB=t}return o(e,[{key:"openDB",value:function(e){var t=this,n=this,o=this.myDB.version||1,r=n.indexedDB.open(n.myDB.name,o);r.onerror=function(e){},r.onsuccess=function(o){t.myDB.db=o.target.result,e.call(n)},r.onupgradeneeded=function(e){var t=e.target.result;e.target.transaction;t.objectStoreNames.contains(n.myDB.ojstore.name)||t.createObjectStore(n.myDB.ojstore.name,{keyPath:n.myDB.ojstore.keypath})}}},{key:"deletedb",value:function(){this.indexedDB.deleteDatabase(this.myDB.name)}},{key:"closeDB",value:function(){this.myDB.db.close()}},{key:"addData",value:function(e,t){for(var n=this.myDB.db.transaction(e,"readwrite").objectStore(e),o=void 0,r=0;r<t.length;r++)(o=n.add(t[r])).onerror=function(){},o.onsuccess=function(){}}},{key:"putData",value:function(e,t){for(var n=this.myDB.db.transaction(e,"readwrite").objectStore(e),o=void 0,r=0;r<t.length;r++)(o=n.put(t[r])).onerror=function(){},o.onsuccess=function(){}}},{key:"getDataByKey",value:function(e,t,n){var o=this,r=this.myDB.db.transaction(e,"readwrite").objectStore(e).get(t);r.onerror=function(){n.call(o,null)},r.onsuccess=function(e){var t=e.target.result;n.call(o,t)}}},{key:"deleteData",value:function(e,t){this.myDB.db.transaction(e,"readwrite").objectStore(e).delete(t)}},{key:"clearData",value:function(e){this.myDB.db.transaction(e,"readwrite").objectStore(e).clear()}}]),e}();t.default=r,e.exports=t.default},"./src/utils/sniffer.js":
  /*!******************************!*\
    !*** ./src/utils/sniffer.js ***!
    \******************************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o={get device(){return o.os.isPc?"pc":"mobile"},get browser(){var e=navigator.userAgent.toLowerCase(),t={ie:/rv:([\d.]+)\) like gecko/,firfox:/firefox\/([\d.]+)/,chrome:/chrome\/([\d.]+)/,opera:/opera.([\d.]+)/,safari:/version\/([\d.]+).*safari/};return[].concat(Object.keys(t).filter((function(n){return t[n].test(e)})))[0]},get os(){var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,o=/(?:Android)/.test(e),r=/(?:Firefox)/.test(e),i=/(?:iPad|PlayBook)/.test(e)||o&&!/(?:Mobile)/.test(e)||r&&/(?:Tablet)/.test(e),a=/(?:iPhone)/.test(e)&&!i;return{isTablet:i,isPhone:a,isAndroid:o,isPc:!(a||o||n||i),isSymbian:n,isWindowsPhone:t,isFireFox:r}}};t.default=o,e.exports=t.default},"./src/utils/svg.js":
  /*!**************************!*\
    !*** ./src/utils/svg.js ***!
    \**************************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(/*! pasition */"./node_modules/pasition/dist/pasition.js"),a=(o=i)&&o.__esModule?o:{default:o};n(/*! ./animation */"./src/utils/animation.js");var s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.from=t.from,this.to=t.to,this.easing=t.easing||function(e){return e*e},this.duration=t.duration||150,this.curPath="",this.progress=t.progress,this.state=0}return r(e,[{key:"animate",value:function(){var e=this,t=new Date,n=e.duration,o=null,r=e.path2shapes(e.from),i=e.path2shapes(e.to),a=e._preprocessing(r,i);e.state=1;!function r(){var s=new Date-t;if(s>=n||2===e.state)return o=i,e.progress(o,1),window.cancelAnimationFrame(e.tickId),void(e.state=0);var l=e.easing(s/n);o=e._lerp(a[0],a[1],l),e.progress(o,l),e.tickId=window.requestAnimationFrame(r)}()}},{key:"toSVGString",value:function(e){return e.map((function(e){return e.forEach((function(e,t){t?e.splice(0,2,"C"):(e.splice(2,0,"C"),e.unshift("M"))})),e.map((function(e){return e.join(" ")})).join("")})).join("")}},{key:"start",value:function(){this.animate()}},{key:"stop",value:function(){0!==this.state&&(this.state=2),window.cancelAnimationFrame(self.tickId),this.state=0}},{key:"reverse",value:function(){0!==this.state&&this.stop();var e=this.from;this.from=this.to,this.to=e,this.animate()}},{key:"reset",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.from;0!==this.state&&this.stop(),this.from=t,this.to=e,this.animate()}}]),e}();for(var l in a.default)a.default[l]instanceof Function&&!s.prototype[l]&&(s.prototype[l]=a.default[l]);t.default=s,e.exports=t.default},"./src/utils/url.js":
  /*!**************************!*\
    !*** ./src/utils/url.js ***!
    \**************************/
  /*! no static exports found */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getAbsoluteURL=function(e){if(!e.match(/^https?:\/\//)){var t=document.createElement("div");t.innerHTML='<a href="'+e+'">x</a>',e=t.firstChild.href}return e}},"./src/utils/util.js":
  /*!***************************!*\
    !*** ./src/utils/util.js ***!
    \***************************/
  /*! no static exports found */function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var util={createDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",r=document.createElement(e);return r.className=o,r.innerHTML=t,Object.keys(n).forEach((function(t){var o=t,i=n[t];"video"===e||"audio"===e?i&&r.setAttribute(o,i):r.setAttribute(o,i)})),r},hasClass:function(e,t){return e.classList?Array.prototype.some.call(e.classList,(function(e){return e===t})):!!e.className.match(new RegExp("(\\s|^)"+t+"(\\s|$)"))},addClass:function(e,t){e.classList?t.replace(/(^\s+|\s+$)/g,"").split(/\s+/g).forEach((function(t){t&&e.classList.add(t)})):util.hasClass(e,t)||(e.className+=" "+t)},removeClass:function(e,t){e.classList?t.split(/\s+/g).forEach((function(t){e.classList.remove(t)})):util.hasClass(e,t)&&t.split(/\s+/g).forEach((function(t){var n=new RegExp("(\\s|^)"+t+"(\\s|$)");e.className=e.className.replace(n," ")}))},toggleClass:function(e,t){t.split(/\s+/g).forEach((function(t){util.hasClass(e,t)?util.removeClass(e,t):util.addClass(e,t)}))},findDom:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=arguments[1],n=void 0;try{n=e.querySelector(t)}catch(o){t.startsWith("#")&&(n=e.getElementById(t.slice(1)))}return n},padStart:function(e,t,n){for(var o=String(n),r=t>>0,i=Math.ceil(r/o.length),a=[],s=String(e);i--;)a.push(o);return a.join("").substring(0,r-s.length)+s},format:function(e){if(window.isNaN(e))return"";var t=util.padStart(Math.floor(e/3600),2,0),n=util.padStart(Math.floor((e-3600*t)/60),2,0),o=util.padStart(Math.floor(e-3600*t-60*n),2,0);return("00"===t?[n,o]:[t,n,o]).join(":")},event:function(e){if(e.touches){var t=e.touches[0]||e.changedTouches[0];e.clientX=t.clientX||0,e.clientY=t.clientY||0,e.offsetX=t.pageX-t.target.offsetLeft,e.offsetY=t.pageY-t.target.offsetTop}e._target=e.target||e.srcElement},typeOf:function(e){return Object.prototype.toString.call(e).match(/([^\s.*]+)(?=]$)/g)[0]},deepCopy:function(e,t){if("Object"===util.typeOf(t)&&"Object"===util.typeOf(e))return Object.keys(t).forEach((function(n){"Object"!==util.typeOf(t[n])||t[n]instanceof Node?"Array"===util.typeOf(t[n])?e[n]="Array"===util.typeOf(e[n])?e[n].concat(t[n]):t[n]:e[n]=t[n]:e[n]?util.deepCopy(e[n],t[n]):e[n]=t[n]})),e},getBgImage:function(e){var t=(e.currentStyle||window.getComputedStyle(e,null)).backgroundImage;if(!t||"none"===t)return"";var n=document.createElement("a");return n.href=t.replace(/url\("|"\)/g,""),n.href},copyDom:function(e){if(e&&1===e.nodeType){var t=document.createElement(e.tagName);return Array.prototype.forEach.call(e.attributes,(function(e){t.setAttribute(e.name,e.value)})),e.innerHTML&&(t.innerHTML=e.innerHTML),t}return""},setInterval:function(e,t,n,o){e._interval[t]||(e._interval[t]=setInterval(n.bind(e),o))},clearInterval:function(e,t){clearInterval(e._interval[t]),e._interval[t]=null},createImgBtn:function(e,t,n,o){var r=util.createDom("hk-"+e,"",{},"hkplayer-"+e+"-img");if(r.style.backgroundImage='url("'+t+'")',n&&o){var i=void 0,a=void 0,s=void 0;["px","rem","em","pt","dp","vw","vh","vm","%"].every((function(e){return!(n.indexOf(e)>-1&&o.indexOf(e)>-1)||(i=parseFloat(n.slice(0,n.indexOf(e)).trim()),a=parseFloat(o.slice(0,o.indexOf(e)).trim()),s=e,!1)})),r.style.width=""+i+s,r.style.height=""+a+s,r.style.backgroundSize=""+i+s+" "+a+s,r.style.margin="start"===e?"-"+a/2+s+" auto auto -"+i/2+s:"auto 5px auto 5px"}return r},Hex2RGBA:function(hex,alpha){var rgb=[];if(/^\#[0-9A-F]{3}$/i.test(hex)){var sixHex="#";hex.replace(/[0-9A-F]/gi,(function(e){sixHex+=e+e})),hex=sixHex}return/^#[0-9A-F]{6}$/i.test(hex)?(hex.replace(/[0-9A-F]{2}/gi,(function(kw){rgb.push(eval("0x"+kw))})),"rgba("+rgb.join(",")+", "+alpha+")"):"rgba(255, 255, 255, 0.1)"}};exports.default=util,module.exports=exports.default},0:
  /*!****************************!*\
    !*** multi ./src/index.js ***!
    \****************************/
  /*! no static exports found */function(e,t,n){e.exports=n(/*! ./src/index.js */"./src/index.js")}});
  //# sourceMappingURL=index.js.map