diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index f5648b9..296cf77 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -1 +1 @@ -
\ No newline at end of file +
\ No newline at end of file diff --git a/src/main/resources/static/js/app.10e3f536.js b/src/main/resources/static/js/app.10e3f536.js new file mode 100644 index 0000000..780a030 --- /dev/null +++ b/src/main/resources/static/js/app.10e3f536.js @@ -0,0 +1 @@ +(function(e){function t(t){for(var i,r,l=t[0],s=t[1],c=t[2],u=0,f=[];u=0===n}))}function f(e){var t=Ie.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function p(e,t){if(1===t.nodeType&&Z.hasData(e)){var n,i,r,a=Z._data(e),o=Z._data(t,a),l=a.events;if(l)for(n in delete o.handle,o.events={},l)for(i=0,r=l[n].length;i").appendTo(q.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(at=q.body.appendChild(at||Z.extend(q.createElement("iframe"),{frameBorder:0,width:0,height:0})),ot&&at.createElement||(ot=(at.contentWindow||at.contentDocument).document,ot.write(""),ot.close()),t=ot.body.appendChild(ot.createElement(e)),n=rt(t,"display"),q.body.removeChild(at)),mt[e]=n,n}function k(e,t,n,i){var r;if(Z.isArray(t))Z.each(t,(function(t,r){n||zt.test(e)?i(e,r):k(e+"["+("object"==Object(Ue["a"])(r)?t:"")+"]",r,n,i)}));else if(n||"object"!==Z.type(t))i(e,t);else for(r in t)k(e+"["+r+"]",t[r],n,i)}function M(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r,a,o=t.toLowerCase().split(ne),l=0,s=o.length;if(Z.isFunction(n))for(;l)[^>]*$|#([\w\-]*)$)/,ae=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,oe=/^[\],:{}\s]*$/,le=/(?:^|:|,)(?:\s*\[)+/g,se=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ce=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ue=/^-ms-/,fe=/-([\da-z])/gi,de=function(e,t){return(t+"").toUpperCase()},pe=function e(){q.addEventListener?(q.removeEventListener("DOMContentLoaded",e,!1),Z.ready()):"complete"===q.readyState&&(q.detachEvent("onreadystatechange",e),Z.ready())},he={};Z.fn=Z.prototype={constructor:Z,init:function(e,n,i){var r,a,o;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:re.exec(e),r&&(r[1]||!n)){if(r[1])return n=n instanceof Z?n[0]:n,o=n&&n.nodeType?n.ownerDocument||n:q,e=Z.parseHTML(r[1],o,!0),ae.test(r[1])&&Z.isPlainObject(n)&&this.attr.call(e,n,!0),Z.merge(this,e);if(a=q.getElementById(r[2]),a&&a.parentNode){if(a.id!==r[2])return i.find(e);this.length=1,this[0]=a}return this.context=q,this.selector=e,this}return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e)}return Z.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=Z.merge(this.constructor(),e);return i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return Z.each(this,e,t)},ready:function(e){return Z.ready.promise().done(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(Z.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},Z.fn.init.prototype=Z.fn,Z.extend=Z.fn.extend=function(){var e,n,i,r,a,o,l=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),"object"!=Object(Ue["a"])(l)&&!Z.isFunction(l)&&(l={}),c===s&&(l=this,--s);s0||(P.resolveWith(q,[Z]),Z.fn.trigger&&Z(q).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):he[G.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!K.call(e,"constructor")&&!K.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(I){return!1}var n;for(n in e);return n===t||K.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var i;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t,t=0),t=t||q,(i=ae.exec(e))?[t.createElement(i[1])]:(i=Z.buildFragment([e],t,n?null:[]),Z.merge([],(i.cacheable?Z.clone(i.fragment):i.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=Z.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):oe.test(t.replace(se,"@").replace(ce,"]").replace(le,""))?new Function("return "+t)():void Z.error("Invalid JSON: "+t)):null},parseXML:function(n){var i,r;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch(W){i=t}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&te.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ue,"ms-").replace(fe,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,i){var r,a=0,o=e.length,l=o===t||Z.isFunction(e);if(i){if(l){for(r in e)if(!1===n.apply(e[r],i))break}else for(;a0&&e[0]&&e[s-1]||0===s||Z.isArray(e));if(c)for(;l-1)c.splice(n,1),a&&(n<=l&&l--,n<=s&&s--)})),this},has:function(e){return Z.inArray(e,c)>-1},empty:function(){return c=[],this},disable:function(){return c=u=n=t,this},disabled:function(){return!c},lock:function(){return u=t,n||d.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],c&&(!r||u)&&(a?u.push(t):f(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred((function(n){Z.each(t,(function(t,i){var a=i[0],o=e[t];r[i[1]](Z.isFunction(o)?function(){var e=o.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a+"With"](this===r?n:this,[e])}:n[a])})),e=null})).promise()},promise:function(e){return null!=e?Z.extend(e,i):i}},r={};return i.pipe=i.then,Z.each(t,(function(e,a){var o=a[2],l=a[3];i[a[1]]=o.add,l&&o.add((function(){n=l}),t[1^e][2].disable,t[2][2].lock),r[a[0]]=o.fire,r[a[0]+"With"]=o.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,a=Y.call(arguments),o=a.length,l=1!==o||e&&Z.isFunction(e.promise)?o:0,s=1===l?e:Z.Deferred(),c=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?Y.call(arguments):r,i===t?s.notifyWith(n,i):--l||s.resolveWith(n,i)}};if(o>1)for(t=new Array(o),n=new Array(o),i=new Array(o);r
a",n=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0],!n||!i||!n.length)return{};r=q.createElement("select"),a=r.appendChild(q.createElement("option")),o=d.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.5/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:"on"===o.value,optSelected:a.selected,getSetAttribute:"t"!==d.className,enctype:!!q.createElement("form").enctype,html5Clone:"<:nav>"!==q.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===q.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},o.checked=!0,t.noCloneChecked=o.cloneNode(!0).checked,r.disabled=!0,t.optDisabled=!a.disabled;try{delete d.test}catch(Q){t.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",f=function(){t.noCloneEvent=!1}),d.cloneNode(!0).fireEvent("onclick"),d.detachEvent("onclick",f)),o=q.createElement("input"),o.value="t",o.setAttribute("type","radio"),t.radioValue="t"===o.value,o.setAttribute("checked","checked"),o.setAttribute("name","t"),d.appendChild(o),l=q.createDocumentFragment(),l.appendChild(d.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=o.checked,l.removeChild(o),l.appendChild(d),d.attachEvent)for(c in{submit:!0,change:!0,focusin:!0})s="on"+c,u=s in d,u||(d.setAttribute(s,"return;"),u="function"==typeof d[s]),t[c+"Bubbles"]=u;return Z((function(){var n,i,r,a,o="padding:0;margin:0;border:0;display:block;overflow:hidden;",l=q.getElementsByTagName("body")[0];l&&(n=q.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(n,l.firstChild),i=q.createElement("div"),n.appendChild(i),i.innerHTML="
t
",r=i.getElementsByTagName("td"),r[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===r[0].offsetHeight,r[0].style.display="",r[1].style.display="none",t.reliableHiddenOffsets=u&&0===r[0].offsetHeight,i.innerHTML="",i.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===i.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,a=q.createElement("div"),a.style.cssText=i.style.cssText=o,a.style.marginRight=a.style.width="0",i.style.width="1px",i.appendChild(a),t.reliableMarginRight=!parseFloat((e.getComputedStyle(a,null)||{}).marginRight)),"undefined"!=typeof i.style.zoom&&(i.innerHTML="",i.style.cssText=o+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===i.offsetWidth,i.style.display="block",i.style.overflow="visible",i.innerHTML="
",i.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==i.offsetWidth,n.style.zoom=1),l.removeChild(n),n=i=r=a=null)})),l.removeChild(d),n=i=r=a=o=l=d=null,t}();var ye=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ve=/([A-Z])/g;Z.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(Z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando],!!e&&!a(e)},data:function(e,n,i,r){if(Z.acceptData(e)){var a,o,l=Z.expando,s="string"==typeof n,c=e.nodeType,u=c?Z.cache:e,f=c?e[l]:e[l]&&l;if(f&&u[f]&&(r||u[f].data)||!s||i!==t)return f||(c?e[l]=f=Z.deletedIds.pop()||Z.guid++:f=l),u[f]||(u[f]={},c||(u[f].toJSON=Z.noop)),"object"!=Object(Ue["a"])(n)&&"function"!=typeof n||(r?u[f]=Z.extend(u[f],n):u[f].data=Z.extend(u[f].data,n)),a=u[f],r||(a.data||(a.data={}),a=a.data),i!==t&&(a[Z.camelCase(n)]=i),s?(o=a[n],null==o&&(o=a[Z.camelCase(n)])):o=a,o}},removeData:function(e,t,n){if(Z.acceptData(e)){var i,r,o,l=e.nodeType,s=l?Z.cache:e,c=l?e[Z.expando]:Z.expando;if(s[c]){if(t&&(i=n?s[c]:s[c].data,i)){Z.isArray(t)||(t in i?t=[t]:(t=Z.camelCase(t),t=t in i?[t]:t.split(" ")));for(r=0,o=t.length;r1,null,!1))},removeData:function(e){return this.each((function(){Z.removeData(this,e)}))}}),Z.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Z._data(e,t),n&&(!i||Z.isArray(n)?i=Z._data(e,t,Z.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),i=n.length,r=n.shift(),a=Z._queueHooks(e,t),o=function(){Z.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,o,a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z._data(e,n)||Z._data(e,n,{empty:Z.Callbacks("once memory").add((function(){Z.removeData(e,t+"queue",!0),Z.removeData(e,n,!0)}))})}}),Z.fn.extend({queue:function(e,n){var i=2;return"string"!=typeof e&&(n=e,e="fx",i--),arguments.length1)},removeAttr:function(e){return this.each((function(){Z.removeAttr(this,e)}))},prop:function(e,t){return Z.access(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Z.propFix[e]||e,this.each((function(){try{this[e]=t,delete this[e]}catch(I){}}))},addClass:function(e){var t,n,i,r,a,o,l;if(Z.isFunction(e))return this.each((function(t){Z(this).addClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e)for(t=e.split(ne),n=0,i=this.length;n=0)i=i.replace(" "+n[a]+" "," ");r.className=e?Z.trim(i):""}return this},toggleClass:function(e,t){var n=Object(Ue["a"])(e),i="boolean"==typeof t;return Z.isFunction(e)?this.each((function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n){var r,a=0,o=Z(this),l=t,s=e.split(ne);while(r=s[a++])l=i?l:!o.hasClass(r),o[l?"addClass":"removeClass"](r)}else"undefined"!==n&&"boolean"!==n||(this.className&&Z._data(this,"__className__",this.className),this.className=this.className||!1===e?"":Z._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n=0)return!0;return!1},val:function(e){var n,i,r,a=this[0];return arguments.length?(r=Z.isFunction(e),this.each((function(i){var a,o=Z(this);1===this.nodeType&&(a=r?e.call(this,i,o.val()):e,null==a?a="":"number"==typeof a?a+="":Z.isArray(a)&&(a=Z.map(a,(function(e){return null==e?"":e+""}))),n=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,a,"value")!==t||(this.value=a))}))):a?(n=Z.valHooks[a.type]||Z.valHooks[a.nodeName.toLowerCase()],n&&"get"in n&&(i=n.get(a,"value"))!==t?i:(i=a.value,"string"==typeof i?i.replace(ze,""):null==i?"":i)):void 0}}),Z.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,a="select-one"===e.type||r<0,o=a?null:[],l=a?r+1:i.length,s=r<0?l:a?r:0;s=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,i,r){var a,o,l,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return r&&Z.isFunction(Z.fn[n])?Z(e)[n](i):"undefined"==typeof e.getAttribute?Z.prop(e,n,i):(l=1!==s||!Z.isXMLDoc(e),l&&(n=n.toLowerCase(),o=Z.attrHooks[n]||(Ce.test(n)?be:ge)),i!==t?null===i?void Z.removeAttr(e,n):o&&"set"in o&&l&&(a=o.set(e,i,n))!==t?a:(e.setAttribute(n,i+""),i):o&&"get"in o&&l&&null!==(a=o.get(e,n))?a:(a=e.getAttribute(n),null===a?t:a))},removeAttr:function(e,t){var n,i,r,a,o=0;if(t&&1===e.nodeType)for(i=t.split(ne);o=0}})}));var He=/^(?:textarea|input|select)$/i,Le=/^([^\.]*|)(?:\.(.+)|)$/,Fe=/(?:^|\s)hover(\.\S+|)\b/,Se=/^key/,Ne=/^(?:mouse|contextmenu)|click/,je=/^(?:focusinfocus|focusoutblur)$/,Ae=function(e){return Z.event.special.hover?e:e.replace(Fe,"mouseenter$1 mouseleave$1")};Z.event={add:function(e,n,i,r,a){var o,l,s,c,u,f,d,p,h,m,y;if(3!==e.nodeType&&8!==e.nodeType&&n&&i&&(o=Z._data(e))){for(i.handler&&(h=i,i=h.handler,a=h.selector),i.guid||(i.guid=Z.guid++),s=o.events,s||(o.events=s={}),l=o.handle,l||(o.handle=l=function(e){return"undefined"==typeof Z||e&&Z.event.triggered===e.type?t:Z.event.dispatch.apply(l.elem,arguments)},l.elem=e),n=Z.trim(Ae(n)).split(" "),c=0;c=0&&(y=y.slice(0,-1),l=!0),y.indexOf(".")>=0&&(v=y.split("."),y=v.shift(),v.sort()),(!r||Z.event.customEvent[y])&&!Z.event.global[y])return;if(n="object"==Object(Ue["a"])(n)?n[Z.expando]?n:new Z.Event(y,n):new Z.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=l,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f=y.indexOf(":")<0?"on"+y:"",!r){for(s in o=Z.cache,o)o[s].events&&o[s].events[y]&&Z.event.trigger(n,i,o[s].handle.elem,!0);return}if(n.result=t,n.target||(n.target=r),i=null!=i?Z.makeArray(i):[],i.unshift(n),d=Z.event.special[y]||{},d.trigger&&!1===d.trigger.apply(r,i))return;if(h=[[r,d.bindType||y]],!a&&!d.noBubble&&!Z.isWindow(r)){for(m=d.delegateType||y,c=je.test(m+y)?r:r.parentNode,u=r;c;c=c.parentNode)h.push([c,m]),u=c;u===(r.ownerDocument||q)&&h.push([u.defaultView||u.parentWindow||e,m])}for(s=0;s=0:Z.find(f,this,null,[a]).length),l[f]&&c.push(u);c.length&&v.push({elem:a,matches:c})}for(d.length>p&&v.push({elem:this,matches:d.slice(p)}),i=0;i0?this.on(t,null,e,n):this.trigger(t)},Se.test(t)&&(Z.event.fixHooks[t]=Z.event.keyHooks),Ne.test(t)&&(Z.event.fixHooks[t]=Z.event.mouseHooks)})),function(e,t){function n(e,t,n,i){n=n||[],t=t||N;var r,a,o,l,s=t.nodeType;if(!e||"string"!=typeof e)return n;if(1!==s&&9!==s)return[];if(o=z(t),!o&&!i&&(r=ie.exec(e)))if(l=r[1]){if(9===s){if(a=t.getElementById(l),!a||!a.parentNode)return n;if(a.id===l)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(l))&&T(t,a)&&a.id===l)return n.push(a),n}else{if(r[2])return O.apply(n,_.call(t.getElementsByTagName(e),0)),n;if((l=r[3])&&pe&&t.getElementsByClassName)return O.apply(n,_.call(t.getElementsByClassName(l),0)),n}return y(e.replace(Q,"$1"),t,n,i,o)}function i(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function r(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function a(e){return I((function(t){return t=+t,I((function(n,i){var r,a=e([],n.length,t),o=a.length;while(o--)n[r=a[o]]&&(n[r]=!(i[r]=n[r]))}))}))}function o(e,t,n){if(e===t)return n;var i=e.nextSibling;while(i){if(i===t)return-1;i=i.nextSibling}return 1}function s(e,t){var i,r,a,o,l,s,c,u=W[F][e+" "];if(u)return t?0:u.slice(0);l=e,s=[],c=x.preFilter;while(l){for(o in i&&!(r=ee.exec(l))||(r&&(l=l.slice(r[0].length)||l),s.push(a=[])),i=!1,(r=te.exec(l))&&(a.push(i=new S(r.shift())),l=l.slice(i.length),i.type=r[0].replace(Q," ")),x.filter)(r=se[o].exec(l))&&(!c[o]||(r=c[o](r)))&&(a.push(i=new S(r.shift())),l=l.slice(i.length),i.type=o,i.matches=r);if(!i)break}return t?l.length:l?n.error(e):W(e,s).slice(0)}function c(e,t,n){var i=t.dir,r=n&&"parentNode"===t.dir,a=B++;return t.first?function(t,n,a){while(t=t[i])if(r||1===t.nodeType)return e(t,n,a)}:function(t,n,o){if(o){while(t=t[i])if((r||1===t.nodeType)&&e(t,n,o))return t}else{var l,s=A+" "+a+" ",c=s+g;while(t=t[i])if(r||1===t.nodeType){if((l=t[F])===c)return t.sizset;if("string"==typeof l&&0===l.indexOf(s)){if(t.sizset)return t}else{if(t[F]=c,e(t,n,o))return t.sizset=!0,t;t.sizset=!1}}}}}function u(e){return e.length>1?function(t,n,i){var r=e.length;while(r--)if(!e[r](t,n,i))return!1;return!0}:e[0]}function f(e,t,n,i,r){for(var a,o=[],l=0,s=e.length,c=null!=t;l-1&&(a[c]=!(o[c]=d))}}else b=f(b===o?b.splice(y,b.length):b),r?r(null,o,b,s):O.apply(o,b)}))}function p(e){for(var t,n,i,r=e.length,a=x.relative[e[0].type],o=a||x.relative[" "],l=a?1:0,s=c((function(e){return e===t}),o,!0),f=c((function(e){return V.call(t,e)>-1}),o,!0),h=[function(e,n,i){return!a&&(i||n!==E)||((t=n).nodeType?s(e,n,i):f(e,n,i))}];l1&&u(h),l>1&&e.slice(0,l-1).join("").replace(Q,"$1"),n,l0,r=e.length>0,a=function a(o,l,s,c,u){var d,p,h,m=[],y=0,v="0",b=o&&[],w=null!=u,z=E,T=o||r&&x.find.TAG("*",u&&l.parentNode||l),k=A+=null==z?1:Math.E;for(w&&(E=l!==N&&l,g=a.el);null!=(d=T[v]);v++){if(r&&d){for(p=0;h=e[p];p++)if(h(d,l,s)){c.push(d);break}w&&(A=k,g=++a.el)}i&&((d=!h&&d)&&y--,o&&b.push(d))}if(y+=v,i&&v!==y){for(p=0;h=t[p];p++)h(b,m,l,s);if(o){if(y>0)while(v--)!b[v]&&!m[v]&&(m[v]=D.call(c));m=f(m)}O.apply(c,m),w&&!o&&m.length>0&&y+t.length>1&&n.uniqueSort(c)}return w&&(A=k,E=z),b};return a.el=0,i?I(a):a}function m(e,t,i){for(var r=0,a=t.length;r2&&"ID"===(l=o[0]).type&&9===t.nodeType&&!r&&x.relative[o[1].type]){if(t=x.find.ID(l.matches[0].replace(le,""),t,r)[0],!t)return n;e=e.slice(o.shift().length)}for(a=se.POS.test(e)?-1:o.length-1;a>=0;a--){if(l=o[a],x.relative[c=l.type])break;if((u=x.find[c])&&(i=u(l.matches[0].replace(le,""),re.test(o[0].type)&&t.parentNode||t,r))){if(o.splice(a,1),e=i.length&&o.join(""),!e)return O.apply(n,_.call(i,0)),n;break}}}return k(e,f)(i,t,r,n,re.test(e)),n}function v(){}var g,b,x,w,z,T,k,M,C,E,H=!0,L="undefined",F=("sizcache"+Math.random()).replace(".",""),S=String,N=e.document,j=N.documentElement,A=0,B=0,D=[].pop,O=[].push,_=[].slice,V=[].indexOf||function(e){for(var t=0,n=this.length;tx.cacheLength&&delete e[t.shift()],e[n+" "]=i}),e)},q=P(),W=P(),$=P(),R="[\\x20\\t\\r\\n\\f]",X="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",U=X.replace("w","w#"),Y="([*^$|!~]?=)",J="\\["+R+"*("+X+")"+R+"*(?:"+Y+R+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+U+")|)|)"+R+"*\\]",G=":("+X+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+J+")|[^:]|\\\\.)*|.*))\\)|)",K=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)",Q=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),ee=new RegExp("^"+R+"*,"+R+"*"),te=new RegExp("^"+R+"*([\\x20\\t\\r\\n\\f>+~])"+R+"*"),ne=new RegExp(G),ie=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,re=/[\x20\t\r\n\f]*[+~]/,ae=/h\d/i,oe=/input|select|textarea|button/i,le=/\\(?!\\)/g,se={ID:new RegExp("^#("+X+")"),CLASS:new RegExp("^\\.("+X+")"),NAME:new RegExp("^\\[name=['\"]?("+X+")['\"]?\\]"),TAG:new RegExp("^("+X.replace("w","w*")+")"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),POS:new RegExp(K,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),needsContext:new RegExp("^"+R+"*[>+~]|"+K,"i")},ce=function(e){var t=N.createElement("div");try{return e(t)}catch(g){return!1}finally{t=null}},ue=ce((function(e){return e.appendChild(N.createComment("")),!e.getElementsByTagName("*").length})),fe=ce((function(e){return e.innerHTML="",e.firstChild&&Object(Ue["a"])(e.firstChild.getAttribute)!==L&&"#"===e.firstChild.getAttribute("href")})),de=ce((function(e){e.innerHTML="";var t=Object(Ue["a"])(e.lastChild.getAttribute("multiple"));return"boolean"!==t&&"string"!==t})),pe=ce((function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)})),he=ce((function(e){e.id=F+0,e.innerHTML="
",j.insertBefore(e,j.firstChild);var t=N.getElementsByName&&N.getElementsByName(F).length===2+N.getElementsByName(F+0).length;return b=!N.getElementById(F),j.removeChild(e),t}));try{_.call(j.childNodes,0)[0].nodeType}catch(l){_=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},w=n.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i];i++)n+=w(t);return n},z=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},T=n.contains=j.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!!(i&&1===i.nodeType&&n.contains&&n.contains(i))}:j.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},n.attr=function(e,t){var n,i=z(e);return i||(t=t.toLowerCase()),(n=x.attrHandle[t])?n(e):i||de?e.getAttribute(t):(n=e.getAttributeNode(t),n?"boolean"==typeof e[t]?e[t]?t:null:n.specified?n.value:null:null)},x=n.selectors={cacheLength:50,createPseudo:I,match:se,attrHandle:fe?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:b?function(e,t,n){if(Object(Ue["a"])(t.getElementById)!==L&&!n){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}}:function(e,n,i){if(Object(Ue["a"])(n.getElementById)!==L&&!i){var r=n.getElementById(e);return r?r.id===e||Object(Ue["a"])(r.getAttributeNode)!==L&&r.getAttributeNode("id").value===e?[r]:t:[]}},TAG:ue?function(e,t){if(Object(Ue["a"])(t.getElementsByTagName)!==L)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if("*"===e){for(var i,r=[],a=0;i=n[a];a++)1===i.nodeType&&r.push(i);return r}return n},NAME:he&&function(e,t){if(Object(Ue["a"])(t.getElementsByName)!==L)return t.getElementsByName(name)},CLASS:pe&&function(e,t,n){if(Object(Ue["a"])(t.getElementsByClassName)!==L&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(le,""),e[3]=(e[4]||e[5]||"").replace(le,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||n.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&n.error(e[0]),e},PSEUDO:function(e){var t,n;return se.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(ne.test(t)&&(n=s(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t),e.slice(0,3))}},filter:{ID:b?function(e){return e=e.replace(le,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(le,""),function(t){var n=Object(Ue["a"])(t.getAttributeNode)!==L&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(le,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=q[F][e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&q(e,(function(e){return t.test(e.className||Object(Ue["a"])(e.getAttribute)!==L&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r,a){var o=n.attr(r,e);return null==o?"!="===t:!t||(o+="","="===t?o===i:"!="===t?o!==i:"^="===t?i&&0===o.indexOf(i):"*="===t?i&&o.indexOf(i)>-1:"$="===t?i&&o.substr(o.length-i.length)===i:"~="===t?(" "+o+" ").indexOf(i)>-1:"|="===t&&(o===i||o.substr(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i){return"nth"===e?function(e){var t,r,a=e.parentNode;if(1===n&&0===i)return!0;if(a)for(r=0,t=a.firstChild;t;t=t.nextSibling)if(1===t.nodeType&&(r++,e===t))break;return r-=i,r===n||r%n===0&&r/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(1===n.nodeType)return!1;if("first"===e)return!0;n=t;case"last":while(n=n.nextSibling)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(e,t){var i,r=x.pseudos[e]||x.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return r[F]?r(t):r.length>1?(i=[e,e,"",t],x.setFilters.hasOwnProperty(e.toLowerCase())?I((function(e,n){var i,a=r(e,t),o=a.length;while(o--)i=V.call(e,a[o]),e[i]=!(n[i]=a[o])})):function(e){return r(e,0,i)}):r}},pseudos:{not:I((function(e){var t=[],n=[],i=k(e.replace(Q,"$1"));return i[F]?I((function(e,t,n,r){var a,o=i(e,null,r,[]),l=e.length;while(l--)(a=o[l])&&(e[l]=!(t[l]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),!n.pop()}})),has:I((function(e){return function(t){return n(e,t).length>0}})),contains:I((function(e){return function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}})),enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!x.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},header:function(e){return ae.test(e.nodeName)},text:function(e){var t,n;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(n=e.getAttribute("type"))||n.toLowerCase()===t)},radio:i("radio"),checkbox:i("checkbox"),file:i("file"),password:i("password"),image:i("image"),submit:r("submit"),reset:r("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return oe.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:a((function(){return[0]})),last:a((function(e,t){return[t-1]})),eq:a((function(e,t,n){return[n<0?n+t:n]})),even:a((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:a((function(e,t,n){for(var i=n<0?n+t:n;++i",e.querySelectorAll("[selected]").length||a.push("\\["+R+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||a.push(":checked")})),ce((function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&a.push("[*^$]="+R+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||a.push(":enabled",":disabled")})),a=new RegExp(a.join("|")),y=function(e,n,r,o,l){if(!o&&!l&&!a.test(e)){var c,u,f=!0,d=F,p=n,h=9===n.nodeType&&e;if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){c=s(e),(f=n.getAttribute("id"))?d=f.replace(i,"\\$&"):n.setAttribute("id",d),d="[id='"+d+"'] ",u=c.length;while(u--)c[u]=d+c[u].join("");p=re.test(e)&&n.parentNode||n,h=c.join(",")}if(h)try{return O.apply(r,_.call(p.querySelectorAll(h),0)),r}catch(Z){}finally{f||n.removeAttribute("id")}}return t(e,n,r,o,l)},l&&(ce((function(t){e=l.call(t,"div");try{l.call(t,"[test!='']:sizzle"),o.push("!=",G)}catch(i){}})),o=new RegExp(o.join("|")),n.matchesSelector=function(t,i){if(i=i.replace(r,"='$1']"),!z(t)&&!o.test(i)&&!a.test(i))try{var s=l.call(t,i);if(s||e||t.document&&11!==t.document.nodeType)return s}catch(M){}return n(i,null,null,[t]).length>0})}(),x.pseudos.nth=x.pseudos.eq,x.filters=v.prototype=x.pseudos,x.setFilters=new v,n.attr=Z.attr,Z.find=n,Z.expr=n.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=n.uniqueSort,Z.text=n.getText,Z.isXMLDoc=n.isXML,Z.contains=n.contains}(e);var Be=/Until$/,De=/^(?:parents|prev(?:Until|All))/,Oe=/^.[^:#\[\.,]*$/,_e=Z.expr.match.needsContext,Ve={children:!0,contents:!0,next:!0,prev:!0};Z.fn.extend({find:function(e){var t,n,i,r,a,o,l=this;if("string"!=typeof e)return Z(e).filter((function(){for(t=0,n=l.length;t0)for(r=i;r=0:Z.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,i=0,r=this.length,a=[],o=_e.test(e)||"string"!=typeof e?Z(e,t||this.context):0;i-1:Z.find.matchesSelector(n,e)){a.push(n);break}n=n.parentNode}}return a=a.length>1?Z.unique(a):a,this.pushStack(a,"closest",e)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?Z(e,t):Z.makeArray(e&&e.nodeType?[e]:e),i=Z.merge(this.get(),n);return this.pushStack(s(n[0])||s(i[0])?i:Z.unique(i))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.fn.andSelf=Z.fn.addBack,Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},(function(e,t){Z.fn[e]=function(n,i){var r=Z.map(this,t,n);return Be.test(e)||(i=n),i&&"string"==typeof i&&(r=Z.filter(i,r)),r=this.length>1&&!Ve[e]?Z.unique(r):r,this.length>1&&De.test(e)&&(r=r.reverse()),this.pushStack(r,e,Y.call(arguments).join(","))}})),Z.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?Z.find.matchesSelector(t[0],e)?[t[0]]:[]:Z.find.matches(e,t)},dir:function(e,n,i){var r=[],a=e[n];while(a&&9!==a.nodeType&&(i===t||1!==a.nodeType||!Z(a).is(i)))1===a.nodeType&&r.push(a),a=a[n];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var Ie="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",Pe=/ jQuery\d+="(?:null|\d+)"/g,qe=/^\s+/,We=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,$e=/<([\w:]+)/,Re=/]","i"),Ke=/^(?:checkbox|radio)$/,Qe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ze=/\/(java|ecma)script/i,et=/^\s*\s*$/g,tt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},nt=f(q),it=nt.appendChild(q.createElement("div"));tt.optgroup=tt.option,tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td,Z.support.htmlSerialize||(tt._default=[1,"X
","
"]),Z.fn.extend({text:function(e){return Z.access(this,(function(e){return e===t?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||q).createTextNode(e))}),null,e,arguments.length)},wrapAll:function(e){if(Z.isFunction(e))return this.each((function(t){Z(this).wrapAll(e.call(this,t))}));if(this[0]){var t=Z(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return Z.isFunction(e)?this.each((function(t){Z(this).wrapInner(e.call(this,t))})):this.each((function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=Z.isFunction(e);return this.each((function(n){Z(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)}))},before:function(){if(!s(this[0]))return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(e,this),"before",this.selector)}},after:function(){if(!s(this[0]))return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!Z.filter(e,[n]).length||(!t&&1===n.nodeType&&(Z.cleanData(n.getElementsByTagName("*")),Z.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&Z.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return Z.clone(this,e,t)}))},html:function(e){return Z.access(this,(function(e){var n=this[0]||{},i=0,r=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(Pe,""):t;if("string"==typeof e&&!Ye.test(e)&&(Z.support.htmlSerialize||!Ge.test(e))&&(Z.support.leadingWhitespace||!qe.test(e))&&!tt[($e.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(We,"<$1>");try{for(;i1&&"string"==typeof c&&Qe.test(c))return this.each((function(){Z(this).domManip(e,n,i)}));if(Z.isFunction(c))return this.each((function(r){var a=Z(this);e[0]=c.call(this,r,n?a.html():t),a.domManip(e,n,i)}));if(this[0]){if(r=Z.buildFragment(e,this,u),o=r.fragment,a=o.firstChild,1===o.childNodes.length&&(o=a),a)for(n=n&&Z.nodeName(a,"tr"),l=r.cacheable||f-1;s0?this.clone(!0):this).get(),Z(o[r])[t](i),a=a.concat(i);return this.pushStack(a,e,o.selector)}})),Z.extend({clone:function(e,t,n){var i,r,a,o;if(Z.support.html5Clone||Z.isXMLDoc(e)||!Ge.test("<"+e.nodeName+">")?o=e.cloneNode(!0):(it.innerHTML=e.outerHTML,it.removeChild(o=it.firstChild)),(!Z.support.noCloneEvent||!Z.support.noCloneChecked)&&(1===e.nodeType||11===e.nodeType)&&!Z.isXMLDoc(e))for(h(e,o),i=m(e),r=m(o),a=0;i[a];++a)r[a]&&h(i[a],r[a]);if(t&&(p(e,o),n))for(i=m(e),r=m(o),a=0;i[a];++a)p(i[a],r[a]);return i=r=null,o},clean:function(e,t,n,i){var r,a,o,l,s,c,u,d,p,h,m,v=t===q&&nt,g=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=q),r=0;null!=(o=e[r]);r++)if("number"==typeof o&&(o+=""),o){if("string"==typeof o)if(Xe.test(o)){v=v||f(t),u=t.createElement("div"),v.appendChild(u),o=o.replace(We,"<$1>"),l=($e.exec(o)||["",""])[1].toLowerCase(),s=tt[l]||tt._default,c=s[0],u.innerHTML=s[1]+o+s[2];while(c--)u=u.lastChild;if(!Z.support.tbody)for(d=Re.test(o),p="table"!==l||d?""!==s[1]||d?[]:u.childNodes:u.firstChild&&u.firstChild.childNodes,a=p.length-1;a>=0;--a)Z.nodeName(p[a],"tbody")&&!p[a].childNodes.length&&p[a].parentNode.removeChild(p[a]);!Z.support.leadingWhitespace&&qe.test(o)&&u.insertBefore(t.createTextNode(qe.exec(o)[0]),u.firstChild),o=u.childNodes,u.parentNode.removeChild(u)}else o=t.createTextNode(o);o.nodeType?g.push(o):Z.merge(g,o)}if(u&&(o=u=v=null),!Z.support.appendChecked)for(r=0;null!=(o=g[r]);r++)Z.nodeName(o,"input")?y(o):"undefined"!=typeof o.getElementsByTagName&&Z.grep(o.getElementsByTagName("input"),y);if(n)for(h=function(e){if(!e.type||Ze.test(e.type))return i?i.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},r=0;null!=(o=g[r]);r++)Z.nodeName(o,"script")&&h(o)||(n.appendChild(o),"undefined"!=typeof o.getElementsByTagName&&(m=Z.grep(Z.merge([],o.getElementsByTagName("script")),h),g.splice.apply(g,[r+1,0].concat(m)),r+=m.length));return g},cleanData:function(e,t){for(var n,i,r,a,o=0,l=Z.expando,s=Z.cache,c=Z.support.deleteExpando,u=Z.event.special;null!=(r=e[o]);o++)if((t||Z.acceptData(r))&&(i=r[l],n=i&&s[i],n)){if(n.events)for(a in n.events)u[a]?Z.event.remove(r,a):Z.removeEvent(r,a,n.handle);s[i]&&(delete s[i],c?delete r[l]:r.removeAttribute?r.removeAttribute(l):r[l]=null,Z.deletedIds.push(i))}}}),function(){var e,t;Z.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=Z.uaMatch($.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),Z.browser=t,Z.sub=function(){function e(t,n){return new e.fn.init(t,n)}Z.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){return i&&i instanceof Z&&!(i instanceof e)&&(i=e(i)),Z.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;var t=e(q);return e}}();var rt,at,ot,lt=/alpha\([^)]*\)/i,st=/opacity=([^)]*)/,ct=/^(top|right|bottom|left)$/,ut=/^(none|table(?!-c[ea]).+)/,ft=/^margin/,dt=new RegExp("^("+ee+")(.*)$","i"),pt=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),ht=new RegExp("^([-+])=("+ee+")","i"),mt={BODY:"block"},yt={position:"absolute",visibility:"hidden",display:"block"},vt={letterSpacing:0,fontWeight:400},gt=["Top","Right","Bottom","Left"],bt=["Webkit","O","Moz","ms"],xt=Z.fn.toggle;Z.fn.extend({css:function(e,n){return Z.access(this,(function(e,n,i){return i!==t?Z.style(e,n,i):Z.css(e,n)}),e,n,arguments.length>1)},show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e,t){var n="boolean"==typeof e;return Z.isFunction(e)&&Z.isFunction(t)?xt.apply(this,arguments):this.each((function(){(n?e:g(this))?Z(this).show():Z(this).hide()}))}}),Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=rt(e,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Z.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,l,s=Z.camelCase(n),c=e.style;if(n=Z.cssProps[s]||(Z.cssProps[s]=v(c,s)),l=Z.cssHooks[n]||Z.cssHooks[s],i===t)return l&&"get"in l&&(a=l.get(e,!1,r))!==t?a:c[n];if(o=Object(Ue["a"])(i),"string"===o&&(a=ht.exec(i))&&(i=(a[1]+1)*a[2]+parseFloat(Z.css(e,n)),o="number"),!(null==i||"number"===o&&isNaN(i))&&("number"===o&&!Z.cssNumber[s]&&(i+="px"),!l||!("set"in l)||(i=l.set(e,i,r))!==t))try{c[n]=i}catch(Y){}}},css:function(e,n,i,r){var a,o,l,s=Z.camelCase(n);return n=Z.cssProps[s]||(Z.cssProps[s]=v(e.style,s)),l=Z.cssHooks[n]||Z.cssHooks[s],l&&"get"in l&&(a=l.get(e,!0,r)),a===t&&(a=rt(e,n)),"normal"===a&&n in vt&&(a=vt[n]),i||r!==t?(o=parseFloat(a),i||Z.isNumeric(o)?o||0:a):a},swap:function(e,t,n){var i,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=a[r];return i}}),e.getComputedStyle?rt=function(t,n){var i,r,a,o,l=e.getComputedStyle(t,null),s=t.style;return l&&(i=l.getPropertyValue(n)||l[n],""===i&&!Z.contains(t.ownerDocument,t)&&(i=Z.style(t,n)),pt.test(i)&&ft.test(n)&&(r=s.width,a=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=l.width,s.width=r,s.minWidth=a,s.maxWidth=o)),i}:q.documentElement.currentStyle&&(rt=function(e,t){var n,i,r=e.currentStyle&&e.currentStyle[t],a=e.style;return null==r&&a&&a[t]&&(r=a[t]),pt.test(r)&&!ct.test(t)&&(n=a.left,i=e.runtimeStyle&&e.runtimeStyle.left,i&&(e.runtimeStyle.left=e.currentStyle.left),a.left="fontSize"===t?"1em":r,r=a.pixelLeft+"px",a.left=n,i&&(e.runtimeStyle.left=i)),""===r?"auto":r}),Z.each(["height","width"],(function(e,t){Z.cssHooks[t]={get:function(e,n,i){if(n)return 0===e.offsetWidth&&ut.test(rt(e,"display"))?Z.swap(e,yt,(function(){return z(e,t,i)})):z(e,t,i)},set:function(e,n,i){return x(e,n,i?w(e,t,i,Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing")):0)}}})),Z.support.opacity||(Z.cssHooks.opacity={get:function(e,t){return st.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=i&&i.filter||n.filter||"";n.zoom=1,t>=1&&""===Z.trim(a.replace(lt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=lt.test(a)?a.replace(lt,r):a+" "+r)}}),Z((function(){Z.support.reliableMarginRight||(Z.cssHooks.marginRight={get:function(e,t){return Z.swap(e,{display:"inline-block"},(function(){if(t)return rt(e,"marginRight")}))}}),!Z.support.pixelPosition&&Z.fn.position&&Z.each(["top","left"],(function(e,t){Z.cssHooks[t]={get:function(e,n){if(n){var i=rt(e,t);return pt.test(i)?Z(e).position()[t]+"px":i}}}}))})),Z.expr&&Z.expr.filters&&(Z.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!Z.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||rt(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)}),Z.each({margin:"",padding:"",border:"Width"},(function(e,t){Z.cssHooks[e+t]={expand:function(n){var i,r="string"==typeof n?n.split(" "):[n],a={};for(i=0;i<4;i++)a[e+gt[i]+t]=r[i]||r[i-2]||r[0];return a}},ft.test(e)||(Z.cssHooks[e+t].set=x)}));var wt=/%20/g,zt=/\[\]$/,Tt=/\r?\n/g,kt=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Mt=/^(?:select|textarea)/i;Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?Z.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Mt.test(this.nodeName)||kt.test(this.type))})).map((function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,(function(e,n){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:n.replace(Tt,"\r\n")}})).get()}}),Z.param=function(e,n){var i,r=[],a=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,(function(){a(this.name,this.value)}));else for(i in e)k(i,e[i],n,a);return r.join("&").replace(wt,"+")};var Ct,Et,Ht=/#.*$/,Lt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Ft=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,St=/^(?:GET|HEAD)$/,Nt=/^\/\//,jt=/\?/,At=/)<[^<]*)*<\/script>/gi,Bt=/([?&])_=[^&]*/,Dt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Ot=Z.fn.load,_t={},Vt={},It=["*/"]+["*"];try{Et=W.href}catch(nn){Et=q.createElement("a"),Et.href="",Et=Et.href}Ct=Dt.exec(Et.toLowerCase())||[],Z.fn.load=function(e,n,i){if("string"!=typeof e&&Ot)return Ot.apply(this,arguments);if(!this.length)return this;var r,a,o,l=this,s=e.indexOf(" ");return s>=0&&(r=e.slice(s,e.length),e=e.slice(0,s)),Z.isFunction(n)?(i=n,n=t):n&&"object"==Object(Ue["a"])(n)&&(a="POST"),Z.ajax({url:e,type:a,dataType:"html",data:n,complete:function(e,t){i&&l.each(i,o||[e.responseText,t,e])}}).done((function(e){o=arguments,l.html(r?Z("
").append(e.replace(At,"")).find(r):e)})),this},Z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){Z.fn[t]=function(e){return this.on(t,e)}})),Z.each(["get","post"],(function(e,n){Z[n]=function(e,i,r,a){return Z.isFunction(i)&&(a=a||r,r=i,i=t),Z.ajax({type:n,url:e,data:i,success:r,dataType:a})}})),Z.extend({getScript:function(e,n){return Z.get(e,t,n,"script")},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?E(e,Z.ajaxSettings):(t=e,e=Z.ajaxSettings),E(e,t),e},ajaxSettings:{url:Et,isLocal:Ft.test(Ct[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":It},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:M(_t),ajaxTransport:M(Vt),ajax:function(e,n){function i(e,n,i,o){var c,f,g,b,w,T=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,a=o||"",z.readyState=e>0?4:0,i&&(b=H(d,z,i)),e>=200&&e<300||304===e?(d.ifModified&&(w=z.getResponseHeader("Last-Modified"),w&&(Z.lastModified[r]=w),w=z.getResponseHeader("Etag"),w&&(Z.etag[r]=w)),304===e?(T="notmodified",c=!0):(c=L(d,b),T=c.state,f=c.data,g=c.error,c=!g)):(g=T,T&&!e||(T="error",e<0&&(e=0))),z.status=e,z.statusText=(n||T)+"",c?m.resolveWith(p,[f,T,z]):m.rejectWith(p,[z,T,g]),z.statusCode(v),v=t,u&&h.trigger("ajax"+(c?"Success":"Error"),[z,d,c?f:g]),y.fireWith(p,[z,T]),u&&(h.trigger("ajaxComplete",[z,d]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==Object(Ue["a"])(e)&&(n=e,e=t),n=n||{};var r,a,o,l,s,c,u,f,d=Z.ajaxSetup({},n),p=d.context||d,h=p!==d&&(p.nodeType||p instanceof Z)?Z(p):Z.event,m=Z.Deferred(),y=Z.Callbacks("once memory"),v=d.statusCode||{},g={},b={},x=0,w="canceled",z={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=b[n]=b[n]||e,g[e]=t}return this},getAllResponseHeaders:function(){return 2===x?a:null},getResponseHeader:function(e){var n;if(2===x){if(!o){o={};while(n=Lt.exec(a))o[n[1].toLowerCase()]=n[2]}n=o[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return x||(d.mimeType=e),this},abort:function(e){return e=e||w,l&&l.abort(e),i(0,e),this}};if(m.promise(z),z.success=z.done,z.error=z.fail,z.complete=y.add,z.statusCode=function(e){var t;if(e)if(x<2)for(t in e)v[t]=[v[t],e[t]];else t=e[z.status],z.always(t);return this},d.url=((e||d.url)+"").replace(Ht,"").replace(Nt,Ct[1]+"//"),d.dataTypes=Z.trim(d.dataType||"*").toLowerCase().split(ne),null==d.crossDomain&&(c=Dt.exec(d.url.toLowerCase()),d.crossDomain=!(!c||c[1]===Ct[1]&&c[2]===Ct[2]&&(c[3]||("http:"===c[1]?80:443))==(Ct[3]||("http:"===Ct[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Z.param(d.data,d.traditional)),C(_t,d,n,z),2===x)return z;if(u=d.global,d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),u&&0===Z.active++&&Z.event.trigger("ajaxStart"),!d.hasContent&&(d.data&&(d.url+=(jt.test(d.url)?"&":"?")+d.data,delete d.data),r=d.url,!1===d.cache)){var T=Z.now(),k=d.url.replace(Bt,"$1_="+T);d.url=k+(k===d.url?(jt.test(d.url)?"&":"?")+"_="+T:"")}for(f in(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&z.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(r=r||d.url,Z.lastModified[r]&&z.setRequestHeader("If-Modified-Since",Z.lastModified[r]),Z.etag[r]&&z.setRequestHeader("If-None-Match",Z.etag[r])),z.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]),d.headers)z.setRequestHeader(f,d.headers[f]);if(!d.beforeSend||!1!==d.beforeSend.call(p,z,d)&&2!==x){for(f in w="abort",{success:1,error:1,complete:1})z[f](d[f]);if(l=C(Vt,d,n,z),l){z.readyState=1,u&&h.trigger("ajaxSend",[z,d]),d.async&&d.timeout>0&&(s=setTimeout((function(){z.abort("timeout")}),d.timeout));try{x=1,l.send(g,i)}catch(fe){if(!(x<2))throw fe;i(-1,fe)}}else i(-1,"No Transport");return z}return z.abort()},active:0,lastModified:{},etag:{}});var Pt=[],qt=/\?/,Wt=/(=)\?(?=&|$)|\?\?/,$t=Z.now();Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||Z.expando+"_"+$t++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",(function(n,i,r){var a,o,l,s=n.data,c=n.url,u=!1!==n.jsonp,f=u&&Wt.test(c),d=u&&!f&&"string"==typeof s&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&Wt.test(s);if("jsonp"===n.dataTypes[0]||f||d)return a=n.jsonpCallback=Z.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,o=e[a],f?n.url=c.replace(Wt,"$1"+a):d?n.data=s.replace(Wt,"$1"+a):u&&(n.url+=(qt.test(c)?"&":"?")+n.jsonp+"="+a),n.converters["script json"]=function(){return l||Z.error(a+" was not called"),l[0]},n.dataTypes[0]="json",e[a]=function(){l=arguments},r.always((function(){e[a]=o,n[a]&&(n.jsonpCallback=i.jsonpCallback,Pt.push(a)),l&&Z.isFunction(o)&&o(l[0]),l=o=t})),"script"})),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),Z.ajaxTransport("script",(function(e){if(e.crossDomain){var n,i=q.head||q.getElementsByTagName("head")[0]||q.documentElement;return{send:function(r,a){n=q.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=t,r||a(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var Rt,Xt=!!e.ActiveXObject&&function(){for(var e in Rt)Rt[e](0,1)},Ut=0;Z.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&F()||S()}:F,function(e){Z.extend(Z.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(Z.ajaxSettings.xhr()),Z.support.ajax&&Z.ajaxTransport((function(n){var i;if(!n.crossDomain||Z.support.cors)return{send:function(r,a){var o,l,s=n.xhr();if(n.username?s.open(n.type,n.url,n.async,n.username,n.password):s.open(n.type,n.url,n.async),n.xhrFields)for(l in n.xhrFields)s[l]=n.xhrFields[l];n.mimeType&&s.overrideMimeType&&s.overrideMimeType(n.mimeType),!n.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(l in r)s.setRequestHeader(l,r[l])}catch(U){}s.send(n.hasContent&&n.data||null),i=function(e,r){var l,c,u,f,d;try{if(i&&(r||4===s.readyState))if(i=t,o&&(s.onreadystatechange=Z.noop,Xt&&delete Rt[o]),r)4!==s.readyState&&s.abort();else{l=s.status,u=s.getAllResponseHeaders(),f={},d=s.responseXML,d&&d.documentElement&&(f.xml=d);try{f.text=s.responseText}catch(K){}try{c=s.statusText}catch(K){c=""}l||!n.isLocal||n.crossDomain?1223===l&&(l=204):l=f.text?200:404}}catch(Q){r||a(-1,Q)}f&&a(l,c,f,u)},n.async?4===s.readyState?setTimeout(i,0):(o=++Ut,Xt&&(Rt||(Rt={},Z(e).unload(Xt)),Rt[o]=i),s.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}));var Yt,Jt,Gt=/^(?:toggle|show|hide)$/,Kt=new RegExp("^(?:([-+])=|)("+ee+")([a-z%]*)$","i"),Qt=/queueHooks$/,Zt=[D],en={"*":[function(e,t){var n,i,r=this.createTween(e,t),a=Kt.exec(t),o=r.cur(),l=+o||0,s=1,c=20;if(a){if(n=+a[2],i=a[3]||(Z.cssNumber[e]?"":"px"),"px"!==i&&l){l=Z.css(r.elem,e,!0)||n||1;do{s=s||".5",l/=s,Z.style(r.elem,e,l+i)}while(s!==(s=r.cur()/o)&&1!==s&&--c)}r.unit=i,r.start=l,r.end=a[1]?l+(a[1]+1)*n:n}return r}]};Z.Animation=Z.extend(A,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;i-1,f={},d={};u?(d=o.position(),r=d.top,a=d.left):(r=parseFloat(s)||0,a=parseFloat(c)||0),Z.isFunction(t)&&(t=t.call(e,n,l)),null!=t.top&&(f.top=t.top-l.top+r),null!=t.left&&(f.left=t.left-l.left+a),"using"in t?t.using.call(e,f):o.css(f)}},Z.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),i=tn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(Z.css(e,"marginTop"))||0,n.left-=parseFloat(Z.css(e,"marginLeft"))||0,i.top+=parseFloat(Z.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(Z.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent||q.body;while(e&&!tn.test(e.nodeName)&&"static"===Z.css(e,"position"))e=e.offsetParent;return e||q.body}))}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,n){var i=/Y/.test(n);Z.fn[e]=function(r){return Z.access(this,(function(e,r,a){var o=V(e);if(a===t)return o?n in o?o[n]:o.document.documentElement[r]:e[r];o?o.scrollTo(i?Z(o).scrollLeft():a,i?a:Z(o).scrollTop()):e[r]=a}),e,r,arguments.length,null)}})),Z.each({Height:"height",Width:"width"},(function(e,n){Z.each({padding:"inner"+e,content:n,"":"outer"+e},(function(i,r){Z.fn[r]=function(r,a){var o=arguments.length&&(i||"boolean"!=typeof r),l=i||(!0===r||!0===a?"margin":"border");return Z.access(this,(function(n,i,r){var a;return Z.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(a=n.documentElement,Math.max(n.body["scroll"+e],a["scroll"+e],n.body["offset"+e],a["offset"+e],a["client"+e])):r===t?Z.css(n,i,r,l):Z.style(n,i,r,l)}),n,o?r:t,o,null)}}))})),e.jQuery=e.$=Z,"function"==typeof define&&n("3c35")&&n("3c35").jQuery&&define("jquery",[],(function(){return Z}))})(window),function(e,t){var i,r,a=e.layui&&layui.define,o={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,i=n;i>0;i--)if("interactive"===t[i].readyState){e=t[i].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,n){var i=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return i[i.getPropertyValue?"getPropertyValue":"getAttribute"](n)},link:function(t,n,i){if(l.path){var r=document.getElementsByTagName("head")[0],a=document.createElement("link");"string"===typeof n&&(i=n);var s=(i||t).replace(/\.|\//g,""),c="layuicss-"+s,u=0;a.rel="stylesheet",a.href=l.path+t,a.id=c,document.getElementById(c)||r.appendChild(a),"function"===typeof n&&function t(){if(++u>80)return e.console&&console.error("layer.css: Invalid");1989===parseInt(o.getStyle(document.getElementById(c),"width"))?n():setTimeout(t,100)}()}}},l={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:o.getPath,config:function(e,t){return e=e||{},l.cache=o.config=i.extend({},o.config,e),l.path=o.config.path||l.path,"string"===typeof e.extend&&(e.extend=[e.extend]),o.config.path&&l.ready(),e.extend?(a?layui.addcss("modules/layer/"+e.extend):o.link("theme/"+e.extend),this):this},ready:function(e){return this},alert:function(e,t,n){var r="function"===typeof t;return r&&(n=t),l.open(i.extend({content:e,yes:n},r?{}:t))},confirm:function(e,t,n,r){var a="function"===typeof t;return a&&(r=n,n=t),l.open(i.extend({content:e,btn:o.btn,yes:n,btn2:r},a?{}:t))},msg:function(e,n,r){var a="function"===typeof n,s=o.config.skin,u=(s?s+" "+s+"-msg":"")||"layui-layer-msg",f=c.anim.length-1;return a&&(r=n),l.open(i.extend({content:e,time:3e3,shade:!1,skin:u,title:!1,closeBtn:!1,btn:!1,resize:!1,end:r},a&&!o.config.skin?{skin:u+" layui-layer-hui",anim:f}:function(){return n=n||{},(-1===n.icon||n.icon===t&&!o.config.skin)&&(n.skin=u+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return l.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return l.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++l.index,t.config=i.extend({},t.config,o.config,e),document.body?t.creat():setTimeout((function(){t.creat()}),30)};s.pt=s.prototype;var c=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];c.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:c[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,r=n.index,a=n.config,l=a.zIndex+r,s="object"===Object(Ue["a"])(a.title),u=a.maxmin&&(1===a.type||2===a.type),f=a.title?'
'+(s?a.title[0]:a.title)+"
":"";return a.zIndex=l,t([a.shade?'
':"",'
'+(e&&2!=a.type?"":f)+'
'+(0==a.type&&-1!==a.icon?'':"")+(1==a.type&&e?"":a.content||"")+'
'+function(){var e=u?'':"";return a.closeBtn&&(e+=''),e}()+""+(a.btn?function(){var e="";"string"===typeof a.btn&&(a.btn=[a.btn]);for(var t=0,n=a.btn.length;t'+a.btn[t]+"";return'
'+e+"
"}():"")+(a.resize?'':"")+"
"],f,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,n=e.index,a=t.content,s="object"===Object(Ue["a"])(a),u=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"===typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==l.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:o.btn[0],l.closeAll("dialog");break;case 2:a=t.content=s?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,-1===t.icon&&t.icon,l.closeAll("loading");break;case 4:s||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"===Object(Ue["a"])(t.tips)?t.tips:[t.tips,!0],t.tipsMore||l.closeAll("tips");break}if(e.vessel(s,(function(r,l,f){u.append(r[0]),s?function(){2==t.type||4==t.type?function(){i("body").append(r[1])}():function(){a.parents("."+c[0])[0]||(a.data("display",a.css("display")).show().addClass("layui-layer-wrap").wrap(r[1]),i("#"+c[0]+n).find("."+c[5]).before(l))}()}():u.append(r[1]),i(".layui-layer-move")[0]||u.append(o.moveElem=f),e.layero=i("#"+c[0]+n),t.scrollbar||c.html.css("overflow","hidden").attr("layer-full",n)})).auto(n),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==l.ie&&e.layero.find("iframe").attr("src",a[0]),4==t.type?e.tips():e.offset(),t.fixed&&r.on("resize",(function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(n),4==t.type&&e.tips()})),t.time<=0||setTimeout((function(){l.close(e.index)}),t.time),e.move().callback(),c.anim[t.anim]){var f="layer-anim "+c.anim[t.anim];e.layero.addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){i(this).removeClass(f)}))}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,n=t.config,a=i("#"+c[0]+e);""===n.area[0]&&n.maxWidth>0&&(l.ie&&l.ie<8&&n.btn&&a.width(a.innerWidth()),a.outerWidth()>n.maxWidth&&a.width(n.maxWidth));var o=[a.innerWidth(),a.innerHeight()],s=a.find(c[1]).outerHeight()||0,u=a.find("."+c[6]).outerHeight()||0,f=function(e){e=a.find(e),e.height(o[1]-s-u-2*(0|parseFloat(e.css("padding-top"))))};switch(n.type){case 2:f("iframe");break;default:""===n.area[1]?n.maxHeight>0&&a.outerHeight()>n.maxHeight?(o[1]=n.maxHeight,f("."+c[5])):n.fixed&&o[1]>=r.height()&&(o[1]=r.height(),f("."+c[5])):f("."+c[5]);break}return t},s.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerWidth(),n.outerHeight()],a="object"===Object(Ue["a"])(t.offset);e.offsetTop=(r.height()-i[1])/2,e.offsetLeft=(r.width()-i[0])/2,a?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=r.width()-i[0]:"b"===t.offset?e.offsetTop=r.height()-i[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=r.height()-i[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=r.width()-i[0]):"rb"===t.offset?(e.offsetTop=r.height()-i[1],e.offsetLeft=r.width()-i[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?r.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?r.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=r.scrollTop(),e.offsetLeft+=r.scrollLeft()),n.attr("minLeft")&&(e.offsetTop=r.height()-(n.find(c[1]).outerHeight()||0),e.offsetLeft=n.css("left")),n.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,n=e.layero,a=[n.outerWidth(),n.outerHeight()],o=i(t.follow);o[0]||(o=i("body"));var l={width:o.outerWidth(),height:o.outerHeight(),top:o.offset().top,left:o.offset().left},s=n.find(".layui-layer-TipsG"),u=t.tips[0];t.tips[1]||s.remove(),l.autoLeft=function(){l.left+a[0]-r.width()>0?(l.tipLeft=l.left+l.width-a[0],s.css({right:12,left:"auto"})):l.tipLeft=l.left},l.where=[function(){l.autoLeft(),l.tipTop=l.top-a[1]-10,s.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){l.tipLeft=l.left+l.width+10,l.tipTop=l.top,s.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){l.autoLeft(),l.tipTop=l.top+l.height+10,s.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){l.tipLeft=l.left-a[0]-10,l.tipTop=l.top,s.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],l.where[u-1](),1===u?l.top-(r.scrollTop()+a[1]+16)<0&&l.where[2]():2===u?r.width()-(l.left+l.width+a[0]+16)>0||l.where[3]():3===u?l.top-r.scrollTop()+l.height+a[1]+16-r.height()>0&&l.where[0]():4===u&&a[0]+16-l.left>0&&l.where[1](),n.find("."+c[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),n.css({left:l.tipLeft-(t.fixed?r.scrollLeft():0),top:l.tipTop-(t.fixed?r.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,n=i(document),a=e.layero,s=a.find(t.move),c=a.find(".layui-layer-resize"),u={};return t.move&&s.css("cursor","move"),s.on("mousedown",(function(e){e.preventDefault(),t.move&&(u.moveStart=!0,u.offset=[e.clientX-parseFloat(a.css("left")),e.clientY-parseFloat(a.css("top"))],o.moveElem.css("cursor","move").show())})),c.on("mousedown",(function(e){e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],u.area=[a.outerWidth(),a.outerHeight()],o.moveElem.css("cursor","se-resize").show()})),n.on("mousemove",(function(n){if(u.moveStart){var i=n.clientX-u.offset[0],o=n.clientY-u.offset[1],s="fixed"===a.css("position");if(n.preventDefault(),u.stX=s?0:r.scrollLeft(),u.stY=s?0:r.scrollTop(),!t.moveOut){var c=r.width()-a.outerWidth()+u.stX,f=r.height()-a.outerHeight()+u.stY;ic&&(i=c),of&&(o=f)}a.css({left:i,top:o})}if(t.resize&&u.resizeStart){i=n.clientX-u.offset[0],o=n.clientY-u.offset[1];n.preventDefault(),l.style(e.index,{width:u.area[0]+i,height:u.area[1]+o}),u.isResize=!0,t.resizing&&t.resizing(a)}})).on("mouseup",(function(e){u.moveStart&&(delete u.moveStart,o.moveElem.hide(),t.moveEnd&&t.moveEnd(a)),u.resizeStart&&(delete u.resizeStart,o.moveElem.hide())})),e},s.pt.callback=function(){var e=this,t=e.layero,n=e.config;function r(){var i=n.cancel&&n.cancel(e.index,t);!1===i||l.close(e.index)}e.openLayer(),n.success&&(2==n.type?t.find("iframe").on("load",(function(){n.success(t,e.index)})):n.success(t,e.index)),6==l.ie&&e.IE6(t),t.find("."+c[6]).children("a").on("click",(function(){var r=i(this).index();if(0===r)n.yes?n.yes(e.index,t):n["btn1"]?n["btn1"](e.index,t):l.close(e.index);else{var a=n["btn"+(r+1)]&&n["btn"+(r+1)](e.index,t);!1===a||l.close(e.index)}})),t.find("."+c[7]).on("click",r),n.shadeClose&&i("#layui-layer-shade"+e.index).on("click",(function(){l.close(e.index)})),t.find(".layui-layer-min").on("click",(function(){var i=n.min&&n.min(t);!1===i||l.min(e.index,n)})),t.find(".layui-layer-max").on("click",(function(){i(this).hasClass("layui-layer-maxmin")?(l.restore(e.index),n.restore&&n.restore(t)):(l.full(e.index,n),setTimeout((function(){n.full&&n.full(t)}),100))})),n.end&&(o.end[e.index]=n.end)},o.reselect=function(){i.each(i("select"),(function(e,t){var n=i(this);n.parents("."+c[0])[0]||1==n.attr("layer")&&i("."+c[0]).length<1&&n.removeAttr("layer").show(),n=null}))},s.pt.IE6=function(e){i("select").each((function(e,t){var n=i(this);n.parents("."+c[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null}))},s.pt.openLayer=function(){var e=this;l.zIndex=e.config.zIndex,l.setTop=function(e){var t=function(){l.zIndex++,e.css("z-index",l.zIndex+1)};return l.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),l.zIndex}},o.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},o.rescollbar=function(e){c.html.attr("layer-full")==e&&(c.html[0].style.removeProperty?c.html[0].style.removeProperty("overflow"):c.html[0].style.removeAttribute("overflow"),c.html.removeAttr("layer-full"))},e.layer=l,l.getChildFrame=function(e,t){return t=t||i("."+c[4]).attr("times"),i("#"+c[0]+t).find("iframe").contents().find(e)},l.getFrameIndex=function(e){return i("#"+e).parents("."+c[4]).attr("times")},l.iframeAuto=function(e){if(e){var t=l.getChildFrame("html",e).outerHeight(),n=i("#"+c[0]+e),r=n.find(c[1]).outerHeight()||0,a=n.find("."+c[6]).outerHeight()||0;n.css({height:t+r+a}),n.find("iframe").css({height:t})}},l.iframeSrc=function(e,t){i("#"+c[0]+e).find("iframe").attr("src",t)},l.style=function(e,t,n){var r=i("#"+c[0]+e),a=r.find(".layui-layer-content"),l=r.attr("type"),s=r.find(c[1]).outerHeight()||0,u=r.find("."+c[6]).outerHeight()||0;r.attr("minLeft");l!==o.type[3]&&l!==o.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-s-u<=64&&(t.height=64+s+u)),r.css(t),u=r.find("."+c[6]).outerHeight(),l===o.type[2]?r.find("iframe").css({height:parseFloat(t.height)-s-u}):a.css({height:parseFloat(t.height)-s-u-parseFloat(a.css("padding-top"))-parseFloat(a.css("padding-bottom"))}))},l.min=function(e,t){var n=i("#"+c[0]+e),a=n.find(c[1]).outerHeight()||0,s=n.attr("minLeft")||181*o.minIndex+"px",u=n.css("position");o.record(n),o.minLeft[0]&&(s=o.minLeft[0],o.minLeft.shift()),n.attr("position",u),l.style(e,{width:180,height:a,left:s,top:r.height()-a,position:"fixed",overflow:"hidden"},!0),n.find(".layui-layer-min").hide(),"page"===n.attr("type")&&n.find(c[4]).hide(),o.rescollbar(e),n.attr("minLeft")||o.minIndex++,n.attr("minLeft",s)},l.restore=function(e){var t=i("#"+c[0]+e),n=t.attr("area").split(",");t.attr("type");l.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(c[4]).show(),o.rescollbar(e)},l.full=function(e){var t,n=i("#"+c[0]+e);o.record(n),c.html.attr("layer-full")||c.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout((function(){var t="fixed"===n.css("position");l.style(e,{top:t?0:r.scrollTop(),left:t?0:r.scrollLeft(),width:r.width(),height:r.height()},!0),n.find(".layui-layer-min").hide()}),100)},l.title=function(e,t){var n=i("#"+c[0]+(t||l.index)).find(c[1]);n.html(e)},l.close=function(e){var t=i("#"+c[0]+e),n=t.attr("type"),r="layer-anim-close";if(t[0]){var a="layui-layer-wrap",s=function(){if(n===o.type[1]&&"object"===t.attr("conType")){t.children(":not(."+c[5]+")").remove();for(var r=t.find("."+a),l=0;l<2;l++)r.unwrap();r.css("display",r.data("display")).removeClass(a)}else{if(n===o.type[2])try{var s=i("#"+c[4]+e)[0];s.contentWindow.document.write(""),s.contentWindow.close(),t.find("."+c[5])[0].removeChild(s)}catch(u){}t[0].innerHTML="",t.remove()}"function"===typeof o.end[e]&&o.end[e](),delete o.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+r),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==l.ie&&o.reselect(),o.rescollbar(e),t.attr("minLeft")&&(o.minIndex--,o.minLeft.push(t.attr("minLeft"))),l.ie&&l.ie<10||!t.data("isOutAnim")?s():setTimeout((function(){s()}),200)}},l.closeAll=function(e){i.each(i("."+c[0]),(function(){var t=i(this),n=e?t.attr("type")===e:1;n&&l.close(t.attr("times")),n=null}))};var u=l.cache||{},f=function(e){return u.skin?" "+u.skin+" "+u.skin+"-"+e:""};l.prompt=function(e,t){var n="";if(e=e||{},"function"===typeof e&&(t=e),e.area){var a=e.area;n='style="width: '+a[0]+"; height: "+a[1]+';"',delete e.area}var o,s=2==e.formType?'":function(){return''}(),c=e.success;return delete e.success,l.open(i.extend({type:1,btn:["确定","取消"],content:s,skin:"layui-layer-prompt"+f("prompt"),maxWidth:r.width(),success:function(e){o=e.find(".layui-layer-input"),o.focus(),"function"===typeof c&&c(e)},resize:!1,yes:function(n){var i=o.val();""===i?o.focus():i.length>(e.maxlength||500)?l.tips("最多输入"+(e.maxlength||500)+"个字数",o,{tips:1}):t&&t(i,n,o)}},e))},l.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",r=e.success;return delete e.success,l.open(i.extend({type:1,skin:"layui-layer-tab"+f("tab"),resize:!1,title:function(){var e=t.length,i=1,r="";if(e>0)for(r=''+t[0].title+"";i"+t[i].title+"";return r}(),content:'
    '+function(){var e=t.length,i=1,r="";if(e>0)for(r='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return r}()+"
",success:function(t){var a=t.find(".layui-layer-title").children(),o=t.find(".layui-layer-tabmain").children();a.on("mousedown",(function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var r=i(this),a=r.index();r.addClass(n).siblings().removeClass(n),o.eq(a).show().siblings().hide(),"function"===typeof e.change&&e.change(a)})),"function"===typeof r&&r(t)}},e))},l.photos=function(t,n,r){var a={};if(t=t||{},t.photos){var o=t.photos.constructor===Object,s=o?t.photos:{},c=s.data||[],u=s.start||0;a.imgIndex=1+(0|u),t.img=t.img||"img";var d=t.success;if(delete t.success,o){if(0===c.length)return l.msg("没有图片")}else{var p=i(t.photos),h=function(){c=[],p.find(t.img).each((function(e){var t=i(this);t.attr("layer-index",e),c.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})}))};if(h(),0===c.length)return;if(n||p.on("click",t.img,(function(){var e=i(this),n=e.attr("layer-index");l.photos(i.extend(t,{photos:{start:n,data:c,tab:t.tab},full:t.full}),!0),h()})),!n)return}a.imgprev=function(e){a.imgIndex--,a.imgIndex<1&&(a.imgIndex=c.length),a.tabimg(e)},a.imgnext=function(e,t){a.imgIndex++,a.imgIndex>c.length&&(a.imgIndex=1,t)||a.tabimg(e)},a.keyup=function(e){if(!a.end){var t=e.keyCode;e.preventDefault(),37===t?a.imgprev(!0):39===t?a.imgnext(!0):27===t&&l.close(a.index)}},a.tabimg=function(e){if(!(c.length<=1))return s.start=a.imgIndex-1,l.close(a.index),l.photos(t,!0,e)},a.event=function(){a.bigimg.hover((function(){a.imgsee.show()}),(function(){a.imgsee.hide()})),a.bigimg.find(".layui-layer-imgprev").on("click",(function(e){e.preventDefault(),a.imgprev()})),a.bigimg.find(".layui-layer-imgnext").on("click",(function(e){e.preventDefault(),a.imgnext()})),i(document).on("keyup",a.keyup)},a.loadi=l.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),m(c[u].src,(function(n){l.close(a.loadi),a.index=l.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var r=[n.width,n.height],a=[i(e).width()-100,i(e).height()-100];if(!t.full&&(r[0]>a[0]||r[1]>a[1])){var o=[r[0]/a[0],r[1]/a[1]];o[0]>o[1]?(r[0]=r[0]/o[0],r[1]=r[1]/o[0]):o[0]'+(c[u].alt||
'+(c.length>1?'':"")+'
'+(c[u].alt||"")+""+a.imgIndex+"/"+c.length+"
",success:function(e,n){a.bigimg=e.find(".layui-layer-phimg"),a.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),a.event(e),t.tab&&t.tab(c[u],e),"function"===typeof d&&d(e)},end:function(){a.end=!0,i(document).off("keyup",a.keyup)}},t))}),(function(){l.close(a.loadi),l.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){c.length>1&&a.imgnext(!0,!0)}})}))}function m(e,t,n){var i=new Image;if(i.src=e,i.complete)return t(i);i.onload=function(){i.onload=null,t(i)},i.onerror=function(e){i.onerror=null,n(e)}}},o.run=function(t){i=t,r=i(e),c.html=i("html"),l.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(l.ready(),layui.define("jquery",(function(t){l.path=layui.cache.dir,o.run(layui.$),e.layer=l,t("layer",l)}))):"function"===typeof define&&n("3c35")?define(["jquery"],(function(){return o.run(e.jQuery),l})):function(){o.run(e.jQuery),l.ready()}()}(window);var Ye=layer,Je=$,Ge=(n("9114"),n("bc3a")),Ke=n.n(Ge),Qe=n("69d9"),Ze=n("4eb5"),et=n.n(Ze),tt=n("e166"),nt=n.n(tt),it=(n("66b8"),n("67b9"),n("2c43"),n("9aba")),rt=n.n(it),at=(n("64d2"),n("cf0d")),ot=n.n(at);i["default"].use(d.a),i["default"].prototype.layer=Ye,i["default"].prototype.$=Je,i["default"].config.productionTip=!1,i["default"].prototype.common=Qe["a"],et.a.config.autoSetContainer=!0,i["default"].use(et.a),i["default"].use(nt.a,{}),Ke.a.defaults.withCredentials=!0,Ke.a.interceptors.request.use((function(e){var t=e.url;if("get"===e.method&&e.params){t+="?";for(var n=Object.keys(e.params),i=0,r=n;i 1%","last 2 versions"]}')},c459:function(e,t,n){"use strict";n.r(t);var i={config:{},currentStorageStrategy:null,imgMode:!1},r={updateConfig:function(e,t){e.config=t},currentDirectory:function(e,t){e.currentDirectory=t},hoverRow:function(e,t){e.hoverRow=t},rightClickRow:function(e,t){e.rightClickRow=t},updateSearchParam:function(e,t){e.searchParam=t},updateCurrentStorageStrategy:function(e,t){e.currentStorageStrategy=t},switchImgMode:function(e,t){e.imgMode=t}},a={imgMode:function(e){return e.imgMode},infoEnable:function(e){return e.config&&e.config.infoEnable},tableSize:function(e){return e.config&&e.config.tableSize},currentStorageStrategyType:function(e){return e.currentStorageStrategy.type.key},currentStorageStrategyId:function(e){return e.currentStorageStrategy.id},showOperator:function(e){return e.config&&e.config.showOperator},showDocument:function(e){return e.config&&e.config.showDocument},domain:function(e){return e.config&&e.config.domain},announcement:function(e){return e.config&&e.config.announcement},layout:function(e){return e.config&&e.config.layout},showAnnouncement:function(e){return e.config&&e.config.showAnnouncement},searchEnable:function(e){return e.config&&e.config.searchEnable}},o={};t["default"]={state:i,mutations:r,getters:a,actions:o}},d307:function(e,t,n){var i={"./common.js":"c459","./file.js":"fa52","./index.js":"2a74"};function r(e){var t=a(e);return n(t)}function a(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=a,e.exports=r,r.id="d307"},d6a0:function(e,t){!function(e){var t,n,i,r,a,o,l='',s=(s=document.getElementsByTagName("script"))[s.length-1].getAttribute("data-injectcss");if(s&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(e){console&&console.log(e)}}function c(){a||(a=!0,i())}t=function(){var e,t,n,i;(i=document.createElement("div")).innerHTML=l,l=null,(n=i.getElementsByTagName("svg")[0])&&(n.setAttribute("aria-hidden","true"),n.style.position="absolute",n.style.width=0,n.style.height=0,n.style.overflow="hidden",e=n,(t=document.body).firstChild?(i=e,(n=t.firstChild).parentNode.insertBefore(i,n)):t.appendChild(e))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(t,0):(n=function(){document.removeEventListener("DOMContentLoaded",n,!1),t()},document.addEventListener("DOMContentLoaded",n,!1)):document.attachEvent&&(i=t,r=e.document,a=!1,(o=function(){try{r.documentElement.doScroll("left")}catch(e){return void setTimeout(o,50)}c()})(),r.onreadystatechange=function(){"complete"==r.readyState&&(r.onreadystatechange=null,c())})}(window)},fa52:function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a");var i=n("69d9"),r={tableData:[],currentDirectory:{},hoverRow:{},rightClickRow:{},searchParam:""},a={tableData:function(e,t){e.tableData=t},appendTableData:function(e,t){t&&(e.tableData=e.tableData.concat(t))}},o={tableData:function(e){var t=e.tableData;return t.forEach((function(e){e.icon||(e["icon"]=i["a"].getFileIconName(e))})),t},filterFileByType:function(e){return function(t){return e.tableData.filter((function(e){if("BACK"===e.type)return!1;var n=e.name,r=n.substr(n.lastIndexOf(".")+1).toLowerCase();return-1!==i["a"].constant.fileTypeMap[t].indexOf(r)}))}}},l={};t["default"]={state:r,mutations:a,getters:o,actions:l}}}); \ No newline at end of file diff --git a/src/main/resources/static/js/app.677ab7e5.js b/src/main/resources/static/js/app.677ab7e5.js deleted file mode 100644 index 331a9ad..0000000 --- a/src/main/resources/static/js/app.677ab7e5.js +++ /dev/null @@ -1 +0,0 @@ -(function(e){function t(t){for(var i,r,l=t[0],s=t[1],c=t[2],u=0,f=[];u=0===n}))}function f(e){var t=qe.split("|"),n=e.createDocumentFragment();if(n.createElement)while(t.length)n.createElement(t.pop());return n}function d(e,t){return e.getElementsByTagName(t)[0]||e.appendChild(e.ownerDocument.createElement(t))}function p(e,t){if(1===t.nodeType&&Z.hasData(e)){var n,i,r,o=Z._data(e),a=Z._data(t,o),l=o.events;if(l)for(n in delete a.handle,a.events={},l)for(i=0,r=l[n].length;i").appendTo(W.body),n=t.css("display");return t.remove(),"none"!==n&&""!==n||(ot=W.body.appendChild(ot||Z.extend(W.createElement("iframe"),{frameBorder:0,width:0,height:0})),at&&ot.createElement||(at=(ot.contentWindow||ot.contentDocument).document,at.write(""),at.close()),t=at.body.appendChild(at.createElement(e)),n=rt(t,"display"),W.body.removeChild(ot)),mt[e]=n,n}function C(e,t,n,i){var r;if(Z.isArray(t))Z.each(t,(function(t,r){n||Tt.test(e)?i(e,r):C(e+"["+("object"==Object(Se["a"])(r)?t:"")+"]",r,n,i)}));else if(n||"object"!==Z.type(t))i(e,t);else for(r in t)C(e+"["+r+"]",t[r],n,i)}function E(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r,o,a=t.toLowerCase().split(ne),l=0,s=a.length;if(Z.isFunction(n))for(;l)[^>]*$|#([\w\-]*)$)/,oe=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ae=/^[\],:{}\s]*$/,le=/(?:^|:|,)(?:\s*\[)+/g,se=/\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,ce=/"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,ue=/^-ms-/,fe=/-([\da-z])/gi,de=function(e,t){return(t+"").toUpperCase()},pe=function e(){W.addEventListener?(W.removeEventListener("DOMContentLoaded",e,!1),Z.ready()):"complete"===W.readyState&&(W.detachEvent("onreadystatechange",e),Z.ready())},he={};Z.fn=Z.prototype={constructor:Z,init:function(e,n,i){var r,o,a;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("string"==typeof e){if(r="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:re.exec(e),r&&(r[1]||!n)){if(r[1])return n=n instanceof Z?n[0]:n,a=n&&n.nodeType?n.ownerDocument||n:W,e=Z.parseHTML(r[1],a,!0),oe.test(r[1])&&Z.isPlainObject(n)&&this.attr.call(e,n,!0),Z.merge(this,e);if(o=W.getElementById(r[2]),o&&o.parentNode){if(o.id!==r[2])return i.find(e);this.length=1,this[0]=o}return this.context=W,this.selector=e,this}return!n||n.jquery?(n||i).find(e):this.constructor(n).find(e)}return Z.isFunction(e)?i.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),Z.makeArray(e,this))},selector:"",jquery:"1.8.3",length:0,size:function(){return this.length},toArray:function(){return Y.call(this)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var i=Z.merge(this.constructor(),e);return i.prevObject=this,i.context=this.context,"find"===t?i.selector=this.selector+(this.selector?" ":"")+n:t&&(i.selector=this.selector+"."+t+"("+n+")"),i},each:function(e,t){return Z.each(this,e,t)},ready:function(e){return Z.ready.promise().done(e),this},eq:function(e){return e=+e,-1===e?this.slice(e):this.slice(e,e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(Y.apply(this,arguments),"slice",Y.call(arguments).join(","))},map:function(e){return this.pushStack(Z.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:U,sort:[].sort,splice:[].splice},Z.fn.init.prototype=Z.fn,Z.extend=Z.fn.extend=function(){var e,n,i,r,o,a,l=arguments[0]||{},s=1,c=arguments.length,u=!1;for("boolean"==typeof l&&(u=l,l=arguments[1]||{},s=2),"object"!=Object(Se["a"])(l)&&!Z.isFunction(l)&&(l={}),c===s&&(l=this,--s);s0||(q.resolveWith(W,[Z]),Z.fn.trigger&&Z(W).trigger("ready").off("ready"))}},isFunction:function(e){return"function"===Z.type(e)},isArray:Array.isArray||function(e){return"array"===Z.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},type:function(e){return null==e?String(e):he[G.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==Z.type(e)||e.nodeType||Z.isWindow(e))return!1;try{if(e.constructor&&!Q.call(e,"constructor")&&!Q.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(P){return!1}var n;for(n in e);return n===t||Q.call(e,n)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},error:function(e){throw new Error(e)},parseHTML:function(e,t,n){var i;return e&&"string"==typeof e?("boolean"==typeof t&&(n=t,t=0),t=t||W,(i=oe.exec(e))?[t.createElement(i[1])]:(i=Z.buildFragment([e],t,n?null:[]),Z.merge([],(i.cacheable?Z.clone(i.fragment):i.fragment).childNodes))):null},parseJSON:function(t){return t&&"string"==typeof t?(t=Z.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):ae.test(t.replace(se,"@").replace(ce,"]").replace(le,""))?new Function("return "+t)():void Z.error("Invalid JSON: "+t)):null},parseXML:function(n){var i,r;if(!n||"string"!=typeof n)return null;try{e.DOMParser?(r=new DOMParser,i=r.parseFromString(n,"text/xml")):(i=new ActiveXObject("Microsoft.XMLDOM"),i.async="false",i.loadXML(n))}catch($){i=t}return(!i||!i.documentElement||i.getElementsByTagName("parsererror").length)&&Z.error("Invalid XML: "+n),i},noop:function(){},globalEval:function(t){t&&te.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(ue,"ms-").replace(fe,de)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,n,i){var r,o=0,a=e.length,l=a===t||Z.isFunction(e);if(i){if(l){for(r in e)if(!1===n.apply(e[r],i))break}else for(;o0&&e[0]&&e[s-1]||0===s||Z.isArray(e));if(c)for(;l-1)c.splice(n,1),o&&(n<=l&&l--,n<=s&&s--)})),this},has:function(e){return Z.inArray(e,c)>-1},empty:function(){return c=[],this},disable:function(){return c=u=n=t,this},disabled:function(){return!c},lock:function(){return u=t,n||d.disable(),this},locked:function(){return!u},fireWith:function(e,t){return t=t||[],t=[e,t.slice?t.slice():t],c&&(!r||u)&&(o?u.push(t):f(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!r}};return d},Z.extend({Deferred:function(e){var t=[["resolve","done",Z.Callbacks("once memory"),"resolved"],["reject","fail",Z.Callbacks("once memory"),"rejected"],["notify","progress",Z.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Z.Deferred((function(n){Z.each(t,(function(t,i){var o=i[0],a=e[t];r[i[1]](Z.isFunction(a)?function(){var e=a.apply(this,arguments);e&&Z.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[o+"With"](this===r?n:this,[e])}:n[o])})),e=null})).promise()},promise:function(e){return null!=e?Z.extend(e,i):i}},r={};return i.pipe=i.then,Z.each(t,(function(e,o){var a=o[2],l=o[3];i[o[1]]=a.add,l&&a.add((function(){n=l}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=a.fire,r[o[0]+"With"]=a.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=Y.call(arguments),a=o.length,l=1!==a||e&&Z.isFunction(e.promise)?a:0,s=1===l?e:Z.Deferred(),c=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?Y.call(arguments):r,i===t?s.notifyWith(n,i):--l||s.resolveWith(n,i)}};if(a>1)for(t=new Array(a),n=new Array(a),i=new Array(a);r
a",n=d.getElementsByTagName("*"),i=d.getElementsByTagName("a")[0],!n||!i||!n.length)return{};r=W.createElement("select"),o=r.appendChild(W.createElement("option")),a=d.getElementsByTagName("input")[0],i.style.cssText="top:1px;float:left;opacity:.5",t={leadingWhitespace:3===d.firstChild.nodeType,tbody:!d.getElementsByTagName("tbody").length,htmlSerialize:!!d.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:"/a"===i.getAttribute("href"),opacity:/^0.5/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,checkOn:"on"===a.value,optSelected:o.selected,getSetAttribute:"t"!==d.className,enctype:!!W.createElement("form").enctype,html5Clone:"<:nav>"!==W.createElement("nav").cloneNode(!0).outerHTML,boxModel:"CSS1Compat"===W.compatMode,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0,boxSizingReliable:!0,pixelPosition:!1},a.checked=!0,t.noCloneChecked=a.cloneNode(!0).checked,r.disabled=!0,t.optDisabled=!o.disabled;try{delete d.test}catch(K){t.deleteExpando=!1}if(!d.addEventListener&&d.attachEvent&&d.fireEvent&&(d.attachEvent("onclick",f=function(){t.noCloneEvent=!1}),d.cloneNode(!0).fireEvent("onclick"),d.detachEvent("onclick",f)),a=W.createElement("input"),a.value="t",a.setAttribute("type","radio"),t.radioValue="t"===a.value,a.setAttribute("checked","checked"),a.setAttribute("name","t"),d.appendChild(a),l=W.createDocumentFragment(),l.appendChild(d.lastChild),t.checkClone=l.cloneNode(!0).cloneNode(!0).lastChild.checked,t.appendChecked=a.checked,l.removeChild(a),l.appendChild(d),d.attachEvent)for(c in{submit:!0,change:!0,focusin:!0})s="on"+c,u=s in d,u||(d.setAttribute(s,"return;"),u="function"==typeof d[s]),t[c+"Bubbles"]=u;return Z((function(){var n,i,r,o,a="padding:0;margin:0;border:0;display:block;overflow:hidden;",l=W.getElementsByTagName("body")[0];l&&(n=W.createElement("div"),n.style.cssText="visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(n,l.firstChild),i=W.createElement("div"),n.appendChild(i),i.innerHTML="
t
",r=i.getElementsByTagName("td"),r[0].style.cssText="padding:0;margin:0;border:0;display:none",u=0===r[0].offsetHeight,r[0].style.display="",r[1].style.display="none",t.reliableHiddenOffsets=u&&0===r[0].offsetHeight,i.innerHTML="",i.style.cssText="box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;",t.boxSizing=4===i.offsetWidth,t.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,e.getComputedStyle&&(t.pixelPosition="1%"!==(e.getComputedStyle(i,null)||{}).top,t.boxSizingReliable="4px"===(e.getComputedStyle(i,null)||{width:"4px"}).width,o=W.createElement("div"),o.style.cssText=i.style.cssText=a,o.style.marginRight=o.style.width="0",i.style.width="1px",i.appendChild(o),t.reliableMarginRight=!parseFloat((e.getComputedStyle(o,null)||{}).marginRight)),"undefined"!=typeof i.style.zoom&&(i.innerHTML="",i.style.cssText=a+"width:1px;padding:1px;display:inline;zoom:1",t.inlineBlockNeedsLayout=3===i.offsetWidth,i.style.display="block",i.style.overflow="visible",i.innerHTML="
",i.firstChild.style.width="5px",t.shrinkWrapBlocks=3!==i.offsetWidth,n.style.zoom=1),l.removeChild(n),n=i=r=o=null)})),l.removeChild(d),n=i=r=o=a=l=d=null,t}();var ye=/(?:\{[\s\S]*\}|\[[\s\S]*\])$/,ge=/([A-Z])/g;Z.extend({cache:{},deletedIds:[],uuid:0,expando:"jQuery"+(Z.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?Z.cache[e[Z.expando]]:e[Z.expando],!!e&&!o(e)},data:function(e,n,i,r){if(Z.acceptData(e)){var o,a,l=Z.expando,s="string"==typeof n,c=e.nodeType,u=c?Z.cache:e,f=c?e[l]:e[l]&&l;if(f&&u[f]&&(r||u[f].data)||!s||i!==t)return f||(c?e[l]=f=Z.deletedIds.pop()||Z.guid++:f=l),u[f]||(u[f]={},c||(u[f].toJSON=Z.noop)),"object"!=Object(Se["a"])(n)&&"function"!=typeof n||(r?u[f]=Z.extend(u[f],n):u[f].data=Z.extend(u[f].data,n)),o=u[f],r||(o.data||(o.data={}),o=o.data),i!==t&&(o[Z.camelCase(n)]=i),s?(a=o[n],null==a&&(a=o[Z.camelCase(n)])):a=o,a}},removeData:function(e,t,n){if(Z.acceptData(e)){var i,r,a,l=e.nodeType,s=l?Z.cache:e,c=l?e[Z.expando]:Z.expando;if(s[c]){if(t&&(i=n?s[c]:s[c].data,i)){Z.isArray(t)||(t in i?t=[t]:(t=Z.camelCase(t),t=t in i?[t]:t.split(" ")));for(r=0,a=t.length;r1,null,!1))},removeData:function(e){return this.each((function(){Z.removeData(this,e)}))}}),Z.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Z._data(e,t),n&&(!i||Z.isArray(n)?i=Z._data(e,t,Z.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=Z.queue(e,t),i=n.length,r=n.shift(),o=Z._queueHooks(e,t),a=function(){Z.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,a,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z._data(e,n)||Z._data(e,n,{empty:Z.Callbacks("once memory").add((function(){Z.removeData(e,t+"queue",!0),Z.removeData(e,n,!0)}))})}}),Z.fn.extend({queue:function(e,n){var i=2;return"string"!=typeof e&&(n=e,e="fx",i--),arguments.length1)},removeAttr:function(e){return this.each((function(){Z.removeAttr(this,e)}))},prop:function(e,t){return Z.access(this,Z.prop,e,t,arguments.length>1)},removeProp:function(e){return e=Z.propFix[e]||e,this.each((function(){try{this[e]=t,delete this[e]}catch(P){}}))},addClass:function(e){var t,n,i,r,o,a,l;if(Z.isFunction(e))return this.each((function(t){Z(this).addClass(e.call(this,t,this.className))}));if(e&&"string"==typeof e)for(t=e.split(ne),n=0,i=this.length;n=0)i=i.replace(" "+n[o]+" "," ");r.className=e?Z.trim(i):""}return this},toggleClass:function(e,t){var n=Object(Se["a"])(e),i="boolean"==typeof t;return Z.isFunction(e)?this.each((function(n){Z(this).toggleClass(e.call(this,n,this.className,t),t)})):this.each((function(){if("string"===n){var r,o=0,a=Z(this),l=t,s=e.split(ne);while(r=s[o++])l=i?l:!a.hasClass(r),a[l?"addClass":"removeClass"](r)}else"undefined"!==n&&"boolean"!==n||(this.className&&Z._data(this,"__className__",this.className),this.className=this.className||!1===e?"":Z._data(this,"__className__")||"")}))},hasClass:function(e){for(var t=" "+e+" ",n=0,i=this.length;n=0)return!0;return!1},val:function(e){var n,i,r,o=this[0];return arguments.length?(r=Z.isFunction(e),this.each((function(i){var o,a=Z(this);1===this.nodeType&&(o=r?e.call(this,i,a.val()):e,null==o?o="":"number"==typeof o?o+="":Z.isArray(o)&&(o=Z.map(o,(function(e){return null==e?"":e+""}))),n=Z.valHooks[this.type]||Z.valHooks[this.nodeName.toLowerCase()],n&&"set"in n&&n.set(this,o,"value")!==t||(this.value=o))}))):o?(n=Z.valHooks[o.type]||Z.valHooks[o.nodeName.toLowerCase()],n&&"get"in n&&(i=n.get(o,"value"))!==t?i:(i=o.value,"string"==typeof i?i.replace(Te,""):null==i?"":i)):void 0}}),Z.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,a=o?null:[],l=o?r+1:i.length,s=r<0?l:o?r:0;s=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{},attr:function(e,n,i,r){var o,a,l,s=e.nodeType;if(e&&3!==s&&8!==s&&2!==s)return r&&Z.isFunction(Z.fn[n])?Z(e)[n](i):"undefined"==typeof e.getAttribute?Z.prop(e,n,i):(l=1!==s||!Z.isXMLDoc(e),l&&(n=n.toLowerCase(),a=Z.attrHooks[n]||(ze.test(n)?be:ve)),i!==t?null===i?void Z.removeAttr(e,n):a&&"set"in a&&l&&(o=a.set(e,i,n))!==t?o:(e.setAttribute(n,i+""),i):a&&"get"in a&&l&&null!==(o=a.get(e,n))?o:(o=e.getAttribute(n),null===o?t:o))},removeAttr:function(e,t){var n,i,r,o,a=0;if(t&&1===e.nodeType)for(i=t.split(ne);a=0}})}));var Le=/^(?:textarea|input|select)$/i,Me=/^([^\.]*|)(?:\.(.+)|)$/,Ne=/(?:^|\s)hover(\.\S+|)\b/,je=/^key/,He=/^(?:mouse|contextmenu)|click/,Ae=/^(?:focusinfocus|focusoutblur)$/,Be=function(e){return Z.event.special.hover?e:e.replace(Ne,"mouseenter$1 mouseleave$1")};Z.event={add:function(e,n,i,r,o){var a,l,s,c,u,f,d,p,h,m,y;if(3!==e.nodeType&&8!==e.nodeType&&n&&i&&(a=Z._data(e))){for(i.handler&&(h=i,i=h.handler,o=h.selector),i.guid||(i.guid=Z.guid++),s=a.events,s||(a.events=s={}),l=a.handle,l||(a.handle=l=function(e){return"undefined"==typeof Z||e&&Z.event.triggered===e.type?t:Z.event.dispatch.apply(l.elem,arguments)},l.elem=e),n=Z.trim(Be(n)).split(" "),c=0;c=0&&(y=y.slice(0,-1),l=!0),y.indexOf(".")>=0&&(g=y.split("."),y=g.shift(),g.sort()),(!r||Z.event.customEvent[y])&&!Z.event.global[y])return;if(n="object"==Object(Se["a"])(n)?n[Z.expando]?n:new Z.Event(y,n):new Z.Event(y),n.type=y,n.isTrigger=!0,n.exclusive=l,n.namespace=g.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,f=y.indexOf(":")<0?"on"+y:"",!r){for(s in a=Z.cache,a)a[s].events&&a[s].events[y]&&Z.event.trigger(n,i,a[s].handle.elem,!0);return}if(n.result=t,n.target||(n.target=r),i=null!=i?Z.makeArray(i):[],i.unshift(n),d=Z.event.special[y]||{},d.trigger&&!1===d.trigger.apply(r,i))return;if(h=[[r,d.bindType||y]],!o&&!d.noBubble&&!Z.isWindow(r)){for(m=d.delegateType||y,c=Ae.test(m+y)?r:r.parentNode,u=r;c;c=c.parentNode)h.push([c,m]),u=c;u===(r.ownerDocument||W)&&h.push([u.defaultView||u.parentWindow||e,m])}for(s=0;s=0:Z.find(f,this,null,[o]).length),l[f]&&c.push(u);c.length&&g.push({elem:o,matches:c})}for(d.length>p&&g.push({elem:this,matches:d.slice(p)}),i=0;i0?this.on(t,null,e,n):this.trigger(t)},je.test(t)&&(Z.event.fixHooks[t]=Z.event.keyHooks),He.test(t)&&(Z.event.fixHooks[t]=Z.event.mouseHooks)})),function(e,t){function n(e,t,n,i){n=n||[],t=t||j;var r,o,a,l,s=t.nodeType;if(!e||"string"!=typeof e)return n;if(1!==s&&9!==s)return[];if(a=T(t),!a&&!i&&(r=ie.exec(e)))if(l=r[1]){if(9===s){if(o=t.getElementById(l),!o||!o.parentNode)return n;if(o.id===l)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(l))&&k(t,o)&&o.id===l)return n.push(o),n}else{if(r[2])return O.apply(n,_.call(t.getElementsByTagName(e),0)),n;if((l=r[3])&&pe&&t.getElementsByClassName)return O.apply(n,_.call(t.getElementsByClassName(l),0)),n}return y(e.replace(K,"$1"),t,n,i,a)}function i(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function r(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function o(e){return P((function(t){return t=+t,P((function(n,i){var r,o=e([],n.length,t),a=o.length;while(a--)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))}))}))}function a(e,t,n){if(e===t)return n;var i=e.nextSibling;while(i){if(i===t)return-1;i=i.nextSibling}return 1}function s(e,t){var i,r,o,a,l,s,c,u=$[N][e+" "];if(u)return t?0:u.slice(0);l=e,s=[],c=x.preFilter;while(l){for(a in i&&!(r=ee.exec(l))||(r&&(l=l.slice(r[0].length)||l),s.push(o=[])),i=!1,(r=te.exec(l))&&(o.push(i=new S(r.shift())),l=l.slice(i.length),i.type=r[0].replace(K," ")),x.filter)(r=se[a].exec(l))&&(!c[a]||(r=c[a](r)))&&(o.push(i=new S(r.shift())),l=l.slice(i.length),i.type=a,i.matches=r);if(!i)break}return t?l.length:l?n.error(e):$(e,s).slice(0)}function c(e,t,n){var i=t.dir,r=n&&"parentNode"===t.dir,o=B++;return t.first?function(t,n,o){while(t=t[i])if(r||1===t.nodeType)return e(t,n,o)}:function(t,n,a){if(a){while(t=t[i])if((r||1===t.nodeType)&&e(t,n,a))return t}else{var l,s=A+" "+o+" ",c=s+v;while(t=t[i])if(r||1===t.nodeType){if((l=t[N])===c)return t.sizset;if("string"==typeof l&&0===l.indexOf(s)){if(t.sizset)return t}else{if(t[N]=c,e(t,n,a))return t.sizset=!0,t;t.sizset=!1}}}}}function u(e){return e.length>1?function(t,n,i){var r=e.length;while(r--)if(!e[r](t,n,i))return!1;return!0}:e[0]}function f(e,t,n,i,r){for(var o,a=[],l=0,s=e.length,c=null!=t;l-1&&(o[c]=!(a[c]=d))}}else b=f(b===a?b.splice(y,b.length):b),r?r(null,a,b,s):O.apply(a,b)}))}function p(e){for(var t,n,i,r=e.length,o=x.relative[e[0].type],a=o||x.relative[" "],l=o?1:0,s=c((function(e){return e===t}),a,!0),f=c((function(e){return I.call(t,e)>-1}),a,!0),h=[function(e,n,i){return!o&&(i||n!==F)||((t=n).nodeType?s(e,n,i):f(e,n,i))}];l1&&u(h),l>1&&e.slice(0,l-1).join("").replace(K,"$1"),n,l0,r=e.length>0,o=function o(a,l,s,c,u){var d,p,h,m=[],y=0,g="0",b=a&&[],w=null!=u,T=F,k=a||r&&x.find.TAG("*",u&&l.parentNode||l),C=A+=null==T?1:Math.E;for(w&&(F=l!==j&&l,v=o.el);null!=(d=k[g]);g++){if(r&&d){for(p=0;h=e[p];p++)if(h(d,l,s)){c.push(d);break}w&&(A=C,v=++o.el)}i&&((d=!h&&d)&&y--,a&&b.push(d))}if(y+=g,i&&g!==y){for(p=0;h=t[p];p++)h(b,m,l,s);if(a){if(y>0)while(g--)!b[g]&&!m[g]&&(m[g]=D.call(c));m=f(m)}O.apply(c,m),w&&!a&&m.length>0&&y+t.length>1&&n.uniqueSort(c)}return w&&(A=C,F=T),b};return o.el=0,i?P(o):o}function m(e,t,i){for(var r=0,o=t.length;r2&&"ID"===(l=a[0]).type&&9===t.nodeType&&!r&&x.relative[a[1].type]){if(t=x.find.ID(l.matches[0].replace(le,""),t,r)[0],!t)return n;e=e.slice(a.shift().length)}for(o=se.POS.test(e)?-1:a.length-1;o>=0;o--){if(l=a[o],x.relative[c=l.type])break;if((u=x.find[c])&&(i=u(l.matches[0].replace(le,""),re.test(a[0].type)&&t.parentNode||t,r))){if(a.splice(o,1),e=i.length&&a.join(""),!e)return O.apply(n,_.call(i,0)),n;break}}}return C(e,f)(i,t,r,n,re.test(e)),n}function g(){}var v,b,x,w,T,k,C,E,z,F,L=!0,M="undefined",N=("sizcache"+Math.random()).replace(".",""),S=String,j=e.document,H=j.documentElement,A=0,B=0,D=[].pop,O=[].push,_=[].slice,I=[].indexOf||function(e){for(var t=0,n=this.length;tx.cacheLength&&delete e[t.shift()],e[n+" "]=i}),e)},W=q(),$=q(),R=q(),V="[\\x20\\t\\r\\n\\f]",X="(?:\\\\.|[-\\w]|[^\\x00-\\xa0])+",U=X.replace("w","w#"),Y="([*^$|!~]?=)",J="\\["+V+"*("+X+")"+V+"*(?:"+Y+V+"*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|("+U+")|)|)"+V+"*\\]",G=":("+X+")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:"+J+")|[^:]|\\\\.)*|.*))\\)|)",Q=":(even|odd|eq|gt|lt|nth|first|last)(?:\\("+V+"*((?:-\\d)?\\d*)"+V+"*\\)|)(?=[^-]|$)",K=new RegExp("^"+V+"+|((?:^|[^\\\\])(?:\\\\.)*)"+V+"+$","g"),ee=new RegExp("^"+V+"*,"+V+"*"),te=new RegExp("^"+V+"*([\\x20\\t\\r\\n\\f>+~])"+V+"*"),ne=new RegExp(G),ie=/^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,re=/[\x20\t\r\n\f]*[+~]/,oe=/h\d/i,ae=/input|select|textarea|button/i,le=/\\(?!\\)/g,se={ID:new RegExp("^#("+X+")"),CLASS:new RegExp("^\\.("+X+")"),NAME:new RegExp("^\\[name=['\"]?("+X+")['\"]?\\]"),TAG:new RegExp("^("+X.replace("w","w*")+")"),ATTR:new RegExp("^"+J),PSEUDO:new RegExp("^"+G),POS:new RegExp(Q,"i"),CHILD:new RegExp("^:(only|nth|first|last)-child(?:\\("+V+"*(even|odd|(([+-]|)(\\d*)n|)"+V+"*(?:([+-]|)"+V+"*(\\d+)|))"+V+"*\\)|)","i"),needsContext:new RegExp("^"+V+"*[>+~]|"+Q,"i")},ce=function(e){var t=j.createElement("div");try{return e(t)}catch(v){return!1}finally{t=null}},ue=ce((function(e){return e.appendChild(j.createComment("")),!e.getElementsByTagName("*").length})),fe=ce((function(e){return e.innerHTML="",e.firstChild&&Object(Se["a"])(e.firstChild.getAttribute)!==M&&"#"===e.firstChild.getAttribute("href")})),de=ce((function(e){e.innerHTML="";var t=Object(Se["a"])(e.lastChild.getAttribute("multiple"));return"boolean"!==t&&"string"!==t})),pe=ce((function(e){return e.innerHTML="",!(!e.getElementsByClassName||!e.getElementsByClassName("e").length)&&(e.lastChild.className="e",2===e.getElementsByClassName("e").length)})),he=ce((function(e){e.id=N+0,e.innerHTML="
",H.insertBefore(e,H.firstChild);var t=j.getElementsByName&&j.getElementsByName(N).length===2+j.getElementsByName(N+0).length;return b=!j.getElementById(N),H.removeChild(e),t}));try{_.call(H.childNodes,0)[0].nodeType}catch(l){_=function(e){for(var t,n=[];t=this[e];e++)n.push(t);return n}}n.matches=function(e,t){return n(e,null,null,t)},n.matchesSelector=function(e,t){return n(t,null,null,[e]).length>0},w=n.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=w(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i];i++)n+=w(t);return n},T=n.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},k=n.contains=H.contains?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!!(i&&1===i.nodeType&&n.contains&&n.contains(i))}:H.compareDocumentPosition?function(e,t){return t&&!!(16&e.compareDocumentPosition(t))}:function(e,t){while(t=t.parentNode)if(t===e)return!0;return!1},n.attr=function(e,t){var n,i=T(e);return i||(t=t.toLowerCase()),(n=x.attrHandle[t])?n(e):i||de?e.getAttribute(t):(n=e.getAttributeNode(t),n?"boolean"==typeof e[t]?e[t]?t:null:n.specified?n.value:null:null)},x=n.selectors={cacheLength:50,createPseudo:P,match:se,attrHandle:fe?{}:{href:function(e){return e.getAttribute("href",2)},type:function(e){return e.getAttribute("type")}},find:{ID:b?function(e,t,n){if(Object(Se["a"])(t.getElementById)!==M&&!n){var i=t.getElementById(e);return i&&i.parentNode?[i]:[]}}:function(e,n,i){if(Object(Se["a"])(n.getElementById)!==M&&!i){var r=n.getElementById(e);return r?r.id===e||Object(Se["a"])(r.getAttributeNode)!==M&&r.getAttributeNode("id").value===e?[r]:t:[]}},TAG:ue?function(e,t){if(Object(Se["a"])(t.getElementsByTagName)!==M)return t.getElementsByTagName(e)}:function(e,t){var n=t.getElementsByTagName(e);if("*"===e){for(var i,r=[],o=0;i=n[o];o++)1===i.nodeType&&r.push(i);return r}return n},NAME:he&&function(e,t){if(Object(Se["a"])(t.getElementsByName)!==M)return t.getElementsByName(name)},CLASS:pe&&function(e,t,n){if(Object(Se["a"])(t.getElementsByClassName)!==M&&!n)return t.getElementsByClassName(e)}},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(le,""),e[3]=(e[4]||e[5]||"").replace(le,""),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1]?(e[2]||n.error(e[0]),e[3]=+(e[3]?e[4]+(e[5]||1):2*("even"===e[2]||"odd"===e[2])),e[4]=+(e[6]+e[7]||"odd"===e[2])):e[2]&&n.error(e[0]),e},PSEUDO:function(e){var t,n;return se.CHILD.test(e[0])?null:(e[3]?e[2]=e[3]:(t=e[4])&&(ne.test(t)&&(n=s(t,!0))&&(n=t.indexOf(")",t.length-n)-t.length)&&(t=t.slice(0,n),e[0]=e[0].slice(0,n)),e[2]=t),e.slice(0,3))}},filter:{ID:b?function(e){return e=e.replace(le,""),function(t){return t.getAttribute("id")===e}}:function(e){return e=e.replace(le,""),function(t){var n=Object(Se["a"])(t.getAttributeNode)!==M&&t.getAttributeNode("id");return n&&n.value===e}},TAG:function(e){return"*"===e?function(){return!0}:(e=e.replace(le,"").toLowerCase(),function(t){return t.nodeName&&t.nodeName.toLowerCase()===e})},CLASS:function(e){var t=W[N][e+" "];return t||(t=new RegExp("(^|"+V+")"+e+"("+V+"|$)"))&&W(e,(function(e){return t.test(e.className||Object(Se["a"])(e.getAttribute)!==M&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(r,o){var a=n.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===i:"!="===t?a!==i:"^="===t?i&&0===a.indexOf(i):"*="===t?i&&a.indexOf(i)>-1:"$="===t?i&&a.substr(a.length-i.length)===i:"~="===t?(" "+a+" ").indexOf(i)>-1:"|="===t&&(a===i||a.substr(0,i.length+1)===i+"-"))}},CHILD:function(e,t,n,i){return"nth"===e?function(e){var t,r,o=e.parentNode;if(1===n&&0===i)return!0;if(o)for(r=0,t=o.firstChild;t;t=t.nextSibling)if(1===t.nodeType&&(r++,e===t))break;return r-=i,r===n||r%n===0&&r/n>=0}:function(t){var n=t;switch(e){case"only":case"first":while(n=n.previousSibling)if(1===n.nodeType)return!1;if("first"===e)return!0;n=t;case"last":while(n=n.nextSibling)if(1===n.nodeType)return!1;return!0}}},PSEUDO:function(e,t){var i,r=x.pseudos[e]||x.setFilters[e.toLowerCase()]||n.error("unsupported pseudo: "+e);return r[N]?r(t):r.length>1?(i=[e,e,"",t],x.setFilters.hasOwnProperty(e.toLowerCase())?P((function(e,n){var i,o=r(e,t),a=o.length;while(a--)i=I.call(e,o[a]),e[i]=!(n[i]=o[a])})):function(e){return r(e,0,i)}):r}},pseudos:{not:P((function(e){var t=[],n=[],i=C(e.replace(K,"$1"));return i[N]?P((function(e,t,n,r){var o,a=i(e,null,r,[]),l=e.length;while(l--)(o=a[l])&&(e[l]=!(t[l]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),!n.pop()}})),has:P((function(e){return function(t){return n(e,t).length>0}})),contains:P((function(e){return function(t){return(t.textContent||t.innerText||w(t)).indexOf(e)>-1}})),enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!x.pseudos.empty(e)},empty:function(e){var t;e=e.firstChild;while(e){if(e.nodeName>"@"||3===(t=e.nodeType)||4===t)return!1;e=e.nextSibling}return!0},header:function(e){return oe.test(e.nodeName)},text:function(e){var t,n;return"input"===e.nodeName.toLowerCase()&&"text"===(t=e.type)&&(null==(n=e.getAttribute("type"))||n.toLowerCase()===t)},radio:i("radio"),checkbox:i("checkbox"),file:i("file"),password:i("password"),image:i("image"),submit:r("submit"),reset:r("reset"),button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return ae.test(e.nodeName)},focus:function(e){var t=e.ownerDocument;return e===t.activeElement&&(!t.hasFocus||t.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},active:function(e){return e===e.ownerDocument.activeElement},first:o((function(){return[0]})),last:o((function(e,t){return[t-1]})),eq:o((function(e,t,n){return[n<0?n+t:n]})),even:o((function(e,t){for(var n=0;n=0;)e.push(i);return e})),gt:o((function(e,t,n){for(var i=n<0?n+t:n;++i",e.querySelectorAll("[selected]").length||o.push("\\["+V+"*(?:checked|disabled|ismap|multiple|readonly|selected|value)"),e.querySelectorAll(":checked").length||o.push(":checked")})),ce((function(e){e.innerHTML="

",e.querySelectorAll("[test^='']").length&&o.push("[*^$]="+V+"*(?:\"\"|'')"),e.innerHTML="",e.querySelectorAll(":enabled").length||o.push(":enabled",":disabled")})),o=new RegExp(o.join("|")),y=function(e,n,r,a,l){if(!a&&!l&&!o.test(e)){var c,u,f=!0,d=N,p=n,h=9===n.nodeType&&e;if(1===n.nodeType&&"object"!==n.nodeName.toLowerCase()){c=s(e),(f=n.getAttribute("id"))?d=f.replace(i,"\\$&"):n.setAttribute("id",d),d="[id='"+d+"'] ",u=c.length;while(u--)c[u]=d+c[u].join("");p=re.test(e)&&n.parentNode||n,h=c.join(",")}if(h)try{return O.apply(r,_.call(p.querySelectorAll(h),0)),r}catch(Z){}finally{f||n.removeAttribute("id")}}return t(e,n,r,a,l)},l&&(ce((function(t){e=l.call(t,"div");try{l.call(t,"[test!='']:sizzle"),a.push("!=",G)}catch(i){}})),a=new RegExp(a.join("|")),n.matchesSelector=function(t,i){if(i=i.replace(r,"='$1']"),!T(t)&&!a.test(i)&&!o.test(i))try{var s=l.call(t,i);if(s||e||t.document&&11!==t.document.nodeType)return s}catch(E){}return n(i,null,null,[t]).length>0})}(),x.pseudos.nth=x.pseudos.eq,x.filters=g.prototype=x.pseudos,x.setFilters=new g,n.attr=Z.attr,Z.find=n,Z.expr=n.selectors,Z.expr[":"]=Z.expr.pseudos,Z.unique=n.uniqueSort,Z.text=n.getText,Z.isXMLDoc=n.isXML,Z.contains=n.contains}(e);var De=/Until$/,Oe=/^(?:parents|prev(?:Until|All))/,_e=/^.[^:#\[\.,]*$/,Ie=Z.expr.match.needsContext,Pe={children:!0,contents:!0,next:!0,prev:!0};Z.fn.extend({find:function(e){var t,n,i,r,o,a,l=this;if("string"!=typeof e)return Z(e).filter((function(){for(t=0,n=l.length;t0)for(r=i;r=0:Z.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,t){for(var n,i=0,r=this.length,o=[],a=Ie.test(e)||"string"!=typeof e?Z(e,t||this.context):0;i-1:Z.find.matchesSelector(n,e)){o.push(n);break}n=n.parentNode}}return o=o.length>1?Z.unique(o):o,this.pushStack(o,"closest",e)},index:function(e){return e?"string"==typeof e?Z.inArray(this[0],Z(e)):Z.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,t){var n="string"==typeof e?Z(e,t):Z.makeArray(e&&e.nodeType?[e]:e),i=Z.merge(this.get(),n);return this.pushStack(s(n[0])||s(i[0])?i:Z.unique(i))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Z.fn.andSelf=Z.fn.addBack,Z.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Z.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Z.dir(e,"parentNode",n)},next:function(e){return c(e,"nextSibling")},prev:function(e){return c(e,"previousSibling")},nextAll:function(e){return Z.dir(e,"nextSibling")},prevAll:function(e){return Z.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Z.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Z.dir(e,"previousSibling",n)},siblings:function(e){return Z.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Z.sibling(e.firstChild)},contents:function(e){return Z.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:Z.merge([],e.childNodes)}},(function(e,t){Z.fn[e]=function(n,i){var r=Z.map(this,t,n);return De.test(e)||(i=n),i&&"string"==typeof i&&(r=Z.filter(i,r)),r=this.length>1&&!Pe[e]?Z.unique(r):r,this.length>1&&Oe.test(e)&&(r=r.reverse()),this.pushStack(r,e,Y.call(arguments).join(","))}})),Z.extend({filter:function(e,t,n){return n&&(e=":not("+e+")"),1===t.length?Z.find.matchesSelector(t[0],e)?[t[0]]:[]:Z.find.matches(e,t)},dir:function(e,n,i){var r=[],o=e[n];while(o&&9!==o.nodeType&&(i===t||1!==o.nodeType||!Z(o).is(i)))1===o.nodeType&&r.push(o),o=o[n];return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}});var qe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",We=/ jQuery\d+="(?:null|\d+)"/g,$e=/^\s+/,Re=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,Ve=/<([\w:]+)/,Xe=/]","i"),Qe=/^(?:checkbox|radio)$/,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ze=/\/(java|ecma)script/i,et=/^\s*\s*$/g,tt={option:[1,""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},nt=f(W),it=nt.appendChild(W.createElement("div"));tt.optgroup=tt.option,tt.tbody=tt.tfoot=tt.colgroup=tt.caption=tt.thead,tt.th=tt.td,Z.support.htmlSerialize||(tt._default=[1,"X
","
"]),Z.fn.extend({text:function(e){return Z.access(this,(function(e){return e===t?Z.text(this):this.empty().append((this[0]&&this[0].ownerDocument||W).createTextNode(e))}),null,e,arguments.length)},wrapAll:function(e){if(Z.isFunction(e))return this.each((function(t){Z(this).wrapAll(e.call(this,t))}));if(this[0]){var t=Z(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstChild&&1===e.firstChild.nodeType)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return Z.isFunction(e)?this.each((function(t){Z(this).wrapInner(e.call(this,t))})):this.each((function(){var t=Z(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=Z.isFunction(e);return this.each((function(n){Z(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){Z.nodeName(this,"body")||Z(this).replaceWith(this.childNodes)})).end()},append:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType)&&this.appendChild(e)}))},prepend:function(){return this.domManip(arguments,!0,(function(e){(1===this.nodeType||11===this.nodeType)&&this.insertBefore(e,this.firstChild)}))},before:function(){if(!s(this[0]))return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this)}));if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(e,this),"before",this.selector)}},after:function(){if(!s(this[0]))return this.domManip(arguments,!1,(function(e){this.parentNode.insertBefore(e,this.nextSibling)}));if(arguments.length){var e=Z.clean(arguments);return this.pushStack(Z.merge(this,e),"after",this.selector)}},remove:function(e,t){for(var n,i=0;null!=(n=this[i]);i++)e&&!Z.filter(e,[n]).length||(!t&&1===n.nodeType&&(Z.cleanData(n.getElementsByTagName("*")),Z.cleanData([n])),n.parentNode&&n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){1===e.nodeType&&Z.cleanData(e.getElementsByTagName("*"));while(e.firstChild)e.removeChild(e.firstChild)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return Z.clone(this,e,t)}))},html:function(e){return Z.access(this,(function(e){var n=this[0]||{},i=0,r=this.length;if(e===t)return 1===n.nodeType?n.innerHTML.replace(We,""):t;if("string"==typeof e&&!Ye.test(e)&&(Z.support.htmlSerialize||!Ge.test(e))&&(Z.support.leadingWhitespace||!$e.test(e))&&!tt[(Ve.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Re,"<$1>");try{for(;i1&&"string"==typeof c&&Ke.test(c))return this.each((function(){Z(this).domManip(e,n,i)}));if(Z.isFunction(c))return this.each((function(r){var o=Z(this);e[0]=c.call(this,r,n?o.html():t),o.domManip(e,n,i)}));if(this[0]){if(r=Z.buildFragment(e,this,u),a=r.fragment,o=a.firstChild,1===a.childNodes.length&&(a=o),o)for(n=n&&Z.nodeName(o,"tr"),l=r.cacheable||f-1;s0?this.clone(!0):this).get(),Z(a[r])[t](i),o=o.concat(i);return this.pushStack(o,e,a.selector)}})),Z.extend({clone:function(e,t,n){var i,r,o,a;if(Z.support.html5Clone||Z.isXMLDoc(e)||!Ge.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(it.innerHTML=e.outerHTML,it.removeChild(a=it.firstChild)),(!Z.support.noCloneEvent||!Z.support.noCloneChecked)&&(1===e.nodeType||11===e.nodeType)&&!Z.isXMLDoc(e))for(h(e,a),i=m(e),r=m(a),o=0;i[o];++o)r[o]&&h(i[o],r[o]);if(t&&(p(e,a),n))for(i=m(e),r=m(a),o=0;i[o];++o)p(i[o],r[o]);return i=r=null,a},clean:function(e,t,n,i){var r,o,a,l,s,c,u,d,p,h,m,g=t===W&&nt,v=[];for(t&&"undefined"!=typeof t.createDocumentFragment||(t=W),r=0;null!=(a=e[r]);r++)if("number"==typeof a&&(a+=""),a){if("string"==typeof a)if(Ue.test(a)){g=g||f(t),u=t.createElement("div"),g.appendChild(u),a=a.replace(Re,"<$1>"),l=(Ve.exec(a)||["",""])[1].toLowerCase(),s=tt[l]||tt._default,c=s[0],u.innerHTML=s[1]+a+s[2];while(c--)u=u.lastChild;if(!Z.support.tbody)for(d=Xe.test(a),p="table"!==l||d?""!==s[1]||d?[]:u.childNodes:u.firstChild&&u.firstChild.childNodes,o=p.length-1;o>=0;--o)Z.nodeName(p[o],"tbody")&&!p[o].childNodes.length&&p[o].parentNode.removeChild(p[o]);!Z.support.leadingWhitespace&&$e.test(a)&&u.insertBefore(t.createTextNode($e.exec(a)[0]),u.firstChild),a=u.childNodes,u.parentNode.removeChild(u)}else a=t.createTextNode(a);a.nodeType?v.push(a):Z.merge(v,a)}if(u&&(a=u=g=null),!Z.support.appendChecked)for(r=0;null!=(a=v[r]);r++)Z.nodeName(a,"input")?y(a):"undefined"!=typeof a.getElementsByTagName&&Z.grep(a.getElementsByTagName("input"),y);if(n)for(h=function(e){if(!e.type||Ze.test(e.type))return i?i.push(e.parentNode?e.parentNode.removeChild(e):e):n.appendChild(e)},r=0;null!=(a=v[r]);r++)Z.nodeName(a,"script")&&h(a)||(n.appendChild(a),"undefined"!=typeof a.getElementsByTagName&&(m=Z.grep(Z.merge([],a.getElementsByTagName("script")),h),v.splice.apply(v,[r+1,0].concat(m)),r+=m.length));return v},cleanData:function(e,t){for(var n,i,r,o,a=0,l=Z.expando,s=Z.cache,c=Z.support.deleteExpando,u=Z.event.special;null!=(r=e[a]);a++)if((t||Z.acceptData(r))&&(i=r[l],n=i&&s[i],n)){if(n.events)for(o in n.events)u[o]?Z.event.remove(r,o):Z.removeEvent(r,o,n.handle);s[i]&&(delete s[i],c?delete r[l]:r.removeAttribute?r.removeAttribute(l):r[l]=null,Z.deletedIds.push(i))}}}),function(){var e,t;Z.uaMatch=function(e){e=e.toLowerCase();var t=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},e=Z.uaMatch(R.userAgent),t={},e.browser&&(t[e.browser]=!0,t.version=e.version),t.chrome?t.webkit=!0:t.webkit&&(t.safari=!0),Z.browser=t,Z.sub=function(){function e(t,n){return new e.fn.init(t,n)}Z.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){return i&&i instanceof Z&&!(i instanceof e)&&(i=e(i)),Z.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;var t=e(W);return e}}();var rt,ot,at,lt=/alpha\([^)]*\)/i,st=/opacity=([^)]*)/,ct=/^(top|right|bottom|left)$/,ut=/^(none|table(?!-c[ea]).+)/,ft=/^margin/,dt=new RegExp("^("+ee+")(.*)$","i"),pt=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),ht=new RegExp("^([-+])=("+ee+")","i"),mt={BODY:"block"},yt={position:"absolute",visibility:"hidden",display:"block"},gt={letterSpacing:0,fontWeight:400},vt=["Top","Right","Bottom","Left"],bt=["Webkit","O","Moz","ms"],xt=Z.fn.toggle;Z.fn.extend({css:function(e,n){return Z.access(this,(function(e,n,i){return i!==t?Z.style(e,n,i):Z.css(e,n)}),e,n,arguments.length>1)},show:function(){return b(this,!0)},hide:function(){return b(this)},toggle:function(e,t){var n="boolean"==typeof e;return Z.isFunction(e)&&Z.isFunction(t)?xt.apply(this,arguments):this.each((function(){(n?e:v(this))?Z(this).show():Z(this).hide()}))}}),Z.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=rt(e,"opacity");return""===n?"1":n}}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:Z.support.cssFloat?"cssFloat":"styleFloat"},style:function(e,n,i,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,a,l,s=Z.camelCase(n),c=e.style;if(n=Z.cssProps[s]||(Z.cssProps[s]=g(c,s)),l=Z.cssHooks[n]||Z.cssHooks[s],i===t)return l&&"get"in l&&(o=l.get(e,!1,r))!==t?o:c[n];if(a=Object(Se["a"])(i),"string"===a&&(o=ht.exec(i))&&(i=(o[1]+1)*o[2]+parseFloat(Z.css(e,n)),a="number"),!(null==i||"number"===a&&isNaN(i))&&("number"===a&&!Z.cssNumber[s]&&(i+="px"),!l||!("set"in l)||(i=l.set(e,i,r))!==t))try{c[n]=i}catch(Y){}}},css:function(e,n,i,r){var o,a,l,s=Z.camelCase(n);return n=Z.cssProps[s]||(Z.cssProps[s]=g(e.style,s)),l=Z.cssHooks[n]||Z.cssHooks[s],l&&"get"in l&&(o=l.get(e,!0,r)),o===t&&(o=rt(e,n)),"normal"===o&&n in gt&&(o=gt[n]),i||r!==t?(a=parseFloat(o),i||Z.isNumeric(a)?a||0:o):o},swap:function(e,t,n){var i,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=o[r];return i}}),e.getComputedStyle?rt=function(t,n){var i,r,o,a,l=e.getComputedStyle(t,null),s=t.style;return l&&(i=l.getPropertyValue(n)||l[n],""===i&&!Z.contains(t.ownerDocument,t)&&(i=Z.style(t,n)),pt.test(i)&&ft.test(n)&&(r=s.width,o=s.minWidth,a=s.maxWidth,s.minWidth=s.maxWidth=s.width=i,i=l.width,s.width=r,s.minWidth=o,s.maxWidth=a)),i}:W.documentElement.currentStyle&&(rt=function(e,t){var n,i,r=e.currentStyle&&e.currentStyle[t],o=e.style;return null==r&&o&&o[t]&&(r=o[t]),pt.test(r)&&!ct.test(t)&&(n=o.left,i=e.runtimeStyle&&e.runtimeStyle.left,i&&(e.runtimeStyle.left=e.currentStyle.left),o.left="fontSize"===t?"1em":r,r=o.pixelLeft+"px",o.left=n,i&&(e.runtimeStyle.left=i)),""===r?"auto":r}),Z.each(["height","width"],(function(e,t){Z.cssHooks[t]={get:function(e,n,i){if(n)return 0===e.offsetWidth&&ut.test(rt(e,"display"))?Z.swap(e,yt,(function(){return T(e,t,i)})):T(e,t,i)},set:function(e,n,i){return x(e,n,i?w(e,t,i,Z.support.boxSizing&&"border-box"===Z.css(e,"boxSizing")):0)}}})),Z.support.opacity||(Z.cssHooks.opacity={get:function(e,t){return st.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var n=e.style,i=e.currentStyle,r=Z.isNumeric(t)?"alpha(opacity="+100*t+")":"",o=i&&i.filter||n.filter||"";n.zoom=1,t>=1&&""===Z.trim(o.replace(lt,""))&&n.removeAttribute&&(n.removeAttribute("filter"),i&&!i.filter)||(n.filter=lt.test(o)?o.replace(lt,r):o+" "+r)}}),Z((function(){Z.support.reliableMarginRight||(Z.cssHooks.marginRight={get:function(e,t){return Z.swap(e,{display:"inline-block"},(function(){if(t)return rt(e,"marginRight")}))}}),!Z.support.pixelPosition&&Z.fn.position&&Z.each(["top","left"],(function(e,t){Z.cssHooks[t]={get:function(e,n){if(n){var i=rt(e,t);return pt.test(i)?Z(e).position()[t]+"px":i}}}}))})),Z.expr&&Z.expr.filters&&(Z.expr.filters.hidden=function(e){return 0===e.offsetWidth&&0===e.offsetHeight||!Z.support.reliableHiddenOffsets&&"none"===(e.style&&e.style.display||rt(e,"display"))},Z.expr.filters.visible=function(e){return!Z.expr.filters.hidden(e)}),Z.each({margin:"",padding:"",border:"Width"},(function(e,t){Z.cssHooks[e+t]={expand:function(n){var i,r="string"==typeof n?n.split(" "):[n],o={};for(i=0;i<4;i++)o[e+vt[i]+t]=r[i]||r[i-2]||r[0];return o}},ft.test(e)||(Z.cssHooks[e+t].set=x)}));var wt=/%20/g,Tt=/\[\]$/,kt=/\r?\n/g,Ct=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Et=/^(?:select|textarea)/i;Z.fn.extend({serialize:function(){return Z.param(this.serializeArray())},serializeArray:function(){return this.map((function(){return this.elements?Z.makeArray(this.elements):this})).filter((function(){return this.name&&!this.disabled&&(this.checked||Et.test(this.nodeName)||Ct.test(this.type))})).map((function(e,t){var n=Z(this).val();return null==n?null:Z.isArray(n)?Z.map(n,(function(e,n){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}}),Z.param=function(e,n){var i,r=[],o=function(e,t){t=Z.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(n===t&&(n=Z.ajaxSettings&&Z.ajaxSettings.traditional),Z.isArray(e)||e.jquery&&!Z.isPlainObject(e))Z.each(e,(function(){o(this.name,this.value)}));else for(i in e)C(i,e[i],n,o);return r.join("&").replace(wt,"+")};var zt,Ft,Lt=/#.*$/,Mt=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Nt=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,St=/^(?:GET|HEAD)$/,jt=/^\/\//,Ht=/\?/,At=/)<[^<]*)*<\/script>/gi,Bt=/([?&])_=[^&]*/,Dt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/,Ot=Z.fn.load,_t={},It={},Pt=["*/"]+["*"];try{Ft=$.href}catch(nn){Ft=W.createElement("a"),Ft.href="",Ft=Ft.href}zt=Dt.exec(Ft.toLowerCase())||[],Z.fn.load=function(e,n,i){if("string"!=typeof e&&Ot)return Ot.apply(this,arguments);if(!this.length)return this;var r,o,a,l=this,s=e.indexOf(" ");return s>=0&&(r=e.slice(s,e.length),e=e.slice(0,s)),Z.isFunction(n)?(i=n,n=t):n&&"object"==Object(Se["a"])(n)&&(o="POST"),Z.ajax({url:e,type:o,dataType:"html",data:n,complete:function(e,t){i&&l.each(i,a||[e.responseText,t,e])}}).done((function(e){a=arguments,l.html(r?Z("
").append(e.replace(At,"")).find(r):e)})),this},Z.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),(function(e,t){Z.fn[t]=function(e){return this.on(t,e)}})),Z.each(["get","post"],(function(e,n){Z[n]=function(e,i,r,o){return Z.isFunction(i)&&(o=o||r,r=i,i=t),Z.ajax({type:n,url:e,data:i,success:r,dataType:o})}})),Z.extend({getScript:function(e,n){return Z.get(e,t,n,"script")},getJSON:function(e,t,n){return Z.get(e,t,n,"json")},ajaxSetup:function(e,t){return t?F(e,Z.ajaxSettings):(t=e,e=Z.ajaxSettings),F(e,t),e},ajaxSettings:{url:Ft,isLocal:Nt.test(zt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded; charset=UTF-8",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":Pt},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":Z.parseJSON,"text xml":Z.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:E(_t),ajaxTransport:E(It),ajax:function(e,n){function i(e,n,i,a){var c,f,v,b,w,k=n;2!==x&&(x=2,s&&clearTimeout(s),l=t,o=a||"",T.readyState=e>0?4:0,i&&(b=L(d,T,i)),e>=200&&e<300||304===e?(d.ifModified&&(w=T.getResponseHeader("Last-Modified"),w&&(Z.lastModified[r]=w),w=T.getResponseHeader("Etag"),w&&(Z.etag[r]=w)),304===e?(k="notmodified",c=!0):(c=M(d,b),k=c.state,f=c.data,v=c.error,c=!v)):(v=k,k&&!e||(k="error",e<0&&(e=0))),T.status=e,T.statusText=(n||k)+"",c?m.resolveWith(p,[f,k,T]):m.rejectWith(p,[T,k,v]),T.statusCode(g),g=t,u&&h.trigger("ajax"+(c?"Success":"Error"),[T,d,c?f:v]),y.fireWith(p,[T,k]),u&&(h.trigger("ajaxComplete",[T,d]),--Z.active||Z.event.trigger("ajaxStop")))}"object"==Object(Se["a"])(e)&&(n=e,e=t),n=n||{};var r,o,a,l,s,c,u,f,d=Z.ajaxSetup({},n),p=d.context||d,h=p!==d&&(p.nodeType||p instanceof Z)?Z(p):Z.event,m=Z.Deferred(),y=Z.Callbacks("once memory"),g=d.statusCode||{},v={},b={},x=0,w="canceled",T={readyState:0,setRequestHeader:function(e,t){if(!x){var n=e.toLowerCase();e=b[n]=b[n]||e,v[e]=t}return this},getAllResponseHeaders:function(){return 2===x?o:null},getResponseHeader:function(e){var n;if(2===x){if(!a){a={};while(n=Mt.exec(o))a[n[1].toLowerCase()]=n[2]}n=a[e.toLowerCase()]}return n===t?null:n},overrideMimeType:function(e){return x||(d.mimeType=e),this},abort:function(e){return e=e||w,l&&l.abort(e),i(0,e),this}};if(m.promise(T),T.success=T.done,T.error=T.fail,T.complete=y.add,T.statusCode=function(e){var t;if(e)if(x<2)for(t in e)g[t]=[g[t],e[t]];else t=e[T.status],T.always(t);return this},d.url=((e||d.url)+"").replace(Lt,"").replace(jt,zt[1]+"//"),d.dataTypes=Z.trim(d.dataType||"*").toLowerCase().split(ne),null==d.crossDomain&&(c=Dt.exec(d.url.toLowerCase()),d.crossDomain=!(!c||c[1]===zt[1]&&c[2]===zt[2]&&(c[3]||("http:"===c[1]?80:443))==(zt[3]||("http:"===zt[1]?80:443)))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Z.param(d.data,d.traditional)),z(_t,d,n,T),2===x)return T;if(u=d.global,d.type=d.type.toUpperCase(),d.hasContent=!St.test(d.type),u&&0===Z.active++&&Z.event.trigger("ajaxStart"),!d.hasContent&&(d.data&&(d.url+=(Ht.test(d.url)?"&":"?")+d.data,delete d.data),r=d.url,!1===d.cache)){var k=Z.now(),C=d.url.replace(Bt,"$1_="+k);d.url=C+(C===d.url?(Ht.test(d.url)?"&":"?")+"_="+k:"")}for(f in(d.data&&d.hasContent&&!1!==d.contentType||n.contentType)&&T.setRequestHeader("Content-Type",d.contentType),d.ifModified&&(r=r||d.url,Z.lastModified[r]&&T.setRequestHeader("If-Modified-Since",Z.lastModified[r]),Z.etag[r]&&T.setRequestHeader("If-None-Match",Z.etag[r])),T.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Pt+"; q=0.01":""):d.accepts["*"]),d.headers)T.setRequestHeader(f,d.headers[f]);if(!d.beforeSend||!1!==d.beforeSend.call(p,T,d)&&2!==x){for(f in w="abort",{success:1,error:1,complete:1})T[f](d[f]);if(l=z(It,d,n,T),l){T.readyState=1,u&&h.trigger("ajaxSend",[T,d]),d.async&&d.timeout>0&&(s=setTimeout((function(){T.abort("timeout")}),d.timeout));try{x=1,l.send(v,i)}catch(fe){if(!(x<2))throw fe;i(-1,fe)}}else i(-1,"No Transport");return T}return T.abort()},active:0,lastModified:{},etag:{}});var qt=[],Wt=/\?/,$t=/(=)\?(?=&|$)|\?\?/,Rt=Z.now();Z.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||Z.expando+"_"+Rt++;return this[e]=!0,e}}),Z.ajaxPrefilter("json jsonp",(function(n,i,r){var o,a,l,s=n.data,c=n.url,u=!1!==n.jsonp,f=u&&$t.test(c),d=u&&!f&&"string"==typeof s&&!(n.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(s);if("jsonp"===n.dataTypes[0]||f||d)return o=n.jsonpCallback=Z.isFunction(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,a=e[o],f?n.url=c.replace($t,"$1"+o):d?n.data=s.replace($t,"$1"+o):u&&(n.url+=(Wt.test(c)?"&":"?")+n.jsonp+"="+o),n.converters["script json"]=function(){return l||Z.error(o+" was not called"),l[0]},n.dataTypes[0]="json",e[o]=function(){l=arguments},r.always((function(){e[o]=a,n[o]&&(n.jsonpCallback=i.jsonpCallback,qt.push(o)),l&&Z.isFunction(a)&&a(l[0]),l=a=t})),"script"})),Z.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return Z.globalEval(e),e}}}),Z.ajaxPrefilter("script",(function(e){e.cache===t&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),Z.ajaxTransport("script",(function(e){if(e.crossDomain){var n,i=W.head||W.getElementsByTagName("head")[0]||W.documentElement;return{send:function(r,o){n=W.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(e,r){(r||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,i&&n.parentNode&&i.removeChild(n),n=t,r||o(200,"success"))},i.insertBefore(n,i.firstChild)},abort:function(){n&&n.onload(0,1)}}}}));var Vt,Xt=!!e.ActiveXObject&&function(){for(var e in Vt)Vt[e](0,1)},Ut=0;Z.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&N()||S()}:N,function(e){Z.extend(Z.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(Z.ajaxSettings.xhr()),Z.support.ajax&&Z.ajaxTransport((function(n){var i;if(!n.crossDomain||Z.support.cors)return{send:function(r,o){var a,l,s=n.xhr();if(n.username?s.open(n.type,n.url,n.async,n.username,n.password):s.open(n.type,n.url,n.async),n.xhrFields)for(l in n.xhrFields)s[l]=n.xhrFields[l];n.mimeType&&s.overrideMimeType&&s.overrideMimeType(n.mimeType),!n.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(l in r)s.setRequestHeader(l,r[l])}catch(U){}s.send(n.hasContent&&n.data||null),i=function(e,r){var l,c,u,f,d;try{if(i&&(r||4===s.readyState))if(i=t,a&&(s.onreadystatechange=Z.noop,Xt&&delete Vt[a]),r)4!==s.readyState&&s.abort();else{l=s.status,u=s.getAllResponseHeaders(),f={},d=s.responseXML,d&&d.documentElement&&(f.xml=d);try{f.text=s.responseText}catch(Q){}try{c=s.statusText}catch(Q){c=""}l||!n.isLocal||n.crossDomain?1223===l&&(l=204):l=f.text?200:404}}catch(K){r||o(-1,K)}f&&o(l,c,f,u)},n.async?4===s.readyState?setTimeout(i,0):(a=++Ut,Xt&&(Vt||(Vt={},Z(e).unload(Xt)),Vt[a]=i),s.onreadystatechange=i):i()},abort:function(){i&&i(0,1)}}}));var Yt,Jt,Gt=/^(?:toggle|show|hide)$/,Qt=new RegExp("^(?:([-+])=|)("+ee+")([a-z%]*)$","i"),Kt=/queueHooks$/,Zt=[D],en={"*":[function(e,t){var n,i,r=this.createTween(e,t),o=Qt.exec(t),a=r.cur(),l=+a||0,s=1,c=20;if(o){if(n=+o[2],i=o[3]||(Z.cssNumber[e]?"":"px"),"px"!==i&&l){l=Z.css(r.elem,e,!0)||n||1;do{s=s||".5",l/=s,Z.style(r.elem,e,l+i)}while(s!==(s=r.cur()/a)&&1!==s&&--c)}r.unit=i,r.start=l,r.end=o[1]?l+(o[1]+1)*n:n}return r}]};Z.Animation=Z.extend(A,{tweener:function(e,t){Z.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,i=0,r=e.length;i-1,f={},d={};u?(d=a.position(),r=d.top,o=d.left):(r=parseFloat(s)||0,o=parseFloat(c)||0),Z.isFunction(t)&&(t=t.call(e,n,l)),null!=t.top&&(f.top=t.top-l.top+r),null!=t.left&&(f.left=t.left-l.left+o),"using"in t?t.using.call(e,f):a.css(f)}},Z.fn.extend({position:function(){if(this[0]){var e=this[0],t=this.offsetParent(),n=this.offset(),i=tn.test(t[0].nodeName)?{top:0,left:0}:t.offset();return n.top-=parseFloat(Z.css(e,"marginTop"))||0,n.left-=parseFloat(Z.css(e,"marginLeft"))||0,i.top+=parseFloat(Z.css(t[0],"borderTopWidth"))||0,i.left+=parseFloat(Z.css(t[0],"borderLeftWidth"))||0,{top:n.top-i.top,left:n.left-i.left}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent||W.body;while(e&&!tn.test(e.nodeName)&&"static"===Z.css(e,"position"))e=e.offsetParent;return e||W.body}))}}),Z.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,n){var i=/Y/.test(n);Z.fn[e]=function(r){return Z.access(this,(function(e,r,o){var a=I(e);if(o===t)return a?n in a?a[n]:a.document.documentElement[r]:e[r];a?a.scrollTo(i?Z(a).scrollLeft():o,i?o:Z(a).scrollTop()):e[r]=o}),e,r,arguments.length,null)}})),Z.each({Height:"height",Width:"width"},(function(e,n){Z.each({padding:"inner"+e,content:n,"":"outer"+e},(function(i,r){Z.fn[r]=function(r,o){var a=arguments.length&&(i||"boolean"!=typeof r),l=i||(!0===r||!0===o?"margin":"border");return Z.access(this,(function(n,i,r){var o;return Z.isWindow(n)?n.document.documentElement["client"+e]:9===n.nodeType?(o=n.documentElement,Math.max(n.body["scroll"+e],o["scroll"+e],n.body["offset"+e],o["offset"+e],o["client"+e])):r===t?Z.css(n,i,r,l):Z.style(n,i,r,l)}),n,a?r:t,a,null)}}))})),e.jQuery=e.$=Z,"function"==typeof define&&n("3c35")&&n("3c35").jQuery&&define("jquery",[],(function(){return Z}))})(window),function(e,t){var i,r,o=e.layui&&layui.define,a={getPath:function(){var e=document.currentScript?document.currentScript.src:function(){for(var e,t=document.scripts,n=t.length-1,i=n;i>0;i--)if("interactive"===t[i].readyState){e=t[i].src;break}return e||t[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),config:{},end:{},minIndex:0,minLeft:[],btn:["确定","取消"],type:["dialog","page","iframe","loading","tips"],getStyle:function(t,n){var i=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return i[i.getPropertyValue?"getPropertyValue":"getAttribute"](n)},link:function(t,n,i){if(l.path){var r=document.getElementsByTagName("head")[0],o=document.createElement("link");"string"===typeof n&&(i=n);var s=(i||t).replace(/\.|\//g,""),c="layuicss-"+s,u=0;o.rel="stylesheet",o.href=l.path+t,o.id=c,document.getElementById(c)||r.appendChild(o),"function"===typeof n&&function t(){if(++u>80)return e.console&&console.error("layer.css: Invalid");1989===parseInt(a.getStyle(document.getElementById(c),"width"))?n():setTimeout(t,100)}()}}},l={v:"3.1.1",ie:function(){var t=navigator.userAgent.toLowerCase();return!!(e.ActiveXObject||"ActiveXObject"in e)&&((t.match(/msie\s(\d+)/)||[])[1]||"11")}(),index:e.layer&&e.layer.v?1e5:0,path:a.getPath,config:function(e,t){return e=e||{},l.cache=a.config=i.extend({},a.config,e),l.path=a.config.path||l.path,"string"===typeof e.extend&&(e.extend=[e.extend]),a.config.path&&l.ready(),e.extend?(o?layui.addcss("modules/layer/"+e.extend):a.link("theme/"+e.extend),this):this},ready:function(e){return this},alert:function(e,t,n){var r="function"===typeof t;return r&&(n=t),l.open(i.extend({content:e,yes:n},r?{}:t))},confirm:function(e,t,n,r){var o="function"===typeof t;return o&&(r=n,n=t),l.open(i.extend({content:e,btn:a.btn,yes:n,btn2:r},o?{}:t))},msg:function(e,n,r){var o="function"===typeof n,s=a.config.skin,u=(s?s+" "+s+"-msg":"")||"layui-layer-msg",f=c.anim.length-1;return o&&(r=n),l.open(i.extend({content:e,time:3e3,shade:!1,skin:u,title:!1,closeBtn:!1,btn:!1,resize:!1,end:r},o&&!a.config.skin?{skin:u+" layui-layer-hui",anim:f}:function(){return n=n||{},(-1===n.icon||n.icon===t&&!a.config.skin)&&(n.skin=u+" "+(n.skin||"layui-layer-hui")),n}()))},load:function(e,t){return l.open(i.extend({type:3,icon:e||0,resize:!1,shade:.01},t))},tips:function(e,t,n){return l.open(i.extend({type:4,content:[e,t],closeBtn:!1,time:3e3,shade:!1,resize:!1,fixed:!1,maxWidth:210},n))}},s=function(e){var t=this;t.index=++l.index,t.config=i.extend({},t.config,a.config,e),document.body?t.creat():setTimeout((function(){t.creat()}),30)};s.pt=s.prototype;var c=["layui-layer",".layui-layer-title",".layui-layer-main",".layui-layer-dialog","layui-layer-iframe","layui-layer-content","layui-layer-btn","layui-layer-close"];c.anim=["layer-anim-00","layer-anim-01","layer-anim-02","layer-anim-03","layer-anim-04","layer-anim-05","layer-anim-06"],s.pt.config={type:0,shade:.3,fixed:!0,move:c[1],title:"信息",offset:"auto",area:"auto",closeBtn:1,time:0,zIndex:19891014,maxWidth:360,anim:0,isOutAnim:!0,icon:-1,moveType:1,resize:!0,scrollbar:!0,tips:2},s.pt.vessel=function(e,t){var n=this,r=n.index,o=n.config,l=o.zIndex+r,s="object"===Object(Se["a"])(o.title),u=o.maxmin&&(1===o.type||2===o.type),f=o.title?'
'+(s?o.title[0]:o.title)+"
":"";return o.zIndex=l,t([o.shade?'
':"",'
'+(e&&2!=o.type?"":f)+'
'+(0==o.type&&-1!==o.icon?'':"")+(1==o.type&&e?"":o.content||"")+'
'+function(){var e=u?'':"";return o.closeBtn&&(e+=''),e}()+""+(o.btn?function(){var e="";"string"===typeof o.btn&&(o.btn=[o.btn]);for(var t=0,n=o.btn.length;t'+o.btn[t]+"";return'
'+e+"
"}():"")+(o.resize?'':"")+"
"],f,i('
')),n},s.pt.creat=function(){var e=this,t=e.config,n=e.index,o=t.content,s="object"===Object(Se["a"])(o),u=i("body");if(!t.id||!i("#"+t.id)[0]){switch("string"===typeof t.area&&(t.area="auto"===t.area?["",""]:[t.area,""]),t.shift&&(t.anim=t.shift),6==l.ie&&(t.fixed=!1),t.type){case 0:t.btn="btn"in t?t.btn:a.btn[0],l.closeAll("dialog");break;case 2:o=t.content=s?t.content:[t.content||"http://layer.layui.com","auto"];t.content='';break;case 3:delete t.title,delete t.closeBtn,-1===t.icon&&t.icon,l.closeAll("loading");break;case 4:s||(t.content=[t.content,"body"]),t.follow=t.content[1],t.content=t.content[0]+'',delete t.title,t.tips="object"===Object(Se["a"])(t.tips)?t.tips:[t.tips,!0],t.tipsMore||l.closeAll("tips");break}if(e.vessel(s,(function(r,l,f){u.append(r[0]),s?function(){2==t.type||4==t.type?function(){i("body").append(r[1])}():function(){o.parents("."+c[0])[0]||(o.data("display",o.css("display")).show().addClass("layui-layer-wrap").wrap(r[1]),i("#"+c[0]+n).find("."+c[5]).before(l))}()}():u.append(r[1]),i(".layui-layer-move")[0]||u.append(a.moveElem=f),e.layero=i("#"+c[0]+n),t.scrollbar||c.html.css("overflow","hidden").attr("layer-full",n)})).auto(n),i("#layui-layer-shade"+e.index).css({"background-color":t.shade[1]||"#000",opacity:t.shade[0]||t.shade}),2==t.type&&6==l.ie&&e.layero.find("iframe").attr("src",o[0]),4==t.type?e.tips():e.offset(),t.fixed&&r.on("resize",(function(){e.offset(),(/^\d+%$/.test(t.area[0])||/^\d+%$/.test(t.area[1]))&&e.auto(n),4==t.type&&e.tips()})),t.time<=0||setTimeout((function(){l.close(e.index)}),t.time),e.move().callback(),c.anim[t.anim]){var f="layer-anim "+c.anim[t.anim];e.layero.addClass(f).one("webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend",(function(){i(this).removeClass(f)}))}t.isOutAnim&&e.layero.data("isOutAnim",!0)}},s.pt.auto=function(e){var t=this,n=t.config,o=i("#"+c[0]+e);""===n.area[0]&&n.maxWidth>0&&(l.ie&&l.ie<8&&n.btn&&o.width(o.innerWidth()),o.outerWidth()>n.maxWidth&&o.width(n.maxWidth));var a=[o.innerWidth(),o.innerHeight()],s=o.find(c[1]).outerHeight()||0,u=o.find("."+c[6]).outerHeight()||0,f=function(e){e=o.find(e),e.height(a[1]-s-u-2*(0|parseFloat(e.css("padding-top"))))};switch(n.type){case 2:f("iframe");break;default:""===n.area[1]?n.maxHeight>0&&o.outerHeight()>n.maxHeight?(a[1]=n.maxHeight,f("."+c[5])):n.fixed&&a[1]>=r.height()&&(a[1]=r.height(),f("."+c[5])):f("."+c[5]);break}return t},s.pt.offset=function(){var e=this,t=e.config,n=e.layero,i=[n.outerWidth(),n.outerHeight()],o="object"===Object(Se["a"])(t.offset);e.offsetTop=(r.height()-i[1])/2,e.offsetLeft=(r.width()-i[0])/2,o?(e.offsetTop=t.offset[0],e.offsetLeft=t.offset[1]||e.offsetLeft):"auto"!==t.offset&&("t"===t.offset?e.offsetTop=0:"r"===t.offset?e.offsetLeft=r.width()-i[0]:"b"===t.offset?e.offsetTop=r.height()-i[1]:"l"===t.offset?e.offsetLeft=0:"lt"===t.offset?(e.offsetTop=0,e.offsetLeft=0):"lb"===t.offset?(e.offsetTop=r.height()-i[1],e.offsetLeft=0):"rt"===t.offset?(e.offsetTop=0,e.offsetLeft=r.width()-i[0]):"rb"===t.offset?(e.offsetTop=r.height()-i[1],e.offsetLeft=r.width()-i[0]):e.offsetTop=t.offset),t.fixed||(e.offsetTop=/%$/.test(e.offsetTop)?r.height()*parseFloat(e.offsetTop)/100:parseFloat(e.offsetTop),e.offsetLeft=/%$/.test(e.offsetLeft)?r.width()*parseFloat(e.offsetLeft)/100:parseFloat(e.offsetLeft),e.offsetTop+=r.scrollTop(),e.offsetLeft+=r.scrollLeft()),n.attr("minLeft")&&(e.offsetTop=r.height()-(n.find(c[1]).outerHeight()||0),e.offsetLeft=n.css("left")),n.css({top:e.offsetTop,left:e.offsetLeft})},s.pt.tips=function(){var e=this,t=e.config,n=e.layero,o=[n.outerWidth(),n.outerHeight()],a=i(t.follow);a[0]||(a=i("body"));var l={width:a.outerWidth(),height:a.outerHeight(),top:a.offset().top,left:a.offset().left},s=n.find(".layui-layer-TipsG"),u=t.tips[0];t.tips[1]||s.remove(),l.autoLeft=function(){l.left+o[0]-r.width()>0?(l.tipLeft=l.left+l.width-o[0],s.css({right:12,left:"auto"})):l.tipLeft=l.left},l.where=[function(){l.autoLeft(),l.tipTop=l.top-o[1]-10,s.removeClass("layui-layer-TipsB").addClass("layui-layer-TipsT").css("border-right-color",t.tips[1])},function(){l.tipLeft=l.left+l.width+10,l.tipTop=l.top,s.removeClass("layui-layer-TipsL").addClass("layui-layer-TipsR").css("border-bottom-color",t.tips[1])},function(){l.autoLeft(),l.tipTop=l.top+l.height+10,s.removeClass("layui-layer-TipsT").addClass("layui-layer-TipsB").css("border-right-color",t.tips[1])},function(){l.tipLeft=l.left-o[0]-10,l.tipTop=l.top,s.removeClass("layui-layer-TipsR").addClass("layui-layer-TipsL").css("border-bottom-color",t.tips[1])}],l.where[u-1](),1===u?l.top-(r.scrollTop()+o[1]+16)<0&&l.where[2]():2===u?r.width()-(l.left+l.width+o[0]+16)>0||l.where[3]():3===u?l.top-r.scrollTop()+l.height+o[1]+16-r.height()>0&&l.where[0]():4===u&&o[0]+16-l.left>0&&l.where[1](),n.find("."+c[5]).css({"background-color":t.tips[1],"padding-right":t.closeBtn?"30px":""}),n.css({left:l.tipLeft-(t.fixed?r.scrollLeft():0),top:l.tipTop-(t.fixed?r.scrollTop():0)})},s.pt.move=function(){var e=this,t=e.config,n=i(document),o=e.layero,s=o.find(t.move),c=o.find(".layui-layer-resize"),u={};return t.move&&s.css("cursor","move"),s.on("mousedown",(function(e){e.preventDefault(),t.move&&(u.moveStart=!0,u.offset=[e.clientX-parseFloat(o.css("left")),e.clientY-parseFloat(o.css("top"))],a.moveElem.css("cursor","move").show())})),c.on("mousedown",(function(e){e.preventDefault(),u.resizeStart=!0,u.offset=[e.clientX,e.clientY],u.area=[o.outerWidth(),o.outerHeight()],a.moveElem.css("cursor","se-resize").show()})),n.on("mousemove",(function(n){if(u.moveStart){var i=n.clientX-u.offset[0],a=n.clientY-u.offset[1],s="fixed"===o.css("position");if(n.preventDefault(),u.stX=s?0:r.scrollLeft(),u.stY=s?0:r.scrollTop(),!t.moveOut){var c=r.width()-o.outerWidth()+u.stX,f=r.height()-o.outerHeight()+u.stY;ic&&(i=c),af&&(a=f)}o.css({left:i,top:a})}if(t.resize&&u.resizeStart){i=n.clientX-u.offset[0],a=n.clientY-u.offset[1];n.preventDefault(),l.style(e.index,{width:u.area[0]+i,height:u.area[1]+a}),u.isResize=!0,t.resizing&&t.resizing(o)}})).on("mouseup",(function(e){u.moveStart&&(delete u.moveStart,a.moveElem.hide(),t.moveEnd&&t.moveEnd(o)),u.resizeStart&&(delete u.resizeStart,a.moveElem.hide())})),e},s.pt.callback=function(){var e=this,t=e.layero,n=e.config;function r(){var i=n.cancel&&n.cancel(e.index,t);!1===i||l.close(e.index)}e.openLayer(),n.success&&(2==n.type?t.find("iframe").on("load",(function(){n.success(t,e.index)})):n.success(t,e.index)),6==l.ie&&e.IE6(t),t.find("."+c[6]).children("a").on("click",(function(){var r=i(this).index();if(0===r)n.yes?n.yes(e.index,t):n["btn1"]?n["btn1"](e.index,t):l.close(e.index);else{var o=n["btn"+(r+1)]&&n["btn"+(r+1)](e.index,t);!1===o||l.close(e.index)}})),t.find("."+c[7]).on("click",r),n.shadeClose&&i("#layui-layer-shade"+e.index).on("click",(function(){l.close(e.index)})),t.find(".layui-layer-min").on("click",(function(){var i=n.min&&n.min(t);!1===i||l.min(e.index,n)})),t.find(".layui-layer-max").on("click",(function(){i(this).hasClass("layui-layer-maxmin")?(l.restore(e.index),n.restore&&n.restore(t)):(l.full(e.index,n),setTimeout((function(){n.full&&n.full(t)}),100))})),n.end&&(a.end[e.index]=n.end)},a.reselect=function(){i.each(i("select"),(function(e,t){var n=i(this);n.parents("."+c[0])[0]||1==n.attr("layer")&&i("."+c[0]).length<1&&n.removeAttr("layer").show(),n=null}))},s.pt.IE6=function(e){i("select").each((function(e,t){var n=i(this);n.parents("."+c[0])[0]||"none"===n.css("display")||n.attr({layer:"1"}).hide(),n=null}))},s.pt.openLayer=function(){var e=this;l.zIndex=e.config.zIndex,l.setTop=function(e){var t=function(){l.zIndex++,e.css("z-index",l.zIndex+1)};return l.zIndex=parseInt(e[0].style.zIndex),e.on("mousedown",t),l.zIndex}},a.record=function(e){var t=[e.width(),e.height(),e.position().top,e.position().left+parseFloat(e.css("margin-left"))];e.find(".layui-layer-max").addClass("layui-layer-maxmin"),e.attr({area:t})},a.rescollbar=function(e){c.html.attr("layer-full")==e&&(c.html[0].style.removeProperty?c.html[0].style.removeProperty("overflow"):c.html[0].style.removeAttribute("overflow"),c.html.removeAttr("layer-full"))},e.layer=l,l.getChildFrame=function(e,t){return t=t||i("."+c[4]).attr("times"),i("#"+c[0]+t).find("iframe").contents().find(e)},l.getFrameIndex=function(e){return i("#"+e).parents("."+c[4]).attr("times")},l.iframeAuto=function(e){if(e){var t=l.getChildFrame("html",e).outerHeight(),n=i("#"+c[0]+e),r=n.find(c[1]).outerHeight()||0,o=n.find("."+c[6]).outerHeight()||0;n.css({height:t+r+o}),n.find("iframe").css({height:t})}},l.iframeSrc=function(e,t){i("#"+c[0]+e).find("iframe").attr("src",t)},l.style=function(e,t,n){var r=i("#"+c[0]+e),o=r.find(".layui-layer-content"),l=r.attr("type"),s=r.find(c[1]).outerHeight()||0,u=r.find("."+c[6]).outerHeight()||0;r.attr("minLeft");l!==a.type[3]&&l!==a.type[4]&&(n||(parseFloat(t.width)<=260&&(t.width=260),parseFloat(t.height)-s-u<=64&&(t.height=64+s+u)),r.css(t),u=r.find("."+c[6]).outerHeight(),l===a.type[2]?r.find("iframe").css({height:parseFloat(t.height)-s-u}):o.css({height:parseFloat(t.height)-s-u-parseFloat(o.css("padding-top"))-parseFloat(o.css("padding-bottom"))}))},l.min=function(e,t){var n=i("#"+c[0]+e),o=n.find(c[1]).outerHeight()||0,s=n.attr("minLeft")||181*a.minIndex+"px",u=n.css("position");a.record(n),a.minLeft[0]&&(s=a.minLeft[0],a.minLeft.shift()),n.attr("position",u),l.style(e,{width:180,height:o,left:s,top:r.height()-o,position:"fixed",overflow:"hidden"},!0),n.find(".layui-layer-min").hide(),"page"===n.attr("type")&&n.find(c[4]).hide(),a.rescollbar(e),n.attr("minLeft")||a.minIndex++,n.attr("minLeft",s)},l.restore=function(e){var t=i("#"+c[0]+e),n=t.attr("area").split(",");t.attr("type");l.style(e,{width:parseFloat(n[0]),height:parseFloat(n[1]),top:parseFloat(n[2]),left:parseFloat(n[3]),position:t.attr("position"),overflow:"visible"},!0),t.find(".layui-layer-max").removeClass("layui-layer-maxmin"),t.find(".layui-layer-min").show(),"page"===t.attr("type")&&t.find(c[4]).show(),a.rescollbar(e)},l.full=function(e){var t,n=i("#"+c[0]+e);a.record(n),c.html.attr("layer-full")||c.html.css("overflow","hidden").attr("layer-full",e),clearTimeout(t),t=setTimeout((function(){var t="fixed"===n.css("position");l.style(e,{top:t?0:r.scrollTop(),left:t?0:r.scrollLeft(),width:r.width(),height:r.height()},!0),n.find(".layui-layer-min").hide()}),100)},l.title=function(e,t){var n=i("#"+c[0]+(t||l.index)).find(c[1]);n.html(e)},l.close=function(e){var t=i("#"+c[0]+e),n=t.attr("type"),r="layer-anim-close";if(t[0]){var o="layui-layer-wrap",s=function(){if(n===a.type[1]&&"object"===t.attr("conType")){t.children(":not(."+c[5]+")").remove();for(var r=t.find("."+o),l=0;l<2;l++)r.unwrap();r.css("display",r.data("display")).removeClass(o)}else{if(n===a.type[2])try{var s=i("#"+c[4]+e)[0];s.contentWindow.document.write(""),s.contentWindow.close(),t.find("."+c[5])[0].removeChild(s)}catch(u){}t[0].innerHTML="",t.remove()}"function"===typeof a.end[e]&&a.end[e](),delete a.end[e]};t.data("isOutAnim")&&t.addClass("layer-anim "+r),i("#layui-layer-moves, #layui-layer-shade"+e).remove(),6==l.ie&&a.reselect(),a.rescollbar(e),t.attr("minLeft")&&(a.minIndex--,a.minLeft.push(t.attr("minLeft"))),l.ie&&l.ie<10||!t.data("isOutAnim")?s():setTimeout((function(){s()}),200)}},l.closeAll=function(e){i.each(i("."+c[0]),(function(){var t=i(this),n=e?t.attr("type")===e:1;n&&l.close(t.attr("times")),n=null}))};var u=l.cache||{},f=function(e){return u.skin?" "+u.skin+" "+u.skin+"-"+e:""};l.prompt=function(e,t){var n="";if(e=e||{},"function"===typeof e&&(t=e),e.area){var o=e.area;n='style="width: '+o[0]+"; height: "+o[1]+';"',delete e.area}var a,s=2==e.formType?'":function(){return''}(),c=e.success;return delete e.success,l.open(i.extend({type:1,btn:["确定","取消"],content:s,skin:"layui-layer-prompt"+f("prompt"),maxWidth:r.width(),success:function(e){a=e.find(".layui-layer-input"),a.focus(),"function"===typeof c&&c(e)},resize:!1,yes:function(n){var i=a.val();""===i?a.focus():i.length>(e.maxlength||500)?l.tips("最多输入"+(e.maxlength||500)+"个字数",a,{tips:1}):t&&t(i,n,a)}},e))},l.tab=function(e){e=e||{};var t=e.tab||{},n="layui-this",r=e.success;return delete e.success,l.open(i.extend({type:1,skin:"layui-layer-tab"+f("tab"),resize:!1,title:function(){var e=t.length,i=1,r="";if(e>0)for(r=''+t[0].title+"";i"+t[i].title+"";return r}(),content:'
    '+function(){var e=t.length,i=1,r="";if(e>0)for(r='
  • '+(t[0].content||"no content")+"
  • ";i'+(t[i].content||"no content")+"";return r}()+"
",success:function(t){var o=t.find(".layui-layer-title").children(),a=t.find(".layui-layer-tabmain").children();o.on("mousedown",(function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0;var r=i(this),o=r.index();r.addClass(n).siblings().removeClass(n),a.eq(o).show().siblings().hide(),"function"===typeof e.change&&e.change(o)})),"function"===typeof r&&r(t)}},e))},l.photos=function(t,n,r){var o={};if(t=t||{},t.photos){var a=t.photos.constructor===Object,s=a?t.photos:{},c=s.data||[],u=s.start||0;o.imgIndex=1+(0|u),t.img=t.img||"img";var d=t.success;if(delete t.success,a){if(0===c.length)return l.msg("没有图片")}else{var p=i(t.photos),h=function(){c=[],p.find(t.img).each((function(e){var t=i(this);t.attr("layer-index",e),c.push({alt:t.attr("alt"),pid:t.attr("layer-pid"),src:t.attr("layer-src")||t.attr("src"),thumb:t.attr("src")})}))};if(h(),0===c.length)return;if(n||p.on("click",t.img,(function(){var e=i(this),n=e.attr("layer-index");l.photos(i.extend(t,{photos:{start:n,data:c,tab:t.tab},full:t.full}),!0),h()})),!n)return}o.imgprev=function(e){o.imgIndex--,o.imgIndex<1&&(o.imgIndex=c.length),o.tabimg(e)},o.imgnext=function(e,t){o.imgIndex++,o.imgIndex>c.length&&(o.imgIndex=1,t)||o.tabimg(e)},o.keyup=function(e){if(!o.end){var t=e.keyCode;e.preventDefault(),37===t?o.imgprev(!0):39===t?o.imgnext(!0):27===t&&l.close(o.index)}},o.tabimg=function(e){if(!(c.length<=1))return s.start=o.imgIndex-1,l.close(o.index),l.photos(t,!0,e)},o.event=function(){o.bigimg.hover((function(){o.imgsee.show()}),(function(){o.imgsee.hide()})),o.bigimg.find(".layui-layer-imgprev").on("click",(function(e){e.preventDefault(),o.imgprev()})),o.bigimg.find(".layui-layer-imgnext").on("click",(function(e){e.preventDefault(),o.imgnext()})),i(document).on("keyup",o.keyup)},o.loadi=l.load(1,{shade:!("shade"in t)&&.9,scrollbar:!1}),m(c[u].src,(function(n){l.close(o.loadi),o.index=l.open(i.extend({type:1,id:"layui-layer-photos",area:function(){var r=[n.width,n.height],o=[i(e).width()-100,i(e).height()-100];if(!t.full&&(r[0]>o[0]||r[1]>o[1])){var a=[r[0]/o[0],r[1]/o[1]];a[0]>a[1]?(r[0]=r[0]/a[0],r[1]=r[1]/a[0]):a[0]'+(c[u].alt||
'+(c.length>1?'':"")+'
'+(c[u].alt||"")+""+o.imgIndex+"/"+c.length+"
",success:function(e,n){o.bigimg=e.find(".layui-layer-phimg"),o.imgsee=e.find(".layui-layer-imguide,.layui-layer-imgbar"),o.event(e),t.tab&&t.tab(c[u],e),"function"===typeof d&&d(e)},end:function(){o.end=!0,i(document).off("keyup",o.keyup)}},t))}),(function(){l.close(o.loadi),l.msg("当前图片地址异常
是否继续查看下一张?",{time:3e4,btn:["下一张","不看了"],yes:function(){c.length>1&&o.imgnext(!0,!0)}})}))}function m(e,t,n){var i=new Image;if(i.src=e,i.complete)return t(i);i.onload=function(){i.onload=null,t(i)},i.onerror=function(e){i.onerror=null,n(e)}}},a.run=function(t){i=t,r=i(e),c.html=i("html"),l.open=function(e){var t=new s(e);return t.index}},e.layui&&layui.define?(l.ready(),layui.define("jquery",(function(t){l.path=layui.cache.dir,a.run(layui.$),e.layer=l,t("layer",l)}))):"function"===typeof define&&n("3c35")?define(["jquery"],(function(){return a.run(e.jQuery),l})):function(){a.run(e.jQuery),l.ready()}()}(window);var je=layer,He=$,Ae=(n("9114"),n("bc3a")),Be=n.n(Ae),De=n("69d9"),Oe=n("4eb5"),_e=n.n(Oe),Ie=n("e166"),Pe=n.n(Ie),qe=(n("35a1"),n("2c43"),n("9aba")),We=n.n(qe),$e=(n("64d2"),n("cf0d")),Re=n.n($e);i["default"].prototype.layer=je,i["default"].prototype.$=He,i["default"].config.productionTip=!1,i["default"].prototype.common=De["a"],_e.a.config.autoSetContainer=!0,i["default"].use(_e.a),i["default"].use(Pe.a,{}),Be.a.defaults.withCredentials=!0,Be.a.interceptors.request.use((function(e){var t=e.url;if("get"===e.method&&e.params){t+="?";for(var n=Object.keys(e.params),i=0,r=n;i.svgfont {display: inline-block;width: 1em;height: 1em;fill: currentColor;vertical-align: -0.1em;font-size:16px;}")}catch(t){console&&console.log(t)}}!function(t){if(document.addEventListener)if(~["complete","loaded","interactive"].indexOf(document.readyState))setTimeout(t,0);else{var n=function e(){document.removeEventListener("DOMContentLoaded",e,!1),t()};document.addEventListener("DOMContentLoaded",n,!1)}else document.attachEvent&&(r=t,o=e.document,a=!1,(l=function(){try{o.documentElement.doScroll("left")}catch(t){return void setTimeout(l,50)}i()})(),o.onreadystatechange=function(){"complete"==o.readyState&&(o.onreadystatechange=null,i())});function i(){a||(a=!0,r())}var r,o,a,l}((function(){var e,t,i,r,o,a;(e=document.createElement("div")).innerHTML=n,n=null,(t=e.getElementsByTagName("svg")[0])&&(t.setAttribute("aria-hidden","true"),t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.overflow="hidden",i=t,(r=document.body).firstChild?(o=i,(a=r.firstChild).parentNode.insertBefore(o,a)):r.appendChild(i))}))}(window)},fa52:function(e,t,n){"use strict";n.r(t);n("7f7f"),n("ac6a");var i=n("69d9"),r={tableData:[],currentDirectory:{},hoverRow:{},rightClickRow:{},searchParam:""},o={tableData:function(e,t){e.tableData=t},appendTableData:function(e,t){t&&(e.tableData=e.tableData.concat(t))}},a={tableData:function(e){var t=e.tableData;return t.forEach((function(e){e.icon||(e["icon"]=i["a"].getFileIconName(e))})),t},filterFileByType:function(e){return function(t){return e.tableData.filter((function(e){if("BACK"===e.type)return!1;var n=e.name,r=n.substr(n.lastIndexOf(".")+1).toLowerCase();return-1!==i["a"].constant.fileTypeMap[t].indexOf(r)}))}}},l={};t["default"]={state:r,mutations:o,getters:a,actions:l}}}); \ No newline at end of file diff --git a/src/main/resources/static/js/chunk-049ad60c.63f517c2.js b/src/main/resources/static/js/chunk-049ad60c.63f517c2.js deleted file mode 100644 index 471e799..0000000 --- a/src/main/resources/static/js/chunk-049ad60c.63f517c2.js +++ /dev/null @@ -1 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-049ad60c"],{"063c":function(e,t,r){"use strict";var o=r("5f95"),n=r.n(o);n.a},4127:function(e,t,r){"use strict";var o=r("d233"),n=r("b313"),a={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},c=function e(t,r,n,a,i,c,s,f,u,p,d,m){var y=t;if("function"===typeof s)y=s(r,y);else if(y instanceof Date)y=p(y);else if(null===y){if(a)return c&&!m?c(r,l.encoder):r;y=""}if("string"===typeof y||"number"===typeof y||"boolean"===typeof y||o.isBuffer(y)){if(c){var b=m?r:c(r,l.encoder);return[d(b)+"="+d(c(y,l.encoder))]}return[d(r)+"="+d(String(y))]}var h,v=[];if("undefined"===typeof y)return v;if(Array.isArray(s))h=s;else{var g=Object.keys(y);h=f?g.sort(f):g}for(var w=0;w0?C+S:""}},4328:function(e,t,r){"use strict";var o=r("4127"),n=r("9e6a"),a=r("b313");e.exports={formats:a,parse:n,stringify:o}},"5f95":function(e,t,r){},"615b":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-row",[r("el-col",{attrs:{span:16}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{id:"siteForm","element-loading-text":"保存中...",model:e.form,"label-width":"auto","status-icon":!0}},[r("el-form-item",{attrs:{label:"页面布局"}},[r("el-radio",{attrs:{label:"full"},model:{value:e.form.layout,callback:function(t){e.$set(e.form,"layout",t)},expression:"form.layout"}},[e._v("全屏")]),r("el-radio",{attrs:{label:"center"},model:{value:e.form.layout,callback:function(t){e.$set(e.form,"layout",t)},expression:"form.layout"}},[e._v("居中")])],1),r("el-form-item",{attrs:{label:"列表尺寸"}},[r("el-radio",{attrs:{label:"medium"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("大")]),r("el-radio",{attrs:{label:"small"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("中")]),r("el-radio",{attrs:{label:"mini"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("小")])],1),r("el-form-item",{attrs:{label:"显示操作按钮"}},[r("el-switch",{model:{value:e.form.showOperator,callback:function(t){e.$set(e.form,"showOperator",t)},expression:"form.showOperator"}}),r("span",{staticClass:"zfile-word-aux"},[e._v("显示下载和复制按钮, 在移动端只显示下载")])],1),r("el-form-item",{attrs:{label:"显示文档区"}},[r("el-switch",{model:{value:e.form.showDocument,callback:function(t){e.$set(e.form,"showDocument",t)},expression:"form.showDocument"}}),r("span",{staticClass:"zfile-word-aux"},[e._v("在文件列表下,显示当前文件夹中 readme.md 的内容")])],1),r("el-form-item",{attrs:{label:"显示公告"}},[r("el-switch",{model:{value:e.form.showAnnouncement,callback:function(t){e.$set(e.form,"showAnnouncement",t)},expression:"form.showAnnouncement"}}),r("span",{staticClass:"zfile-word-aux"},[e._v("网站顶部,显示公告内容")])],1),r("el-form-item",{attrs:{label:"公告内容"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入公告内容"},model:{value:e.form.announcement,callback:function(t){e.$set(e.form,"announcement",t)},expression:"form.announcement"}})],1),r("el-form-item",{attrs:{label:"自定义 CSS"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入自定义 CSS 内容"},model:{value:e.form.customCss,callback:function(t){e.$set(e.form,"customCss",t)},expression:"form.customCss"}})],1),r("el-form-item",{attrs:{label:"自定义 JS"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入自定义 JS 内容"},model:{value:e.form.customJs,callback:function(t){e.$set(e.form,"customJs",t)},expression:"form.customJs"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.submitForm("form")}}},[e._v("保存设置")])],1)],1)],1)],1)},n=[],a=r("4328"),i=r.n(a),l={name:"ViewSetting",data:function(){return{form:{layout:"",tableSize:"",showOperator:!1,showDocument:!1,showAnnouncement:!1,announcement:"",customCss:"",customJs:""},loading:!1}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.loading=!0,t.$http.post("admin/config",i.a.stringify(t.form)).then((function(e){t.loading=!1,0===e.data.code&&t.$message({message:"保存成功",type:"success"})}))}))}},mounted:function(){var e=this;this.$http.get("admin/config").then((function(t){e.form=t.data.data}))}},c=l,s=(r("063c"),r("2877")),f=Object(s["a"])(c,o,n,!1,null,"333298fb",null);t["default"]=f.exports},"9e6a":function(e,t,r){"use strict";var o=r("d233"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,i),c=0;c=0;--n){var a,i=e[n];if("[]"===i)a=[],a=a.concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,c=parseInt(l,10);!isNaN(c)&&i!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(a=[],a[c]=o):a[l]=o}o=a}return o},c=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,c=a.exec(o),s=c?o.slice(0,c.index):o,f=[];if(s){if(!r.plainObjects&&n.call(Object.prototype,s)&&!r.allowPrototypes)return;f.push(s)}var u=0;while(null!==(c=i.exec(o))&&u=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.charAt(o):a<128?r+=n[a]:a<2048?r+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?r+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),r+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return r},u=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","error",i),u.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}static i(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","info",i),u.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}static w(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","warn",i),u.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}static d(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","debug",i),u.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}static v(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","verbose",i),u.ENABLE_VERBOSE&&console.log(i)}}u.GLOBAL_TAG="flv.js",u.FORCE_GLOBAL_TAG=!1,u.ENABLE_ERROR=!0,u.ENABLE_INFO=!0,u.ENABLE_WARN=!0,u.ENABLE_DEBUG=!0,u.ENABLE_VERBOSE=!0,u.ENABLE_CALLBACK=!1,u.emitter=new d.a;var h=u;class c{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var f=c;class p{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class m extends p{constructor(e){super(e)}get name(){return"IllegalStateException"}}class g extends p{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class v extends p{constructor(e){super(e)}get name(){return"NotImplementedException"}}const y={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},_={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class E{constructor(e){this._type=e||"undefined",this._status=y.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=y.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===y.kConnecting||this._status===y.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new v("Unimplemented abstract function!")}abort(){throw new v("Unimplemented abstract function!")}}let b={};function S(){let e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:i[0]||""},n={};if(r.browser){n[r.browser]=!0;let e=r.majorVersion.split(".");n.version={major:parseInt(r.majorVersion,10),string:r.version},e.length>1&&(n.version.minor=parseInt(e[1],10)),e.length>2&&(n.version.build=parseInt(e[2],10))}if(r.platform&&(n[r.platform]=!0),(n.chrome||n.opr||n.safari)&&(n.webkit=!0),n.rv||n.iemobile){n.rv&&delete n.rv;let e="msie";r.browser=e,n[e]=!0}if(n.edge){delete n.edge;let e="msedge";r.browser=e,n[e]=!0}if(n.opr){let e="opera";r.browser=e,n[e]=!0}if(n.safari&&n.android){let e="android";r.browser=e,n[e]=!0}n.name=r.browser,n.platform=r.platform;for(let a in b)b.hasOwnProperty(a)&&delete b[a];Object.assign(b,n)}S();var T=b;class w extends E{static isSupported(){try{let e=T.msedge&&T.version.minor>=15048,t=!T.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);let r=this._seekHandler.getConfig(i,t),n=new self.Headers;if("object"===typeof r.headers){let e=r.headers;for(let t in e)e.hasOwnProperty(t)&&n.append(t,e[t])}let a={method:"GET",headers:n,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===typeof this._config.headers)for(let s in this._config.headers)n.append(s,this._config.headers[s]);!1===e.cors&&(a.mode="same-origin"),e.withCredentials&&(a.credentials="include"),e.referrerPolicy&&(a.referrerPolicy=e.referrerPolicy),this._status=y.kConnecting,self.fetch(r.url,a).then(e=>{if(this._requestAbort)return this._requestAbort=!1,void(this._status=y.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&this._onURLRedirect){let t=this._seekHandler.removeURLParameters(e.url);this._onURLRedirect(t)}let t=e.headers.get("Content-Length");return null!=t&&(this._contentLength=parseInt(t),0!==this._contentLength&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,e.body.getReader())}if(this._status=y.kError,!this._onError)throw new p("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(e=>{if(this._status=y.kError,!this._onError)throw e;this._onError(_.EXCEPTION,{code:-1,msg:e.message})})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(null!==this._contentLength&&this._receivedLength{if(11===e.code&&T.msedge)return;this._status=y.kError;let t=0,i=null;if(19!==e.code&&"network error"!==e.message||!(null===this._contentLength||null!==this._contentLength&&this._receivedLength299)){if(this._status=y.kError,!this._onError)throw new p("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=y.kBuffering}}_onProgress(e){if(this._status===y.kError)return;null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onLoadEnd(e){!0!==this._requestAbort?this._status!==y.kError&&(this._status=y.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}_onXhrError(e){this._status=y.kError;let t=0,i=null;if(this._contentLength&&e.loaded=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let i=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?i=this._currentRedirectedURL:void 0!=e.redirectedURL&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let n=this._xhr=new XMLHttpRequest;if(n.open("GET",r.url,!0),n.responseType="arraybuffer",n.onreadystatechange=this._onReadyStateChange.bind(this),n.onprogress=this._onProgress.bind(this),n.onload=this._onLoad.bind(this),n.onerror=this._onXhrError.bind(this),e.withCredentials&&(n.withCredentials=!0),"object"===typeof r.headers){let e=r.headers;for(let t in e)e.hasOwnProperty(t)&&n.setRequestHeader(t,e[t])}if("object"===typeof this._config.headers){let e=this._config.headers;for(let t in e)e.hasOwnProperty(t)&&n.setRequestHeader(t,e[t])}n.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=y.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){let e=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&e!==this._currentRedirectedURL&&(this._currentRedirectedURL=e,this._onURLRedirect&&this._onURLRedirect(e))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=y.kBuffering}else{if(this._status=y.kError,!this._onError)throw new p("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}_onProgress(e){if(this._status===y.kError)return;if(null===this._contentLength){let t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;let i=e.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,i=t.length-1,r=0,n=0,a=i;if(e=t[r]&&e=3&&(t=this._speedSampler.currentKBps)),0!==t){let e=this._normalizeSpeed(t);this._currentSpeedNormalized!==e&&(this._currentSpeedNormalized=e,this._currentChunkSizeKB=e)}let i=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;let n=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=y.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new p(t.msg);this._onError(_.EXCEPTION,t)}}_dispatchArrayBuffer(e){let t=e,i=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onWebSocketError(e){this._status=y.kError;let t={code:e.code,msg:e.message};if(!this._onError)throw new p(t.msg);this._onError(_.EXCEPTION,t)}}var C=I;class O{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let i={};if(0!==t.from||-1!==t.to){let e;e=-1!==t.to?`bytes=${t.from.toString()}-${t.to.toString()}`:`bytes=${t.from.toString()}-`,i["Range"]=e}else this._zeroStart&&(i["Range"]="bytes=0-");return{url:e,headers:i}}removeURLParameters(e){return e}}var x=O;class M{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let i=e;if(0!==t.from||-1!==t.to){let e=!0;-1===i.indexOf("?")&&(i+="?",e=!1),e&&(i+="&"),i+=`${this._startName}=${t.from.toString()}`,-1!==t.to&&(i+=`&${this._endName}=${t.to.toString()}`)}return{url:i,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],i=void 0,r=e.indexOf("?");-1!==r&&(i=e.substring(r+1));let n="";if(void 0!=i&&i.length>0){let e=i.split("&");for(let t=0;t0;i[0]!==this._startName&&i[0]!==this._endName&&(r&&(n+="&"),n+=e[t])}}return 0===n.length?t:t+"?"+n}}var P=M;class F{constructor(e,t,i){this.TAG="IOController",this._config=t,this._extraData=i,this._stashInitialSize=393216,void 0!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new f,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===D?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if("range"===e.seekType)this._seekHandler=new x(this._config.rangeLoadZeroStart);else if("param"===e.seekType){let t=e.seekParamStart||"bstart",i=e.seekParamEnd||"bend";this._seekHandler=new P(t,i)}else{if("custom"!==e.seekType)throw new g(`Invalid seekType in config: ${e.seekType}`);if("function"!==typeof e.customSeekHandler)throw new g("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}_selectLoader(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=C;else if(A.isSupported())this._loaderClass=A;else if(R.isSupported())this._loaderClass=R;else{if(!D.isSupported())throw new p("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=D}}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let i={from:e,to:-1};this._currentRange={from:i.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,i),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||"string"!==typeof e||0===e.length)throw new g("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;while(t+10485760){let e=new Uint8Array(this._stashBuffer,0,this._stashUsed),r=new Uint8Array(i,0,t);r.set(e,0)}this._stashBuffer=i,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,i=t.length-1,r=0,n=0,a=i;if(e=t[r]&&e=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);let i=1024*t+1048576;this._bufferSize0){let t=this._stashBuffer.slice(0,this._stashUsed),r=this._dispatchChunks(t,this._stashByteStart);if(r0){let e=new Uint8Array(t,r);i.set(e,0),this._stashUsed=e.byteLength,this._stashByteStart+=r}}else this._stashUsed=0,this._stashByteStart+=r;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let r=this._dispatchChunks(e,t);if(rthis._bufferSize&&(this._expandBuffer(n),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e,r),0),this._stashUsed+=n,this._stashByteStart=t+r}}}else if(0===this._stashUsed){let i=this._dispatchChunks(e,t);if(ithis._bufferSize&&this._expandBuffer(r);let n=new Uint8Array(this._stashBuffer,0,this._bufferSize);n.set(new Uint8Array(e,i),0),this._stashUsed+=r,this._stashByteStart=t+i}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let t=new Uint8Array(this._stashBuffer,0,this._bufferSize);t.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let i=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(i0){let e=new Uint8Array(this._stashBuffer,i);t.set(e,0)}this._stashUsed-=i,this._stashByteStart+=i}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-i;if(i0){let e=new Uint8Array(this._stashBuffer,0,this._bufferSize),r=new Uint8Array(t,i);e.set(r,0),this._stashUsed=r.byteLength,this._stashByteStart+=i}return 0}h.w(this.TAG,`${r} bytes unconsumed data remain when flush buffer, dropped`)}return this._stashUsed=0,this._stashByteStart=0,r}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(h.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=_.UNRECOVERABLE_EARLY_EOF),e){case _.EARLY_EOF:if(!this._config.isLive&&this._totalLength){let e=this._currentRange.to+1;return void(e0){let t=K.getConfig();e.emit("change",t)}}static registerListener(e){K.emitter.addListener("change",e)}static removeListener(e){K.emitter.removeListener("change",e)}static addLogListener(e){h.emitter.addListener("log",e),h.emitter.listenerCount("log")>0&&(h.ENABLE_CALLBACK=!0,K._notifyChange())}static removeLogListener(e){h.emitter.removeListener("log",e),0===h.emitter.listenerCount("log")&&(h.ENABLE_CALLBACK=!1,K._notifyChange())}}K.emitter=new d.a;var H=K;class z{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}isSeekable(){return!0===this.hasKeyframesIndex}getNearestKeyframe(e){if(null==this.keyframesIndex)return null;let t=this.keyframesIndex,i=this._search(t.times,e);return{index:i,milliseconds:t.times[i],fileposition:t.filepositions[i]}}_search(e,t){let i=0,r=e.length-1,n=0,a=0,s=r;t=e[n]&&t=128){t.push(String.fromCharCode(65535&e)),r+=2;continue}}}else if(i[r]<240){if(Y(i,r,2)){let e=(15&i[r])<<12|(63&i[r+1])<<6|63&i[r+2];if(e>=2048&&55296!==(63488&e)){t.push(String.fromCharCode(65535&e)),r+=3;continue}}}else if(i[r]<248&&Y(i,r,3)){let e=(7&i[r])<<18|(63&i[r+1])<<12|(63&i[r+2])<<6|63&i[r+3];if(e>65536&&e<1114112){e-=65536,t.push(String.fromCharCode(e>>>10|55296)),t.push(String.fromCharCode(1023&e|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")}var $=X;let Q=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();class J{static parseScriptData(e,t,i){let r={};try{let n=J.parseValue(e,t,i),a=J.parseValue(e,t+n.size,i-n.size);r[n.data]=a.data}catch(n){h.e("AMF",n.toString())}return r}static parseObject(e,t,i){if(i<3)throw new m("Data not enough when parse ScriptDataObject");let r=J.parseString(e,t,i),n=J.parseValue(e,t+r.size,i-r.size),a=n.objectEnd;return{data:{name:r.data,value:n.data},size:r.size+n.size,objectEnd:a}}static parseVariable(e,t,i){return J.parseObject(e,t,i)}static parseString(e,t,i){if(i<2)throw new m("Data not enough when parse String");let r,n=new DataView(e,t,i),a=n.getUint16(0,!Q);return r=a>0?$(new Uint8Array(e,t+2,a)):"",{data:r,size:2+a}}static parseLongString(e,t,i){if(i<4)throw new m("Data not enough when parse LongString");let r,n=new DataView(e,t,i),a=n.getUint32(0,!Q);return r=a>0?$(new Uint8Array(e,t+4,a)):"",{data:r,size:4+a}}static parseDate(e,t,i){if(i<10)throw new m("Data size invalid when parse Date");let r=new DataView(e,t,i),n=r.getFloat64(0,!Q),a=r.getInt16(8,!Q);return n+=60*a*1e3,{data:new Date(n),size:10}}static parseValue(e,t,i){if(i<1)throw new m("Data not enough when parse Value");let r,n=new DataView(e,t,i),a=1,s=n.getUint8(0),o=!1;try{switch(s){case 0:r=n.getFloat64(1,!Q),a+=8;break;case 1:{let e=n.getUint8(1);r=!!e,a+=1;break}case 2:{let n=J.parseString(e,t+1,i-1);r=n.data,a+=n.size;break}case 3:{r={};let s=0;9===(16777215&n.getUint32(i-4,!Q))&&(s=3);while(a32)throw new g("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}let t=this._current_word_bits_left?this._current_word:0;t>>>=32-this._current_word_bits_left;let i=e-this._current_word_bits_left;this._fillCurrentWord();let r=Math.min(i,this._current_word_bits_left),n=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,t=t<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}var te=ee;class ie{static _ebsp2rbsp(e){let t=e,i=t.byteLength,r=new Uint8Array(i),n=0;for(let a=0;a=2&&3===t[a]&&0===t[a-1]&&0===t[a-2]||(r[n]=t[a],n++);return new Uint8Array(r.buffer,0,n)}static parseSPS(e){let t=ie._ebsp2rbsp(e),i=new te(t);i.readByte();let r=i.readByte();i.readByte();let n=i.readByte();i.readUEG();let a=ie.getProfileString(r),s=ie.getLevelString(n),o=1,l=420,d=[0,420,422,444],u=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(o=i.readUEG(),3===o&&i.readBits(1),o<=3&&(l=d[o]),u=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool())){let e=3!==o?8:12;for(let t=0;t0&&e<16?(b=t[e-1],S=r[e-1]):255===e&&(b=i.readByte()<<8|i.readByte(),S=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){let e=i.readBits(32),t=i.readBits(32);w=i.readBool(),A=t,k=2*e,T=A/k}}let L=1;1===b&&1===S||(L=b/S);let D=0,I=0;if(0===o)D=1,I=2-m;else{let e=3===o?1:2,t=1===o?2:1;D=e,I=t*(2-m)}let C=16*(f+1),O=16*(p+1)*(2-m);C-=(g+v)*D,O-=(y+_)*I;let x=Math.ceil(C*L);return i.destroy(),i=null,{profile_string:a,level_string:s,bit_depth:u,ref_frames:c,chroma_format:l,chroma_format_string:ie.getChromaFormatString(l),frame_rate:{fixed:w,fps:T,fps_den:k,fps_num:A},sar_ratio:{width:b,height:S},codec_size:{width:C,height:O},present_size:{width:x,height:O}}}static _skipScalingList(e,t){let i=8,r=8,n=0;for(let a=0;a>>2!==0,n=0!==(1&t[4]),a=se(t,5);return a<9?i:{match:!0,consumed:a,dataOffset:a,hasAudioTrack:r,hasVideoTrack:n}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new W}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new m("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let i=0,r=this._littleEndian;if(0===t){if(!(e.byteLength>13))return 0;{let t=oe.probe(e);i=t.dataOffset}}if(this._firstParse){this._firstParse=!1,t+i!==this._dataOffset&&h.w(this.TAG,"First time parsing but chunk byteStart invalid!");let n=new DataView(e,i),a=n.getUint32(0,!r);0!==a&&h.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4}while(ie.byteLength)break;let a=n.getUint8(0),s=16777215&n.getUint32(0,!r);if(i+11+s+4>e.byteLength)break;if(8!==a&&9!==a&&18!==a){h.w(this.TAG,`Unsupported tag type ${a}, skipped`),i+=11+s+4;continue}let o=n.getUint8(4),l=n.getUint8(5),d=n.getUint8(6),u=n.getUint8(7),c=d|l<<8|o<<16|u<<24,f=16777215&n.getUint32(7,!r);0!==f&&h.w(this.TAG,"Meet tag which has StreamID != 0!");let p=i+11;switch(a){case 8:this._parseAudioData(e,p,s,c);break;case 9:this._parseVideoData(e,p,s,c,t+i);break;case 18:this._parseScriptData(e,p,s);break}let m=n.getUint32(11+s,!r);m!==11+s&&h.w(this.TAG,`Invalid PrevTagSize ${m}`),i+=11+s+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}_parseScriptData(e,t,i){let r=Z.parseScriptData(e,t,i);if(r.hasOwnProperty("onMetaData")){if(null==r.onMetaData||"object"!==typeof r.onMetaData)return void h.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&h.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;let e=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},e)),"boolean"===typeof e.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=e.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof e.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=e.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof e.audiodatarate&&(this._mediaInfo.audioDataRate=e.audiodatarate),"number"===typeof e.videodatarate&&(this._mediaInfo.videoDataRate=e.videodatarate),"number"===typeof e.width&&(this._mediaInfo.width=e.width),"number"===typeof e.height&&(this._mediaInfo.height=e.height),"number"===typeof e.duration){if(!this._durationOverrided){let t=Math.floor(e.duration*this._timescale);this._duration=t,this._mediaInfo.duration=t}}else this._mediaInfo.duration=0;if("number"===typeof e.framerate){let t=Math.floor(1e3*e.framerate);if(t>0){let e=t/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=e,this._referenceFrameRate.fps_num=t,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=e}}if("object"===typeof e.keyframes){this._mediaInfo.hasKeyframesIndex=!0;let t=e.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(t),e.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=e,h.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}_parseKeyframesIndex(e){let t=[],i=[];for(let r=1;r>>4;if(2!==s&&10!==s)return void this._onError(ae.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+s);let o=0,l=(12&a)>>>2;if(!(l>=0&&l<=4))return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l);o=this._flvSoundRateTable[l];let d=1&a,u=this._audioMetadata,c=this._audioTrack;if(u||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),u=this._audioMetadata={},u.type="audio",u.id=c.id,u.timescale=this._timescale,u.duration=this._duration,u.audioSampleRate=o,u.channelCount=0===d?1:2),10===s){let n=this._parseAACAudioData(e,t+1,i-1);if(void 0==n)return;if(0===n.packetType){u.config&&h.w(this.TAG,"Found another AudioSpecificConfig!");let e=n.data;u.audioSampleRate=e.samplingRate,u.channelCount=e.channelCount,u.codec=e.codec,u.originalCodec=e.originalCodec,u.config=e.config,u.refSampleDuration=1024/u.audioSampleRate*u.timescale,h.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",u);let t=this._mediaInfo;t.audioCodec=u.originalCodec,t.audioSampleRate=u.audioSampleRate,t.audioChannelCount=u.channelCount,t.hasVideo?null!=t.videoCodec&&(t.mimeType='video/x-flv; codecs="'+t.videoCodec+","+t.audioCodec+'"'):t.mimeType='video/x-flv; codecs="'+t.audioCodec+'"',t.isComplete()&&this._onMediaInfo(t)}else if(1===n.packetType){let e=this._timestampBase+r,t={unit:n.data,length:n.data.byteLength,dts:e,pts:e};c.samples.push(t),c.length+=n.data.length}else h.e(this.TAG,`Flv: Unsupported AAC data type ${n.packetType}`)}else if(2===s){if(!u.codec){let r=this._parseMP3AudioData(e,t+1,i-1,!0);if(void 0==r)return;u.audioSampleRate=r.samplingRate,u.channelCount=r.channelCount,u.codec=r.codec,u.originalCodec=r.originalCodec,u.refSampleDuration=1152/u.audioSampleRate*u.timescale,h.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",u);let n=this._mediaInfo;n.audioCodec=u.codec,n.audioSampleRate=u.audioSampleRate,n.audioChannelCount=u.channelCount,n.audioDataRate=r.bitRate,n.hasVideo?null!=n.videoCodec&&(n.mimeType='video/x-flv; codecs="'+n.videoCodec+","+n.audioCodec+'"'):n.mimeType='video/x-flv; codecs="'+n.audioCodec+'"',n.isComplete()&&this._onMediaInfo(n)}let n=this._parseMP3AudioData(e,t+1,i-1,!1);if(void 0==n)return;let a=this._timestampBase+r,s={unit:n,length:n.byteLength,dts:a,pts:a};c.samples.push(s),c.length+=n.length}}_parseAACAudioData(e,t,i){if(i<=1)return void h.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");let r={},n=new Uint8Array(e,t,i);return r.packetType=n[0],0===n[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,i-1):r.data=n.subarray(1),r}_parseAACAudioSpecificConfig(e,t,i){let r=new Uint8Array(e,t,i),n=null,a=0,s=0,o=null,l=0,d=null;if(a=s=r[0]>>>3,l=(7&r[0])<<1|r[1]>>>7,l<0||l>=this._mpegSamplingRates.length)return void this._onError(ae.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");let u=this._mpegSamplingRates[l],h=(120&r[1])>>>3;if(h<0||h>=8)return void this._onError(ae.FORMAT_ERROR,"Flv: AAC invalid channel configuration");5===a&&(d=(7&r[1])<<1|r[2]>>>7,o=(124&r[2])>>>2);let c=self.navigator.userAgent.toLowerCase();return-1!==c.indexOf("firefox")?l>=6?(a=5,n=new Array(4),d=l-3):(a=2,n=new Array(2),d=l):-1!==c.indexOf("android")?(a=2,n=new Array(2),d=l):(a=5,d=l,n=new Array(4),l>=6?d=l-3:1===h&&(a=2,n=new Array(2),d=l)),n[0]=a<<3,n[0]|=(15&l)>>>1,n[1]=(15&l)<<7,n[1]|=(15&h)<<3,5===a&&(n[1]|=(15&d)>>>1,n[2]=(1&d)<<7,n[2]|=8,n[3]=0),{config:n,samplingRate:u,channelCount:h,codec:"mp4a.40."+a,originalCodec:"mp4a.40."+s}}_parseMP3AudioData(e,t,i,r){if(i<4)return void h.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");this._littleEndian;let n=new Uint8Array(e,t,i),a=null;if(r){if(255!==n[0])return;let e=n[1]>>>3&3,t=(6&n[1])>>1,i=(240&n[2])>>>4,r=(12&n[2])>>>2,s=n[3]>>>6&3,o=3!==s?2:1,l=0,d=0,u=34,h="mp3";switch(e){case 0:l=this._mpegAudioV25SampleRateTable[r];break;case 2:l=this._mpegAudioV20SampleRateTable[r];break;case 3:l=this._mpegAudioV10SampleRateTable[r];break}switch(t){case 1:u=34,i>>4,o=15&a;7===o?this._parseAVCVideoPacket(e,t+1,i-1,r,n,s):this._onError(ae.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${o}`)}_parseAVCVideoPacket(e,t,i,r,n,a){if(i<4)return void h.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");let s=this._littleEndian,o=new DataView(e,t,i),l=o.getUint8(0),d=16777215&o.getUint32(0,!s),u=d<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(e,t+4,i-4);else if(1===l)this._parseAVCVideoData(e,t+4,i-4,r,n,a,u);else if(2!==l)return void this._onError(ae.FORMAT_ERROR,`Flv: Invalid video packet type ${l}`)}_parseAVCDecoderConfigurationRecord(e,t,i){if(i<7)return void h.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");let r=this._videoMetadata,n=this._videoTrack,a=this._littleEndian,s=new DataView(e,t,i);r?"undefined"!==typeof r.avcc&&h.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=n.id,r.timescale=this._timescale,r.duration=this._duration);let o=s.getUint8(0),l=s.getUint8(1);s.getUint8(2),s.getUint8(3);if(1!==o||0===l)return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");if(this._naluLengthSize=1+(3&s.getUint8(4)),3!==this._naluLengthSize&&4!==this._naluLengthSize)return void this._onError(ae.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);let d=31&s.getUint8(5);if(0===d)return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");d>1&&h.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${d}`);let u=6;for(let h=0;h1&&h.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${c}`),u++;for(let e=0;e=i){h.w(this.TAG,`Malformed Nalu near timestamp ${p}, offset = ${c}, dataSize = ${i}`);break}let r=l.getUint32(c,!o);if(3===f&&(r>>>=8),r>i-f)return void h.w(this.TAG,`Malformed Nalus near timestamp ${p}, NaluSize > DataSize!`);let n=31&l.getUint8(c+f);5===n&&(m=!0);let a=new Uint8Array(e,t+c,f+r),s={type:n,data:a};d.push(s),u+=a.byteLength,c+=f+r}if(d.length){let e=this._videoTrack,t={units:d,length:u,isKeyframe:m,dts:p,cts:s,pts:p+s};m&&(t.fileposition=n),e.samples.push(t),e.length+=u}}}var le=oe;class de{static init(){de.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in de.types)de.types.hasOwnProperty(t)&&(de.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=de.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,i=null,r=Array.prototype.slice.call(arguments,1),n=r.length;for(let s=0;s>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);let a=8;for(let s=0;s>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return de.box(de.types.trak,de.tkhd(e),de.mdia(e))}static tkhd(e){let t=e.id,i=e.duration,r=e.presentWidth,n=e.presentHeight;return de.box(de.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,n>>>8&255,255&n,0,0]))}static mdia(e){return de.box(de.types.mdia,de.mdhd(e),de.hdlr(e),de.minf(e))}static mdhd(e){let t=e.timescale,i=e.duration;return de.box(de.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static hdlr(e){let t=null;return t="audio"===e.type?de.constants.HDLR_AUDIO:de.constants.HDLR_VIDEO,de.box(de.types.hdlr,t)}static minf(e){let t=null;return t="audio"===e.type?de.box(de.types.smhd,de.constants.SMHD):de.box(de.types.vmhd,de.constants.VMHD),de.box(de.types.minf,t,de.dinf(),de.stbl(e))}static dinf(){let e=de.box(de.types.dinf,de.box(de.types.dref,de.constants.DREF));return e}static stbl(e){let t=de.box(de.types.stbl,de.stsd(e),de.box(de.types.stts,de.constants.STTS),de.box(de.types.stsc,de.constants.STSC),de.box(de.types.stsz,de.constants.STSZ),de.box(de.types.stco,de.constants.STCO));return t}static stsd(e){return"audio"===e.type?"mp3"===e.codec?de.box(de.types.stsd,de.constants.STSD_PREFIX,de.mp3(e)):de.box(de.types.stsd,de.constants.STSD_PREFIX,de.mp4a(e)):de.box(de.types.stsd,de.constants.STSD_PREFIX,de.avc1(e))}static mp3(e){let t=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return de.box(de.types[".mp3"],r)}static mp4a(e){let t=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return de.box(de.types.mp4a,r,de.esds(e))}static esds(e){let t=e.config||[],i=t.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(t).concat([6,1,2]));return de.box(de.types.esds,r)}static avc1(e){let t=e.avcc,i=e.codecWidth,r=e.codecHeight,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return de.box(de.types.avc1,n,de.box(de.types.avcC,t))}static mvex(e){return de.box(de.types.mvex,de.trex(e))}static trex(e){let t=e.id,i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return de.box(de.types.trex,i)}static moof(e,t){return de.box(de.types.moof,de.mfhd(e.sequenceNumber),de.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return de.box(de.types.mfhd,t)}static traf(e,t){let i=e.id,r=de.box(de.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),n=de.box(de.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),a=de.sdtp(e),s=de.trun(e,a.byteLength+16+16+8+16+8+8);return de.box(de.types.traf,r,n,s,a)}static sdtp(e){let t=e.samples||[],i=t.length,r=new Uint8Array(4+i);for(let n=0;n>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(let s=0;s>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.isNonSync,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n],12+16*s)}return de.box(de.types.trun,a)}static mdat(e){return de.box(de.types.mdat,e)}}de.init();var ue=de;class he{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var ce=he;class fe{constructor(e,t,i,r,n){this.dts=e,this.pts=t,this.duration=i,this.originalDts=r,this.isSyncPoint=n,this.fileposition=null}}class pe{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class me{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts=t[n].dts&&et[r].lastSample.originalDts&&e=t[r].lastSample.originalDts&&(r===t.length-1||r0&&(n=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=n,this._list.splice(n,0,i)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),i=this._list[t].syncPoints;while(0===i.length&&t>0)t--,i=this._list[t].syncPoints;return i.length>0?i[i.length-1]:null}}class ve{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ge("audio"),this._videoSegmentInfoList=new ge("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!T.chrome||!(T.version.major<50||50===T.version.major&&T.version.build<2661)),this._fillSilentAfterSeek=T.msedge||T.msie,this._mp3UseMpegAudio=!T.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new m("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let i=null,r="mp4",n=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",n="",i=new Uint8Array):i=ue.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,i=ue.generateInitSegment(t)}if(!this._onInitSegment)throw new m("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:i.buffer,codec:n,container:`${e}/${r}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,i={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);let r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(i,!0),this._remuxAudio(r,!0)}_remuxAudio(e,t){if(null==this._audioMeta)return;let i=e,r=i.samples,n=void 0,a=-1,s=-1,o=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,d=this._dtsBaseInited&&void 0===this._audioNextDts,u=!1;if(!r||0===r.length)return;if(1===r.length&&!t)return;let c=0,f=null,p=0;l?(c=0,p=i.length):(c=8,p=8+i.length);let m=null;if(r.length>1&&(m=r.pop(),p-=m.length),null!=this._audioStashedLastSample){let e=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(e),p+=e.length}null!=m&&(this._audioStashedLastSample=m);let g=r[0].dts-this._dtsBase;if(this._audioNextDts)n=g-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())n=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(u=!0);else{let e=this._audioSegmentInfoList.getLastSampleBefore(g);if(null!=e){let t=g-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;n=g-i}else n=0}if(u){let e=g-n,t=this._videoSegmentInfoList.getLastSegmentBefore(g);if(null!=t&&t.beginDts=1?v[v.length-1].duration:Math.floor(o);let d=!1,u=null;if(l>1.5*o&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!T.safari){d=!0;let e=Math.abs(l-o),r=Math.ceil(e/o),n=s+o;h.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+`dts: ${s+l} ms, expected: ${s+Math.round(o)} ms, `+`delta: ${Math.round(e)} ms, generate: ${r} frames`);let a=ce.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==a&&(h.w(this.TAG,"Unable to generate silent frame for "+`${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),a=t),u=[];for(let t=0;t0){let t=u[u.length-1];t.duration=e-t.dts}let t={dts:e,pts:e,cts:0,unit:a,size:a.byteLength,duration:0,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};u.push(t),p+=t.size,n+=o}let c=u[u.length-1];c.duration=s+l-c.dts,l=Math.round(o)}v.push({dts:s,pts:s,cts:0,unit:e.unit,size:e.unit.byteLength,duration:l,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),d&&v.push.apply(v,u)}l?f=new Uint8Array(p):(f=new Uint8Array(p),f[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(ue.types.mdat,4));for(let h=0;h1&&(c=r.pop(),h-=c.length),null!=this._videoStashedLastSample){let e=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(e),h+=e.length}null!=c&&(this._videoStashedLastSample=c);let f=r[0].dts-this._dtsBase;if(this._videoNextDts)n=f-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())n=0;else{let e=this._videoSegmentInfoList.getLastSampleBefore(f);if(null!=e){let t=f-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;n=f-i}else n=0}let p=new pe,m=[];for(let y=0;y=1?m[m.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(i){let t=new fe(s,d,u,e.dts,!0);t.fileposition=e.fileposition,p.appendSyncPoint(t)}m.push({dts:s,pts:d,cts:l,units:e.units,size:e.length,isKeyframe:i,duration:u,originalDts:t,flags:{isLeading:0,dependsOn:i?2:1,isDependedOn:i?1:0,hasRedundancy:0,isNonSync:i?0:1}})}u=new Uint8Array(h),u[0]=h>>>24&255,u[1]=h>>>16&255,u[2]=h>>>8&255,u[3]=255&h,u.set(ue.types.mdat,4);for(let y=0;y{r.timestampBase=i,i+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy)}),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let i=this._mediaDataSource.segments[e],r=this._ioctl=new B(i,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(null==this._mediaInfo||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e;else{let t=i.getNearestKeyframe(e);this._remuxer.seek(t.milliseconds),this._ioctl.seek(t.fileposition),this._pendingResolveSeekPoint=t.milliseconds}}else{let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let r=i.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,i=t.length-1;for(let r=0;r0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((i=le.probe(e)).match){this._demuxer=new le(i,this._config),this._remuxer||(this._remuxer=new ye(this._config));let n=this._mediaDataSource;void 0==n.duration||isNaN(n.duration)||(this._demuxer.overridedDuration=n.duration),"boolean"===typeof n.hasAudio&&(this._demuxer.overridedHasAudio=n.hasAudio),"boolean"===typeof n.hasVideo&&(this._demuxer.overridedHasVideo=n.hasVideo),this._demuxer.timestampBase=n.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(e,t)}else i=null,h.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ee.DEMUX_ERROR,ae.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}_onMediaInfo(e){null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,W.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,W.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(()=>{let e=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(e)})}_onMetaDataArrived(e){this._emitter.emit(Ee.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(Ee.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let t=e,i=t+1;i0&&e[0].originalDts===i&&(i=e[0].pts),this._emitter.emit(Ee.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],i=Object.assign({},t);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(Ee.MEDIA_INFO,i)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ee.STATISTICS_INFO,e)}}var Se=be;let Te=function(e){let t=null,i=m.bind(this);function r(t,i){let r={msg:Ee.INIT_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function n(t,i){let r={msg:Ee.MEDIA_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function a(){let t={msg:Ee.LOADING_COMPLETE};e.postMessage(t)}function s(){let t={msg:Ee.RECOVERED_EARLY_EOF};e.postMessage(t)}function l(t){let i={msg:Ee.MEDIA_INFO,data:t};e.postMessage(i)}function d(t){let i={msg:Ee.METADATA_ARRIVED,data:t};e.postMessage(i)}function u(t){let i={msg:Ee.SCRIPTDATA_ARRIVED,data:t};e.postMessage(i)}function h(t){let i={msg:Ee.STATISTICS_INFO,data:t};e.postMessage(i)}function c(t,i){e.postMessage({msg:Ee.IO_ERROR,data:{type:t,info:i}})}function f(t,i){e.postMessage({msg:Ee.DEMUX_ERROR,data:{type:t,info:i}})}function p(t){e.postMessage({msg:Ee.RECOMMEND_SEEKPOINT,data:t})}function m(t,i){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:i}})}o.install(),e.addEventListener("message",(function(o){switch(o.data.cmd){case"init":t=new Se(o.data.param[0],o.data.param[1]),t.on(Ee.IO_ERROR,c.bind(this)),t.on(Ee.DEMUX_ERROR,f.bind(this)),t.on(Ee.INIT_SEGMENT,r.bind(this)),t.on(Ee.MEDIA_SEGMENT,n.bind(this)),t.on(Ee.LOADING_COMPLETE,a.bind(this)),t.on(Ee.RECOVERED_EARLY_EOF,s.bind(this)),t.on(Ee.MEDIA_INFO,l.bind(this)),t.on(Ee.METADATA_ARRIVED,d.bind(this)),t.on(Ee.SCRIPTDATA_ARRIVED,u.bind(this)),t.on(Ee.STATISTICS_INFO,h.bind(this)),t.on(Ee.RECOMMEND_SEEKPOINT,p.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(o.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let e=o.data.param;H.applyConfig(e),!0===e.enableCallback?H.addLogListener(i):H.removeLogListener(i);break}}}))};var we=Te;class Ae{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new d.a,t.enableWorker&&"undefined"!==typeof Worker)try{let r=i("d2be");this._worker=r(we),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},H.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:H.getConfig()})}catch(r){h.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Se(e,t)}else this._controller=new Se(e,t);if(this._controller){let e=this._controller;e.on(Ee.IO_ERROR,this._onIOError.bind(this)),e.on(Ee.DEMUX_ERROR,this._onDemuxError.bind(this)),e.on(Ee.INIT_SEGMENT,this._onInitSegment.bind(this)),e.on(Ee.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),e.on(Ee.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),e.on(Ee.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),e.on(Ee.MEDIA_INFO,this._onMediaInfo.bind(this)),e.on(Ee.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),e.on(Ee.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),e.on(Ee.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),e.on(Ee.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),H.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return null!=this._worker}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ee.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ee.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,i=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case Ee.INIT_SEGMENT:case Ee.MEDIA_SEGMENT:this._emitter.emit(t.msg,i.type,i.data);break;case Ee.LOADING_COMPLETE:case Ee.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case Ee.MEDIA_INFO:Object.setPrototypeOf(i,W.prototype),this._emitter.emit(t.msg,i);break;case Ee.METADATA_ARRIVED:case Ee.SCRIPTDATA_ARRIVED:case Ee.STATISTICS_INFO:this._emitter.emit(t.msg,i);break;case Ee.IO_ERROR:case Ee.DEMUX_ERROR:this._emitter.emit(t.msg,i.type,i.info);break;case Ee.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,i);break;case"logcat_callback":h.emitter.emit("log",i.type,i.logcat);break;default:break}}}var ke=Ae;const Re={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};var Le=Re;class De{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new d.a,this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new me}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new m("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let t=this._mediaSource;for(let i in this._sourceBuffers){let r=this._pendingSegments[i];r.splice(0,r.length),this._pendingSegments[i]=null,this._pendingRemoveRanges[i]=null,this._lastInitSegments[i]=null;let n=this._sourceBuffers[i];if(n){if("closed"!==t.readyState){try{t.removeSourceBuffer(n)}catch(e){h.e(this.TAG,e.message)}n.removeEventListener("error",this.e.onSourceBufferError),n.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[i]=null,this._sourceBuffers[i]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(e){h.e(this.TAG,e.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);let i=e,r=`${i.container}`;i.codec&&i.codec.length>0&&(r+=`;codecs=${i.codec}`);let n=!1;if(h.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[i.type]=i,r!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])h.v(this.TAG,`Notice: ${i.type} mimeType changed, origin: ${this._mimeTypes[i.type]}, target: ${r}`);else{n=!0;try{let e=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(r);e.addEventListener("error",this.e.onSourceBufferError),e.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(a){return h.e(this.TAG,a.message),void this._emitter.emit(Le.ERROR,{code:a.code,msg:a.message})}}this._mimeTypes[i.type]=r}t||this._pendingSegments[i.type].push(i),n||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),T.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let i=this._sourceBuffers[t.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}seek(e){for(let i in this._sourceBuffers){if(!this._sourceBuffers[i])continue;let e=this._sourceBuffers[i];if("open"===this._mediaSource.readyState)try{e.abort()}catch(t){h.e(this.TAG,t.message)}this._idrList.clear();let r=this._pendingSegments[i];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(let t=0;t=1&&e-t.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let i=this._sourceBuffers[t];if(i){let r=i.buffered,n=!1;for(let i=0;i=this._config.autoCleanupMaxBackwardDuration){n=!0;let i=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:i})}}else s0&&(isNaN(t)||i>t)&&(h.v(this.TAG,`Update MediaSource duration from ${t} to ${i}`),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],i=this._pendingRemoveRanges[e];while(i.length&&!t.updating){let e=i.shift();t.remove(e.start,e.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let i in e)if(this._sourceBuffers[i]&&!this._sourceBuffers[i].updating&&e[i].length>0){let r=e[i].shift();if(r.timestampOffset){let e=this._sourceBuffers[i].timestampOffset,t=r.timestampOffset/1e3,n=Math.abs(e-t);n>.1&&(h.v(this.TAG,`Update MPEG audio timestampOffset from ${e} to ${t}`),this._sourceBuffers[i].timestampOffset=t),delete r.timestampOffset}if(!r.data||0===r.data.byteLength)continue;try{this._sourceBuffers[i].appendBuffer(r.data),this._isBufferFull=!1,"video"===i&&r.hasOwnProperty("info")&&this._idrList.appendArray(r.info.syncPoints)}catch(t){this._pendingSegments[i].unshift(r),22===t.code?(this._isBufferFull||this._emitter.emit(Le.BUFFER_FULL),this._isBufferFull=!0):(h.e(this.TAG,t.message),this._emitter.emit(Le.ERROR,{code:t.code,msg:t.message}))}}}_onSourceOpen(){if(h.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;while(e.length){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Le.SOURCE_OPEN)}_onSourceEnded(){h.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){h.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Le.UPDATE_END)}_onSourceBufferError(e){h.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ie=De;const Ce={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Oe={NETWORK_EXCEPTION:_.EXCEPTION,NETWORK_STATUS_CODE_INVALID:_.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:_.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:_.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:ae.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:ae.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:ae.CODEC_UNSUPPORTED};class xe{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new d.a,this._config=U(),"object"===typeof t&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new g("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let i=T.chrome&&(T.version.major<50||50===T.version.major&&T.version.build<2661);this._alwaysSeekKeyframe=!!(i||T.msedge||T.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===q.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then(()=>{this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}):e===q.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then(()=>{this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Ie(this._config),this._msectl.on(Le.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Le.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Le.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Le.ERROR,e=>{this._emitter.emit(q.ERROR,Ce.MEDIA_ERROR,Oe.MEDIA_MSE_ERROR,e)}),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new m("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new m("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ke(this._mediaDataSource,this._config),this._transmuxer.on(Ee.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(Ee.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let e=this._mediaElement.currentTime;t.info.endDts>=1e3*(e+this._config.lazyLoadMaxDuration)&&null==this._progressChecker&&(h.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ee.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(q.LOADING_COMPLETE)}),this._transmuxer.on(Ee.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(q.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ee.IO_ERROR,(e,t)=>{this._emitter.emit(q.ERROR,Ce.NETWORK_ERROR,e,t)}),this._transmuxer.on(Ee.DEMUX_ERROR,(e,t)=>{this._emitter.emit(q.ERROR,Ce.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(Ee.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(q.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(Ee.METADATA_ARRIVED,e=>{this._emitter.emit(q.METADATA_ARRIVED,e)}),this._transmuxer.on(Ee.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(q.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(Ee.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(q.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ee.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()))}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,r=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,i=0,r=0;for(let n=0;n=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(h.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){h.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,i=!1;for(let r=0;r=n&&e=a-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(h.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let i=0;i=r&&e0){let t=this._mediaElement.buffered.start(0);(t<1&&e0&&t.currentTime0){let e=i.start(0);if(e<1&&t{this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}):e===q.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(()=>{this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new m("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,r=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e}_onvLoadedMetadata(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}}var Fe=Pe;function Be(e,t){let i=e;if(null==i||"object"!==typeof i)throw new g("MediaDataSource must be an javascript object!");if(!i.hasOwnProperty("type"))throw new g("MediaDataSource must has type field to indicate video file type!");switch(i.type){case"flv":return new Me(i,t);default:return new Fe(i,t)}}function Ne(){return j.supportMSEH264Playback()}function Ue(){return j.getFeatureList()}o.install();let Ge={};Ge.createPlayer=Be,Ge.isSupported=Ne,Ge.getFeatureList=Ue,Ge.BaseLoader=E,Ge.LoaderStatus=y,Ge.LoaderErrors=_,Ge.Events=q,Ge.ErrorTypes=Ce,Ge.ErrorDetails=Oe,Ge.FlvPlayer=Me,Ge.NativePlayer=Fe,Ge.LoggingControl=H,Object.defineProperty(Ge,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var je=Ge,Ve=i("ba56"),qe=i.n(Ve),Ke=i("f7a5"),He=i.n(Ke);window.flvjs=je,window.Hls=qe.a;var ze={name:"VideoPlayer",data:function(){return{options:{container:null,video:{url:""},subtitle:null,autoplay:!1},player:null}},props:{data:Object},mounted:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,i,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.options.container=document.getElementById("dplayer"),t=this.data,i=this.$store.getters.tableData,r=!1,i.find((function(e){if(e.name===t.name+".vtt")return r=!0,n=e.url,!0})),r&&(this.options.subtitle={url:n,type:"webvtt",fontSize:"25px",bottom:"10%",color:"#b7daff"}),this.player=new He.a(this.options),this.player.switchVideo({url:t.url});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),destroyed:function(){this.player.destroy()},watch:{url:function(e){this.player.switchVideo({url:e})}}},We=ze,Ye=(i("9bb6"),i("2877")),Xe=Object(Ye["a"])(We,r,n,!1,null,null,null);t["default"]=Xe.exports},"9bb6":function(e,t,i){"use strict";var r=i("49f6"),n=i.n(r);n.a},ba56:function(e,t,i){"undefined"!==typeof window&&function(t,i){e.exports=i()}(0,(function(){return function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js": +(function(t,i){e.exports=i()})(0,(function(){"use strict";function e(e){var t=typeof e;return null!==e&&("object"===t||"function"===t)}function r(e){return"function"===typeof e}var n=void 0;n=Array.isArray?Array.isArray:function(e){return"[object Array]"===Object.prototype.toString.call(e)};var a=n,s=0,o=void 0,l=void 0,d=function(e,t){S[s]=e,S[s+1]=t,s+=2,2===s&&(l?l(T):A())};function u(e){l=e}function h(e){d=e}var c="undefined"!==typeof window?window:void 0,f=c||{},p=f.MutationObserver||f.WebKitMutationObserver,m="undefined"===typeof self&&"undefined"!==typeof t&&"[object process]"==={}.toString.call(t),g="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function v(){return function(){return t.nextTick(T)}}function y(){return"undefined"!==typeof o?function(){o(T)}:b()}function _(){var e=0,t=new p(T),i=document.createTextNode("");return t.observe(i,{characterData:!0}),function(){i.data=e=++e%2}}function E(){var e=new MessageChannel;return e.port1.onmessage=T,function(){return e.port2.postMessage(0)}}function b(){var e=setTimeout;return function(){return e(T,1)}}var S=new Array(1e3);function T(){for(var e=0;e ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","error",i),u.ENABLE_ERROR&&(console.error?console.error(i):console.warn?console.warn(i):console.log(i))}static i(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","info",i),u.ENABLE_INFO&&(console.info?console.info(i):console.log(i))}static w(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","warn",i),u.ENABLE_WARN&&(console.warn?console.warn(i):console.log(i))}static d(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","debug",i),u.ENABLE_DEBUG&&(console.debug?console.debug(i):console.log(i))}static v(e,t){e&&!u.FORCE_GLOBAL_TAG||(e=u.GLOBAL_TAG);let i=`[${e}] > ${t}`;u.ENABLE_CALLBACK&&u.emitter.emit("log","verbose",i),u.ENABLE_VERBOSE&&console.log(i)}}u.GLOBAL_TAG="flv.js",u.FORCE_GLOBAL_TAG=!1,u.ENABLE_ERROR=!0,u.ENABLE_INFO=!0,u.ENABLE_WARN=!0,u.ENABLE_DEBUG=!0,u.ENABLE_VERBOSE=!0,u.ENABLE_CALLBACK=!1,u.emitter=new d.a;var h=u;class c{constructor(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}reset(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0}addBytes(e){0===this._firstCheckpoint?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=e,this._totalBytes+=e):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=e,this._totalBytes+=e):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=e,this._totalBytes+=e,this._lastCheckpoint=this._now())}get currentKBps(){this.addBytes(0);let e=(this._now()-this._lastCheckpoint)/1e3;return 0==e&&(e=1),this._intervalBytes/e/1024}get lastSecondKBps(){return this.addBytes(0),0!==this._lastSecondBytes?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0}get averageKBps(){let e=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/e/1024}}var f=c;class p{constructor(e){this._message=e}get name(){return"RuntimeException"}get message(){return this._message}toString(){return this.name+": "+this.message}}class m extends p{constructor(e){super(e)}get name(){return"IllegalStateException"}}class g extends p{constructor(e){super(e)}get name(){return"InvalidArgumentException"}}class v extends p{constructor(e){super(e)}get name(){return"NotImplementedException"}}const y={kIdle:0,kConnecting:1,kBuffering:2,kError:3,kComplete:4},_={OK:"OK",EXCEPTION:"Exception",HTTP_STATUS_CODE_INVALID:"HttpStatusCodeInvalid",CONNECTING_TIMEOUT:"ConnectingTimeout",EARLY_EOF:"EarlyEof",UNRECOVERABLE_EARLY_EOF:"UnrecoverableEarlyEof"};class E{constructor(e){this._type=e||"undefined",this._status=y.kIdle,this._needStash=!1,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}destroy(){this._status=y.kIdle,this._onContentLengthKnown=null,this._onURLRedirect=null,this._onDataArrival=null,this._onError=null,this._onComplete=null}isWorking(){return this._status===y.kConnecting||this._status===y.kBuffering}get type(){return this._type}get status(){return this._status}get needStashBuffer(){return this._needStash}get onContentLengthKnown(){return this._onContentLengthKnown}set onContentLengthKnown(e){this._onContentLengthKnown=e}get onURLRedirect(){return this._onURLRedirect}set onURLRedirect(e){this._onURLRedirect=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}open(e,t){throw new v("Unimplemented abstract function!")}abort(){throw new v("Unimplemented abstract function!")}}let b={};function S(){let e=self.navigator.userAgent.toLowerCase(),t=/(edge)\/([\w.]+)/.exec(e)||/(opr)[\/]([\w.]+)/.exec(e)||/(chrome)[ \/]([\w.]+)/.exec(e)||/(iemobile)[\/]([\w.]+)/.exec(e)||/(version)(applewebkit)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+).*(version)[ \/]([\w.]+).*(safari)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("trident")>=0&&/(rv)(?::| )([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(e)||[],i=/(ipad)/.exec(e)||/(ipod)/.exec(e)||/(windows phone)/.exec(e)||/(iphone)/.exec(e)||/(kindle)/.exec(e)||/(android)/.exec(e)||/(windows)/.exec(e)||/(mac)/.exec(e)||/(linux)/.exec(e)||/(cros)/.exec(e)||[],r={browser:t[5]||t[3]||t[1]||"",version:t[2]||t[4]||"0",majorVersion:t[4]||t[2]||"0",platform:i[0]||""},n={};if(r.browser){n[r.browser]=!0;let e=r.majorVersion.split(".");n.version={major:parseInt(r.majorVersion,10),string:r.version},e.length>1&&(n.version.minor=parseInt(e[1],10)),e.length>2&&(n.version.build=parseInt(e[2],10))}if(r.platform&&(n[r.platform]=!0),(n.chrome||n.opr||n.safari)&&(n.webkit=!0),n.rv||n.iemobile){n.rv&&delete n.rv;let e="msie";r.browser=e,n[e]=!0}if(n.edge){delete n.edge;let e="msedge";r.browser=e,n[e]=!0}if(n.opr){let e="opera";r.browser=e,n[e]=!0}if(n.safari&&n.android){let e="android";r.browser=e,n[e]=!0}n.name=r.browser,n.platform=r.platform;for(let a in b)b.hasOwnProperty(a)&&delete b[a];Object.assign(b,n)}S();var T=b;class w extends E{static isSupported(){try{let e=T.msedge&&T.version.minor>=15048,t=!T.msedge||e;return self.fetch&&self.ReadableStream&&t}catch(e){return!1}}constructor(e,t){super("fetch-stream-loader"),this.TAG="FetchStreamLoader",this._seekHandler=e,this._config=t,this._needStash=!0,this._requestAbort=!1,this._contentLength=null,this._receivedLength=0}destroy(){this.isWorking()&&this.abort(),super.destroy()}open(e,t){this._dataSource=e,this._range=t;let i=e.url;this._config.reuseRedirectedURL&&void 0!=e.redirectedURL&&(i=e.redirectedURL);let r=this._seekHandler.getConfig(i,t),n=new self.Headers;if("object"===typeof r.headers){let e=r.headers;for(let t in e)e.hasOwnProperty(t)&&n.append(t,e[t])}let a={method:"GET",headers:n,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if("object"===typeof this._config.headers)for(let s in this._config.headers)n.append(s,this._config.headers[s]);!1===e.cors&&(a.mode="same-origin"),e.withCredentials&&(a.credentials="include"),e.referrerPolicy&&(a.referrerPolicy=e.referrerPolicy),this._status=y.kConnecting,self.fetch(r.url,a).then(e=>{if(this._requestAbort)return this._requestAbort=!1,void(this._status=y.kIdle);if(e.ok&&e.status>=200&&e.status<=299){if(e.url!==r.url&&this._onURLRedirect){let t=this._seekHandler.removeURLParameters(e.url);this._onURLRedirect(t)}let t=e.headers.get("Content-Length");return null!=t&&(this._contentLength=parseInt(t),0!==this._contentLength&&this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)),this._pump.call(this,e.body.getReader())}if(this._status=y.kError,!this._onError)throw new p("FetchStreamLoader: Http code invalid, "+e.status+" "+e.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:e.status,msg:e.statusText})}).catch(e=>{if(this._status=y.kError,!this._onError)throw e;this._onError(_.EXCEPTION,{code:-1,msg:e.message})})}abort(){this._requestAbort=!0}_pump(e){return e.read().then(t=>{if(t.done)if(null!==this._contentLength&&this._receivedLength{if(11===e.code&&T.msedge)return;this._status=y.kError;let t=0,i=null;if(19!==e.code&&"network error"!==e.message||!(null===this._contentLength||null!==this._contentLength&&this._receivedLength299)){if(this._status=y.kError,!this._onError)throw new p("MozChunkedLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}else this._status=y.kBuffering}}_onProgress(e){if(this._status===y.kError)return;null===this._contentLength&&null!==e.total&&0!==e.total&&(this._contentLength=e.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));let t=e.target.response,i=this._range.from+this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onLoadEnd(e){!0!==this._requestAbort?this._status!==y.kError&&(this._status=y.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)):this._requestAbort=!1}_onXhrError(e){this._status=y.kError;let t=0,i=null;if(this._contentLength&&e.loaded=this._contentLength&&(i=this._range.from+this._contentLength-1),this._currentRequestRange={from:t,to:i},this._internalOpen(this._dataSource,this._currentRequestRange)}_internalOpen(e,t){this._lastTimeLoaded=0;let i=e.url;this._config.reuseRedirectedURL&&(void 0!=this._currentRedirectedURL?i=this._currentRedirectedURL:void 0!=e.redirectedURL&&(i=e.redirectedURL));let r=this._seekHandler.getConfig(i,t);this._currentRequestURL=r.url;let n=this._xhr=new XMLHttpRequest;if(n.open("GET",r.url,!0),n.responseType="arraybuffer",n.onreadystatechange=this._onReadyStateChange.bind(this),n.onprogress=this._onProgress.bind(this),n.onload=this._onLoad.bind(this),n.onerror=this._onXhrError.bind(this),e.withCredentials&&(n.withCredentials=!0),"object"===typeof r.headers){let e=r.headers;for(let t in e)e.hasOwnProperty(t)&&n.setRequestHeader(t,e[t])}if("object"===typeof this._config.headers){let e=this._config.headers;for(let t in e)e.hasOwnProperty(t)&&n.setRequestHeader(t,e[t])}n.send()}abort(){this._requestAbort=!0,this._internalAbort(),this._status=y.kComplete}_internalAbort(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)}_onReadyStateChange(e){let t=e.target;if(2===t.readyState){if(void 0!=t.responseURL){let e=this._seekHandler.removeURLParameters(t.responseURL);t.responseURL!==this._currentRequestURL&&e!==this._currentRedirectedURL&&(this._currentRedirectedURL=e,this._onURLRedirect&&this._onURLRedirect(e))}if(t.status>=200&&t.status<=299){if(this._waitForTotalLength)return;this._status=y.kBuffering}else{if(this._status=y.kError,!this._onError)throw new p("RangeLoader: Http code invalid, "+t.status+" "+t.statusText);this._onError(_.HTTP_STATUS_CODE_INVALID,{code:t.status,msg:t.statusText})}}}_onProgress(e){if(this._status===y.kError)return;if(null===this._contentLength){let t=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,t=!0;let i=e.total;this._internalAbort(),null!=i&0!==i&&(this._totalLength=i)}if(-1===this._range.to?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,t)return void this._openSubRange();this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}let t=e.loaded-this._lastTimeLoaded;this._lastTimeLoaded=e.loaded,this._speedSampler.addBytes(t)}_normalizeSpeed(e){let t=this._chunkSizeKBList,i=t.length-1,r=0,n=0,a=i;if(e=t[r]&&e=3&&(t=this._speedSampler.currentKBps)),0!==t){let e=this._normalizeSpeed(t);this._currentSpeedNormalized!==e&&(this._currentSpeedNormalized=e,this._currentChunkSizeKB=e)}let i=e.target.response,r=this._range.from+this._receivedLength;this._receivedLength+=i.byteLength;let n=!1;null!=this._contentLength&&this._receivedLength0&&this._receivedLength{this._dispatchArrayBuffer(t.result)},t.readAsArrayBuffer(e.data)}else{this._status=y.kError;let t={code:-1,msg:"Unsupported WebSocket message type: "+e.data.constructor.name};if(!this._onError)throw new p(t.msg);this._onError(_.EXCEPTION,t)}}_dispatchArrayBuffer(e){let t=e,i=this._receivedLength;this._receivedLength+=t.byteLength,this._onDataArrival&&this._onDataArrival(t,i,this._receivedLength)}_onWebSocketError(e){this._status=y.kError;let t={code:e.code,msg:e.message};if(!this._onError)throw new p(t.msg);this._onError(_.EXCEPTION,t)}}var C=I;class O{constructor(e){this._zeroStart=e||!1}getConfig(e,t){let i={};if(0!==t.from||-1!==t.to){let e;e=-1!==t.to?`bytes=${t.from.toString()}-${t.to.toString()}`:`bytes=${t.from.toString()}-`,i["Range"]=e}else this._zeroStart&&(i["Range"]="bytes=0-");return{url:e,headers:i}}removeURLParameters(e){return e}}var x=O;class M{constructor(e,t){this._startName=e,this._endName=t}getConfig(e,t){let i=e;if(0!==t.from||-1!==t.to){let e=!0;-1===i.indexOf("?")&&(i+="?",e=!1),e&&(i+="&"),i+=`${this._startName}=${t.from.toString()}`,-1!==t.to&&(i+=`&${this._endName}=${t.to.toString()}`)}return{url:i,headers:{}}}removeURLParameters(e){let t=e.split("?")[0],i=void 0,r=e.indexOf("?");-1!==r&&(i=e.substring(r+1));let n="";if(void 0!=i&&i.length>0){let e=i.split("&");for(let t=0;t0;i[0]!==this._startName&&i[0]!==this._endName&&(r&&(n+="&"),n+=e[t])}}return 0===n.length?t:t+"?"+n}}var P=M;class F{constructor(e,t,i){this.TAG="IOController",this._config=t,this._extraData=i,this._stashInitialSize=393216,void 0!=t.stashInitialSize&&t.stashInitialSize>0&&(this._stashInitialSize=t.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=3145728,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,!1===t.enableStashBuffer&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=e,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(e.url),this._refTotalLength=e.filesize?e.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new f,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}destroy(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null}isWorking(){return this._loader&&this._loader.isWorking()&&!this._paused}isPaused(){return this._paused}get status(){return this._loader.status}get extraData(){return this._extraData}set extraData(e){this._extraData=e}get onDataArrival(){return this._onDataArrival}set onDataArrival(e){this._onDataArrival=e}get onSeeked(){return this._onSeeked}set onSeeked(e){this._onSeeked=e}get onError(){return this._onError}set onError(e){this._onError=e}get onComplete(){return this._onComplete}set onComplete(e){this._onComplete=e}get onRedirect(){return this._onRedirect}set onRedirect(e){this._onRedirect=e}get onRecoveredEarlyEof(){return this._onRecoveredEarlyEof}set onRecoveredEarlyEof(e){this._onRecoveredEarlyEof=e}get currentURL(){return this._dataSource.url}get hasRedirect(){return null!=this._redirectedURL||void 0!=this._dataSource.redirectedURL}get currentRedirectedURL(){return this._redirectedURL||this._dataSource.redirectedURL}get currentSpeed(){return this._loaderClass===D?this._loader.currentSpeed:this._speedSampler.lastSecondKBps}get loaderType(){return this._loader.type}_selectSeekHandler(){let e=this._config;if("range"===e.seekType)this._seekHandler=new x(this._config.rangeLoadZeroStart);else if("param"===e.seekType){let t=e.seekParamStart||"bstart",i=e.seekParamEnd||"bend";this._seekHandler=new P(t,i)}else{if("custom"!==e.seekType)throw new g(`Invalid seekType in config: ${e.seekType}`);if("function"!==typeof e.customSeekHandler)throw new g("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new e.customSeekHandler}}_selectLoader(){if(null!=this._config.customLoader)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=C;else if(A.isSupported())this._loaderClass=A;else if(R.isSupported())this._loaderClass=R;else{if(!D.isSupported())throw new p("Your browser doesn't support xhr with arraybuffer responseType!");this._loaderClass=D}}_createLoader(){this._loader=new this._loaderClass(this._seekHandler,this._config),!1===this._loader.needStashBuffer&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)}open(e){this._currentRange={from:0,to:-1},e&&(this._currentRange.from=e),this._speedSampler.reset(),e||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))}abort(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)}pause(){this.isWorking()&&(this._loader.abort(),0!==this._stashUsed?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)}resume(){if(this._paused){this._paused=!1;let e=this._resumeFrom;this._resumeFrom=0,this._internalSeek(e,!0)}}seek(e){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(e,!0)}_internalSeek(e,t){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(t),this._loader.destroy(),this._loader=null;let i={from:e,to:-1};this._currentRange={from:i.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,i),this._onSeeked&&this._onSeeked()}updateUrl(e){if(!e||"string"!==typeof e||0===e.length)throw new g("Url must be a non-empty string!");this._dataSource.url=e}_expandBuffer(e){let t=this._stashSize;while(t+10485760){let e=new Uint8Array(this._stashBuffer,0,this._stashUsed),r=new Uint8Array(i,0,t);r.set(e,0)}this._stashBuffer=i,this._bufferSize=t}_normalizeSpeed(e){let t=this._speedNormalizeList,i=t.length-1,r=0,n=0,a=i;if(e=t[r]&&e=512&&e<=1024?Math.floor(1.5*e):2*e,t>8192&&(t=8192);let i=1024*t+1048576;this._bufferSize0){let t=this._stashBuffer.slice(0,this._stashUsed),r=this._dispatchChunks(t,this._stashByteStart);if(r0){let e=new Uint8Array(t,r);i.set(e,0),this._stashUsed=e.byteLength,this._stashByteStart+=r}}else this._stashUsed=0,this._stashByteStart+=r;this._stashUsed+e.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+e.byteLength),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength}else{let r=this._dispatchChunks(e,t);if(rthis._bufferSize&&(this._expandBuffer(n),i=new Uint8Array(this._stashBuffer,0,this._bufferSize)),i.set(new Uint8Array(e,r),0),this._stashUsed+=n,this._stashByteStart=t+r}}}else if(0===this._stashUsed){let i=this._dispatchChunks(e,t);if(ithis._bufferSize&&this._expandBuffer(r);let n=new Uint8Array(this._stashBuffer,0,this._bufferSize);n.set(new Uint8Array(e,i),0),this._stashUsed+=r,this._stashByteStart=t+i}}else{this._stashUsed+e.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+e.byteLength);let t=new Uint8Array(this._stashBuffer,0,this._bufferSize);t.set(new Uint8Array(e),this._stashUsed),this._stashUsed+=e.byteLength;let i=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(i0){let e=new Uint8Array(this._stashBuffer,i);t.set(e,0)}this._stashUsed-=i,this._stashByteStart+=i}}_flushStashBuffer(e){if(this._stashUsed>0){let t=this._stashBuffer.slice(0,this._stashUsed),i=this._dispatchChunks(t,this._stashByteStart),r=t.byteLength-i;if(i0){let e=new Uint8Array(this._stashBuffer,0,this._bufferSize),r=new Uint8Array(t,i);e.set(r,0),this._stashUsed=r.byteLength,this._stashByteStart+=i}return 0}h.w(this.TAG,`${r} bytes unconsumed data remain when flush buffer, dropped`)}return this._stashUsed=0,this._stashByteStart=0,r}return 0}_onLoaderComplete(e,t){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)}_onLoaderError(e,t){switch(h.e(this.TAG,`Loader error, code = ${t.code}, msg = ${t.msg}`),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,e=_.UNRECOVERABLE_EARLY_EOF),e){case _.EARLY_EOF:if(!this._config.isLive&&this._totalLength){let e=this._currentRange.to+1;return void(e0){let t=K.getConfig();e.emit("change",t)}}static registerListener(e){K.emitter.addListener("change",e)}static removeListener(e){K.emitter.removeListener("change",e)}static addLogListener(e){h.emitter.addListener("log",e),h.emitter.listenerCount("log")>0&&(h.ENABLE_CALLBACK=!0,K._notifyChange())}static removeLogListener(e){h.emitter.removeListener("log",e),0===h.emitter.listenerCount("log")&&(h.ENABLE_CALLBACK=!1,K._notifyChange())}}K.emitter=new d.a;var H=K;class z{constructor(){this.mimeType=null,this.duration=null,this.hasAudio=null,this.hasVideo=null,this.audioCodec=null,this.videoCodec=null,this.audioDataRate=null,this.videoDataRate=null,this.audioSampleRate=null,this.audioChannelCount=null,this.width=null,this.height=null,this.fps=null,this.profile=null,this.level=null,this.refFrames=null,this.chromaFormat=null,this.sarNum=null,this.sarDen=null,this.metadata=null,this.segments=null,this.segmentCount=null,this.hasKeyframesIndex=null,this.keyframesIndex=null}isComplete(){let e=!1===this.hasAudio||!0===this.hasAudio&&null!=this.audioCodec&&null!=this.audioSampleRate&&null!=this.audioChannelCount,t=!1===this.hasVideo||!0===this.hasVideo&&null!=this.videoCodec&&null!=this.width&&null!=this.height&&null!=this.fps&&null!=this.profile&&null!=this.level&&null!=this.refFrames&&null!=this.chromaFormat&&null!=this.sarNum&&null!=this.sarDen;return null!=this.mimeType&&null!=this.duration&&null!=this.metadata&&null!=this.hasKeyframesIndex&&e&&t}isSeekable(){return!0===this.hasKeyframesIndex}getNearestKeyframe(e){if(null==this.keyframesIndex)return null;let t=this.keyframesIndex,i=this._search(t.times,e);return{index:i,milliseconds:t.times[i],fileposition:t.filepositions[i]}}_search(e,t){let i=0,r=e.length-1,n=0,a=0,s=r;t=e[n]&&t=128){t.push(String.fromCharCode(65535&e)),r+=2;continue}}}else if(i[r]<240){if(Y(i,r,2)){let e=(15&i[r])<<12|(63&i[r+1])<<6|63&i[r+2];if(e>=2048&&55296!==(63488&e)){t.push(String.fromCharCode(65535&e)),r+=3;continue}}}else if(i[r]<248&&Y(i,r,3)){let e=(7&i[r])<<18|(63&i[r+1])<<12|(63&i[r+2])<<6|63&i[r+3];if(e>65536&&e<1114112){e-=65536,t.push(String.fromCharCode(e>>>10|55296)),t.push(String.fromCharCode(1023&e|56320)),r+=4;continue}}t.push(String.fromCharCode(65533)),++r}return t.join("")}var $=X;let Q=function(){let e=new ArrayBuffer(2);return new DataView(e).setInt16(0,256,!0),256===new Int16Array(e)[0]}();class J{static parseScriptData(e,t,i){let r={};try{let n=J.parseValue(e,t,i),a=J.parseValue(e,t+n.size,i-n.size);r[n.data]=a.data}catch(n){h.e("AMF",n.toString())}return r}static parseObject(e,t,i){if(i<3)throw new m("Data not enough when parse ScriptDataObject");let r=J.parseString(e,t,i),n=J.parseValue(e,t+r.size,i-r.size),a=n.objectEnd;return{data:{name:r.data,value:n.data},size:r.size+n.size,objectEnd:a}}static parseVariable(e,t,i){return J.parseObject(e,t,i)}static parseString(e,t,i){if(i<2)throw new m("Data not enough when parse String");let r,n=new DataView(e,t,i),a=n.getUint16(0,!Q);return r=a>0?$(new Uint8Array(e,t+2,a)):"",{data:r,size:2+a}}static parseLongString(e,t,i){if(i<4)throw new m("Data not enough when parse LongString");let r,n=new DataView(e,t,i),a=n.getUint32(0,!Q);return r=a>0?$(new Uint8Array(e,t+4,a)):"",{data:r,size:4+a}}static parseDate(e,t,i){if(i<10)throw new m("Data size invalid when parse Date");let r=new DataView(e,t,i),n=r.getFloat64(0,!Q),a=r.getInt16(8,!Q);return n+=60*a*1e3,{data:new Date(n),size:10}}static parseValue(e,t,i){if(i<1)throw new m("Data not enough when parse Value");let r,n=new DataView(e,t,i),a=1,s=n.getUint8(0),o=!1;try{switch(s){case 0:r=n.getFloat64(1,!Q),a+=8;break;case 1:{let e=n.getUint8(1);r=!!e,a+=1;break}case 2:{let n=J.parseString(e,t+1,i-1);r=n.data,a+=n.size;break}case 3:{r={};let s=0;9===(16777215&n.getUint32(i-4,!Q))&&(s=3);while(a32)throw new g("ExpGolomb: readBits() bits exceeded max 32bits!");if(e<=this._current_word_bits_left){let t=this._current_word>>>32-e;return this._current_word<<=e,this._current_word_bits_left-=e,t}let t=this._current_word_bits_left?this._current_word:0;t>>>=32-this._current_word_bits_left;let i=e-this._current_word_bits_left;this._fillCurrentWord();let r=Math.min(i,this._current_word_bits_left),n=this._current_word>>>32-r;return this._current_word<<=r,this._current_word_bits_left-=r,t=t<>>e))return this._current_word<<=e,this._current_word_bits_left-=e,e;return this._fillCurrentWord(),e+this._skipLeadingZero()}readUEG(){let e=this._skipLeadingZero();return this.readBits(e+1)-1}readSEG(){let e=this.readUEG();return 1&e?e+1>>>1:-1*(e>>>1)}}var te=ee;class ie{static _ebsp2rbsp(e){let t=e,i=t.byteLength,r=new Uint8Array(i),n=0;for(let a=0;a=2&&3===t[a]&&0===t[a-1]&&0===t[a-2]||(r[n]=t[a],n++);return new Uint8Array(r.buffer,0,n)}static parseSPS(e){let t=ie._ebsp2rbsp(e),i=new te(t);i.readByte();let r=i.readByte();i.readByte();let n=i.readByte();i.readUEG();let a=ie.getProfileString(r),s=ie.getLevelString(n),o=1,l=420,d=[0,420,422,444],u=8;if((100===r||110===r||122===r||244===r||44===r||83===r||86===r||118===r||128===r||138===r||144===r)&&(o=i.readUEG(),3===o&&i.readBits(1),o<=3&&(l=d[o]),u=i.readUEG()+8,i.readUEG(),i.readBits(1),i.readBool())){let e=3!==o?8:12;for(let t=0;t0&&e<16?(b=t[e-1],S=r[e-1]):255===e&&(b=i.readByte()<<8|i.readByte(),S=i.readByte()<<8|i.readByte())}if(i.readBool()&&i.readBool(),i.readBool()&&(i.readBits(4),i.readBool()&&i.readBits(24)),i.readBool()&&(i.readUEG(),i.readUEG()),i.readBool()){let e=i.readBits(32),t=i.readBits(32);w=i.readBool(),A=t,k=2*e,T=A/k}}let L=1;1===b&&1===S||(L=b/S);let D=0,I=0;if(0===o)D=1,I=2-m;else{let e=3===o?1:2,t=1===o?2:1;D=e,I=t*(2-m)}let C=16*(f+1),O=16*(p+1)*(2-m);C-=(g+v)*D,O-=(y+_)*I;let x=Math.ceil(C*L);return i.destroy(),i=null,{profile_string:a,level_string:s,bit_depth:u,ref_frames:c,chroma_format:l,chroma_format_string:ie.getChromaFormatString(l),frame_rate:{fixed:w,fps:T,fps_den:k,fps_num:A},sar_ratio:{width:b,height:S},codec_size:{width:C,height:O},present_size:{width:x,height:O}}}static _skipScalingList(e,t){let i=8,r=8,n=0;for(let a=0;a>>2!==0,n=0!==(1&t[4]),a=se(t,5);return a<9?i:{match:!0,consumed:a,dataOffset:a,hasAudioTrack:r,hasVideoTrack:n}}bindDataSource(e){return e.onDataArrival=this.parseChunks.bind(this),this}get onTrackMetadata(){return this._onTrackMetadata}set onTrackMetadata(e){this._onTrackMetadata=e}get onMediaInfo(){return this._onMediaInfo}set onMediaInfo(e){this._onMediaInfo=e}get onMetaDataArrived(){return this._onMetaDataArrived}set onMetaDataArrived(e){this._onMetaDataArrived=e}get onScriptDataArrived(){return this._onScriptDataArrived}set onScriptDataArrived(e){this._onScriptDataArrived=e}get onError(){return this._onError}set onError(e){this._onError=e}get onDataAvailable(){return this._onDataAvailable}set onDataAvailable(e){this._onDataAvailable=e}get timestampBase(){return this._timestampBase}set timestampBase(e){this._timestampBase=e}get overridedDuration(){return this._duration}set overridedDuration(e){this._durationOverrided=!0,this._duration=e,this._mediaInfo.duration=e}set overridedHasAudio(e){this._hasAudioFlagOverrided=!0,this._hasAudio=e,this._mediaInfo.hasAudio=e}set overridedHasVideo(e){this._hasVideoFlagOverrided=!0,this._hasVideo=e,this._mediaInfo.hasVideo=e}resetMediaInfo(){this._mediaInfo=new W}_isInitialMetadataDispatched(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!(this._hasAudio||!this._hasVideo)&&this._videoInitialMetadataDispatched}parseChunks(e,t){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new m("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");let i=0,r=this._littleEndian;if(0===t){if(!(e.byteLength>13))return 0;{let t=oe.probe(e);i=t.dataOffset}}if(this._firstParse){this._firstParse=!1,t+i!==this._dataOffset&&h.w(this.TAG,"First time parsing but chunk byteStart invalid!");let n=new DataView(e,i),a=n.getUint32(0,!r);0!==a&&h.w(this.TAG,"PrevTagSize0 !== 0 !!!"),i+=4}while(ie.byteLength)break;let a=n.getUint8(0),s=16777215&n.getUint32(0,!r);if(i+11+s+4>e.byteLength)break;if(8!==a&&9!==a&&18!==a){h.w(this.TAG,`Unsupported tag type ${a}, skipped`),i+=11+s+4;continue}let o=n.getUint8(4),l=n.getUint8(5),d=n.getUint8(6),u=n.getUint8(7),c=d|l<<8|o<<16|u<<24,f=16777215&n.getUint32(7,!r);0!==f&&h.w(this.TAG,"Meet tag which has StreamID != 0!");let p=i+11;switch(a){case 8:this._parseAudioData(e,p,s,c);break;case 9:this._parseVideoData(e,p,s,c,t+i);break;case 18:this._parseScriptData(e,p,s);break}let m=n.getUint32(11+s,!r);m!==11+s&&h.w(this.TAG,`Invalid PrevTagSize ${m}`),i+=11+s+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),i}_parseScriptData(e,t,i){let r=Z.parseScriptData(e,t,i);if(r.hasOwnProperty("onMetaData")){if(null==r.onMetaData||"object"!==typeof r.onMetaData)return void h.w(this.TAG,"Invalid onMetaData structure!");this._metadata&&h.w(this.TAG,"Found another onMetaData tag!"),this._metadata=r;let e=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},e)),"boolean"===typeof e.hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=e.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),"boolean"===typeof e.hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=e.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),"number"===typeof e.audiodatarate&&(this._mediaInfo.audioDataRate=e.audiodatarate),"number"===typeof e.videodatarate&&(this._mediaInfo.videoDataRate=e.videodatarate),"number"===typeof e.width&&(this._mediaInfo.width=e.width),"number"===typeof e.height&&(this._mediaInfo.height=e.height),"number"===typeof e.duration){if(!this._durationOverrided){let t=Math.floor(e.duration*this._timescale);this._duration=t,this._mediaInfo.duration=t}}else this._mediaInfo.duration=0;if("number"===typeof e.framerate){let t=Math.floor(1e3*e.framerate);if(t>0){let e=t/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=e,this._referenceFrameRate.fps_num=t,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=e}}if("object"===typeof e.keyframes){this._mediaInfo.hasKeyframesIndex=!0;let t=e.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(t),e.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=e,h.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(r).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},r))}_parseKeyframesIndex(e){let t=[],i=[];for(let r=1;r>>4;if(2!==s&&10!==s)return void this._onError(ae.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+s);let o=0,l=(12&a)>>>2;if(!(l>=0&&l<=4))return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+l);o=this._flvSoundRateTable[l];let d=1&a,u=this._audioMetadata,c=this._audioTrack;if(u||(!1===this._hasAudio&&!1===this._hasAudioFlagOverrided&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),u=this._audioMetadata={},u.type="audio",u.id=c.id,u.timescale=this._timescale,u.duration=this._duration,u.audioSampleRate=o,u.channelCount=0===d?1:2),10===s){let n=this._parseAACAudioData(e,t+1,i-1);if(void 0==n)return;if(0===n.packetType){u.config&&h.w(this.TAG,"Found another AudioSpecificConfig!");let e=n.data;u.audioSampleRate=e.samplingRate,u.channelCount=e.channelCount,u.codec=e.codec,u.originalCodec=e.originalCodec,u.config=e.config,u.refSampleDuration=1024/u.audioSampleRate*u.timescale,h.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",u);let t=this._mediaInfo;t.audioCodec=u.originalCodec,t.audioSampleRate=u.audioSampleRate,t.audioChannelCount=u.channelCount,t.hasVideo?null!=t.videoCodec&&(t.mimeType='video/x-flv; codecs="'+t.videoCodec+","+t.audioCodec+'"'):t.mimeType='video/x-flv; codecs="'+t.audioCodec+'"',t.isComplete()&&this._onMediaInfo(t)}else if(1===n.packetType){let e=this._timestampBase+r,t={unit:n.data,length:n.data.byteLength,dts:e,pts:e};c.samples.push(t),c.length+=n.data.length}else h.e(this.TAG,`Flv: Unsupported AAC data type ${n.packetType}`)}else if(2===s){if(!u.codec){let r=this._parseMP3AudioData(e,t+1,i-1,!0);if(void 0==r)return;u.audioSampleRate=r.samplingRate,u.channelCount=r.channelCount,u.codec=r.codec,u.originalCodec=r.originalCodec,u.refSampleDuration=1152/u.audioSampleRate*u.timescale,h.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",u);let n=this._mediaInfo;n.audioCodec=u.codec,n.audioSampleRate=u.audioSampleRate,n.audioChannelCount=u.channelCount,n.audioDataRate=r.bitRate,n.hasVideo?null!=n.videoCodec&&(n.mimeType='video/x-flv; codecs="'+n.videoCodec+","+n.audioCodec+'"'):n.mimeType='video/x-flv; codecs="'+n.audioCodec+'"',n.isComplete()&&this._onMediaInfo(n)}let n=this._parseMP3AudioData(e,t+1,i-1,!1);if(void 0==n)return;let a=this._timestampBase+r,s={unit:n,length:n.byteLength,dts:a,pts:a};c.samples.push(s),c.length+=n.length}}_parseAACAudioData(e,t,i){if(i<=1)return void h.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");let r={},n=new Uint8Array(e,t,i);return r.packetType=n[0],0===n[0]?r.data=this._parseAACAudioSpecificConfig(e,t+1,i-1):r.data=n.subarray(1),r}_parseAACAudioSpecificConfig(e,t,i){let r=new Uint8Array(e,t,i),n=null,a=0,s=0,o=null,l=0,d=null;if(a=s=r[0]>>>3,l=(7&r[0])<<1|r[1]>>>7,l<0||l>=this._mpegSamplingRates.length)return void this._onError(ae.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");let u=this._mpegSamplingRates[l],h=(120&r[1])>>>3;if(h<0||h>=8)return void this._onError(ae.FORMAT_ERROR,"Flv: AAC invalid channel configuration");5===a&&(d=(7&r[1])<<1|r[2]>>>7,o=(124&r[2])>>>2);let c=self.navigator.userAgent.toLowerCase();return-1!==c.indexOf("firefox")?l>=6?(a=5,n=new Array(4),d=l-3):(a=2,n=new Array(2),d=l):-1!==c.indexOf("android")?(a=2,n=new Array(2),d=l):(a=5,d=l,n=new Array(4),l>=6?d=l-3:1===h&&(a=2,n=new Array(2),d=l)),n[0]=a<<3,n[0]|=(15&l)>>>1,n[1]=(15&l)<<7,n[1]|=(15&h)<<3,5===a&&(n[1]|=(15&d)>>>1,n[2]=(1&d)<<7,n[2]|=8,n[3]=0),{config:n,samplingRate:u,channelCount:h,codec:"mp4a.40."+a,originalCodec:"mp4a.40."+s}}_parseMP3AudioData(e,t,i,r){if(i<4)return void h.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");this._littleEndian;let n=new Uint8Array(e,t,i),a=null;if(r){if(255!==n[0])return;let e=n[1]>>>3&3,t=(6&n[1])>>1,i=(240&n[2])>>>4,r=(12&n[2])>>>2,s=n[3]>>>6&3,o=3!==s?2:1,l=0,d=0,u=34,h="mp3";switch(e){case 0:l=this._mpegAudioV25SampleRateTable[r];break;case 2:l=this._mpegAudioV20SampleRateTable[r];break;case 3:l=this._mpegAudioV10SampleRateTable[r];break}switch(t){case 1:u=34,i>>4,o=15&a;7===o?this._parseAVCVideoPacket(e,t+1,i-1,r,n,s):this._onError(ae.CODEC_UNSUPPORTED,`Flv: Unsupported codec in video frame: ${o}`)}_parseAVCVideoPacket(e,t,i,r,n,a){if(i<4)return void h.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");let s=this._littleEndian,o=new DataView(e,t,i),l=o.getUint8(0),d=16777215&o.getUint32(0,!s),u=d<<8>>8;if(0===l)this._parseAVCDecoderConfigurationRecord(e,t+4,i-4);else if(1===l)this._parseAVCVideoData(e,t+4,i-4,r,n,a,u);else if(2!==l)return void this._onError(ae.FORMAT_ERROR,`Flv: Invalid video packet type ${l}`)}_parseAVCDecoderConfigurationRecord(e,t,i){if(i<7)return void h.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");let r=this._videoMetadata,n=this._videoTrack,a=this._littleEndian,s=new DataView(e,t,i);r?"undefined"!==typeof r.avcc&&h.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(!1===this._hasVideo&&!1===this._hasVideoFlagOverrided&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),r=this._videoMetadata={},r.type="video",r.id=n.id,r.timescale=this._timescale,r.duration=this._duration);let o=s.getUint8(0),l=s.getUint8(1);s.getUint8(2),s.getUint8(3);if(1!==o||0===l)return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");if(this._naluLengthSize=1+(3&s.getUint8(4)),3!==this._naluLengthSize&&4!==this._naluLengthSize)return void this._onError(ae.FORMAT_ERROR,`Flv: Strange NaluLengthSizeMinusOne: ${this._naluLengthSize-1}`);let d=31&s.getUint8(5);if(0===d)return void this._onError(ae.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");d>1&&h.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: SPS Count = ${d}`);let u=6;for(let h=0;h1&&h.w(this.TAG,`Flv: Strange AVCDecoderConfigurationRecord: PPS Count = ${c}`),u++;for(let e=0;e=i){h.w(this.TAG,`Malformed Nalu near timestamp ${p}, offset = ${c}, dataSize = ${i}`);break}let r=l.getUint32(c,!o);if(3===f&&(r>>>=8),r>i-f)return void h.w(this.TAG,`Malformed Nalus near timestamp ${p}, NaluSize > DataSize!`);let n=31&l.getUint8(c+f);5===n&&(m=!0);let a=new Uint8Array(e,t+c,f+r),s={type:n,data:a};d.push(s),u+=a.byteLength,c+=f+r}if(d.length){let e=this._videoTrack,t={units:d,length:u,isKeyframe:m,dts:p,cts:s,pts:p+s};m&&(t.fileposition=n),e.samples.push(t),e.length+=u}}}var le=oe;class de{static init(){de.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(let t in de.types)de.types.hasOwnProperty(t)&&(de.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);let e=de.constants={};e.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),e.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),e.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),e.STSC=e.STCO=e.STTS,e.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),e.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),e.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),e.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),e.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),e.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}static box(e){let t=8,i=null,r=Array.prototype.slice.call(arguments,1),n=r.length;for(let s=0;s>>24&255,i[1]=t>>>16&255,i[2]=t>>>8&255,i[3]=255&t,i.set(e,4);let a=8;for(let s=0;s>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))}static trak(e){return de.box(de.types.trak,de.tkhd(e),de.mdia(e))}static tkhd(e){let t=e.id,i=e.duration,r=e.presentWidth,n=e.presentHeight;return de.box(de.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>>8&255,255&r,0,0,n>>>8&255,255&n,0,0]))}static mdia(e){return de.box(de.types.mdia,de.mdhd(e),de.hdlr(e),de.minf(e))}static mdhd(e){let t=e.timescale,i=e.duration;return de.box(de.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,i>>>24&255,i>>>16&255,i>>>8&255,255&i,85,196,0,0]))}static hdlr(e){let t=null;return t="audio"===e.type?de.constants.HDLR_AUDIO:de.constants.HDLR_VIDEO,de.box(de.types.hdlr,t)}static minf(e){let t=null;return t="audio"===e.type?de.box(de.types.smhd,de.constants.SMHD):de.box(de.types.vmhd,de.constants.VMHD),de.box(de.types.minf,t,de.dinf(),de.stbl(e))}static dinf(){let e=de.box(de.types.dinf,de.box(de.types.dref,de.constants.DREF));return e}static stbl(e){let t=de.box(de.types.stbl,de.stsd(e),de.box(de.types.stts,de.constants.STTS),de.box(de.types.stsc,de.constants.STSC),de.box(de.types.stsz,de.constants.STSZ),de.box(de.types.stco,de.constants.STCO));return t}static stsd(e){return"audio"===e.type?"mp3"===e.codec?de.box(de.types.stsd,de.constants.STSD_PREFIX,de.mp3(e)):de.box(de.types.stsd,de.constants.STSD_PREFIX,de.mp4a(e)):de.box(de.types.stsd,de.constants.STSD_PREFIX,de.avc1(e))}static mp3(e){let t=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return de.box(de.types[".mp3"],r)}static mp4a(e){let t=e.channelCount,i=e.audioSampleRate,r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t,0,16,0,0,0,0,i>>>8&255,255&i,0,0]);return de.box(de.types.mp4a,r,de.esds(e))}static esds(e){let t=e.config||[],i=t.length,r=new Uint8Array([0,0,0,0,3,23+i,0,1,0,4,15+i,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([i]).concat(t).concat([6,1,2]));return de.box(de.types.esds,r)}static avc1(e){let t=e.avcc,i=e.codecWidth,r=e.codecHeight,n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,i>>>8&255,255&i,r>>>8&255,255&r,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return de.box(de.types.avc1,n,de.box(de.types.avcC,t))}static mvex(e){return de.box(de.types.mvex,de.trex(e))}static trex(e){let t=e.id,i=new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return de.box(de.types.trex,i)}static moof(e,t){return de.box(de.types.moof,de.mfhd(e.sequenceNumber),de.traf(e,t))}static mfhd(e){let t=new Uint8Array([0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]);return de.box(de.types.mfhd,t)}static traf(e,t){let i=e.id,r=de.box(de.types.tfhd,new Uint8Array([0,0,0,0,i>>>24&255,i>>>16&255,i>>>8&255,255&i])),n=de.box(de.types.tfdt,new Uint8Array([0,0,0,0,t>>>24&255,t>>>16&255,t>>>8&255,255&t])),a=de.sdtp(e),s=de.trun(e,a.byteLength+16+16+8+16+8+8);return de.box(de.types.traf,r,n,s,a)}static sdtp(e){let t=e.samples||[],i=t.length,r=new Uint8Array(4+i);for(let n=0;n>>24&255,r>>>16&255,r>>>8&255,255&r,t>>>24&255,t>>>16&255,t>>>8&255,255&t],0);for(let s=0;s>>24&255,e>>>16&255,e>>>8&255,255&e,t>>>24&255,t>>>16&255,t>>>8&255,255&t,r.isLeading<<2|r.dependsOn,r.isDependedOn<<6|r.hasRedundancy<<4|r.isNonSync,0,0,n>>>24&255,n>>>16&255,n>>>8&255,255&n],12+16*s)}return de.box(de.types.trun,a)}static mdat(e){return de.box(de.types.mdat,e)}}de.init();var ue=de;class he{static getSilentFrame(e,t){if("mp4a.40.2"===e){if(1===t)return new Uint8Array([0,200,0,128,35,128]);if(2===t)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===t)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(1===t)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===t)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null}}var ce=he;class fe{constructor(e,t,i,r,n){this.dts=e,this.pts=t,this.duration=i,this.originalDts=r,this.isSyncPoint=n,this.fileposition=null}}class pe{constructor(){this.beginDts=0,this.endDts=0,this.beginPts=0,this.endPts=0,this.originalBeginDts=0,this.originalEndDts=0,this.syncPoints=[],this.firstSample=null,this.lastSample=null}appendSyncPoint(e){e.isSyncPoint=!0,this.syncPoints.push(e)}}class me{constructor(){this._list=[]}clear(){this._list=[]}appendArray(e){let t=this._list;0!==e.length&&(t.length>0&&e[0].originalDts=t[n].dts&&et[r].lastSample.originalDts&&e=t[r].lastSample.originalDts&&(r===t.length-1||r0&&(n=this._searchNearestSegmentBefore(i.originalBeginDts)+1),this._lastAppendLocation=n,this._list.splice(n,0,i)}getLastSegmentBefore(e){let t=this._searchNearestSegmentBefore(e);return t>=0?this._list[t]:null}getLastSampleBefore(e){let t=this.getLastSegmentBefore(e);return null!=t?t.lastSample:null}getLastSyncPointBefore(e){let t=this._searchNearestSegmentBefore(e),i=this._list[t].syncPoints;while(0===i.length&&t>0)t--,i=this._list[t].syncPoints;return i.length>0?i[i.length-1]:null}}class ve{constructor(e){this.TAG="MP4Remuxer",this._config=e,this._isLive=!0===e.isLive,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new ge("audio"),this._videoSegmentInfoList=new ge("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!(!T.chrome||!(T.version.major<50||50===T.version.major&&T.version.build<2661)),this._fillSilentAfterSeek=T.msedge||T.msie,this._mp3UseMpegAudio=!T.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}destroy(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null}bindDataSource(e){return e.onDataAvailable=this.remux.bind(this),e.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this}get onInitSegment(){return this._onInitSegment}set onInitSegment(e){this._onInitSegment=e}get onMediaSegment(){return this._onMediaSegment}set onMediaSegment(e){this._onMediaSegment=e}insertDiscontinuity(){this._audioNextDts=this._videoNextDts=void 0}seek(e){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()}remux(e,t){if(!this._onMediaSegment)throw new m("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(e,t),this._remuxVideo(t),this._remuxAudio(e)}_onTrackMetadataReceived(e,t){let i=null,r="mp4",n=t.codec;if("audio"===e)this._audioMeta=t,"mp3"===t.codec&&this._mp3UseMpegAudio?(r="mpeg",n="",i=new Uint8Array):i=ue.generateInitSegment(t);else{if("video"!==e)return;this._videoMeta=t,i=ue.generateInitSegment(t)}if(!this._onInitSegment)throw new m("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(e,{type:e,data:i.buffer,codec:n,container:`${e}/${r}`,mediaDuration:t.duration})}_calculateDtsBase(e,t){this._dtsBaseInited||(e.samples&&e.samples.length&&(this._audioDtsBase=e.samples[0].dts),t.samples&&t.samples.length&&(this._videoDtsBase=t.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)}flushStashedSamples(){let e=this._videoStashedLastSample,t=this._audioStashedLastSample,i={type:"video",id:1,sequenceNumber:0,samples:[],length:0};null!=e&&(i.samples.push(e),i.length=e.length);let r={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};null!=t&&(r.samples.push(t),r.length=t.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(i,!0),this._remuxAudio(r,!0)}_remuxAudio(e,t){if(null==this._audioMeta)return;let i=e,r=i.samples,n=void 0,a=-1,s=-1,o=this._audioMeta.refSampleDuration,l="mp3"===this._audioMeta.codec&&this._mp3UseMpegAudio,d=this._dtsBaseInited&&void 0===this._audioNextDts,u=!1;if(!r||0===r.length)return;if(1===r.length&&!t)return;let c=0,f=null,p=0;l?(c=0,p=i.length):(c=8,p=8+i.length);let m=null;if(r.length>1&&(m=r.pop(),p-=m.length),null!=this._audioStashedLastSample){let e=this._audioStashedLastSample;this._audioStashedLastSample=null,r.unshift(e),p+=e.length}null!=m&&(this._audioStashedLastSample=m);let g=r[0].dts-this._dtsBase;if(this._audioNextDts)n=g-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())n=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&"mp3"!==this._audioMeta.originalCodec&&(u=!0);else{let e=this._audioSegmentInfoList.getLastSampleBefore(g);if(null!=e){let t=g-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;n=g-i}else n=0}if(u){let e=g-n,t=this._videoSegmentInfoList.getLastSegmentBefore(g);if(null!=t&&t.beginDts=1?v[v.length-1].duration:Math.floor(o);let d=!1,u=null;if(l>1.5*o&&"mp3"!==this._audioMeta.codec&&this._fillAudioTimestampGap&&!T.safari){d=!0;let e=Math.abs(l-o),r=Math.ceil(e/o),n=s+o;h.w(this.TAG,"Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync.\n"+`dts: ${s+l} ms, expected: ${s+Math.round(o)} ms, `+`delta: ${Math.round(e)} ms, generate: ${r} frames`);let a=ce.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);null==a&&(h.w(this.TAG,"Unable to generate silent frame for "+`${this._audioMeta.originalCodec} with ${this._audioMeta.channelCount} channels, repeat last frame`),a=t),u=[];for(let t=0;t0){let t=u[u.length-1];t.duration=e-t.dts}let t={dts:e,pts:e,cts:0,unit:a,size:a.byteLength,duration:0,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}};u.push(t),p+=t.size,n+=o}let c=u[u.length-1];c.duration=s+l-c.dts,l=Math.round(o)}v.push({dts:s,pts:s,cts:0,unit:e.unit,size:e.unit.byteLength,duration:l,originalDts:i,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),d&&v.push.apply(v,u)}l?f=new Uint8Array(p):(f=new Uint8Array(p),f[0]=p>>>24&255,f[1]=p>>>16&255,f[2]=p>>>8&255,f[3]=255&p,f.set(ue.types.mdat,4));for(let h=0;h1&&(c=r.pop(),h-=c.length),null!=this._videoStashedLastSample){let e=this._videoStashedLastSample;this._videoStashedLastSample=null,r.unshift(e),h+=e.length}null!=c&&(this._videoStashedLastSample=c);let f=r[0].dts-this._dtsBase;if(this._videoNextDts)n=f-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())n=0;else{let e=this._videoSegmentInfoList.getLastSampleBefore(f);if(null!=e){let t=f-(e.originalDts+e.duration);t<=3&&(t=0);let i=e.dts+e.duration+t;n=f-i}else n=0}let p=new pe,m=[];for(let y=0;y=1?m[m.length-1].duration:Math.floor(this._videoMeta.refSampleDuration);if(i){let t=new fe(s,d,u,e.dts,!0);t.fileposition=e.fileposition,p.appendSyncPoint(t)}m.push({dts:s,pts:d,cts:l,units:e.units,size:e.length,isKeyframe:i,duration:u,originalDts:t,flags:{isLeading:0,dependsOn:i?2:1,isDependedOn:i?1:0,hasRedundancy:0,isNonSync:i?0:1}})}u=new Uint8Array(h),u[0]=h>>>24&255,u[1]=h>>>16&255,u[2]=h>>>8&255,u[3]=255&h,u.set(ue.types.mdat,4);for(let y=0;y{r.timestampBase=i,i+=r.duration,r.cors=e.cors,r.withCredentials=e.withCredentials,t.referrerPolicy&&(r.referrerPolicy=t.referrerPolicy)}),isNaN(i)||this._mediaDataSource.duration===i||(this._mediaDataSource.duration=i),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}destroy(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}start(){this._loadSegment(0),this._enableStatisticsReporter()}_loadSegment(e,t){this._currentSegmentIndex=e;let i=this._mediaDataSource.segments[e],r=this._ioctl=new B(i,this._config,e);r.onError=this._onIOException.bind(this),r.onSeeked=this._onIOSeeked.bind(this),r.onComplete=this._onIOComplete.bind(this),r.onRedirect=this._onIORedirect.bind(this),r.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),t?this._demuxer.bindDataSource(this._ioctl):r.onDataArrival=this._onInitChunkArrival.bind(this),r.open(t)}stop(){this._internalAbort(),this._disableStatisticsReporter()}_internalAbort(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)}pause(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())}resume(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())}seek(e){if(null==this._mediaInfo||!this._mediaInfo.isSeekable())return;let t=this._searchSegmentIndexContains(e);if(t===this._currentSegmentIndex){let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e;else{let t=i.getNearestKeyframe(e);this._remuxer.seek(t.milliseconds),this._ioctl.seek(t.fileposition),this._pendingResolveSeekPoint=t.milliseconds}}else{let i=this._mediaInfo.segments[t];if(void 0==i)this._pendingSeekTime=e,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(t);else{let r=i.getNearestKeyframe(e);this._internalAbort(),this._remuxer.seek(e),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[t].timestampBase,this._loadSegment(t,r.fileposition),this._pendingResolveSeekPoint=r.milliseconds,this._reportSegmentMediaInfo(t)}}this._enableStatisticsReporter()}_searchSegmentIndexContains(e){let t=this._mediaDataSource.segments,i=t.length-1;for(let r=0;r0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,r=this._demuxer.parseChunks(e,t);else if((i=le.probe(e)).match){this._demuxer=new le(i,this._config),this._remuxer||(this._remuxer=new ye(this._config));let n=this._mediaDataSource;void 0==n.duration||isNaN(n.duration)||(this._demuxer.overridedDuration=n.duration),"boolean"===typeof n.hasAudio&&(this._demuxer.overridedHasAudio=n.hasAudio),"boolean"===typeof n.hasVideo&&(this._demuxer.overridedHasVideo=n.hasVideo),this._demuxer.timestampBase=n.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),r=this._demuxer.parseChunks(e,t)}else i=null,h.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(()=>{this._internalAbort()}),this._emitter.emit(Ee.DEMUX_ERROR,ae.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),r=0;return r}_onMediaInfo(e){null==this._mediaInfo&&(this._mediaInfo=Object.assign({},e),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,W.prototype));let t=Object.assign({},e);Object.setPrototypeOf(t,W.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=t,this._reportSegmentMediaInfo(this._currentSegmentIndex),null!=this._pendingSeekTime&&Promise.resolve().then(()=>{let e=this._pendingSeekTime;this._pendingSeekTime=null,this.seek(e)})}_onMetaDataArrived(e){this._emitter.emit(Ee.METADATA_ARRIVED,e)}_onScriptDataArrived(e){this._emitter.emit(Ee.SCRIPTDATA_ARRIVED,e)}_onIOSeeked(){this._remuxer.insertDiscontinuity()}_onIOComplete(e){let t=e,i=t+1;i0&&e[0].originalDts===i&&(i=e[0].pts),this._emitter.emit(Ee.RECOMMEND_SEEKPOINT,i)}}_enableStatisticsReporter(){null==this._statisticsReporter&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))}_disableStatisticsReporter(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}_reportSegmentMediaInfo(e){let t=this._mediaInfo.segments[e],i=Object.assign({},t);i.duration=this._mediaInfo.duration,i.segmentCount=this._mediaInfo.segmentCount,delete i.segments,delete i.keyframesIndex,this._emitter.emit(Ee.MEDIA_INFO,i)}_reportStatisticsInfo(){let e={};e.url=this._ioctl.currentURL,e.hasRedirect=this._ioctl.hasRedirect,e.hasRedirect&&(e.redirectedURL=this._ioctl.currentRedirectedURL),e.speed=this._ioctl.currentSpeed,e.loaderType=this._ioctl.loaderType,e.currentSegmentIndex=this._currentSegmentIndex,e.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(Ee.STATISTICS_INFO,e)}}var Se=be;let Te=function(e){let t=null,i=m.bind(this);function r(t,i){let r={msg:Ee.INIT_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function n(t,i){let r={msg:Ee.MEDIA_SEGMENT,data:{type:t,data:i}};e.postMessage(r,[i.data])}function a(){let t={msg:Ee.LOADING_COMPLETE};e.postMessage(t)}function s(){let t={msg:Ee.RECOVERED_EARLY_EOF};e.postMessage(t)}function l(t){let i={msg:Ee.MEDIA_INFO,data:t};e.postMessage(i)}function d(t){let i={msg:Ee.METADATA_ARRIVED,data:t};e.postMessage(i)}function u(t){let i={msg:Ee.SCRIPTDATA_ARRIVED,data:t};e.postMessage(i)}function h(t){let i={msg:Ee.STATISTICS_INFO,data:t};e.postMessage(i)}function c(t,i){e.postMessage({msg:Ee.IO_ERROR,data:{type:t,info:i}})}function f(t,i){e.postMessage({msg:Ee.DEMUX_ERROR,data:{type:t,info:i}})}function p(t){e.postMessage({msg:Ee.RECOMMEND_SEEKPOINT,data:t})}function m(t,i){e.postMessage({msg:"logcat_callback",data:{type:t,logcat:i}})}o.install(),e.addEventListener("message",(function(o){switch(o.data.cmd){case"init":t=new Se(o.data.param[0],o.data.param[1]),t.on(Ee.IO_ERROR,c.bind(this)),t.on(Ee.DEMUX_ERROR,f.bind(this)),t.on(Ee.INIT_SEGMENT,r.bind(this)),t.on(Ee.MEDIA_SEGMENT,n.bind(this)),t.on(Ee.LOADING_COMPLETE,a.bind(this)),t.on(Ee.RECOVERED_EARLY_EOF,s.bind(this)),t.on(Ee.MEDIA_INFO,l.bind(this)),t.on(Ee.METADATA_ARRIVED,d.bind(this)),t.on(Ee.SCRIPTDATA_ARRIVED,u.bind(this)),t.on(Ee.STATISTICS_INFO,h.bind(this)),t.on(Ee.RECOMMEND_SEEKPOINT,p.bind(this));break;case"destroy":t&&(t.destroy(),t=null),e.postMessage({msg:"destroyed"});break;case"start":t.start();break;case"stop":t.stop();break;case"seek":t.seek(o.data.param);break;case"pause":t.pause();break;case"resume":t.resume();break;case"logging_config":{let e=o.data.param;H.applyConfig(e),!0===e.enableCallback?H.addLogListener(i):H.removeLogListener(i);break}}}))};var we=Te;class Ae{constructor(e,t){if(this.TAG="Transmuxer",this._emitter=new d.a,t.enableWorker&&"undefined"!==typeof Worker)try{let r=i("d2be");this._worker=r(we),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[e,t]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},H.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:H.getConfig()})}catch(r){h.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new Se(e,t)}else this._controller=new Se(e,t);if(this._controller){let e=this._controller;e.on(Ee.IO_ERROR,this._onIOError.bind(this)),e.on(Ee.DEMUX_ERROR,this._onDemuxError.bind(this)),e.on(Ee.INIT_SEGMENT,this._onInitSegment.bind(this)),e.on(Ee.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),e.on(Ee.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),e.on(Ee.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),e.on(Ee.MEDIA_INFO,this._onMediaInfo.bind(this)),e.on(Ee.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),e.on(Ee.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),e.on(Ee.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),e.on(Ee.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}destroy(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),H.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}hasWorker(){return null!=this._worker}open(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()}close(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()}seek(e){this._worker?this._worker.postMessage({cmd:"seek",param:e}):this._controller.seek(e)}pause(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()}resume(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()}_onInitSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.INIT_SEGMENT,e,t)})}_onMediaSegment(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.MEDIA_SEGMENT,e,t)})}_onLoadingComplete(){Promise.resolve().then(()=>{this._emitter.emit(Ee.LOADING_COMPLETE)})}_onRecoveredEarlyEof(){Promise.resolve().then(()=>{this._emitter.emit(Ee.RECOVERED_EARLY_EOF)})}_onMediaInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.MEDIA_INFO,e)})}_onMetaDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.METADATA_ARRIVED,e)})}_onScriptDataArrived(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.SCRIPTDATA_ARRIVED,e)})}_onStatisticsInfo(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.STATISTICS_INFO,e)})}_onIOError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.IO_ERROR,e,t)})}_onDemuxError(e,t){Promise.resolve().then(()=>{this._emitter.emit(Ee.DEMUX_ERROR,e,t)})}_onRecommendSeekpoint(e){Promise.resolve().then(()=>{this._emitter.emit(Ee.RECOMMEND_SEEKPOINT,e)})}_onLoggingConfigChanged(e){this._worker&&this._worker.postMessage({cmd:"logging_config",param:e})}_onWorkerMessage(e){let t=e.data,i=t.data;if("destroyed"===t.msg||this._workerDestroying)return this._workerDestroying=!1,this._worker.terminate(),void(this._worker=null);switch(t.msg){case Ee.INIT_SEGMENT:case Ee.MEDIA_SEGMENT:this._emitter.emit(t.msg,i.type,i.data);break;case Ee.LOADING_COMPLETE:case Ee.RECOVERED_EARLY_EOF:this._emitter.emit(t.msg);break;case Ee.MEDIA_INFO:Object.setPrototypeOf(i,W.prototype),this._emitter.emit(t.msg,i);break;case Ee.METADATA_ARRIVED:case Ee.SCRIPTDATA_ARRIVED:case Ee.STATISTICS_INFO:this._emitter.emit(t.msg,i);break;case Ee.IO_ERROR:case Ee.DEMUX_ERROR:this._emitter.emit(t.msg,i.type,i.info);break;case Ee.RECOMMEND_SEEKPOINT:this._emitter.emit(t.msg,i);break;case"logcat_callback":h.emitter.emit("log",i.type,i.logcat);break;default:break}}}var ke=Ae;const Re={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};var Le=Re;class De{constructor(e){this.TAG="MSEController",this._config=e,this._emitter=new d.a,this._config.isLive&&void 0==this._config.autoCleanupSourceBuffer&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new me}destroy(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaSource)throw new m("MediaSource has been attached to an HTMLMediaElement!");let t=this._mediaSource=new window.MediaSource;t.addEventListener("sourceopen",this.e.onSourceOpen),t.addEventListener("sourceended",this.e.onSourceEnded),t.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=e,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),e.src=this._mediaSourceObjectURL}detachMediaElement(){if(this._mediaSource){let t=this._mediaSource;for(let i in this._sourceBuffers){let r=this._pendingSegments[i];r.splice(0,r.length),this._pendingSegments[i]=null,this._pendingRemoveRanges[i]=null,this._lastInitSegments[i]=null;let n=this._sourceBuffers[i];if(n){if("closed"!==t.readyState){try{t.removeSourceBuffer(n)}catch(e){h.e(this.TAG,e.message)}n.removeEventListener("error",this.e.onSourceBufferError),n.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[i]=null,this._sourceBuffers[i]=null}}if("open"===t.readyState)try{t.endOfStream()}catch(e){h.e(this.TAG,e.message)}t.removeEventListener("sourceopen",this.e.onSourceOpen),t.removeEventListener("sourceended",this.e.onSourceEnded),t.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)}appendInitSegment(e,t){if(!this._mediaSource||"open"!==this._mediaSource.readyState)return this._pendingSourceBufferInit.push(e),void this._pendingSegments[e.type].push(e);let i=e,r=`${i.container}`;i.codec&&i.codec.length>0&&(r+=`;codecs=${i.codec}`);let n=!1;if(h.v(this.TAG,"Received Initialization Segment, mimeType: "+r),this._lastInitSegments[i.type]=i,r!==this._mimeTypes[i.type]){if(this._mimeTypes[i.type])h.v(this.TAG,`Notice: ${i.type} mimeType changed, origin: ${this._mimeTypes[i.type]}, target: ${r}`);else{n=!0;try{let e=this._sourceBuffers[i.type]=this._mediaSource.addSourceBuffer(r);e.addEventListener("error",this.e.onSourceBufferError),e.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(a){return h.e(this.TAG,a.message),void this._emitter.emit(Le.ERROR,{code:a.code,msg:a.message})}}this._mimeTypes[i.type]=r}t||this._pendingSegments[i.type].push(i),n||this._sourceBuffers[i.type]&&!this._sourceBuffers[i.type].updating&&this._doAppendSegments(),T.safari&&"audio/mpeg"===i.container&&i.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=i.mediaDuration/1e3,this._updateMediaSourceDuration())}appendMediaSegment(e){let t=e;this._pendingSegments[t.type].push(t),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();let i=this._sourceBuffers[t.type];!i||i.updating||this._hasPendingRemoveRanges()||this._doAppendSegments()}seek(e){for(let i in this._sourceBuffers){if(!this._sourceBuffers[i])continue;let e=this._sourceBuffers[i];if("open"===this._mediaSource.readyState)try{e.abort()}catch(t){h.e(this.TAG,t.message)}this._idrList.clear();let r=this._pendingSegments[i];if(r.splice(0,r.length),"closed"!==this._mediaSource.readyState){for(let t=0;t=1&&e-t.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1}_doCleanupSourceBuffer(){let e=this._mediaElement.currentTime;for(let t in this._sourceBuffers){let i=this._sourceBuffers[t];if(i){let r=i.buffered,n=!1;for(let i=0;i=this._config.autoCleanupMaxBackwardDuration){n=!0;let i=e-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[t].push({start:a,end:i})}}else s0&&(isNaN(t)||i>t)&&(h.v(this.TAG,`Update MediaSource duration from ${t} to ${i}`),this._mediaSource.duration=i),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}_doRemoveRanges(){for(let e in this._pendingRemoveRanges){if(!this._sourceBuffers[e]||this._sourceBuffers[e].updating)continue;let t=this._sourceBuffers[e],i=this._pendingRemoveRanges[e];while(i.length&&!t.updating){let e=i.shift();t.remove(e.start,e.end)}}}_doAppendSegments(){let e=this._pendingSegments;for(let i in e)if(this._sourceBuffers[i]&&!this._sourceBuffers[i].updating&&e[i].length>0){let r=e[i].shift();if(r.timestampOffset){let e=this._sourceBuffers[i].timestampOffset,t=r.timestampOffset/1e3,n=Math.abs(e-t);n>.1&&(h.v(this.TAG,`Update MPEG audio timestampOffset from ${e} to ${t}`),this._sourceBuffers[i].timestampOffset=t),delete r.timestampOffset}if(!r.data||0===r.data.byteLength)continue;try{this._sourceBuffers[i].appendBuffer(r.data),this._isBufferFull=!1,"video"===i&&r.hasOwnProperty("info")&&this._idrList.appendArray(r.info.syncPoints)}catch(t){this._pendingSegments[i].unshift(r),22===t.code?(this._isBufferFull||this._emitter.emit(Le.BUFFER_FULL),this._isBufferFull=!0):(h.e(this.TAG,t.message),this._emitter.emit(Le.ERROR,{code:t.code,msg:t.message}))}}}_onSourceOpen(){if(h.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0){let e=this._pendingSourceBufferInit;while(e.length){let t=e.shift();this.appendInitSegment(t,!0)}}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(Le.SOURCE_OPEN)}_onSourceEnded(){h.v(this.TAG,"MediaSource onSourceEnded")}_onSourceClose(){h.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&null!=this.e&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))}_hasPendingSegments(){let e=this._pendingSegments;return e.video.length>0||e.audio.length>0}_hasPendingRemoveRanges(){let e=this._pendingRemoveRanges;return e.video.length>0||e.audio.length>0}_onSourceBufferUpdateEnd(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(Le.UPDATE_END)}_onSourceBufferError(e){h.e(this.TAG,`SourceBuffer Error: ${e}`)}}var Ie=De;const Ce={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},Oe={NETWORK_EXCEPTION:_.EXCEPTION,NETWORK_STATUS_CODE_INVALID:_.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:_.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:_.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:ae.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:ae.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:ae.CODEC_UNSUPPORTED};class xe{constructor(e,t){if(this.TAG="FlvPlayer",this._type="FlvPlayer",this._emitter=new d.a,this._config=U(),"object"===typeof t&&Object.assign(this._config,t),"flv"!==e.type.toLowerCase())throw new g("FlvPlayer requires an flv MediaDataSource input!");!0===e.isLive&&(this._config.isLive=!0),this.e={onvLoadedMetadata:this._onvLoadedMetadata.bind(this),onvSeeking:this._onvSeeking.bind(this),onvCanPlay:this._onvCanPlay.bind(this),onvStalled:this._onvStalled.bind(this),onvProgress:this._onvProgress.bind(this)},self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now,this._pendingSeekTime=null,this._requestSetTime=!1,this._seekpointRecord=null,this._progressChecker=null,this._mediaDataSource=e,this._mediaElement=null,this._msectl=null,this._transmuxer=null,this._mseSourceOpened=!1,this._hasPendingLoad=!1,this._receivedCanPlay=!1,this._mediaInfo=null,this._statisticsInfo=null;let i=T.chrome&&(T.version.major<50||50===T.version.major&&T.version.build<2661);this._alwaysSeekKeyframe=!!(i||T.msedge||T.msie),this._alwaysSeekKeyframe&&(this._config.accurateSeek=!1)}destroy(){null!=this._progressChecker&&(window.clearInterval(this._progressChecker),this._progressChecker=null),this._transmuxer&&this.unload(),this._mediaElement&&this.detachMediaElement(),this.e=null,this._mediaDataSource=null,this._emitter.removeAllListeners(),this._emitter=null}on(e,t){e===q.MEDIA_INFO?null!=this._mediaInfo&&Promise.resolve().then(()=>{this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}):e===q.STATISTICS_INFO&&null!=this._statisticsInfo&&Promise.resolve().then(()=>{this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),e.addEventListener("seeking",this.e.onvSeeking),e.addEventListener("canplay",this.e.onvCanPlay),e.addEventListener("stalled",this.e.onvStalled),e.addEventListener("progress",this.e.onvProgress),this._msectl=new Ie(this._config),this._msectl.on(Le.UPDATE_END,this._onmseUpdateEnd.bind(this)),this._msectl.on(Le.BUFFER_FULL,this._onmseBufferFull.bind(this)),this._msectl.on(Le.SOURCE_OPEN,()=>{this._mseSourceOpened=!0,this._hasPendingLoad&&(this._hasPendingLoad=!1,this.load())}),this._msectl.on(Le.ERROR,e=>{this._emitter.emit(q.ERROR,Ce.MEDIA_ERROR,Oe.MEDIA_MSE_ERROR,e)}),this._msectl.attachMediaElement(e),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._msectl.detachMediaElement(),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement.removeEventListener("seeking",this.e.onvSeeking),this._mediaElement.removeEventListener("canplay",this.e.onvCanPlay),this._mediaElement.removeEventListener("stalled",this.e.onvStalled),this._mediaElement.removeEventListener("progress",this.e.onvProgress),this._mediaElement=null),this._msectl&&(this._msectl.destroy(),this._msectl=null)}load(){if(!this._mediaElement)throw new m("HTMLMediaElement must be attached before load()!");if(this._transmuxer)throw new m("FlvPlayer.load() has been called, please call unload() first!");this._hasPendingLoad||(this._config.deferLoadAfterSourceOpen&&!1===this._mseSourceOpened?this._hasPendingLoad=!0:(this._mediaElement.readyState>0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new ke(this._mediaDataSource,this._config),this._transmuxer.on(Ee.INIT_SEGMENT,(e,t)=>{this._msectl.appendInitSegment(t)}),this._transmuxer.on(Ee.MEDIA_SEGMENT,(e,t)=>{if(this._msectl.appendMediaSegment(t),this._config.lazyLoad&&!this._config.isLive){let e=this._mediaElement.currentTime;t.info.endDts>=1e3*(e+this._config.lazyLoadMaxDuration)&&null==this._progressChecker&&(h.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}}),this._transmuxer.on(Ee.LOADING_COMPLETE,()=>{this._msectl.endOfStream(),this._emitter.emit(q.LOADING_COMPLETE)}),this._transmuxer.on(Ee.RECOVERED_EARLY_EOF,()=>{this._emitter.emit(q.RECOVERED_EARLY_EOF)}),this._transmuxer.on(Ee.IO_ERROR,(e,t)=>{this._emitter.emit(q.ERROR,Ce.NETWORK_ERROR,e,t)}),this._transmuxer.on(Ee.DEMUX_ERROR,(e,t)=>{this._emitter.emit(q.ERROR,Ce.MEDIA_ERROR,e,{code:-1,msg:t})}),this._transmuxer.on(Ee.MEDIA_INFO,e=>{this._mediaInfo=e,this._emitter.emit(q.MEDIA_INFO,Object.assign({},e))}),this._transmuxer.on(Ee.METADATA_ARRIVED,e=>{this._emitter.emit(q.METADATA_ARRIVED,e)}),this._transmuxer.on(Ee.SCRIPTDATA_ARRIVED,e=>{this._emitter.emit(q.SCRIPTDATA_ARRIVED,e)}),this._transmuxer.on(Ee.STATISTICS_INFO,e=>{this._statisticsInfo=this._fillStatisticsInfo(e),this._emitter.emit(q.STATISTICS_INFO,Object.assign({},this._statisticsInfo))}),this._transmuxer.on(Ee.RECOMMEND_SEEKPOINT,e=>{this._mediaElement&&!this._config.accurateSeek&&(this._requestSetTime=!0,this._mediaElement.currentTime=e/1e3)}),this._transmuxer.open()))}unload(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._internalSeek(e):this._pendingSeekTime=e}get mediaInfo(){return Object.assign({},this._mediaInfo)}get statisticsInfo(){return null==this._statisticsInfo&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)}_fillStatisticsInfo(e){if(e.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,r=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e}_onmseUpdateEnd(){if(!this._config.lazyLoad||this._config.isLive)return;let e=this._mediaElement.buffered,t=this._mediaElement.currentTime,i=0,r=0;for(let n=0;n=t+this._config.lazyLoadMaxDuration&&null==this._progressChecker&&(h.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}_onmseBufferFull(){h.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),null==this._progressChecker&&this._suspendTransmuxer()}_suspendTransmuxer(){this._transmuxer&&(this._transmuxer.pause(),null==this._progressChecker&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))}_checkProgressAndResume(){let e=this._mediaElement.currentTime,t=this._mediaElement.buffered,i=!1;for(let r=0;r=n&&e=a-this._config.lazyLoadRecoverDuration&&(i=!0);break}}i&&(window.clearInterval(this._progressChecker),this._progressChecker=null,i&&(h.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))}_isTimepointBuffered(e){let t=this._mediaElement.buffered;for(let i=0;i=r&&e0){let t=this._mediaElement.buffered.start(0);(t<1&&e0&&t.currentTime0){let e=i.start(0);if(e<1&&t{this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}):e===q.STATISTICS_INFO&&null!=this._mediaElement&&0!==this._mediaElement.readyState&&Promise.resolve().then(()=>{this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}),this._emitter.addListener(e,t)}off(e,t){this._emitter.removeListener(e,t)}attachMediaElement(e){if(this._mediaElement=e,e.addEventListener("loadedmetadata",this.e.onvLoadedMetadata),null!=this._pendingSeekTime)try{e.currentTime=this._pendingSeekTime,this._pendingSeekTime=null}catch(t){}}detachMediaElement(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement.removeEventListener("loadedmetadata",this.e.onvLoadedMetadata),this._mediaElement=null),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}load(){if(!this._mediaElement)throw new m("HTMLMediaElement must be attached before load()!");this._mediaElement.src=this._mediaDataSource.url,this._mediaElement.readyState>0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)}unload(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),null!=this._statisticsReporter&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)}play(){return this._mediaElement.play()}pause(){this._mediaElement.pause()}get type(){return this._type}get buffered(){return this._mediaElement.buffered}get duration(){return this._mediaElement.duration}get volume(){return this._mediaElement.volume}set volume(e){this._mediaElement.volume=e}get muted(){return this._mediaElement.muted}set muted(e){this._mediaElement.muted=e}get currentTime(){return this._mediaElement?this._mediaElement.currentTime:0}set currentTime(e){this._mediaElement?this._mediaElement.currentTime=e:this._pendingSeekTime=e}get mediaInfo(){let e=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",t={mimeType:e+this._mediaDataSource.type};return this._mediaElement&&(t.duration=Math.floor(1e3*this._mediaElement.duration),this._mediaElement instanceof HTMLVideoElement&&(t.width=this._mediaElement.videoWidth,t.height=this._mediaElement.videoHeight)),t}get statisticsInfo(){let e={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return e;let t=!0,i=0,r=0;if(this._mediaElement.getVideoPlaybackQuality){let e=this._mediaElement.getVideoPlaybackQuality();i=e.totalVideoFrames,r=e.droppedVideoFrames}else void 0!=this._mediaElement.webkitDecodedFrameCount?(i=this._mediaElement.webkitDecodedFrameCount,r=this._mediaElement.webkitDroppedFrameCount):t=!1;return t&&(e.decodedFrames=i,e.droppedFrames=r),e}_onvLoadedMetadata(e){null!=this._pendingSeekTime&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(q.MEDIA_INFO,this.mediaInfo)}_reportStatisticsInfo(){this._emitter.emit(q.STATISTICS_INFO,this.statisticsInfo)}}var Fe=Pe;function Be(e,t){let i=e;if(null==i||"object"!==typeof i)throw new g("MediaDataSource must be an javascript object!");if(!i.hasOwnProperty("type"))throw new g("MediaDataSource must has type field to indicate video file type!");switch(i.type){case"flv":return new Me(i,t);default:return new Fe(i,t)}}function Ne(){return j.supportMSEH264Playback()}function Ue(){return j.getFeatureList()}o.install();let Ge={};Ge.createPlayer=Be,Ge.isSupported=Ne,Ge.getFeatureList=Ue,Ge.BaseLoader=E,Ge.LoaderStatus=y,Ge.LoaderErrors=_,Ge.Events=q,Ge.ErrorTypes=Ce,Ge.ErrorDetails=Oe,Ge.FlvPlayer=Me,Ge.NativePlayer=Fe,Ge.LoggingControl=H,Object.defineProperty(Ge,"version",{enumerable:!0,get:function(){return"__VERSION__"}});var je=Ge,Ve=i("ba56"),qe=i.n(Ve),Ke=i("f7a5"),He=i.n(Ke);window.flvjs=je,window.Hls=qe.a;var ze={name:"VideoPlayer",data:function(){return{options:{container:null,video:{url:""},subtitle:null,autoplay:!1},player:null}},props:{data:Object},mounted:function(){var e=Object(a["a"])(regeneratorRuntime.mark((function e(){var t,i,r,n;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:this.options.container=document.getElementById("dplayer"),t=this.data,i=this.$store.getters.tableData,r=!1,i.find((function(e){if(e.name===t.name+".vtt")return r=!0,n=e.url,!0})),r&&(this.options.subtitle={url:n,type:"webvtt",fontSize:"25px",bottom:"10%",color:"#b7daff"}),this.player=new He.a(this.options),this.player.switchVideo({url:t.url});case 8:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),destroyed:function(){this.player.destroy()},watch:{url:function(e){this.player.switchVideo({url:e})}}},We=ze,Ye=(i("9bb6"),i("2877")),Xe=Object(Ye["a"])(We,r,n,!1,null,null,null);t["default"]=Xe.exports},"9bb6":function(e,t,i){"use strict";var r=i("bec2"),n=i.n(r);n.a},ba56:function(e,t,i){"undefined"!==typeof window&&function(t,i){e.exports=i()}(0,(function(){return function(e){var t={};function i(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,i),n.l=!0,n.exports}return i.m=e,i.c=t,i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(i.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)i.d(r,n,function(t){return e[t]}.bind(null,n));return r},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s="./src/hls.ts")}({"./node_modules/eventemitter3/index.js": /*!*********************************************!*\ !*** ./node_modules/eventemitter3/index.js ***! \*********************************************/ @@ -89,4 +89,4 @@ /*!*****************************!*\ !*** ./src/utils/logger.js ***! \*****************************/ -/*! exports provided: enableLogs, logger */function(e,t,i){"use strict";i.r(t),i.d(t,"enableLogs",(function(){return h})),i.d(t,"logger",(function(){return c}));var r=i(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function n(){}var a={trace:n,debug:n,log:n,warn:n,info:n,error:n},s=a;function o(e,t){return t="["+e+"] > "+t,t}var l=Object(r["getSelfScope"])();function d(e){var t=l.console[e];return t?function(){for(var i=arguments.length,r=new Array(i),n=0;n1?t-1:0),r=1;r0?[t,i,r]:[i,r]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,i=e.offsetParent,r=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==i&&i!==e;)t+=i.offsetLeft,i=i.offsetParent;else for(;null!==i;)t+=i.offsetLeft,i=i.offsetParent;return t-r},getBoundingClientRectViewLeft:function(e){var t=document.documentElement.scrollTop;if(e.getBoundingClientRect){if("number"!=typeof this.getBoundingClientRectViewLeft.offset){var i=document.createElement("div");i.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(i),this.getBoundingClientRectViewLeft.offset=-i.getBoundingClientRect().top-t,document.body.removeChild(i),i=null}var r=e.getBoundingClientRect(),n=this.getBoundingClientRectViewLeft.offset;return r.left+n}return this.getElementViewLeft(e)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(e){var t=e.left,i=void 0===t?0:t,r=e.top,n=void 0===r?0:r;this.isFirefox?(document.documentElement.scrollLeft=i,document.documentElement.scrollTop=n):window.scrollTo(i,n)},isMobile:r,isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},cumulativeOffset:function(e){var t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}},nameMap:{dragStart:r?"touchstart":"mousedown",dragMove:r?"touchmove":"mousemove",dragEnd:r?"touchend":"mouseup"},color2Number:function(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length&&(e=""+e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),parseInt(e,16)+0&16777215},number2Color:function(e){return"#"+("00000"+e.toString(16)).slice(-6)},number2Type:function(e){switch(e){case 0:return"right";case 1:return"top";case 2:return"bottom";default:return"right"}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=_(i(46)),n=_(i(45)),a=_(i(44)),s=_(i(43)),o=_(i(42)),l=_(i(41)),d=_(i(40)),u=_(i(39)),h=_(i(38)),c=_(i(37)),f=_(i(36)),p=_(i(35)),m=_(i(34)),g=_(i(33)),v=_(i(32)),y=_(i(31));function _(e){return e&&e.__esModule?e:{default:e}}var E={play:r.default,pause:n.default,volumeUp:a.default,volumeDown:s.default,volumeOff:o.default,full:l.default,fullWeb:d.default,setting:u.default,right:h.default,comment:c.default,commentOff:f.default,send:p.default,pallette:m.default,camera:g.default,subtitle:v.default,loading:y.default};t.default=E},function(e,t,i){"use strict";(function(t){var r=i(0),n=i(63),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o,l={adapter:("undefined"!=typeof XMLHttpRequest?o=i(10):void 0!==t&&(o=i(10)),o),transformRequest:[function(e,t){return n(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,i(12))},function(e,t,i){"use strict";var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,i){var r=i(6);e.exports=function(e){"use strict";var t="",i=(e=e||{}).enableSubtitle,n=e.subtitle,a=e.current,s=e.pic,o=r.$escape,l=e.screenshot,d=e.preload,u=e.url;return i=n&&"webvtt"===n.type,t+='\n\n ",i&&(t+='\n \n '),t+"\n"}},function(e,t,i){"use strict";e.exports=i(29)},function(e,t,i){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";var r=i(61);e.exports=function(e,t,i,n,a){var s=new Error(e);return r(s,t,i,n,a)}},function(e,t,i){"use strict";var r=i(0),n=i(62),a=i(60),s=i(59),o=i(58),l=i(9),d="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||i(57);e.exports=function(e){return new Promise((function(t,u){var h=e.data,c=e.headers;r.isFormData(h)&&delete c["Content-Type"];var f=new XMLHttpRequest,p="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||o(e.url)||(f=new window.XDomainRequest,p="onload",m=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",v=e.auth.password||"";c.Authorization="Basic "+d(g+":"+v)}if(f.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[p]=function(){if(f&&(4===f.readyState||m)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:i,config:e,request:f};n(t,u,r),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var y=i(56),_=(e.withCredentials||o(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;_&&(c[e.xsrfHeaderName]=_)}if("setRequestHeader"in f&&r.forEach(c,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete c[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),u(e),f=null)})),void 0===h&&(h=null),f.send(h)}))}},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),r=0;r1)for(var i=1;i=i.width?(this.player.template.menu.style.right=i.width-e+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=e+"px",this.player.template.menu.style.right="initial"),t+this.player.template.menu.offsetHeight>=i.height?(this.player.template.menu.style.bottom=i.height-t+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=t+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}}]),e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.options.hotkey&&document.addEventListener("keydown",(function(e){if(t.focus){var i=document.activeElement.tagName.toUpperCase(),r=document.activeElement.getAttribute("contenteditable");if("INPUT"!==i&&"TEXTAREA"!==i&&""!==r&&"true"!==r){var n=e||window.event,a=void 0;switch(n.keyCode){case 32:n.preventDefault(),t.toggle();break;case 37:n.preventDefault(),t.seek(t.video.currentTime-5),t.controller.setAutoHide();break;case 39:n.preventDefault(),t.seek(t.video.currentTime+5),t.controller.setAutoHide();break;case 38:n.preventDefault(),a=t.volume()+.1,t.volume(a);break;case 40:n.preventDefault(),a=t.volume()-.1,t.volume(a)}}}})),document.addEventListener("keydown",(function(e){switch((e||window.event).keyCode){case 27:t.fullScreen.isFullScreen("web")&&t.fullScreen.cancel("web")}}))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=function(){function e(e,t){for(var i=0;i'+e.player.options.highlight[i].text+"",e.player.template.playedBarWrap.insertBefore(r,e.player.template.playedBarTime)}}}))}},{key:"initThumbnails",value:function(){var e=this;this.player.options.video.thumbnails&&(this.thumbnails=new a.default({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",(function(){e.thumbnails.resize(160,e.player.video.videoHeight/e.player.video.videoWidth*160)})))}},{key:"initPlayedBar",value:function(){var e=this,t=function(t){var i=((t.clientX||t.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;i=Math.max(i,0),i=Math.min(i,1),e.player.bar.set("played",i,"width"),e.player.template.ptime.innerHTML=n.default.secondToTime(i*e.player.video.duration)},i=function i(r){document.removeEventListener(n.default.nameMap.dragEnd,i),document.removeEventListener(n.default.nameMap.dragMove,t);var a=((r.clientX||r.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;a=Math.max(a,0),a=Math.min(a,1),e.player.bar.set("played",a,"width"),e.player.seek(e.player.bar.get("played")*e.player.video.duration),e.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragStart,(function(){e.player.timer.disable("progress"),document.addEventListener(n.default.nameMap.dragMove,t),document.addEventListener(n.default.nameMap.dragEnd,i)})),this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragMove,(function(t){if(e.player.video.duration){var i=n.default.cumulativeOffset(e.player.template.playedBarWrap).left,r=(t.clientX||t.changedTouches[0].clientX)-i;if(r<0||r>e.player.template.playedBarWrap.offsetWidth)return;var a=e.player.video.duration*(r/e.player.template.playedBarWrap.offsetWidth);n.default.isMobile&&e.thumbnails&&e.thumbnails.show(),e.thumbnails&&e.thumbnails.move(r),e.player.template.playedBarTime.style.left=r-(a>=3600?25:20)+"px",e.player.template.playedBarTime.innerText=n.default.secondToTime(a),e.player.template.playedBarTime.classList.remove("hidden")}})),this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragEnd,(function(){n.default.isMobile&&e.thumbnails&&e.thumbnails.hide()})),n.default.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.show(),e.player.template.playedBarTime.classList.remove("hidden"))})),this.player.template.playedBarWrap.addEventListener("mouseleave",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.hide(),e.player.template.playedBarTime.classList.add("hidden"))})))}},{key:"initFullButton",value:function(){var e=this;this.player.template.browserFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("browser")})),this.player.template.webFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("web")}))}},{key:"initVolumeButton",value:function(){var e=this,t=function(t){var i=t||window.event,r=((i.clientX||i.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(r)},i=function i(){document.removeEventListener(n.default.nameMap.dragEnd,i),document.removeEventListener(n.default.nameMap.dragMove,t),e.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",(function(t){var i=t||window.event,r=((i.clientX||i.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(r)})),this.player.template.volumeBarWrapWrap.addEventListener(n.default.nameMap.dragStart,(function(){document.addEventListener(n.default.nameMap.dragMove,t),document.addEventListener(n.default.nameMap.dragEnd,i),e.player.template.volumeButton.classList.add("dplayer-volume-active")})),this.player.template.volumeButtonIcon.addEventListener("click",(function(){e.player.video.muted?(e.player.video.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"width")):(e.player.video.muted=!0,e.player.template.volumeIcon.innerHTML=s.default.volumeOff,e.player.bar.set("volume",0,"width"))}))}},{key:"initQualityButton",value:function(){var e=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",(function(t){t.target.classList.contains("dplayer-quality-item")&&e.player.switchQuality(t.target.dataset.index)}))}},{key:"initScreenshotButton",value:function(){var e=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",(function(){var t=document.createElement("canvas");t.width=e.player.video.videoWidth,t.height=e.player.video.videoHeight,t.getContext("2d").drawImage(e.player.video,0,0,t.width,t.height);var i=void 0;t.toBlob((function(e){i=URL.createObjectURL(e);var t=document.createElement("a");t.href=i,t.download="DPlayer.png",t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(i)})),e.player.events.trigger("screenshot",i)}))}},{key:"initSubtitleButton",value:function(){var e=this;this.player.options.subtitle&&(this.player.events.on("subtitle_show",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Hide subtitle"),e.player.template.subtitleButtonInner.style.opacity="",e.player.user.set("subtitle",1)})),this.player.events.on("subtitle_hide",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Show subtitle"),e.player.template.subtitleButtonInner.style.opacity="0.4",e.player.user.set("subtitle",0)})),this.player.template.subtitleButton.addEventListener("click",(function(){e.player.subtitle.toggle()})))}},{key:"setAutoHide",value:function(){var e=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout((function(){!e.player.video.played.length||e.player.paused||e.disableAutoHide||e.hide()}),3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){clearTimeout(this.autoHideTimer)}}]),e}();t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;it&&!e.player.video.paused&&(e.player.container.classList.remove("dplayer-loading"),r=!1),t=i)}),100)}},{key:"initfpsChecker",value:function(){var e=this;window.requestAnimationFrame((function(){if(e.enablefpsChecker)if(e.initfpsChecker(),e.fpsStart){e.fpsIndex++;var t=new Date;t-e.fpsStart>1e3&&(e.player.infoPanel.fps(e.fpsIndex/(t-e.fpsStart)*1e3),e.fpsStart=new Date,e.fpsIndex=0)}else e.fpsStart=new Date,e.fpsIndex=0;else e.fpsStart=0,e.fpsIndex=0}))}},{key:"initinfoChecker",value:function(){var e=this;this.infoChecker=setInterval((function(){e.enableinfoChecker&&e.player.infoPanel.update()}),1e3)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.map((function(t){return e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"]),t}))}}]),e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"browser"){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser",t="browser"===e?"web":"browser",i=this.isFullScreen(t);switch(i||(this.lastScrollPosition=s.default.getScrollPosition()),e){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}i&&this.cancel(t)}},{key:"cancel",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser"){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";this.isFullScreen(e)?this.cancel(e):this.request(e)}}]),e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;iparseFloat(t.time);)i.push(t),t=this.dan[++this.danIndex];this.draw(i)}window.requestAnimationFrame((function(){e.frame()}))}},{key:"opacity",value:function(e){if(void 0!==e){for(var t=this.container.getElementsByClassName("dplayer-danmaku-item"),i=0;i'+e[n].text+"":a.innerHTML=e[n].text,a.style.opacity=t._opacity,a.style.color=o.default.number2Color(e[n].color),a.addEventListener("animationend",(function(){t.container.removeChild(a)}));var s=t._measure(e[n].text),l=void 0;switch(e[n].type){case"right":(l=u(a,e[n].type,s))>=0&&(a.style.width=s+1+"px",a.style.top=i*l+"px",a.style.transform="translateX(-"+r+"px)");break;case"top":(l=u(a,e[n].type))>=0&&(a.style.top=i*l+"px");break;case"bottom":(l=u(a,e[n].type))>=0&&(a.style.bottom=i*l+"px");break;default:console.error("Can't handled danmaku type: "+e[n].type)}l>=0&&(a.classList.add("dplayer-danmaku-move"),h.appendChild(a))},f=0;f=this.options.time()){this.danIndex=e;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}},{key:"resize",value:function(){for(var e=this.container.offsetWidth,t=this.container.getElementsByClassName("dplayer-danmaku-item"),i=0;i]/;n.$escape=function(e){return function(e){var t=""+e,i=a.exec(t);if(!i)return e;var r="",n=void 0,s=void 0,o=void 0;for(n=i.index,s=0;n\n \n '),n+='\n
\n
\n
\n
\n
\n \n ',s.danmaku&&(n+='\n ',n+=o(l("Danmaku is loading")),n+="\n "),n+='\n ',n+=d.loading,n+='\n
\n\n
\n
\n
\n \n
\n
\n
',n+=o(l("Set danmaku color")),n+='
\n \n \n \n \n \n \n
\n
\n
',n+=o(l("Set danmaku type")),n+='
\n \n \n \n
\n
\n \n ',n+=d.send,n+='\n \n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n
\n
\n \n 0:00 /\n 0:00\n \n ',s.live&&(n+='\n ',n+=o(l("Live")),n+="\n "),n+='\n
\n
\n ',s.video.quality&&(n+='\n
\n \n
\n
\n ',h(s.video.quality,(function(e,t){n+='\n
',n+=o(e.name),n+="
\n "})),n+="\n
\n
\n
\n "),n+="\n ",s.screenshot&&(n+='\n
\n
\n "),n+='\n
\n \n
\n ",s.subtitle&&(n+='\n
\n \n
\n "),n+='\n
\n \n
\n
\n
\n ',n+=o(l("Speed")),n+='\n
',n+=d.right,n+='
\n
\n
\n ',n+=o(l("Loop")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Show danmaku")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Unlimited danmaku")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Opacity for danmaku")),n+='\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n 0.5\n
\n
\n 0.75\n
\n
\n ',n+=o(l("Normal")),n+='\n
\n
\n 1.25\n
\n
\n 1.5\n
\n
\n 2\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
[x]
\n
\n Player version\n \n
\n
\n Player FPS\n \n
\n
\n Video type\n \n
\n
\n Video url\n \n
\n
\n Video resolution\n \n
\n
\n Video duration\n \n
\n ',s.danmaku&&(n+='\n
\n Danamku id\n \n
\n
\n Danamku api\n \n
\n
\n Danamku amount\n \n
\n '),n+='\n
\n
\n ',h(s.contextmenu,(function(e,t){n+='\n
\n ',n+=o(l(e.text)),n+="\n
\n "})),n+='\n
\n
'}},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i>8-o%1*8)){if((i=a.charCodeAt(o+=.75))>255)throw new n;t=t<<8|i}return s}},function(e,t,i){"use strict";var r=i(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function n(e){var r=e;return t&&(i.setAttribute("href",r),r=i.href),i.setAttribute("href",r),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=n(window.location.href),function(t){var i=r.isString(t)?n(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},function(e,t,i){"use strict";var r=i(0),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,a,s={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),i=r.trim(e.substr(a+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},function(e,t,i){"use strict";var r=i(0);function n(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(r.isURLSearchParams(t))a=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),a=s.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,i){"use strict";e.exports=function(e,t,i,r,n){return e.config=t,i&&(e.code=i),e.request=r,e.response=n,e}},function(e,t,i){"use strict";var r=i(9);e.exports=function(e,t,i){var n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(r("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";var r=i(0);e.exports=function(e,t){r.forEach(e,(function(i,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[r])}))}},function(e,t,i){"use strict";var r=i(3),n=i(0),a=i(55),s=i(54);function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}o.prototype.request=function(e){"string"==typeof e&&(e=n.merge({url:arguments[0]},arguments[1])),(e=n.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[s,void 0],i=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)i=i.then(t.shift(),t.shift());return i},n.forEach(["delete","get","head","options"],(function(e){o.prototype[e]=function(t,i){return this.request(n.merge(i||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){o.prototype[e]=function(t,i,r){return this.request(n.merge(r||{},{method:e,url:t,data:i}))}})),e.exports=o},function(e,t,i){"use strict";function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,i){"use strict";var r=i(0),n=i(11),a=i(64),s=i(3);function o(e){var t=new a(e),i=n(a.prototype.request,t);return r.extend(i,a.prototype,t),r.extend(i,t),i}var l=o(s);l.Axios=a,l.create=function(e){return o(r.merge(s,e))},l.Cancel=i(7),l.CancelToken=i(50),l.isCancel=i(8),l.all=function(e){return Promise.all(e)},l.spread=i(49),e.exports=l,e.exports.default=l},function(e,t,i){"use strict";e.exports=i(66)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(67),a=(r=n)&&r.__esModule?r:{default:r};t.default={send:function(e){a.default.post(e.url,e.data).then((function(t){var i=t.data;i&&0===i.code?e.success&&e.success(i):e.error&&e.error(i&&i.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))},read:function(e){a.default.get(e.url).then((function(t){var i=t.data;i&&0===i.code?e.success&&e.success(i.data.map((function(e){return{time:e[0],type:e[1],color:e[2],author:e[3],text:e[4]}}))):e.error&&e.error(i&&i.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(68),s=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t={container:e.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,hotkey:!0,preload:"metadata",volume:.7,apiBackend:s.default,video:{},contextmenu:[],mutex:!0};for(var i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i]);return e.video&&!e.video.type&&(e.video.type="auto"),"object"===n(e.danmaku)&&e.danmaku&&!e.danmaku.user&&(e.danmaku.user="DIYgod"),e.subtitle&&(!e.subtitle.type&&(e.subtitle.type="webvtt"),!e.subtitle.fontSize&&(e.subtitle.fontSize="20px"),!e.subtitle.bottom&&(e.subtitle.bottom="40px"),!e.subtitle.color&&(e.subtitle.color="#fff")),e.video.quality&&(e.video.url=e.video.quality[e.video.defaultQuality].url),e.lang&&(e.lang=e.lang.toLowerCase()),e.contextmenu=e.contextmenu.concat([{text:"Video info",click:function(e){e.infoPanel.triggle()}},{text:"About author",link:"https://diygod.me"},{text:"DPlayer v1.25.0",link:"https://github.com/MoePlayer/DPlayer"}]),e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){return t.reject(i)}))}))}},function(e,t,i){"use strict";(function(e,t){!function(e,i){if(!e.setImmediate){var r,n,a,s,o,l=1,d={},u=!1,h=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}()?(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),r=function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,r=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):r=function(e){setTimeout(p,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i(71),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(70),s=(r=a)&&r.__esModule?r:{default:r},o=setTimeout;function l(){}function d(e){if(!(this instanceof d))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,d._immediateFn((function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var r;try{r=i(e._value)}catch(e){return void c(t.promise,e)}h(t.promise,r)}else(1===e._state?h:c)(t.promise,e._value)}))):e._deferreds.push(t)}function h(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof d)return e._state=3,e._value=t,void f(e);if("function"==typeof i)return void p((r=i,a=t,function(){r.apply(a,arguments)}),e)}e._state=1,e._value=t,f(e)}catch(t){c(e,t)}var r,a}function c(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&d._immediateFn((function(){e._handled||d._unhandledRejectionFn(e._value)}));for(var t=0,i=e._deferreds.length;te&&this.notice(this.tran("REW")+" "+(this.video.currentTime-e).toFixed(0)+" "+this.tran("s")),this.video.currentTime=e,this.danmaku&&this.danmaku.seek(),this.bar.set("played",e/this.video.duration,"width"),this.template.ptime.innerHTML=a.default.secondToTime(e)}},{key:"play",value:function(){var e=this;if(this.paused=!1,this.video.paused&&this.bezel.switch(d.default.play),this.template.playButton.innerHTML=d.default.pause,n.default.resolve(this.video.play()).catch((function(){e.pause()})).then((function(){})),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var t=0;t=.95?this.template.volumeIcon.innerHTML=d.default.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=d.default.volumeDown:this.template.volumeIcon.innerHTML=d.default.volumeOff}},{key:"volume",value:function(e,t,i){if(e=parseFloat(e),!isNaN(e)){e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"width");var r=(100*e).toFixed(0)+"%";this.template.volumeBarWrapWrap.dataset.balloon=r,t||this.user.set("volume",e),i||this.notice(this.tran("Volume")+" "+(100*e).toFixed(0)+"%"),this.video.volume=e,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"switchVideo",value:function(e,t){this.pause(),this.video.poster=e.pic?e.pic:"",this.video.src=e.url,this.initMSE(this.video,e.type||"auto"),t&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:t.id,address:t.api,token:t.token,maximum:t.maximum,addition:t.addition,user:t.user}))}},{key:"initMSE",value:function(e,t){var i=this;if(this.type=t,this.options.video.customType&&this.options.video.customType[t])"[object Function]"===Object.prototype.toString.call(this.options.video.customType[t])?this.options.video.customType[t](this.video,this):console.error("Illegal customType: "+t);else switch("auto"===this.type&&(/m3u8(#|\?|$)/i.exec(e.src)?this.type="hls":/.flv(#|\?|$)/i.exec(e.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(e.src)?this.type="dash":this.type="normal"),"hls"===this.type&&(e.canPlayType("application/x-mpegURL")||e.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(Hls)if(Hls.isSupported()){var r=new Hls;r.loadSource(e.src),r.attachMedia(e)}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(flvjs&&flvjs.isSupported())if(flvjs.isSupported()){var n=flvjs.createPlayer({type:"flv",url:e.src});n.attachMediaElement(e),n.load()}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":dashjs?dashjs.MediaPlayer().create().initialize(e,e.src,!1):this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(WebTorrent)if(WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var a=new WebTorrent,s=e.src;a.add(s,(function(e){e.files.find((function(e){return e.name.endsWith(".mp4")})).renderTo(i.video,{autoplay:i.options.autoplay},(function(){i.container.classList.remove("dplayer-loading")}))}))}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(e,t){var i=this;this.initMSE(e,t),this.on("durationchange",(function(){1!==e.duration&&e.duration!==1/0&&(i.template.dtime.innerHTML=a.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.buffered.length?e.buffered.end(e.buffered.length-1)/e.duration:0;i.bar.set("loaded",t,"width")})),this.on("error",(function(){i.video.error&&i.tran&&i.notice&&(i.type,i.notice(i.tran("Video load failed"),-1))})),this.on("ended",(function(){i.bar.set("played",1,"width"),i.setting.loop?(i.seek(0),i.play()):i.pause(),i.danmaku&&(i.danmaku.danIndex=0)})),this.on("play",(function(){i.paused&&i.play()})),this.on("pause",(function(){i.paused||i.pause()})),this.on("timeupdate",(function(){i.bar.set("played",i.video.currentTime/i.video.duration,"width");var e=a.default.secondToTime(i.video.currentTime);i.template.ptime.innerHTML!==e&&(i.template.ptime.innerHTML=e)}));for(var r=function(t){e.addEventListener(i.events.videoEvents[t],(function(){i.events.trigger(i.events.videoEvents[t])}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:2e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=r,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("notice_show",e),i>0&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("notice_hide")}),i))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.events.trigger("resize")}},{key:"speed",value:function(e){this.video.playbackRate=e}},{key:"destroy",value:function(){R.splice(R.indexOf(this),1),this.pause(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}],[{key:"version",get:function(){return"1.25.0"}}]),e}();t.default=L},,,function(e,t,i){},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(77);var r,n=i(74),a=(r=n)&&r.__esModule?r:{default:r};console.log("\n %c DPlayer v1.25.0 fdcf45b %c http://dplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=a.default}]).default}))},faa1:function(e,t,i){"use strict";var r,n="object"===typeof Reflect?Reflect:null,a=n&&"function"===typeof n.apply?n.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};function s(e){console&&console.warn&&console.warn(e)}r=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var d=10;function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function h(e,t,i,r){var n,a,o;if("function"!==typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]),void 0===o)o=a[t]=i,++e._eventsCount;else if("function"===typeof o?o=a[t]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),n=u(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s(l)}return e}function c(){for(var e=[],t=0;t0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=n[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var d=l.length,u=g(l,d);for(i=0;i=0;a--)if(i[a]===t||i[a].listener===t){s=i[a].listener,n=a;break}if(n<0)return this;0===n?i.shift():v(i,n),1===i.length&&(r[e]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,i,r;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var n,a=Object.keys(i);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return p(this,e,!0)},l.prototype.rawListeners=function(e){return p(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}]); \ No newline at end of file +/*! exports provided: enableLogs, logger */function(e,t,i){"use strict";i.r(t),i.d(t,"enableLogs",(function(){return h})),i.d(t,"logger",(function(){return c}));var r=i(/*! ./get-self-scope */"./src/utils/get-self-scope.js");function n(){}var a={trace:n,debug:n,log:n,warn:n,info:n,error:n},s=a;function o(e,t){return t="["+e+"] > "+t,t}var l=Object(r["getSelfScope"])();function d(e){var t=l.console[e];return t?function(){for(var i=arguments.length,r=new Array(i),n=0;n1?t-1:0),r=1;r0?[t,i,r]:[i,r]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,i=e.offsetParent,r=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==i&&i!==e;)t+=i.offsetLeft,i=i.offsetParent;else for(;null!==i;)t+=i.offsetLeft,i=i.offsetParent;return t-r},getBoundingClientRectViewLeft:function(e){var t=document.documentElement.scrollTop;if(e.getBoundingClientRect){if("number"!=typeof this.getBoundingClientRectViewLeft.offset){var i=document.createElement("div");i.style.cssText="position:absolute;top:0;left:0;",document.body.appendChild(i),this.getBoundingClientRectViewLeft.offset=-i.getBoundingClientRect().top-t,document.body.removeChild(i),i=null}var r=e.getBoundingClientRect(),n=this.getBoundingClientRectViewLeft.offset;return r.left+n}return this.getElementViewLeft(e)},getScrollPosition:function(){return{left:window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}},setScrollPosition:function(e){var t=e.left,i=void 0===t?0:t,r=e.top,n=void 0===r?0:r;this.isFirefox?(document.documentElement.scrollLeft=i,document.documentElement.scrollTop=n):window.scrollTo(i,n)},isMobile:r,isFirefox:/firefox/i.test(window.navigator.userAgent),isChrome:/chrome/i.test(window.navigator.userAgent),storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},cumulativeOffset:function(e){var t=0,i=0;do{t+=e.offsetTop||0,i+=e.offsetLeft||0,e=e.offsetParent}while(e);return{top:t,left:i}},nameMap:{dragStart:r?"touchstart":"mousedown",dragMove:r?"touchmove":"mousemove",dragEnd:r?"touchend":"mouseup"},color2Number:function(e){return"#"===e[0]&&(e=e.substr(1)),3===e.length&&(e=""+e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),parseInt(e,16)+0&16777215},number2Color:function(e){return"#"+("00000"+e.toString(16)).slice(-6)},number2Type:function(e){switch(e){case 0:return"right";case 1:return"top";case 2:return"bottom";default:return"right"}}};t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=_(i(46)),n=_(i(45)),a=_(i(44)),s=_(i(43)),o=_(i(42)),l=_(i(41)),d=_(i(40)),u=_(i(39)),h=_(i(38)),c=_(i(37)),f=_(i(36)),p=_(i(35)),m=_(i(34)),g=_(i(33)),v=_(i(32)),y=_(i(31));function _(e){return e&&e.__esModule?e:{default:e}}var E={play:r.default,pause:n.default,volumeUp:a.default,volumeDown:s.default,volumeOff:o.default,full:l.default,fullWeb:d.default,setting:u.default,right:h.default,comment:c.default,commentOff:f.default,send:p.default,pallette:m.default,camera:g.default,subtitle:v.default,loading:y.default};t.default=E},function(e,t,i){"use strict";(function(t){var r=i(0),n=i(63),a={"Content-Type":"application/x-www-form-urlencoded"};function s(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var o,l={adapter:("undefined"!=typeof XMLHttpRequest?o=i(10):void 0!==t&&(o=i(10)),o),transformRequest:[function(e,t){return n(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(s(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(s(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){l.headers[e]=r.merge(a)})),e.exports=l}).call(this,i(12))},function(e,t,i){"use strict";var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},function(e,t,i){var r=i(6);e.exports=function(e){"use strict";var t="",i=(e=e||{}).enableSubtitle,n=e.subtitle,a=e.current,s=e.pic,o=r.$escape,l=e.screenshot,d=e.preload,u=e.url;return i=n&&"webvtt"===n.type,t+='\n\n ",i&&(t+='\n \n '),t+"\n"}},function(e,t,i){"use strict";e.exports=i(29)},function(e,t,i){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,i){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,i){"use strict";var r=i(61);e.exports=function(e,t,i,n,a){var s=new Error(e);return r(s,t,i,n,a)}},function(e,t,i){"use strict";var r=i(0),n=i(62),a=i(60),s=i(59),o=i(58),l=i(9),d="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||i(57);e.exports=function(e){return new Promise((function(t,u){var h=e.data,c=e.headers;r.isFormData(h)&&delete c["Content-Type"];var f=new XMLHttpRequest,p="onreadystatechange",m=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in f||o(e.url)||(f=new window.XDomainRequest,p="onload",m=!0,f.onprogress=function(){},f.ontimeout=function(){}),e.auth){var g=e.auth.username||"",v=e.auth.password||"";c.Authorization="Basic "+d(g+":"+v)}if(f.open(e.method.toUpperCase(),a(e.url,e.params,e.paramsSerializer),!0),f.timeout=e.timeout,f[p]=function(){if(f&&(4===f.readyState||m)&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))){var i="getAllResponseHeaders"in f?s(f.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?f.response:f.responseText,status:1223===f.status?204:f.status,statusText:1223===f.status?"No Content":f.statusText,headers:i,config:e,request:f};n(t,u,r),f=null}},f.onerror=function(){u(l("Network Error",e,null,f)),f=null},f.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",f)),f=null},r.isStandardBrowserEnv()){var y=i(56),_=(e.withCredentials||o(e.url))&&e.xsrfCookieName?y.read(e.xsrfCookieName):void 0;_&&(c[e.xsrfHeaderName]=_)}if("setRequestHeader"in f&&r.forEach(c,(function(e,t){void 0===h&&"content-type"===t.toLowerCase()?delete c[t]:f.setRequestHeader(t,e)})),e.withCredentials&&(f.withCredentials=!0),e.responseType)try{f.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&f.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&f.upload&&f.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){f&&(f.abort(),u(e),f=null)})),void 0===h&&(h=null),f.send(h)}))}},function(e,t,i){"use strict";e.exports=function(e,t){return function(){for(var i=new Array(arguments.length),r=0;r1)for(var i=1;i=i.width?(this.player.template.menu.style.right=i.width-e+"px",this.player.template.menu.style.left="initial"):(this.player.template.menu.style.left=e+"px",this.player.template.menu.style.right="initial"),t+this.player.template.menu.offsetHeight>=i.height?(this.player.template.menu.style.bottom=i.height-t+"px",this.player.template.menu.style.top="initial"):(this.player.template.menu.style.top=t+"px",this.player.template.menu.style.bottom="initial"),this.player.template.mask.classList.add("dplayer-mask-show"),this.shown=!0,this.player.events.trigger("contextmenu_show")}},{key:"hide",value:function(){this.player.template.mask.classList.remove("dplayer-mask-show"),this.player.template.menu.classList.remove("dplayer-menu-show"),this.shown=!1,this.player.events.trigger("contextmenu_hide")}}]),e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.options.hotkey&&document.addEventListener("keydown",(function(e){if(t.focus){var i=document.activeElement.tagName.toUpperCase(),r=document.activeElement.getAttribute("contenteditable");if("INPUT"!==i&&"TEXTAREA"!==i&&""!==r&&"true"!==r){var n=e||window.event,a=void 0;switch(n.keyCode){case 32:n.preventDefault(),t.toggle();break;case 37:n.preventDefault(),t.seek(t.video.currentTime-5),t.controller.setAutoHide();break;case 39:n.preventDefault(),t.seek(t.video.currentTime+5),t.controller.setAutoHide();break;case 38:n.preventDefault(),a=t.volume()+.1,t.volume(a);break;case 40:n.preventDefault(),a=t.volume()-.1,t.volume(a)}}}})),document.addEventListener("keydown",(function(e){switch((e||window.event).keyCode){case 27:t.fullScreen.isFullScreen("web")&&t.fullScreen.cancel("web")}}))}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=function(){function e(e,t){for(var i=0;i'+e.player.options.highlight[i].text+"",e.player.template.playedBarWrap.insertBefore(r,e.player.template.playedBarTime)}}}))}},{key:"initThumbnails",value:function(){var e=this;this.player.options.video.thumbnails&&(this.thumbnails=new a.default({container:this.player.template.barPreview,barWidth:this.player.template.barWrap.offsetWidth,url:this.player.options.video.thumbnails,events:this.player.events}),this.player.on("loadedmetadata",(function(){e.thumbnails.resize(160,e.player.video.videoHeight/e.player.video.videoWidth*160)})))}},{key:"initPlayedBar",value:function(){var e=this,t=function(t){var i=((t.clientX||t.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;i=Math.max(i,0),i=Math.min(i,1),e.player.bar.set("played",i,"width"),e.player.template.ptime.innerHTML=n.default.secondToTime(i*e.player.video.duration)},i=function i(r){document.removeEventListener(n.default.nameMap.dragEnd,i),document.removeEventListener(n.default.nameMap.dragMove,t);var a=((r.clientX||r.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.playedBarWrap))/e.player.template.playedBarWrap.clientWidth;a=Math.max(a,0),a=Math.min(a,1),e.player.bar.set("played",a,"width"),e.player.seek(e.player.bar.get("played")*e.player.video.duration),e.player.timer.enable("progress")};this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragStart,(function(){e.player.timer.disable("progress"),document.addEventListener(n.default.nameMap.dragMove,t),document.addEventListener(n.default.nameMap.dragEnd,i)})),this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragMove,(function(t){if(e.player.video.duration){var i=n.default.cumulativeOffset(e.player.template.playedBarWrap).left,r=(t.clientX||t.changedTouches[0].clientX)-i;if(r<0||r>e.player.template.playedBarWrap.offsetWidth)return;var a=e.player.video.duration*(r/e.player.template.playedBarWrap.offsetWidth);n.default.isMobile&&e.thumbnails&&e.thumbnails.show(),e.thumbnails&&e.thumbnails.move(r),e.player.template.playedBarTime.style.left=r-(a>=3600?25:20)+"px",e.player.template.playedBarTime.innerText=n.default.secondToTime(a),e.player.template.playedBarTime.classList.remove("hidden")}})),this.player.template.playedBarWrap.addEventListener(n.default.nameMap.dragEnd,(function(){n.default.isMobile&&e.thumbnails&&e.thumbnails.hide()})),n.default.isMobile||(this.player.template.playedBarWrap.addEventListener("mouseenter",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.show(),e.player.template.playedBarTime.classList.remove("hidden"))})),this.player.template.playedBarWrap.addEventListener("mouseleave",(function(){e.player.video.duration&&(e.thumbnails&&e.thumbnails.hide(),e.player.template.playedBarTime.classList.add("hidden"))})))}},{key:"initFullButton",value:function(){var e=this;this.player.template.browserFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("browser")})),this.player.template.webFullButton.addEventListener("click",(function(){e.player.fullScreen.toggle("web")}))}},{key:"initVolumeButton",value:function(){var e=this,t=function(t){var i=t||window.event,r=((i.clientX||i.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(r)},i=function i(){document.removeEventListener(n.default.nameMap.dragEnd,i),document.removeEventListener(n.default.nameMap.dragMove,t),e.player.template.volumeButton.classList.remove("dplayer-volume-active")};this.player.template.volumeBarWrapWrap.addEventListener("click",(function(t){var i=t||window.event,r=((i.clientX||i.changedTouches[0].clientX)-n.default.getBoundingClientRectViewLeft(e.player.template.volumeBarWrap)-5.5)/35;e.player.volume(r)})),this.player.template.volumeBarWrapWrap.addEventListener(n.default.nameMap.dragStart,(function(){document.addEventListener(n.default.nameMap.dragMove,t),document.addEventListener(n.default.nameMap.dragEnd,i),e.player.template.volumeButton.classList.add("dplayer-volume-active")})),this.player.template.volumeButtonIcon.addEventListener("click",(function(){e.player.video.muted?(e.player.video.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"width")):(e.player.video.muted=!0,e.player.template.volumeIcon.innerHTML=s.default.volumeOff,e.player.bar.set("volume",0,"width"))}))}},{key:"initQualityButton",value:function(){var e=this;this.player.options.video.quality&&this.player.template.qualityList.addEventListener("click",(function(t){t.target.classList.contains("dplayer-quality-item")&&e.player.switchQuality(t.target.dataset.index)}))}},{key:"initScreenshotButton",value:function(){var e=this;this.player.options.screenshot&&this.player.template.camareButton.addEventListener("click",(function(){var t=document.createElement("canvas");t.width=e.player.video.videoWidth,t.height=e.player.video.videoHeight,t.getContext("2d").drawImage(e.player.video,0,0,t.width,t.height);var i=void 0;t.toBlob((function(e){i=URL.createObjectURL(e);var t=document.createElement("a");t.href=i,t.download="DPlayer.png",t.style.display="none",document.body.appendChild(t),t.click(),document.body.removeChild(t),URL.revokeObjectURL(i)})),e.player.events.trigger("screenshot",i)}))}},{key:"initSubtitleButton",value:function(){var e=this;this.player.options.subtitle&&(this.player.events.on("subtitle_show",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Hide subtitle"),e.player.template.subtitleButtonInner.style.opacity="",e.player.user.set("subtitle",1)})),this.player.events.on("subtitle_hide",(function(){e.player.template.subtitleButton.dataset.balloon=e.player.tran("Show subtitle"),e.player.template.subtitleButtonInner.style.opacity="0.4",e.player.user.set("subtitle",0)})),this.player.template.subtitleButton.addEventListener("click",(function(){e.player.subtitle.toggle()})))}},{key:"setAutoHide",value:function(){var e=this;this.show(),clearTimeout(this.autoHideTimer),this.autoHideTimer=setTimeout((function(){!e.player.video.played.length||e.player.paused||e.disableAutoHide||e.hide()}),3e3)}},{key:"show",value:function(){this.player.container.classList.remove("dplayer-hide-controller")}},{key:"hide",value:function(){this.player.container.classList.add("dplayer-hide-controller"),this.player.setting.hide(),this.player.comment&&this.player.comment.hide()}},{key:"isShow",value:function(){return!this.player.container.classList.contains("dplayer-hide-controller")}},{key:"toggle",value:function(){this.isShow()?this.hide():this.show()}},{key:"destroy",value:function(){clearTimeout(this.autoHideTimer)}}]),e}();t.default=l},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;it&&!e.player.video.paused&&(e.player.container.classList.remove("dplayer-loading"),r=!1),t=i)}),100)}},{key:"initfpsChecker",value:function(){var e=this;window.requestAnimationFrame((function(){if(e.enablefpsChecker)if(e.initfpsChecker(),e.fpsStart){e.fpsIndex++;var t=new Date;t-e.fpsStart>1e3&&(e.player.infoPanel.fps(e.fpsIndex/(t-e.fpsStart)*1e3),e.fpsStart=new Date,e.fpsIndex=0)}else e.fpsStart=new Date,e.fpsIndex=0;else e.fpsStart=0,e.fpsIndex=0}))}},{key:"initinfoChecker",value:function(){var e=this;this.infoChecker=setInterval((function(){e.enableinfoChecker&&e.player.infoPanel.update()}),1e3)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.map((function(t){return e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"]),t}))}}]),e}();t.default=n},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:"browser"){case"browser":return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;case"web":return this.player.container.classList.contains("dplayer-fulled")}}},{key:"request",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser",t="browser"===e?"web":"browser",i=this.isFullScreen(t);switch(i||(this.lastScrollPosition=s.default.getScrollPosition()),e){case"browser":this.player.container.requestFullscreen?this.player.container.requestFullscreen():this.player.container.mozRequestFullScreen?this.player.container.mozRequestFullScreen():this.player.container.webkitRequestFullscreen?this.player.container.webkitRequestFullscreen():this.player.video.webkitEnterFullscreen?this.player.video.webkitEnterFullscreen():this.player.video.webkitEnterFullScreen?this.player.video.webkitEnterFullScreen():this.player.container.msRequestFullscreen&&this.player.container.msRequestFullscreen();break;case"web":this.player.container.classList.add("dplayer-fulled"),document.body.classList.add("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen")}i&&this.cancel(t)}},{key:"cancel",value:function(){switch(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser"){case"browser":document.cancelFullScreen?document.cancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.webkitCancelFullscreen?document.webkitCancelFullscreen():document.msCancelFullScreen?document.msCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen();break;case"web":this.player.container.classList.remove("dplayer-fulled"),document.body.classList.remove("dplayer-web-fullscreen-fix"),this.player.events.trigger("webfullscreen_cancel")}}},{key:"toggle",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"browser";this.isFullScreen(e)?this.cancel(e):this.request(e)}}]),e}();t.default=o},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;iparseFloat(t.time);)i.push(t),t=this.dan[++this.danIndex];this.draw(i)}window.requestAnimationFrame((function(){e.frame()}))}},{key:"opacity",value:function(e){if(void 0!==e){for(var t=this.container.getElementsByClassName("dplayer-danmaku-item"),i=0;i'+e[n].text+"":a.innerHTML=e[n].text,a.style.opacity=t._opacity,a.style.color=o.default.number2Color(e[n].color),a.addEventListener("animationend",(function(){t.container.removeChild(a)}));var s=t._measure(e[n].text),l=void 0;switch(e[n].type){case"right":(l=u(a,e[n].type,s))>=0&&(a.style.width=s+1+"px",a.style.top=i*l+"px",a.style.transform="translateX(-"+r+"px)");break;case"top":(l=u(a,e[n].type))>=0&&(a.style.top=i*l+"px");break;case"bottom":(l=u(a,e[n].type))>=0&&(a.style.bottom=i*l+"px");break;default:console.error("Can't handled danmaku type: "+e[n].type)}l>=0&&(a.classList.add("dplayer-danmaku-move"),h.appendChild(a))},f=0;f=this.options.time()){this.danIndex=e;break}this.danIndex=this.dan.length}}},{key:"clear",value:function(){this.danTunnel={right:{},top:{},bottom:{}},this.danIndex=0,this.options.container.innerHTML="",this.events&&this.events.trigger("danmaku_clear")}},{key:"htmlEncode",value:function(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'").replace(/\//g,"/")}},{key:"resize",value:function(){for(var e=this.container.offsetWidth,t=this.container.getElementsByClassName("dplayer-danmaku-item"),i=0;i]/;n.$escape=function(e){return function(e){var t=""+e,i=a.exec(t);if(!i)return e;var r="",n=void 0,s=void 0,o=void 0;for(n=i.index,s=0;n\n \n '),n+='\n
\n
\n
\n
\n
\n \n ',s.danmaku&&(n+='\n ',n+=o(l("Danmaku is loading")),n+="\n "),n+='\n ',n+=d.loading,n+='\n
\n\n
\n
\n
\n \n
\n
\n
',n+=o(l("Set danmaku color")),n+='
\n \n \n \n \n \n \n
\n
\n
',n+=o(l("Set danmaku type")),n+='
\n \n \n \n
\n
\n \n ',n+=d.send,n+='\n \n
\n
\n \n
\n \n
\n
\n
\n \n
\n
\n
\n
\n \n 0:00 /\n 0:00\n \n ',s.live&&(n+='\n ',n+=o(l("Live")),n+="\n "),n+='\n
\n
\n ',s.video.quality&&(n+='\n
\n \n
\n
\n ',h(s.video.quality,(function(e,t){n+='\n
',n+=o(e.name),n+="
\n "})),n+="\n
\n
\n
\n "),n+="\n ",s.screenshot&&(n+='\n
\n
\n "),n+='\n
\n \n
\n ",s.subtitle&&(n+='\n
\n \n
\n "),n+='\n
\n \n
\n
\n
\n ',n+=o(l("Speed")),n+='\n
',n+=d.right,n+='
\n
\n
\n ',n+=o(l("Loop")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Show danmaku")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Unlimited danmaku")),n+='\n
\n \n \n
\n
\n
\n ',n+=o(l("Opacity for danmaku")),n+='\n
\n
\n
\n \n
\n
\n
\n
\n
\n
\n
\n 0.5\n
\n
\n 0.75\n
\n
\n ',n+=o(l("Normal")),n+='\n
\n
\n 1.25\n
\n
\n 1.5\n
\n
\n 2\n
\n
\n
\n
\n
\n \n \n
\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n
\n
\n
\n
[x]
\n
\n Player version\n \n
\n
\n Player FPS\n \n
\n
\n Video type\n \n
\n
\n Video url\n \n
\n
\n Video resolution\n \n
\n
\n Video duration\n \n
\n ',s.danmaku&&(n+='\n
\n Danamku id\n \n
\n
\n Danamku api\n \n
\n
\n Danamku amount\n \n
\n '),n+='\n
\n
\n ',h(s.contextmenu,(function(e,t){n+='\n
\n ',n+=o(l(e.text)),n+="\n
\n "})),n+='\n
\n
'}},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var i=0;i>8-o%1*8)){if((i=a.charCodeAt(o+=.75))>255)throw new n;t=t<<8|i}return s}},function(e,t,i){"use strict";var r=i(0);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),i=document.createElement("a");function n(e){var r=e;return t&&(i.setAttribute("href",r),r=i.href),i.setAttribute("href",r),{href:i.href,protocol:i.protocol?i.protocol.replace(/:$/,""):"",host:i.host,search:i.search?i.search.replace(/^\?/,""):"",hash:i.hash?i.hash.replace(/^#/,""):"",hostname:i.hostname,port:i.port,pathname:"/"===i.pathname.charAt(0)?i.pathname:"/"+i.pathname}}return e=n(window.location.href),function(t){var i=r.isString(t)?n(t):t;return i.protocol===e.protocol&&i.host===e.host}}():function(){return!0}},function(e,t,i){"use strict";var r=i(0),n=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,i,a,s={};return e?(r.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=r.trim(e.substr(0,a)).toLowerCase(),i=r.trim(e.substr(a+1)),t){if(s[t]&&n.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([i]):s[t]?s[t]+", "+i:i}})),s):s}},function(e,t,i){"use strict";var r=i(0);function n(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,i){if(!t)return e;var a;if(i)a=i(t);else if(r.isURLSearchParams(t))a=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&void 0!==e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(n(t)+"="+n(e))})))})),a=s.join("&")}return a&&(e+=(-1===e.indexOf("?")?"?":"&")+a),e}},function(e,t,i){"use strict";e.exports=function(e,t,i,r,n){return e.config=t,i&&(e.code=i),e.request=r,e.response=n,e}},function(e,t,i){"use strict";var r=i(9);e.exports=function(e,t,i){var n=i.config.validateStatus;i.status&&n&&!n(i.status)?t(r("Request failed with status code "+i.status,i.config,null,i.request,i)):e(i)}},function(e,t,i){"use strict";var r=i(0);e.exports=function(e,t){r.forEach(e,(function(i,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=i,delete e[r])}))}},function(e,t,i){"use strict";var r=i(3),n=i(0),a=i(55),s=i(54);function o(e){this.defaults=e,this.interceptors={request:new a,response:new a}}o.prototype.request=function(e){"string"==typeof e&&(e=n.merge({url:arguments[0]},arguments[1])),(e=n.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[s,void 0],i=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)i=i.then(t.shift(),t.shift());return i},n.forEach(["delete","get","head","options"],(function(e){o.prototype[e]=function(t,i){return this.request(n.merge(i||{},{method:e,url:t}))}})),n.forEach(["post","put","patch"],(function(e){o.prototype[e]=function(t,i,r){return this.request(n.merge(r||{},{method:e,url:t,data:i}))}})),e.exports=o},function(e,t,i){"use strict";function r(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}e.exports=function(e){return null!=e&&(r(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,i){"use strict";var r=i(0),n=i(11),a=i(64),s=i(3);function o(e){var t=new a(e),i=n(a.prototype.request,t);return r.extend(i,a.prototype,t),r.extend(i,t),i}var l=o(s);l.Axios=a,l.create=function(e){return o(r.merge(s,e))},l.Cancel=i(7),l.CancelToken=i(50),l.isCancel=i(8),l.all=function(e){return Promise.all(e)},l.spread=i(49),e.exports=l,e.exports.default=l},function(e,t,i){"use strict";e.exports=i(66)},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n=i(67),a=(r=n)&&r.__esModule?r:{default:r};t.default={send:function(e){a.default.post(e.url,e.data).then((function(t){var i=t.data;i&&0===i.code?e.success&&e.success(i):e.error&&e.error(i&&i.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))},read:function(e){a.default.get(e.url).then((function(t){var i=t.data;i&&0===i.code?e.success&&e.success(i.data.map((function(e){return{time:e[0],type:e[1],color:e[2],author:e[3],text:e[4]}}))):e.error&&e.error(i&&i.msg)})).catch((function(t){console.error(t),e.error&&e.error()}))}}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(68),s=(r=a)&&r.__esModule?r:{default:r};t.default=function(e){var t={container:e.element||document.getElementsByClassName("dplayer")[0],live:!1,autoplay:!1,theme:"#b7daff",loop:!1,lang:(navigator.language||navigator.browserLanguage).toLowerCase(),screenshot:!1,hotkey:!0,preload:"metadata",volume:.7,apiBackend:s.default,video:{},contextmenu:[],mutex:!0};for(var i in t)t.hasOwnProperty(i)&&!e.hasOwnProperty(i)&&(e[i]=t[i]);return e.video&&!e.video.type&&(e.video.type="auto"),"object"===n(e.danmaku)&&e.danmaku&&!e.danmaku.user&&(e.danmaku.user="DIYgod"),e.subtitle&&(!e.subtitle.type&&(e.subtitle.type="webvtt"),!e.subtitle.fontSize&&(e.subtitle.fontSize="20px"),!e.subtitle.bottom&&(e.subtitle.bottom="40px"),!e.subtitle.color&&(e.subtitle.color="#fff")),e.video.quality&&(e.video.url=e.video.quality[e.video.defaultQuality].url),e.lang&&(e.lang=e.lang.toLowerCase()),e.contextmenu=e.contextmenu.concat([{text:"Video info",click:function(e){e.infoPanel.triggle()}},{text:"About author",link:"https://diygod.me"},{text:"DPlayer v1.25.0",link:"https://github.com/MoePlayer/DPlayer"}]),e}},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=this.constructor;return this.then((function(i){return t.resolve(e()).then((function(){return i}))}),(function(i){return t.resolve(e()).then((function(){return t.reject(i)}))}))}},function(e,t,i){"use strict";(function(e,t){!function(e,i){if(!e.setImmediate){var r,n,a,s,o,l=1,d={},u=!1,h=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){p(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,i=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=i,t}}()?(s="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&p(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),r=function(t){e.postMessage(s+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){p(e.data)},r=function(e){a.port2.postMessage(e)}):h&&"onreadystatechange"in h.createElement("script")?(n=h.documentElement,r=function(e){var t=h.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):r=function(e){setTimeout(p,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},i(71),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,i){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=i(70),s=(r=a)&&r.__esModule?r:{default:r},o=setTimeout;function l(){}function d(e){if(!(this instanceof d))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function u(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,d._immediateFn((function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var r;try{r=i(e._value)}catch(e){return void c(t.promise,e)}h(t.promise,r)}else(1===e._state?h:c)(t.promise,e._value)}))):e._deferreds.push(t)}function h(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof d)return e._state=3,e._value=t,void f(e);if("function"==typeof i)return void p((r=i,a=t,function(){r.apply(a,arguments)}),e)}e._state=1,e._value=t,f(e)}catch(t){c(e,t)}var r,a}function c(e,t){e._state=2,e._value=t,f(e)}function f(e){2===e._state&&0===e._deferreds.length&&d._immediateFn((function(){e._handled||d._unhandledRejectionFn(e._value)}));for(var t=0,i=e._deferreds.length;te&&this.notice(this.tran("REW")+" "+(this.video.currentTime-e).toFixed(0)+" "+this.tran("s")),this.video.currentTime=e,this.danmaku&&this.danmaku.seek(),this.bar.set("played",e/this.video.duration,"width"),this.template.ptime.innerHTML=a.default.secondToTime(e)}},{key:"play",value:function(){var e=this;if(this.paused=!1,this.video.paused&&this.bezel.switch(d.default.play),this.template.playButton.innerHTML=d.default.pause,n.default.resolve(this.video.play()).catch((function(){e.pause()})).then((function(){})),this.timer.enable("loading"),this.container.classList.remove("dplayer-paused"),this.container.classList.add("dplayer-playing"),this.danmaku&&this.danmaku.play(),this.options.mutex)for(var t=0;t=.95?this.template.volumeIcon.innerHTML=d.default.volumeUp:this.volume()>0?this.template.volumeIcon.innerHTML=d.default.volumeDown:this.template.volumeIcon.innerHTML=d.default.volumeOff}},{key:"volume",value:function(e,t,i){if(e=parseFloat(e),!isNaN(e)){e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"width");var r=(100*e).toFixed(0)+"%";this.template.volumeBarWrapWrap.dataset.balloon=r,t||this.user.set("volume",e),i||this.notice(this.tran("Volume")+" "+(100*e).toFixed(0)+"%"),this.video.volume=e,this.video.muted&&(this.video.muted=!1),this.switchVolumeIcon()}return this.video.volume}},{key:"toggle",value:function(){this.video.paused?this.play():this.pause()}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"switchVideo",value:function(e,t){this.pause(),this.video.poster=e.pic?e.pic:"",this.video.src=e.url,this.initMSE(this.video,e.type||"auto"),t&&(this.template.danmakuLoading.style.display="block",this.bar.set("played",0,"width"),this.bar.set("loaded",0,"width"),this.template.ptime.innerHTML="00:00",this.template.danmaku.innerHTML="",this.danmaku&&this.danmaku.reload({id:t.id,address:t.api,token:t.token,maximum:t.maximum,addition:t.addition,user:t.user}))}},{key:"initMSE",value:function(e,t){var i=this;if(this.type=t,this.options.video.customType&&this.options.video.customType[t])"[object Function]"===Object.prototype.toString.call(this.options.video.customType[t])?this.options.video.customType[t](this.video,this):console.error("Illegal customType: "+t);else switch("auto"===this.type&&(/m3u8(#|\?|$)/i.exec(e.src)?this.type="hls":/.flv(#|\?|$)/i.exec(e.src)?this.type="flv":/.mpd(#|\?|$)/i.exec(e.src)?this.type="dash":this.type="normal"),"hls"===this.type&&(e.canPlayType("application/x-mpegURL")||e.canPlayType("application/vnd.apple.mpegURL"))&&(this.type="normal"),this.type){case"hls":if(Hls)if(Hls.isSupported()){var r=new Hls;r.loadSource(e.src),r.attachMedia(e)}else this.notice("Error: Hls is not supported.");else this.notice("Error: Can't find Hls.");break;case"flv":if(flvjs&&flvjs.isSupported())if(flvjs.isSupported()){var n=flvjs.createPlayer({type:"flv",url:e.src});n.attachMediaElement(e),n.load()}else this.notice("Error: flvjs is not supported.");else this.notice("Error: Can't find flvjs.");break;case"dash":dashjs?dashjs.MediaPlayer().create().initialize(e,e.src,!1):this.notice("Error: Can't find dashjs.");break;case"webtorrent":if(WebTorrent)if(WebTorrent.WEBRTC_SUPPORT){this.container.classList.add("dplayer-loading");var a=new WebTorrent,s=e.src;a.add(s,(function(e){e.files.find((function(e){return e.name.endsWith(".mp4")})).renderTo(i.video,{autoplay:i.options.autoplay},(function(){i.container.classList.remove("dplayer-loading")}))}))}else this.notice("Error: Webtorrent is not supported.");else this.notice("Error: Can't find Webtorrent.")}}},{key:"initVideo",value:function(e,t){var i=this;this.initMSE(e,t),this.on("durationchange",(function(){1!==e.duration&&e.duration!==1/0&&(i.template.dtime.innerHTML=a.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.buffered.length?e.buffered.end(e.buffered.length-1)/e.duration:0;i.bar.set("loaded",t,"width")})),this.on("error",(function(){i.video.error&&i.tran&&i.notice&&(i.type,i.notice(i.tran("Video load failed"),-1))})),this.on("ended",(function(){i.bar.set("played",1,"width"),i.setting.loop?(i.seek(0),i.play()):i.pause(),i.danmaku&&(i.danmaku.danIndex=0)})),this.on("play",(function(){i.paused&&i.play()})),this.on("pause",(function(){i.paused||i.pause()})),this.on("timeupdate",(function(){i.bar.set("played",i.video.currentTime/i.video.duration,"width");var e=a.default.secondToTime(i.video.currentTime);i.template.ptime.innerHTML!==e&&(i.template.ptime.innerHTML=e)}));for(var r=function(t){e.addEventListener(i.events.videoEvents[t],(function(){i.events.trigger(i.events.videoEvents[t])}))},n=0;n1&&void 0!==arguments[1]?arguments[1]:2e3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=r,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("notice_show",e),i>0&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("notice_hide")}),i))}},{key:"resize",value:function(){this.danmaku&&this.danmaku.resize(),this.events.trigger("resize")}},{key:"speed",value:function(e){this.video.playbackRate=e}},{key:"destroy",value:function(){R.splice(R.indexOf(this),1),this.pause(),this.controller.destroy(),this.timer.destroy(),this.video.src="",this.container.innerHTML="",this.events.trigger("destroy")}}],[{key:"version",get:function(){return"1.25.0"}}]),e}();t.default=L},,,function(e,t,i){},function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),i(77);var r,n=i(74),a=(r=n)&&r.__esModule?r:{default:r};console.log("\n %c DPlayer v1.25.0 fdcf45b %c http://dplayer.js.org \n\n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),t.default=a.default}]).default}))},faa1:function(e,t,i){"use strict";var r,n="object"===typeof Reflect?Reflect:null,a=n&&"function"===typeof n.apply?n.apply:function(e,t,i){return Function.prototype.apply.call(e,t,i)};function s(e){console&&console.warn&&console.warn(e)}r=n&&"function"===typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var d=10;function u(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function h(e,t,i,r){var n,a,o;if("function"!==typeof i)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof i);if(a=e._events,void 0===a?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,i.listener?i.listener:i),a=e._events),o=a[t]),void 0===o)o=a[t]=i,++e._eventsCount;else if("function"===typeof o?o=a[t]=r?[i,o]:[o,i]:r?o.unshift(i):o.push(i),n=u(e),n>0&&o.length>n&&!o.warned){o.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+o.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=o.length,s(l)}return e}function c(){for(var e=[],t=0;t0&&(s=t[0]),s instanceof Error)throw s;var o=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw o.context=s,o}var l=n[e];if(void 0===l)return!1;if("function"===typeof l)a(l,this,t);else{var d=l.length,u=g(l,d);for(i=0;i=0;a--)if(i[a]===t||i[a].listener===t){s=i[a].listener,n=a;break}if(n<0)return this;0===n?i.shift():v(i,n),1===i.length&&(r[e]=i[0]),void 0!==r.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,i,r;if(i=this._events,void 0===i)return this;if(void 0===i.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==i[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete i[e]),this;if(0===arguments.length){var n,a=Object.keys(i);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return p(this,e,!0)},l.prototype.rawListeners=function(e){return p(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}}}]); \ No newline at end of file diff --git a/src/main/resources/static/js/chunk-2379a9ef.cc3044ff.js b/src/main/resources/static/js/chunk-2379a9ef.cc3044ff.js new file mode 100644 index 0000000..7f9b6e1 --- /dev/null +++ b/src/main/resources/static/js/chunk-2379a9ef.cc3044ff.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2379a9ef"],{4127:function(e,r,t){"use strict";var o=t("d233"),n=t("b313"),a={brackets:function(e){return e+"[]"},indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},i=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return i.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(r,t,n,a,i,s,c,u,f,p,d,y){var m=r;if("function"===typeof c)m=c(t,m);else if(m instanceof Date)m=p(m);else if(null===m){if(a)return s&&!y?s(t,l.encoder):t;m=""}if("string"===typeof m||"number"===typeof m||"boolean"===typeof m||o.isBuffer(m)){if(s){var b=y?t:s(t,l.encoder);return[d(b)+"="+d(s(m,l.encoder))]}return[d(t)+"="+d(String(m))]}var g,h=[];if("undefined"===typeof m)return h;if(Array.isArray(c))g=c;else{var v=Object.keys(m);g=u?v.sort(u):v}for(var w=0;w0?P+N:""}},4328:function(e,r,t){"use strict";var o=t("4127"),n=t("9e6a"),a=t("b313");e.exports={formats:a,parse:n,stringify:o}},"9e6a":function(e,r,t){"use strict";var o=t("d233"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,r){for(var t={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),s=0;s=0;--n){var a,i=e[n];if("[]"===i)a=[],a=a.concat(o);else{a=t.plainObjects?Object.create(null):{};var l="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(l,10);!isNaN(s)&&i!==l&&String(s)===l&&s>=0&&t.parseArrays&&s<=t.arrayLimit?(a=[],a[s]=o):a[l]=o}o=a}return o},s=function(e,r,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=a.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!t.plainObjects&&n.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}var f=0;while(null!==(s=i.exec(o))&&f=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?t+=r.charAt(o):a<128?t+=n[a]:a<2048?t+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?t+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(o)),t+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return t},f=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o0?k+C:""}},4328:function(e,t,r){"use strict";var o=r("4127"),n=r("9e6a"),a=r("b313");e.exports={formats:a,parse:n,stringify:o}},"615b":function(e,t,r){"use strict";r.r(t);var o=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("el-card",{attrs:{shadow:"false"}},[r("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{id:"siteForm","element-loading-text":"保存中...",model:e.form,"label-width":"auto","status-icon":!0}},[r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"页面布局"}},[r("el-radio",{attrs:{label:"full"},model:{value:e.form.layout,callback:function(t){e.$set(e.form,"layout",t)},expression:"form.layout"}},[e._v("全屏")]),r("el-radio",{attrs:{label:"center"},model:{value:e.form.layout,callback:function(t){e.$set(e.form,"layout",t)},expression:"form.layout"}},[e._v("居中")])],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"列表尺寸"}},[r("el-radio",{attrs:{label:"medium"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("大")]),r("el-radio",{attrs:{label:"small"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("中")]),r("el-radio",{attrs:{label:"mini"},model:{value:e.form.tableSize,callback:function(t){e.$set(e.form,"tableSize",t)},expression:"form.tableSize"}},[e._v("小")])],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"显示操作按钮"}},[r("el-switch",{model:{value:e.form.showOperator,callback:function(t){e.$set(e.form,"showOperator",t)},expression:"form.showOperator"}}),r("el-tooltip",{attrs:{placement:"right"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 显示下载和复制按钮, 在移动端只显示下载\n ")]),r("i",{staticClass:"el-icon-info zfile-info-tooltip"})])],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"显示文档区"}},[r("el-switch",{model:{value:e.form.showDocument,callback:function(t){e.$set(e.form,"showDocument",t)},expression:"form.showDocument"}}),r("el-tooltip",{attrs:{placement:"right"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 在文件列表下,显示当前文件夹中 readme.md 的内容,支持 md 和 html 语法\n ")]),r("i",{staticClass:"el-icon-info zfile-info-tooltip"})])],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"显示公告"}},[r("el-switch",{model:{value:e.form.showAnnouncement,callback:function(t){e.$set(e.form,"showAnnouncement",t)},expression:"form.showAnnouncement"}}),r("el-tooltip",{attrs:{placement:"right"}},[r("div",{attrs:{slot:"content"},slot:"content"},[e._v("\n 网站顶部,显示公告内容,支持 HTML 语法\n ")]),r("i",{staticClass:"el-icon-info zfile-info-tooltip"})])],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"公告内容"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入公告内容"},model:{value:e.form.announcement,callback:function(t){e.$set(e.form,"announcement",t)},expression:"form.announcement"}})],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"自定义 CSS"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入自定义 CSS 内容"},model:{value:e.form.customCss,callback:function(t){e.$set(e.form,"customCss",t)},expression:"form.customCss"}})],1),r("el-form-item",{staticClass:"box animate__animated animate__fadeInUp",attrs:{label:"自定义 JS"}},[r("el-input",{attrs:{type:"textarea",rows:3,placeholder:"请输入自定义 JS 内容"},model:{value:e.form.customJs,callback:function(t){e.$set(e.form,"customJs",t)},expression:"form.customJs"}})],1),r("el-form-item",[r("el-button",{attrs:{type:"primary",round:""},on:{click:function(t){return e.submitForm("form")}}},[e._v("保存设置")])],1)],1)],1)},n=[],a=r("4328"),i=r.n(a),l={name:"ViewSetting",data:function(){return{form:{layout:"",tableSize:"",showOperator:!1,showDocument:!1,showAnnouncement:!1,announcement:"",customCss:"",customJs:""},loading:!1}},methods:{submitForm:function(e){var t=this;this.$refs[e].validate((function(e){if(!e)return!1;t.loading=!0,t.$http.post("admin/config",i.a.stringify(t.form)).then((function(e){t.loading=!1,0===e.data.code&&t.$message({message:"保存成功",type:"success"})}))}))}},mounted:function(){var e=this;this.$http.get("admin/config").then((function(t){e.form=t.data.data}))}},s=l,c=r("2877"),f=Object(c["a"])(s,o,n,!1,null,"122448ac",null);t["default"]=f.exports},"9e6a":function(e,t,r){"use strict";var o=r("d233"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,t){for(var r={},o=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=t.parameterLimit===1/0?void 0:t.parameterLimit,l=o.split(t.delimiter,i),s=0;s=0;--n){var a,i=e[n];if("[]"===i)a=[],a=a.concat(o);else{a=r.plainObjects?Object.create(null):{};var l="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(l,10);!isNaN(s)&&i!==l&&String(s)===l&&s>=0&&r.parseArrays&&s<=r.arrayLimit?(a=[],a[s]=o):a[l]=o}o=a}return o},s=function(e,t,r){if(e){var o=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=a.exec(o),c=s?o.slice(0,s.index):o,f=[];if(c){if(!r.plainObjects&&n.call(Object.prototype,c)&&!r.allowPrototypes)return;f.push(c)}var u=0;while(null!==(s=i.exec(o))&&u=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?r+=t.charAt(o):a<128?r+=n[a]:a<2048?r+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?r+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&t.charCodeAt(o)),r+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return r},u=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],o=0;o",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^\\s*([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```\\w*\\s*$",end:"^```[ ]*$"},{begin:"`.+?`"},{begin:"^( {4}|\\t)",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}},"0e54":function(e,n,t){(function(n){(function(n){"use strict";var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:_,table:_,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function r(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||y.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=p(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=p(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=p(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=//,t.html=p(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=p(t._paragraph).replace("hr",t.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",t._tag).getRegex(),t.blockquote=p(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=m({},t),t.gfm=m({},t.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=m({},t.normal,{html:p("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:_,paragraph:p(t.normal._paragraph).replace("hr",t.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",t.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),r.rules=t,r.lex=function(e,n){var t=new r(n);return t.lex(e)},r.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},r.prototype.token=function(e,n){var r,s,i,a,l,o,c,g,p,h,d,f,b,_,m,v;e=e.replace(/^ +$/gm,"");while(e)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var N=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),N&&"paragraph"===N.type?N.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:x(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(o={type:"table",header:E(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]},o.header.length===o.align.length)){for(e=e.substring(i[0].length),d=0;d ?/gm,""),this.token(i,n),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],_=a.length>1,c={type:"list_start",ordered:_,start:_?+a:"",loose:!1},this.tokens.push(c),i=i[0].match(this.rules.item),g=[],r=!1,b=i.length,d=0;d1?1===l.length:l.length>1||this.options.smartLists&&l!==a)&&(e=i.slice(d+1).join("\n")+e,d=b-1)),s=r||/\n\n(?!\s*$)/.test(o),d!==b-1&&(r="\n"===o.charAt(o.length-1),s||(s=r)),s&&(c.loose=!0),m=/^\[[ xX]\] /.test(o),v=void 0,m&&(v=" "!==o[1],o=o.replace(/^\[[ xX]\] +/,"")),p={type:"list_item_start",task:m,checked:v,loose:s},g.push(p),this.tokens.push(p),this.token(o,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(b=g.length,d=0;d?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:_,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:_,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",s.em=p(s.em).replace(/punctuation/g,s._punctuation).getRegex(),s._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,s._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,s._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,s.autolink=p(s.autolink).replace("scheme",s._scheme).replace("email",s._email).getRegex(),s._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,s.tag=p(s.tag).replace("comment",t._comment).replace("attribute",s._attribute).getRegex(),s._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,s._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,s._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,s.link=p(s.link).replace("label",s._label).replace("href",s._href).replace("title",s._title).getRegex(),s.reflink=p(s.reflink).replace("label",s._label).getRegex(),s.normal=m({},s),s.pedantic=m({},s.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:p(/^!?\[(label)\]\((.*?)\)/).replace("label",s._label).getRegex(),reflink:p(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",s._label).getRegex()}),s.gfm=m({},s.normal,{escape:p(s.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=v(a[2],"()");if(c>-1){var g=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,g).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,r=a[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(r),n?(r=n[1],s=n[3]):s=""):s=a[3]?a[3].slice(1,-1):"",r=r.trim().replace(/^<([\s\S]*)>$/,"$1"),o+=this.outputLink(a,{href:i.escapes(r),title:i.escapes(s)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),n=(a[2]||a[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){o+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(a,n),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),o+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),o+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),o+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),o+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),o+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(t=u(this.mangle(a[1])),r="mailto:"+t):(t=u(a[1]),r=t),o+=this.renderer.link(r,null,t);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?o+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0]):o+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])t=u(a[0]),r="mailto:"+t;else{do{l=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(l!==a[0]);t=u(a[0]),r="www."===a[1]?"http://"+t:t}e=e.substring(a[0].length),o+=this.renderer.link(r,null,t)}return o},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,n){var t=n.href,r=n.title?u(n.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(t,r,this.output(e[1])):this.renderer.image(t,r,u(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var n,t="",r=e.length,s=0;s.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t},a.prototype.code=function(e,n,t){var r=(n||"").match(/\S*/)[0];if(this.options.highlight){var s=this.options.highlight(e,r);null!=s&&s!==e&&(t=!0,e=s)}return r?'
'+(t?e:u(e,!0))+"
\n":"
"+(t?e:u(e,!0))+"
"},a.prototype.blockquote=function(e){return"
\n"+e+"
\n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,n,t,r){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
\n":"
\n"},a.prototype.list=function(e,n,t){var r=n?"ol":"ul",s=n&&1!==t?' start="'+t+'"':"";return"<"+r+s+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,n){return n&&(n="
    "+n+""),"
    \n\n"+e+"\n"+n+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,n){var t=n.header?"th":"td",r=n.align?"<"+t+' align="'+n.align+'">':"<"+t+">";return r+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,n,t){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return t;var r='",r},a.prototype.image=function(e,n,t){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return t;var r=''+t+'":">",r},a.prototype.text=function(e){return e},l.prototype.strong=l.prototype.em=l.prototype.codespan=l.prototype.del=l.prototype.text=function(e){return e},l.prototype.link=l.prototype.image=function(e,n,t){return""+t},l.prototype.br=function(){return""},o.parse=function(e,n){var t=new o(n);return t.parse(e)},o.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,m({},this.options,{renderer:new l})),this.tokens=e.reverse();var n="";while(this.next())n+=this.tok();return n},o.prototype.next=function(){return this.token=this.tokens.pop(),this.token},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){var e=this.token.text;while("text"===this.peek().type)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,g(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,n,t,r,s="",i="";for(t="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(n)){var t=n;do{this.seen[t]++,n=t+"-"+this.seen[t]}while(this.seen.hasOwnProperty(n))}return this.seen[n]=0,n},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var f={},b=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function _(){}function m(e){for(var n,t,r=1;r=0&&"\\"===t[s])r=!r;return r?"|":" |"})),r=t.split(/ \|/),s=0;if(r.length>n)r.splice(n);else while(r.lengthAn error occurred:

    "+u(g.message+"",!0)+"
    ";throw g}}_.exec=_,y.options=y.setOptions=function(e){return m(y.defaults,e),y},y.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},y.defaults=y.getDefaults(),y.Parser=o,y.parser=o.parse,y.Renderer=a,y.TextRenderer=l,y.Lexer=r,y.lexer=r.lex,y.InlineLexer=i,y.inlineLexer=i.output,y.Slugger=c,y.parse=y,e.exports=y})(this||"undefined"!==typeof window&&window)}).call(this,t("c8ba"))},2907:function(e,n){e.exports=function(e){var n={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},t={className:"meta",begin:/<\?(php)?|\?>/},r={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:'b"',end:'"'},{begin:"b'",end:"'"},e.inherit(e.APOS_STRING_MODE,{illegal:null}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null})]},s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler",lexemes:e.UNDERSCORE_IDENT_RE}),{className:"string",begin:/<<<['"]?\w+['"]?$/,end:/^\w+;?$/,contains:[e.BACKSLASH_ESCAPE,{className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]}]},t,{className:"keyword",begin:/\$this\b/},n,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"function",end:/[;{]/,excludeEnd:!0,illegal:"\\$|\\[|%",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",contains:["self",n,e.C_BLOCK_COMMENT_MODE,r,s]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},r,s]}}},"2e7b":function(e,n){e.exports=function(e){var n="true false yes no null",t={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},r={className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]},s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]};return{case_insensitive:!0,aliases:["yml","YAML","yaml"],contains:[t,{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!"+e.UNDERSCORE_IDENT_RE},{className:"type",begin:"!!"+e.UNDERSCORE_IDENT_RE},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"\\-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{className:"number",begin:e.C_NUMBER_RE+"\\b"},s]}}},"332f":function(e,n){e.exports=function(e){var n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=n+"(<"+n+"(\\s*,\\s*"+n+")*>)?",r="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",s="\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",i={className:"number",begin:s,relevance:0};return{aliases:["jsp"],keywords:r,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface",end:/[{;=]/,excludeEnd:!0,keywords:"class interface",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:r,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:r,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},i,{className:"meta",begin:"@[A-Za-z]+"}]}}},"4dd1":function(e,n){e.exports=function(e){var n="[A-Za-z$_][0-9A-Za-z$_]*",t={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},r={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:e.C_NUMBER_RE+"n?"}],relevance:0},s={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},i={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"xml"}},a={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,s],subLanguage:"css"}},l={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,s]};s.contains=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,a,l,r,e.REGEXP_MODE];var o=s.contains.concat([e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]);return{aliases:["js","jsx"],keywords:t,contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,i,a,l,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,r,{begin:/[{,\n]\s*/,relevance:0,contains:[{begin:n+"\\s*:",returnBegin:!0,relevance:0,contains:[{className:"attr",begin:n,relevance:0}]}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{className:"function",begin:"(\\(.*?\\)|"+n+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:n},{begin:/\(\s*\)/},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:o}]}]},{className:"",begin:/\s/,end:/\s*/,skip:!0},{begin://,subLanguage:"xml",contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},{begin:/<[A-Za-z0-9\\._:-]+/,end:/(\/[A-Za-z0-9\\._:-]+|[A-Za-z0-9\\._:-]+\/)>/,skip:!0,contains:[{begin:/<[A-Za-z0-9\\._:-]+\s*\/>/,skip:!0},"self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:n}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:o}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor get set",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}},"5ad2":function(e,n){e.exports=function(e){var n={literal:"true false null"},t=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],r=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:r,keywords:n},i={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(s,{begin:/:/})].concat(t),illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(s)],illegal:"\\S"};return r.push(i,a),t.forEach((function(e){r.push(e)})),{contains:r,keywords:n,illegal:"\\S"}}},"5f68":function(e,n,t){},"693d":function(e,n,t){"use strict";var r=t("5f68"),s=t.n(r);s.a},"8dcb":function(e,n){e.exports=function(e){var n="[A-Za-z0-9\\._:-]+",t={endsWithParent:!0,illegal:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},e.inherit(e.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),e.inherit(e.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]},{className:"tag",begin:")",end:">",keywords:{name:"style"},contains:[t],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:")",end:">",keywords:{name:"script"},contains:[t],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},t]}]}}},9510:function(e,n){e.exports=function(e){var n={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},t={className:"meta",begin:/^(>>>|\.\.\.) /},r={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},i={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,t],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,t],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,t,s,r]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,t,s,r]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,r]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,r]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},a={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},l={className:"params",begin:/\(/,end:/\)/,contains:["self",t,a,i,e.HASH_COMMENT_MODE]};return r.contains=[i,a,t],{aliases:["py","gyp","ipython"],keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[t,a,i,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,l,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}},a70e:function(e,n,t){var r,s;(function(t){var i="object"===typeof window&&window||"object"===typeof self&&self;n.nodeType?i&&(i.hljs=t({}),r=[],s=function(){return i.hljs}.apply(n,r),void 0===s||(e.exports=s)):t(n)})((function(e){var n,t=[],r=Object.keys,s={},i={},a=/^(no-?highlight|plain|text)$/i,l=/\blang(?:uage)?-([\w-]+)\b/i,o=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,c="",u={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},g="of and for in not or if then".split(" ");function p(e){return e.replace(/&/g,"&").replace(//g,">")}function h(e){return e.nodeName.toLowerCase()}function d(e,n){var t=e&&e.exec(n);return t&&0===t.index}function f(e){return a.test(e)}function b(e){var n,t,r,s,i=e.className+" ";if(i+=e.parentNode?e.parentNode.className:"",t=l.exec(i),t)return I(t[1])?t[1]:"no-highlight";for(i=i.split(/\s+/),n=0,r=i.length;n"}function c(e){i+=""}function u(e){("start"===e.event?o:c)(e.node)}while(e.length||n.length){var g=l();if(i+=p(r.substring(s,g[0].offset)),s=g[0].offset,g===e){a.reverse().forEach(c);do{u(g.splice(0,1)[0]),g=l()}while(g===e&&g.length&&g[0].offset===s);a.reverse().forEach(o)}else"start"===g[0].event?a.push(g[0].node):a.pop(),u(g.splice(0,1)[0])}return i+p(r.substr(s))}function x(e){return!!e&&(e.endsWithParent||x(e.starts))}function v(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return _(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:x(e)?[_(e,{starts:e.starts?_(e.starts):null})]:[e]}function N(e){if(n&&!e.langApiRestored){for(var t in e.langApiRestored=!0,n)e[t]&&(e[n[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(N)}}function y(e,n){var t={};return"string"===typeof e?s("keyword",e):r(e).forEach((function(n){s(n,e[n])})),t;function s(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){var r=n.split("|");t[r[0]]=[e,k(r[0],r[1])]}))}}function k(e,n){return n?Number(n):w(e)?0:1}function w(e){return-1!=g.indexOf(e.toLowerCase())}function S(e){function n(e){return e&&e.source||e}function t(t,r){return new RegExp(n(t),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function r(e){return new RegExp(e.toString()+"|").exec("").length-1}function s(e,t){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,s=0,i="",a=0;a0&&(i+=t),i+="(";while(o.length>0){var c=r.exec(o);if(null==c){i+=o;break}i+=o.substring(0,c.index),o=o.substring(c.index+c[0].length),"\\"==c[0][0]&&c[1]?i+="\\"+String(Number(c[1])+l):(i+=c[0],"("==c[0]&&s++)}i+=")"}return i}function i(e){var n,i,a={},l=[],o={},c=1;function u(e,n){a[c]=e,l.push([e,n]),c+=r(n)+1}for(var g=0;g',i+n+a}function g(){var e,n,t,r;if(!y.keywords)return p(A);r="",n=0,y.lexemesRe.lastIndex=0,t=y.lexemesRe.exec(A);while(t)r+=p(A.substring(n,t.index)),e=l(y,t),e?(M+=e[1],r+=o(e[0],p(t[0]))):r+=p(t[0]),n=y.lexemesRe.lastIndex,t=y.lexemesRe.exec(A);return r+p(A.substr(n))}function h(){var e="string"===typeof y.subLanguage;if(e&&!s[y.subLanguage])return p(A);var n=e?R(y.subLanguage,A,!0,k[y.subLanguage]):O(A,y.subLanguage.length?y.subLanguage:void 0);return y.relevance>0&&(M+=n.relevance),e&&(k[y.subLanguage]=n.top),o(n.language,n.value,!1,!0)}function f(){w+=null!=y.subLanguage?h():g(),A=""}function b(e){w+=e.className?o(e.className,"",!0):"",y=Object.create(e,{parent:{value:y}})}function _(e){var n=e[0],t=e.rule;return t&&t.endSameAsBegin&&(t.endRe=i(n)),t.skip?A+=n:(t.excludeBegin&&(A+=n),f(),t.returnBegin||t.excludeBegin||(A=n)),b(t,n),t.returnBegin?0:n.length}function m(e){var n=e[0],t=a(y,n);if(t){var r=y;r.skip?A+=n:(r.returnEnd||r.excludeEnd||(A+=n),f(),r.excludeEnd&&(A=n));do{y.className&&(w+=c),y.skip||y.subLanguage||(M+=y.relevance),y=y.parent}while(y!==t.parent);return t.starts&&(t.endSameAsBegin&&(t.starts.endRe=t.endRe),b(t.starts,"")),r.returnEnd?0:n.length}}var E={};function x(e,r){var s=r&&r[0];if(A+=e,null==s)return f(),0;if("begin"==E.type&&"end"==r.type&&E.index==r.index&&""===s)return A+=n.slice(r.index,r.index+1),1;if(E=r,"begin"===r.type)return _(r);if("illegal"===r.type&&!t)throw new Error('Illegal lexeme "'+s+'" for mode "'+(y.className||"")+'"');if("end"===r.type){var i=m(r);if(void 0!=i)return i}return A+=s,s.length}var v=I(e);if(!v)throw new Error('Unknown language: "'+e+'"');S(v);var N,y=r||v,k={},w="";for(N=y;N!==v;N=N.parent)N.className&&(w=o(N.className,"",!0)+w);var A="",M=0;try{var C,T,D=0;while(1){if(y.terminators.lastIndex=D,C=y.terminators.exec(n),!C)break;T=x(n.substring(D,C.index),C),D=C.index+T}for(x(n.substr(D)),N=y;N.parent;N=N.parent)N.className&&(w+=c);return{relevance:M,value:w,illegal:!1,language:e,top:y}}catch(L){if(L.message&&-1!==L.message.indexOf("Illegal"))return{illegal:!0,relevance:0,value:p(n)};throw L}}function O(e,n){n=n||u.languages||r(s);var t={relevance:0,value:p(e)},i=t;return n.filter(I).filter(z).forEach((function(n){var r=R(n,e,!1);r.language=n,r.relevance>i.relevance&&(i=r),r.relevance>t.relevance&&(i=t,t=r)})),i.language&&(t.second_best=i),t}function A(e){return u.tabReplace||u.useBR?e.replace(o,(function(e,n){return u.useBR&&"\n"===e?"
    ":u.tabReplace?n.replace(/\t/g,u.tabReplace):""})):e}function M(e,n,t){var r=n?i[n]:t,s=[e.trim()];return e.match(/\bhljs\b/)||s.push("hljs"),-1===e.indexOf(r)&&s.push(r),s.join(" ").trim()}function C(e){var n,t,r,s,i,a=b(e);f(a)||(u.useBR?(n=document.createElementNS("http://www.w3.org/1999/xhtml","div"),n.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n")):n=e,i=n.textContent,r=a?R(a,i,!0):O(i),t=m(n),t.length&&(s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s.innerHTML=r.value,r.value=E(t,m(s),i)),r.value=A(r.value),e.innerHTML=r.value,e.className=M(e.className,a,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function T(e){u=_(u,e)}function D(){if(!D.called){D.called=!0;var e=document.querySelectorAll("pre code");t.forEach.call(e,C)}}function L(){addEventListener("DOMContentLoaded",D,!1),addEventListener("load",D,!1)}function $(n,t){var r=s[n]=t(e);N(r),r.rawDefinition=t.bind(null,e),r.aliases&&r.aliases.forEach((function(e){i[e]=n}))}function B(){return r(s)}function I(e){return e=(e||"").toLowerCase(),s[e]||s[i[e]]}function z(e){var n=I(e);return n&&!n.disableAutodetect}return e.highlight=R,e.highlightAuto=O,e.fixMarkup=A,e.highlightBlock=C,e.configure=T,e.initHighlighting=D,e.initHighlightingOnLoad=L,e.registerLanguage=$,e.listLanguages=B,e.getLanguage=I,e.autoDetection=z,e.inherit=_,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},e.COMMENT=function(n,t,r){var s=e.inherit({className:"comment",begin:n,end:t,contains:[]},r||{});return s.contains.push(e.PHRASAL_WORDS_MODE),s.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),s},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e}))},e4cb:function(e,n,t){},ee8c:function(e,n){e.exports=function(e){var n="[a-zA-Z-][a-zA-Z0-9_-]*",t={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:n,relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,t]}]}}},f786:function(e,n,t){"use strict";var r=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.text?t("div",{staticClass:"zfile-markdown-body",domProps:{innerHTML:e._s(e.markdownHtml)}}):e._e()},s=[],i=(t("a481"),t("b54a"),t("0e54")),a=t.n(i),l=t("a70e");t("e4cb");l["registerLanguage"]("markdown",t("04b0")),l["registerLanguage"]("javascript",t("4dd1")),l["registerLanguage"]("css",t("ee8c")),l["registerLanguage"]("xml",t("8dcb")),l["registerLanguage"]("json",t("5ad2")),l["registerLanguage"]("java",t("332f")),l["registerLanguage"]("yaml",t("2e7b")),l["registerLanguage"]("python",t("9510")),l["registerLanguage"]("php",t("2907"));var o={name:"MarkdownRender",props:{text:String},computed:{markdownHtml:function(){var e=new a.a.Renderer;return e.link=function(){var e=a.a.Renderer.prototype.link.apply(this,arguments);return e.replace("0?P+N:""}},4328:function(e,r,t){"use strict";var o=t("4127"),n=t("9e6a"),i=t("b313");e.exports={formats:i,parse:n,stringify:o}},"9e6a":function(e,r,t){"use strict";var o=t("d233"),n=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,r){for(var t={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,a),c=0;c=0;--n){var i,a=e[n];if("[]"===a)i=[],i=i.concat(o);else{i=t.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&t.parseArrays&&c<=t.arrayLimit?(i=[],i[c]=o):i[l]=o}o=i}return o},c=function(e,r,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=i.exec(o),s=c?o.slice(0,c.index):o,u=[];if(s){if(!t.plainObjects&&n.call(Object.prototype,s)&&!t.allowPrototypes)return;u.push(s)}var f=0;while(null!==(c=a.exec(o))&&f=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?t+=r.charAt(o):i<128?t+=n[i]:i<2048?t+=n[192|i>>6]+n[128|63&i]:i<55296||i>=57344?t+=n[224|i>>12]+n[128|i>>6&63]+n[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&r.charCodeAt(o)),t+=n[240|i>>18]+n[128|i>>12&63]+n[128|i>>6&63]+n[128|63&i])}return t},f=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o0?D+k:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},"9e6a":function(e,t,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,l=n.split(t.delimiter,a),c=0;c=0;--o){var i,a=e[o];if("[]"===a)i=[],i=i.concat(n);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=n):i[l]=n}n=i}return n},c=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=i.exec(n),s=c?n.slice(0,c.index):n,u=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}var f=0;while(null!==(c=a.exec(n))&&f=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n0?D+k:""}},4328:function(e,r,t){"use strict";var o=t("4127"),n=t("9e6a"),a=t("b313");e.exports={formats:a,parse:n,stringify:o}},"9e6a":function(e,r,t){"use strict";var o=t("d233"),n=Object.prototype.hasOwnProperty,a={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:o.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},i=function(e,r){for(var t={},o=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,i=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,i),s=0;s=0;--n){var a,i=e[n];if("[]"===i)a=[],a=a.concat(o);else{a=t.plainObjects?Object.create(null):{};var l="["===i.charAt(0)&&"]"===i.charAt(i.length-1)?i.slice(1,-1):i,s=parseInt(l,10);!isNaN(s)&&i!==l&&String(s)===l&&s>=0&&t.parseArrays&&s<=t.arrayLimit?(a=[],a[s]=o):a[l]=o}o=a}return o},s=function(e,r,t){if(e){var o=t.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,s=a.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!t.plainObjects&&n.call(Object.prototype,c)&&!t.allowPrototypes)return;u.push(c)}var f=0;while(null!==(s=i.exec(o))&&f=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122?t+=r.charAt(o):a<128?t+=n[a]:a<2048?t+=n[192|a>>6]+n[128|63&a]:a<55296||a>=57344?t+=n[224|a>>12]+n[128|a>>6&63]+n[128|63&a]:(o+=1,a=65536+((1023&a)<<10|1023&r.charCodeAt(o)),t+=n[240|a>>18]+n[128|a>>12&63]+n[128|a>>6&63]+n[128|63&a])}return t},f=function(e){for(var r=[{obj:{o:e},prop:"o"}],t=[],o=0;o1?arguments[1]:void 0)}}),r("9c6c")(o)},"24c5":function(t,e,r){"use strict";var n,i,o,a,s=r("b8e3"),c=r("e53d"),u=r("d864"),l=r("40c3"),h=r("63b6"),f=r("f772"),d=r("79aa"),p=r("1173"),g=r("a22a"),m=r("f201"),v=r("4178").set,y=r("aba2")(),w=r("656e"),b=r("4439"),x=r("bc13"),C=r("cd78"),k="Promise",D=c.TypeError,E=c.process,A=E&&E.versions,_=A&&A.v8||"",I=c[k],T="process"==l(E),L=function(){},P=i=w.f,S=!!function(){try{var t=I.resolve(1),e=(t.constructor={})[r("5168")("species")]=function(t){t(L,L)};return(T||"function"==typeof PromiseRejectionEvent)&&t.then(L)instanceof e&&0!==_.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(n){}}(),B=function(t){var e;return!(!f(t)||"function"!=typeof(e=t.then))&&e},N=function(t,e){if(!t._n){t._n=!0;var r=t._c;y((function(){var n=t._v,i=1==t._s,o=0,a=function(e){var r,o,a,s=i?e.ok:e.fail,c=e.resolve,u=e.reject,l=e.domain;try{s?(i||(2==t._h&&O(t),t._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===e.promise?u(D("Promise-chain cycle")):(o=B(r))?o.call(r,c,u):c(r)):u(n)}catch(h){l&&!a&&l.exit(),u(h)}};while(r.length>o)a(r[o++]);t._c=[],t._n=!1,e&&!t._h&&R(t)}))}},R=function(t){v.call(c,(function(){var e,r,n,i=t._v,o=M(t);if(o&&(e=b((function(){T?E.emit("unhandledRejection",i,t):(r=c.onunhandledrejection)?r({promise:t,reason:i}):(n=c.console)&&n.error&&n.error("Unhandled promise rejection",i)})),t._h=T||M(t)?2:1),t._a=void 0,o&&e.e)throw e.v}))},M=function(t){return 1!==t._h&&0===(t._a||t._c).length},O=function(t){v.call(c,(function(){var e;T?E.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})}))},F=function(t){var e=this;e._d||(e._d=!0,e=e._w||e,e._v=t,e._s=2,e._a||(e._a=e._c.slice()),N(e,!0))},$=function(t){var e,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===t)throw D("Promise can't be resolved itself");(e=B(t))?y((function(){var n={_w:r,_d:!1};try{e.call(t,u($,n,1),u(F,n,1))}catch(i){F.call(n,i)}})):(r._v=t,r._s=1,N(r,!1))}catch(n){F.call({_w:r,_d:!1},n)}}};S||(I=function(t){p(this,I,k,"_h"),d(t),n.call(this);try{t(u($,this,1),u(F,this,1))}catch(e){F.call(this,e)}},n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},n.prototype=r("5c95")(I.prototype,{then:function(t,e){var r=P(m(this,I));return r.ok="function"!=typeof t||t,r.fail="function"==typeof e&&e,r.domain=T?E.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&N(this,!1),r.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u($,t,1),this.reject=u(F,t,1)},w.f=P=function(t){return t===I||t===a?new o(t):i(t)}),h(h.G+h.W+h.F*!S,{Promise:I}),r("45f2")(I,k),r("4c95")(k),a=r("584a")[k],h(h.S+h.F*!S,k,{reject:function(t){var e=P(this),r=e.reject;return r(t),e.promise}}),h(h.S+h.F*(s||!S),k,{resolve:function(t){return C(s&&this===a?I:this,t)}}),h(h.S+h.F*!(S&&r("4ee1")((function(t){I.all(t)["catch"](L)}))),k,{all:function(t){var e=this,r=P(e),n=r.resolve,i=r.reject,o=b((function(){var r=[],o=0,a=1;g(t,!1,(function(t){var s=o++,c=!1;r.push(void 0),a++,e.resolve(t).then((function(t){c||(c=!0,r[s]=t,--a||n(r))}),i)})),--a||n(r)}));return o.e&&i(o.v),r.promise},race:function(t){var e=this,r=P(e),n=r.reject,i=b((function(){g(t,!1,(function(t){e.resolve(t).then(r.resolve,n)}))}));return i.e&&n(i.v),r.promise}})},"253b":function(t,e,r){"use strict";var n=r("8452"),i=r.n(n);i.a},2614:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("Header",{attrs:{"drive-id":t.driveId}}),t.$store.getters.showAnnouncement?r("div",{staticClass:"zfile-header-announcement",domProps:{innerHTML:t._s(t.$store.getters.announcement)}}):t._e(),r("el-row",[r("el-col",{attrs:{offset:t.isFullScreen?0:3,xs:24,sm:24,lg:t.isFullScreen?24:18}},[r("List",{ref:"List",attrs:{"drive-id":t.driveId}})],1)],1),t.$store.getters.showDocument&&null!==t.$store.state.common.config.readme?r("el-card",{class:t.isFullScreen?"":"zfile-readme-center"},[r("markdown-render",{attrs:{text:t.$store.state.common.config.readme}})],1):t._e()],1)},i=[],o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-form",{staticClass:"zfile-header",attrs:{inline:!0,size:"mini"}},[r("el-form-item",[r("el-breadcrumb",{attrs:{separator:"/","separator-class":"el-icon-arrow-right"}},[r("el-breadcrumb-item",{attrs:{to:{path:"/"+t.driveId+"/main"}}},[t._v(t._s(this.$store.state.common.config.siteName?this.$store.state.common.config.siteName:"首页"))]),t._l(t.breadcrumbData,(function(e){return r("el-breadcrumb-item",{key:e.path,staticClass:"hidden-xs-only",attrs:{to:{path:"/"+t.driveId+"/main"+e.fullPath}}},[t._v(t._s(e.name))])}))],2)],1),r("div",{staticClass:"zfile-header-drive box animate__animated animate__fadeIn"},[r("el-form-item",{attrs:{label:"图片模式",size:"small"}},[r("el-switch",{on:{change:t.switchImgModel},model:{value:t.imgModel,callback:function(e){t.imgModel=e},expression:"imgModel"}})],1),r("el-select",{attrs:{size:"small",placeholder:"请选择驱动器"},on:{change:t.changeDrive},model:{value:t.currentDriveId,callback:function(e){t.currentDriveId=e},expression:"currentDriveId"}},t._l(t.driveList,(function(t){return r("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1)},a=[],s=(r("c5f6"),r("96cf"),r("3b8d")),c=r("df7c"),u=r.n(c),l={name:"Header",props:["driveId"],data:function(){return{imgModel:!1,driveList:[],currentDriveId:"",search:"",breadcrumbData:[],searching:!1}},created:function(){this.buildBreadcrumbData()},methods:{buildBreadcrumbData:function(){this.breadcrumbData=[];var t=this.$route.params.pathMatch;t=t||"/";while("/"!==t){var e=u.a.basename(t);this.breadcrumbData.unshift({name:e,fullPath:t}),t=u.a.resolve(t,"../")}},switchImgModel:function(){this.$store.commit("switchImgMode",this.imgModel)},changeDrive:function(t){this.$router.push("/"+t+"/main")}},watch:{"$route.fullPath":function(){this.buildBreadcrumbData()},search:function(t){var e=this;clearTimeout(this.timer),this.timer=setTimeout((function(){e.$store.commit("updateSearchParam",t)}),150)}},mounted:function(){var t=Object(s["a"])(regeneratorRuntime.mark((function t(){var e=this;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$http.get("api/drive/list").then((function(t){e.driveList=t.data.data,e.driveId?e.currentDriveId=Number(e.driveId):e.driveList.length>0?(e.currentDriveId=e.driveList[0].id,e.$router.push("/"+e.driveList[0].id+"/main")):0===e.driveList.length&&e.$message.warning("无可用驱动器,请先去管理员页初始化驱动器。"),e.driveList.some((function(t){t.id===e.currentDriveId&&e.$store.commit("updateCurrentStorageStrategy",t)}))}));case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()},h=l,f=(r("253b"),r("2877")),d=Object(f["a"])(h,o,a,!1,null,"fc6280e2",null),p=d.exports,g=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"List"}},[r("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"fileTable",attrs:{"element-loading-text":"拼命加载中","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(255,255,255,.5)",id:"ListTable",data:this.$store.getters.tableData,height:this.$store.getters.showDocument&&null!==this.$store.state.common.config.readme?"50vh":"84vh",size:this.$store.getters.tableSize},on:{"sort-change":t.sortMethod,"row-click":t.openFolder,"row-contextmenu":t.showMenu}},[r("el-table-column",{attrs:{prop:"name",icon:"el-icon-notebook-1",sortable:"custom","label-class-name":"table-header-left","min-width":"100%"},scopedSlots:t._u([{key:"header",fn:function(e){return[r("i",{staticClass:"el-icon-document",staticStyle:{"margin-right":"5px"}}),r("span",[t._v("文件名")])]}},{key:"default",fn:function(e){return[t.$store.getters.imgMode&&"el-icon-my-image"===e.row.icon?[r("img",{staticClass:"img-mode-img",attrs:{src:e.row.url}})]:[r("svg",{staticClass:"icon",attrs:{"aria-hidden":"true"}},[r("use",{attrs:{"xlink:href":"#"+e.row.icon}})]),t._v("\n "+t._s(e.row.name)+"\n ")]]}}])}),t.$store.getters.imgMode?t._e():r("el-table-column",{attrs:{prop:"time",label:"修改时间",sortable:"custom","class-name":"hidden-xs-only","min-width":"20%"},scopedSlots:t._u([{key:"header",fn:function(e){return[r("i",{staticClass:"el-icon-date",staticStyle:{"margin-right":"5px"}}),r("span",[t._v("修改时间")])]}}],null,!1,3610768137)}),t.$store.getters.imgMode?t._e():r("el-table-column",{attrs:{prop:"size",label:"大小","class-name":"hidden-xs-only",sortable:"custom",formatter:this.common.fileSizeFilter,"min-width":"15%"},scopedSlots:t._u([{key:"header",fn:function(e){return[r("i",{staticClass:"el-icon-coin",staticStyle:{"margin-right":"5px"}}),r("span",[t._v("大小")])]}}],null,!1,4277032523)}),t.$store.getters.showOperator&&!t.$store.getters.imgMode?r("el-table-column",{attrs:{label:"操作","min-width":"15%"},scopedSlots:t._u([{key:"header",fn:function(e){return[r("i",{staticClass:"el-icon-s-operation",staticStyle:{"margin-right":"5px"}}),r("span",{staticStyle:{"margin-right":"13px"}},[t._v("操作")])]}},{key:"default",fn:function(e){return["FILE"===e.row.type?r("div",[r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"下载",placement:"top"}},[r("i",{staticClass:"el-icon-download operator-btn",on:{click:function(r){return r.stopPropagation(),t.download(e.row)}}})]),r("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"生成直链",placement:"right"}},[r("i",{staticClass:"el-icon-copy-document operator-btn hidden-sm-and-down",on:{click:function(r){return r.stopPropagation(),t.copyShortLink(e.row)}}})])],1):t._e()]}}],null,!1,3717724080)}):t._e()],1),r("el-dialog",{attrs:{id:"textDialog","destroy-on-close":!0,title:t.currentClickRow.name,visible:t.dialogTextVisible,top:"5vh",width:"90%"},on:{"update:visible":function(e){t.dialogTextVisible=e},opened:t.initTextDialog}},[r("TextPreview",{ref:"textDialog",attrs:{file:t.currentClickRow}})],1),r("el-dialog",{attrs:{id:"videoDialog","destroy-on-close":!0,title:t.currentClickRow.name,visible:t.dialogVideoVisible},on:{"update:visible":function(e){t.dialogVideoVisible=e}}},[t.dialogVideoVisible?r("video-player",{ref:"videoPlayer",attrs:{data:t.currentClickRow}}):t._e()],1),r("el-dialog",{attrs:{id:"copyLinkDialog",title:"生成直链结果","destroy-on-close":!0,width:"700px",visible:t.dialogCopyLinkVisible},on:{"update:visible":function(e){t.dialogCopyLinkVisible=e}}},[t.currentCopyLinkRow.row?r("el-row",[r("el-col",{staticStyle:{"text-align":"center"},attrs:{span:12}},[r("img",{attrs:{src:t.currentCopyLinkRow.img}})]),r("el-col",{attrs:{span:12}},[r("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{disabled:"","prefix-icon":"el-icon-document"},model:{value:t.currentCopyLinkRow.row.name,callback:function(e){t.$set(t.currentCopyLinkRow.row,"name",e)},expression:"currentCopyLinkRow.row.name"}}),r("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{disabled:"","prefix-icon":"el-icon-date"},model:{value:t.currentCopyLinkRow.row.time,callback:function(e){t.$set(t.currentCopyLinkRow.row,"time",e)},expression:"currentCopyLinkRow.row.time"}}),r("el-input",{staticStyle:{"margin-bottom":"10px"},attrs:{disabled:"","prefix-icon":"el-icon-coin",value:t._f("fileSizeFormat")(t.currentCopyLinkRow.row.size)}}),r("el-input",{attrs:{"prefix-icon":"el-icon-link",type:"small"},model:{value:t.currentCopyLinkRow.link,callback:function(e){t.$set(t.currentCopyLinkRow,"link",e)},expression:"currentCopyLinkRow.link"}},[r("el-tooltip",{staticClass:"item",attrs:{slot:"append",effect:"dark",content:"复制",placement:"bottom"},slot:"append"},[r("el-button",{staticStyle:{"font-size":"20px"},attrs:{type:"small",icon:"el-icon-copy-document"},on:{click:function(e){return t.copyText(t.currentCopyLinkRow.link)}}})],1)],1),r("div",{staticClass:"zfile-word-aux zfile-margin-left-unset",staticStyle:{"margin-top":"10px"}},[t._v("直链域名取决与站点设置中的地址")]),r("div",{staticClass:"zfile-word-aux zfile-margin-left-unset",staticStyle:{"margin-top":"10px"}},[t._v("二维码可右键另存为图片")])],1)],1):t._e()],1),r("audio-player",{attrs:{"file-list":this.$store.getters.filterFileByType("audio"),"audio-index":t.currentClickTypeIndex("audio")}}),r("v-contextmenu",{ref:"contextmenu"},[r("v-contextmenu-item",{on:{click:function(e){return t.openFolder(t.rightClickRow)}}},[r("i",{staticClass:"el-icon-view"}),r("label",{domProps:{innerHTML:t._s("FILE"===t.rightClickRow.type?"预览":"打开")}})]),r("v-contextmenu-item",{directives:[{name:"show",rawName:"v-show",value:"FILE"===t.rightClickRow.type,expression:"rightClickRow.type === 'FILE'"}],on:{click:function(e){return t.download(t.rightClickRow)}}},[r("i",{staticClass:"el-icon-download"}),r("label",[t._v("下载")])]),r("v-contextmenu-item",{directives:[{name:"show",rawName:"v-show",value:"FILE"===t.rightClickRow.type,expression:"rightClickRow.type === 'FILE'"}],on:{click:function(e){return t.copyShortLink(t.rightClickRow)}}},[r("i",{staticClass:"el-icon-copy-document"}),r("label",[t._v("生成直链")])])],1),[r("el-backtop",{attrs:{target:".el-table__body-wrapper",bottom:80,right:30}},[r("el-tooltip",{attrs:{placement:"top",content:"回到顶部"}},[r("transition",{attrs:{name:"fade"}},[r("div",{staticClass:"back-to-ceiling"},[r("svg",{staticClass:"Icon Icon--backToTopArrow",attrs:{"aria-hidden":"true"}},[r("use",{attrs:{"xlink:href":"#el-icon-my-to-top"}})])])])],1)],1)]],2)},m=[],v=(r("20d6"),r("ac4d"),r("8a81"),r("ac6a"),r("7f7f"),r("e05f"),function(){return r.e("chunk-1f83de16").then(r.bind(null,"5912"))}),y=function(){return r.e("chunk-a22074d4").then(r.bind(null,"3f22"))},w=function(){return r.e("chunk-5ef850b4").then(r.bind(null,"7901"))},b="/main",x=r("af0e"),C=x.qrcode,k=x.svg2url,D={components:{VideoPlayer:v,TextPreview:y,AudioPlayer:w},props:["driveId"],data:function(){return{loading:!1,rightClickRow:{},dialogTextVisible:!1,dialogVideoVisible:!1,dialogCopyLinkVisible:!1,searchParam:{path:"",password:"",orderBy:"",orderDirection:""},currentClickRow:{},contextMenuDataAxis:{x:null,y:null},driveList:[],currentCopyLinkRow:{row:null,img:"",link:""}}},watch:{"$route.fullPath":function(){this.loadFile()}},mounted:function(){this.loadFile()},methods:{sortMethod:function(t){var e=t.prop,r=t.order;this.searchParam.orderBy=e,this.searchParam.orderDirection="descending"===r?"desc":"asc",this.loadFile()},getPwd:function(){var t=this.$route.params.pathMatch;return this.searchParam.path=t||"/",this.searchParam.path},updateTitle:function(){var t=u.a.basename(this.searchParam.path),e=this.$store.state.common.config,r="";e&&(r=" | "+this.$store.state.common.config.siteName),document.title="/"===t||""===t?"首页"+r:t+r},loadFile:function(){var t=this;if(this.driveId){this.loading=!0;var e="api/list/"+this.driveId,r={path:this.getPwd(),password:this.getPathPwd(),orderBy:this.searchParam.orderBy,orderDirection:this.searchParam.orderDirection};this.$http.get(e,{params:r}).then((function(e){var r=e.data.data;if(-2===e.data.code||-3===e.data.code)return-3===e.data.code&&t.$message.error("密码错误,请重新输入!"),void t.popPassword();t.loadingConfig();var n=t.searchParam.path;if(""!==n&&"/"!==n){var i=t.$route.params.pathMatch;i=i||"/";var o=u.a.basename(u.a.resolve(i,"../"));r.unshift({name:o||"/",path:u.a.resolve(n,"../"),type:"BACK"})}t.$store.commit("tableData",r),t.loading=!1}))}},loadingConfig:function(){var t=this;this.driveId&&this.$http.get("api/config/"+this.driveId,{params:{path:this.searchParam.path}}).then((function(e){t.$store.commit("updateConfig",e.data.data),t.updateTitle()}))},openFolder:function(t){if(this.currentClickRow=t,"FILE"===t.type){if("ftp"===this.$store.getters.currentStorageStrategyType)return this.$message({message:"FTP 模式,不支持预览功能,已自动调用下载",type:"warning"}),void this.download(t);var e=this.common.getFileType(t.name);switch(e){case"video":this.openVideo();break;case"image":this.openImage();break;case"text":this.openText();break;case"audio":this.openAudio();break;default:this.download(t)}}else{var r;r="BACK"===t.type?t.path:this.common.removeDuplicateSeparator(t.path+"/"+t.name),0!==r.indexOf("/")&&(r="/"+r),this.$router.push("/"+this.driveId+b+r)}},openImage:function(){var t=[],e=!0,r=!1,n=void 0;try{for(var i,o=this.$store.getters.filterFileByType("image")[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;t.push({alt:a.name,src:a.url})}}catch(s){r=!0,n=s}finally{try{e||null==o.return||o.return()}finally{if(r)throw n}}this.layer.photos({photos:{data:t,start:this.currentClickTypeIndex("image")},anim:5,shade:.5})},openAudio:function(){},openText:function(){this.dialogTextVisible=!0},openVideo:function(){this.dialogVideoVisible=!0},initTextDialog:function(){this.$refs.textDialog.init()},showMenu:function(t,e,r){this.rightClickRow=t,r.preventDefault(),this.$refs.contextmenu.show({top:r.clientY,left:r.clientX}),this.$refs.contextmenu.$el.hidden=!1},download:function(t){window.location.href=t.url},copyShortLink:function(t){var e=this,r=this.common.removeDuplicateSeparator("/"+encodeURI(t.path)+"/"+encodeURI(t.name));this.$http.get("api/short-link",{params:{driveId:this.driveId,path:r},withCredentials:!1}).then((function(r){e.currentCopyLinkRow.row=t,e.currentCopyLinkRow.link=r.data.data;var n=C(r.data.data);e.currentCopyLinkRow.img=k(n),e.dialogCopyLinkVisible=!0}))},copyText:function(t){var e=this;this.$copyText(t).then((function(){e.$message.success("复制成功")}),(function(){e.$message.error("复制失败")}))},popPassword:function(){var t=this;this.$prompt("请输入密码","提示",{confirmButtonText:"确定",cancelButtonText:"取消",inputType:"password",inputValidator:function(t){return!!t},inputErrorMessage:"密码不能为空."}).then((function(e){var r=e.value,n=t.getPathPwd();r!==n&&t.putPathPwd(r),t.loadFile()})).catch((function(){t.$router.push("/"+t.driveId+b+u.a.resolve(t.searchParam.path,"../"))}))},getPathPwd:function(){var t=sessionStorage.getItem("zfile-pwd-"+this.searchParam.path);return null===t?"":t},putPathPwd:function(t){sessionStorage.setItem("zfile-pwd-"+this.searchParam.path,t)}},computed:{currentClickTypeIndex:function(){var t=this;return function(e){var r=t.currentClickRow;return"FILE"!==r.type?-1:"{}"===JSON.stringify(r)?0:(e=e||t.common.getFileType(r.name),t.$store.getters.filterFileByType(e).findIndex((function(t){return t.name===r.name})))}}}},E=D,A=(r("bfd2"),Object(f["a"])(E,g,m,!1,null,"8a438532",null)),_=A.exports,I=r("f786"),T={name:"Main",props:["driveId"],components:{List:_,Header:p,MarkdownRender:I["a"]},watch:{"$store.state.common.config.customJs":function(t){var e=document.createElement("script");e.type="text/javascript",e.text=t,document.getElementsByTagName("head")[0].appendChild(e)},"$store.state.common.config.customCss":function(t){var e=document.createElement("style");e.type="text/css",e.innerHTML=t,document.getElementsByTagName("head")[0].appendChild(e)}},computed:{isFullScreen:function(){return this.common.isMobile()||"center"!==this.$store.getters.layout}}},L=T,P=(r("c266"),Object(f["a"])(L,n,i,!1,null,null,null));e["default"]=P.exports},3024:function(t,e){t.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},3702:function(t,e,r){var n=r("481b"),i=r("5168")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},"37c8":function(t,e,r){e.f=r("2b4c")},"3a72":function(t,e,r){var n=r("7726"),i=r("8378"),o=r("2d00"),a=r("37c8"),s=r("86cc").f;t.exports=function(t){var e=i.Symbol||(i.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3b8d":function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));var n=r("795b"),i=r.n(n);function o(t,e,r,n,o,a,s){try{var c=t[a](s),u=c.value}catch(l){return void r(l)}c.done?e(u):i.a.resolve(u).then(n,o)}function a(t){return function(){var e=this,r=arguments;return new i.a((function(n,i){var a=t.apply(e,r);function s(t){o(a,n,i,s,c,"next",t)}function c(t){o(a,n,i,s,c,"throw",t)}s(void 0)}))}}},"3c11":function(t,e,r){"use strict";var n=r("63b6"),i=r("584a"),o=r("e53d"),a=r("f201"),s=r("cd78");n(n.P+n.R,"Promise",{finally:function(t){var e=a(this,i.Promise||o.Promise),r="function"==typeof t;return this.then(r?function(r){return s(e,t()).then((function(){return r}))}:t,r?function(r){return s(e,t()).then((function(){throw r}))}:t)}})},"40c3":function(t,e,r){var n=r("6b4c"),i=r("5168")("toStringTag"),o="Arguments"==n(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(r){}};t.exports=function(t){var e,r,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=a(e=Object(t),i))?r:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},4178:function(t,e,r){var n,i,o,a=r("d864"),s=r("3024"),c=r("32fc"),u=r("1ec9"),l=r("e53d"),h=l.process,f=l.setImmediate,d=l.clearImmediate,p=l.MessageChannel,g=l.Dispatch,m=0,v={},y="onreadystatechange",w=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},b=function(t){w.call(t.data)};f&&d||(f=function(t){var e=[],r=1;while(arguments.length>r)e.push(arguments[r++]);return v[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},d=function(t){delete v[t]},"process"==r("6b4c")(h)?n=function(t){h.nextTick(a(w,t,1))}:g&&g.now?n=function(t){g.now(a(w,t,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(n=function(t){l.postMessage(t+"","*")},l.addEventListener("message",b,!1)):n=y in u("script")?function(t){c.appendChild(u("script"))[y]=function(){c.removeChild(this),w.call(t)}}:function(t){setTimeout(a(w,t,1),0)}),t.exports={set:f,clear:d}},"43fc":function(t,e,r){"use strict";var n=r("63b6"),i=r("656e"),o=r("4439");n(n.S,"Promise",{try:function(t){var e=i.f(this),r=o(t);return(r.e?e.reject:e.resolve)(r.v),e.promise}})},4439:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(e){return{e:!0,v:e}}}},"4c95":function(t,e,r){"use strict";var n=r("e53d"),i=r("584a"),o=r("d9f6"),a=r("8e60"),s=r("5168")("species");t.exports=function(t){var e="function"==typeof i[t]?i[t]:n[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},"4ee1":function(t,e,r){var n=r("5168")("iterator"),i=!1;try{var o=[7][n]();o["return"]=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(a){}t.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:r=!0}},o[n]=function(){return s},t(o)}catch(a){}return r}},"59a5":function(t,e){t.exports=function(t){return"data:image/svg+xml;utf8,"+encodeURIComponent(t)}},"5c95":function(t,e,r){var n=r("35e8");t.exports=function(t,e,r){for(var i in e)r&&t[i]?t[i]=e[i]:n(t,i,e[i]);return t}},"656e":function(t,e,r){"use strict";var n=r("79aa");function i(t){var e,r;this.promise=new t((function(t,n){if(void 0!==e||void 0!==r)throw TypeError("Bad Promise constructor");e=t,r=n})),this.resolve=n(e),this.reject=n(r)}t.exports.f=function(t){return new i(t)}},"67ab":function(t,e,r){var n=r("ca5a")("meta"),i=r("d3f4"),o=r("69a8"),a=r("86cc").f,s=0,c=Object.isExtensible||function(){return!0},u=!r("79e5")((function(){return c(Object.preventExtensions({}))})),l=function(t){a(t,n,{value:{i:"O"+ ++s,w:{}}})},h=function(t,e){if(!i(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!c(t))return"F";if(!e)return"E";l(t)}return t[n].i},f=function(t,e){if(!o(t,n)){if(!c(t))return!0;if(!e)return!1;l(t)}return t[n].w},d=function(t){return u&&p.NEED&&c(t)&&!o(t,n)&&l(t),t},p=t.exports={KEY:n,NEED:!1,fastKey:h,getWeak:f,onFreeze:d}},"696e":function(t,e,r){r("c207"),r("1654"),r("6c1c"),r("24c5"),r("3c11"),r("43fc"),t.exports=r("584a").Promise},"795b":function(t,e,r){t.exports=r("696e")},"7bbc":function(t,e,r){var n=r("6821"),i=r("9093").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},"7cd6":function(t,e,r){var n=r("40c3"),i=r("5168")("iterator"),o=r("481b");t.exports=r("584a").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},8452:function(t,e,r){},"85ae":function(t,e){function r(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,r=this.data.length;e65536?(n[0]=240|(1835008&o)>>>18,n[1]=128|(258048&o)>>>12,n[2]=128|(4032&o)>>>6,n[3]=128|63&o):o>2048?(n[0]=224|(61440&o)>>>12,n[1]=128|(4032&o)>>>6,n[2]=128|63&o):o>128?(n[0]=192|(1984&o)>>>6,n[1]=128|63&o):n[0]=o,this.parsedData.push(n)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}r.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,r=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var r=-1;r<=7;r++)if(!(t+r<=-1||this.moduleCount<=t+r))for(var n=-1;n<=7;n++)e+n<=-1||this.moduleCount<=e+n||(this.modules[t+r][e+n]=0<=r&&r<=6&&(0==n||6==n)||0<=n&&n<=6&&(0==r||6==r)||2<=r&&r<=4&&2<=n&&n<=4)},getBestMaskPattern:function(){for(var t=0,e=0,r=0;r<8;r++){this.makeImpl(!0,r);var n=s.getLostPoint(this);(0==r||t>n)&&(t=n,e=r)}return e},createMovieClip:function(t,e,r){var n=t.createEmptyMovieClip(e,r),i=1;this.make();for(var o=0;o>r&1);this.modules[Math.floor(r/3)][r%3+this.moduleCount-8-3]=n}for(r=0;r<18;r++){n=!t&&1==(e>>r&1);this.modules[r%3+this.moduleCount-8-3][Math.floor(r/3)]=n}},setupTypeInfo:function(t,e){for(var r=this.errorCorrectLevel<<3|e,n=s.getBCHTypeInfo(r),i=0;i<15;i++){var o=!t&&1==(n>>i&1);i<6?this.modules[i][8]=o:i<8?this.modules[i+1][8]=o:this.modules[this.moduleCount-15+i][8]=o}for(i=0;i<15;i++){o=!t&&1==(n>>i&1);i<8?this.modules[8][this.moduleCount-i-1]=o:i<9?this.modules[8][15-i-1+1]=o:this.modules[8][15-i-1]=o}this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var r=-1,n=this.moduleCount-1,i=7,o=0,a=this.moduleCount-1;a>0;a-=2){6==a&&a--;while(1){for(var c=0;c<2;c++)if(null==this.modules[n][a-c]){var u=!1;o>>i&1));var l=s.getMask(e,n,a-c);l&&(u=!u),this.modules[n][a-c]=u,i--,-1==i&&(o++,i=7)}if(n+=r,n<0||this.moduleCount<=n){n-=r,r=-r;break}}}}},n.PAD0=236,n.PAD1=17,n.createData=function(t,e,r){for(var i=h.getRSBlocks(t,e),o=new f,a=0;a8*u)throw new Error("code length overflow. ("+o.getLengthInBits()+">"+8*u+")");o.getLengthInBits()+4<=8*u&&o.put(0,4);while(o.getLengthInBits()%8!=0)o.putBit(!1);while(1){if(o.getLengthInBits()>=8*u)break;if(o.put(n.PAD0,8),o.getLengthInBits()>=8*u)break;o.put(n.PAD1,8)}return n.createBytes(o,i)},n.createBytes=function(t,e){for(var r=0,n=0,i=0,o=new Array(e.length),a=new Array(e.length),c=0;c=0?g.get(m):0}}var v=0;for(f=0;f=0)e^=s.G15<=0)e^=s.G18<>>=1;return e},getPatternPosition:function(t){return s.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,r){switch(t){case a.PATTERN000:return(e+r)%2==0;case a.PATTERN001:return e%2==0;case a.PATTERN010:return r%3==0;case a.PATTERN011:return(e+r)%3==0;case a.PATTERN100:return(Math.floor(e/2)+Math.floor(r/3))%2==0;case a.PATTERN101:return e*r%2+e*r%3==0;case a.PATTERN110:return(e*r%2+e*r%3)%2==0;case a.PATTERN111:return(e*r%3+(e+r)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new l([1],0),r=0;r5&&(r+=3+o-5)}for(n=0;n=256)t-=255;return c.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},u=0;u<8;u++)c.EXP_TABLE[u]=1<>>7-t%8&1)},put:function(t,e){for(var r=0;r>>e-r-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var d=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function p(t){if(this.options={padding:0,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M"},"string"===typeof t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!==typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");function r(t){switch(t){case"L":return o.L;case"M":return o.M;case"Q":return o.Q;case"H":return o.H;default:throw new Error("Unknwon error correction level: "+t)}}function i(t,e){for(var r=a(t),n=1,i=0,o=0,s=d.length;o<=s;o++){var c=d[o];if(!c)throw new Error("Content too long: expected "+i+" but got "+r);switch(e){case"L":i=c[0];break;case"M":i=c[1];break;case"Q":i=c[2];break;case"H":i=c[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(r<=i)break;n++}if(n>d.length)throw new Error("Content too long");return n}function a(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}var s=this.options.content,c=i(s,this.options.ecl),u=r(this.options.ecl);this.qrcode=new n(c,u),this.qrcode.addData(s),this.qrcode.make()}p.prototype.svg=function(){for(var t=this.options,e=this.qrcode.modules,r=t.width,n=t.height,i=e.length,o=r/(i+2*t.padding),a=n/(i+2*t.padding),s='',c=0;c'}}var d='';return d+=s,d+="",d},t.exports=function(t){return new p(t).svg()}},"8a81":function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),o=r("9e1e"),a=r("5ca1"),s=r("2aba"),c=r("67ab").KEY,u=r("79e5"),l=r("5537"),h=r("7f20"),f=r("ca5a"),d=r("2b4c"),p=r("37c8"),g=r("3a72"),m=r("d4c0"),v=r("1169"),y=r("cb7c"),w=r("d3f4"),b=r("4bf8"),x=r("6821"),C=r("6a99"),k=r("4630"),D=r("2aeb"),E=r("7bbc"),A=r("11e9"),_=r("2621"),I=r("86cc"),T=r("0d58"),L=A.f,P=I.f,S=E.f,B=n.Symbol,N=n.JSON,R=N&&N.stringify,M="prototype",O=d("_hidden"),F=d("toPrimitive"),$={}.propertyIsEnumerable,j=l("symbol-registry"),W=l("symbols"),H=l("op-symbols"),G=Object[M],z="function"==typeof B&&!!_.f,V=n.QObject,U=!V||!V[M]||!V[M].findChild,K=o&&u((function(){return 7!=D(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=L(G,e);n&&delete G[e],P(t,e,r),n&&t!==G&&P(G,e,n)}:P,X=function(t){var e=W[t]=D(B[M]);return e._k=t,e},Y=z&&"symbol"==typeof B.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof B},J=function(t,e,r){return t===G&&J(H,e,r),y(t),e=C(e,!0),y(r),i(W,e)?(r.enumerable?(i(t,O)&&t[O][e]&&(t[O][e]=!1),r=D(r,{enumerable:k(0,!1)})):(i(t,O)||P(t,O,k(1,{})),t[O][e]=!0),K(t,e,r)):P(t,e,r)},Q=function(t,e){y(t);var r,n=m(e=x(e)),i=0,o=n.length;while(o>i)J(t,r=n[i++],e[r]);return t},q=function(t,e){return void 0===e?D(t):Q(D(t),e)},Z=function(t){var e=$.call(this,t=C(t,!0));return!(this===G&&i(W,t)&&!i(H,t))&&(!(e||!i(this,t)||!i(W,t)||i(this,O)&&this[O][t])||e)},tt=function(t,e){if(t=x(t),e=C(e,!0),t!==G||!i(W,e)||i(H,e)){var r=L(t,e);return!r||!i(W,e)||i(t,O)&&t[O][e]||(r.enumerable=!0),r}},et=function(t){var e,r=S(x(t)),n=[],o=0;while(r.length>o)i(W,e=r[o++])||e==O||e==c||n.push(e);return n},rt=function(t){var e,r=t===G,n=S(r?H:x(t)),o=[],a=0;while(n.length>a)!i(W,e=n[a++])||r&&!i(G,e)||o.push(W[e]);return o};z||(B=function(){if(this instanceof B)throw TypeError("Symbol is not a constructor!");var t=f(arguments.length>0?arguments[0]:void 0),e=function(r){this===G&&e.call(H,r),i(this,O)&&i(this[O],t)&&(this[O][t]=!1),K(this,t,k(1,r))};return o&&U&&K(G,t,{configurable:!0,set:e}),X(t)},s(B[M],"toString",(function(){return this._k})),A.f=tt,I.f=J,r("9093").f=E.f=et,r("52a7").f=Z,_.f=rt,o&&!r("2d00")&&s(G,"propertyIsEnumerable",Z,!0),p.f=function(t){return X(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:B});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;nt.length>it;)d(nt[it++]);for(var ot=T(d.store),at=0;ot.length>at;)g(ot[at++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return i(j,t+="")?j[t]:j[t]=B(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in j)if(j[e]===t)return e},useSetter:function(){U=!0},useSimple:function(){U=!1}}),a(a.S+a.F*!z,"Object",{create:q,defineProperty:J,defineProperties:Q,getOwnPropertyDescriptor:tt,getOwnPropertyNames:et,getOwnPropertySymbols:rt});var st=u((function(){_.f(1)}));a(a.S+a.F*st,"Object",{getOwnPropertySymbols:function(t){return _.f(b(t))}}),N&&a(a.S+a.F*(!z||u((function(){var t=B();return"[null]"!=R([t])||"{}"!=R({a:t})||"{}"!=R(Object(t))}))),"JSON",{stringify:function(t){var e,r,n=[t],i=1;while(arguments.length>i)n.push(arguments[i++]);if(r=e=n[1],(w(e)||void 0!==t)&&!Y(t))return v(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!Y(e))return e}),n[1]=e,R.apply(N,n)}}),B[M][F]||r("32e9")(B[M],F,B[M].valueOf),h(B,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},"96cf":function(t,e,r){var n=function(t){"use strict";var e,r=Object.prototype,n=r.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(t,e,r,n){var i=e&&e.prototype instanceof g?e:g,o=Object.create(i.prototype),a=new I(n||[]);return o._invoke=D(t,r,a),o}function u(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(n){return{type:"throw",arg:n}}}t.wrap=c;var l="suspendedStart",h="suspendedYield",f="executing",d="completed",p={};function g(){}function m(){}function v(){}var y={};y[o]=function(){return this};var w=Object.getPrototypeOf,b=w&&w(w(T([])));b&&b!==r&&n.call(b,o)&&(y=b);var x=v.prototype=g.prototype=Object.create(y);function C(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function k(t){function e(r,i,o,a){var s=u(t[r],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"===typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,o,a)}),(function(t){e("throw",t,o,a)})):Promise.resolve(l).then((function(t){c.value=t,o(c)}),(function(t){return e("throw",t,o,a)}))}a(s.arg)}var r;function i(t,n){function i(){return new Promise((function(r,i){e(t,n,r,i)}))}return r=r?r.then(i,i):i()}this._invoke=i}function D(t,e,r){var n=l;return function(i,o){if(n===f)throw new Error("Generator is already running");if(n===d){if("throw"===i)throw o;return L()}r.method=i,r.arg=o;while(1){var a=r.delegate;if(a){var s=E(a,r);if(s){if(s===p)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=d,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=u(t,e,r);if("normal"===c.type){if(n=r.done?d:h,c.arg===p)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=d,r.method="throw",r.arg=c.arg)}}}function E(t,r){var n=t.iterator[r.method];if(n===e){if(r.delegate=null,"throw"===r.method){if(t.iterator["return"]&&(r.method="return",r.arg=e,E(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=u(n,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,p;var o=i.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function _(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function T(t){if(t){var r=t[o];if(r)return r.call(t);if("function"===typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function r(){while(++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(c&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),_(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:T(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),p}},t}(t.exports);try{regeneratorRuntime=n}catch(i){Function("r","regeneratorRuntime = r")(n)}},a22a:function(t,e,r){var n=r("d864"),i=r("b0dc"),o=r("3702"),a=r("e4ae"),s=r("b447"),c=r("7cd6"),u={},l={};e=t.exports=function(t,e,r,h,f){var d,p,g,m,v=f?function(){return t}:c(t),y=n(r,h,e?2:1),w=0;if("function"!=typeof v)throw TypeError(t+" is not iterable!");if(o(v)){for(d=s(t.length);d>w;w++)if(m=e?y(a(p=t[w])[0],p[1]):y(t[w]),m===u||m===l)return m}else for(g=v.call(t);!(p=g.next()).done;)if(m=i(g,y,p.value,e),m===u||m===l)return m};e.BREAK=u,e.RETURN=l},aa77:function(t,e,r){var n=r("5ca1"),i=r("be13"),o=r("79e5"),a=r("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),h=function(t,e,r){var i={},s=o((function(){return!!a[t]()||c[t]()!=c})),u=i[t]=s?e(f):a[t];r&&(i[r]=u),n(n.P+n.F*s,"String",i)},f=h.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(l,"")),t};t.exports=h},aba2:function(t,e,r){var n=r("e53d"),i=r("4178").set,o=n.MutationObserver||n.WebKitMutationObserver,a=n.process,s=n.Promise,c="process"==r("6b4c")(a);t.exports=function(){var t,e,r,u=function(){var n,i;c&&(n=a.domain)&&n.exit();while(t){i=t.fn,t=t.next;try{i()}catch(o){throw t?r():e=void 0,o}}e=void 0,n&&n.enter()};if(c)r=function(){a.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(s&&s.resolve){var l=s.resolve(void 0);r=function(){l.then(u)}}else r=function(){i.call(n,u)};else{var h=!0,f=document.createTextNode("");new o(u).observe(f,{characterData:!0}),r=function(){f.data=h=!h}}return function(n){var i={fn:n,next:void 0};e&&(e.next=i),t||(t=i,r()),e=i}}},ac4d:function(t,e,r){r("3a72")("asyncIterator")},af0e:function(t,e,r){var n=r("e13e"),i=r("85ae"),o=r("59a5");t.exports={barcode:n,qrcode:i,svg2url:o}},b0dc:function(t,e,r){var n=r("e4ae");t.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(a){var o=t["return"];throw void 0!==o&&n(o.call(t)),a}}},bc13:function(t,e,r){var n=r("e53d"),i=n.navigator;t.exports=i&&i.userAgent||""},bfd2:function(t,e,r){"use strict";var n=r("f7cd"),i=r.n(n);i.a},c023:function(t,e,r){},c266:function(t,e,r){"use strict";var n=r("c023"),i=r.n(n);i.a},c5f6:function(t,e,r){"use strict";var n=r("7726"),i=r("69a8"),o=r("2d95"),a=r("5dbc"),s=r("6a99"),c=r("79e5"),u=r("9093").f,l=r("11e9").f,h=r("86cc").f,f=r("aa77").trim,d="Number",p=n[d],g=p,m=p.prototype,v=o(r("2aeb")(m))==d,y="trim"in String.prototype,w=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){e=y?e.trim():f(e,3);var r,n,i,o=e.charCodeAt(0);if(43===o||45===o){if(r=e.charCodeAt(2),88===r||120===r)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+e}for(var a,c=e.slice(2),u=0,l=c.length;ui)return NaN;return parseInt(c,n)}}return+e};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(t){var e=arguments.length<1?0:t,r=this;return r instanceof p&&(v?c((function(){m.valueOf.call(r)})):o(r)!=d)?a(new g(w(e)),r,p):w(e)};for(var b,x=r("9e1e")?u(g):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;x.length>C;C++)i(g,b=x[C])&&!i(p,b)&&h(p,b,l(g,b));p.prototype=m,m.constructor=p,r("2aba")(n,d,p)}},cd78:function(t,e,r){var n=r("e4ae"),i=r("f772"),o=r("656e");t.exports=function(t,e){if(n(t),i(e)&&e.constructor===t)return e;var r=o.f(t),a=r.resolve;return a(e),r.promise}},d4c0:function(t,e,r){var n=r("0d58"),i=r("2621"),o=r("52a7");t.exports=function(t){var e=n(t),r=i.f;if(r){var a,s=r(t),c=o.f,u=0;while(s.length>u)c.call(t,a=s[u++])&&e.push(a)}return e}},df7c:function(t,e,r){(function(t){function r(t,e){for(var r=0,n=t.length-1;n>=0;n--){var i=t[n];"."===i?t.splice(n,1):".."===i?(t.splice(n,1),r++):r&&(t.splice(n,1),r--)}if(e)for(;r--;r)t.unshift("..");return t}function n(t){"string"!==typeof t&&(t+="");var e,r=0,n=-1,i=!0;for(e=t.length-1;e>=0;--e)if(47===t.charCodeAt(e)){if(!i){r=e+1;break}}else-1===n&&(i=!1,n=e+1);return-1===n?"":t.slice(r,n)}function i(t,e){if(t.filter)return t.filter(e);for(var r=[],n=0;n=-1&&!n;o--){var a=o>=0?arguments[o]:t.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(e=a+"/"+e,n="/"===a.charAt(0))}return e=r(i(e.split("/"),(function(t){return!!t})),!n).join("/"),(n?"/":"")+e||"."},e.normalize=function(t){var n=e.isAbsolute(t),a="/"===o(t,-1);return t=r(i(t.split("/"),(function(t){return!!t})),!n).join("/"),t||n||(t="."),t&&a&&(t+="/"),(n?"/":"")+t},e.isAbsolute=function(t){return"/"===t.charAt(0)},e.join=function(){var t=Array.prototype.slice.call(arguments,0);return e.normalize(i(t,(function(t,e){if("string"!==typeof t)throw new TypeError("Arguments to path.join must be strings");return t})).join("/"))},e.relative=function(t,r){function n(t){for(var e=0;e=0;r--)if(""!==t[r])break;return e>r?[]:t.slice(e,r-e+1)}t=e.resolve(t).substr(1),r=e.resolve(r).substr(1);for(var i=n(t.split("/")),o=n(r.split("/")),a=Math.min(i.length,o.length),s=a,c=0;c=1;--o)if(e=t.charCodeAt(o),47===e){if(!i){n=o;break}}else i=!1;return-1===n?r?"/":".":r&&1===n?"/":t.slice(0,n)},e.basename=function(t,e){var r=n(t);return e&&r.substr(-1*e.length)===e&&(r=r.substr(0,r.length-e.length)),r},e.extname=function(t){"string"!==typeof t&&(t+="");for(var e=-1,r=0,n=-1,i=!0,o=0,a=t.length-1;a>=0;--a){var s=t.charCodeAt(a);if(47!==s)-1===n&&(i=!1,n=a+1),46===s?-1===e?e=a:1!==o&&(o=1):-1!==e&&(o=-1);else if(!i){r=a+1;break}}return-1===e||-1===n||0===o||1===o&&e===n-1&&e===r+1?"":t.slice(e,n)};var o="b"==="ab".substr(-1)?function(t,e,r){return t.substr(e,r)}:function(t,e,r){return e<0&&(e=t.length+e),t.substr(e,r)}}).call(this,r("f28c"))},e05f:function(t,e,r){},e13e:function(t,e){var r={settings:{width:100,barWidth:1,barHeight:50,moduleSize:1,showHRI:!1,addQuietZone:!1,marginHRI:0,bgColor:"transparent",color:"#000000",fontSize:12,output:"svg",posX:0,posY:0},intval:function(t){var e=typeof t;return"string"==e?(t=t.replace(/[^0-9-.]/g,""),t=parseInt(1*t,10),isNaN(t)||!isFinite(t)?0:t):"number"==e&&isFinite(t)?Math.floor(t):0},i25:{encoding:["NNWWN","WNNNW","NWNNW","WWNNN","NNWNW","WNWNN","NWWNN","NNNWW","WNNWN","NWNWN"],compute:function(t,e,n){if(e){"int25"==n&&t.length%2==0&&(t="0"+t);for(var i,o=!0,a=0,s=t.length-1;s>-1;s--){if(i=r.intval(t.charAt(s)),isNaN(i))return"";a+=o?3*i:i,o=!o}t+=((10-a%10)%10).toString()}else t.length%2!=0&&(t="0"+t);return t},getDigit:function(t,e,r){if(t=this.compute(t,e,r),""==t)return"";var n;if(result="","int25"==r){var i,o;for(result+="1010",s=0;s"9")return"";t=this.compute(t,e);var a="101";if("ean8"==e){for(o=0;o<4;o++)a+=this.encoding[r.intval(t.charAt(o))][0];a+="01010";for(o=4;o<8;o++)a+=this.encoding[r.intval(t.charAt(o))][2]}else{var s=this.first[r.intval(t.charAt(0))];for(o=1;o<7;o++)a+=this.encoding[r.intval(t.charAt(o))][r.intval(s.charAt(o-1))];a+="01010";for(o=7;o<13;o++)a+=this.encoding[r.intval(t.charAt(o))][2]}return a+="101",a},compute:function(t,e){var n="ean13"==e?12:7;t=t.substring(0,n);for(var i=0,o=!0,a=t.length-1;a>-1;a--)i+=(o?3:1)*r.intval(t.charAt(a)),o=!o;return t+((10-i%10)%10).toString()}},upc:{getDigit:function(t){return t.length<12&&(t="0"+t),r.ean.getDigit(t,"ean13")},compute:function(t){return t.length<12&&(t="0"+t),r.ean.compute(t,"ean13").substr(1)}},msi:{encoding:["100100100100","100100100110","100100110100","100100110110","100110100100","100110100110","100110110100","100110110110","110100100100","110100100110"],compute:function(t,e){return"object"==typeof e?("mod10"==e.crc1?t=this.computeMod10(t):"mod11"==e.crc1&&(t=this.computeMod11(t)),"mod10"==e.crc2?t=this.computeMod10(t):"mod11"==e.crc2&&(t=this.computeMod11(t))):"boolean"==typeof e&&e&&(t=this.computeMod10(t)),t},computeMod10:function(t){var e,n=t.length%2,i=0,o=0;for(e=0;e=0;i--)e+=n*r.intval(t.charAt(i)),n=7==n?2:n+1;return t+((11-e%11)%11).toString()},getDigit:function(t,e){var r="0123456789",n=0,o="";for(t=this.compute(t,!1),o="110",i=0;i=0;e--)a=10==a?1:a+1,c=10==c?1:c+1,r=n.indexOf(t.charAt(e)),s+=a*r,u+=c*r;var l=s%11;u+=l;var h=u%11;return i+=this.encoding[l]+o,t.length>=10&&(i+=this.encoding[h]+o),i+="1011001",i}},code39:{encoding:["101001101101","110100101011","101100101011","110110010101","101001101011","110100110101","101100110101","101001011011","110100101101","101100101101","110101001011","101101001011","110110100101","101011001011","110101100101","101101100101","101010011011","110101001101","101101001101","101011001101","110101010011","101101010011","110110101001","101011010011","110101101001","101101101001","101010110011","110101011001","101101011001","101011011001","110010101011","100110101011","110011010101","100101101011","110010110101","100110110101","100101011011","110010101101","100110101101","100100100101","100100101001","100101001001","101001001001","100101101101"],getDigit:function(t){var e,r,n="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*",i="",o="0";if(t.indexOf("*")>=0)return"";for(t=("*"+t+"*").toUpperCase(),e=0;e0&&(i+=o),i+=this.encoding[r]}return i}},code93:{encoding:["100010100","101001000","101000100","101000010","100101000","100100100","100100010","101010000","100010010","100001010","110101000","110100100","110100010","110010100","110010010","110001010","101101000","101100100","101100010","100110100","100011010","101011000","101001100","101000110","100101100","100010110","110110100","110110010","110101100","110100110","110010110","110011010","101101100","101100110","100110110","100111010","100101110","111010100","111010010","111001010","101101110","101110110","110101110","100100110","111011010","111010110","100110010","101011110"],getDigit:function(t,e){var r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%____*",n="";if(t.indexOf("*")>=0)return"";for(t=t.toUpperCase(),n+=this.encoding[47],i=0;i=0;i--)o=20==o?1:o+1,s=15==s?1:s+1,index=r.indexOf(t.charAt(i)),a+=o*index,c+=s*index;var u=a%47;c+=u;var l=c%47;n+=this.encoding[u],n+=this.encoding[l]}return n+=this.encoding[47],n+="1",n}},code128:{encoding:["11011001100","11001101100","11001100110","10010011000","10010001100","10001001100","10011001000","10011000100","10001100100","11001001000","11001000100","11000100100","10110011100","10011011100","10011001110","10111001100","10011101100","10011100110","11001110010","11001011100","11001001110","11011100100","11001110100","11101101110","11101001100","11100101100","11100100110","11101100100","11100110100","11100110010","11011011000","11011000110","11000110110","10100011000","10001011000","10001000110","10110001000","10001101000","10001100010","11010001000","11000101000","11000100010","10110111000","10110001110","10001101110","10111011000","10111000110","10001110110","11101110110","11010001110","11000101110","11011101000","11011100010","11011101110","11101011000","11101000110","11100010110","11101101000","11101100010","11100011010","11101111010","11001000010","11110001010","10100110000","10100001100","10010110000","10010000110","10000101100","10000100110","10110010000","10110000100","10011010000","10011000010","10000110100","10000110010","11000010010","11001010000","11110111010","11000010100","10001111010","10100111100","10010111100","10010011110","10111100100","10011110100","10011110010","11110100100","11110010100","11110010010","11011011110","11011110110","11110110110","10101111000","10100011110","10001011110","10111101000","10111100010","11110101000","11110100010","10111011110","10111101110","11101011110","11110101110","11010000100","11010010000","11010011100","11000111010"],getDigit:function(t){var e=" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",n="",i=0,o=0,a=0,s=0,c=0;for(a=0;a1,l="";for(a=0;a<3&&a="0"&&l<="9";i=u?105:104,n=this.encoding[i],a=0;while(a"9"||t.charAt(a+1)<"0"||t.charAt(a+1)>"9")&&(u=!1,n+=this.encoding[100],i+=100*++o);else{s=0;while(a+s="0"&&t.charAt(a+s)<="9")s++;u=s>5||a+s-1==t.length&&s>3,u&&(n+=this.encoding[99],i+=99*++o)}u?(c=r.intval(t.charAt(a)+t.charAt(a+1)),a+=2):(c=e.indexOf(t.charAt(a)),a+=1),n+=this.encoding[c],i+=++o*c}return n+=this.encoding[i%103],n+=this.encoding[106],n+="11",n}},codabar:{encoding:["101010011","101011001","101001011","110010101","101101001","110101001","100101011","100101101","100110101","110100101","101001101","101100101","1101011011","1101101011","1101101101","1011011011","1011001001","1010010011","1001001011","1010011001"],getDigit:function(t){var e,r,n="0123456789-$:/.+",i="",o="0";for(i+=this.encoding[16]+o,e=0;e1558)&&!e)return-1;if((t<1||t>49)&&e)return-1;var r=0;e&&(r=24);while(this.dataCWCount[r]127?(n[i]=235,r-=127,i++):r>=48&&r<=57&&e+1=48&&t.charCodeAt(e+1)<=57?(r=10*(r-48)+(t.charCodeAt(e+1)-48),r+=130,e++):r++,n[i]=r,i++;return n},addPadCW:function(t,e,r){var n,i;if(!(e>=r))for(t[e]=129,i=e+1;i=0;r--)n[r]=this.champGaloisDoub(n[r],e),r>0&&(n[r]=this.champGaloisSum(n[r],n[r-1]));return n},addReedSolomonCW:function(t,e,r,n,i){var o,a,s,c=0,u=t/i,l=new Array;for(s=0;s=0;a--)l[a]=c?this.champGaloisMult(c,e[a]):0,a>0&&(l[a]=this.champGaloisSum(l[a-1],l[a]));for(a=r+s,o=u-1;o>=0;o--)n[a]=l[o],a+=i}return n},getBits:function(t){for(var e=new Array,r=0;r<8;r++)e[r]=t&128>>r?1:0;return e},next:function(t,e,r,n,i,o){var a=0,s=4,c=0;do{s==e&&0==c?(this.patternShapeSpecial1(i,o,n[a],e,r),a++):t<3&&s==e-2&&0==c&&r%4!=0?(this.patternShapeSpecial2(i,o,n[a],e,r),a++):s==e-2&&0==c&&r%8==4?(this.patternShapeSpecial3(i,o,n[a],e,r),a++):s==e+4&&2==c&&r%8==0&&(this.patternShapeSpecial4(i,o,n[a],e,r),a++);do{s=0&&1!=o[s][c]&&(this.patternShapeStandard(i,o,n[a],s,c,e,r),a++),s-=2,c+=2}while(s>=0&&c=0&&c=0);s+=3,c+=1}while(s>=8;return r},cRgb:function(t,e,r){return String.fromCharCode(r)+String.fromCharCode(e)+String.fromCharCode(t)},cHexColor:function(t){var e=parseInt("0x"+t.substr(1)),r=255&e;e>>=8;var n=255&e,i=e>>8;return this.cRgb(i,n,r)}},bitStringTo2DArray:function(t){var e=[];e[0]=[];for(var r=0;r';"transparent"!==t.bgColor&&(p+='');var g,m,v='';"#000000"===t.color&&(v='');for(var y=0;y0&&"1"==m&&(p+=v.replace("&W",(g*l).toFixed(1)).replace("&X",((c-g)*l).toFixed(1)).replace("&Y",(y*h).toFixed(1)))}return t.showHRI&&(p+=''+n+""),p+="",p},digitToSvg:function(t,e,n,i){var o=r.intval(t.barWidth),a=r.intval(t.barHeight);return this.digitToSvgRenderer(t,this.bitStringTo2DArray(e),n,i,o,a)},digitToSvg2D:function(t,e,n,i){var o=r.intval(t.moduleSize);return this.digitToSvgRenderer(t,e,n,i,o,o)}};t.exports=function(t,e,n,i){var o="",a="",s="",c=!0,u=!1,l=!1;if("string"==typeof t?s=t:"object"==typeof t&&(s="string"==typeof t.code?t.code:"",c="undefined"==typeof t.crc||t.crc,u="undefined"!=typeof t.rect&&t.rect),""==s)return!1;for(var h in"undefined"==typeof n&&(n=[]),r.settings)void 0==n[h]&&(n[h]=r.settings[h]);switch(e){case"std25":case"int25":o=r.i25.getDigit(s,c,e),a=r.i25.compute(s,c,e);break;case"ean8":case"ean13":o=r.ean.getDigit(s,e),a=r.ean.compute(s,e);break;case"upc":o=r.upc.getDigit(s),a=r.upc.compute(s);break;case"code11":o=r.code11.getDigit(s),a=s;break;case"code39":o=r.code39.getDigit(s),a=s;break;case"code93":o=r.code93.getDigit(s,c),a=s;break;case"code128":o=r.code128.getDigit(s),a=s;break;case"codabar":o=r.codabar.getDigit(s),a=s;break;case"msi":o=r.msi.getDigit(s,c),a=r.msi.compute(s,c);break;case"datamatrix":o=r.datamatrix.getDigit(s,u),a=s,l=!0;break}if(0==o.length)return!1;!l&&n.addQuietZone&&(o="0000000000"+o+"0000000000");var f="digitTo"+n.output.charAt(0).toUpperCase()+n.output.substr(1)+(l?"2D":"");return"function"==typeof r[f]?r[f](n,o,a,i):void 0}},f201:function(t,e,r){var n=r("e4ae"),i=r("79aa"),o=r("5168")("species");t.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},f7cd:function(t,e,r){},fdef:function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]); \ No newline at end of file diff --git a/src/main/resources/static/js/chunk-5ef850b4.948d484b.js b/src/main/resources/static/js/chunk-5ef850b4.948d484b.js new file mode 100644 index 0000000..ec3158d --- /dev/null +++ b/src/main/resources/static/js/chunk-5ef850b4.948d484b.js @@ -0,0 +1 @@ +(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5ef850b4"],{7901:function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("aplayer",{directives:[{name:"show",rawName:"v-show",value:e.fileList.length>0&&-1!==e.audioIndex,expression:"fileList.length > 0 && audioIndex !== -1"}],ref:"aplayer",attrs:{id:"aplyer",fixed:"",audio:e.fileList},on:{listSwitch:e.updateCover}})},r=[],s=(a("ac4d"),a("8a81"),a("ac6a"),a("c5f6"),{name:"AudioPlayer",data:function(){return{audioInfo:{}}},props:{fileList:Array,audioIndex:Number},methods:{updateCover:function(){var e=this,t=this.$refs.aplayer.currentMusic;this.$http.get("common/audio-info",{params:{url:t.url}}).then((function(t){var a=t.data.data,i=e.$refs.aplayer.$el;i.getElementsByClassName("aplayer-pic")[0].style.backgroundImage="url("+a.cover+")",i.getElementsByClassName("aplayer-list-light")[0].getElementsByClassName("aplayer-list-author")[0].innerHTML=a.artist}))}},watch:{audioIndex:function(){this.fileList.length>0&&-1!==this.audioIndex?(this.$refs.aplayer.play(),this.$refs.aplayer.switch(this.audioIndex)):this.$refs.aplayer.pause()},fileList:function(e){if(0===e.length)this.$refs.aplayer.pause();else{var t=!0,a=!1,i=void 0;try{for(var r,s=this.fileList[Symbol.iterator]();!(t=(r=s.next()).done);t=!0){var l=r.value;l.artist="",l.cover=""}}catch(n){a=!0,i=n}finally{try{t||null==s.return||s.return()}finally{if(a)throw i}}}}},mounted:function(){var e=this.$refs.aplayer.$el;e.getElementsByClassName("aplayer-miniswitcher")[0].click(),e.getElementsByClassName("aplayer-icon-order")[0].setAttribute("title","播放顺序"),e.getElementsByClassName("aplayer-icon-loop")[0].setAttribute("title","循环模式"),e.getElementsByClassName("aplayer-icon-menu")[0].setAttribute("title","播放列表")}}),l=s,n=(a("a710"),a("2877")),o=Object(n["a"])(l,i,r,!1,null,"0d5a77b5",null);t["default"]=o.exports},a710:function(e,t,a){"use strict";var i=a("bc79"),r=a.n(i);r.a},bc79:function(e,t,a){}}]); \ No newline at end of file diff --git a/src/main/resources/static/js/chunk-60db0096.8103337b.js b/src/main/resources/static/js/chunk-60db0096.8103337b.js deleted file mode 100644 index c0d9df6..0000000 --- a/src/main/resources/static/js/chunk-60db0096.8103337b.js +++ /dev/null @@ -1,8 +0,0 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-60db0096"],{"2d9a":function(e,t,n){"use strict";var o=n("ea82"),a=n.n(o);a.a},4127:function(e,t,n){"use strict";var o=n("d233"),a=n("b313"),i={brackets:function(e){return e+"[]"},indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},r=Date.prototype.toISOString,l={delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,serializeDate:function(e){return r.call(e)},skipNulls:!1,strictNullHandling:!1},s=function e(t,n,a,i,r,s,c,u,d,h,f,p){var m=t;if("function"===typeof c)m=c(n,m);else if(m instanceof Date)m=h(m);else if(null===m){if(i)return s&&!p?s(n,l.encoder):n;m=""}if("string"===typeof m||"number"===typeof m||"boolean"===typeof m||o.isBuffer(m)){if(s){var g=p?n:s(n,l.encoder);return[f(g)+"="+f(s(m,l.encoder))]}return[f(n)+"="+f(String(m))]}var v,y=[];if("undefined"===typeof m)return y;if(Array.isArray(c))v=c;else{var b=Object.keys(m);v=u?b.sort(u):b}for(var w=0;w0?I+x:""}},4328:function(e,t,n){"use strict";var o=n("4127"),a=n("9e6a"),i=n("b313");e.exports={formats:i,parse:a,stringify:o}},"8d1d":function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("el-row",[n("el-col",{attrs:{offset:1,"element-loading-text":"保存并初始化中."}},[n("h1",[e._v("驱动器列表")]),n("div",{staticStyle:{"margin-top":"20px"}},[n("el-button",{attrs:{type:"primary",size:"mini"},on:{click:e.addDrive}},[e._v("新增")])],1),n("el-table",{ref:"driveTable",staticStyle:{width:"100%"},attrs:{data:e.driveList,"row-key":"id","highlight-current-row":""}},[n("el-table-column",{attrs:{prop:"id",width:"100",label:"驱动器ID"}}),n("el-table-column",{attrs:{prop:"name",label:"驱动器名称"}}),n("el-table-column",{attrs:{prop:"type",formatter:e.typeFormatter,width:"150",label:"所属策略"}}),n("el-table-column",{attrs:{prop:"enable",width:"150",label:"是否启用"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{on:{change:function(n){return e.switchEnableStatus(t.row)}},model:{value:t.row.enable,callback:function(n){e.$set(t.row,"enable",n)},expression:"scope.row.enable"}})]}}])}),n("el-table-column",{attrs:{prop:"enableCache",width:"150",label:"缓存开启"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{on:{change:function(n){return e.switchCacheEnableStatus(t.row)}},model:{value:t.row.enableCache,callback:function(n){e.$set(t.row,"enableCache",n)},expression:"scope.row.enableCache"}})]}}])}),n("el-table-column",{attrs:{prop:"autoRefreshCache",width:"150",label:"缓存自动刷新"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-switch",{on:{change:function(n){return e.switchAutoRefreshStatus(t.row)}},model:{value:t.row.autoRefreshCache,callback:function(n){e.$set(t.row,"autoRefreshCache",n)},expression:"scope.row.autoRefreshCache"}})]}}])}),n("el-table-column",{attrs:{label:"操作",width:"400"},scopedSlots:e._u([{key:"default",fn:function(t){return[[n("el-button",{staticClass:"el-icon-edit",attrs:{slot:"reference",size:"mini",type:"primary"},on:{click:function(n){return e.editDrive(t.row)}},slot:"reference"},[e._v("编辑")]),n("el-button",{staticClass:"el-icon-s-operation",attrs:{slot:"reference",disabled:!t.row.enableCache,size:"mini",type:"primary"},on:{click:function(n){return e.cacheManage(t.row)}},slot:"reference"},[e._v("缓存管理")]),n("el-button",{staticClass:"el-icon-view",attrs:{size:"mini",type:"primary"},on:{click:function(n){return e.showFilterDialog(t.row)}}},[e._v("文件过滤")]),n("el-button",{staticClass:"el-icon-delete",attrs:{size:"mini",type:"danger"},on:{click:function(n){return e.deleteDrive(t.row)}}},[e._v("删除")])]]}}])})],1),n("el-dialog",{attrs:{width:"80%",title:"驱动器设置",visible:e.driveEditDialogVisible,top:"10vh","destroy-on-close":!0},on:{"update:visible":function(t){e.driveEditDialogVisible=t}}},[n("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],ref:"form",attrs:{"element-loading-text":"保存并初始化中.",id:"siteForm",model:e.driveItem,rules:e.rules,"label-width":"auto","status-icon":!0}},[n("el-row",{attrs:{gutter:50}},[n("el-col",{attrs:{span:12}},[n("el-form-item",{attrs:{label:"驱动器名称",prop:"name"}},[n("el-input",{model:{value:e.driveItem.name,callback:function(t){e.$set(e.driveItem,"name",t)},expression:"driveItem.name"}})],1),n("el-form-item",{attrs:{label:"是否启用"}},[n("el-switch",{model:{value:e.driveItem.enable,callback:function(t){e.$set(e.driveItem,"enable",t)},expression:"driveItem.enable"}}),n("div",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 如不启用,则在前台不展示。\n ")])],1),n("el-form-item",{attrs:{label:"开启缓存"}},[n("el-switch",{model:{value:e.driveItem.enableCache,callback:function(t){e.$set(e.driveItem,"enableCache",t)},expression:"driveItem.enableCache"}}),n("div",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 开启缓存后,N 秒内重复请求相同文件夹,不会重复调用 API。\n ")]),n("div",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 参数 N 在配置文件中设置 {zfile.cache.timeout},默认为 1800 秒。\n ")])],1),n("el-form-item",{attrs:{label:"开启缓存自动刷新"}},[n("el-switch",{model:{value:e.driveItem.autoRefreshCache,callback:function(t){e.$set(e.driveItem,"autoRefreshCache",t)},expression:"driveItem.autoRefreshCache"}}),n("div",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 每隔 N 秒检测到期的缓存, 对于过期缓存尝试调用 API, 重新写入缓存.\n ")]),n("div",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 参数 N 在配置文件中设置 {zfile.cache.auto-refresh-interval},默认为 5 秒。\n ")])],1),n("el-form-item",{attrs:{label:"存储策略",prop:"type"}},[n("el-select",{attrs:{filterable:"",placeholder:"请选择存储策略"},model:{value:e.driveItem.type,callback:function(t){e.$set(e.driveItem,"type",t)},expression:"driveItem.type"}},e._l(e.supportStrategy,(function(e){return n("el-option",{key:e.key,attrs:{label:e.description,value:e.key}})})),1)],1)],1),n("el-col",{attrs:{span:12}},[e._l(e.storageStrategyForm,(function(t){return n("el-form-item",{key:t.title,attrs:{label:t.title,prop:"storageStrategyConfig."+t.key}},["endPoint"===t.key&&e.region.hasOwnProperty(e.driveItem.type)?n("el-select",{model:{value:e.driveItem.storageStrategyConfig.endPoint,callback:function(t){e.$set(e.driveItem.storageStrategyConfig,"endPoint",t)},expression:"driveItem.storageStrategyConfig.endPoint"}},e._l(e.region[e.driveItem.type],(function(e){return n("el-option",{key:e.name,attrs:{label:e.name,value:e.val}})})),1):"pathStyle"===t.key?n("div",[n("el-select",{staticStyle:{width:"50%"},model:{value:e.driveItem.storageStrategyConfig.pathStyle,callback:function(t){e.$set(e.driveItem.storageStrategyConfig,"pathStyle",t)},expression:"driveItem.storageStrategyConfig.pathStyle"}},[n("el-option",{attrs:{label:"bucket-virtual-hosting",value:"bucket-virtual-hosting"}}),n("el-option",{attrs:{label:"path-style",value:"path-style"}})],1),n("el-link",{staticClass:"zfile-word-aux",attrs:{target:"_blank",icon:"el-icon-document",href:"https://docs.aws.amazon.com/zh_cn/AmazonS3/latest/dev/VirtualHosting.html#path-style-access"}},[e._v("查看 S3 API 说明文档")])],1):"isPrivate"===t.key?n("div",[n("el-switch",{model:{value:e.driveItem.storageStrategyConfig.isPrivate,callback:function(t){e.$set(e.driveItem.storageStrategyConfig,"isPrivate",t)},expression:"driveItem.storageStrategyConfig.isPrivate"}}),n("span",{staticClass:"zfile-word-aux"},[e._v("私有空间会生成带签名的下载链接")])],1):n("el-input",{attrs:{placeholder:""},on:{input:function(t){return e.change(t)}},model:{value:e.driveItem.storageStrategyConfig[t.key],callback:function(n){e.$set(e.driveItem.storageStrategyConfig,t.key,n)},expression:"driveItem.storageStrategyConfig[item.key]"}}),"basePath"===t.key?n("div",[n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("基路径表示从哪个路径开始文件, 不填写表示从根开始")])]):e._e(),"filePath"===t.key?n("div",[n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("Linux 或对象存储等需以 / 开头")]),n("br"),n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("Windows 支持 C:/ 类的盘符开头")]),n("br"),n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("结尾不需要加 /")])]):e._e(),"domain"===t.key&&"ftp"===e.driveItem.type?n("div",[n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("此域名表示 http 访问域名,如有端口,也需要写明。")])]):e._e()],1)})),"onedrive"===e.driveItem.type?n("el-form-item",[n("el-link",{attrs:{target:"_blank",icon:"el-icon-edit",href:"https://login.microsoftonline.com/common/oauth2/v2.0/authorize?client_id=09939809-c617-43c8-a220-a93c1513c5d4&response_type=code&redirect_uri=https://zfile.jun6.net/onedrive/callback&scope=offline_access%20User.Read%20Files.ReadWrite.All"}},[e._v("前往获取授权")])],1):e._e(),"onedrive-china"===e.driveItem.type?n("el-form-item",[n("el-link",{attrs:{target:"_blank",icon:"el-icon-edit",href:"https://login.chinacloudapi.cn/common/oauth2/v2.0/authorize?client_id=4a72d927-1907-488d-9eb2-1b465c53c1c5&response_type=code&redirect_uri=https://zfile.jun6.net/onedrive/china-callback&scope=offline_access%20User.Read%20Files.ReadWrite.All"}},[e._v("前往获取授权")])],1):e._e(),"ftp"===e.driveItem.type?n("el-form-item",[n("span",{staticClass:"zfile-word-aux",staticStyle:{margin:"unset"}},[e._v("注意: FTP 协议,如果不填写加速域名 (HTTP 下载地址),则会使用 FTP 协议进行下载")]),n("br"),n("span",{staticClass:"zfile-word-aux",staticStyle:{margin:"unset"}},[e._v("FTP 协议会在 URL 中暴露用户名密码,如:"),n("b",[e._v("ftp://用户名:密码@IP:端口/文件路径/文件名")])]),n("br"),n("span",{staticClass:"zfile-word-aux",staticStyle:{margin:"unset"}},[e._v("如为 FTP 提供了加速域名 (HTTP 下载地址),则会使用 HTTP 协议,如:"),n("b",[e._v("http(s)://加速域名/文件路径/文件名")])])]):e._e()],2)],1)],1),n("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"center"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",disabled:e.loading},on:{click:function(t){return e.submitForm("form")}}},[e._v("保 存")]),n("el-button",{on:{click:function(t){e.driveEditDialogVisible=!1}}},[e._v("取 消")])],1)],1),n("el-dialog",{attrs:{width:"40%",title:"过滤规则",visible:e.filterDialogVisible,top:"10vh","destroy-on-close":!0},on:{"update:visible":function(t){e.filterDialogVisible=t}}},[n("el-form",{ref:"filterForm",staticStyle:{"margin-left":"60px"},attrs:{id:"filterForm",model:e.filterForm,"label-width":"120px"}},[e._l(e.filterForm.filterList,(function(t,o){return n("div",{key:o},[n("el-row",[n("el-col",{attrs:{span:20}},[n("el-form-item",{attrs:{prop:"filterList."+o+".expression",rules:{required:!0,message:"此项不能为空",trigger:"blur"},label:"表达式 "+(o+1)}},[n("el-input",{model:{value:t.expression,callback:function(n){e.$set(t,"expression",n)},expression:"item.expression"}})],1)],1),n("el-col",{attrs:{span:4}},[n("el-button",{attrs:{type:"danger",size:"small",icon:"el-icon-delete"},on:{click:function(t){return e.deleteFilterItem(o)}}},[e._v("删除\n ")])],1)],1)],1)})),n("el-form-item",[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-plus"},on:{click:e.addFilterItem}},[e._v("添加更多\n ")])],1),n("el-form-item",[n("span",{staticClass:"zfile-word-aux",staticStyle:{"margin-left":"0"}},[e._v("\n 表达式规则:\n "),n("br"),e._v("\n *: 单级路径通配符,如表达式 /*.jpg,可以匹配根路径下所有的 jpg 后缀的文件\n "),n("br"),e._v("\n **: 多级路径通配符,如表达式 **.jpg,可以匹配所有路径下的 jpg 后缀的文件\n "),n("br"),e._v("\n 注意:"),n("b",[e._v("/a.png")]),e._v(" 表示根路径下的 a.png。 "),n("b",[e._v("/a/b/c.png")]),e._v(",表示 /a/b/ 路径下的 c.png。 "),n("b",[e._v("a.png")]),e._v(",什么都不表示,因为未标注路径。\n ")])])],2),n("div",{staticClass:"dialog-footer",staticStyle:{"text-align":"right","margin-top":"15px"},attrs:{slot:"footer"},slot:"footer"},[n("el-button",{attrs:{type:"primary",size:"mini",icon:"el-icon-check"},on:{click:e.saveFilterForm}},[e._v("保存")])],1)],1),n("el-dialog",{attrs:{width:"70%",title:"缓存管理",visible:e.cacheManageVisible,top:"10vh","destroy-on-close":!0},on:{"update:visible":function(t){e.cacheManageVisible=t},close:e.closeCacheManage}},[n("el-row",{staticStyle:{"margin-bottom":"20px"},attrs:{gutter:20}},[n("el-col",{attrs:{span:8}},[n("el-card",{attrs:{shadow:"always"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticClass:"card-title"},[e._v("缓存数")]),n("el-button",{staticStyle:{float:"right"},attrs:{size:"mini",round:"",type:"danger"},on:{click:e.clearCache}},[e._v("清理缓存")])],1),n("div",{staticClass:"card-content",domProps:{textContent:e._s(e.driveCacheInfo.cacheCount)}})])],1),n("el-col",{attrs:{span:8}},[n("el-card",{attrs:{shadow:"always"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticClass:"card-title"},[e._v("命中数")])]),n("div",{staticClass:"card-content",domProps:{textContent:e._s(e.driveCacheInfo.hitCount)}})])],1),n("el-col",{attrs:{span:8}},[n("el-card",{attrs:{shadow:"always"}},[n("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[n("span",{staticClass:"card-title"},[e._v("未命中数")])]),n("div",{staticClass:"card-content",domProps:{textContent:e._s(e.driveCacheInfo.missCount)}})])],1)],1),n("el-row",{attrs:{gutter:20}},[n("el-col",{attrs:{span:20}},[n("el-input",{attrs:{placeholder:"输入关键字搜索"},model:{value:e.cacheSearch,callback:function(t){e.cacheSearch=t},expression:"cacheSearch"}})],1),n("el-col",{attrs:{span:4}},[n("el-button",{staticStyle:{float:"right"},attrs:{size:"small",type:"primary"},on:{click:e.refreshCacheManageData}},[e._v("刷新统计信息")])],1)],1),n("el-table",{staticStyle:{width:"100%","overflow-y":"auto"},attrs:{height:"50vh",data:e.driveCacheInfo.cacheKeys.filter((function(t){return!e.cacheSearch||t.name.toLowerCase().includes(e.cacheSearch.toLowerCase())}))}},[n("el-table-column",{attrs:{prop:"name",label:"缓存 Key (文件夹名称)","min-width":"75%"}}),n("el-table-column",{attrs:{"min-width":"25%",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[n("el-button",{attrs:{size:"mini",type:"primary",round:""},on:{click:function(n){return e.refreshCache(t.row)}}},[e._v("刷新缓存")])]}}])})],1)],1)],1)],1)},a=[];n("55dd"),n("7f7f"); -/**! - * Sortable 1.10.2 - * @author RubaXa - * @author owenm - * @license MIT - */ -function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(){return l=Object.assign||function(e){for(var t=1;t=0||(a[n]=e[n]);return a}function u(e,t){if(null==e)return{};var n,o,a=c(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var d="1.10.2";function h(e){if("undefined"!==typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var f=h(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),p=h(/Edge/i),m=h(/firefox/i),g=h(/safari/i)&&!h(/chrome/i)&&!h(/android/i),v=h(/iP(ad|od|hone)/i),y=h(/chrome/i)&&h(/android/i),b={capture:!1,passive:!1};function w(e,t,n){e.addEventListener(t,n,!f&&b)}function C(e,t,n){e.removeEventListener(t,n,!f&&b)}function S(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(n){return!1}return!1}}function _(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function D(e,t,n,o){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&S(e,t):S(e,t))||o&&e===n)return e;if(e===n)break}while(e=_(e))}return null}var E,x=/\s+/g;function I(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(x," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(x," ")}}function k(e,t,n){var o=e&&e.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in o||-1!==t.indexOf("webkit")||(t="-webkit-"+t),o[t]=n+("string"===typeof n?"":"px")}}function T(e,t){var n="";if("string"===typeof e)n=e;else do{var o=k(e,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function O(e,t,n){if(e){var o=e.getElementsByTagName(t),a=0,i=o.length;if(n)for(;a=i:a<=i,!r)return o;if(o===P())break;o=L(o,!1)}return!1}function N(e,t,n){var o=0,a=0,i=e.children;while(a2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,a=u(n,["evt"]);J.pluginEvent.bind(Ke)(e,t,s({dragEl:ne,parentEl:oe,ghostEl:ae,rootEl:ie,nextEl:re,lastDownEl:le,cloneEl:se,cloneHidden:ce,dragStarted:Se,putSortable:me,activeSortable:Ke.active,originalEvent:o,oldIndex:ue,oldDraggableIndex:he,newIndex:de,newDraggableIndex:fe,hideGhostForTarget:He,unhideGhostForTarget:Be,cloneNowHidden:function(){ce=!0},cloneNowShown:function(){ce=!1},dispatchSortableEvent:function(e){te({sortable:t,name:e,originalEvent:o})}},a))};function te(e){Z(s({putSortable:me,cloneEl:se,targetEl:ne,rootEl:ie,oldIndex:ue,oldDraggableIndex:he,newIndex:de,newDraggableIndex:fe},e))}var ne,oe,ae,ie,re,le,se,ce,ue,de,he,fe,pe,me,ge,ve,ye,be,we,Ce,Se,_e,De,Ee,xe,Ie=!1,ke=!1,Te=[],Oe=!1,Pe=!1,Ae=[],Me=!1,Ne=[],je="undefined"!==typeof document,Fe=v,Re=p||f?"cssFloat":"float",ze=je&&!y&&!v&&"draggable"in document.createElement("div"),Le=function(){if(je){if(f)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}}(),qe=function(e,t){var n=k(e),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),a=N(e,0,t),i=N(e,1,t),r=a&&k(a),l=i&&k(i),s=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+A(a).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+A(i).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(a&&r["float"]&&"none"!==r["float"]){var u="left"===r["float"]?"left":"right";return!i||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return a&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||s>=o&&"none"===n[Re]||i&&"none"===n[Re]&&s+c>o)?"vertical":"horizontal"},$e=function(e,t,n){var o=n?e.left:e.top,a=n?e.right:e.bottom,i=n?e.width:e.height,r=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return o===r||a===l||o+i/2===r+s/2},Xe=function(e,t){var n;return Te.some((function(o){if(!j(o)){var a=A(o),i=o[V].options.emptyInsertThreshold,r=e>=a.left-i&&e<=a.right+i,l=t>=a.top-i&&t<=a.bottom+i;return i&&r&&l?n=o:void 0}})),n},Ye=function(e){function t(e,n){return function(o,a,i,r){var l=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"===typeof e)return t(e(o,a,i,r),n)(o,a,i,r);var s=(n?o:a).options.group.name;return!0===e||"string"===typeof e&&e===s||e.join&&e.indexOf(s)>-1}}var n={},o=e.group;o&&"object"==i(o)||(o={name:o}),n.name=o.name,n.checkPull=t(o.pull,!0),n.checkPut=t(o.put),n.revertClone=o.revertClone,e.group=n},He=function(){!Le&&ae&&k(ae,"display","none")},Be=function(){!Le&&ae&&k(ae,"display","")};je&&document.addEventListener("click",(function(e){if(ke)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ke=!1,!1}),!0);var Ve=function(e){if(ne){e=e.touches?e.touches[0]:e;var t=Xe(e.clientX,e.clientY);if(t){var n={};for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[V]._onDragOver(n)}}},We=function(e){ne&&ne.parentNode[V]._isOutsideThisEl(e.target)};function Ke(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=l({},t),e[V]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return qe(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Ke.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var o in J.initializePlugins(this,e,n),n)!(o in t)&&(t[o]=n[o]);for(var a in Ye(t),this)"_"===a.charAt(0)&&"function"===typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!t.forceFallback&&ze,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?w(e,"pointerdown",this._onTapStart):(w(e,"mousedown",this._onTapStart),w(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(e,"dragover",this),w(e,"dragenter",this)),Te.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),l(this,W())}function Ue(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Ge(e,t,n,o,a,i,r,l){var s,c,u=e[V],d=u.options.onMove;return!window.CustomEvent||f||p?(s=document.createEvent("Event"),s.initEvent("move",!0,!0)):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=t,s.from=e,s.dragged=n,s.draggedRect=o,s.related=a||t,s.relatedRect=i||A(t),s.willInsertAfter=l,s.originalEvent=r,e.dispatchEvent(s),d&&(c=d.call(u,s,r)),c}function Qe(e){e.draggable=!1}function Je(){Me=!1}function Ze(e,t,n){var o=A(j(n.el,n.options.draggable)),a=10;return t?e.clientX>o.right+a||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+a}function et(e,t,n,o,a,i,r,l){var s=o?e.clientY:e.clientX,c=o?n.height:n.width,u=o?n.top:n.left,d=o?n.bottom:n.right,h=!1;if(!r)if(l&&Eeu+c*i/2:sd-Ee)return-De}else if(s>u+c*(1-a)/2&&sd-c*i/2)?s>u+c/2?1:-1:0}function tt(e){return F(ne)=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){ne&&Qe(ne),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,t?"touchmove":"mousemove",this._onTouchMove):(w(ne,"dragend",this),w(ie,"dragstart",this._onDragStart));try{document.selection?at((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(e,t){if(Ie=!1,ie&&ne){ee("dragStarted",this,{evt:t}),this.nativeDraggable&&w(document,"dragover",We);var n=this.options;!e&&I(ne,n.dragClass,!1),I(ne,n.ghostClass,!0),Ke.active=this,e&&this._appendGhost(),te({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ve){this._lastX=ve.clientX,this._lastY=ve.clientY,He();var e=document.elementFromPoint(ve.clientX,ve.clientY),t=e;while(e&&e.shadowRoot){if(e=e.shadowRoot.elementFromPoint(ve.clientX,ve.clientY),e===t)break;t=e}if(ne.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]){var n=void 0;if(n=t[V]._onDragOver({clientX:ve.clientX,clientY:ve.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Be()}},_onTouchMove:function(e){if(ge){var t=this.options,n=t.fallbackTolerance,o=t.fallbackOffset,a=e.touches?e.touches[0]:e,i=ae&&T(ae,!0),r=ae&&i&&i.a,l=ae&&i&&i.d,s=Fe&&xe&&R(xe),c=(a.clientX-ge.clientX+o.x)/(r||1)+(s?s[0]-Ae[0]:0)/(r||1),u=(a.clientY-ge.clientY+o.y)/(l||1)+(s?s[1]-Ae[1]:0)/(l||1);if(!Ke.active&&!Ie){if(n&&Math.max(Math.abs(a.clientX-this._lastX),Math.abs(a.clientY-this._lastY))=0&&(te({rootEl:oe,name:"add",toEl:oe,fromEl:ie,originalEvent:e}),te({sortable:this,name:"remove",toEl:oe,originalEvent:e}),te({rootEl:oe,name:"sort",toEl:oe,fromEl:ie,originalEvent:e}),te({sortable:this,name:"sort",toEl:oe,originalEvent:e})),me&&me.save()):de!==ue&&de>=0&&(te({sortable:this,name:"update",toEl:oe,originalEvent:e}),te({sortable:this,name:"sort",toEl:oe,originalEvent:e})),Ke.active&&(null!=de&&-1!==de||(de=ue,fe=he),te({sortable:this,name:"end",toEl:oe,originalEvent:e}),this.save()))),this._nulling())},_nulling:function(){ee("nulling",this),ie=ne=oe=ae=re=se=le=ce=ge=ve=Se=de=fe=ue=he=_e=De=me=pe=Ke.dragged=Ke.ghost=Ke.clone=Ke.active=null,Ne.forEach((function(e){e.checked=!0})),Ne.length=ye=be=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":ne&&(this._onDragOver(e),Ue(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e,t=[],n=this.el.children,o=0,a=n.length,i=this.options;o=0;--a){var i,r=e[a];if("[]"===r)i=[],i=i.concat(o);else{i=n.plainObjects?Object.create(null):{};var l="["===r.charAt(0)&&"]"===r.charAt(r.length-1)?r.slice(1,-1):r,s=parseInt(l,10);!isNaN(s)&&r!==l&&String(s)===l&&s>=0&&n.parseArrays&&s<=n.arrayLimit?(i=[],i[s]=o):i[l]=o}o=i}return o},s=function(e,t,n){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,r=/(\[[^[\]]*])/g,s=i.exec(o),c=s?o.slice(0,s.index):o,u=[];if(c){if(!n.plainObjects&&a.call(Object.prototype,c)&&!n.allowPrototypes)return;u.push(c)}var d=0;while(null!==(s=r.exec(o))&&d=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?n+=t.charAt(o):i<128?n+=a[i]:i<2048?n+=a[192|i>>6]+a[128|63&i]:i<55296||i>=57344?n+=a[224|i>>12]+a[128|i>>6&63]+a[128|63&i]:(o+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(o)),n+=a[240|i>>18]+a[128|i>>12&63]+a[128|i>>6&63]+a[128|63&i])}return n},d=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;ot(e)).join("");return n}function r(e){const n={begin:/<\/?[A-Za-z_]/,end:">",subLanguage:"xml",relevance:0},t={begin:"^[-\\*]{3,}",end:"$"},r={className:"code",variants:[{begin:"(`{3,})[^`](.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})[^~](.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},i={className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},a={begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]},l=/[A-Za-z][A-Za-z0-9+.-]*/,o={variants:[{begin:/\[.+?\]\[.*?\]/,relevance:0},{begin:/\[.+?\]\(((data|javascript|mailto):|(?:http|ftp)s?:\/\/).*?\)/,relevance:2},{begin:s(/\[.+?\]\(/,l,/:\/\/.*?\)/),relevance:2},{begin:/\[.+?\]\([./?&#].*?\)/,relevance:1},{begin:/\[.+?\]\(.*?\)/,relevance:0}],returnBegin:!0,contains:[{className:"string",relevance:0,begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0},{className:"link",relevance:0,begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",relevance:0,begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}]},c={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},u={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};c.contains.push(u),u.contains.push(c);let g=[n,o];c.contains=c.contains.concat(g),u.contains=u.contains.concat(g),g=g.concat(c,u);const d={className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:g},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:g}]}]},h={className:"quote",begin:"^>\\s+",contains:g,end:"$"};return{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[d,n,i,c,u,h,r,t,o,a]}}e.exports=r},"0e54":function(e,n,t){(function(n){(function(n){"use strict";var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:/^ {0,3}(`{3,}|~{3,})([^`~\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6}) +([^\n]*?)(?: +#+)? *(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?\\?>\\n*|\\n*|\\n*|)[\\s\\S]*?(?:\\n{2,}|$)|<(?!script|pre|style)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:\\n{2,}|$))",def:/^ {0,3}\[(label)\]: *\n? *]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:m,table:m,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html)[^\n]+)*)/,text:/^[^\n]+/};function s(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||N.defaults,this.rules=t.normal,this.options.pedantic?this.rules=t.pedantic:this.options.gfm&&(this.rules=t.gfm)}t._label=/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/,t.def=d(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d{1,9}\.)/,t.item=/^( *)(bull) ?[^\n]*(?:\n(?!\1bull ?)[^\n]*)*/,t.item=d(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=d(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",t._comment=//,t.html=d(t.html,"i").replace("comment",t._comment).replace("tag",t._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),t.paragraph=d(t._paragraph).replace("hr",t.hr).replace("heading"," {0,3}#{1,6} +").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}|~{3,})[^`\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|!--)").replace("tag",t._tag).getRegex(),t.blockquote=d(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=_({},t),t.gfm=_({},t.normal,{nptable:/^ *([^|\n ].*\|.*)\n *([-:]+ *\|[-| :]*)(?:\n((?:.*[^>\n ].*(?:\n|$))*)\n*|$)/,table:/^ *\|(.+)\n *\|?( *[-:]+[-| :]*)(?:\n((?: *[^>\n ].*(?:\n|$))*)\n*|$)/}),t.pedantic=_({},t.normal,{html:d("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",t._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/,fences:m,paragraph:d(t.normal._paragraph).replace("hr",t.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",t.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()}),s.rules=t,s.lex=function(e,n){var t=new s(n);return t.lex(e)},s.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},s.prototype.token=function(e,n){var s,r,i,a,l,o,c,g,d,h,p,b,f,m,_,y;e=e.replace(/^ +$/gm,"");while(e)if((i=this.rules.newline.exec(e))&&(e=e.substring(i[0].length),i[0].length>1&&this.tokens.push({type:"space"})),i=this.rules.code.exec(e)){var w=this.tokens[this.tokens.length-1];e=e.substring(i[0].length),w&&"paragraph"===w.type?w.text+="\n"+i[0].trimRight():(i=i[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",codeBlockStyle:"indented",text:this.options.pedantic?i:x(i,"\n")}))}else if(i=this.rules.fences.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"code",lang:i[2]?i[2].trim():i[2],text:i[3]||""});else if(i=this.rules.heading.exec(e))e=e.substring(i[0].length),this.tokens.push({type:"heading",depth:i[1].length,text:i[2]});else if((i=this.rules.nptable.exec(e))&&(o={type:"table",header:E(i[1].replace(/^ *| *\| *$/g,"")),align:i[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:i[3]?i[3].replace(/\n$/,"").split("\n"):[]},o.header.length===o.align.length)){for(e=e.substring(i[0].length),p=0;p ?/gm,""),this.token(i,n),this.tokens.push({type:"blockquote_end"});else if(i=this.rules.list.exec(e)){for(e=e.substring(i[0].length),a=i[2],m=a.length>1,c={type:"list_start",ordered:m,start:m?+a:"",loose:!1},this.tokens.push(c),i=i[0].match(this.rules.item),g=[],s=!1,f=i.length,p=0;p1?1===l.length:l.length>1||this.options.smartLists&&l!==a)&&(e=i.slice(p+1).join("\n")+e,p=f-1)),r=s||/\n\n(?!\s*$)/.test(o),p!==f-1&&(s="\n"===o.charAt(o.length-1),r||(r=s)),r&&(c.loose=!0),_=/^\[[ xX]\] /.test(o),y=void 0,_&&(y=" "!==o[1],o=o.replace(/^\[[ xX]\] +/,"")),d={type:"list_item_start",task:_,checked:y,loose:r},g.push(d),this.tokens.push(d),this.token(o,!1),this.tokens.push({type:"list_item_end"});if(c.loose)for(f=g.length,p=0;p?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:m,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,strong:/^__([^\s_])__(?!_)|^\*\*([^\s*])\*\*(?!\*)|^__([^\s][\s\S]*?[^\s])__(?!_)|^\*\*([^\s][\s\S]*?[^\s])\*\*(?!\*)/,em:/^_([^\s_])_(?!_)|^\*([^\s*<\[])\*(?!\*)|^_([^\s<][\s\S]*?[^\s_])_(?!_|[^\spunctuation])|^_([^\s_<][\s\S]*?[^\s])_(?!_|[^\spunctuation])|^\*([^\s<"][\s\S]*?[^\s\*])\*(?!\*|[^\spunctuation])|^\*([^\s*"<\[][\s\S]*?[^\s])\*(?!\*)/,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:m,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\?@\\[^_{|}~",r.em=d(r.em).replace(/punctuation/g,r._punctuation).getRegex(),r._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,r._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,r.autolink=d(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex(),r._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,r.tag=d(r.tag).replace("comment",t._comment).replace("attribute",r._attribute).getRegex(),r._label=/(?:\[[^\[\]]*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,r._href=/<(?:\\[<>]?|[^\s<>\\])*>|[^\s\x00-\x1f]*/,r._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,r.link=d(r.link).replace("label",r._label).replace("href",r._href).replace("title",r._title).getRegex(),r.reflink=d(r.reflink).replace("label",r._label).getRegex(),r.normal=_({},r),r.pedantic=_({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/,link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",r._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",r._label).getRegex()}),r.gfm=_({},r.normal,{escape:d(r.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~+(?=\S)([\s\S]*?\S)~+/,text:/^(`+|[^`])(?:[\s\S]*?(?:(?=[\\/i.test(a[0])&&(this.inLink=!1),!this.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(a[0])?this.inRawBlock=!0:this.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(a[0])&&(this.inRawBlock=!1),e=e.substring(a[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0];else if(a=this.rules.link.exec(e)){var c=y(a[2],"()");if(c>-1){var g=4+a[1].length+c;a[2]=a[2].substring(0,c),a[0]=a[0].substring(0,g).trim(),a[3]=""}e=e.substring(a[0].length),this.inLink=!0,s=a[2],this.options.pedantic?(n=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(s),n?(s=n[1],r=n[3]):r=""):r=a[3]?a[3].slice(1,-1):"",s=s.trim().replace(/^<([\s\S]*)>$/,"$1"),o+=this.outputLink(a,{href:i.escapes(s),title:i.escapes(r)}),this.inLink=!1}else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),n=(a[2]||a[1]).replace(/\s+/g," "),n=this.links[n.toLowerCase()],!n||!n.href){o+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(a,n),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),o+=this.renderer.strong(this.output(a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),o+=this.renderer.em(this.output(a[6]||a[5]||a[4]||a[3]||a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),o+=this.renderer.codespan(u(a[2].trim(),!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),o+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),o+=this.renderer.del(this.output(a[1]));else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(t=u(this.mangle(a[1])),s="mailto:"+t):(t=u(a[1]),s=t),o+=this.renderer.link(s,null,t);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.inRawBlock?o+=this.renderer.text(this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):u(a[0]):a[0]):o+=this.renderer.text(u(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else{if("@"===a[2])t=u(a[0]),s="mailto:"+t;else{do{l=a[0],a[0]=this.rules._backpedal.exec(a[0])[0]}while(l!==a[0]);t=u(a[0]),s="www."===a[1]?"http://"+t:t}e=e.substring(a[0].length),o+=this.renderer.link(s,null,t)}return o},i.escapes=function(e){return e?e.replace(i.rules._escapes,"$1"):e},i.prototype.outputLink=function(e,n){var t=n.href,s=n.title?u(n.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(t,s,this.output(e[1])):this.renderer.image(t,s,u(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var n,t="",s=e.length,r=0;r.5&&(n="x"+n.toString(16)),t+="&#"+n+";";return t},a.prototype.code=function(e,n,t){var s=(n||"").match(/\S*/)[0];if(this.options.highlight){var r=this.options.highlight(e,s);null!=r&&r!==e&&(t=!0,e=r)}return s?'
    '+(t?e:u(e,!0))+"
    \n":"
    "+(t?e:u(e,!0))+"
    "},a.prototype.blockquote=function(e){return"
    \n"+e+"
    \n"},a.prototype.html=function(e){return e},a.prototype.heading=function(e,n,t,s){return this.options.headerIds?"'+e+"\n":""+e+"\n"},a.prototype.hr=function(){return this.options.xhtml?"
    \n":"
    \n"},a.prototype.list=function(e,n,t){var s=n?"ol":"ul",r=n&&1!==t?' start="'+t+'"':"";return"<"+s+r+">\n"+e+"\n"},a.prototype.listitem=function(e){return"
  • "+e+"
  • \n"},a.prototype.checkbox=function(e){return" "},a.prototype.paragraph=function(e){return"

    "+e+"

    \n"},a.prototype.table=function(e,n){return n&&(n=""+n+""),"\n\n"+e+"\n"+n+"
    \n"},a.prototype.tablerow=function(e){return"\n"+e+"\n"},a.prototype.tablecell=function(e,n){var t=n.header?"th":"td",s=n.align?"<"+t+' align="'+n.align+'">':"<"+t+">";return s+e+"\n"},a.prototype.strong=function(e){return""+e+""},a.prototype.em=function(e){return""+e+""},a.prototype.codespan=function(e){return""+e+""},a.prototype.br=function(){return this.options.xhtml?"
    ":"
    "},a.prototype.del=function(e){return""+e+""},a.prototype.link=function(e,n,t){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return t;var s='
    ",s},a.prototype.image=function(e,n,t){if(e=h(this.options.sanitize,this.options.baseUrl,e),null===e)return t;var s=''+t+'":">",s},a.prototype.text=function(e){return e},l.prototype.strong=l.prototype.em=l.prototype.codespan=l.prototype.del=l.prototype.text=function(e){return e},l.prototype.link=l.prototype.image=function(e,n,t){return""+t},l.prototype.br=function(){return""},o.parse=function(e,n){var t=new o(n);return t.parse(e)},o.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,_({},this.options,{renderer:new l})),this.tokens=e.reverse();var n="";while(this.next())n+=this.tok();return n},o.prototype.next=function(){return this.token=this.tokens.pop(),this.token},o.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},o.prototype.parseText=function(){var e=this.token.text;while("text"===this.peek().type)e+="\n"+this.next().text;return this.inline.output(e)},o.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,g(this.inlineText.output(this.token.text)),this.slugger);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,n,t,s,r="",i="";for(t="",e=0;e?@[\]^`{|}~]/g,"").replace(/\s/g,"-");if(this.seen.hasOwnProperty(n)){var t=n;do{this.seen[t]++,n=t+"-"+this.seen[t]}while(this.seen.hasOwnProperty(n))}return this.seen[n]=0,n},u.escapeTest=/[&<>"']/,u.escapeReplace=/[&<>"']/g,u.replacements={"&":"&","<":"<",">":">",'"':""","'":"'"},u.escapeTestNoEncode=/[<>"']|&(?!#?\w+;)/,u.escapeReplaceNoEncode=/[<>"']|&(?!#?\w+;)/g;var b={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function m(){}function _(e){for(var n,t,s=1;s=0&&"\\"===t[r])s=!s;return s?"|":" |"})),s=t.split(/ \|/),r=0;if(s.length>n)s.splice(n);else while(s.lengthAn error occurred:

    "+u(g.message+"",!0)+"
    ";throw g}}m.exec=m,N.options=N.setOptions=function(e){return _(N.defaults,e),N},N.getDefaults=function(){return{baseUrl:null,breaks:!1,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:new a,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,xhtml:!1}},N.defaults=N.getDefaults(),N.Parser=o,N.parser=o.parse,N.Renderer=a,N.TextRenderer=l,N.Lexer=s,N.lexer=s.lex,N.InlineLexer=i,N.inlineLexer=i.output,N.Slugger=c,N.parse=N,e.exports=N})(this||"undefined"!==typeof window&&window)}).call(this,t("c8ba"))},1020:function(e,n){function t(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw new Error("map is read-only")}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw new Error("set is read-only")}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(n){var s=e[n];"object"!=typeof s||Object.isFrozen(s)||t(s)})),e}var s=t,r=t;s.default=r;class i{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function a(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function l(e,...n){const t=Object.create(null);for(const s in e)t[s]=e[s];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}const o="",c=e=>{return!!e.kind};class u{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){c(e)&&(this.buffer+=o)}value(){return this.buffer}span(e){this.buffer+=``}}class g{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){while(this.closeNode());}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"===typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),e}static _collapse(e){"string"!==typeof e&&e.children&&(e.children.every(e=>"string"===typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{g._collapse(e)}))}}class d extends g{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){const e=new u(this,this.options);return e.value()}finalize(){return!0}}function h(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function p(e){return e?"string"===typeof e?e:e.source:null}function b(...e){const n=e.map(e=>p(e)).join("");return n}function f(...e){const n="("+e.map(e=>p(e)).join("|")+")";return n}function m(e){return new RegExp(e.toString()+"|").exec("").length-1}function _(e,n){const t=e&&e.exec(n);return t&&0===t.index}function E(e,n="|"){const t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;let s=0,r="";for(let i=0;i0&&(r+=n),r+="(";while(l.length>0){const e=t.exec(l);if(null==e){r+=l;break}r+=l.substring(0,e.index),l=l.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?r+="\\"+String(Number(e[1])+a):(r+=e[0],"("===e[0]&&s++)}r+=")"}return r}const x="[a-zA-Z]\\w*",y="[a-zA-Z_]\\w*",w="\\b\\d+(\\.\\d+)?",N="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",k="\\b(0b[01]+)",v="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",R=(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=b(n,/.*\b/,e.binary,/\b.*/)),l({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},S={begin:"\\\\[\\s\\S]",relevance:0},O={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[S]},A={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[S]},M={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},T=function(e,n,t={}){const s=l({className:"comment",begin:e,end:n,contains:[]},t);return s.contains.push(M),s.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),s},C=T("//","$"),I=T("/\\*","\\*/"),$=T("#","$"),D={className:"number",begin:w,relevance:0},L={className:"number",begin:N,relevance:0},B={className:"number",begin:k,relevance:0},P={className:"number",begin:w+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},z={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[S,{begin:/\[/,end:/\]/,relevance:0,contains:[S]}]}]},j={className:"title",begin:x,relevance:0},U={className:"title",begin:y,relevance:0},Z={begin:"\\.\\s*"+y,relevance:0},H=function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})};var F=Object.freeze({__proto__:null,IDENT_RE:x,UNDERSCORE_IDENT_RE:y,NUMBER_RE:w,C_NUMBER_RE:N,BINARY_NUMBER_RE:k,RE_STARTERS_RE:v,SHEBANG:R,BACKSLASH_ESCAPE:S,APOS_STRING_MODE:O,QUOTE_STRING_MODE:A,PHRASAL_WORDS_MODE:M,COMMENT:T,C_LINE_COMMENT_MODE:C,C_BLOCK_COMMENT_MODE:I,HASH_COMMENT_MODE:$,NUMBER_MODE:D,C_NUMBER_MODE:L,BINARY_NUMBER_MODE:B,CSS_NUMBER_MODE:P,REGEXP_MODE:z,TITLE_MODE:j,UNDERSCORE_TITLE_MODE:U,METHOD_GUARD:Z,END_SAME_AS_BEGIN:H});function K(e,n){const t=e.input[e.index-1];"."===t&&n.ignoreMatch()}function G(e,n){n&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",e.__beforeBegin=K,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords)}function q(e,n){Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function Q(e,n){if(e.match){if(e.begin||e.end)throw new Error("begin & end are not supported with match");e.begin=e.match,delete e.match}}function W(e,n){void 0===e.relevance&&(e.relevance=1)}const X=["of","and","for","in","not","or","if","then","parent","list","value"];function J(e,n){const t={};return"string"===typeof e?s("keyword",e):Object.keys(e).forEach((function(n){s(n,e[n])})),t;function s(e,s){n&&(s=s.toLowerCase()),s.split(" ").forEach((function(n){const s=n.split("|");t[s[0]]=[e,V(s[0],s[1])]}))}}function V(e,n){return n?Number(n):Y(e)?0:1}function Y(e){return X.includes(e.toLowerCase())}function ee(e,{plugins:n}){function t(n,t){return new RegExp(p(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class s{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=m(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=t(E(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),s=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,s)}}class r{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new s;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&this.considerAll()),t}}function i(e){const n=new r;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminatorEnd&&n.addRule(e.terminatorEnd,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}function a(n,s){const r=n;if(n.compiled)return r;[Q].forEach(e=>e(n,s)),e.compilerExtensions.forEach(e=>e(n,s)),n.__beforeBegin=null,[G,q,W].forEach(e=>e(n,s)),n.compiled=!0;let l=null;if("object"===typeof n.keywords&&(l=n.keywords.$pattern,delete n.keywords.$pattern),n.keywords&&(n.keywords=J(n.keywords,e.case_insensitive)),n.lexemes&&l)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l=l||n.lexemes||/\w+/,r.keywordPatternRe=t(l,!0),s&&(n.begin||(n.begin=/\B|\b/),r.beginRe=t(n.begin),n.endSameAsBegin&&(n.end=n.begin),n.end||n.endsWithParent||(n.end=/\B|\b/),n.end&&(r.endRe=t(n.end)),r.terminatorEnd=p(n.end)||"",n.endsWithParent&&s.terminatorEnd&&(r.terminatorEnd+=(n.end?"|":"")+s.terminatorEnd)),n.illegal&&(r.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map((function(e){return te("self"===e?n:e)}))),n.contains.forEach((function(e){a(e,r)})),n.starts&&a(n.starts,s),r.matcher=i(r),r}if(e.compilerExtensions||(e.compilerExtensions=[]),e.contains&&e.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=l(e.classNameAliases||{}),a(e)}function ne(e){return!!e&&(e.endsWithParent||ne(e.starts))}function te(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map((function(n){return l(e,{variants:null},n)}))),e.cachedVariants?e.cachedVariants:ne(e)?l(e,{starts:e.starts?l(e.starts):null}):Object.isFrozen(e)?l(e):e}var se="10.5.0";function re(e){return Boolean(e||""===e)}function ie(e){const n={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let n={};return this.autoDetect?(n=e.highlightAuto(this.code),this.detectedLanguage=n.language):(n=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),n.value},autoDetect(){return!this.language||re(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},t={install(e){e.component("highlightjs",n)}};return{Component:n,VuePlugin:t}}const ae={"after:highlightBlock":({block:e,result:n,text:t})=>{const s=oe(e);if(!s.length)return;const r=document.createElement("div");r.innerHTML=n.value,n.value=ce(s,oe(r),t)}};function le(e){return e.nodeName.toLowerCase()}function oe(e){const n=[];return function e(t,s){for(let r=t.firstChild;r;r=r.nextSibling)3===r.nodeType?s+=r.nodeValue.length:1===r.nodeType&&(n.push({event:"start",offset:s,node:r}),s=e(r,s),le(r).match(/br|hr|img|input/)||n.push({event:"stop",offset:s,node:r}));return s}(e,0),n}function ce(e,n,t){let s=0,r="";const i=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function c(e){r+=""}function u(e){("start"===e.event?o:c)(e.node)}while(e.length||n.length){let n=l();if(r+=a(t.substring(s,n[0].offset)),s=n[0].offset,n===e){i.reverse().forEach(c);do{u(n.splice(0,1)[0]),n=l()}while(n===e&&n.length&&n[0].offset===s);i.reverse().forEach(o)}else"start"===n[0].event?i.push(n[0].node):i.pop(),u(n.splice(0,1)[0])}return r+a(t.substr(s))}const ue=e=>{console.error(e)},ge=(e,...n)=>{console.log(`WARN: ${e}`,...n)},de=(e,n)=>{console.log(`Deprecated as of ${e}. ${n}`)},he=a,pe=l,be=Symbol("nomatch"),fe=function(e){const n=Object.create(null),t=Object.create(null),r=[];let a=!0;const l=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",c={disableAutodetect:!0,name:"Plain text",contains:[]};let u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:d};function g(e){return u.noHighlightRe.test(e)}function p(e){let n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=u.languageDetectRe.exec(n);if(t){const n=C(t[1]);return n||(ge(o.replace("{}",t[1])),ge("Falling back to no-highlight mode for this block.",e)),n?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>g(e)||C(e))}function b(e,n,t,s){const r={code:n,language:e};L("before:highlight",r);const i=r.result?r.result:f(r.language,r.code,t,s);return i.code=r.code,L("after:highlight",i),i}function f(e,t,s,l){const c=t;function g(e,n){const t=S.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function d(){if(!M.keywords)return void I.addText($);let e=0;M.keywordPatternRe.lastIndex=0;let n=M.keywordPatternRe.exec($),t="";while(n){t+=$.substring(e,n.index);const s=g(M,n);if(s){const[e,r]=s;I.addText(t),t="",D+=r;const i=S.classNameAliases[e]||e;I.addKeyword(n[0],i)}else t+=n[0];e=M.keywordPatternRe.lastIndex,n=M.keywordPatternRe.exec($)}t+=$.substr(e),I.addText(t)}function p(){if(""===$)return;let e=null;if("string"===typeof M.subLanguage){if(!n[M.subLanguage])return void I.addText($);e=f(M.subLanguage,$,!0,T[M.subLanguage]),T[M.subLanguage]=e.top}else e=E($,M.subLanguage.length?M.subLanguage:null);M.relevance>0&&(D+=e.relevance),I.addSublanguage(e.emitter,e.language)}function b(){null!=M.subLanguage?p():d(),$=""}function m(e){return e.className&&I.openNode(S.classNameAliases[e.className]||e.className),M=Object.create(e,{parent:{value:M}}),M}function x(e,n,t){let s=_(e.endRe,t);if(s){if(e["on:end"]){const t=new i(e);e["on:end"](n,t),t.ignore&&(s=!1)}if(s){while(e.endsParent&&e.parent)e=e.parent;return e}}if(e.endsWithParent)return x(e.parent,n,t)}function y(e){return 0===M.matcher.regexIndex?($+=e[0],1):(P=!0,0)}function w(e){const n=e[0],t=e.rule,s=new i(t),r=[t.__beforeBegin,t["on:begin"]];for(const i of r)if(i&&(i(e,s),s.ignore))return y(n);return t&&t.endSameAsBegin&&(t.endRe=h(n)),t.skip?$+=n:(t.excludeBegin&&($+=n),b(),t.returnBegin||t.excludeBegin||($=n)),m(t),t.returnBegin?0:n.length}function N(e){const n=e[0],t=c.substr(e.index),s=x(M,e,t);if(!s)return be;const r=M;r.skip?$+=n:(r.returnEnd||r.excludeEnd||($+=n),b(),r.excludeEnd&&($=n));do{M.className&&I.closeNode(),M.skip||M.subLanguage||(D+=M.relevance),M=M.parent}while(M!==s.parent);return s.starts&&(s.endSameAsBegin&&(s.starts.endRe=s.endRe),m(s.starts)),r.returnEnd?0:n.length}function k(){const e=[];for(let n=M;n!==S;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>I.openNode(e))}let v={};function R(n,t){const r=t&&t[0];if($+=n,null==r)return b(),0;if("begin"===v.type&&"end"===t.type&&v.index===t.index&&""===r){if($+=c.slice(t.index,t.index+1),!a){const n=new Error("0 width match regex");throw n.languageName=e,n.badRule=v.rule,n}return 1}if(v=t,"begin"===t.type)return w(t);if("illegal"===t.type&&!s){const e=new Error('Illegal lexeme "'+r+'" for mode "'+(M.className||"")+'"');throw e.mode=M,e}if("end"===t.type){const e=N(t);if(e!==be)return e}if("illegal"===t.type&&""===r)return 1;if(B>1e5&&B>3*t.index){const e=new Error("potential infinite loop, way more iterations than matches");throw e}return $+=r,r.length}const S=C(e);if(!S)throw ue(o.replace("{}",e)),new Error('Unknown language: "'+e+'"');const O=ee(S,{plugins:r});let A="",M=l||O;const T={},I=new u.__emitter(u);k();let $="",D=0,L=0,B=0,P=!1;try{for(M.matcher.considerAll();;){B++,P?P=!1:M.matcher.considerAll(),M.matcher.lastIndex=L;const e=M.matcher.exec(c);if(!e)break;const n=c.substring(L,e.index),t=R(n,e);L=e.index+t}return R(c.substr(L)),I.closeAllNodes(),I.finalize(),A=I.toHTML(),{relevance:D,value:A,language:e,illegal:!1,emitter:I,top:M}}catch(z){if(z.message&&z.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:z.message,context:c.slice(L-100,L+100),mode:z.mode},sofar:A,relevance:0,value:he(c),emitter:I};if(a)return{illegal:!1,relevance:0,value:he(c),emitter:I,language:e,top:M,errorRaised:z};throw z}}function m(e){const n={relevance:0,emitter:new u.__emitter(u),value:he(e),illegal:!1,top:c};return n.emitter.addText(e),n}function E(e,t){t=t||u.languages||Object.keys(n);const s=m(e),r=t.filter(C).filter($).map(n=>f(n,e,!1));r.unshift(s);const i=r.sort((e,n)=>{if(e.relevance!==n.relevance)return n.relevance-e.relevance;if(e.language&&n.language){if(C(e.language).supersetOf===n.language)return 1;if(C(n.language).supersetOf===e.language)return-1}return 0}),[a,l]=i,o=a;return o.second_best=l,o}function x(e){return u.tabReplace||u.useBR?e.replace(l,e=>{return"\n"===e?u.useBR?"
    ":e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e}):e}function y(e,n,s){const r=n?t[n]:s;e.classList.add("hljs"),r&&e.classList.add(r)}const w={"before:highlightBlock":({block:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"))},"after:highlightBlock":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,"
    "))}},N=/^(<[^>]+>|\t)+/gm,k={"after:highlightBlock":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(N,e=>e.replace(/\t/g,u.tabReplace)))}};function v(e){let n=null;const t=p(e);if(g(t))return;L("before:highlightBlock",{block:e,language:t}),n=e;const s=n.textContent,r=t?b(t,s,!0):E(s);L("after:highlightBlock",{block:e,result:r,text:s}),e.innerHTML=r.value,y(e,t,r.language),e.result={language:r.language,re:r.relevance,relavance:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance,relavance:r.second_best.relevance})}function R(e){e.useBR&&(de("10.3.0","'useBR' will be removed entirely in v11.0"),de("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),u=pe(u,e)}const S=()=>{if(S.called)return;S.called=!0;const e=document.querySelectorAll("pre code");e.forEach(v)};function O(){window.addEventListener("DOMContentLoaded",S,!1)}function A(t,s){let r=null;try{r=s(e)}catch(i){if(ue("Language definition for '{}' could not be registered.".replace("{}",t)),!a)throw i;ue(i),r=c}r.name||(r.name=t),n[t]=r,r.rawDefinition=s.bind(null,e),r.aliases&&I(r.aliases,{languageName:t})}function M(){return Object.keys(n)}function T(e){de("10.4.0","requireLanguage will be removed entirely in v11."),de("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const n=C(e);if(n)return n;const t=new Error("The '{}' language is required, but not loaded.".replace("{}",e));throw t}function C(e){return e=(e||"").toLowerCase(),n[e]||n[t[e]]}function I(e,{languageName:n}){"string"===typeof e&&(e=[e]),e.forEach(e=>{t[e]=n})}function $(e){const n=C(e);return n&&!n.disableAutodetect}function D(e){r.push(e)}function L(e,n){const t=e;r.forEach((function(e){e[t]&&e[t](n)}))}function B(e){return de("10.2.0","fixMarkup will be removed entirely in v11.0"),de("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),x(e)}Object.assign(e,{highlight:b,highlightAuto:E,fixMarkup:B,highlightBlock:v,configure:R,initHighlighting:S,initHighlightingOnLoad:O,registerLanguage:A,listLanguages:M,getLanguage:C,registerAliases:I,requireLanguage:T,autoDetection:$,inherit:pe,addPlugin:D,vuePlugin:ie(e).VuePlugin}),e.debugMode=function(){a=!1},e.safeMode=function(){a=!0},e.versionString=se;for(const i in F)"object"===typeof F[i]&&s(F[i]);return Object.assign(e,F),e.addPlugin(w),e.addPlugin(ae),e.addPlugin(k),e};var me=fe({});e.exports=me},2907:function(e,n){function t(e){const n={className:"variable",begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*(?![A-Za-z0-9])(?![$])"},t={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},s={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},r=e.inherit(e.APOS_STRING_MODE,{illegal:null}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),a=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(s)}),l={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[e.inherit(r,{begin:"b'",end:"'"}),e.inherit(i,{begin:'b"',end:'"'}),i,r,a]},o={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list match|0 new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7","php8"],case_insensitive:!0,keywords:c,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),t,{className:"keyword",begin:/\$this\b/},n,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{begin:"=>"},{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",n,e.C_BLOCK_COMMENT_MODE,l,o]}]},{className:"class",beginKeywords:"class interface",relevance:0,end:/\{/,excludeEnd:!0,illegal:/[:($"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",relevance:0,end:";",contains:[e.UNDERSCORE_TITLE_MODE]},l,o]}}e.exports=t},"2e7b":function(e,n){function t(e){var n="true false yes no null",t="[\\w#;/?:@&=+$,.~*'()[\\]]+",s={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},r={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,r]},a=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l="[0-9]{4}(-[0-9][0-9]){0,2}",o="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",u="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",g={className:"number",begin:"\\b"+l+o+c+u+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:n,relevance:0},h={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},p={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},b=[s,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+t},{className:"type",begin:"!<"+t+">"},{className:"type",begin:"!"+t},{className:"type",begin:"!!"+t},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},g,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},h,p,i],f=[...b];return f.pop(),f.push(a),d.contains=f,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:b}}e.exports=t},"332f":function(e,n){var t="[0-9](_*[0-9])*",s=`\\.(${t})`,r="[0-9a-fA-F](_*[0-9a-fA-F])*",i={className:"number",variants:[{begin:`(\\b(${t})((${s})|\\.)?|(${s}))`+`[eE][+-]?(${t})[fFdD]?\\b`},{begin:`\\b(${t})((${s})[fFdD]?\\b|\\.([fFdD]\\b)?)`},{begin:`(${s})[fFdD]?\\b`},{begin:`\\b(${t})[fFdD]\\b`},{begin:`\\b0[xX]((${r})\\.?|(${r})?\\.(${r}))`+`[pP][+-]?(${t})[fFdD]?\\b`},{begin:"\\b(0|[1-9](_*[0-9])*)[lL]?\\b"},{begin:`\\b0[xX](${r})[lL]?\\b`},{begin:"\\b0(_*[0-7])*[lL]?\\b"},{begin:"\\b0[bB][01](_*[01])*[lL]?\\b"}],relevance:0};function a(e){var n="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=n+"(<"+n+"(\\s*,\\s*"+n+")*>)?",s="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",r={className:"meta",begin:"@"+n,contains:[{begin:/\(/,end:/\)/,contains:["self"]}]};const a=i;return{name:"Java",aliases:["jsp"],keywords:s,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),{begin:/import java\.[a-z]+\./,keywords:"import",relevance:2},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"class",begin:"record\\s+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,excludeEnd:!0,end:/[{;=]/,keywords:s,contains:[{beginKeywords:"record"},{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"function",begin:"("+t+"\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:s,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:s,relevance:0,contains:[r,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},a,r]}}e.exports=a},"4dd1":function(e,n){const t="[A-Za-z$_][0-9A-Za-z$_]*",s=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],r=["true","false","null","undefined","NaN","Infinity"],i=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],a=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],l=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],o=["arguments","this","super","console","window","document","localStorage","module","global"],c=[].concat(l,o,i,a);function u(e){return e?"string"===typeof e?e:e.source:null}function g(e){return d("(?=",e,")")}function d(...e){const n=e.map(e=>u(e)).join("");return n}function h(e){const n=(e,{after:n})=>{const t="",end:""},l={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,t)=>{const s=e[0].length+e.index,r=e.input[s];"<"!==r?">"===r&&(n(e,{after:s})||t.ignoreMatch()):t.ignoreMatch()}},o={$pattern:t,keyword:s.join(" "),literal:r.join(" "),built_in:c.join(" ")},u="[0-9](_?[0-9])*",h=`\\.(${u})`,p="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",b={className:"number",variants:[{begin:`(\\b(${p})((${h})|\\.)?|(${h}))`+`[eE][+-]?(${u})\\b`},{begin:`\\b(${p})\\b((${h})\\b|\\.)?|(${h})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},f={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},m={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"xml"}},_={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,f],subLanguage:"css"}},E={className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,f]},x=e.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),y={className:"comment",variants:[x,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},w=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,_,E,b,e.REGEXP_MODE];f.contains=w.concat({begin:/\{/,end:/\}/,keywords:o,contains:["self"].concat(w)});const N=[].concat(y,f.contains),k=N.concat([{begin:/\(/,end:/\)/,keywords:o,contains:["self"].concat(N)}]),v={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:k};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:o,exports:{PARAMS_CONTAINS:k},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,m,_,E,y,b,{begin:d(/[{,\n]\s*/,g(d(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,i+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:i+g("\\s*:"),relevance:0}]},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[y,e.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+e.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:k}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:a.begin,end:a.end},{begin:l.begin,"on:begin":l.isTrulyOpeningTag,end:l.end}],subLanguage:"xml",contains:[{begin:l.begin,end:l.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:o,contains:["self",e.inherit(e.TITLE_MODE,{begin:i}),v],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:e.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[v,e.inherit(e.TITLE_MODE,{begin:i})]},{variants:[{begin:"\\."+i},{begin:"\\$"+i}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:i}),"self",v]},{begin:"(get|set)\\s+(?="+i+"\\()",end:/\{/,keywords:"get set",contains:[e.inherit(e.TITLE_MODE,{begin:i}),{begin:/\(\)/},v]},{begin:/\$[(.]/}]}}e.exports=h},"5ad2":function(e,n){function t(e){const n={literal:"true false null"},t=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],s=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],r={end:",",endsWithParent:!0,excludeEnd:!0,contains:s,keywords:n},i={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(r,{begin:/:/})].concat(t),illegal:"\\S"},a={begin:"\\[",end:"\\]",contains:[e.inherit(r)],illegal:"\\S"};return s.push(i,a),t.forEach((function(e){s.push(e)})),{name:"JSON",contains:s,keywords:n,illegal:"\\S"}}e.exports=t},"8dcb":function(e,n){function t(e){return e?"string"===typeof e?e:e.source:null}function s(e){return i("(?=",e,")")}function r(e){return i("(",e,")?")}function i(...e){const n=e.map(e=>t(e)).join("");return n}function a(...e){const n="("+e.map(e=>t(e)).join("|")+")";return n}function l(e){const n=i(/[A-Z_]/,r(/[A-Z0-9_.-]+:/),/[A-Z0-9_.-]*/),t=/[A-Za-z0-9._:-]+/,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},o={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},c=e.inherit(o,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:"meta-string"}),g=e.inherit(e.QUOTE_STRING_MODE,{className:"meta-string"}),d={endsWithParent:!0,illegal:/`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin://,relevance:10,contains:[o,g,u,c,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin://,contains:[o,c,g,u]}]}]},e.COMMENT(//,{relevance:10}),{begin://,relevance:10},l,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/)/,end:/>/,keywords:{name:"style"},contains:[d],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/)/,end:/>/,keywords:{name:"script"},contains:[d],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:i(//,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:n,relevance:0,starts:d}]},{className:"tag",begin:i(/<\//,s(i(n,/>/))),contains:[{className:"name",begin:n,relevance:0},{begin:/>/,relevance:0}]}]}}e.exports=l},9510:function(e,n){function t(e){const n=["and","as","assert","async","await","break","class","continue","def","del","elif","else","except","finally","for","","from","global","if","import","in","is","lambda","nonlocal|10","not","or","pass","raise","return","try","while","with","yield"],t=["__import__","abs","all","any","ascii","bin","bool","breakpoint","bytearray","bytes","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","exec","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip"],s=["__debug__","Ellipsis","False","None","NotImplemented","True"],r={keyword:n.join(" "),built_in:t.join(" "),literal:s.join(" ")},i={className:"meta",begin:/^(>>>|\.\.\.) /},a={className:"subst",begin:/\{/,end:/\}/,keywords:r,illegal:/#/},l={begin:/\{\{/,relevance:0},o={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{begin:/([uU]|[bB]|[rR]|[bB][rR]|[rR][bB])?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i],relevance:10},{begin:/([fF][rR]|[rR][fF]|[fF])'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,i,l,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,i,l,a]},{begin:/([uU]|[rR])'/,end:/'/,relevance:10},{begin:/([uU]|[rR])"/,end:/"/,relevance:10},{begin:/([bB]|[bB][rR]|[rR][bB])'/,end:/'/},{begin:/([bB]|[bB][rR]|[rR][bB])"/,end:/"/},{begin:/([fF][rR]|[rR][fF]|[fF])'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,l,a]},{begin:/([fF][rR]|[rR][fF]|[fF])"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,l,a]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},c="[0-9](_?[0-9])*",u=`(\\b(${c}))?\\.(${c})|\\b(${c})\\.`,g={className:"number",relevance:0,variants:[{begin:`(\\b(${c})|(${u}))[eE][+-]?(${c})[jJ]?\\b`},{begin:`(${u})[jJ]?`},{begin:"\\b([1-9](_?[0-9])*|0+(_?0)*)[lLjJ]?\\b"},{begin:"\\b0[bB](_?[01])+[lL]?\\b"},{begin:"\\b0[oO](_?[0-7])+[lL]?\\b"},{begin:"\\b0[xX](_?[0-9a-fA-F])+[lL]?\\b"},{begin:`\\b(${c})[jJ]\\b`}]},d={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:r,contains:["self",i,g,o,e.HASH_COMMENT_MODE]}]};return a.contains=[o,g,i],{name:"Python",aliases:["py","gyp","ipython"],keywords:r,illegal:/(<\/|->|\?)|=>/,contains:[i,g,{begin:/\bself\b/},{beginKeywords:"if",relevance:0},o,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,d,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/(?=#)|$/,contains:[g,d,o]},{begin:/\b(print|exec)\(/}]}}e.exports=t},b541:function(e,n,t){},de95:function(e,n,t){"use strict";var s=t("b541"),r=t.n(s);r.a},e4cb:function(e,n,t){},ee8c:function(e,n){function t(e){var n={begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},t={className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[n,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}},s="@[a-z-]+",r="and or not only",i=/@-?\w[\w]*(-\w+)*/,a="[a-zA-Z-][a-zA-Z0-9_-]*",l={begin:/([*]\s?)?(?:[A-Z_.\-\\]+|--[a-zA-Z0-9_-]+)\s*(\/\*\*\/)?:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[t]};return{name:"CSS",case_insensitive:!0,illegal:/[=|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:"\\."+a},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9_+()"'.-]+/},{begin:"@(page|font-face)",lexemes:s,keywords:"@page @font-face"},{begin:"@",end:"[{;]",illegal:/:/,returnBegin:!0,contains:[{className:"keyword",begin:i},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:r,contains:[{begin:/[a-z-]+:/,className:"attribute"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:a,relevance:0},{begin:/\{/,end:/\}/,illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,{begin:/;/},l]}]}}e.exports=t},f786:function(e,n,t){"use strict";var s=function(){var e=this,n=e.$createElement,t=e._self._c||n;return e.text?t("div",{staticClass:"markdown-body",domProps:{innerHTML:e._s(e.markdownHtml)}}):e._e()},r=[],i=(t("a481"),t("b54a"),t("0e54")),a=t.n(i),l=t("1020"),o=t.n(l);t("e4cb");o.a.registerLanguage("markdown",t("04b0")),o.a.registerLanguage("javascript",t("4dd1")),o.a.registerLanguage("css",t("ee8c")),o.a.registerLanguage("xml",t("8dcb")),o.a.registerLanguage("json",t("5ad2")),o.a.registerLanguage("java",t("332f")),o.a.registerLanguage("yaml",t("2e7b")),o.a.registerLanguage("python",t("9510")),o.a.registerLanguage("php",t("2907"));var c={name:"MarkdownRender",props:{text:String},computed:{markdownHtml:function(){var e=new a.a.Renderer;return e.link=function(){var e=a.a.Renderer.prototype.link.apply(this,arguments);return e.replace("0?C+F:""}},4328:function(e,t,r){"use strict";var n=r("4127"),o=r("9e6a"),i=r("b313");e.exports={formats:i,parse:o,stringify:n}},"578a":function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"zfile-login"},[r("el-form",{ref:"loginForm",staticClass:"zfile-login-form",attrs:{model:e.loginForm,rules:e.rules,"status-icon":"","label-position":"left","label-width":"0px"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleSubmit(t)}}},[r("h3",{staticClass:"zfile-login-title"},[e._v("管理员登录")]),r("el-form-item",{attrs:{prop:"username"}},[r("el-input",{attrs:{type:"text","auto-complete":"off",placeholder:"用户名"},model:{value:e.loginForm.username,callback:function(t){e.$set(e.loginForm,"username","string"===typeof t?t.trim():t)},expression:"loginForm.username"}})],1),r("el-form-item",{attrs:{prop:"password"}},[r("el-input",{attrs:{type:"password","auto-complete":"off",placeholder:"密码"},model:{value:e.loginForm.password,callback:function(t){e.$set(e.loginForm,"password","string"===typeof t?t.trim():t)},expression:"loginForm.password"}})],1),r("el-form-item",[r("el-button",{staticClass:"el-col-24",attrs:{type:"primary",loading:e.loading},on:{click:e.handleSubmit}},[e._v("登录\n ")])],1)],1)],1)},o=[],i=r("4328"),a=r.n(i),l={name:"Login",data:function(){return{loading:!1,loginForm:{},rules:{username:[{required:!0,message:"账号不能为空",trigger:"blur"}],password:[{required:!0,message:"密码不能为空",trigger:"blur"}]}}},mounted:function(){var e=this;this.$http.get("is-installed").then((function(t){var r=t.data;0===r.code&&e.$router.push("/install")})),document.title="登录 | 后台管理"},methods:{handleSubmit:function(){var e=this;this.$refs.loginForm.validate((function(t){if(!t)return!1;e.$http.post("login",a.a.stringify(e.loginForm)).then((function(t){e.$message({message:t.data.msg,type:"success",duration:1e3,onClose:function(){e.$router.push("/admin")}})}))}))}}},c=l,s=(r("6892"),r("2877")),u=Object(s["a"])(c,n,o,!1,null,"3671c5e6",null);t["default"]=u.exports},6892:function(e,t,r){"use strict";var n=r("1d0c"),o=r.n(n);o.a},"9e6a":function(e,t,r){"use strict";var n=r("d233"),o=Object.prototype.hasOwnProperty,i={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:n.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(e,t){for(var r={},n=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,l=n.split(t.delimiter,a),c=0;c=0;--o){var i,a=e[o];if("[]"===a)i=[],i=i.concat(n);else{i=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(l,10);!isNaN(c)&&a!==l&&String(c)===l&&c>=0&&r.parseArrays&&c<=r.arrayLimit?(i=[],i[c]=n):i[l]=n}n=i}return n},c=function(e,t,r){if(e){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=i.exec(n),s=c?n.slice(0,c.index):n,u=[];if(s){if(!r.plainObjects&&o.call(Object.prototype,s)&&!r.allowPrototypes)return;u.push(s)}var f=0;while(null!==(c=a.exec(n))&&f=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122?r+=t.charAt(n):i<128?r+=o[i]:i<2048?r+=o[192|i>>6]+o[128|63&i]:i<55296||i>=57344?r+=o[224|i>>12]+o[128|i>>6&63]+o[128|63&i]:(n+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(n)),r+=o[240|i>>18]+o[128|i>>12&63]+o[128|i>>6&63]+o[128|63&i])}return r},f=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n=0,s=d.indexOf("Macintosh")>=0,c=d.indexOf("Macintosh")>=0&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,a=d.indexOf("Linux")>=0,l=!0,h=navigator.language,h;var v=r,_=s,y=a,b=u,C=l,w=c,S="object"===typeof self?self:"object"===typeof i?i:{},L=S,N=function(){if(L.setImmediate)return L.setImmediate.bind(L);if("function"===typeof L.postMessage&&!L.importScripts){var t=[];L.addEventListener("message",(function(e){if(e.data&&e.data.vscodeSetImmediateId)for(var n=0,i=t.length;n/?";function u(e){void 0===e&&(e="");for(var t="(-?\\d*\\.\\d\\w*)|([^",n=0,i=a;n=0||(t+="\\"+o)}return t+="\\s]+)",new RegExp(t,"g")}var l=u();function c(e){var t=l;if(e&&e instanceof RegExp)if(e.global)t=e;else{var n="g";e.ignoreCase&&(n+="i"),e.multiline&&(n+="m"),e.unicode&&(n+="u"),t=new RegExp(e.source,n)}return t.lastIndex=0,t}function h(e,t,n,i){var o,r=e-1-i,s=n.lastIndexOf(" ",r-1)+1;t.lastIndex=s;while(o=t.exec(n)){var a=o.index||0;if(a<=r&&t.lastIndex>=r)return{word:o[0],startColumn:i+1+a,endColumn:i+1+t.lastIndex}}return null}function d(e,t,n,i){var o,r=e-1-i;t.lastIndex=0;while(o=t.exec(n)){var s=o.index||0;if(s>r)return null;if(t.lastIndex>=r)return{word:o[0],startColumn:i+1+s,endColumn:i+1+t.lastIndex}}return null}function f(e,t,n,i){t.lastIndex=0;var o=t.exec(n);if(!o)return null;var r=o[0].indexOf(" ")>=0?d(e,t,n,i):h(e,t,n,i);return t.lastIndex=0,r}var p=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}}(),g=function(){return g=Object.assign||function(e){for(var t,n=1,i=arguments.length;nn?n:e},t.float=function(e,t){if("number"===typeof e)return e;if("undefined"===typeof e)return t;var n=parseFloat(e);return isNaN(n)?t:n},t.prototype.validate=function(e){return this.validationFn(t.float(e,this.defaultValue))},t}(C),N=function(e){function t(t,n,i,o){void 0===o&&(o=void 0);var r=this;return"undefined"!==typeof o&&(o.type="string",o.default=i),r=e.call(this,t,n,i,o)||this,r}return p(t,e),t.string=function(e,t){return"string"!==typeof e?t:e},t.prototype.validate=function(e){return t.string(e,this.defaultValue)},t}(C),D=function(e){function t(t,n,i,o,r){void 0===r&&(r=void 0);var s=this;return"undefined"!==typeof r&&(r.type="string",r.enum=o,r.default=i),s=e.call(this,t,n,i,r)||this,s._allowedValues=o,s}return p(t,e),t.stringSet=function(e,t,n){return"string"!==typeof e?t:-1===n.indexOf(e)?t:e},t.prototype.validate=function(e){return t.stringSet(e,this.defaultValue,this._allowedValues)},t}(C),E=function(e){function t(t,n,i,o,r,s,a){void 0===a&&(a=void 0);var u=this;return"undefined"!==typeof a&&(a.type="string",a.enum=r,a.default=o),u=e.call(this,t,n,i,a)||this,u._allowedValues=r,u._convert=s,u}return p(t,e),t.prototype.validate=function(e){return"string"!==typeof e?this.defaultValue:-1===this._allowedValues.indexOf(e)?this.defaultValue:this._convert(e)},t}(y);function x(e){switch(e){case"none":return 0;case"keep":return 1;case"brackets":return 2;case"advanced":return 3;case"full":return 4}}var k,O=function(e){function t(){return e.call(this,2,"accessibilitySupport",0,{type:"string",enum:["auto","on","off"],enumDescriptions:[r("accessibilitySupport.auto","The editor will use platform APIs to detect when a Screen Reader is attached."),r("accessibilitySupport.on","The editor will be permanently optimized for usage with a Screen Reader."),r("accessibilitySupport.off","The editor will never be optimized for usage with a Screen Reader.")],default:"auto",description:r("accessibilitySupport","Controls whether the editor should run in a mode where it is optimized for screen readers.")})||this}return p(t,e),t.prototype.validate=function(e){switch(e){case"auto":return 0;case"off":return 1;case"on":return 2}return this.defaultValue},t.prototype.compute=function(e,t,n){return 0===n?e.accessibilitySupport:n},t}(y),T=function(e){function t(){var t=this,n={insertSpace:!0};return t=e.call(this,13,"comments",n,{"editor.comments.insertSpace":{type:"boolean",default:n.insertSpace,description:r("comments.insertSpace","Controls whether a space character is inserted when commenting.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{insertSpace:w.boolean(t.insertSpace,this.defaultValue.insertSpace)}},t}(y);function M(e){switch(e){case"blink":return 1;case"smooth":return 2;case"phase":return 3;case"expand":return 4;case"solid":return 5}}function I(e){switch(e){case"line":return k.Line;case"block":return k.Block;case"underline":return k.Underline;case"line-thin":return k.LineThin;case"block-outline":return k.BlockOutline;case"underline-thin":return k.UnderlineThin}}(function(e){e[e["Line"]=1]="Line",e[e["Block"]=2]="Block",e[e["Underline"]=3]="Underline",e[e["LineThin"]=4]="LineThin",e[e["BlockOutline"]=5]="BlockOutline",e[e["UnderlineThin"]=6]="UnderlineThin"})(k||(k={}));var A=function(e){function t(){return e.call(this,104,[55,26])||this}return p(t,e),t.prototype.compute=function(e,t,n){var i="monaco-editor";return t.get(26)&&(i+=" "+t.get(26)),e.extraEditorClassName&&(i+=" "+e.extraEditorClassName),"default"===t.get(55)?i+=" mouse-default":"copy"===t.get(55)&&(i+=" mouse-copy"),t.get(85)&&(i+=" showUnused"),i},t}(b),P=function(e){function t(){return e.call(this,25,"emptySelectionClipboard",!0,{description:r("emptySelectionClipboard","Controls whether copying without a selection copies the current line.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return n&&e.emptySelectionClipboard},t}(w),R=function(e){function t(){var t=this,n={seedSearchStringFromSelection:!0,autoFindInSelection:"never",globalFindClipboard:!1,addExtraSpaceOnTop:!0};return t=e.call(this,28,"find",n,{"editor.find.seedSearchStringFromSelection":{type:"boolean",default:n.seedSearchStringFromSelection,description:r("find.seedSearchStringFromSelection","Controls whether the search string in the Find Widget is seeded from the editor selection.")},"editor.find.autoFindInSelection":{type:"string",enum:["never","always","multiline"],default:n.autoFindInSelection,enumDescriptions:[r("editor.find.autoFindInSelection.never","Never turn on Find in selection automatically (default)"),r("editor.find.autoFindInSelection.always","Always turn on Find in selection automatically"),r("editor.find.autoFindInSelection.multiline","Turn on Find in selection automatically when multiple lines of content are selected.")],description:r("find.autoFindInSelection","Controls whether the find operation is carried out on selected text or the entire file in the editor.")},"editor.find.globalFindClipboard":{type:"boolean",default:n.globalFindClipboard,description:r("find.globalFindClipboard","Controls whether the Find Widget should read or modify the shared find clipboard on macOS."),included:s["e"]},"editor.find.addExtraSpaceOnTop":{type:"boolean",default:n.addExtraSpaceOnTop,description:r("find.addExtraSpaceOnTop","Controls whether the Find Widget should add extra lines on top of the editor. When true, you can scroll beyond the first line when the Find Widget is visible.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{seedSearchStringFromSelection:w.boolean(t.seedSearchStringFromSelection,this.defaultValue.seedSearchStringFromSelection),autoFindInSelection:"boolean"===typeof e.autoFindInSelection?e.autoFindInSelection?"always":"never":D.stringSet(t.autoFindInSelection,this.defaultValue.autoFindInSelection,["never","always","multiline"]),globalFindClipboard:w.boolean(t.globalFindClipboard,this.defaultValue.globalFindClipboard),addExtraSpaceOnTop:w.boolean(t.addExtraSpaceOnTop,this.defaultValue.addExtraSpaceOnTop)}},t}(y),F=function(e){function t(){return e.call(this,35,"fontLigatures",t.OFF,{anyOf:[{type:"boolean",description:r("fontLigatures","Enables/Disables font ligatures.")},{type:"string",description:r("fontFeatureSettings","Explicit font-feature-settings.")}],description:r("fontLigaturesGeneral","Configures font ligatures."),default:!1})||this}return p(t,e),t.prototype.validate=function(e){return"undefined"===typeof e?this.defaultValue:"string"===typeof e?"false"===e?t.OFF:"true"===e?t.ON:e:Boolean(e)?t.ON:t.OFF},t.OFF='"liga" off, "calt" off',t.ON='"liga" on, "calt" on',t}(y),W=function(e){function t(){return e.call(this,34)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo},t}(b),V=function(e){function t(){return e.call(this,36,"fontSize",ue.fontSize,{type:"number",minimum:6,maximum:100,default:ue.fontSize,description:r("fontSize","Controls the font size in pixels.")})||this}return p(t,e),t.prototype.validate=function(e){var t=L.float(e,this.defaultValue);return 0===t?ue.fontSize:L.clamp(t,6,100)},t.prototype.compute=function(e,t,n){return e.fontInfo.fontSize},t}(C),B=function(e){function t(){var t=this,n={multiple:"peek",multipleDefinitions:"peek",multipleTypeDefinitions:"peek",multipleDeclarations:"peek",multipleImplementations:"peek",multipleReferences:"peek",alternativeDefinitionCommand:"editor.action.goToReferences",alternativeTypeDefinitionCommand:"editor.action.goToReferences",alternativeDeclarationCommand:"editor.action.goToReferences",alternativeImplementationCommand:"",alternativeReferenceCommand:""},i={type:"string",enum:["peek","gotoAndPeek","goto"],default:n.multiple,enumDescriptions:[r("editor.gotoLocation.multiple.peek","Show peek view of the results (default)"),r("editor.gotoLocation.multiple.gotoAndPeek","Go to the primary result and show a peek view"),r("editor.gotoLocation.multiple.goto","Go to the primary result and enable peek-less navigation to others")]};return t=e.call(this,41,"gotoLocation",n,{"editor.gotoLocation.multiple":{deprecationMessage:r("editor.gotoLocation.multiple.deprecated","This setting is deprecated, please use separate settings like 'editor.editor.gotoLocation.multipleDefinitions' or 'editor.editor.gotoLocation.multipleImplementations' instead.")},"editor.gotoLocation.multipleDefinitions":g({description:r("editor.editor.gotoLocation.multipleDefinitions","Controls the behavior the 'Go to Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleTypeDefinitions":g({description:r("editor.editor.gotoLocation.multipleTypeDefinitions","Controls the behavior the 'Go to Type Definition'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleDeclarations":g({description:r("editor.editor.gotoLocation.multipleDeclarations","Controls the behavior the 'Go to Declaration'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleImplementations":g({description:r("editor.editor.gotoLocation.multipleImplemenattions","Controls the behavior the 'Go to Implementations'-command when multiple target locations exist.")},i),"editor.gotoLocation.multipleReferences":g({description:r("editor.editor.gotoLocation.multipleReferences","Controls the behavior the 'Go to References'-command when multiple target locations exist.")},i),"editor.gotoLocation.alternativeDefinitionCommand":{type:"string",default:n.alternativeDefinitionCommand,description:r("alternativeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Definition' is the current location.")},"editor.gotoLocation.alternativeTypeDefinitionCommand":{type:"string",default:n.alternativeTypeDefinitionCommand,description:r("alternativeTypeDefinitionCommand","Alternative command id that is being executed when the result of 'Go to Type Definition' is the current location.")},"editor.gotoLocation.alternativeDeclarationCommand":{type:"string",default:n.alternativeDeclarationCommand,description:r("alternativeDeclarationCommand","Alternative command id that is being executed when the result of 'Go to Declaration' is the current location.")},"editor.gotoLocation.alternativeImplementationCommand":{type:"string",default:n.alternativeImplementationCommand,description:r("alternativeImplementationCommand","Alternative command id that is being executed when the result of 'Go to Implementation' is the current location.")},"editor.gotoLocation.alternativeReferenceCommand":{type:"string",default:n.alternativeReferenceCommand,description:r("alternativeReferenceCommand","Alternative command id that is being executed when the result of 'Go to Reference' is the current location.")}})||this,t}return p(t,e),t.prototype.validate=function(e){var t,n,i,o,r;if("object"!==typeof e)return this.defaultValue;var s=e;return{multiple:D.stringSet(s.multiple,this.defaultValue.multiple,["peek","gotoAndPeek","goto"]),multipleDefinitions:null!==(t=s.multipleDefinitions)&&void 0!==t?t:D.stringSet(s.multipleDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleTypeDefinitions:null!==(n=s.multipleTypeDefinitions)&&void 0!==n?n:D.stringSet(s.multipleTypeDefinitions,"peek",["peek","gotoAndPeek","goto"]),multipleDeclarations:null!==(i=s.multipleDeclarations)&&void 0!==i?i:D.stringSet(s.multipleDeclarations,"peek",["peek","gotoAndPeek","goto"]),multipleImplementations:null!==(o=s.multipleImplementations)&&void 0!==o?o:D.stringSet(s.multipleImplementations,"peek",["peek","gotoAndPeek","goto"]),multipleReferences:null!==(r=s.multipleReferences)&&void 0!==r?r:D.stringSet(s.multipleReferences,"peek",["peek","gotoAndPeek","goto"]),alternativeDefinitionCommand:N.string(s.alternativeDefinitionCommand,this.defaultValue.alternativeDefinitionCommand),alternativeTypeDefinitionCommand:N.string(s.alternativeTypeDefinitionCommand,this.defaultValue.alternativeTypeDefinitionCommand),alternativeDeclarationCommand:N.string(s.alternativeDeclarationCommand,this.defaultValue.alternativeDeclarationCommand),alternativeImplementationCommand:N.string(s.alternativeImplementationCommand,this.defaultValue.alternativeImplementationCommand),alternativeReferenceCommand:N.string(s.alternativeReferenceCommand,this.defaultValue.alternativeReferenceCommand)}},t}(y),H=function(e){function t(){var t=this,n={enabled:!0,delay:300,sticky:!0};return t=e.call(this,44,"hover",n,{"editor.hover.enabled":{type:"boolean",default:n.enabled,description:r("hover.enabled","Controls whether the hover is shown.")},"editor.hover.delay":{type:"number",default:n.delay,description:r("hover.delay","Controls the delay in milliseconds after which the hover is shown.")},"editor.hover.sticky":{type:"boolean",default:n.sticky,description:r("hover.sticky","Controls whether the hover should remain visible when mouse is moved over it.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),delay:S.clampedInt(t.delay,this.defaultValue.delay,0,1e4),sticky:w.boolean(t.sticky,this.defaultValue.sticky)}},t}(y),z=function(e){function t(){return e.call(this,107,[40,48,30,54,78,50])||this}return p(t,e),t.prototype.compute=function(e,n,i){return t.computeLayout(n,{outerWidth:e.outerWidth,outerHeight:e.outerHeight,lineHeight:e.fontInfo.lineHeight,lineNumbersDigitCount:e.lineNumbersDigitCount,typicalHalfwidthCharacterWidth:e.fontInfo.typicalHalfwidthCharacterWidth,maxDigitWidth:e.fontInfo.maxDigitWidth,pixelRatio:e.pixelRatio})},t.computeLayout=function(e,t){var n,i=0|t.outerWidth,o=0|t.outerHeight,r=0|t.lineHeight,s=0|t.lineNumbersDigitCount,a=t.typicalHalfwidthCharacterWidth,u=t.maxDigitWidth,l=t.pixelRatio,c=e.get(40),h=0!==e.get(50).renderType,d=0|e.get(51),f=e.get(54),p=f.enabled,g=f.side,v=f.renderCharacters,_=l>=2?Math.round(2*f.scale):f.scale,y=0|f.maxColumn,b=e.get(78),C=0|b.verticalScrollbarSize,w=b.verticalHasArrows,L=0|b.arrowSize,N=0|b.horizontalScrollbarSize,D=e.get(48),E=e.get(30);if("string"===typeof D&&/^\d+(\.\d+)?ch$/.test(D)){var x=parseFloat(D.substr(0,D.length-2));n=S.clampedInt(x*a,0,0,1e3)}else n=S.clampedInt(D,0,0,1e3);E&&(n+=16);var k=0;if(h){var O=Math.max(s,d);k=Math.round(O*u)}var T=0;c&&(T=r);var M,I,A,P,R=0,F=R+T,W=F+k,V=W+n,B=i-T-k-n;if(p){var H=_/l;M=v?1:2,A=Math.max(0,Math.floor((B-C-2)*H/(a+H)))+m;var z=A/H;z>y&&(A=Math.floor(y*H)),P=B-A,"left"===g?(I=0,R+=A,F+=A,W+=A,V+=A):I=i-A-C}else I=0,A=0,M=0,P=B;var j=Math.max(1,Math.floor((P-C-2)/a)),U=w?L:0;return{width:i,height:o,glyphMarginLeft:R,glyphMarginWidth:T,lineNumbersLeft:F,lineNumbersWidth:k,decorationsLeft:W,decorationsWidth:n,contentLeft:V,contentWidth:P,renderMinimap:M,minimapLeft:I,minimapWidth:A,viewportColumn:j,verticalScrollbarWidth:C,horizontalScrollbarHeight:N,overviewRuler:{top:U,width:C,height:o-2*U,right:0}}},t}(b),j=function(e){function t(){var t=this,n={enabled:!0};return t=e.call(this,47,"lightbulb",n,{"editor.lightbulb.enabled":{type:"boolean",default:n.enabled,description:r("codeActions","Enables the code action lightbulb in the editor.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled)}},t}(y),U=function(e){function t(){return e.call(this,49,"lineHeight",ue.lineHeight,0,150,{description:r("lineHeight","Controls the line height. Use 0 to compute the line height from the font size.")})||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.fontInfo.lineHeight},t}(S),K=function(e){function t(){var t=this,n={enabled:!0,side:"right",showSlider:"mouseover",renderCharacters:!0,maxColumn:120,scale:1};return t=e.call(this,54,"minimap",n,{"editor.minimap.enabled":{type:"boolean",default:n.enabled,description:r("minimap.enabled","Controls whether the minimap is shown.")},"editor.minimap.side":{type:"string",enum:["left","right"],default:n.side,description:r("minimap.side","Controls the side where to render the minimap.")},"editor.minimap.showSlider":{type:"string",enum:["always","mouseover"],default:n.showSlider,description:r("minimap.showSlider","Controls when the minimap slider is shown.")},"editor.minimap.scale":{type:"number",default:n.scale,minimum:1,maximum:3,description:r("minimap.scale","Scale of content drawn in the minimap.")},"editor.minimap.renderCharacters":{type:"boolean",default:n.renderCharacters,description:r("minimap.renderCharacters","Render the actual characters on a line as opposed to color blocks.")},"editor.minimap.maxColumn":{type:"number",default:n.maxColumn,description:r("minimap.maxColumn","Limit the width of the minimap to render at most a certain number of columns.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),side:D.stringSet(t.side,this.defaultValue.side,["right","left"]),showSlider:D.stringSet(t.showSlider,this.defaultValue.showSlider,["always","mouseover"]),renderCharacters:w.boolean(t.renderCharacters,this.defaultValue.renderCharacters),scale:S.clampedInt(t.scale,1,1,3),maxColumn:S.clampedInt(t.maxColumn,this.defaultValue.maxColumn,1,1e4)}},t}(y);function q(e){return"ctrlCmd"===e?s["e"]?"metaKey":"ctrlKey":"altKey"}var G=function(e){function t(){var t=this,n={enabled:!0,cycle:!1};return t=e.call(this,64,"parameterHints",n,{"editor.parameterHints.enabled":{type:"boolean",default:n.enabled,description:r("parameterHints.enabled","Enables a pop-up that shows parameter documentation and type information as you type.")},"editor.parameterHints.cycle":{type:"boolean",default:n.cycle,description:r("parameterHints.cycle","Controls whether the parameter hints menu cycles or closes when reaching the end of the list.")}})||this,t}return p(t,e),t.prototype.validate=function(e){if("object"!==typeof e)return this.defaultValue;var t=e;return{enabled:w.boolean(t.enabled,this.defaultValue.enabled),cycle:w.boolean(t.cycle,this.defaultValue.cycle)}},t}(y),Y=function(e){function t(){return e.call(this,105)||this}return p(t,e),t.prototype.compute=function(e,t,n){return e.pixelRatio},t}(b),Z=function(e){function t(){var t=this,n={other:!0,comments:!1,strings:!1};return t=e.call(this,66,"quickSuggestions",n,{anyOf:[{type:"boolean"},{type:"object",properties:{strings:{type:"boolean",default:n.strings,description:r("quickSuggestions.strings","Enable quick suggestions inside strings.")},comments:{type:"boolean",default:n.comments,description:r("quickSuggestions.comments","Enable quick suggestions inside comments.")},other:{type:"boolean",default:n.other,description:r("quickSuggestions.other","Enable quick suggestions outside of strings and comments.")}}}],default:n,description:r("quickSuggestions","Controls whether suggestions should automatically show up while typing.")})||this,t.defaultValue=n,t}return p(t,e),t.prototype.validate=function(e){if("boolean"===typeof e)return e;if("object"===typeof e){var t=e,n={other:w.boolean(t.other,this.defaultValue.other),comments:w.boolean(t.comments,this.defaultValue.comments),strings:w.boolean(t.strings,this.defaultValue.strings)};return!!(n.other&&n.comments&&n.strings)||!!(n.other||n.comments||n.strings)&&n}return this.defaultValue},t}(y),X=function(e){function t(){return e.call(this,50,"lineNumbers",{renderType:1,renderFn:null},{type:"string",enum:["off","on","relative","interval"],enumDescriptions:[r("lineNumbers.off","Line numbers are not rendered."),r("lineNumbers.on","Line numbers are rendered as absolute number."),r("lineNumbers.relative","Line numbers are rendered as distance in lines to cursor position."),r("lineNumbers.interval","Line numbers are rendered every 10 lines.")],default:"on",description:r("lineNumbers","Controls the display of line numbers.")})||this}return p(t,e),t.prototype.validate=function(e){var t=this.defaultValue.renderType,n=this.defaultValue.renderFn;return"undefined"!==typeof e&&("function"===typeof e?(t=4,n=e):t="interval"===e?3:"relative"===e?2:"on"===e?1:0),{renderType:t,renderFn:n}},t}(y);function $(e){var t=e.get(73);return"editable"===t?e.get(68):"on"!==t}var Q=function(e){function t(){var t=this,n=[];return t=e.call(this,77,"rulers",n,{type:"array",items:{type:"number"},default:n,description:r("rulers","Render vertical rulers after a certain number of monospace characters. Use multiple values for multiple rulers. No rulers are drawn if array is empty.")})||this,t}return p(t,e),t.prototype.validate=function(e){if(Array.isArray(e)){for(var t=[],n=0,i=e;n