(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-b5218308"],{"0653":function(e,t,n){"use strict";n("2fa5")},"0a31":function(e,t,n){"use strict";n("f0fe")},"0a7d":function(e,t,n){},1157:function(e,t,n){var i,r;
/*!
 * jQuery JavaScript Library v2.2.4
 * http://jquery.com/
 *
 * Includes Sizzle.js
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2016-05-20T17:23Z
 */(function(t,n){"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)})("undefined"!==typeof window?window:this,(function(n,o){var s=[],a=n.document,c=s.slice,l=s.concat,u=s.push,d=s.indexOf,h={},p=h.toString,f=h.hasOwnProperty,g={},m="2.2.4",v=function(e,t){return new v.fn.init(e,t)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,y=/^-ms-/,_=/-([\da-z])/gi,b=function(e,t){return t.toUpperCase()};function x(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:m,constructor:v,selector:"",length:0,toArray:function(){return c.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:c.call(this)},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:s.sort,splice:s.splice},v.extend=v.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"===typeof s&&(l=s,s=arguments[a]||{},a++),"object"===typeof s||v.isFunction(s)||(s={}),a===c&&(s=this,a--);a<c;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],i=e[t],s!==i&&(l&&i&&(v.isPlainObject(i)||(r=v.isArray(i)))?(r?(r=!1,o=n&&v.isArray(n)?n:[]):o=n&&v.isPlainObject(n)?n:{},s[t]=v.extend(l,o,i)):void 0!==i&&(s[t]=i));return s},v.extend({expando:"jQuery"+(m+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=e&&e.toString();return!v.isArray(e)&&t-parseFloat(t)+1>=0},isPlainObject:function(e){var t;if("object"!==v.type(e)||e.nodeType||v.isWindow(e))return!1;if(e.constructor&&!f.call(e,"constructor")&&!f.call(e.constructor.prototype||{},"isPrototypeOf"))return!1;for(t in e);return void 0===t||f.call(e,t)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?h[p.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=v.trim(e),e&&(1===e.indexOf("use strict")?(t=a.createElement("script"),t.text=e,a.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(y,"ms-").replace(_,b)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(x(e)){for(n=e.length;i<n;i++)if(!1===t.call(e[i],i,e[i]))break}else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(w,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?v.merge(n,"string"===typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i,r=[],o=0,s=e.length,a=!n;o<s;o++)i=!t(e[o],o),i!==a&&r.push(e[o]);return r},map:function(e,t,n){var i,r,o=0,s=[];if(x(e))for(i=e.length;o<i;o++)r=t(e[o],o,n),null!=r&&s.push(r);else for(o in e)r=t(e[o],o,n),null!=r&&s.push(r);return l.apply([],s)},guid:1,proxy:function(e,t){var n,i,r;if("string"===typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=c.call(arguments,2),r=function(){return e.apply(t||this,i.concat(c.call(arguments)))},r.guid=e.guid=e.guid||v.guid++,r},now:Date.now,support:g}),"function"===typeof Symbol&&(v.fn[Symbol.iterator]=s[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var C=
/*!
 * Sizzle CSS Selector Engine v2.2.1
 * http://sizzlejs.com/
 *
 * Copyright jQuery Foundation and other contributors
 * Released under the MIT license
 * http://jquery.org/license
 *
 * Date: 2015-10-17
 */
function(e){var t,n,i,r,o,s,a,c,l,u,d,h,p,f,g,m,v,w,y,_="sizzle"+1*new Date,b=e.document,x=0,C=0,T=oe(),S=oe(),k=oe(),E=function(e,t){return e===t&&(d=!0),0},I=1<<31,A={}.hasOwnProperty,M=[],L=M.pop,D=M.push,O=M.push,N=M.slice,j=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",$="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",F="\\["+$+"*("+H+")(?:"+$+"*([*^$|!~]?=)"+$+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+$+"*\\]",R=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",U=new RegExp($+"+","g"),B=new RegExp("^"+$+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$+"+$","g"),Y=new RegExp("^"+$+"*,"+$+"*"),W=new RegExp("^"+$+"*([>+~]|"+$+")"+$+"*"),X=new RegExp("="+$+"*([^\\]'\"]*?)"+$+"*\\]","g"),q=new RegExp(R),z=new RegExp("^"+H+"$"),G={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+$+"*(even|odd|(([+-]|)(\\d*)n|)"+$+"*(?:([+-]|)"+$+"*(\\d+)|))"+$+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+$+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+$+"*((?:-\\d)?\\d*)"+$+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,ee=/'|\\/g,te=new RegExp("\\\\([\\da-f]{1,6}"+$+"?|("+$+")|.)","ig"),ne=function(e,t,n){var i="0x"+t-65536;return i!==i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},ie=function(){h()};try{O.apply(M=N.call(b.childNodes),b.childNodes),M[b.childNodes.length].nodeType}catch(Ce){O={apply:M.length?function(e,t){D.apply(e,N.call(t))}:function(e,t){var n=e.length,i=0;while(e[n++]=t[i++]);e.length=n-1}}}function re(e,t,i,r){var o,a,l,u,d,f,v,w,x=t&&t.ownerDocument,C=t?t.nodeType:9;if(i=i||[],"string"!==typeof e||!e||1!==C&&9!==C&&11!==C)return i;if(!r&&((t?t.ownerDocument||t:b)!==p&&h(t),t=t||p,g)){if(11!==C&&(f=K.exec(e)))if(o=f[1]){if(9===C){if(!(l=t.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(x&&(l=x.getElementById(o))&&y(t,l)&&l.id===o)return i.push(l),i}else{if(f[2])return O.apply(i,t.getElementsByTagName(e)),i;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return O.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!k[e+" "]&&(!m||!m.test(e))){if(1!==C)x=t,w=e;else if("object"!==t.nodeName.toLowerCase()){(u=t.getAttribute("id"))?u=u.replace(ee,"\\$&"):t.setAttribute("id",u=_),v=s(e),a=v.length,d=z.test(u)?"#"+u:"[id='"+u+"']";while(a--)v[a]=d+" "+ge(v[a]);w=v.join(","),x=Z.test(e)&&pe(t.parentNode)||t}if(w)try{return O.apply(i,x.querySelectorAll(w)),i}catch(T){}finally{u===_&&t.removeAttribute("id")}}}return c(e.replace(B,"$1"),t,i,r)}function oe(){var e=[];function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}return t}function se(e){return e[_]=!0,e}function ae(e){var t=p.createElement("div");try{return!!e(t)}catch(Ce){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){var n=e.split("|"),r=n.length;while(r--)i.attrHandle[n[r]]=t}function le(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||I)-(~e.sourceIndex||I);if(i)return i;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function ue(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function he(e){return se((function(t){return t=+t,se((function(n,i){var r,o=e([],n.length,t),s=o.length;while(s--)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function pe(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=re.support={},o=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=re.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:b;return s!==p&&9===s.nodeType&&s.documentElement?(p=s,f=p.documentElement,g=!o(p),(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=ae((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ae((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Q.test(p.getElementsByClassName),n.getById=ae((function(e){return f.appendChild(e).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),n.getById?(i.find["ID"]=function(e,t){if("undefined"!==typeof t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}},i.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}}):(delete i.find["ID"],i.filter["ID"]=function(e){var t=e.replace(te,ne);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),i.find["TAG"]=n.getElementsByTagName?function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[r++])1===n.nodeType&&i.push(n);return i}return o},i.find["CLASS"]=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=Q.test(p.querySelectorAll))&&(ae((function(e){f.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+$+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+$+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+_+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||m.push(".#.+[+~]")})),ae((function(e){var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+$+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Q.test(w=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ae((function(e){n.disconnectedMatch=w.call(e,"div"),w.call(e,"[s!='']:x"),v.push("!=",R)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),y=t||Q.test(f.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):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},E=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&i||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===p||e.ownerDocument===b&&y(b,e)?-1:t===p||t.ownerDocument===b&&y(b,t)?1:u?j(u,e)-j(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,o=t.parentNode,s=[e],a=[t];if(!r||!o)return e===p?-1:t===p?1:r?-1:o?1:u?j(u,e)-j(u,t):0;if(r===o)return le(e,t);n=e;while(n=n.parentNode)s.unshift(n);n=t;while(n=n.parentNode)a.unshift(n);while(s[i]===a[i])i++;return i?le(s[i],a[i]):s[i]===b?-1:a[i]===b?1:0},p):p},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&h(e),t=t.replace(X,"='$1']"),n.matchesSelector&&g&&!k[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=w.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(Ce){}return re(t,p,null,[e]).length>0},re.contains=function(e,t){return(e.ownerDocument||e)!==p&&h(e),y(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==p&&h(e);var r=i.attrHandle[t.toLowerCase()],o=r&&A.call(i.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],r=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(E),d){while(t=e[o++])t===e[o]&&(r=i.push(o));while(r--)e.splice(i[r],1)}return u=null,e},r=re.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===o||4===o)return e.nodeValue}else while(t=e[i++])n+=r(t);return n},i=re.selectors={cacheLength:50,createPseudo:se,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G["CHILD"].test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+$+")"+e+"("+$+"|$)"))&&T(e,(function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=re.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,c){var l,u,d,h,p,f,g=o!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),w=!c&&!a,y=!1;if(m){if(o){while(g){h=t;while(h=h[g])if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&w){h=m,d=h[_]||(h[_]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),l=u[e]||[],p=l[0]===x&&l[1],y=p&&l[2],h=p&&m.childNodes[p];while(h=++p&&h&&h[g]||(y=p=0)||f.pop())if(1===h.nodeType&&++y&&h===t){u[e]=[x,p,y];break}}else if(w&&(h=t,d=h[_]||(h[_]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),l=u[e]||[],p=l[0]===x&&l[1],y=p),!1===y)while(h=++p&&h&&h[g]||(y=p=0)||f.pop())if((a?h.nodeName.toLowerCase()===v:1===h.nodeType)&&++y&&(w&&(d=h[_]||(h[_]={}),u=d[h.uniqueID]||(d[h.uniqueID]={}),u[e]=[x,y]),h===t))break;return y-=r,y===i||y%i===0&&y/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return r[_]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?se((function(e,n){var i,o=r(e,t),s=o.length;while(s--)i=j(e,o[s]),e[i]=!(n[i]=o[s])})):function(e){return r(e,0,n)}):r}},pseudos:{not:se((function(e){var t=[],n=[],i=a(e.replace(B,"$1"));return i[_]?se((function(e,t,n,r){var o,s=i(e,null,r,[]),a=e.length;while(a--)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,r,o){return t[0]=e,i(t,null,o,n),t[0]=null,!n.pop()}})),has:se((function(e){return function(t){return re(e,t).length>0}})),contains:se((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}})),lang:se((function(e){return z.test(e||"")||re.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},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},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos["empty"](e)},header:function(e){return J.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he((function(){return[0]})),last:he((function(e,t){return[t-1]})),eq:he((function(e,t,n){return[n<0?n+t:n]})),even:he((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:he((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:he((function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e})),gt:he((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos["nth"]=i.pseudos["eq"],{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=ue(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=de(t);function fe(){}function ge(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function me(e,t,n){var i=t.dir,r=n&&"parentNode"===i,o=C++;return t.first?function(t,n,o){while(t=t[i])if(1===t.nodeType||r)return e(t,n,o)}:function(t,n,s){var a,c,l,u=[x,o];if(s){while(t=t[i])if((1===t.nodeType||r)&&e(t,n,s))return!0}else while(t=t[i])if(1===t.nodeType||r){if(l=t[_]||(t[_]={}),c=l[t.uniqueID]||(l[t.uniqueID]={}),(a=c[i])&&a[0]===x&&a[1]===o)return u[2]=a[2];if(c[i]=u,u[2]=e(t,n,s))return!0}}}function ve(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 we(e,t,n){for(var i=0,r=t.length;i<r;i++)re(e,t[i],n);return n}function ye(e,t,n,i,r){for(var o,s=[],a=0,c=e.length,l=null!=t;a<c;a++)(o=e[a])&&(n&&!n(o,i,r)||(s.push(o),l&&t.push(a)));return s}function _e(e,t,n,i,r,o){return i&&!i[_]&&(i=_e(i)),r&&!r[_]&&(r=_e(r,o)),se((function(o,s,a,c){var l,u,d,h=[],p=[],f=s.length,g=o||we(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:ye(g,h,e,a,c),v=n?r||(o?e:f||i)?[]:s:m;if(n&&n(m,v,a,c),i){l=ye(v,p),i(l,[],a,c),u=l.length;while(u--)(d=l[u])&&(v[p[u]]=!(m[p[u]]=d))}if(o){if(r||e){if(r){l=[],u=v.length;while(u--)(d=v[u])&&l.push(m[u]=d);r(null,v=[],l,c)}u=v.length;while(u--)(d=v[u])&&(l=r?j(o,d):h[u])>-1&&(o[l]=!(s[l]=d))}}else v=ye(v===s?v.splice(f,v.length):v),r?r(null,s,v,c):O.apply(s,v)}))}function be(e){for(var t,n,r,o=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],c=s?1:0,u=me((function(e){return e===t}),a,!0),d=me((function(e){return j(t,e)>-1}),a,!0),h=[function(e,n,i){var r=!s&&(i||n!==l)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,r}];c<o;c++)if(n=i.relative[e[c].type])h=[me(ve(h),n)];else{if(n=i.filter[e[c].type].apply(null,e[c].matches),n[_]){for(r=++c;r<o;r++)if(i.relative[e[r].type])break;return _e(c>1&&ve(h),c>1&&ge(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(B,"$1"),n,c<r&&be(e.slice(c,r)),r<o&&be(e=e.slice(r)),r<o&&ge(e))}h.push(n)}return ve(h)}function xe(e,t){var n=t.length>0,r=e.length>0,o=function(o,s,a,c,u){var d,f,m,v=0,w="0",y=o&&[],_=[],b=l,C=o||r&&i.find["TAG"]("*",u),T=x+=null==b?1:Math.random()||.1,S=C.length;for(u&&(l=s===p||s||u);w!==S&&null!=(d=C[w]);w++){if(r&&d){f=0,s||d.ownerDocument===p||(h(d),a=!g);while(m=e[f++])if(m(d,s||p,a)){c.push(d);break}u&&(x=T)}n&&((d=!m&&d)&&v--,o&&y.push(d))}if(v+=w,n&&w!==v){f=0;while(m=t[f++])m(y,_,s,a);if(o){if(v>0)while(w--)y[w]||_[w]||(_[w]=L.call(c));_=ye(_)}O.apply(c,_),u&&!o&&_.length>0&&v+t.length>1&&re.uniqueSort(c)}return u&&(x=T,l=b),y};return n?se(o):o}return fe.prototype=i.filters=i.pseudos,i.setFilters=new fe,s=re.tokenize=function(e,t){var n,r,o,s,a,c,l,u=S[e+" "];if(u)return t?0:u.slice(0);a=e,c=[],l=i.preFilter;while(a){for(s in n&&!(r=Y.exec(a))||(r&&(a=a.slice(r[0].length)||a),c.push(o=[])),n=!1,(r=W.exec(a))&&(n=r.shift(),o.push({value:n,type:r[0].replace(B," ")}),a=a.slice(n.length)),i.filter)!(r=G[s].exec(a))||l[s]&&!(r=l[s](r))||(n=r.shift(),o.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?re.error(e):S(e,c).slice(0)},a=re.compile=function(e,t){var n,i=[],r=[],o=k[e+" "];if(!o){t||(t=s(e)),n=t.length;while(n--)o=be(t[n]),o[_]?i.push(o):r.push(o);o=k(e,xe(r,i)),o.selector=e}return o},c=re.select=function(e,t,r,o){var c,l,u,d,h,p="function"===typeof e&&e,f=!o&&s(e=p.selector||e);if(r=r||[],1===f.length){if(l=f[0]=f[0].slice(0),l.length>2&&"ID"===(u=l[0]).type&&n.getById&&9===t.nodeType&&g&&i.relative[l[1].type]){if(t=(i.find["ID"](u.matches[0].replace(te,ne),t)||[])[0],!t)return r;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}c=G["needsContext"].test(e)?0:l.length;while(c--){if(u=l[c],i.relative[d=u.type])break;if((h=i.find[d])&&(o=h(u.matches[0].replace(te,ne),Z.test(l[0].type)&&pe(t.parentNode)||t))){if(l.splice(c,1),e=o.length&&ge(l),!e)return O.apply(r,o),r;break}}}return(p||a(e,f))(o,t,!g,r,!t||Z.test(e)&&pe(t.parentNode)||t),r},n.sortStable=_.split("").sort(E).join("")===_,n.detectDuplicates=!!d,h(),n.sortDetached=ae((function(e){return 1&e.compareDocumentPosition(p.createElement("div"))})),ae((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||ce("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ae((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||ce("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ae((function(e){return null==e.getAttribute("disabled")}))||ce(P,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),re}(n);v.find=C,v.expr=C.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=C.uniqueSort,v.text=C.getText,v.isXMLDoc=C.isXML,v.contains=C.contains;var T=function(e,t,n){var i=[],r=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(r&&v(e).is(n))break;i.push(e)}return i},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=v.expr.match.needsContext,E=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,I=/^.[^:#\[\.,]*$/;function A(e,t,n){if(v.isFunction(t))return v.grep(e,(function(e,i){return!!t.call(e,i,e)!==n}));if(t.nodeType)return v.grep(e,(function(e){return e===t!==n}));if("string"===typeof t){if(I.test(t))return v.filter(t,e,n);t=v.filter(t,e)}return v.grep(e,(function(e){return d.call(t,e)>-1!==n}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,(function(e){return 1===e.nodeType})))},v.fn.extend({find:function(e){var t,n=this.length,i=[],r=this;if("string"!==typeof e)return this.pushStack(v(e).filter((function(){for(t=0;t<n;t++)if(v.contains(r[t],this))return!0})));for(t=0;t<n;t++)v.find(e,r[t],i);return i=this.pushStack(n>1?v.unique(i):i),i.selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"===typeof e&&k.test(e)?v(e):e||[],!1).length}});var M,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,D=v.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||M,"string"===typeof e){if(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:L.exec(e),!i||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:a,!0)),E.test(i[1])&&v.isPlainObject(t))for(i in t)v.isFunction(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return r=a.getElementById(i[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=a,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),v.makeArray(e,this))};D.prototype=v.fn,M=v(a);var O=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function j(e,t){while((e=e[t])&&1!==e.nodeType);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0}))},closest:function(e,t){for(var n,i=0,r=this.length,o=[],s=k.test(e)||"string"!==typeof e?v(e,t||this.context):0;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?v.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?d.call(v(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return j(e,"nextSibling")},prev:function(e){return j(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return e.contentDocument||v.merge([],e.childNodes)}},(function(e,t){v.fn[e]=function(n,i){var r=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"===typeof i&&(r=v.filter(i,r)),this.length>1&&(N[e]||v.uniqueSort(r),O.test(e)&&r.reverse()),this.pushStack(r)}}));var P,$=/\S+/g;function H(e){var t={};return v.each(e.match($)||[],(function(e,n){t[n]=!0})),t}function F(){a.removeEventListener("DOMContentLoaded",F),n.removeEventListener("load",F),v.ready()}v.Callbacks=function(e){e="string"===typeof e?H(e):v.extend({},e);var t,n,i,r,o=[],s=[],a=-1,c=function(){for(r=e.once,i=t=!0;s.length;a=-1){n=s.shift();while(++a<o.length)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1)}e.memory||(n=!1),t=!1,r&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){v.each(n,(function(n,i){v.isFunction(i)?e.unique&&l.has(i)||o.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)}))}(arguments),n&&!t&&c()),this},remove:function(){return v.each(arguments,(function(e,t){var n;while((n=v.inArray(t,o,n))>-1)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?v.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=s=[],n||(o=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=n||[],n=[e,n.slice?n.slice():n],s.push(n),t||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!i}};return l},v.extend({Deferred:function(e){var t=[["resolve","done",v.Callbacks("once memory"),"resolved"],["reject","fail",v.Callbacks("once memory"),"rejected"],["notify","progress",v.Callbacks("memory")]],n="pending",i={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},then:function(){var e=arguments;return v.Deferred((function(n){v.each(t,(function(t,o){var s=v.isFunction(e[t])&&e[t];r[o[1]]((function(){var e=s&&s.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this===i?n.promise():this,s?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?v.extend(e,i):i}},r={};return i.pipe=i.then,v.each(t,(function(e,o){var s=o[2],a=o[3];i[o[1]]=s.add,a&&s.add((function(){n=a}),t[1^e][2].disable,t[2][2].lock),r[o[0]]=function(){return r[o[0]+"With"](this===r?i:this,arguments),this},r[o[0]+"With"]=s.fireWith})),i.promise(r),e&&e.call(r,r),r},when:function(e){var t,n,i,r=0,o=c.call(arguments),s=o.length,a=1!==s||e&&v.isFunction(e.promise)?s:0,l=1===a?e:v.Deferred(),u=function(e,n,i){return function(r){n[e]=this,i[e]=arguments.length>1?c.call(arguments):r,i===t?l.notifyWith(n,i):--a||l.resolveWith(n,i)}};if(s>1)for(t=new Array(s),n=new Array(s),i=new Array(s);r<s;r++)o[r]&&v.isFunction(o[r].promise)?o[r].promise().progress(u(r,n,t)).done(u(r,i,o)).fail(l.reject):--a;return a||l.resolveWith(i,o),l.promise()}}),v.fn.ready=function(e){return v.ready.promise().done(e),this},v.extend({isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||(P.resolveWith(a,[v]),v.fn.triggerHandler&&(v(a).triggerHandler("ready"),v(a).off("ready"))))}}),v.ready.promise=function(e){return P||(P=v.Deferred(),"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(v.ready):(a.addEventListener("DOMContentLoaded",F),n.addEventListener("load",F))),P.promise(e)},v.ready.promise();var R=function(e,t,n,i,r,o,s){var a=0,c=e.length,l=null==n;if("object"===v.type(n))for(a in r=!0,n)R(e,t,a,n[a],!0,o,s);else if(void 0!==i&&(r=!0,v.isFunction(i)||(s=!0),l&&(s?(t.call(e,i),t=null):(l=t,t=function(e,t,n){return l.call(v(e),n)})),t))for(;a<c;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return r?e:l?t.call(e):c?t(e[0],n):o},U=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=v.expando+B.uid++}B.uid=1,B.prototype={register:function(e,t){var n=t||{};return e.nodeType?e[this.expando]=n:Object.defineProperty(e,this.expando,{value:n,writable:!0,configurable:!0}),e[this.expando]},cache:function(e){if(!U(e))return{};var t=e[this.expando];return t||(t={},U(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"===typeof t)r[t]=n;else for(i in t)r[i]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][t]},access:function(e,t,n){var i;return void 0===t||t&&"string"===typeof t&&void 0===n?(i=this.get(e,t),void 0!==i?i:this.get(e,v.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i,r,o=e[this.expando];if(void 0!==o){if(void 0===t)this.register(e);else{v.isArray(t)?i=t.concat(t.map(v.camelCase)):(r=v.camelCase(t),t in o?i=[t,r]:(i=r,i=i in o?[i]:i.match($)||[])),n=i.length;while(n--)delete o[i[n]]}(void 0===t||v.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var Y=new B,W=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,q=/[A-Z]/g;function z(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(q,"-$&").toLowerCase(),n=e.getAttribute(i),"string"===typeof n){try{n="true"===n||"false"!==n&&("null"===n?null:+n+""===n?+n:X.test(n)?v.parseJSON(n):n)}catch(r){}W.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return W.hasData(e)||Y.hasData(e)},data:function(e,t,n){return W.access(e,t,n)},removeData:function(e,t){W.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,r,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(r=W.get(o),1===o.nodeType&&!Y.get(o,"hasDataAttrs"))){n=s.length;while(n--)s[n]&&(i=s[n].name,0===i.indexOf("data-")&&(i=v.camelCase(i.slice(5)),z(o,i,r[i])));Y.set(o,"hasDataAttrs",!0)}return r}return"object"===typeof e?this.each((function(){W.set(this,e)})):R(this,(function(t){var n,i;if(o&&void 0===t)return n=W.get(o,e)||W.get(o,e.replace(q,"-$&").toLowerCase()),void 0!==n?n:(i=v.camelCase(e),n=W.get(o,i),void 0!==n?n:(n=z(o,i,void 0),void 0!==n?n:void 0));i=v.camelCase(e),this.each((function(){var n=W.get(this,i);W.set(this,i,t),e.indexOf("-")>-1&&void 0!==n&&W.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){W.remove(this,e)}))}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Y.get(e,t),n&&(!i||v.isArray(n)?i=Y.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,r=n.shift(),o=v._queueHooks(e,t),s=function(){v.dequeue(e,t)};"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete o.stop,r.call(e,s,o)),!i&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:v.Callbacks("once memory").add((function(){Y.remove(e,[t+"queue",n])}))})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each((function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){v.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=v.Deferred(),o=this,s=this.length,a=function(){--i||r.resolveWith(o,[o])};"string"!==typeof e&&(t=e,e=void 0),e=e||"fx";while(s--)n=Y.get(o[s],e+"queueHooks"),n&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,V=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],Q=function(e,t){return e=t||e,"none"===v.css(e,"display")||!v.contains(e.ownerDocument,e)};function K(e,t,n,i){var r,o=1,s=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},c=a(),l=n&&n[3]||(v.cssNumber[t]?"":"px"),u=(v.cssNumber[t]||"px"!==l&&+c)&&V.exec(v.css(e,t));if(u&&u[3]!==l){l=l||u[3],n=n||[],u=+c||1;do{o=o||".5",u/=o,v.style(e,t,u+l)}while(o!==(o=a()/c)&&1!==o&&--s)}return n&&(u=+u||+c||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=l,i.start=u,i.end=r)),r}var Z=/^(?:checkbox|radio)$/i,ee=/<([\w:-]+)/,te=/^$|\/(?:java|ecma)script/i,ne={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ie(e,t){var n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&v.nodeName(e,t)?v.merge([e],n):n}function re(e,t){for(var n=0,i=e.length;n<i;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ne.optgroup=ne.option,ne.tbody=ne.tfoot=ne.colgroup=ne.caption=ne.thead,ne.th=ne.td;var oe=/<|&#?\w+;/;function se(e,t,n,i,r){for(var o,s,a,c,l,u,d=t.createDocumentFragment(),h=[],p=0,f=e.length;p<f;p++)if(o=e[p],o||0===o)if("object"===v.type(o))v.merge(h,o.nodeType?[o]:o);else if(oe.test(o)){s=s||d.appendChild(t.createElement("div")),a=(ee.exec(o)||["",""])[1].toLowerCase(),c=ne[a]||ne._default,s.innerHTML=c[1]+v.htmlPrefilter(o)+c[2],u=c[0];while(u--)s=s.lastChild;v.merge(h,s.childNodes),s=d.firstChild,s.textContent=""}else h.push(t.createTextNode(o));d.textContent="",p=0;while(o=h[p++])if(i&&v.inArray(o,i)>-1)r&&r.push(o);else if(l=v.contains(o.ownerDocument,o),s=ie(d.appendChild(o),"script"),l&&re(s),n){u=0;while(o=s[u++])te.test(o.type||"")&&n.push(o)}return d}(function(){var e=a.createDocumentFragment(),t=e.appendChild(a.createElement("div")),n=a.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),g.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue})();var ae=/^key/,ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,le=/^([^.]*)(?:\.(.+)|)/;function ue(){return!0}function de(){return!1}function he(){try{return a.activeElement}catch(e){}}function pe(e,t,n,i,r,o){var s,a;if("object"===typeof t){for(a in"string"!==typeof n&&(i=i||n,n=void 0),t)pe(e,a,n,i,t[a],o);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"===typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=de;else if(!r)return e;return 1===o&&(s=r,r=function(e){return v().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=v.guid++)),e.each((function(){v.event.add(this,t,r,i,n)}))}v.event={global:{},add:function(e,t,n,i,r){var o,s,a,c,l,u,d,h,p,f,g,m=Y.get(e);if(m){n.handler&&(o=n,n=o.handler,r=o.selector),n.guid||(n.guid=v.guid++),(c=m.events)||(c=m.events={}),(s=m.handle)||(s=m.handle=function(t){return"undefined"!==typeof v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match($)||[""],l=t.length;while(l--)a=le.exec(t[l])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p&&(d=v.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=v.event.special[p]||{},u=v.extend({type:p,origType:g,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:f.join(".")},o),(h=c[p])||(h=c[p]=[],h.delegateCount=0,d.setup&&!1!==d.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),v.event.global[p]=!0)}},remove:function(e,t,n,i,r){var o,s,a,c,l,u,d,h,p,f,g,m=Y.hasData(e)&&Y.get(e);if(m&&(c=m.events)){t=(t||"").match($)||[""],l=t.length;while(l--)if(a=le.exec(t[l])||[],p=g=a[1],f=(a[2]||"").split(".").sort(),p){d=v.event.special[p]||{},p=(i?d.delegateType:d.bindType)||p,h=c[p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=h.length;while(o--)u=h[o],!r&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,f,m.handle)||v.removeEvent(e,p,m.handle),delete c[p])}else for(p in c)v.event.remove(e,p+t[l],n,i,!0);v.isEmptyObject(c)&&Y.remove(e,"handle events")}},dispatch:function(e){e=v.event.fix(e);var t,n,i,r,o,s=[],a=c.call(arguments),l=(Y.get(this,"events")||{})[e.type]||[],u=v.event.special[e.type]||{};if(a[0]=e,e.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,e)){s=v.event.handlers.call(this,e,l),t=0;while((r=s[t++])&&!e.isPropagationStopped()){e.currentTarget=r.elem,n=0;while((o=r.handlers[n++])&&!e.isImmediatePropagationStopped())e.rnamespace&&!e.rnamespace.test(o.namespace)||(e.handleObj=o,e.data=o.data,i=((v.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,a),void 0!==i&&!1===(e.result=i)&&(e.preventDefault(),e.stopPropagation()))}return u.postDispatch&&u.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,i,r,o,s=[],a=t.delegateCount,c=e.target;if(a&&c.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&(!0!==c.disabled||"click"!==e.type)){for(i=[],n=0;n<a;n++)o=t[n],r=o.selector+" ",void 0===i[r]&&(i[r]=o.needsContext?v(r,this).index(c)>-1:v.find(r,this,null,[c]).length),i[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return a<t.length&&s.push({elem:this,handlers:t.slice(a)}),s},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,i,r,o=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||a,i=n.documentElement,r=n.body,e.pageX=t.clientX+(i&&i.scrollLeft||r&&r.scrollLeft||0)-(i&&i.clientLeft||r&&r.clientLeft||0),e.pageY=t.clientY+(i&&i.scrollTop||r&&r.scrollTop||0)-(i&&i.clientTop||r&&r.clientTop||0)),e.which||void 0===o||(e.which=1&o?1:2&o?3:4&o?2:0),e}},fix:function(e){if(e[v.expando])return e;var t,n,i,r=e.type,o=e,s=this.fixHooks[r];s||(this.fixHooks[r]=s=ce.test(r)?this.mouseHooks:ae.test(r)?this.keyHooks:{}),i=s.props?this.props.concat(s.props):this.props,e=new v.Event(o),t=i.length;while(t--)n=i[t],e[n]=o[n];return e.target||(e.target=a),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,o):e},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==he()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===he()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(e){return v.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){if(!(this instanceof v.Event))return new v.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ue:de):this.type=e,t&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),this[v.expando]=!0},v.Event.prototype={constructor:v.Event,isDefaultPrevented:de,isPropagationStopped:de,isImmediatePropagationStopped:de,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ue,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ue,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ue,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,o=e.handleObj;return r&&(r===i||v.contains(i,r))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),v.fn.extend({on:function(e,t,n,i){return pe(this,e,t,n,i)},one:function(e,t,n,i){return pe(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=de),this.each((function(){v.event.remove(this,e,n,t)}))}});var fe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ge=/<script|<style|<link/i,me=/checked\s*(?:[^=]|=\s*.checked.)/i,ve=/^true\/(.*)/,we=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function ye(e,t){return v.nodeName(e,"table")&&v.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function _e(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function be(e){var t=ve.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function xe(e,t){var n,i,r,o,s,a,c,l;if(1===t.nodeType){if(Y.hasData(e)&&(o=Y.access(e),s=Y.set(t,o),l=o.events,l))for(r in delete s.handle,s.events={},l)for(n=0,i=l[r].length;n<i;n++)v.event.add(t,r,l[r][n]);W.hasData(e)&&(a=W.access(e),c=v.extend({},a),W.set(t,c))}}function Ce(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Z.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Te(e,t,n,i){t=l.apply([],t);var r,o,s,a,c,u,d=0,h=e.length,p=h-1,f=t[0],m=v.isFunction(f);if(m||h>1&&"string"===typeof f&&!g.checkClone&&me.test(f))return e.each((function(r){var o=e.eq(r);m&&(t[0]=f.call(this,r,o.html())),Te(o,t,n,i)}));if(h&&(r=se(t,e[0].ownerDocument,!1,e,i),o=r.firstChild,1===r.childNodes.length&&(r=o),o||i)){for(s=v.map(ie(r,"script"),_e),a=s.length;d<h;d++)c=r,d!==p&&(c=v.clone(c,!0,!0),a&&v.merge(s,ie(c,"script"))),n.call(e[d],c,d);if(a)for(u=s[s.length-1].ownerDocument,v.map(s,be),d=0;d<a;d++)c=s[d],te.test(c.type||"")&&!Y.access(c,"globalEval")&&v.contains(u,c)&&(c.src?v._evalUrl&&v._evalUrl(c.src):v.globalEval(c.textContent.replace(we,"")))}return e}function Se(e,t,n){for(var i,r=t?v.filter(t,e):e,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||v.cleanData(ie(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&re(ie(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(fe,"<$1></$2>")},clone:function(e,t,n){var i,r,o,s,a=e.cloneNode(!0),c=v.contains(e.ownerDocument,e);if(!g.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!v.isXMLDoc(e))for(s=ie(a),o=ie(e),i=0,r=o.length;i<r;i++)Ce(o[i],s[i]);if(t)if(n)for(o=o||ie(e),s=s||ie(a),i=0,r=o.length;i<r;i++)xe(o[i],s[i]);else xe(e,a);return s=ie(a,"script"),s.length>0&&re(s,!c&&ie(e,"script")),a},cleanData:function(e){for(var t,n,i,r=v.event.special,o=0;void 0!==(n=e[o]);o++)if(U(n)){if(t=n[Y.expando]){if(t.events)for(i in t.events)r[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[Y.expando]=void 0}n[W.expando]&&(n[W.expando]=void 0)}}}),v.fn.extend({domManip:Te,detach:function(e){return Se(this,e,!0)},remove:function(e){return Se(this,e)},text:function(e){return R(this,(function(e){return void 0===e?v.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Te(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ye(this,e);t.appendChild(e)}}))},prepend:function(){return Te(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=ye(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Te(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Te(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(v.cleanData(ie(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return v.clone(this,e,t)}))},html:function(e){return R(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!ge.test(e)&&!ne[(ee.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)t=this[n]||{},1===t.nodeType&&(v.cleanData(ie(t,!1)),t.innerHTML=e);t=0}catch(r){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Te(this,arguments,(function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ie(this)),n&&n.replaceChild(t,this))}),e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){v.fn[e]=function(e){for(var n,i=[],r=v(e),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),v(r[s])[t](n),u.apply(i,n.get());return this.pushStack(i)}}));var ke,Ee={HTML:"block",BODY:"block"};function Ie(e,t){var n=v(t.createElement(e)).appendTo(t.body),i=v.css(n[0],"display");return n.detach(),i}function Ae(e){var t=a,n=Ee[e];return n||(n=Ie(e,t),"none"!==n&&n||(ke=(ke||v("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=ke[0].contentDocument,t.write(),t.close(),n=Ie(e,t),ke.detach()),Ee[e]=n),n}var Me=/^margin/,Le=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),De=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Oe=function(e,t,n,i){var r,o,s={};for(o in t)s[o]=e.style[o],e.style[o]=t[o];for(o in r=n.apply(e,i||[]),t)e.style[o]=s[o];return r},Ne=a.documentElement;function je(e,t,n){var i,r,o,s,a=e.style;return n=n||De(e),s=n?n.getPropertyValue(t)||n[t]:void 0,""!==s&&void 0!==s||v.contains(e.ownerDocument,e)||(s=v.style(e,t)),n&&!g.pixelMarginRight()&&Le.test(s)&&Me.test(t)&&(i=a.width,r=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=r,a.maxWidth=o),void 0!==s?s+"":s}function Pe(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}(function(){var e,t,i,r,o=a.createElement("div"),s=a.createElement("div");function c(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",s.innerHTML="",Ne.appendChild(o);var a=n.getComputedStyle(s);e="1%"!==a.top,r="2px"===a.marginLeft,t="4px"===a.width,s.style.marginRight="50%",i="4px"===a.marginRight,Ne.removeChild(o)}s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===s.style.backgroundClip,o.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",o.appendChild(s),v.extend(g,{pixelPosition:function(){return c(),e},boxSizingReliable:function(){return null==t&&c(),t},pixelMarginRight:function(){return null==t&&c(),i},reliableMarginLeft:function(){return null==t&&c(),r},reliableMarginRight:function(){var e,t=s.appendChild(a.createElement("div"));return t.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",s.style.width="1px",Ne.appendChild(o),e=!parseFloat(n.getComputedStyle(t).marginRight),Ne.removeChild(o),s.removeChild(t),e}}))})();var $e=/^(none|table(?!-c[ea]).+)/,He={position:"absolute",visibility:"hidden",display:"block"},Fe={letterSpacing:"0",fontWeight:"400"},Re=["Webkit","O","Moz","ms"],Ue=a.createElement("div").style;function Be(e){if(e in Ue)return e;var t=e[0].toUpperCase()+e.slice(1),n=Re.length;while(n--)if(e=Re[n]+t,e in Ue)return e}function Ye(e,t,n){var i=V.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function We(e,t,n,i,r){for(var o=n===(i?"border":"content")?4:"width"===t?1:0,s=0;o<4;o+=2)"margin"===n&&(s+=v.css(e,n+J[o],!0,r)),i?("content"===n&&(s-=v.css(e,"padding"+J[o],!0,r)),"margin"!==n&&(s-=v.css(e,"border"+J[o]+"Width",!0,r))):(s+=v.css(e,"padding"+J[o],!0,r),"padding"!==n&&(s+=v.css(e,"border"+J[o]+"Width",!0,r)));return s}function Xe(e,t,n){var i=!0,r="width"===t?e.offsetWidth:e.offsetHeight,o=De(e),s="border-box"===v.css(e,"boxSizing",!1,o);if(r<=0||null==r){if(r=je(e,t,o),(r<0||null==r)&&(r=e.style[t]),Le.test(r))return r;i=s&&(g.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+We(e,t,n||(s?"border":"content"),i,o)+"px"}function qe(e,t){for(var n,i,r,o=[],s=0,a=e.length;s<a;s++)i=e[s],i.style&&(o[s]=Y.get(i,"olddisplay"),n=i.style.display,t?(o[s]||"none"!==n||(i.style.display=""),""===i.style.display&&Q(i)&&(o[s]=Y.access(i,"olddisplay",Ae(i.nodeName)))):(r=Q(i),"none"===n&&r||Y.set(i,"olddisplay",r?n:v.css(i,"display"))));for(s=0;s<a;s++)i=e[s],i.style&&(t&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=t?o[s]||"":"none"));return e}function ze(e,t,n,i,r){return new ze.prototype.init(e,t,n,i,r)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,o,s,a=v.camelCase(t),c=e.style;if(t=v.cssProps[a]||(v.cssProps[a]=Be(a)||a),s=v.cssHooks[t]||v.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];o=typeof n,"string"===o&&(r=V.exec(n))&&r[1]&&(n=K(e,t,r),o="number"),null!=n&&n===n&&("number"===o&&(n+=r&&r[3]||(v.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(c[t]=n))}},css:function(e,t,n,i){var r,o,s,a=v.camelCase(t);return t=v.cssProps[a]||(v.cssProps[a]=Be(a)||a),s=v.cssHooks[t]||v.cssHooks[a],s&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=je(e,t,i)),"normal"===r&&t in Fe&&(r=Fe[t]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),v.each(["height","width"],(function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return $e.test(v.css(e,"display"))&&0===e.offsetWidth?Oe(e,He,(function(){return Xe(e,t,i)})):Xe(e,t,i)},set:function(e,n,i){var r,o=i&&De(e),s=i&&We(e,t,i,"border-box"===v.css(e,"boxSizing",!1,o),o);return s&&(r=V.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ye(e,n,s)}}})),v.cssHooks.marginLeft=Pe(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(je(e,"marginLeft"))||e.getBoundingClientRect().left-Oe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),v.cssHooks.marginRight=Pe(g.reliableMarginRight,(function(e,t){if(t)return Oe(e,{display:"inline-block"},je,[e,"marginRight"])})),v.each({margin:"",padding:"",border:"Width"},(function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,r={},o="string"===typeof n?n.split(" "):[n];i<4;i++)r[e+J[i]+t]=o[i]||o[i-2]||o[0];return r}},Me.test(e)||(v.cssHooks[e+t].set=Ye)})),v.fn.extend({css:function(e,t){return R(this,(function(e,t,n){var i,r,o={},s=0;if(v.isArray(t)){for(i=De(e),r=t.length;s<r;s++)o[t[s]]=v.css(e,t[s],!1,i);return o}return void 0!==n?v.style(e,t,n):v.css(e,t)}),e,t,arguments.length>1)},show:function(){return qe(this,!0)},hide:function(){return qe(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){Q(this)?v(this).show():v(this).hide()}))}}),v.Tween=ze,ze.prototype={constructor:ze,init:function(e,t,n,i,r,o){this.elem=e,this.prop=n,this.easing=r||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=o||(v.cssNumber[n]?"":"px")},cur:function(){var e=ze.propHooks[this.prop];return e&&e.get?e.get(this):ze.propHooks._default.get(this)},run:function(e){var t,n=ze.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ze.propHooks._default.set(this),this}},ze.prototype.init.prototype=ze.prototype,ze.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},ze.propHooks.scrollTop=ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=ze.prototype.init,v.fx.step={};var Ge,Ve,Je=/^(?:toggle|show|hide)$/,Qe=/queueHooks$/;function Ke(){return n.setTimeout((function(){Ge=void 0})),Ge=v.now()}function Ze(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)n=J[i],r["margin"+n]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function et(e,t,n){for(var i,r=(it.tweeners[t]||[]).concat(it.tweeners["*"]),o=0,s=r.length;o<s;o++)if(i=r[o].call(n,t,e))return i}function tt(e,t,n){var i,r,o,s,a,c,l,u,d=this,h={},p=e.style,f=e.nodeType&&Q(e),g=Y.get(e,"fxshow");for(i in n.queue||(a=v._queueHooks(e,"fx"),null==a.unqueued&&(a.unqueued=0,c=a.empty.fire,a.empty.fire=function(){a.unqueued||c()}),a.unqueued++,d.always((function(){d.always((function(){a.unqueued--,v.queue(e,"fx").length||a.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],l=v.css(e,"display"),u="none"===l?Y.get(e,"olddisplay")||Ae(e.nodeName):l,"inline"===u&&"none"===v.css(e,"float")&&(p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),t)if(r=t[i],Je.exec(r)){if(delete t[i],o=o||"toggle"===r,r===(f?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||v.style(e,i)}else l=void 0;if(v.isEmptyObject(h))"inline"===("none"===l?Ae(e.nodeName):l)&&(p.display=l);else for(i in g?"hidden"in g&&(f=g.hidden):g=Y.access(e,"fxshow",{}),o&&(g.hidden=!f),f?v(e).show():d.done((function(){v(e).hide()})),d.done((function(){var t;for(t in Y.remove(e,"fxshow"),h)v.style(e,t,h[t])})),h)s=et(f?g[i]:0,i,d),i in g||(g[i]=s.start,f&&(s.end=s.start,s.start="width"===i||"height"===i?1:0))}function nt(e,t){var n,i,r,o,s;for(n in e)if(i=v.camelCase(n),r=t[i],o=e[n],v.isArray(o)&&(r=o[1],o=e[n]=o[0]),n!==i&&(e[i]=o,delete e[n]),s=v.cssHooks[i],s&&"expand"in s)for(n in o=s.expand(o),delete e[i],o)n in e||(e[n]=o[n],t[n]=r);else t[i]=r}function it(e,t,n){var i,r,o=0,s=it.prefilters.length,a=v.Deferred().always((function(){delete c.elem})),c=function(){if(r)return!1;for(var t=Ge||Ke(),n=Math.max(0,l.startTime+l.duration-t),i=n/l.duration||0,o=1-i,s=0,c=l.tweens.length;s<c;s++)l.tweens[s].run(o);return a.notifyWith(e,[l,o,n]),o<1&&c?n:(a.resolveWith(e,[l]),!1)},l=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ge||Ke(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,l.opts,t,n,l.opts.specialEasing[t]||l.opts.easing);return l.tweens.push(i),i},stop:function(t){var n=0,i=t?l.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)l.tweens[n].run(1);return t?(a.notifyWith(e,[l,1,0]),a.resolveWith(e,[l,t])):a.rejectWith(e,[l,t]),this}}),u=l.props;for(nt(u,l.opts.specialEasing);o<s;o++)if(i=it.prefilters[o].call(l,e,u,l.opts),i)return v.isFunction(i.stop)&&(v._queueHooks(l.elem,l.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(u,et,l),v.isFunction(l.opts.start)&&l.opts.start.call(e,l),v.fx.timer(v.extend(c,{elem:e,anim:l,queue:l.opts.queue})),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always)}v.Animation=v.extend(it,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return K(n.elem,e,V.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match($);for(var n,i=0,r=e.length;i<r;i++)n=e[i],it.tweeners[n]=it.tweeners[n]||[],it.tweeners[n].unshift(t)},prefilters:[tt],prefilter:function(e,t){t?it.prefilters.unshift(e):it.prefilters.push(e)}}),v.speed=function(e,t,n){var i=e&&"object"===typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return i.duration=v.fx.off?0:"number"===typeof i.duration?i.duration:i.duration in v.fx.speeds?v.fx.speeds[i.duration]:v.fx.speeds._default,null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v.isFunction(i.old)&&i.old.call(this),i.queue&&v.dequeue(this,i.queue)},i},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(Q).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=v.isEmptyObject(e),o=v.speed(t,n,i),s=function(){var t=it(this,v.extend({},e),o);(r||Y.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",o=v.timers,s=Y.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&Qe.test(r)&&i(s[r]);for(r=o.length;r--;)o[r].elem!==this||null!=e&&o[r].queue!==e||(o[r].anim.stop(n),t=!1,o.splice(r,1));!t&&n||v.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Y.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],o=v.timers,s=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),v.each(["toggle","show","hide"],(function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,r){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(Ze(t,!0),e,i,r)}})),v.each({slideDown:Ze("show"),slideUp:Ze("hide"),slideToggle:Ze("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Ge=v.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Ge=void 0},v.fx.timer=function(e){v.timers.push(e),e()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){Ve||(Ve=n.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){n.clearInterval(Ve),Ve=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(e,t){return e=v.fx&&v.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var r=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(r)}}))},function(){var e=a.createElement("input"),t=a.createElement("select"),n=t.appendChild(a.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=n.selected,t.disabled=!0,g.optDisabled=!n.disabled,e=a.createElement("input"),e.value="t",e.type="radio",g.radioValue="t"===e.value}();var rt,ot=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return R(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){v.removeAttr(this,e)}))}}),v.extend({attr:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?v.prop(e,t,n):(1===o&&v.isXMLDoc(e)||(t=t.toLowerCase(),r=v.attrHooks[t]||(v.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=v.find.attr(e,t),null==i?void 0:i))},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i,r=0,o=t&&t.match($);if(o&&1===e.nodeType)while(n=o[r++])i=v.propFix[n]||n,v.expr.match.bool.test(n)&&(e[i]=!1),e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=ot[t]||v.find.attr;ot[t]=function(e,t,i){var r,o;return i||(o=ot[t],ot[t]=r,r=null!=n(e,t,i)?t.toLowerCase():null,ot[t]=o),r}}));var st=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;v.fn.extend({prop:function(e,t){return R(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[v.propFix[e]||e]}))}}),v.extend({prop:function(e,t,n){var i,r,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&v.isXMLDoc(e)||(t=v.propFix[t]||t,r=v.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):st.test(e.nodeName)||at.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){v.propFix[this.toLowerCase()]=this}));var ct=/[\t\r\n\f]/g;function lt(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({addClass:function(e){var t,n,i,r,o,s,a,c=0;if(v.isFunction(e))return this.each((function(t){v(this).addClass(e.call(this,t,lt(this)))}));if("string"===typeof e&&e){t=e.match($)||[];while(n=this[c++])if(r=lt(n),i=1===n.nodeType&&(" "+r+" ").replace(ct," "),i){s=0;while(o=t[s++])i.indexOf(" "+o+" ")<0&&(i+=o+" ");a=v.trim(i),r!==a&&n.setAttribute("class",a)}}return this},removeClass:function(e){var t,n,i,r,o,s,a,c=0;if(v.isFunction(e))return this.each((function(t){v(this).removeClass(e.call(this,t,lt(this)))}));if(!arguments.length)return this.attr("class","");if("string"===typeof e&&e){t=e.match($)||[];while(n=this[c++])if(r=lt(n),i=1===n.nodeType&&(" "+r+" ").replace(ct," "),i){s=0;while(o=t[s++])while(i.indexOf(" "+o+" ")>-1)i=i.replace(" "+o+" "," ");a=v.trim(i),r!==a&&n.setAttribute("class",a)}}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"===typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each((function(n){v(this).toggleClass(e.call(this,n,lt(this),t),t)})):this.each((function(){var t,i,r,o;if("string"===n){i=0,r=v(this),o=e.match($)||[];while(t=o[i++])r.hasClass(t)?r.removeClass(t):r.addClass(t)}else void 0!==e&&"boolean"!==n||(t=lt(this),t&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,i=0;t=" "+e+" ";while(n=this[i++])if(1===n.nodeType&&(" "+lt(n)+" ").replace(ct," ").indexOf(t)>-1)return!0;return!1}});var ut=/\r/g,dt=/[\x20\t\r\n\f]+/g;v.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v.isFunction(e),this.each((function(n){var r;1===this.nodeType&&(r=i?e.call(this,n,v(this).val()):e,null==r?r="":"number"===typeof r?r+="":v.isArray(r)&&(r=v.map(r,(function(e){return null==e?"":e+""}))),t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:(n=r.value,"string"===typeof n?n.replace(ut,""):null==n?"":n)):void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:v.trim(v.text(e)).replace(dt," ")}},select:{get:function(e){for(var t,n,i=e.options,r=e.selectedIndex,o="select-one"===e.type||r<0,s=o?null:[],a=o?r+1:i.length,c=r<0?a:o?r:0;c<a;c++)if(n=i[c],(n.selected||c===r)&&(g.optDisabled?!n.disabled:null===n.getAttribute("disabled"))&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(t=v(n).val(),o)return t;s.push(t)}return s},set:function(e,t){var n,i,r=e.options,o=v.makeArray(t),s=r.length;while(s--)i=r[s],(i.selected=v.inArray(v.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),v.each(["radio","checkbox"],(function(){v.valHooks[this]={set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},g.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var ht=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(e,t,i,r){var o,s,c,l,u,d,h,p=[i||a],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(s=c=i=i||a,3!==i.nodeType&&8!==i.nodeType&&!ht.test(g+v.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),u=g.indexOf(":")<0&&"on"+g,e=e[v.expando]?e:new v.Event(g,"object"===typeof e&&e),e.isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:v.makeArray(t,[e]),h=v.event.special[g]||{},r||!h.trigger||!1!==h.trigger.apply(i,t))){if(!r&&!h.noBubble&&!v.isWindow(i)){for(l=h.delegateType||g,ht.test(l+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),c=s;c===(i.ownerDocument||a)&&p.push(c.defaultView||c.parentWindow||n)}o=0;while((s=p[o++])&&!e.isPropagationStopped())e.type=o>1?l:h.bindType||g,d=(Y.get(s,"events")||{})[e.type]&&Y.get(s,"handle"),d&&d.apply(s,t),d=u&&s[u],d&&d.apply&&U(s)&&(e.result=d.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!U(i)||u&&v.isFunction(i[g])&&!v.isWindow(i)&&(c=i[u],c&&(i[u]=null),v.event.triggered=g,i[g](),v.event.triggered=void 0,c&&(i[u]=c)),e.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each((function(){v.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}})),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),g.focusin="onfocusin"in n,g.focusin||v.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=Y.access(i,t);r||i.addEventListener(e,n,!0),Y.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Y.access(i,t)-1;r?Y.access(i,t,r):(i.removeEventListener(e,n,!0),Y.remove(i,t))}}}));var pt=n.location,ft=v.now(),gt=/\?/;v.parseJSON=function(e){return JSON.parse(e+"")},v.parseXML=function(e){var t;if(!e||"string"!==typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(i){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+e),t};var mt=/#.*$/,vt=/([?&])_=[^&]*/,wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,yt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,_t=/^(?:GET|HEAD)$/,bt=/^\/\//,xt={},Ct={},Tt="*/".concat("*"),St=a.createElement("a");function kt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var i,r=0,o=t.toLowerCase().match($)||[];if(v.isFunction(n))while(i=o[r++])"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Et(e,t,n,i){var r={},o=e===Ct;function s(a){var c;return r[a]=!0,v.each(e[a]||[],(function(e,a){var l=a(t,n,i);return"string"!==typeof l||o||r[l]?o?!(c=l):void 0:(t.dataTypes.unshift(l),s(l),!1)})),c}return s(t.dataTypes[0])||!r["*"]&&s("*")}function It(e,t){var n,i,r=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}function At(e,t,n){var i,r,o,s,a=e.contents,c=e.dataTypes;while("*"===c[0])c.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){c.unshift(r);break}if(c[0]in n)o=c[0];else{for(r in n){if(!c[0]||e.converters[r+" "+c[0]]){o=r;break}s||(s=r)}o=o||s}if(o)return o!==c[0]&&c.unshift(o),n[o]}function Mt(e,t,n,i){var r,o,s,a,c,l={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)l[s.toLowerCase()]=e.converters[s];o=u.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!c&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),c=o,o=u.shift(),o)if("*"===o)o=c;else if("*"!==c&&c!==o){if(s=l[c+" "+o]||l["* "+o],!s)for(r in l)if(a=r.split(" "),a[1]===o&&(s=l[c+" "+a[0]]||l["* "+a[0]],s)){!0===s?s=l[r]:!0!==l[r]&&(o=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(d){return{state:"parsererror",error:s?d:"No conversion from "+c+" to "+o}}}return{state:"success",data:t}}St.href=pt.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:yt.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Tt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":v.parseJSON,"text xml":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?It(It(e,v.ajaxSettings),t):It(v.ajaxSettings,e)},ajaxPrefilter:kt(xt),ajaxTransport:kt(Ct),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var i,r,o,s,c,l,u,d,h=v.ajaxSetup({},t),p=h.context||h,f=h.context&&(p.nodeType||p.jquery)?v(p):v.event,g=v.Deferred(),m=v.Callbacks("once memory"),w=h.statusCode||{},y={},_={},b=0,x="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(2===b){if(!s){s={};while(t=wt.exec(o))s[t[1].toLowerCase()]=t[2]}t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===b?o:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return b||(e=_[n]=_[n]||e,y[e]=t),this},overrideMimeType:function(e){return b||(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(b<2)for(t in e)w[t]=[w[t],e[t]];else C.always(e[C.status]);return this},abort:function(e){var t=e||x;return i&&i.abort(t),T(0,t),this}};if(g.promise(C).complete=m.add,C.success=C.done,C.error=C.fail,h.url=((e||h.url||pt.href)+"").replace(mt,"").replace(bt,pt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=v.trim(h.dataType||"*").toLowerCase().match($)||[""],null==h.crossDomain){l=a.createElement("a");try{l.href=h.url,l.href=l.href,h.crossDomain=St.protocol+"//"+St.host!==l.protocol+"//"+l.host}catch(S){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!==typeof h.data&&(h.data=v.param(h.data,h.traditional)),Et(xt,h,t,C),2===b)return C;for(d in u=v.event&&h.global,u&&0===v.active++&&v.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!_t.test(h.type),r=h.url,h.hasContent||(h.data&&(r=h.url+=(gt.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(h.url=vt.test(r)?r.replace(vt,"$1_="+ft++):r+(gt.test(r)?"&":"?")+"_="+ft++)),h.ifModified&&(v.lastModified[r]&&C.setRequestHeader("If-Modified-Since",v.lastModified[r]),v.etag[r]&&C.setRequestHeader("If-None-Match",v.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&C.setRequestHeader("Content-Type",h.contentType),C.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+Tt+"; q=0.01":""):h.accepts["*"]),h.headers)C.setRequestHeader(d,h.headers[d]);if(h.beforeSend&&(!1===h.beforeSend.call(p,C,h)||2===b))return C.abort();for(d in x="abort",{success:1,error:1,complete:1})C[d](h[d]);if(i=Et(Ct,h,t,C),i){if(C.readyState=1,u&&f.trigger("ajaxSend",[C,h]),2===b)return C;h.async&&h.timeout>0&&(c=n.setTimeout((function(){C.abort("timeout")}),h.timeout));try{b=1,i.send(y,T)}catch(S){if(!(b<2))throw S;T(-1,S)}}else T(-1,"No Transport");function T(e,t,s,a){var l,d,y,_,x,T=t;2!==b&&(b=2,c&&n.clearTimeout(c),i=void 0,o=a||"",C.readyState=e>0?4:0,l=e>=200&&e<300||304===e,s&&(_=At(h,C,s)),_=Mt(h,_,C,l),l?(h.ifModified&&(x=C.getResponseHeader("Last-Modified"),x&&(v.lastModified[r]=x),x=C.getResponseHeader("etag"),x&&(v.etag[r]=x)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=_.state,d=_.data,y=_.error,l=!y)):(y=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(t||T)+"",l?g.resolveWith(p,[d,T,C]):g.rejectWith(p,[C,T,y]),C.statusCode(w),w=void 0,u&&f.trigger(l?"ajaxSuccess":"ajaxError",[C,h,l?d:y]),m.fireWith(p,[C,T]),u&&(f.trigger("ajaxComplete",[C,h]),--v.active||v.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],(function(e,t){v[t]=function(e,n,i,r){return v.isFunction(n)&&(r=r||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:r,data:n,success:i},v.isPlainObject(e)&&e))}})),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return v.isFunction(e)?this.each((function(t){v(this).wrapAll(e.call(this,t))})):(this[0]&&(t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e})).append(this)),this)},wrapInner:function(e){return v.isFunction(e)?this.each((function(t){v(this).wrapInner(e.call(this,t))})):this.each((function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v.isFunction(e);return this.each((function(n){v(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(){return this.parent().each((function(){v.nodeName(this,"body")||v(this).replaceWith(this.childNodes)})).end()}}),v.expr.filters.hidden=function(e){return!v.expr.filters.visible(e)},v.expr.filters.visible=function(e){return e.offsetWidth>0||e.offsetHeight>0||e.getClientRects().length>0};var Lt=/%20/g,Dt=/\[\]$/,Ot=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function Pt(e,t,n,i){var r;if(v.isArray(t))v.each(t,(function(t,r){n||Dt.test(e)?i(e,r):Pt(e+"["+("object"===typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==v.type(t))i(e,t);else for(r in t)Pt(e+"["+r+"]",t[r],n,i)}v.param=function(e,t){var n,i=[],r=function(e,t){t=v.isFunction(t)?t():null==t?"":t,i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=v.ajaxSettings&&v.ajaxSettings.traditional),v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,(function(){r(this.name,this.value)}));else for(n in e)Pt(n,e[n],t,r);return i.join("&").replace(Lt,"+")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&jt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!Z.test(e))})).map((function(e,t){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,(function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}})):{name:t.name,value:n.replace(Ot,"\r\n")}})).get()}}),v.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Ht=v.ajaxSettings.xhr();g.cors=!!Ht&&"withCredentials"in Ht,g.ajax=Ht=!!Ht,v.ajaxTransport((function(e){var t,i;if(g.cors||Ht&&!e.crossDomain)return{send:function(r,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!==typeof a.status?o(0,"error"):o(a.status,a.statusText):o($t[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!==typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(c){if(t)throw c}},abort:function(){t&&t()}}})),v.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return v.globalEval(e),e}}}),v.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),v.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain)return{send:function(i,r){t=v("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),a.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ft=[],Rt=/(=)\?(?=&|$)|\?\?/;v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ft.pop()||v.expando+"_"+ft++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",(function(e,t,i){var r,o,s,a=!1!==e.jsonp&&(Rt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Rt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Rt,"$1"+r):!1!==e.jsonp&&(e.url+=(gt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||v.error(r+" was not called"),s[0]},e.dataTypes[0]="json",o=n[r],n[r]=function(){s=arguments},i.always((function(){void 0===o?v(n).removeProp(r):n[r]=o,e[r]&&(e.jsonpCallback=t.jsonpCallback,Ft.push(r)),s&&v.isFunction(o)&&o(s[0]),s=o=void 0})),"script"})),v.parseHTML=function(e,t,n){if(!e||"string"!==typeof e)return null;"boolean"===typeof t&&(n=t,t=!1),t=t||a;var i=E.exec(e),r=!n&&[];return i?[t.createElement(i[1])]:(i=se([e],t,r),r&&r.length&&v(r).remove(),v.merge([],i.childNodes))};var Ut=v.fn.load;function Bt(e){return v.isWindow(e)?e:9===e.nodeType&&e.defaultView}v.fn.load=function(e,t,n){if("string"!==typeof e&&Ut)return Ut.apply(this,arguments);var i,r,o,s=this,a=e.indexOf(" ");return a>-1&&(i=v.trim(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"===typeof t&&(r="POST"),s.length>0&&v.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){v.fn[t]=function(e){return this.on(t,e)}})),v.expr.filters.animated=function(e){return v.grep(v.timers,(function(t){return e===t.elem})).length},v.offset={setOffset:function(e,t,n){var i,r,o,s,a,c,l,u=v.css(e,"position"),d=v(e),h={};"static"===u&&(e.style.position="relative"),a=d.offset(),o=v.css(e,"top"),c=v.css(e,"left"),l=("absolute"===u||"fixed"===u)&&(o+c).indexOf("auto")>-1,l?(i=d.position(),s=i.top,r=i.left):(s=parseFloat(o)||0,r=parseFloat(c)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+r),"using"in t?t.using.call(e,h):d.css(h)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){v.offset.setOffset(this,e,t)}));var t,n,i=this[0],r={top:0,left:0},o=i&&i.ownerDocument;return o?(t=o.documentElement,v.contains(t,i)?(r=i.getBoundingClientRect(),n=Bt(o),{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),v.nodeName(e[0],"html")||(i=e.offset()),i.top+=v.css(e[0],"borderTopWidth",!0),i.left+=v.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){var e=this.offsetParent;while(e&&"static"===v.css(e,"position"))e=e.offsetParent;return e||Ne}))}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return R(this,(function(e,i,r){var o=Bt(e);if(void 0===r)return o?o[t]:e[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):e[i]=r}),e,i,arguments.length)}})),v.each(["top","left"],(function(e,t){v.cssHooks[t]=Pe(g.pixelPosition,(function(e,n){if(n)return n=je(e,t),Le.test(n)?v(e).position()[t]+"px":n}))})),v.each({Height:"height",Width:"width"},(function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){v.fn[i]=function(i,r){var o=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===r?"margin":"border");return R(this,(function(t,n,i){var r;return v.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===i?v.css(t,n,s):v.style(t,n,i,s)}),t,o?i:void 0,o,null)}}))})),v.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},size:function(){return this.length}}),v.fn.andSelf=v.fn.addBack,i=[],r=function(){return v}.apply(t,i),void 0===r||(e.exports=r);var Yt=n.jQuery,Wt=n.$;return v.noConflict=function(e){return n.$===v&&(n.$=Wt),e&&n.jQuery===v&&(n.jQuery=Yt),v},o||(n.jQuery=n.$=v),v}))},1532:function(e,t,n){"use strict";n("670f")},1816:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tuwenlive-wrap"},[n("section",{staticClass:"tuwenlive-section"},[n("div",[n("h3",[e._v("图文直播：")]),n("live-switch",{on:{change:e.handleEnabledChanged},model:{value:e.enabled,callback:function(t){e.enabled=t},expression:"enabled"}}),n("span",{staticClass:"tuwenlive-tab-hint"},[e._v("开启后，直播观看页将开启图文直播tab")])],1)]),n("section",{staticClass:"tuwenlive-section tuwenlive-section-main"},[n("div",{staticClass:"tuwenlive-tabs"},[n("ul",{staticClass:"tuwenlive-tabs-menu"},[n("li",{class:["tuwenlive-tabs-title",{"tuwenlive-tabs-title-active":"post"===e.activeTab}],on:{click:function(t){return e.handleTabsChange("post")}}},[e._v("图文发布")]),n("li",{class:["tuwenlive-tabs-title",{"tuwenlive-tabs-title-active":"setting"===e.activeTab}],on:{click:function(t){return e.handleTabsChange("setting")}}},[e._v("图文设置")]),e.tuwenRecordTabEnabled?n("li",{class:["tuwenlive-tabs-title",{"tuwenlive-tabs-title-active":"record"===e.activeTab}],on:{click:function(t){return e.handleTabsChange("record")}}},[e._v("图文记录")]):e._e()]),n("div",{staticClass:"tuwenlive-tabs-content"},[n("tuwen-setting",{directives:[{name:"show",rawName:"v-show",value:"setting"===e.activeTab,expression:"activeTab === 'setting'"}],attrs:{"chat-domain":e.chatDomain}}),n("tuwen-post",{directives:[{name:"show",rawName:"v-show",value:"post"===e.activeTab,expression:"activeTab === 'post'"}],attrs:{tuwenEnabled:e.tuwenEnabled,enabledSound:e.enabledSound},on:{toRecord:e.handleToRecord}})],1)]),"record"===e.activeTab?n("tuwen-record"):e._e()],1),n("tuwen-confirm",{ref:"confirm",attrs:{contentLayout:"horizontal",contentTitle:e.confirm.contentTitle,contentSubtitle:e.confirm.contentSubtitle,confirmBtns:e.confirm.confirmBtns,customContent:e.confirm.customContent,contentHtml:e.confirm.contentHtml}})],1)},r=[],o=n("5530"),s=n("2f62"),a=n("cb8f1"),c=n("f1bf"),l=n("0d78"),u=n("1175"),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"live-delete-confirm"},[n("modal",{directives:[{name:"scrollUnique",rawName:"v-scrollUnique"}],attrs:{clickToClose:!1,name:e.name,width:e.modalWidth,height:"auto"}},[n("live-dialog",{attrs:{title:e.dialogTitle},on:{hide:function(t){return e.buttonControl("cancel")}}},[e.customContent?n("div",{staticClass:"custom-content",domProps:{innerHTML:e._s(e.contentHtml)}}):n("div",{class:["dialog-content",e.contentLayout+"-content"]},[n("p",[e._v(e._s(e.contentTitle))]),n("p",{staticClass:"content-subtitle"},[e._v(e._s(e.contentSubtitle))])]),n("div",{staticClass:"confirm-btn-group"},e._l(e.confirmBtns,(function(t,i){return n("button",{key:i,class:t.cls,attrs:{type:"button"},on:{click:function(n){return e.buttonControl(t.type)}}},[e._v(" "+e._s(t.title)+" ")])})),0)])],1)],1)},h=[],p=(n("c975"),n("b0c0"),n("a9e3"),n("d3b7"),n("20da")),f={name:"Confirm",props:{name:{default:"confirm"},dialogTitle:{type:[String,Number],default:"提示"},confirmBtns:{type:Array,default:function(){return[{type:"ensure",title:"确认",cls:"btn btn-primary"},{type:"cancel",title:"取消",cls:"btn btn-default"}]}},modalWidth:{type:String,default:"420px"},modalHeight:{type:String,default:"260px"},contentLayout:{type:String,default:"vertical",validator:function(e){return-1!==["vertical","horizontal"].indexOf(e)}},customContent:{type:Boolean,default:!1},contentTitle:String,contentSubtitle:String,contentHtml:String},methods:{buttonControl:function(e){this.hide(),this.$emit(e)},hide:function(){this.$modal.hide(this.name)},show:function(){var e=this;return this.$modal.show(this.name),new Promise((function(t){e.$on("ensure",t.bind(e,!0)),e.$on("cancel",t.bind(e,!1))}))}},components:{"live-dialog":p["a"]}},g=f,m=(n("0a31"),n("0c7c")),v=Object(m["a"])(g,d,h,!1,null,"499c991c",null),w=v.exports,y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("section",{staticClass:"tuwen-section-part"},[n("h3",{staticClass:"tuwen-section-title"},[e._v("头像设置")]),n("avatar-uploader",{attrs:{avatarImg:e.avatar},on:{success:e.handleAvatarChanged}})],1),n("section",{staticClass:"tuwen-section-part"},[n("h3",{staticClass:"tuwen-section-title"},[e._v("基础资料")]),n("div",{staticClass:"tuwen-form"},[n("div",{staticClass:"tuwen-form-field-wrap"},[n("span",{staticClass:"tuwen-form-label"},[e._v("直播头衔：")]),n("div",{staticClass:"tuwen-form-field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.actor,expression:"actor"}],class:e.actorInputClass,attrs:{name:"actor",type:"text",maxlength:"8"},domProps:{value:e.actor},on:{input:function(t){t.target.composing||(e.actor=t.target.value)}}}),n("span",[e._v(e._s(e.actor.length)+"/8")])]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.actorBadWord.length>0,expression:"actorBadWord.length > 0"}],staticClass:"badword"},[e._v("您的直播头衔中含有违规词，违规词为"+e._s(e.handleBadWordStr(e.actorBadWord)))])]),n("div",{staticClass:"tuwen-form-field-wrap"},[n("span",{staticClass:"tuwen-form-label"},[e._v("直播昵称：")]),n("div",{staticClass:"tuwen-form-field"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.nickname,expression:"nickname"}],class:e.nicknameInputClass,attrs:{name:"nickname",type:"text",maxlength:"8"},domProps:{value:e.nickname},on:{input:function(t){t.target.composing||(e.nickname=t.target.value)}}}),n("span",[e._v(e._s(e.nickname.length)+"/8")])]),n("span",{directives:[{name:"show",rawName:"v-show",value:e.nicknameBadWord.length>0,expression:"nicknameBadWord.length > 0"}],staticClass:"badword"},[e._v("您的直播昵称中含有违规词，违规词为"+e._s(e.handleBadWordStr(e.nicknameBadWord)))])]),n("div",{staticClass:"tuwen-form-field-wrap"},[n("button",{staticClass:"btn btn-primary btn-md",attrs:{type:"button"},on:{click:e.save}},[e._v("确认保存")])])])])])},_=[],b=(n("4160"),n("a15b"),n("baa5"),n("d81d"),n("fb6a"),n("498a"),n("159b"),n("96cf"),n("1da1")),x=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"avatar-uploader-wrap"},[n("span",{staticClass:"channel-basic-title cover-line-height"},[e._v("当前直播头像：")]),n("div",{staticClass:"channel-basic-main channel-basic-cover"},[n("img",{attrs:{src:e._f("formatImgUrl")(e.avatarImg)}}),n("div",[e._m(0),n("button",{staticClass:"btn btn-default-primary",attrs:{disabled:e.uploading},on:{click:e.handleClickUpload}},[e._v(e._s(e.uploadMsg))]),n("input",{ref:"sendImgForChat",staticClass:"avatar-file-input",attrs:{multiple:"",type:"file",name:"postImg",accept:"image/jpeg, image/jpg, image/png"},on:{change:e.setImgBlob}})])]),n("modal",{attrs:{name:"cutTuwenAvatar",clickToClose:!1,width:514,height:"auto"}},[n("live-dialog",{attrs:{title:"设置头像"},on:{hide:e.hide}},[n("div",{staticClass:"avatar-cut-wrap"},[n("div",{staticClass:"avatar-cut"},[n("div",{staticClass:"avatar-cut-contain",style:e.style},[n("vueCropper",{ref:"cropper",attrs:{img:e.imgBlob,full:!0,canScale:!1,canMove:!1,autoCrop:!0,fixedNumber:[1,1],original:!0,fixed:!0,autoCropWidth:150,autoCropHeight:150,info:!1},on:{imgLoad:e.imgLoad}})],1)]),n("div",{staticClass:"avatar-cut-button clearfix"},[n("label",{staticClass:"btn btn-default-primary btn-md",attrs:{type:"button"},on:{click:e.handleClickUpload}},[e._v("重新上传")]),n("button",{staticClass:"btn btn-default btn-md",attrs:{type:"button"},on:{click:e.hide}},[e._v("取消")]),n("button",{staticClass:"btn btn-primary btn-md",attrs:{type:"button"},on:{click:e.save}},[e._v("确认保存")])])])])],1),n("uploadImgSdk",{attrs:{"js-load-call-back":e.loadRongJs}})],1)},C=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("p",[e._v("为了保证显示效果，请上传 140 x 140 大小的图标， "),n("br"),e._v("支持jpg、jpeg、png格式，文件大小不超过 2M ")])}],T=(n("99af"),n("ed4d")),S=n("c429"),k={name:"avatar-uploader",data:function(){return{message:"上传头像",imgBlob:null,imgFile:null,imgElement:null,imgUrl:"",channelId:this.$route.params.id,imgCtrl:null,uploading:!1,style:{width:"400px",height:"270px"}}},computed:{uploadMsg:function(){return this.uploading?"上传中...":"上传头像"}},props:["avatarImg"],components:{"live-dialog":p["a"],vueCropper:T["a"],uploadImgSdk:S["a"]},methods:{setImgBlob:function(){var e=this.$refs.sendImgForChat;if(e.files&&e.files[0]){if(e.files[0].size/1024/1024>2)return this.$refs.sendImgForChat.value="",void this.$notify.warnMessage("文件过大, 请重新选择");this.imgFile=e.files[0]}},sendImgResult:function(e){var t=this,n=e.status,i=e.msg,r=e.uploadImgUrl;switch(n){case"start":this.uploading=!0;break;case"upLoadingSuccess":if(this.uploading=!1,this.imgUrl=r,this.imgFile&&this.imgFile.size>2097152)return this.$notify.warnMessage("文件过大, 请重新选择"),!1;var o=new FileReader;o.onload=function(e){var n=new Image;n.onload=function(){var i=t.calculateSize(n.width,n.height);t.style={width:"".concat(i.width,"px"),height:"".concat(i.height,"px"),top:"".concat((270-i.height)/2,"px")},t.imgBlob=e.target.result,t.showModal()},n.onerror=function(){t.$notify.warnMessage("当前图片已损坏，请重新上传")},n.src=e.target.result,t.imgElement=n},o.readAsDataURL(this.imgFile);break;case"fail":return this.uploading=!1,this.$notify.warnMessage(i),!1;case"upLoadingFail":return this.uploading=!1,this.$notify.warnMessage("上传头像失败"),!1;case"forbid":return this.uploading=!1,this.$notify.warnMessage("图片违规"),!1;default:return this.uploading=!1,this.$notify.warnMessage(i),!1}return this.$emit("setAvatar",e)},loadRongJs:function(){!this.imgCtrl&&this.$refs.sendImgForChat&&(this.imgCtrl=new UpLoadingImgForChat(this.$refs.sendImgForChat,{bucket:"liveimages",isChatRoom:!1,channelId:this.channelId,limit:1,source:"live-admin-setting"}),this.imgCtrl.subscript(this.sendImgResult))},handleClickUpload:function(){this.$refs.sendImgForChat.click()},calculateSize:function(e,t){var n,i,r=474/270,o=e/t;return r<o?(n=474,i=n/o):(i=270,n=i*o),{width:n,height:i}},hide:function(){this.hideModal()},save:function(){var e=this.$refs.cropper,t=e.cropW,n=e.cropH,i=e.scale,r=e.cropOffsertX,o=e.cropOffsertY,s=Math.max(Math.floor(r/i),0),a=Math.max(Math.floor(o/i),0),c=Math.floor(t/i),l=Math.floor(n/i),u="".concat(this.imgUrl,"?x-oss-process=image/crop,x_").concat(s,",y_").concat(a,",w_").concat(c,",h_").concat(l);this.hide(),this.$emit("success",u)},imgLoad:function(e){if("success"===e){var t=this.$refs.cropper,n=t.w,i=t.trueWidth,r=t.trueHeight;this.$refs.cropper.scale=n/i,this.$refs.cropper.x=i/-2*(1-this.$refs.cropper.scale),this.$refs.cropper.y=r/-2*(1-this.$refs.cropper.scale)}},showModal:function(){this.$modal.show("cutTuwenAvatar")},hideModal:function(){this.$modal.hide("cutTuwenAvatar")}}},E=k,I=(n("aa3d"),Object(m["a"])(E,x,C,!1,null,null,null)),A=I.exports,M={name:"TuwenSetting",data:function(){return{id:"",actor:"",nickname:"",actorBadWord:[],nicknameBadWord:[],avatar:"",channelId:this.$route.params.id,originData:{},actorInputClass:["form-control"],nicknameInputClass:["form-control"]}},props:["chatDomain"],components:{"avatar-uploader":A},methods:{handleBadWordStr:function(e){return e&&e.map((function(e){return"“".concat(e,"”")})).join(",")},handleAvatarChanged:function(e){this.avatar=e,this.updateAvatar()},fetchTuwenliveSetting:function(){var e=this;u["a"].getTuwenliveSetting(this.channelId).then((function(t){var n=t.data;n=n.data,e.avatar=n.avatar||"",e.actor=n.actor||"",e.id=n.id||"",e.nickname=n.nickname||"",e.originData=n})).catch((function(t){e.$notify.codeError(t.code)}))},updateAvatar:function(){var e=this,t={channelId:this.channelId,avatar:this.avatar,actor:this.originData&&this.originData.actor,nickname:this.originData&&this.originData.nickname};u["a"].updateTuwenSetting(Object.assign({},t,{id:this.id})).then((function(t){var n=t.data;if(0!==n.code)throw t.data;e.$notify.successMessage("更改成功"),e.originData=Object.assign({},e.originData,{avatar:e.avatar})})).then((function(){u["a"].setImageTextMsg(t,e.chatDomain.chatApiDomain)})).catch((function(t){e.$notify.codeError(t.code)}))},save:function(){var e=this;return Object(b["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n={channelId:e.channelId,avatar:e.originData&&e.originData.avatar,actor:e.actor,nickname:e.nickname},i=!1,e.nickname.trim().length<1&&(e.$notify.warnMessage("直播昵称不能为空"),i=!0),e.actorInputClass=["form-control"],e.actorBadWord=[],e.nicknameInputClass=["form-control"],e.nicknameBadWord=[],!i){t.next=9;break}return t.abrupt("return");case 9:u["a"].updateTuwenSetting(Object.assign({},n,{id:e.id})).then((function(t){var i=t.data,r=i.code,o=i.message,s=i.data,a=e;if(0!==r){if(7570===r){var c=o.slice(o.lastIndexOf(":")+1,o.length);switch(c){case"actor":return s.forEach((function(e){a.actorBadWord.push(e)})),void(a.actorInputClass=["badword-input","form-control"]);case"nickname":return s.forEach((function(e){a.nicknameBadWord.push(e)})),void(a.nicknameInputClass=["badword-input","form-control"]);default:break}return}throw t.data}e.$notify.successMessage("保存成功"),u["a"].setImageTextMsg(n,e.chatDomain.chatApiDomain),e.originData=Object.assign({},e.originData,{actor:e.actor,nickname:e.nickname})})).catch((function(t){e.$notify.codeError(t.code)}));case 10:case"end":return t.stop()}}),t)})))()}},mounted:function(){this.fetchTuwenliveSetting()}},L=M,D=(n("f40c"),Object(m["a"])(L,y,_,!1,null,"9d4287d0",null)),O=D.exports,N=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("section",{staticClass:"tuwenlive-part"},[e.$tuwenVoiceTextEnabled&&"ppt"!==e.scene?n("div",{staticClass:"tuwenlive-part-enable-sound"},[n("h3",{staticClass:"tuwenlive-part-enable-sound__title"},[e._v("实时语音转文本")]),n("live-switch",{model:{value:e.enabledSoundBySelf,callback:function(t){e.enabledSoundBySelf=t},expression:"enabledSoundBySelf"}}),n("span",{staticClass:"tuwenlive-tab-hint"},[e._v("请使用最新版直播助手直播")])],1):e._e(),n("div",{directives:[{name:"show",rawName:"v-show",value:e.enabledSoundBySelf&&"ppt"!==e.scene,expression:"enabledSoundBySelf && scene !== 'ppt'"}],staticClass:"tuwenlive-part-sound-content"},[e.soundList.length||e.inLive||e.liveDone?n("div",[n("div",{staticClass:"tuwenlive-part-sound-content__live-status"},[e._v(" 直播状态： "),n("span",{class:"tuwenlive-part-sound-content__live-status__"+(e.inLive?"live":"end")},[e._v(e._s(e.inLive?"直播中":"直播已结束"))])]),n("div",{ref:"soundContentTextList",staticClass:"tuwenlive-part-sound-content__text",on:{copy:e.handleCopy,scroll:e.handleScrollTextList}},[n("ul",e._l(e.soundList,(function(t){var i=t.message,r=t.time;return n("li",{key:r,class:["tuwenlive-part-sound-content__list",{"tuwenlive-part-sound-content__list-active":e.copyedText===String(r)}],attrs:{"data-id":r}},[e._v(e._s(e.$utils.formatSecond(Math.ceil(r/1e3)))+" "+e._s(i))])})),0)]),n("div",{staticClass:"tuwenlive-part-sound-content__tip"},[e._v(" "+e._s(e.inLive?"正在转换中...":"")+" "),e.inLive?e._e():n("span",[e._v(" 当前直播已结束，刷新页面后将清空本窗口内容，若有需要请到 "),n("a",{attrs:{href:"javascript:;"},on:{click:function(t){return e.$emit("toRecord")}}},[e._v("图文记录")]),e._v(" 中查看本次记录 ")])]),n("div",{directives:[{name:"show",rawName:"v-show",value:!e.inBottom,expression:"!inBottom"}],staticClass:"tuwenlive-part-sound-content__tip-color tuwenlive-part-sound-content__new",on:{click:e.handleClickNewSoundBtn}},[e._v("下方有新消息")]),e.socketIsNomal?e._e():n("div",{staticClass:"tuwenlive-part-sound-content__tip-color tuwenlive-part-sound-content__no-nomal"},[e._v("网络异常")])]):n("div",{staticClass:"tuwenlive-part-sound-content__no"})]),n("div",{ref:"editor",staticClass:"editor-wrap-content",staticStyle:{height:"326px"},attrs:{id:"vueEditor"}}),n("div",{staticClass:"btn-wrap"},[n("image-uploader",{attrs:{disableAdd:!e.tuwenEnabled}}),e.tuwen.id?n("div",[n("button",{staticClass:"btn btn-default btn-md",attrs:{type:"button"},on:{click:e.cancelSubmit}},[e._v("取消")]),n("button",{staticClass:"btn btn-primary btn-md",attrs:{type:"button"},on:{click:e.submit}},[e._v("发布修改")])]):n("div",[n("button",{staticClass:"btn btn-primary btn-md",class:{disablePublish:!e.tuwenEnabled},attrs:{type:"button"},on:{click:e.submit}},[e._v("发布图文")])])],1)]),n("tuwen-preview",{key:e.tuwenliveVersion,attrs:{previewEnabled:e.tuwenEnabled},on:{onImgClick:e.tuwenImgClicked,onHandleTuwen:e.handleTuwen,socketConnect:e.handleSocketConnect,speechTranscription:e.handleSpeechTranscription}}),e.imgPreview?n("image-previewer",{attrs:{index:e.imgPreview.index,images:e.imgPreview.images},on:{"close-preview":e.closePreviewer}}):e._e(),n("tuwenliveHint",{ref:"tuwenlive-hint"})],1)},j=[],P=(n("4de4"),n("4d63"),n("ac1f"),n("25f0"),n("5319"),n("1f76")),$=n("5e38"),H=n.n($),F=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"img-uploader"},[n("button",{staticClass:"btn btn-default-primary",class:{disableAdd:e.disableAdd},on:{click:e.addImg}},[n("i",{staticClass:"iconfont icon-icon-Plus"}),e._v(" 添加图片 ")]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showUploader,expression:"showUploader"}],staticClass:"img-wrap"},[n("div",{staticClass:"img-wrap-header"},[n("h1",[e._v("添加图片")]),n("div",{staticClass:"desc"},[n("span",[e._v("最多添加9张")]),n("button",{staticClass:"btn",attrs:{disabled:!e.images.length||e.isUploading},on:{click:function(t){return e.deleteImg(-1)}}},[e._v("一键删除")])]),n("button",{staticClass:"btn btn-close-wrap",on:{click:e.hideImgUploader}},[n("i",{staticClass:"btn-close-icon"})])]),n("div",{staticClass:"img-list"},[e._l(e.images,(function(t,i){return n("div",{key:i+t.status,staticClass:"upload-img",attrs:{draggable:"true"},on:{dragstart:function(t){return e.dragStart(t,i)},dragend:function(t){return e.dragEnd(t,i)},dragover:function(e){e.preventDefault()},drop:function(t){return t.preventDefault(),e.dragDrop(t,i)}}},[t.showClose&&!t.isDrag?n("div",{staticClass:"btn-remove-img",on:{click:function(t){return e.deleteImg(i)}}},[n("i",{staticClass:"iconfont icon-icon-Close"})]):e._e(),t.tip?n("div",{staticClass:"mask status-mask"},[n("img",{attrs:{src:t.tip.icon,width:t.tip.size.width+"px",height:t.tip.size.height+"px"},on:{click:function(n){return e.reuploadImg(t)}}}),n("p",[e._v(e._s(t.tip.title))])]):e._e(),t.isDrag?n("div",{staticClass:"mask drag-mask"}):e._e(),t.imgSrc||t.uploadImgUrl?n("div",{staticClass:"img",style:{backgroundImage:"url("+(t.imgSrc||t.uploadImgUrl)+")"}}):e._e()])})),n("div",{directives:[{name:"show",rawName:"v-show",value:9!==e.images.length,expression:"images.length !== 9"}],staticClass:"upload-img send-img"},[e._m(0),n("input",{ref:"wuwenImagInput",staticClass:"tuwen-imgs",attrs:{multiple:"",type:"file",name:"postImg",accept:"image/jpeg,image/jpg,image/png,image/gif"}})])],2)]),n("uploadImgSdk",{attrs:{"js-load-call-back":e.loadRongJs}}),n("tuwenlive-hint",{ref:"tuwenlive-hint"})],1)},R=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"btn-add-img"},[n("i",{staticClass:"iconfont icon-icon-Plus"})])}];n("a4d3"),n("b64b");function U(e,t){if(null==e)return{};var n,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||(r[n]=e[n]);return r}function B(e,t){if(null==e)return{};var n,i,r=U(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)n=o[i],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var Y,W=n("d074"),X=n.n(W),q=n("c221"),z=n.n(q),G=n("2ea2"),V=n.n(G),J=n("5401"),Q=n.n(J),K={start:{icon:X.a,title:"上传中",size:{width:30,height:6}},upLoadingSuccess:{icon:z.a,title:"上传成功",size:{height:16,width:16}},fail:{icon:V.a,title:"文件错误",size:{height:16,width:16}},forbid:{icon:V.a,title:"图片违规",size:{height:16,width:16}},upLoadingFail:{icon:Q.a,title:"重新上传",size:{height:16,width:16}}},Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tuwenlive-hint"},[n("modal",{attrs:{clickToClose:!1,name:"tuwenlive-hint",height:"auto"}},[n("live-dialog",{attrs:{title:"提示"},on:{hide:e.hide}},[n("main",{staticClass:"tuwenlive-hint-content"},[n("section",[n("h4",{staticClass:"tuiguang-tips"},[e._v("功能暂未开启，请联系客服"),n("span",{staticClass:"highLight",on:{click:e.openTuwenLive}},[e._v("开通")])]),n("div",{ref:"open-tuwenlive-btn",staticStyle:{display:"none"},attrs:{"data-bury-id":"openTuwenliveBtn"}})])]),n("section",{staticClass:"tuwenlive-hint-footer",attrs:{slot:"footer"},slot:"footer"},[n("div",{staticClass:"tuwenlive-hint-btn-group clearfix"},[n("button",{staticClass:"btn btn-md btn-default",on:{click:e.cancel}},[e._v("知道了")])])])])],1)],1)},ee=[],te={name:"tuwenlive-hint",components:{"live-dialog":p["a"]},computed:{isCustom:function(){return this.$store.state.user.userInfo.customEnabled}},mounted:function(){},methods:{openTuwenLive:function(){this.$utils.triggerEvent(this.$refs["open-tuwenlive-btn"],"click"),"Y"!==this.isCustom&&this.$Service.show()},hide:function(){this.$modal.hide("tuwenlive-hint")},show:function(){this.$modal.show("tuwenlive-hint")},cancel:function(){this.hide()}}},ne=te,ie=(n("1532"),Object(m["a"])(ne,Z,ee,!1,null,"662ff7f6",null)),re=ie.exports,oe={name:"imageUploader",components:{uploadImgSdk:S["a"],"tuwenlive-hint":re},props:{disableAdd:{type:Boolean,default:!0}},data:function(){return{imgCtrl:null}},computed:Object(o["a"])({},Object(s["d"])({images:function(e){return e.tuwen.images},isUploading:function(e){return e.tuwen.isUploading},showUploader:function(e){return e.tuwen.showUploader}})),watch:{images:function(e){var t=e.filter((function(e){return"start"!==e.status}));this.imgCtrl&&(this.imgCtrl.currentUploadNum=t.length)}},methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["updateTuwenInfo","uploadTuwenImage","clearUploadImage","exchangeImgIndex"])),{},{addImg:function(){this.disableAdd?this.$refs["tuwenlive-hint"].show():this.images.length?this.updateTuwenInfo({showUploader:!0}):(this.initalUpload=!0,this.$refs.wuwenImagInput.click())},hideImgUploader:function(){this.updateTuwenInfo({showUploader:!1})},deleteImg:function(e){this.clearUploadImage(e)},reuploadImg:function(e){"upLoadingFail"===e.status&&this.imgCtrl.addNewImg(e.id)},dragStart:function(e,t){e.dataTransfer.setData("dragIndex",t),this.uploadTuwenImage(Object(o["a"])(Object(o["a"])({},this.images[t]),{},{isDrag:!0}))},dragEnd:function(e,t){this.uploadTuwenImage(Object(o["a"])(Object(o["a"])({},this.images[t]),{},{isDrag:!1})),e.dataTransfer.clearData()},dragDrop:function(e,t){var n=Number(e.dataTransfer.getData("dragIndex"));n&&t===n||this.exchangeImgIndex({fromIndex:n,toIndex:t})},sendImgResult:function(e){var t=this,n=e.status,i=e.msg,r=B(e,["status","msg"]),s=!1;switch(this.initalUpload&&(this.updateTuwenInfo({showUploader:!0}),this.initalUpload=!1),n){case"start":break;case"upLoadingSuccess":setTimeout((function(){t.uploadTuwenImage(Object(o["a"])(Object(o["a"])({},r),{},{status:"finished",tip:null,showClose:!0}))}),2e3);break;case"fail":this.$notify.warnMessage(e.msg),s=!0;break;case"forbid":s=!0;break;case"upLoadingFail":s=!0,this.$notify.warnMessage(i);break;default:break}this.updateTuwenInfo({isUploading:this.imgCtrl.isUploading}),this.uploadTuwenImage(Object(o["a"])(Object(o["a"])({},r),{},{status:n,showClose:s,tip:K[n]||null}))},loadRongJs:function(){!this.imgCtrl&&this.$refs.wuwenImagInput&&(this.imgCtrl=new UpLoadingImgForChat(this.$refs.wuwenImagInput,{isChatRoom:!1,bucket:"polyvtmp",channelId:this.$route.params.id,limit:9,reUploadTimes:5,reUploadInterval:3e3,isCompareSize:!0,source:"live-admin-setting"}),this.imgCtrl.subscript(this.sendImgResult))}})},se=oe,ae=(n("0653"),Object(m["a"])(se,F,R,!1,null,"350c493e",null)),ce=ae.exports,le=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",[e.tuwenTotal>0?n("div",{staticClass:"tuwen-preview-btns"},[n("button",{staticClass:"btn btn-default-primary btn-small",on:{click:e.download}},[e._v("下载图文")]),n("button",{staticClass:"btn btn-default btn-small btn-clear",on:{click:e.clearAll}},[e._v("删除所有")])]):e._e(),n("div",{staticClass:"tuwen-preview-wrap"},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.comeMore,expression:"comeMore"}],staticClass:"btn-more-content",on:{click:e.seeMore}},[e._v("有更多内容"),n("i")]),n("div",{ref:"tuwenList",staticClass:"tuwen-list",attrs:{id:"tuwen-container"},on:{scroll:e.listScroll,click:e.tapTuwenContainer}})]),n("a",{ref:"tuwenDownload",staticClass:"tuwen-download",attrs:{href:e.docUrl,target:"__blank",download:e.channelId+"_tuwen.docx"}}),n("tuwenlive-hint",{ref:"tuwenlive-hint"})],1)},ue=[],de=(n("1276"),n("ade3")),he=n("1157"),pe=n.n(he),fe=n("600a"),ge=n.n(fe),me=n("3fc6"),ve=n("1d65"),we=15,ye={name:"tuwenPreview",props:{previewEnabled:{type:Boolean,default:!1}},components:{"tuwenlive-hint":re},data:function(){return{channelId:this.$route.params.id,chatInited:!1,tuwenTotal:0,comeMore:!1,scrollTop:0}},mixins:[me["a"]],computed:Object(o["a"])({},Object(s["d"])({isLive:function(e){return"Y"===e.monitor.detail.status},detail:function(e){return e.monitor.detail},docUrl:function(e){return e.tuwen.docUrl},isTransmitChannel:function(e){return"transmit"===e.channel.detail.type}})),watch:{detail:function(){var e=this;this.$nextTick((function(){e.initChat()}))}},chatEvent:(Y={},Object(de["a"])(Y,ve["a"].CREATE_IMAGE_TEXT,(function(e,t){var n=t.data;n.id=Number(n.id),n.isEdit?this.tuwenLive.editMsg(n):this.tuwenLive.newMsg(n),this.tuwenLive.updateTotal(n.total)})),Object(de["a"])(Y,ve["a"].DELETE_IMAGE_TEXT,(function(e,t){var n=t.data;n.id?(this.tuwenLive.delMsg(Number(n.id)),this.tuwenLive.updateTotal(n.total)):(this.tuwenLive.delAllMsgs(),this.tuwenLive.updateTotal(0))})),Object(de["a"])(Y,ve["a"].SET_TOP_IMAGE_TEXT,(function(e,t){var n=t.data;"Y"===n.top?this.tuwenLive.setSticky(n.content):this.tuwenLive.cancelSticky(Number(n.id))})),Object(de["a"])(Y,ve["a"].SET_IMAGE_TEXT_MSG,(function(e,t){var n=t.data;this.tuwenLive.updateSetting(n)})),Object(de["a"])(Y,ve["a"].CONNECT,(function(){console.log("##### socket 连接");var e=this.tuwenLive&&this.disconnected;this.$emit("socketConnect",e),e&&(console.log(this.tuwenLive),this.tuwenLive.destroy(),this.tuwenLive=null,this.tuwenLiveInit(),this.disconnected=!1)})),Object(de["a"])(Y,ve["a"].DISCONNECT,(function(){console.log("##### socket 断开"),this.disconnected=!0})),Object(de["a"])(Y,ve["a"].SPEECH_TRANSCRIPTION,(function(e,t){this.$emit("speechTranscription",t)})),Y),methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["showConfirm","downloadTuwen"])),{},{tapTuwenContainer:function(){this.isTapTuwen=!0},initChat:function(){var e=this.detail,t=e.userId,n=e.sign,i=e.roomSign,r=e.roomIds,o=e.chatAdmin,s=e.chatToken;if(!this.chatInited&&t){var a="";r&&(a=r.split(",")[0]),this.setup({userId:t,sign:n,roomSign:i,roomIds:r,pic:o.avatar,userName:o.nickname,actor:o.actorm,roomName:this.channelId,roomId:a,userType:"manager",isTransmitChannel:this.isTransmitChannel,chatToken:s}),this.chatInited=!0}},initEvent:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.$options.chat;return!!n&&(Object.keys(t).forEach((function(i){n.on(i,t[i].bind(e))})),!0)},listScroll:function(e){var t=e.target.scrollTop;this.scrollTop=t,this.comeMore&&t<=0&&(this.comeMore=!1)},download:function(){var e=this;return Object(b["a"])(regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(n=function(){var t='\n            <div style="color: #516E79; font-size: 14px;">\n              <p>转换格式中…</p>\n              <p style="margin-top: 12px;font-size: 12px;width: 161px;">图文转换Word需要一定的时间 请稍等一会~</p>\n            </div>\n          ';e.showConfirm({show:!0,customContent:!0,contentHtml:t,confirmBtns:[{type:"ensure",title:"知道了",cls:"btn btn-default"}]})},!e.isDownloading){t.next=4;break}return n(),t.abrupt("return");case 4:return e.isDownloading=!0,n(),t.prev=6,t.next=9,e.downloadTuwen(e.channelId);case 9:i=t.sent,e.showConfirm({show:!1}),i&&e.$refs.tuwenDownload.click(),t.next=18;break;case 14:t.prev=14,t.t0=t["catch"](6),e.$notify.errorMessage("转换格式失败"),console.error(t.t0);case 18:return t.prev=18,e.isDownloading=!1,t.finish(18);case 21:case"end":return t.stop()}}),t,null,[[6,14,18,21]])})))()},clearAll:function(){if(this.isLive)this.showConfirm({show:!0,customContent:!0,contentHtml:"<p>正在直播，无法删除所有图文。</p>",confirmBtns:[{type:"ensure",title:"知道了",cls:"btn btn-default"}]});else{var e=this;this.showConfirm({show:!0,contentTitle:"确定删除所有图文内容？",contentSubtitle:"删除后不可恢复",confirmBtns:[{type:"ensure",title:"确认删除",cls:"btn btn-danger"},{type:"cancel",title:"取消",cls:"btn btn-default"}],ensure:function(){e.$emit("onHandleTuwen",{action:"del"})}})}},seeMore:function(){var e=this;this.tuwenLive.scrollToLatest().then((function(){e.comeMore=!1,e.$refs.tuwenList.scrollTop-=we}))},tuwenLiveInit:function(){var e=this,t=new ge.a({container:pe()("#tuwen-container"),$:pe.a,channelId:this.$route.params.id,dispMode:1,isEditMode:!0,apiURL:"/v2/channel/tuwen/content/list.do?channelId=".concat(e.$route.params.id),events:{imgclick:function(t){e.$emit("onImgClick",t)},edit:function(n){if(console.log(n.action),e.previewEnabled||"edit"!==n.action&&"setSticky"!==n.action){if("setSticky"===n.action){var i=t.stickyCount();if(i>=3)return void e.$notify.warnMessage("最多置顶3条图文，请先取消其他置顶")}e.$emit("onHandleTuwen",n)}else e.$refs["tuwenlive-hint"].show()},totalchange:function(t){e.tuwenTotal=t.total},newmsg:function(){e.scrollTop>0?e.comeMore=!0:e.tuwenLive.scrollToLatest().then((function(){e.$refs.tuwenList.scrollTop-=we}))}}});t.init(),this.tuwenLive=t}}),mounted:function(){var e=this;this.initChat(),this.tuwenLiveInit(),document.body.onclick=function(){e.isTapTuwen||e.tuwenLive.hideAllEditMenu(),e.isTapTuwen=!1}}},_e=ye,be=(n("5a71"),Object(m["a"])(_e,le,ue,!1,null,"61db155d",null)),xe=be.exports,Ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"image-previewer"},[n("div",{staticClass:"image-background"}),n("div",{staticClass:"image-previewer-content",staticStyle:{"-moz-user-select":"none","-webkit-user-select":"none"},on:{click:e.closePreview}},[n("div",{staticClass:"image-previewer-btn image-previewer-btn-prev",on:{click:function(t){return t.stopPropagation(),e.prevImg(t)}}},[n("span",[e._v("<")])]),n("div",{staticClass:"image-previewer-btn image-previewer-btn-next",on:{click:function(t){return t.stopPropagation(),e.nextImg(t)}}},[n("span",[e._v(">")])]),n("div",{staticClass:"image-previewer-btn image-previewer-btn-close",on:{click:e.closePreview}},[n("span",[e._v("X")])]),n("img",{staticClass:"viewing-image",style:e.imageStyle,attrs:{src:e.images[e.curr],alt:"大图预览"},on:{click:function(e){e.stopPropagation()}}})])])},Te=[],Se={maxWidth:"".concat(document.body.clientWidth-100,"px"),maxHeight:"".concat(document.body.clientHeight-100,"px")},ke={name:"imagePreviewer",props:{index:Number,images:{type:Array}},data:function(){return{curr:null,imageStyle:Se}},watch:{index:function(e){this.curr=e}},methods:{getImageSize:function(e){var t=new Image;return t.src=e,{width:t.width,height:t.height}},prevImg:function(){0===this.curr?this.$notify.warnMessage("已经是第1张了"):this.curr-=1},nextImg:function(){this.curr===this.images.length-1?this.$notify.warnMessage("已经是最后1张了"):this.curr+=1},closePreview:function(){this.$emit("close-preview"),this.scrollBody()},noScrollBody:function(){var e=document.body;e.style.overflow="hidden"},scrollBody:function(){var e=document.body;e.style.overflow="scroll"}},mounted:function(){this.curr=this.index,this.noScrollBody()}},Ee=ke,Ie=(n("eec5"),Object(m["a"])(Ee,Ce,Te,!1,null,"561247a6",null)),Ae=Ie.exports,Me={css:{whiteList:{"font-weight":!0,"font-style":!0}},whiteList:{p:[],br:[],b:["style"],i:["style"]},stripIgnoreTag:!0},Le={noneTextAndImg:"请输入直播内容，再发布",hasForbidImg:"存在违规图片，请删除后再发布",isUploading:"图片正在上传请稍后发布",rawTextExceed:"文字超过2000限制"},De=!1,Oe={name:"TuwenPost",props:{tuwenEnabled:{type:Boolean,default:!1},enabledSound:{type:Boolean,default:!1}},inject:["tuwenliveVersion"],components:{ImageUploader:ce,TuwenPreview:xe,ImagePreviewer:Ae,tuwenliveHint:re,liveSwitch:l["a"]},data:function(){return{channelId:this.$route.params.id,chatInit:!1,imgPreview:null,enabledSoundBySelf:this.enabledSound,liveStatus:"end",liveDone:!1,soundList:[],inBottom:!0,copyedText:"",socketIsNomal:!0}},computed:Object(o["a"])(Object(o["a"])({},Object(s["d"])({tuwen:function(e){return e.tuwen},text:function(e){return e.tuwen.text},rawText:function(e){return e.tuwen.rawText},scene:function(e){return e.channel.detail.scene}})),{},{inLive:function(){return"live"===this.liveStatus},detail:function(){return this.$store.state.channel.detail}}),watch:{text:function(e){e?this.editor.$txt.html(e):this.editor.$txt.html("<p><br></p>")},rawText:function(e){this.editor&&!e&&this.editor.$txt.html("<p><br></p>")},enabledSoundBySelf:function(e){this.updateSoundEnabled({channelId:this.channelId,enabled:e?"Y":"N"}),this.getLiveStatus(!e),e&&this.getSoundData(1)},liveStatus:function(e,t){"end"===e&&"live"===t&&(this.liveDone=!0)},enabledSound:function(e){this.enabledSoundBySelf=e}},mounted:function(){var e=this;this.editorInit(),setTimeout((function(){De||(e.socketIsNomal=!1)}),5e3),this.enabledSoundBySelf&&this.getLiveStatus()},beforeDestroy:function(){Object(P["a"])("wangEditor"),Object(P["a"])("jQuery")},methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["submitTuwen","updateTuwenInfo","clearAllInfo","deleteTuwen","deleteAllTuwen","topTuwen","showConfirm","updateSoundEnabled","getStreamStatus","getSoundDataInLive"])),{},{editorInit:function(){var e=this;return Object(b["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,Object(P["b"])("jQuery");case 2:return t.next=4,Object(P["b"])("wangEditor");case 4:n=t.sent,n.config.printLog=!1,e.editor=new n(e.$refs.editor),e.editor.config.menus=["bold","italic"],e.editor.config.menuFixed=!1,e.editor.config.pasteFilter=!0,e.tuwenEnabled||document.getElementById("vueEditor").setAttribute("contenteditable","false"),e.editor.config.pasteText=!0,e.editor.onchange=function(){e.updateTuwenInfo({rawText:e.editor.$txt.text()})},e.editor.create();case 14:case"end":return t.stop()}}),t)})))()},cancelSubmit:function(){this.clearAllInfo()},submit:function(){var e=this;return Object(b["a"])(regeneratorRuntime.mark((function t(){var n,i,r,o,s,a,c,l,u,d,h,p;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(e.tuwenEnabled){t.next=3;break}return e.$refs["tuwenlive-hint"].show(),t.abrupt("return");case 3:if(n=e.tuwen,i=n.images,r=n.isUploading,o=n.id,s=n.top,a=e.dealTuwenHtml(e.editor.$txt.html()),c=e.editor.$txt.text(),l=[],u=i.filter((function(e){return"upLoadingSuccess"===e.status||"finished"===e.status})),d=i.filter((function(e){return"forbid"===e.status})),l=u.length?u:i,h="",h=c.length>2e3?"rawTextExceed":h,h=r?"isUploading":h,h=d.length&&d.length===i.length?"hasForbidImg":h,h=c.replace(/\s*/g,"")||l.length?h:"noneTextAndImg",!h){t.next=18;break}return e.$notify.warnMessage(Le[h]),t.abrupt("return");case 18:if(t.prev=18,!e.isSubmiting){t.next=21;break}return t.abrupt("return");case 21:return e.isSubmiting=!0,t.next=24,e.submitTuwen({id:o,top:s,text:c?a:"",images:l.map((function(e){return e.uploadImgUrl})),channelId:e.channelId});case 24:e.$notify.successMessage("发布成功"),window.scrollTo(0,120),t.next=38;break;case 28:if(t.prev=28,t.t0=t["catch"](18),!t.t0.code||7570!==t.t0.code){t.next=37;break}return e.$notify.warnMessage("内容含违规词，请修改后发布"),p=a,t.t0.data.forEach((function(e){var t=new RegExp("(&nbsp;)?".concat(e),"g");p=p.replace(t,'&nbsp;<span style="background: red;">'.concat(e,"</span>"))})),p===e.tuwen.text&&(p+=" "),e.updateTuwenInfo({text:p}),t.abrupt("return");case 37:e.$notify.errorMessage("发布失败");case 38:return t.prev=38,e.isSubmiting=!1,t.finish(38);case 41:case"end":return t.stop()}}),t,null,[[18,28,38,41]])})))()},tuwenImgClicked:function(e){var t=e.currentIndex,n=e.imgs;this.imgPreview={index:t,images:n}},closePreviewer:function(){this.imgPreview=null},handleTuwen:function(e){var t=e.action,n=e.msg;switch(t){case"edit":this.editTextAndImages(n);break;case"del":this.delTuwen(n);break;case"setSticky":this.stickyTuwen(!0,n);break;case"cancelSticky":this.stickyTuwen(!1,n);break;default:break}},editTextAndImages:function(e){var t=this,n=e.id,i=e.images,r=e.text,o=e.top,s=function(){var e=i.map((function(e,t){return{uploadImgUrl:e,status:"finished",showClose:!0,id:t+e}}));t.updateTuwenInfo({id:n,top:o,text:r,images:e,showUploader:e.length>0})};this.tuwen.images.length||this.tuwen.rawText?this.showConfirm({show:!0,customContent:!0,contentHtml:"修改将清空正在编辑的图文，确定修改？",ensure:function(){return Object(b["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:s();case 1:case"end":return e.stop()}}),e)})))()}}):s()},delTuwen:function(e){var t=this;return Object(b["a"])(regeneratorRuntime.mark((function n(){var i,r;return regeneratorRuntime.wrap((function(n){while(1)switch(n.prev=n.next){case 0:if(e){n.next=11;break}return n.prev=1,n.next=4,t.deleteAllTuwen({channelId:t.channelId});case 4:t.$notify.successMessage("删除所有成功"),n.next=10;break;case 7:n.prev=7,n.t0=n["catch"](1),t.$notify.errorMessage("删除所有失败");case 10:return n.abrupt("return");case 11:i=e.id,r=t,t.showConfirm({show:!0,contentTitle:"确定删除当前图文内容？",confirmBtns:[{type:"ensure",title:"确认删除",cls:"btn btn-danger"},{type:"cancel",title:"取消",cls:"btn btn-default"}],ensure:function(){return Object(b["a"])(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,r.deleteTuwen({channelId:r.channelId,id:i});case 3:r.$notify.successMessage("删除成功"),e.next=9;break;case 6:e.prev=6,e.t0=e["catch"](0),r.$notify.errorMessage("删除失败");case 9:case"end":return e.stop()}}),e,null,[[0,6]])})))()}});case 14:case"end":return n.stop()}}),n,null,[[1,7]])})))()},stickyTuwen:function(e,t){var n=e?"Y":"N";t.top=n,this.topTuwen({channelId:this.channelId,id:t.id,top:n,content:t})},dealTuwenHtml:function(e){var t=new H.a.FilterXSS(Me),n=t.process(e),i=/(<p>(<br>|&nbsp;|\s)*<\/p>)*$/;return n.replace(i,"")},handleClickNewSoundBtn:function(){var e=this.$refs.soundContentTextList;e&&(e.scrollTo(0,e.scrollHeight),this.inBottom=!0)},handleCopy:function(e){var t=e.target,n=t.getAttribute("data-id");this.copyedText=String(n)},handleSocketConnect:function(){console.log("socket reconnect"),De=!0,this.socketIsNomal=!0},handleSpeechTranscription:function(e){var t=this;this.enabledSoundBySelf&&(this.soundList.push(e),setTimeout((function(){var e=t.$refs.soundContentTextList,n=e.scrollHeight,i=e.scrollTop,r=e.clientHeight,o=i+r-n,s=o>-50&&o<2;t.inBottom=s,s&&e.scrollTo(0,n)}),0))},getLiveStatus:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];clearInterval(this.getLiveStatus.interval),t||(this.getLiveStatus.interval=setInterval(Object(b["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.getStreamStatus({stream:e.detail.streamName});case 2:n=t.sent,n=n.data.replace(/\s/g,""),e.liveStatus=n;case 5:case"end":return t.stop()}}),t)}))),2e3))},getSoundData:function(e){var t=this,n=!1;if(void 0===e){if(this.getSoundData.isDone)return}else this.getSoundData.isDone=!1,n=!0;e=void 0===e?void 0===this.getSoundData.page?1:this.getSoundData.page+1:e,this.getSoundData.page=e,this.getSoundDataInLive({channelId:this.channelId,page:e,pageSize:100}).then((function(i){var r=i.contents,o=i.totalPages;t.getSoundData.isDone=parseInt(o,10)===e,Array.isArray(r)&&(t.soundList=n?r:r.concat(t.soundList)),1===e&&t.$nextTick((function(){t.handleClickNewSoundBtn()}))}))},handleScrollTextList:function(){var e=this.$refs.soundContentTextList;if(e){var t=e.scrollTop;0===t&&this.getSoundData()}}})},Ne=Oe,je=(n("e439d"),Object(m["a"])(Ne,N,j,!1,null,"0578a600",null)),Pe=je.exports,$e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tuwen-record"},[n("div",{staticClass:"tuwen-record-title"},[e._v("语音转换记录")]),n("table",{staticClass:"live-table account-list"},[e._m(0),n("tbody",e._l(e.soundList,(function(t){var i=t.startTime,r=t.channelName,o=t.sessionId;return n("tr",{key:o},[n("td",[e._v(e._s(e.$utils.formatDate(i,"-",!0)))]),n("td",[e._v(e._s(r))]),n("td",[e._v(e._s(o))]),n("td",[n("a",{staticClass:"tuwen-record-download",attrs:{href:"/v2/channel/tuwen/voicetext/download.do?channelId="+e.channelId+"&sessionId="+o,target:"_blank"}},[e._v("下载")]),n("a",{staticClass:"tuwen-record-delete",attrs:{href:"javascript:;"},on:{click:function(t){return e.handleClickDelete(o)}}},[e._v("删除")])])])})),0)]),e.soundList.length?e._e():n("div",{staticClass:"tuwen-record-no"},[e._v("暂无记录")]),n("div",{staticClass:"tuwen-record-page"},[n("live-pagination",{attrs:{total:e.totalPages,currentPage:e.currentPage},on:{currentChange:e.getList}})],1),n("warm-tip",{attrs:{tip:"删除后将无法恢复，确定删除该记录吗？",sureText:"删除",hasCancel:!0,show:e.showTip},on:{close:e.handleClickCloseTip}})],1)},He=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("thead",[n("tr",[n("th",{staticClass:"table-width-20"},[e._v("直播开始时间")]),n("th",{staticClass:"table-width-40"},[e._v("直播名称")]),n("th",{staticClass:"table-width-20"},[e._v("场次ID")]),n("th",{staticClass:"table-width-20"},[e._v("操作")])])])}],Fe=n("8cc8"),Re=n("246d"),Ue={name:"tuwen-record",components:{"live-pagination":Fe["a"],WarmTip:Re["a"]},data:function(){return{channelId:this.$route.params.id,soundList:[],totalPages:0,currentPage:1,showTip:!1,selectSessionId:""}},mounted:function(){this.getList()},methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["getSoundDataList","deleteSoundRecord"])),{},{getList:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.currentPage;this.currentPage=t,this.getSoundDataList({channelId:this.channelId,page:t,pageSize:10}).then((function(t){var n=t.totalPages,i=t.pageNumber,r=t.contents;e.totalPages=n,e.currentPage=i,e.soundList=r}))},handleClickDelete:function(e){this.showTip=!0,this.selectSessionId=e},handleClickCloseTip:function(e,t){var n=this;this.showTip&&(this.showTip=!1,t&&this.deleteSoundRecord({channelId:this.channelId,sessionId:this.selectSessionId}).then((function(){n.getList()})))}})},Be=Ue,Ye=(n("73dd"),Object(m["a"])(Be,$e,He,!1,null,"6a989e6e",null)),We=Ye.exports,Xe={name:"Tuwenlive",data:function(){return{enabled:!1,activeTab:"post",channelId:this.$route.params.id,enabledSound:!1}},props:{tuwenliveVersion:{type:String,default:"v1"}},provide:function(){return{tuwenliveVersion:this.tuwenliveVersion}},mixins:[c["a"]],computed:Object(o["a"])(Object(o["a"])({},Object(s["d"])({tuwen:function(e){return e.tuwen},confirm:function(e){return e.tuwen.confirm},scene:function(e){return e.channel.detail.scene},ccabAndSSO:function(e){return e.channel.detail.ccabAndSSO}})),{},{tuwenEnabled:function(){return Object(a["a"])(this.$store.state.user.userInfo.tuwenLiveEnabled)},tuwenRecordTabEnabled:function(){return"ppt"!==this.scene&&!this.ccabAndSSO}}),watch:{confirm:function(e){var t=e.show,n=e.ensure,i=void 0===n?function(){}:n,r=e.cancel,o=void 0===r?function(){}:r;t?this.$refs.confirm.show().then((function(e){e?i():o()})):this.$refs.confirm.hide()}},components:{"live-switch":l["a"],"tuwen-setting":O,"tuwen-post":Pe,TuwenConfirm:w,TuwenRecord:We},methods:Object(o["a"])(Object(o["a"])({},Object(s["b"])(["showConfirm","clearAllInfo"])),{},{handleEnabledChanged:function(e){var t=this;u["a"].updateTuwenliveEnabled({channelId:this.channelId,enabled:e?"Y":"N"}).then((function(){t.$notify.successMessage(e?"已开启图文直播tab":"已关闭图文直播tab")})).catch((function(n){t.enabled=!e,t.$notify.codeError(n.code)}))},fetchEnabled:function(){var e=this;u["a"].getTuwenliveEnabled(this.channelId).then((function(t){var n=t.data.data,i=n.tuwenLiveEnabled,r=n.tuwenVoiceTextEnabled;e.enabled="Y"===i,e.enabledSound="Y"===r})).catch((function(t){e.$notify.codeError(t.code)}))},handleTabsChange:function(e){this.activeTab=e},handleToRecord:function(){this.activeTab="record"}}),beforeRouteEnter:function(e,t,n){n((function(e){console.info("获取聊天监控信息"),e.$store.dispatch("getMonitorInfo",e.$route.params.id)}))},beforeDestroy:function(){var e=function(){},t=this.tuwen,n=t.images,i=t.rawText,r=t.id;if(r||n.length||i){var o=this;this.showConfirm({contentTitle:"确定放弃当前编辑？",confirmBtns:[{type:"ensure",title:"确认放弃",cls:"btn btn-danger"},{type:"cancel",title:"取消",cls:"btn btn-default"}],show:!0,ensure:function(){o.clearAllInfo(),e(!0)},cancel:function(){e(!1)}})}else this.clearAllInfo(),e()},mounted:function(){this.fetchEnabled()}},qe=Xe,ze=(n("ec15"),Object(m["a"])(qe,i,r,!1,null,"487a167c",null));t["default"]=ze.exports},"246d":function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("modal",{staticClass:"warm-tip",attrs:{name:"warmTip",width:e.width,height:e.height},on:{closed:e.handleClickSure}},[n("live-dialog",{attrs:{title:"温馨提示"},on:{hide:e.handleClickSure}},[e._v(e._s(e.tip))]),e._t("default"),n("div",{staticClass:"warm-tip-btn"},[n("button",{staticClass:"btn btn-primary btn-md",on:{click:function(t){return e.handleClickSure(!0)}}},[e._v(e._s(e.sureText))]),n("button",{directives:[{name:"show",rawName:"v-show",value:e.hasCancel,expression:"hasCancel"}],staticClass:"btn btn-md",on:{click:function(t){return e.handleClickSure(!1)}}},[e._v("取消")])])],2)},r=[],o=n("20da"),s={name:"warmTip",components:{"live-dialog":o["a"]},props:{tip:{type:String,default:""},width:{type:String,default:"500px"},height:{type:String,default:"200px"},show:{type:Boolean,default:!1},hasCancel:{type:Boolean,default:!1},sureText:{type:String,default:"确定"}},watch:{show:function(e){this.toggleTip(e)},tip:function(e,t){e!==t&&this.toggleTip(!0)}},methods:{handleClickSure:function(e){this.$modal.hide("warmTip"),this.$emit("close",this.tip,e)},toggleTip:function(e){this.$modal[e?"show":"hide"]("warmTip"),this.$emit(e?"open":"close",this.tip,!1)}}},a=s,c=(n("b6a8"),n("0c7c")),l=Object(c["a"])(a,i,r,!1,null,null,null);t["a"]=l.exports},"2ea2":function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAMAAABEpIrGAAAAe1BMVEUAAAD/amr2YWH3YWD2YmD2YWD2YmD4Y2P3YV/3YWD2YmD/YGD2YmD2YWD2YWH4X1/2YWD1YWH2YmD2YmD/VVX2YmD4jo7+8PD2YmD////2YmD3YmD/YmL3YmD2Yl/4j4/+7u/3YmD4YGD2YmD/Zmb3YWD2Y2D3YmH2YmCjBqvqAAAAKXRSTlMADFeYyOn4JJv0/wiI+YkjzzLo6gnQ///R//qcDZrr///1JYoK9liZyad2D+QAAADaSURBVHgBhdJVgoQwEATQwqFwh3Ef7n/B9e3gvO+kHYqmG6Zl25Zp6BqmHNej8FwHQ34QciCMfPTECScSByLNOCNLJX3OWbmDH0VJUdV1RdEU+BZRqdu2phL9FLij0n6hsnMAuFx+wD1w8NYeeAfoXHtAHcf1B0eY6w9MnNYfnBCuPwg3H2ynMMnpqBVz1Oa5vpxHbepcpQ9HPXE9AHtycg9iD8DZLRe5u20czB3fimapi+axfbQbZy+chhONgx4/2nFgF/kYurlXiuf+hint9e7y3S7v3i8N4hNI1ykigGcP6wAAAABJRU5ErkJggg=="},"2fa5":function(e,t,n){},"3ac1":function(e,t,n){},4086:function(e,t,n){},"480d":function(e,t,n){},"52a8":function(e,t,n){},5401:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAC/UlEQVR4AWIgFjhMfcVjMRXQfDUA2w1E0QzrsT3FWLVt2+5YtW23g9q2bdu2bWaT/7Ivye2e6c9Xks2+7zMT373nZq929Y4VF+iLKy5klysu1L9UWKjHcOAe7/ANMpDVsguVF/wpKUiWCQImiEjtYAxjMDbTxLVWUcEKC9n0iot0S0ImPTC2wiI2A7oSIq+y5HcJoeAWlGTTcUt5NirNN8oIyz9jYHYe0AndKv7+igE5cUA3OILJ51IhIXRbVVnttQZ125dEfQ4lUee9JtVaY6gacgdcPgMQLFGDKy9hNOq8RU9/ORSEZ79dfKcqS9l/+cU61d/gNwxcQUHHZeTNtpr0XBCo4IWQm3aV03vdpQsf7SB9PJ0rkLMy8na7ksiIp5Lb4vbMe4emC5LBZ2I05QqnI69tvPdh7g0eqLPSQrZcA6qu+FYMhUPm61+xVM1XPtnUaLOZTgZTPfs6p7+WzwLER2ixAreG0in7+70vbPJw+LUNMp9MjVWMbnzxxwV3yIuHwAPcmsjPpWECDTYa5OEjc6nqMkZRroKRHi5+tKXy4NbQRMIE4GMPI85ZyvnecJNJ6x7FER9SOXBr4uZbmAACy0PN1UZOFKdvmqzZ3PvuEKBzNyfICdxKBvy1ctIAiQuOvUl1ASI9J1wgDcIZ11KDcOgZK9sNALc0DRHNHlBWfTkt6Rmn3jmIHTQsaRpGFqIDr1LdsP+lTZUWy8krLdJpy5M4eVhyl0sLUWQprrPOoN9pSvH5DzY6XKjs8bepBjPuhsoKTgPcGoDGIPurjntMMjM0IwTopMuc+p+M0biLFmF2uJO+DPc4ED794Ey3Eopqx622m/Tmr1o7Rry03SnxPbgW/ymV8IIEQTjxskWv/gQb8k4QozVXWcaion9m2JLsjmoKwbe9xBT3Ey7AFY1LdUlWdgkVztNFab5dlmcMyjvZaMAd6Ex4a5YcmDwLxFyyNVMD0iV5c2okQGwizzFWyy5gyy382EkoXyKMuZIcrBwH7vEO3yCTyPb8H/ZhlwaYgVG9AAAAAElFTkSuQmCC"},"5a71":function(e,t,n){"use strict";n("a83e")},"600a":function(module,exports,__webpack_require__){module.exports=function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=0)}([function(e,t,n){"use strict";n(1);var i=n(6),r=n(7),o=n(9),s=n(13),a=n(19),c=n(14),l={end:n(22),empty:n(23)},u={user:"https://live.polyv.cn/watch/$channelId/tuwen/content/list",client:"https://api.polyv.net/live/inner/v3/channel/tuwen/list?channelId=$channelId",admin:"https://live.polyv.net/v2/channel/tuwen/content/list.do?channelId=$channelId"},d={container:"plv-tuwen-live",empty:"plv-tuwen-live__empty",end:"plv-tuwen-live__end"},h={"zh-cn":{pageEnd:"没有更多内容了",loading:"加载中...",noData:"当前暂无图文内容",pleasePost:"快来发布第一条图文吧",sticky:"置顶"},en:{pageEnd:"There's no more",loading:"Loading",noData:"",pleasePost:"",sticky:"Hot"}},p=[5,10,20,40],f=24*p.length,g=i.createClass((function(e){var t=this;e=t._options=i.extend({},e),r.call(t,e.events);var n=t._$=e.$;t._$container=n(e.container).addClass(d.container),t._data={total:0,setting:{}},t._apiURL=e.apiURL||u[e.isClient?"client":e.isEditMode?"admin":"user"].replace("$channelId",e.channelId),t._lang=h[e.lang||"zh-cn"],t._retryCount=0,t.setDispMode(e.dispMode||1),t._renderEnd()}),{init:function(){var e=this;return this._initPromise||(this._initPromise=this._nextPage().then((function(){e._setEmpty(e._getDispInstance().isEmpty()),e._isEmpty||e._isLastPage||(e._scrollCb=function(){e._checkLoadMore()},e._$container.on("scroll",e._scrollCb))}))),this._initPromise},destroy:function(){this._$container.removeClass(d.container),this._resetDisp()},_offScroll:function(){this._scrollCb&&(this._$container.off("scroll",this._scrollCb),this._scrollCb=null)},_getDispInstance:function(){return this._dispInstance||(this._dispInstance=new{1:s,2:a}[this._dispMode]({$:this._options.$,$container:this._$container,isEditMode:this._options.isEditMode,triggerEvent:this.trigger,setting:this._data.setting,lang:this._lang})),this._dispInstance},_destroyDispInstance:function(){this._dispInstance&&(this._dispInstance.destroy(),this._dispInstance=null)},_resetDisp:function(){this._offScroll(),this._destroyDispInstance(),this._oldestId=null,this._isLastPage=null,this._isEmpty=null,this._initPromise=null,this._retryTimer&&(this._retryTimer=null,clearTimeout(this._retryTimer)),this._apiPromise=null,this._retryCount=0,this._$container.empty()},setDispMode:function(e){this._dispMode!==e&&(this._resetDisp(),this._dispMode=e,this.init())},getDispMode:function(){return this._dispMode},_setEmpty:function(e){this._isEmpty!==e&&(e?(this._destroyDispInstance(),this._$container.empty().html(l.empty({text:this._lang[this._options.isEditMode?"pleasePost":"noData"]}))):(this._$container.find("."+d.empty).remove(),this._renderEnd()),this._isEmpty=e)},_checkLoadMore:function(){if(!this._isLastPage&&!this._isEmpty){var e=this._$container,t=e.innerHeight();t<=0||e.scrollTop()+t>=e.get(0).scrollHeight-1.5*t&&this._nextPage()}},updateTotal:function(e){this._data.total!==e&&(this._data.total=e,this.trigger("totalchange",{total:e}))},_renderEnd:function(){this._$container.find("."+d.end).remove(),this._$container.append(l.end({text:this._lang[this._isLastPage?"pageEnd":"loading"]}))},_handleData:function(e){var t=this;null!=e.total&&this.updateTotal(e.total),e.setting&&this.updateSetting(e.setting);var n=this._getDispInstance();n.receiveData({topContents:e.topContents,contents:e.contents}),c.isEmpty(e.contents)?(this._offScroll(),this._isLastPage=!0,n.isEmpty()||this._renderEnd()):(this._oldestId=e.contents[e.contents.length-1].id,setTimeout((function(){t._checkLoadMore()}),0))},_requestData:function(){var e=this;return new o((function(t,n){var i={id:e._oldestId,imageMode:2===e._dispMode?"Y":"N"};e.trigger("beforerequest",{data:i}),e._$.ajax(e._apiURL,{data:i,dataType:"json"}).then((function(i){if(e._options.isEditMode&&0!==i.code||!e._options.isEditMode&&200!==i.code){var r=new Error(i.message);return r.code=i.code,void n(r)}t(i.data)}),(function(e,t,i){n(new Error(i||t))}))}))["catch"]((function(t){var n,i,r=p[e._retryCount++%4];if(e._retryCount>f?i=!0:(n=new o((function(t){e._retryTimer=setTimeout((function(){t(e._requestData())}),1e3*r)})),i=!1),e.trigger("error",{error:t,isLastRetry:i}),i)throw new Error("Fail to load data.");return n})).then((function(t){return e._retryCount=0,t}))},_nextPage:function(){var e=this;return this._apiPromise||(this._apiPromise=this._requestData()["finally"]((function(){e._apiPromise=null})).then((function(t){t&&e._handleData(t),e.trigger("success")}))),this._apiPromise},_scrollTo:function(e,t){var n=this;return this._scrollingPromise||(this._scrollingPromise=new o((function(i){var r=n._$container.scrollTop();r!==e?t?(n._$container.scrollTop(e),i()):n._$container.animate({scrollTop:e},Math.min(500,parseInt(.15*Math.abs(r-e))),(function(){i()})):i()}))["finally"]((function(){n._scrollingPromise=null}))),this._scrollingPromise},scrollToTop:function(e){return this._scrollTo(0,e)},scrollToLatest:function(e){return this._isEmpty?o.resolve():this._scrollTo(this._$container.scrollTop()+this._getDispInstance().$latestTop(),e)},newMsg:function(e){this._getDispInstance().newMsg(e),this._setEmpty(!1),this.trigger("newmsg")},editMsg:function(e){this._isEmpty||this._getDispInstance().editMsg(e)},delMsg:function(e){if(!this._isEmpty){var t=this._getDispInstance();t.delMsg(e),this._setEmpty(t.isEmpty())}},setSticky:function(e){this._getDispInstance().setSticky(e),this._setEmpty(!1)},cancelSticky:function(e){if(!this._isEmpty){var t=this._getDispInstance();t.cancelSticky(e),this._setEmpty(t.isEmpty())}},delAllMsgs:function(){this._setEmpty(!0)},updateSetting:function(e){i.extend(this._data.setting,e),this._isEmpty||this._getDispInstance().updateSetting(this._data.setting)},stickyCount:function(){var e;return this._isEmpty||(e=this._getDispInstance().stickyCount()),e||0},hideAllEditMenu:function(){if(!this._isEmpty){var e=this._getDispInstance();"function"===typeof e.hideAllEditMenu&&e.hideAllEditMenu()}}});e.exports=g},function(e,t,n){var i,r=n(2);"string"===typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0};o.transform=i,o.insertInto=void 0;n(4)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){t=e.exports=n(3)(!1),t.push([e.i,".plv-tuwen-live{padding-right:75px}.plv-tuwen-live__list{margin-top:-42px}.plv-tuwen-live__gallery{width:696px;padding:0;margin:-8px 0 0 -8px;overflow:hidden}.plv-tuwen-live__empty{padding:64px 0;line-height:18px;text-align:center;font-size:16px;color:#b1b1b1}.plv-tuwen-live__end{margin-top:20px;text-align:center;font-size:0}.plv-tuwen-live__end__line,.plv-tuwen-live__end__text{display:inline-block;vertical-align:middle}.plv-tuwen-live__end__text{padding:0 20px;line-height:18px;font-size:12px;color:#b1b1b1}.plv-tuwen-live__end__line{width:20px;height:1px;background:#e5e5e5}.plv-tuwen-item{position:relative;margin-top:42px;padding-left:48px;color:#333}.plv-tuwen-item--hidden{display:none}.plv-tuwen-item img{vertical-align:top}.plv-tuwen-item__avatar{position:absolute;left:0;top:0;width:32px;height:32px;border-radius:50%;background:#e7ebf4}.plv-tuwen-item__avatar img{width:100%;height:100%;border-radius:50%}.plv-tuwen-item__header{position:relative;font-size:14px}.plv-tuwen-item__header__author{line-height:18px;font-size:0}.plv-tuwen-item__header__author__name,.plv-tuwen-item__header__author__title,.plv-tuwen-item__header__author__top{vertical-align:middle;font-size:14px}.plv-tuwen-item__header__author__title{color:#0097ef}.plv-tuwen-item__header__author__name{margin-left:4px}.plv-tuwen-item__header__author__name:first-child{margin-left:0}.plv-tuwen-item__header__author__top{display:inline-block;width:37px;height:18px;line-height:18px;margin-left:7px;border-radius:9px;background:#f44a34;font-style:normal;font-size:12px;text-align:center;color:#fff}.plv-tuwen-item__header__time{font-size:12px;color:#999}.plv-tuwen-item__header__edit{position:absolute;right:0;top:0}.plv-tuwen-item__header__edit__button{padding:6px 0;font-size:0;cursor:pointer}.plv-tuwen-item__header__edit__button__dot{display:inline-block;width:2px;height:2px;margin-left:2px;border-radius:50%;background:#999}.plv-tuwen-item__header__edit__layer{position:absolute;right:0;top:16px;width:58px;padding:3px 0;margin:0;border:1px solid #ececec;border-radius:4px;background:#fff;-webkit-box-shadow:0 2px 12px 2px rgba(9,1,4,.05);box-shadow:0 2px 12px 2px rgba(9,1,4,.05);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:none}.plv-tuwen-item__header__edit__layer li{margin:0;padding:0;height:20px;line-height:20px;list-style-type:none;text-align:center;font-size:12px;color:#666;cursor:pointer}.plv-tuwen-item__header__edit__layer li:hover{background:#ececec}.plv-tuwen-item__header__edit--on .plv-tuwen-item__header__edit__layer{display:block}.plv-tuwen-item__body{margin-top:12px}.plv-tuwen-item__body__content{line-height:24px;font-size:16px;word-break:break-all;word-wrap:break-word}.plv-tuwen-item__body__content p{margin:0}.plv-tuwen-item__body__gallery{width:696px;padding:0;margin:0 0 0 -8px;overflow:hidden}.plv-tuwen-item__body__gallery li{float:left;padding:0;margin:8px 0 0 8px;list-style-type:none;background:#e7ebf4}.plv-tuwen-item__body__gallery img{width:100%;height:100%;cursor:pointer}.plv-tuwen-item__body__gallery-1 li{width:696px;height:456px}.plv-tuwen-item__body__gallery-2 li{width:340px;height:340px}.plv-tuwen-item__body__gallery-3 li{width:224px;height:224px}.plv-tu-item{width:166px;height:166px;padding:0;margin:8px 0 0 8px;float:left;list-style-type:none;background:#e7ebf4}.plv-tu-item--hidden{display:none}.plv-tu-item img{width:100%;height:100%;vertical-align:top}",""])},function(e,t,n){"use strict";function i(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"===typeof btoa){var o=r(i),s=i.sources.map((function(e){return"/*# sourceURL="+i.sourceRoot+e+" */"}));return[n].concat(s).concat([o]).join("\n")}return[n].join("\n")}function r(e){var t=btoa(unescape(encodeURIComponent(JSON.stringify(e)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,"+t;return"/*# "+n+" */"}e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=i(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n})).join("")},t.i=function(e,n){"string"===typeof e&&(e=[[null,e,""]]);for(var i={},r=0;r<this.length;r++){var o=this[r][0];null!=o&&(i[o]=!0)}for(r=0;r<e.length;r++){var s=e[r];null!=s[0]&&i[s[0]]||(n&&!s[2]?s[2]=n:n&&(s[2]="("+s[2]+") and ("+n+")"),t.push(s))}},t}},function(e,t,n){var i={},r=function(e){var t;return function(){return"undefined"===typeof t&&(t=e.apply(this,arguments)),t}},o=r((function(){return window&&document&&document.all&&!window.atob})),s=function(e,t){return t?t.querySelector(e):document.querySelector(e)},a=function(e){var t={};return function(e,n){if("function"===typeof e)return e();if("undefined"===typeof t[e]){var i=s.call(this,e,n);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(r){i=null}t[e]=i}return t[e]}}(),c=null,l=0,u=[],d=n(5);function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],o=i[r.id];if(o){o.refs++;for(var s=0;s<o.parts.length;s++)o.parts[s](r.parts[s]);for(;s<r.parts.length;s++)o.parts.push(_(r.parts[s],t))}else{var a=[];for(s=0;s<r.parts.length;s++)a.push(_(r.parts[s],t));i[r.id]={id:r.id,refs:1,parts:a}}}}function p(e,t){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],s=t.base?o[0]+t.base:o[0],a=o[1],c=o[2],l=o[3],u={css:a,media:c,sourceMap:l};i[s]?i[s].parts.push(u):n.push(i[s]={id:s,parts:[u]})}return n}function f(e,t){var n=a(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var i=u[u.length-1];if("top"===e.insertAt)i?i.nextSibling?n.insertBefore(t,i.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),u.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!==typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var r=a(e.insertAt.before,n);n.insertBefore(t,r)}}function g(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=u.indexOf(e);t>=0&&u.splice(t,1)}function m(e){var t=document.createElement("style");if(void 0===e.attrs.type&&(e.attrs.type="text/css"),void 0===e.attrs.nonce){var n=y();n&&(e.attrs.nonce=n)}return w(t,e.attrs),f(e,t),t}function v(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",w(t,e.attrs),f(e,t),t}function w(e,t){Object.keys(t).forEach((function(n){e.setAttribute(n,t[n])}))}function y(){return n.nc}function _(e,t){var n,i,r,o;if(t.transform&&e.css){if(o="function"===typeof t.transform?t.transform(e.css):t.transform["default"](e.css),!o)return function(){};e.css=o}if(t.singleton){var s=l++;n=c||(c=m(t)),i=x.bind(null,n,s,!1),r=x.bind(null,n,s,!0)}else e.sourceMap&&"function"===typeof URL&&"function"===typeof URL.createObjectURL&&"function"===typeof URL.revokeObjectURL&&"function"===typeof Blob&&"function"===typeof btoa?(n=v(t),i=T.bind(null,n,t),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),i=C.bind(null,n),r=function(){g(n)});return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){if("undefined"!==typeof DEBUG&&DEBUG&&"object"!==typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");t=t||{},t.attrs="object"===typeof t.attrs?t.attrs:{},t.singleton||"boolean"===typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=i[s.id];a.refs--,r.push(a)}if(e){var c=p(e,t);h(c,t)}for(o=0;o<r.length;o++){a=r[o];if(0===a.refs){for(var l=0;l<a.parts.length;l++)a.parts[l]();delete i[a.id]}}}};var b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}();function x(e,t,n,i){var r=n?"":i.css;if(e.styleSheet)e.styleSheet.cssText=b(t,r);else{var o=document.createTextNode(r),s=e.childNodes;s[t]&&e.removeChild(s[t]),s.length?e.insertBefore(o,s[t]):e.appendChild(o)}}function C(e,t){var n=t.css,i=t.media;if(i&&e.setAttribute("media",i),e.styleSheet)e.styleSheet.cssText=n;else{while(e.firstChild)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function T(e,t,n){var i=n.css,r=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&r;(t.convertToAbsoluteUrls||o)&&(i=d(i)),r&&(i+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var s=new Blob([i],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(s),a&&URL.revokeObjectURL(a)}},function(e,t,n){"use strict";e.exports=function(e){var t="undefined"!==typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!==typeof e)return e;var n=t.protocol+"//"+t.host,i=n+t.pathname.replace(/\/[^\/]*$/,"/"),r=e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(e,t){var r,o=t.trim().replace(/^"(.*)"$/,(function(e,t){return t})).replace(/^'(.*)'$/,(function(e,t){return t}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(r=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:i+o.replace(/^\.\//,""),"url("+JSON.stringify(r)+")")}));return r}},function(e,t,n){"use strict";var i=t.extend=Object.assign?Object.assign:function(e){if(null==e)throw new Error("target cannot be null");var t,n,i=0,r=arguments.length;while(++i<r)if(n=arguments[i],null!=n)for(t in n)n.hasOwnProperty(t)&&(e[t]=n[t]);return e};Object.prototype.toString;t.isEmptyObject=function(e){if(null!=e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},t.mergeArray=function(e,t){var n=t.length,i=e.length,r=0;while(r<n)e[i++]=t[r++];return e.length=i,e},t.createClass=function(e,t,n,r){var o=n?function(){n.apply(this,r?"function"===typeof r?r.apply(this,arguments):r:arguments),e.apply(this,arguments)}:function(){e.apply(this,arguments)};if(n){var s=function(){};s.prototype=n.prototype,o.prototype=new s,o.prototype.constructor=o,i(o,n)}if(t)for(var a in t)t.hasOwnProperty(a)&&(o.prototype[a]=t[a]);return o}},function(e,t,n){"use strict";var i=n(8);e.exports=function(e){var t={};if(this.trigger=function(e,n,r){var o=new i(e,n),s=t[e];if(s)for(var a=0;a<s.length;a++)s[a].call(r||this,o);return o},this.on=function(e,n){return t[e]=t[e]||[],t[e].push(n),this},this.off=function(e,n){switch(arguments.length){case 0:t={};break;case 1:delete t[e];break;case 2:var i=t[e];if(i){for(var r=i.length-1;r>=0;r--)i[r]===n&&i.splice(r,1);i.length||delete t[e]}break}return this},e)for(var n in e)e.hasOwnProperty(n)&&e[n]&&this.on(n,e[n])}},function(e,t,n){"use strict";var i=n(6);function r(){return!1}function o(){return!0}e.exports=i.createClass((function(e,t){var n=this;i.extend(n,t),n.type=e,n.timeStamp=+new Date}),{preventDefault:function(){this.isDefaultPrevented=o},stopPropagation:function(){this.isPropagationStopped=o},isDefaultPrevented:r,isPropagationStopped:r})},function(e,t,n){"use strict";(function(t){var i;"undefined"!==typeof t?i=t.Promise:"undefined"!==typeof window&&(i=window.Promise),i=n(i?11:12),i.series=function(e){return e.length?e.slice(1).reduce((function(e,t){return e.then((function(e){return t(e)}))}),e[0]()):i.resolve()},i.delay=function(e){return new i((function(t){setTimeout(t,e)}))},e.exports=i}).call(this,n(10))},function(e,t,n){"use strict";var i;i=function(){return this}();try{i=i||new Function("return this")()}catch(r){"object"===typeof window&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i=n(6),r=i.createClass((function(e){this._promise=new Promise(e)}),{then:function(e,t){var n=this;return new r((function(i){i(n._promise.then(e,t))}))},spread:function(e,t){var n=this;return new r((function(i){i(n._promise.then((function(t){return e.apply(this,t)}),t))}))},catch:function(e){var t=this;return new r((function(n){n(t._promise["catch"](e))}))},finally:function(e){var t=this;return new r((function(n,i){t._promise.then((function(t){e.apply(this,arguments),n(t)}),(function(t){e.apply(this,arguments),i(t)}))}))}});["all","race","reject","resolve"].forEach((function(e){r[e]=Promise[e]})),e.exports=r},function(e,t,n){"use strict";var i=n(6),r="undefined"!==typeof console&&"function"===typeof console.error?function(e){console.error("Uncaught (in promise) %o",e)}:function(e){throw e};function o(e){return e&&"function"===typeof e.then}function s(e,t,n){o(e)?e.then(t,n):t(e)}var a=0,c=1,l=2,u=i.createClass((function(e){if("function"!==typeof e)throw new Error("Executor must be a function");var t=this;function n(e){t._settle(l,e)}t._status=a,t._pendings={};try{e((function(e){s(e,(function(e){t._settle(c,e)}),n)}),n)}catch(i){n(i)}}),{_settle:function(e,t){var n=this;n._status===a&&(n._status=e,n._value=t,setTimeout((function(){if(n._status!==l||n._hasRejectedHandler){var i=n._pendings[e];i&&i.forEach((function(e){e(t)})),delete n._pendings}else r(t)}),0))},_listen:function(e,t){var n=this;e===l&&(n._hasRejectedHandler=!0),n._pendings?(n._pendings[e]=n._pendings[e]||[],n._pendings[e].push(t)):n._status===e&&setTimeout((function(){t(n._value)}),0)},_then:function(e,t,n){var i=this;return new u((function(r,o){i._listen(c,(function(){var t=i._value;if(e)try{t=n&&Array.isArray(t)?e.apply(this,t):e.call(this,t)}catch(a){return void o(a)}s(t,r,o)})),i._listen(l,(function(){var e=i._value;if(t){try{e=t.call(this,e)}catch(n){return void o(n)}s(e,r,o)}else o(e)}))}))},then:function(e,t){return this._then(e,t)},spread:function(e){return this._then(e,null,!0)},catch:function(e){return this.then(null,e)},finally:function(e){var t=this;return new u((function(n,i){function r(){var r,o=t._value;switch(t._status){case c:r=function(){n(o)};break;case l:r=function(){i(o)};break}if(e)try{e()}catch(s){return void i(s)}r&&r()}t._listen(c,r),t._listen(l,r)}))}});i.extend(u,{all:function(e){var t=e.length;return t?new u((function(n,i){var r=new Array(t);e.forEach((function(e,o){e.then((function(e){r[o]=e,--t||n(r)}),i)}))})):u.resolve([])},race:function(e){return new u((function(t,n){e.forEach((function(e){e.then(t,n)}))}))},resolve:function(e){return new u((function(t,n){s(e,t,n)}))},reject:function(e){return new u((function(t,n){n(e)}))}}),e.exports=u},function(e,t,n){"use strict";var i=n(6),r=n(14),o=n(16),s={init:n(17),item:n(18)},a={container:"plv-tuwen-live",list:"plv-tuwen-live__list",editArea:"plv-tuwen-item__header__edit",editAreaOn:"plv-tuwen-item__header__edit--on",editButton:"plv-tuwen-item__header__edit__button",item:"plv-tuwen-item",itemGallery:"plv-tuwen-item__body__gallery"};function c(e,t,n){var i=0;return e&&e.size()&&t.each((function(t,o){r.isPrevSibling(o,e.get(0))&&(i+=n(o).outerHeight(!0))})),i}var l=i.createClass((function(){var e=this,t=e._$;if(e._$container.html(s.init()),e._$list=e._$container.find("."+a.list),e._$list.on("click","."+a.itemGallery+" li",(function(){var n=t(this);e._imgClick(e._find$MsgIndex(n),n.index())})),e._options.isEditMode){var n=!1;e._$list.on("click","."+a.editButton,(function(){n=!0,e.toggleEditMenu(e._find$MsgIndex(t(this)))})),e._$list.on("click","."+a.editArea+" li",(function(){n=!0;var i=t(this);e._editClick(e._find$MsgIndex(i),i.data("action")),e.hideAllEditMenu()})),e._$list.on("click",(function(){n||e.hideAllEditMenu(),n=!1}))}}),{destroy:function(){this._$list.remove()},_renderMsgs:function(e,t){return this._$(s.item({list:e,isStickyList:t,setting:this._setting,isEditMode:this._options.isEditMode,formatDate:r.formatDate,toThumb:r.toThumb,lang:this._lang})).filter((function(e,t){return 1===t.nodeType}))},_appendToList:function(e){this._renderMsgs(e,!1).appendTo(this._$list),i.mergeArray(this._list,e)},_initSticky:function(e){-1!==this._stickyEnd&&(this._$(r.nthChildren(this._$list.get(0),0,this._stickyEnd)).remove(),this._list.splice(0,this._stickyEnd+1),this._setStickyEnd(-1)),e.length&&(this._renderMsgs(e,!0).prependTo(this._$list),this._list.unshift.apply(this._list,e),this._setStickyEnd(e.length-1))},_get$firstSight:function(e){var t,n=this,i=0;return r.eachChild(this._$list.get(0),(function(r,o){var s=n._$(o),a=s.outerHeight(!0);if(i+a>e)return t=s,!1;i+=a})),t},_insert$NewMsg:function(e,t){t>=0?e.insertAfter(r.nthChild(this._$list.get(0),t)):e.prependTo(this._$list)},_keepSight:function(e){var t=this,n=this._$container.scrollTop(),i=this._get$firstSight(n);if(e){Array.isArray(e)||(e=[e]);var r=0;e.forEach((function(e){if(e.$elems){var n=0;switch(e.action){case"insert":t._insert$NewMsg(e.$elems,e.position-1);break;case"sticky":e.$elems.prependTo(t._$list);break}switch(n+=c(i,e.$elems,t._$),e.action){case"update":e.$elems.replaceWith(e.$newElems),n=c(i,e.$newElems,t._$)-n;break;case"del":e.$elems.remove(),n=-n;break}r+=n}})),r&&!this._isScrolling&&this._$container.scrollTop(n+r)}},_find$MsgIndex:function(e){return e.parentsUntil("."+a.item).last().parent().index()},_imgClick:function(e,t){var n=this,o=[];this._list.forEach((function(s,a){r.isEmpty(s.images)||a>n._stickyEnd&&"Y"===s.top||(a===e&&(t=o.length+t),i.mergeArray(o,s.images))})),this._trigger("imgclick",{imgs:o,currentIndex:t})},_editClick:function(e,t){this._trigger("edit",{action:t,msg:i.extend({},this._list[e])})},toggleEditMenu:function(e){var t=this._$(r.nthChild(this._$list.get(0),e)).find("."+a.editArea);t.hasClass(a.editAreaOn)?t.removeClass(a.editAreaOn):(this.hideAllEditMenu(),t.addClass(a.editAreaOn))},hideAllEditMenu:function(){this._$list.find("."+a.editAreaOn).removeClass(a.editAreaOn)},newMsg:function(e){var t=this.findMsg(e.id);if(-1===t){var n,i=this._list,r=i.length;if(r){for(var o=this._stickyEnd+1;o<r;o++)if(e.id>i[o].id){n=o;break}}else n=0;(n<r||!r)&&(this._list.splice(n,0,e),this._keepSight({action:"insert",position:n,$elems:this._renderMsgs([e],!1)}))}},delMsg:function(e){var t=this._$([]),n=this.findMsg(e);-1!==n&&(t.push(r.nthChild(this._$list.get(0),n)),this._list.splice(n,1));var i=this.findStickyMsg(e);-1!==i&&(t.push(r.nthChild(this._$list.get(0),i)),this._list.splice(i,1),this._setStickyEnd(this._stickyEnd-1)),t.size()&&this._keepSight({action:"del",$elems:t})},editMsg:function(e){var t=this,n=[];[this.findStickyMsg(e.id),this.findMsg(e.id)].forEach((function(i,o){-1!==i&&(n.push({action:"update",$elems:t._$(r.nthChild(t._$list.get(0),i)),$newElems:t._renderMsgs([e],0===o)}),t._list[i]=e)})),this._keepSight(n)},setSticky:function(e){var t=this.findStickyMsg(e.id);if(-1===t){var n=this._renderMsgs([e],!0),i=[{action:"sticky",$elems:n}],o=this.findMsg(e.id);-1!==o&&(i.push({action:"update",$elems:this._$(r.nthChild(this._$list.get(0),o)),$newElems:this._renderMsgs([e],!1)}),this._list[o]=e),this._list.unshift(e),this._setStickyEnd(this._stickyEnd+1),this._keepSight(i)}},cancelSticky:function(e){var t=this.findStickyMsg(e);if(-1!==t){var n=[{action:"del",$elems:this._$(r.nthChild(this._$list.get(0),t))}],i=this.findMsg(e);-1!==i&&(this._list[i].top="N",n.push({action:"update",$elems:this._$(r.nthChild(this._$list.get(0),i)),$newElems:this._renderMsgs([this._list[i]],!1)})),this._list.splice(t,1),this._setStickyEnd(this._stickyEnd-1),this._keepSight(n)}},stickyCount:function(){return this._stickyEnd+1}},o);e.exports=l},function(e,t,n){"use strict";var i=void 0;t.formatDate=function(e,t){var n={Y:e.getFullYear(),M:e.getMonth()+1,D:e.getDate(),h:e.getHours(),m:e.getMinutes(),s:e.getSeconds()};return t.replace(/Y+|M+|D+|h+|m+|s+/g,(function(e){var t=n[e[0]];return e.length>1&&t.toString().length!==e.length&&(t=(new Array(e.length).join("0")+t).slice(-e.length)),t}))},t.isEmpty=function(e){var t=null==e;return t||(Array.isArray(e)?t=!e.length:"string"===typeof obj?t=""===e.trim():e.constructor===Object&&(t=!Object.keys(e).length)),t},t.toThumb=function(e,t,i){var r=n(15),o="x-oss-process=image/resize,m_fill,w_"+t+",h_"+i+",limit_0";return/\.(gif|png)(\?.*)?(#.*)?$/i.test(e)&&(o+="/format,jpg"),r.append(e,o)};var r=function(e,t){var n=e.firstChild,r=0;while(n){if(1===n.nodeType&&!1===t.call(i,r++,n))break;n=n.nextSibling}};t.eachChild=r,t.nthChild=function(e,t){var n;return r(e,(function(e,i){if(t===e)return n=i,!1})),n},t.nthChildren=function(e,t,n){var i=[];return r(e,(function(e,r){if(e>=t&&e<=n&&i.push(r),e===n)return!1})),i};var o=document.compareDocumentPosition?function(e,t){return 4===e.compareDocumentPosition(t)}:function(e,t){var n=t;while(n=n.previousSibling)if(n===e)return!0;return!1};t.isPrevSibling=o},function(e,t,n){"use strict";var i=n(6),r=function(e,t){if("object"!==typeof e)return"";t=i.extend({encode:encodeURIComponent},t);var n,r,o=[];function s(e,n){null==n&&(n=""),""===n&&t.ignoreEmpty||o.push(t.encode(e)+"="+t.encode(n))}function a(e){s(n,e)}for(n in e)e.hasOwnProperty(n)&&(r=e[n],Array.isArray(r)?r.forEach(a):s(n,r));return o.join("&")};t.append=function(e,t,n){if(!("string"===typeof t&&""!==t||"object"===typeof t&&!i.isEmptyObject(t)))return e;var o=e.indexOf("#"),s="";return-1!==o&&(s=e.substring(o,e.length),e=e.substring(0,o)),e=e.replace(/[?&]$/,""),t="string"!==typeof t?r(t,n):t.replace(/^[?&]/,""),e+(-1!==e.indexOf("?")?"&":"?")+t+s}},function(e,t,n){"use strict";var i=n(6),r=n(14),o=i.createClass((function(e){e=this._options=i.extend({},e),this._$=e.$,this._trigger=e.triggerEvent,this._$container=e.$container,this._setting=e.setting||{},this._list=[],this._stickyEnd=-1,this._lang=e.lang}),{_setStickyEnd:function(e){e=Math.max(e,-1),e=Math.min(e,this._list.length-1),this._stickyEnd=e},receiveData:function(e){e.topContents&&this._initSticky(e.topContents),r.isEmpty(e.contents)||this._appendToList(e.contents)},findMsg:function(e){var t,n=this._list,i=this._stickyEnd+1,r=n.length-1;while(i<=r){if(t=parseInt((i+r)/2),n[t].id===e)return t;n[t].id<e?r=t-1:i=t+1}return-1},findStickyMsg:function(e){for(var t=this._stickyEnd;t>=0;t--)if(this._list[t].id===e)return t;return-1},updateSetting:function(e){i.extend(this._setting,e)},isEmpty:function(){return!this._list.length},$latestTop:function(){for(var e,t=this._list,n=Math.min(t.length,this._stickyEnd+1),i=0;i<=n;i++)(null==e||t[i].id>t[e].id)&&(e=i);var o=r.nthChild(this._$list.get(0),e);if(!o)return 0;var s=this._$(o);return s.offset().top-this._$container.offset().top}});e.exports=o},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('<div class="plv-tuwen-live__list"></div>');return __output.join("")}},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})list.forEach((function(e){var t,n,i;__append("\n"),1===e.images.length?(t=1,n=696,i=456):2===e.images.length||4===e.images.length?(t=2,n=i=548):(t=3,n=i=360);var r="Y"===e.top;__append('\n<div class="plv-tuwen-item'),!isStickyList&&r&&__append(" plv-tuwen-item--hidden"),__append('">\n  <div class="plv-tuwen-item__avatar">\n    <img src="'),__append(escapeFn(setting.avatar)),__append('" alt="'),__append(escapeFn(setting.nickname)),__append('">\n  </div>\n  <div class="plv-tuwen-item__header">\n    <div class="plv-tuwen-item__header__author">\n      '),setting.actor&&(__append('<span class="plv-tuwen-item__header__author__title">'),__append(escapeFn(setting.actor)),__append("</span>")),__append("\n      "),setting.nickname&&(__append('<span class="plv-tuwen-item__header__author__name">'),__append(escapeFn(setting.nickname)),__append("</span>")),__append("\n      "),r&&(__append('<span class="plv-tuwen-item__header__author__top">'),__append(escapeFn(lang.sticky)),__append("</span>")),__append('\n    </div>\n    <div class="plv-tuwen-item__header__time">'),__append(escapeFn(formatDate(new Date(e.createdTime),"YYYY-MM-DD hh:mm"))),__append("</div>\n    "),isEditMode&&(__append('\n    <div class="plv-tuwen-item__header__edit">\n      <div class="plv-tuwen-item__header__edit__button">\n        <i class="plv-tuwen-item__header__edit__button__dot"></i>\n        <i class="plv-tuwen-item__header__edit__button__dot"></i>\n        <i class="plv-tuwen-item__header__edit__button__dot"></i>\n      </div>\n      <ul class="plv-tuwen-item__header__edit__layer">\n        <li data-action="edit">修改</li>\n        <li data-action="'),__append(escapeFn(r?"cancelSticky":"setSticky")),__append('">'),__append(escapeFn(r?"取消置顶":"置顶")),__append('</li>\n        <li data-action="del">删除</li>\n      </ul>\n    </div>\n    ')),__append('\n  </div>\n  <div class="plv-tuwen-item__body">\n    <div class="plv-tuwen-item__body__content">'),__append(e.text),__append("</div>\n    "),e.images.length&&(__append('\n    <ul class="plv-tuwen-item__body__gallery plv-tuwen-item__body__gallery-'),__append(escapeFn(t)),__append('">\n      '),e.images.forEach((function(e){__append('\n      <li><img src="'),__append(escapeFn(toThumb(e,n,i))),__append('"></li>\n      ')})),__append("\n    </ul>\n    ")),__append("\n  </div>\n</div>\n")})),__append("\n");return __output.join("")}},function(e,t,n){"use strict";var i=n(6),r=n(16),o=n(14),s={init:n(20),item:n(21)},a={list:"plv-tuwen-live__gallery",item:"plv-tu-item"},c=i.createClass((function(){var e=this;e._$container.html(s.init()),e._$list=e._$container.find("."+a.list),e._$list.on("click","."+a.item,(function(){e._imgClick(e._$(this).index())})),e._stickyOrder=[]}),{destroy:function(){this._$list.remove()},_renderMsgs:function(e,t){return this._$(s.item({list:e,isStickyList:t,toThumb:o.toThumb})).filter((function(e,t){return 1===t.nodeType}))},_toImgList:function(e){var t=[];return e.forEach((function(e){o.isEmpty(e.images)||e.images.forEach((function(n){t.push({id:e.id,top:e.top,img:n})}))})),t},_appendToList:function(e){var t=this._toImgList(e);this._renderMsgs(t,!1).appendTo(this._$list),i.mergeArray(this._list,t)},_initSticky:function(e){if(-1!==this._stickyEnd&&(this._$(o.nthChildren(this._$list.get(0),0,this._stickyEnd)).remove(),this._list.splice(0,this._stickyEnd+1),this._setStickyEnd(-1)),e.length){var t=this._toImgList(e);this._renderMsgs(t,!0).prependTo(this._$list),this._list.unshift.apply(this._list,t),this._setStickyEnd(t.length-1),this._stickyOrder=e.map((function(e){return e.id}))}},_getStickyRange:function(e){var t,n=this.findStickyMsg(e);if(-1!==n){t={start:n,end:n};for(var i=n-1;i>=0;i--){if(this._list[i].id!==e)break;t.start=i}}return t},_getListRange:function(e){var t,n=this.findMsg(e);if(-1!==n){t={start:n,end:n};for(var i=n-1;i>this._stickyEnd;i--){if(this._list[i].id!==e)break;t.start=i}for(var r=n+1;r<this._list.length;r++){if(this._list[r].id!==e)break;t.end=r}}return t},_getRanges:function(e){return[this._getListRange(e),this._getStickyRange(e)]},_getStickyInsertionPosition:function(e){var t=this._stickyOrder.indexOf(e),n=this._list;if(-1!==t){var i=-1,r=-1;while(++r<=this._stickyEnd)if(r&&n[r].id===n[r-1].id||i++,i===t)return r;return this._stickyEnd+1}return-1},_getListInsertionPosition:function(e){var t,n=this._list,i=this._stickyEnd+1,r=n.length-1;while(i<=r)t=parseInt((i+r)/2),n[t].id<e?r=t-1:i=t+1;return r<=this._stickyEnd||i>=n.length?-1:i},_getInsertionPositions:function(e){return[this._getListInsertionPosition(e),this._getStickyInsertionPosition(e)]},_get$ItemsInRange:function(e){return this._$(o.nthChildren(this._$list.get(0),e.start,e.end))},_imgClick:function(e){var t,n=this,i=[];this._list.forEach((function(r,o){(o<=n._stickyEnd||"N"===r.top)&&i.push(r.img),o!==e||t||(e=i.length-1,t=!0)})),this._trigger("imgclick",{imgs:i,currentIndex:e})},newMsg:function(e){var t=this.findMsg(e.id);if(-1===t){var n,i=this._toImgList([e]),r=this._list,s=r.length;if(s){for(var a=this._stickyEnd+1;a<s;a++)if(e.id>r[a].id){n=a;break}}else n=0;if(n<s||!s){this._list.splice.apply(this._list,[n,0].concat(i));var c=this._renderMsgs(i,!1);n--,n>=0?c.insertAfter(o.nthChild(this._$list.get(0),n)):c.prependTo(this._$list)}}},editMsg:function(e){var t=this,n=this._toImgList([e]),i=this._getRanges(e.id);null!=i[0]||null!=i[1]?this._getRanges(e.id).forEach((function(e,i){if(e){var r=t._get$ItemsInRange(e);t._renderMsgs(n,1===i).insertAfter(r.last()),r.remove(),t._list.splice.apply(t._list,[e.start,e.end-e.start+1].concat(n))}})):this._getInsertionPositions(e.id).forEach((function(e,i){if(-1!==e){t._list.splice.apply(t._list,[e,0].concat(n)),t._setStickyEnd(t._stickyEnd+n.length);var r=t._renderMsgs(n,1===i);0===e?r.prependTo(t._$list):r.insertAfter(o.nthChild(t._$list.get(0),e-1))}}))},delMsg:function(e){var t=this;this._getRanges(e).forEach((function(e,n){if(e){t._get$ItemsInRange(e).remove();var i=e.end-e.start+1;t._list.splice(e.end,i),n&&t._setStickyEnd(t._stickyEnd-i)}}));var n=this._stickyOrder.indexOf(e);-1!==n&&this._stickyOrder.splice(n,1)},setSticky:function(e){var t=this._getRanges(e.id);if(!t[1]){var n=this._toImgList([e]),i=t[0];if(i){var r=this._get$ItemsInRange(i);this._renderMsgs(n,!1).insertAfter(r.last()),r.remove(),this._list.splice.apply(this._list,[i.start,i.end-i.start+1].concat(n))}i=t[1],this._renderMsgs(n,!0).prependTo(this._$list),this._list.unshift.apply(this._list,n),this._setStickyEnd(this._stickyEnd+n.length),this._stickyOrder.unshift(e.id)}},cancelSticky:function(e){var t=this,n=this._getRanges(e);if(n[1]){n.forEach((function(e,n){if(e){var i=t._get$ItemsInRange(e);if(n){i.remove();var r=e.end-e.start+1;t._list.splice(e.start,r),t._setStickyEnd(t._stickyEnd-r)}else{for(var o=[],s=e.start;s<=e.end;s++)t._list[s].top="N",o.push(t._list[s]);t._renderMsgs(o,!1).insertAfter(i.last()),i.remove()}}}));var i=this._stickyOrder.indexOf(e);-1!==i&&this._stickyOrder.splice(i,1)}},stickyCount:function(){return this._stickyOrder.length}},r);e.exports=c},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('<ul class="plv-tuwen-live__gallery"></ul>');return __output.join("")}},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})list.forEach((function(e){__append('\n<li class="plv-tu-item'),isStickyList||"Y"!==e.top||__append(" plv-tu-item--hidden"),__append('">\n  <img src="'),__append(escapeFn(toThumb(e.img,322,322))),__append('">\n</li>\n')}));return __output.join("")}},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('<div class="plv-tuwen-live__end">\n  <i class="plv-tuwen-live__end__line"></i>\n  <span class="plv-tuwen-live__end__text">'),__append(escapeFn(text)),__append('</span>\n  <i class="plv-tuwen-live__end__line"></i>\n</div>');return __output.join("")}},function(module,exports){module.exports=function anonymous(locals,escapeFn,include,rethrow){escapeFn=escapeFn||function(e){return void 0==e?"":String(e).replace(_MATCH_HTML,encode_char)};var _ENCODE_HTML_RULES={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},_MATCH_HTML=/[&<>'"]/g;function encode_char(e){return _ENCODE_HTML_RULES[e]||e}var __output=[],__append=__output.push.bind(__output);with(locals||{})__append('<div class="plv-tuwen-live__empty">'),__append(escapeFn(text)),__append("</div>");return __output.join("")}}])},"670f":function(e,t,n){},"6f45":function(e,t,i){var r,o;(function(){var i=!1,s=function(e){return e instanceof s?e:this instanceof s?void(this.EXIFwrapped=e):new s(e)};e.exports&&(t=e.exports=s),t.EXIF=s;var a=s.Tags={36864:"ExifVersion",40960:"FlashpixVersion",40961:"ColorSpace",40962:"PixelXDimension",40963:"PixelYDimension",37121:"ComponentsConfiguration",37122:"CompressedBitsPerPixel",37500:"MakerNote",37510:"UserComment",40964:"RelatedSoundFile",36867:"DateTimeOriginal",36868:"DateTimeDigitized",37520:"SubsecTime",37521:"SubsecTimeOriginal",37522:"SubsecTimeDigitized",33434:"ExposureTime",33437:"FNumber",34850:"ExposureProgram",34852:"SpectralSensitivity",34855:"ISOSpeedRatings",34856:"OECF",37377:"ShutterSpeedValue",37378:"ApertureValue",37379:"BrightnessValue",37380:"ExposureBias",37381:"MaxApertureValue",37382:"SubjectDistance",37383:"MeteringMode",37384:"LightSource",37385:"Flash",37396:"SubjectArea",37386:"FocalLength",41483:"FlashEnergy",41484:"SpatialFrequencyResponse",41486:"FocalPlaneXResolution",41487:"FocalPlaneYResolution",41488:"FocalPlaneResolutionUnit",41492:"SubjectLocation",41493:"ExposureIndex",41495:"SensingMethod",41728:"FileSource",41729:"SceneType",41730:"CFAPattern",41985:"CustomRendered",41986:"ExposureMode",41987:"WhiteBalance",41988:"DigitalZoomRation",41989:"FocalLengthIn35mmFilm",41990:"SceneCaptureType",41991:"GainControl",41992:"Contrast",41993:"Saturation",41994:"Sharpness",41995:"DeviceSettingDescription",41996:"SubjectDistanceRange",40965:"InteroperabilityIFDPointer",42016:"ImageUniqueID"},c=s.TiffTags={256:"ImageWidth",257:"ImageHeight",34665:"ExifIFDPointer",34853:"GPSInfoIFDPointer",40965:"InteroperabilityIFDPointer",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",274:"Orientation",277:"SamplesPerPixel",284:"PlanarConfiguration",530:"YCbCrSubSampling",531:"YCbCrPositioning",282:"XResolution",283:"YResolution",296:"ResolutionUnit",273:"StripOffsets",278:"RowsPerStrip",279:"StripByteCounts",513:"JPEGInterchangeFormat",514:"JPEGInterchangeFormatLength",301:"TransferFunction",318:"WhitePoint",319:"PrimaryChromaticities",529:"YCbCrCoefficients",532:"ReferenceBlackWhite",306:"DateTime",270:"ImageDescription",271:"Make",272:"Model",305:"Software",315:"Artist",33432:"Copyright"},l=s.GPSTags={0:"GPSVersionID",1:"GPSLatitudeRef",2:"GPSLatitude",3:"GPSLongitudeRef",4:"GPSLongitude",5:"GPSAltitudeRef",6:"GPSAltitude",7:"GPSTimeStamp",8:"GPSSatellites",9:"GPSStatus",10:"GPSMeasureMode",11:"GPSDOP",12:"GPSSpeedRef",13:"GPSSpeed",14:"GPSTrackRef",15:"GPSTrack",16:"GPSImgDirectionRef",17:"GPSImgDirection",18:"GPSMapDatum",19:"GPSDestLatitudeRef",20:"GPSDestLatitude",21:"GPSDestLongitudeRef",22:"GPSDestLongitude",23:"GPSDestBearingRef",24:"GPSDestBearing",25:"GPSDestDistanceRef",26:"GPSDestDistance",27:"GPSProcessingMethod",28:"GPSAreaInformation",29:"GPSDateStamp",30:"GPSDifferential"},u=s.IFD1Tags={256:"ImageWidth",257:"ImageHeight",258:"BitsPerSample",259:"Compression",262:"PhotometricInterpretation",273:"StripOffsets",274:"Orientation",277:"SamplesPerPixel",278:"RowsPerStrip",279:"StripByteCounts",282:"XResolution",283:"YResolution",284:"PlanarConfiguration",296:"ResolutionUnit",513:"JpegIFOffset",514:"JpegIFByteCount",529:"YCbCrCoefficients",530:"YCbCrSubSampling",531:"YCbCrPositioning",532:"ReferenceBlackWhite"},d=s.StringValues={ExposureProgram:{0:"Not defined",1:"Manual",2:"Normal program",3:"Aperture priority",4:"Shutter priority",5:"Creative program",6:"Action program",7:"Portrait mode",8:"Landscape mode"},MeteringMode:{0:"Unknown",1:"Average",2:"CenterWeightedAverage",3:"Spot",4:"MultiSpot",5:"Pattern",6:"Partial",255:"Other"},LightSource:{0:"Unknown",1:"Daylight",2:"Fluorescent",3:"Tungsten (incandescent light)",4:"Flash",9:"Fine weather",10:"Cloudy weather",11:"Shade",12:"Daylight fluorescent (D 5700 - 7100K)",13:"Day white fluorescent (N 4600 - 5400K)",14:"Cool white fluorescent (W 3900 - 4500K)",15:"White fluorescent (WW 3200 - 3700K)",17:"Standard light A",18:"Standard light B",19:"Standard light C",20:"D55",21:"D65",22:"D75",23:"D50",24:"ISO studio tungsten",255:"Other"},Flash:{0:"Flash did not fire",1:"Flash fired",5:"Strobe return light not detected",7:"Strobe return light detected",9:"Flash fired, compulsory flash mode",13:"Flash fired, compulsory flash mode, return light not detected",15:"Flash fired, compulsory flash mode, return light detected",16:"Flash did not fire, compulsory flash mode",24:"Flash did not fire, auto mode",25:"Flash fired, auto mode",29:"Flash fired, auto mode, return light not detected",31:"Flash fired, auto mode, return light detected",32:"No flash function",65:"Flash fired, red-eye reduction mode",69:"Flash fired, red-eye reduction mode, return light not detected",71:"Flash fired, red-eye reduction mode, return light detected",73:"Flash fired, compulsory flash mode, red-eye reduction mode",77:"Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected",79:"Flash fired, compulsory flash mode, red-eye reduction mode, return light detected",89:"Flash fired, auto mode, red-eye reduction mode",93:"Flash fired, auto mode, return light not detected, red-eye reduction mode",95:"Flash fired, auto mode, return light detected, red-eye reduction mode"},SensingMethod:{1:"Not defined",2:"One-chip color area sensor",3:"Two-chip color area sensor",4:"Three-chip color area sensor",5:"Color sequential area sensor",7:"Trilinear sensor",8:"Color sequential linear sensor"},SceneCaptureType:{0:"Standard",1:"Landscape",2:"Portrait",3:"Night scene"},SceneType:{1:"Directly photographed"},CustomRendered:{0:"Normal process",1:"Custom process"},WhiteBalance:{0:"Auto white balance",1:"Manual white balance"},GainControl:{0:"None",1:"Low gain up",2:"High gain up",3:"Low gain down",4:"High gain down"},Contrast:{0:"Normal",1:"Soft",2:"Hard"},Saturation:{0:"Normal",1:"Low saturation",2:"High saturation"},Sharpness:{0:"Normal",1:"Soft",2:"Hard"},SubjectDistanceRange:{0:"Unknown",1:"Macro",2:"Close view",3:"Distant view"},FileSource:{3:"DSC"},Components:{0:"",1:"Y",2:"Cb",3:"Cr",4:"R",5:"G",6:"B"}};function h(e){return!!e.exifdata}function p(e,t){t=t||e.match(/^data\:([^\;]+)\;base64,/im)[1]||"",e=e.replace(/^data\:([^\;]+)\;base64,/gim,"");for(var n=atob(e),i=n.length,r=new ArrayBuffer(i),o=new Uint8Array(r),s=0;s<i;s++)o[s]=n.charCodeAt(s);return r}function f(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="blob",n.onload=function(e){200!=this.status&&0!==this.status||t(this.response)},n.send()}function g(e,t){function n(n){var i=m(n);e.exifdata=i||{};var r=v(n);if(e.iptcdata=r||{},s.isXmpEnabled){var o=k(n);e.xmpdata=o||{}}t&&t.call(e)}if(e.src)if(/^data\:/i.test(e.src)){var r=p(e.src);n(r)}else if(/^blob\:/i.test(e.src)){var o=new FileReader;o.onload=function(e){n(e.target.result)},f(e.src,(function(e){o.readAsArrayBuffer(e)}))}else{var a=new XMLHttpRequest;a.onload=function(){if(200!=this.status&&0!==this.status)throw"Could not load image";n(a.response),a=null},a.open("GET",e.src,!0),a.responseType="arraybuffer",a.send(null)}else if(self.FileReader&&(e instanceof self.Blob||e instanceof self.File)){o=new FileReader;o.onload=function(e){i&&console.log("Got file of length "+e.target.result.byteLength),n(e.target.result)},o.readAsArrayBuffer(e)}}function m(e){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;var n,r=2,o=e.byteLength;while(r<o){if(255!=t.getUint8(r))return i&&console.log("Not a valid marker at offset "+r+", found: "+t.getUint8(r)),!1;if(n=t.getUint8(r+1),i&&console.log(n),225==n)return i&&console.log("Found 0xFFE1 marker"),S(t,r+4,t.getUint16(r+2)-2);r+=2+t.getUint16(r+2)}}function v(e){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;var n=2,r=e.byteLength,o=function(e,t){return 56===e.getUint8(t)&&66===e.getUint8(t+1)&&73===e.getUint8(t+2)&&77===e.getUint8(t+3)&&4===e.getUint8(t+4)&&4===e.getUint8(t+5)};while(n<r){if(o(t,n)){var s=t.getUint8(n+7);s%2!==0&&(s+=1),0===s&&(s=4);var a=n+8+s,c=t.getUint16(n+6+s);return y(e,a,c)}n++}}var w={120:"caption",110:"credit",25:"keywords",55:"dateCreated",80:"byline",85:"bylineTitle",122:"captionWriter",105:"headline",116:"copyright",15:"category"};function y(e,t,n){var i,r,o,s,a=new DataView(e),c={},l=t;while(l<t+n)28===a.getUint8(l)&&2===a.getUint8(l+1)&&(s=a.getUint8(l+2),s in w&&(o=a.getInt16(l+3),o+5,r=w[s],i=T(a,l+5,o),c.hasOwnProperty(r)?c[r]instanceof Array?c[r].push(i):c[r]=[c[r],i]:c[r]=i)),l++;return c}function _(e,t,n,r,o){var s,a,c,l=e.getUint16(n,!o),u={};for(c=0;c<l;c++)s=n+12*c+2,a=r[e.getUint16(s,!o)],!a&&i&&console.log("Unknown tag: "+e.getUint16(s,!o)),u[a]=b(e,s,t,n,o);return u}function b(e,t,n,i,r){var o,s,a,c,l,u,d=e.getUint16(t+2,!r),h=e.getUint32(t+4,!r),p=e.getUint32(t+8,!r)+n;switch(d){case 1:case 7:if(1==h)return e.getUint8(t+8,!r);for(o=h>4?p:t+8,s=[],c=0;c<h;c++)s[c]=e.getUint8(o+c);return s;case 2:return o=h>4?p:t+8,T(e,o,h-1);case 3:if(1==h)return e.getUint16(t+8,!r);for(o=h>2?p:t+8,s=[],c=0;c<h;c++)s[c]=e.getUint16(o+2*c,!r);return s;case 4:if(1==h)return e.getUint32(t+8,!r);for(s=[],c=0;c<h;c++)s[c]=e.getUint32(p+4*c,!r);return s;case 5:if(1==h)return l=e.getUint32(p,!r),u=e.getUint32(p+4,!r),a=new Number(l/u),a.numerator=l,a.denominator=u,a;for(s=[],c=0;c<h;c++)l=e.getUint32(p+8*c,!r),u=e.getUint32(p+4+8*c,!r),s[c]=new Number(l/u),s[c].numerator=l,s[c].denominator=u;return s;case 9:if(1==h)return e.getInt32(t+8,!r);for(s=[],c=0;c<h;c++)s[c]=e.getInt32(p+4*c,!r);return s;case 10:if(1==h)return e.getInt32(p,!r)/e.getInt32(p+4,!r);for(s=[],c=0;c<h;c++)s[c]=e.getInt32(p+8*c,!r)/e.getInt32(p+4+8*c,!r);return s}}function x(e,t,n){var i=e.getUint16(t,!n);return e.getUint32(t+2+12*i,!n)}function C(e,t,n,i){var r=x(e,t+n,i);if(!r)return{};if(r>e.byteLength)return{};var o=_(e,t,t+r,u,i);if(o["Compression"])switch(o["Compression"]){case 6:if(o.JpegIFOffset&&o.JpegIFByteCount){var s=t+o.JpegIFOffset,a=o.JpegIFByteCount;o["blob"]=new Blob([new Uint8Array(e.buffer,s,a)],{type:"image/jpeg"})}break;case 1:console.log("Thumbnail image format is TIFF, which is not implemented.");break;default:console.log("Unknown thumbnail image format '%s'",o["Compression"])}else 2==o["PhotometricInterpretation"]&&console.log("Thumbnail image format is RGB, which is not implemented.");return o}function T(e,t,i){var r="";for(n=t;n<t+i;n++)r+=String.fromCharCode(e.getUint8(n));return r}function S(e,t){if("Exif"!=T(e,t,4))return i&&console.log("Not valid EXIF data! "+T(e,t,4)),!1;var n,r,o,s,u,h=t+6;if(18761==e.getUint16(h))n=!1;else{if(19789!=e.getUint16(h))return i&&console.log("Not valid TIFF data! (no 0x4949 or 0x4D4D)"),!1;n=!0}if(42!=e.getUint16(h+2,!n))return i&&console.log("Not valid TIFF data! (no 0x002A)"),!1;var p=e.getUint32(h+4,!n);if(p<8)return i&&console.log("Not valid TIFF data! (First offset less than 8)",e.getUint32(h+4,!n)),!1;if(r=_(e,h,h+p,c,n),r.ExifIFDPointer)for(o in s=_(e,h,h+r.ExifIFDPointer,a,n),s){switch(o){case"LightSource":case"Flash":case"MeteringMode":case"ExposureProgram":case"SensingMethod":case"SceneCaptureType":case"SceneType":case"CustomRendered":case"WhiteBalance":case"GainControl":case"Contrast":case"Saturation":case"Sharpness":case"SubjectDistanceRange":case"FileSource":s[o]=d[o][s[o]];break;case"ExifVersion":case"FlashpixVersion":s[o]=String.fromCharCode(s[o][0],s[o][1],s[o][2],s[o][3]);break;case"ComponentsConfiguration":s[o]=d.Components[s[o][0]]+d.Components[s[o][1]]+d.Components[s[o][2]]+d.Components[s[o][3]];break}r[o]=s[o]}if(r.GPSInfoIFDPointer)for(o in u=_(e,h,h+r.GPSInfoIFDPointer,l,n),u){switch(o){case"GPSVersionID":u[o]=u[o][0]+"."+u[o][1]+"."+u[o][2]+"."+u[o][3];break}r[o]=u[o]}return r["thumbnail"]=C(e,h,p,n),r}function k(e){if("DOMParser"in self){var t=new DataView(e);if(i&&console.log("Got file of length "+e.byteLength),255!=t.getUint8(0)||216!=t.getUint8(1))return i&&console.log("Not a valid JPEG"),!1;var n=2,r=e.byteLength,o=new DOMParser;while(n<r-4){if("http"==T(t,n,4)){var s=n-1,a=t.getUint16(n-2)-1,c=T(t,s,a),l=c.indexOf("xmpmeta>")+8;c=c.substring(c.indexOf("<x:xmpmeta"),l);var u=c.indexOf("x:xmpmeta")+10;c=c.slice(0,u)+'xmlns:Iptc4xmpCore="http://iptc.org/std/Iptc4xmpCore/1.0/xmlns/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tiff="http://ns.adobe.com/tiff/1.0/" xmlns:plus="http://schemas.android.com/apk/lib/com.google.android.gms.plus" xmlns:ext="http://www.gettyimages.com/xsltExtension/1.0" xmlns:exif="http://ns.adobe.com/exif/1.0/" xmlns:stEvt="http://ns.adobe.com/xap/1.0/sType/ResourceEvent#" xmlns:stRef="http://ns.adobe.com/xap/1.0/sType/ResourceRef#" xmlns:crs="http://ns.adobe.com/camera-raw-settings/1.0/" xmlns:xapGImg="http://ns.adobe.com/xap/1.0/g/img/" xmlns:Iptc4xmpExt="http://iptc.org/std/Iptc4xmpExt/2008-02-29/" '+c.slice(u);var d=o.parseFromString(c,"text/xml");return I(d)}n++}}}function E(e){var t={};if(1==e.nodeType){if(e.attributes.length>0){t["@attributes"]={};for(var n=0;n<e.attributes.length;n++){var i=e.attributes.item(n);t["@attributes"][i.nodeName]=i.nodeValue}}}else if(3==e.nodeType)return e.nodeValue;if(e.hasChildNodes())for(var r=0;r<e.childNodes.length;r++){var o=e.childNodes.item(r),s=o.nodeName;if(null==t[s])t[s]=E(o);else{if(null==t[s].push){var a=t[s];t[s]=[],t[s].push(a)}t[s].push(E(o))}}return t}function I(e){try{var t={};if(e.children.length>0)for(var n=0;n<e.children.length;n++){var i=e.children.item(n),r=i.attributes;for(var o in r){var s=r[o],a=s.nodeName,c=s.nodeValue;void 0!==a&&(t[a]=c)}var l=i.nodeName;if("undefined"==typeof t[l])t[l]=E(i);else{if("undefined"==typeof t[l].push){var u=t[l];t[l]=[],t[l].push(u)}t[l].push(E(i))}}else t=e.textContent;return t}catch(d){console.log(d.message)}}s.enableXmp=function(){s.isXmpEnabled=!0},s.disableXmp=function(){s.isXmpEnabled=!1},s.getData=function(e,t){return!((self.Image&&e instanceof self.Image||self.HTMLImageElement&&e instanceof self.HTMLImageElement)&&!e.complete)&&(h(e)?t&&t.call(e):g(e,t),!0)},s.getTag=function(e,t){if(h(e))return e.exifdata[t]},s.getIptcTag=function(e,t){if(h(e))return e.iptcdata[t]},s.getAllTags=function(e){if(!h(e))return{};var t,n=e.exifdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},s.getAllIptcTags=function(e){if(!h(e))return{};var t,n=e.iptcdata,i={};for(t in n)n.hasOwnProperty(t)&&(i[t]=n[t]);return i},s.pretty=function(e){if(!h(e))return"";var t,n=e.exifdata,i="";for(t in n)n.hasOwnProperty(t)&&("object"==typeof n[t]?n[t]instanceof Number?i+=t+" : "+n[t]+" ["+n[t].numerator+"/"+n[t].denominator+"]\r\n":i+=t+" : ["+n[t].length+" values]\r\n":i+=t+" : "+n[t]+"\r\n");return i},s.readFromBinaryFile=function(e){return m(e)},r=[],o=function(){return s}.apply(t,r),void 0===o||(e.exports=o)}).call(this)},"6f8e":function(e,t,n){},"73dd":function(e,t,n){"use strict";n("3ac1")},"77eb":function(e,t,n){},"857a":function(e,t,n){var i=n("1d80"),r=/"/g;e.exports=function(e,t,n,o){var s=String(i(e)),a="<"+t;return""!==n&&(a+=" "+n+'="'+String(o).replace(r,"&quot;")+'"'),a+">"+s+"</"+t+">"}},a83e:function(e,t,n){},aa3d:function(e,t,n){"use strict";n("6f8e")},af03:function(e,t,n){var i=n("d039");e.exports=function(e){return i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},b6a8:function(e,t,n){"use strict";n("0a7d")},c221:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAACY0lEQVR4AWIgFkzd78DTdcQzHFB8NcDMEUThDevYThGzsRvVtm23cW3s1batoDbOvqttn+17ne/3cdH9717yLd/M9wYPo1L33Mdg4NU9/7B7HKh7NuAfdKDLKSVbdN068pqeBxlJmIFEIow2aCubeMXDLi1V6l4beE2vBDqVg7q2G9GXJHJe26MDa2hnIIVgFz0b/JM+nZnlv9FQSaBP9C243kz5r6LEufgLjhLkQ1qxNXdAsZnhBFeBAdgsUKgQNhZsOubDyUoZAK6cpYDPKk4kbMQhDrJR07edhCCjJMLg5hA6le58p2EEG2FvQT1wc2znH1CKeLt+KH30WgnyJ/SBtmoHltUHN4ckogT5PtN4coU/U1M5bJ0ltA8MMMBVTmmztr/gdB61zaFgwp1Dbvx2WcxGdHHlks31N1spnU1RKOGhc88WF9W58GwpJdJRqpdsNkN33+8TnazKGvDBa6F6gSHX3mzO+X/j7XbKZNNUL8l0nK68XCspW5ZdghP2BRRNBqlRsvTk80n2rzdpv5zBO9VLJOmjk46FUmOBS3ATHrRMJV/sFzUVV+RLzrsn+oMOmCfLCUYGUW64yzCKfgbfUDH5HnhFO/UjZHkOuEUHIvj0O7chh/yNS0dbtP1luy64JYVilaYPab6cpb/hT6T+fCrXPaUjAm4OgsRQtWRUXwlVOh3zj3t3qlJBgqXsyRctyVAuVaIkW2Hp07r6RWn1y3Lh8typ5LSjT8lHM2zM//EOtBU+mgkI3KWuaI1ICLFR+DnackoJjtyqJ72G8+pe+xmM2FAYIYBnfMM/6Eg5nv8DLo/DmymtITcAAAAASUVORK5CYII="},c66e:function(e,t,n){},c7cd:function(e,t,n){"use strict";var i=n("23e7"),r=n("857a"),o=n("af03");i({target:"String",proto:!0,forced:o("fixed")},{fixed:function(){return r(this,"tt","","")}})},cb8f1:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));n("caad");function i(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return["Y","N",""].includes(e),t?"Y"===e:!("N"===e)}},d074:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAAMCAQAAACUjxZUAAAAjUlEQVR42sWUQQrDMAwE9+AH5EtxHmUI8ScEOei101OhtFZat4Kim3YYbIEkhChUGobRqBT0phJ4IRYO/KEOlktNCi/KU9tx+sUvknixvrQdZw1FSbxow6CFoiRenMPgDEVJfBTYpGia/+Oo6zCooSiJF4U+uR4p/GjB++RB+Iq/v2pjxzB2to9O4M/8DXfHlycgZuSBAAAAAElFTkSuQmCC"},e439d:function(e,t,n){"use strict";n("480d")},e64c:function(e,t,n){"use strict";n("77eb")},ec15:function(e,t,n){"use strict";n("c66e")},ed4d:function(e,t,n){"use strict";var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"cropper",staticClass:"vue-cropper",on:{mouseover:e.scaleImg,mouseout:e.cancleScale}},[n("div",{staticClass:"cropper-box"},[n("div",{directives:[{name:"show",rawName:"v-show",value:!e.loading,expression:"!loading"}],staticClass:"cropper-box-canvas",style:{width:e.trueWidth+"px",height:e.trueHeight+"px",transform:"scale("+e.scale+","+e.scale+") translate3d("+e.x/e.scale+"px,"+e.y/e.scale+"px,0)rotateZ("+90*e.rotate+"deg)"}},[n("img",{ref:"cropperImg",attrs:{src:e.imgs,alt:"cropper-img"}})])]),n("div",{staticClass:"cropper-drag-box",class:{"cropper-move":e.move&&!e.crop,"cropper-crop":e.crop,"cropper-modal":e.cropping},on:{mousedown:e.startMove,touchstart:e.startMove}}),n("div",{directives:[{name:"show",rawName:"v-show",value:e.cropping,expression:"cropping"}],staticClass:"cropper-crop-box",style:{width:e.cropW+"px",height:e.cropH+"px",transform:"translate3d("+e.cropOffsertX+"px,"+e.cropOffsertY+"px,0)"}},[n("span",{staticClass:"cropper-view-box"},[n("img",{style:{width:e.trueWidth*e.scale+"px",height:e.trueHeight*e.scale+"px",transform:"scale(1, 1) translate3d("+-1*e.cropOffsertX+"px,"+-1*e.cropOffsertY+"px,0)rotateZ("+90*e.rotate+"deg)"},attrs:{src:e.imgs,alt:"cropper-img"}})]),n("span",{staticClass:"cropper-face cropper-move",on:{mousedown:e.cropMove,touchstart:e.cropMove}}),e.info?n("span",{staticClass:"crop-info",style:{top:e.cropInfo}},[e._v(e._s(this.cropW>0?this.cropW:0)+" × "+e._s(this.cropH>0?this.cropH:0))]):e._e(),e.fixedBox?e._e():n("span",[n("span",{staticClass:"crop-line line-w",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,1)}}}),n("span",{staticClass:"crop-line line-a",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,1,0)}}}),n("span",{staticClass:"crop-line line-s",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,2)}}}),n("span",{staticClass:"crop-line line-d",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,2,0)}}}),n("span",{staticClass:"crop-point point1",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,1,1)},touchstart:function(t){return e.changeCropSize(t,!0,!0,1,1)}}}),n("span",{staticClass:"crop-point point2",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,1)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,1)}}}),n("span",{staticClass:"crop-point point3",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,2,1)},touchstart:function(t){return e.changeCropSize(t,!0,!0,2,1)}}}),n("span",{staticClass:"crop-point point4",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,1,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,1,0)}}}),n("span",{staticClass:"crop-point point5",on:{mousedown:function(t){return e.changeCropSize(t,!0,!1,2,0)},touchstart:function(t){return e.changeCropSize(t,!0,!1,2,0)}}}),n("span",{staticClass:"crop-point point6",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,1,2)},touchstart:function(t){return e.changeCropSize(t,!0,!0,1,2)}}}),n("span",{staticClass:"crop-point point7",on:{mousedown:function(t){return e.changeCropSize(t,!1,!0,0,2)},touchstart:function(t){return e.changeCropSize(t,!1,!0,0,2)}}}),n("span",{staticClass:"crop-point point8",on:{mousedown:function(t){return e.changeCropSize(t,!0,!0,2,2)},touchstart:function(t){return e.changeCropSize(t,!0,!0,2,2)}}})])])])},r=[],o=(n("c975"),n("ace4"),n("a9e3"),n("d3b7"),n("ac1f"),n("3ca3"),n("466d"),n("5319"),n("1276"),n("c7cd"),n("5cc6"),n("9a8c"),n("a975"),n("735e"),n("c1ac"),n("d139"),n("3a7b"),n("d5d6"),n("82f8"),n("e91f"),n("60bd"),n("5f96"),n("3280"),n("3fcc"),n("ca91"),n("25a1"),n("cd26"),n("3c5d"),n("2954"),n("649e"),n("219c"),n("170b"),n("b39a"),n("72f7"),n("ddb0"),n("2b3d"),n("6f45")),s=n.n(o),a={data:function(){return{w:0,h:0,scale:1,x:0,y:0,loading:!0,trueWidth:0,trueHeight:0,move:!0,moveX:0,moveY:0,crop:!1,cropping:!1,cropW:0,cropH:0,cropOldW:0,cropOldH:0,canChangeX:!1,canChangeY:!1,changeCropTypeX:1,changeCropTypeY:1,cropX:0,cropY:0,cropChangeX:0,cropChangeY:0,cropOffsertX:0,cropOffsertY:0,support:"",touches:[],touchNow:!1,rotate:0,isIos:!1,orientation:0,imgs:"",coe:.2,scaling:!1,scalingSet:"",coeStatus:""}},props:{img:{type:String,default:""},outputSize:{type:Number,default:1},outputType:{type:String,default:"jpeg"},info:{type:Boolean,default:!0},canScale:{type:Boolean,default:!0},autoCrop:{type:Boolean,default:!1},autoCropWidth:{type:Number,default:0},autoCropHeight:{type:Number,default:0},fixed:{type:Boolean,default:!1},fixedNumber:{type:Array,default:function(){return[1,1]}},fixedBox:{type:Boolean,default:!1},full:{type:Boolean,default:!1},canMove:{type:Boolean,default:!0},canMoveBox:{type:Boolean,default:!0},original:{type:Boolean,default:!1}},computed:{cropInfo:function(){return this.cropOffsertY>20?"-20px":"0px"}},watch:{img:function(){this.checkedImg()},imgs:function(e){""!==e&&this.reload()},cropW:function(){this.cropW=~~this.cropW,this.showPreview()},cropH:function(){this.cropH=~~this.cropH,this.showPreview()},cropOffsertX:function(){this.showPreview()},cropOffsertY:function(){this.showPreview()},scale:function(){this.showPreview()},x:function(){this.showPreview()},y:function(){this.showPreview()},rotate:function(){this.showPreview()}},methods:{checkedImg:function(){var e=this;if(""!==this.img){this.loading=!0,this.scale=1,this.clearCrop();var t=document.createElement("canvas"),n=new Image,i=0;n.onload=function(){var r=n.width,o=n.height,a=t.getContext("2d");a.save(),s.a.getData(n,(function(){switch(s.a.getAllTags(n),e.orientation=s.a.getTag(n,"Orientation"),e.orientation){case 6:i=1;break;case 8:i=-1;break;case 3:i=3;break;default:i=0}if(0!==i){switch(i){case 0:t.width=r,t.height=o,a.drawImage(n,0,0,r,o);break;case 1:case-3:t.width=o,t.height=r,a.rotate(90*i*Math.PI/180),a.drawImage(n,0,-o,r,o);break;case 2:case-2:t.width=r,t.height=o,a.rotate(90*i*Math.PI/180),a.drawImage(n,-r,-o,r,o);break;case 3:case-1:t.width=o,t.height=r,a.rotate(90*i*Math.PI/180),a.drawImage(n,-r,0,r,o);break;default:t.width=r,t.height=o,a.drawImage(n,0,0,r,o)}a.restore(),t.toBlob((function(t){var n=URL.createObjectURL(t);e.imgs=n}),"image/"+e.outputType,1)}else e.imgs=e.img}))},n.onerror=function(){e.$emit("imgLoad","error")},n.crossOrigin="*",n.src=this.img}},startMove:function(e){if(e.preventDefault(),this.move&&!this.crop){if(!this.canMove)return!1;this.moveX=(e.clientX?e.clientX:e.touches[0].clientX)-this.x,this.moveY=(e.clientY?e.clientY:e.touches[0].clientY)-this.y,e.touches?(window.addEventListener("touchmove",this.moveImg),window.addEventListener("touchend",this.leaveImg),2==e.touches.length&&(this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancleTouchScale))):(window.addEventListener("mousemove",this.moveImg),window.addEventListener("mouseup",this.leaveImg))}else this.cropping=!0,window.addEventListener("mousemove",this.createCrop),window.addEventListener("mouseup",this.endCrop),window.addEventListener("touchmove",this.createCrop),window.addEventListener("touchend",this.endCrop),this.cropOffsertX=e.offsetX?e.offsetX:e.touches[0].pageX-this.$refs.cropper.offsetLeft,this.cropOffsertY=e.offsetY?e.offsetY:e.touches[0].pageY-this.$refs.cropper.offsetTop,this.cropX=e.clientX?e.clientX:e.touches[0].clientX,this.cropY=e.clientY?e.clientY:e.touches[0].clientY,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.cropW=0,this.cropH=0},touchScale:function(e){var t=this;e.preventDefault();var n={x:this.touches[0].clientX,y:this.touches[0].clientY},i={x:e.touches[0].clientX,y:e.touches[0].clientY},r={x:this.touches[1].clientX,y:this.touches[1].clientY},o={x:e.touches[1].clientX,y:e.touches[1].clientY},s=Math.sqrt(Math.pow(n.x-r.x,2)+Math.pow(n.y-r.y,2)),a=Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2)),c=~~(a-s),l=1;l=l/this.trueWidth>l/this.trueHeight?l/this.trueHeight:l/this.trueWidth,l=l>.1?.1:l;var u=l*c;this.touchNow||(this.touchNow=!0,c>0?this.scale+=Math.abs(u):c<0&&(this.scale>Math.abs(u)?this.scale-=Math.abs(u):this.scale),this.touches=e.touches,setTimeout((function(){t.touchNow=!1}),8))},cancleTouchScale:function(e){window.removeEventListener("touchmove",this.touchScale)},moveImg:function(e){var t=this;if(e.preventDefault(),e.touches&&2===e.touches.length)return this.touches=e.touches,window.addEventListener("touchmove",this.touchScale),window.addEventListener("touchend",this.cancleTouchScale),window.removeEventListener("touchmove",this.moveImg),!1;var n=e.clientX?e.clientX:e.touches[0].clientX,i=e.clientY?e.clientY:e.touches[0].clientY;this.$nextTick((function(){t.x=~~(n-t.moveX),t.y=~~(i-t.moveY)}))},leaveImg:function(e){window.removeEventListener("mousemove",this.moveImg),window.removeEventListener("touchmove",this.moveImg),window.removeEventListener("mouseup",this.leaveImg),window.removeEventListener("touchend",this.leaveImg)},scaleImg:function(){this.support="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",this.canScale&&window.addEventListener(this.support,this.changeSize)},cancleScale:function(){this.canScale&&window.removeEventListener(this.support,this.changeSize)},changeSize:function(e){var t=this;e.preventDefault();var n=e.deltaY||e.wheelDelta,i=navigator.userAgent.indexOf("Firefox");n=i>0?30*n:n;var r=this.coe;r=r/this.trueWidth>r/this.trueHeight?r/this.trueHeight:r/this.trueWidth;var o=r*n;o<0?this.scale+=Math.abs(o):this.scale>Math.abs(o)?this.scale-=Math.abs(o):this.scale;var s=o<0?"add":"reduce";s!==this.coeStatus&&(this.coeStatus=s,this.coe=.2),this.scaling||(this.scalingSet=setTimeout((function(){t.scaling=!1,t.coe=t.coe+=.01}),50)),this.scaling=!0},changeScale:function(e){e=e||1;var t=20;t=t/this.trueWidth>t/this.trueHeight?t/this.trueHeight:t/this.trueWidth,e*=t,e>0?this.scale+=Math.abs(e):this.scale>Math.abs(e)?this.scale-=Math.abs(e):this.scale},createCrop:function(e){var t=this;e.preventDefault();var n=e.clientX?e.clientX:e.touches?e.touches[0].clientX:0,i=e.clientY?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick((function(){var e=~~(n-t.cropX),r=~~(i-t.cropY);if(e>0?(t.cropW=e+t.cropChangeX>t.w?t.w-t.cropChangeX:e,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(e)>t.w?t.cropChangeX:Math.abs(e),t.cropOffsertX=t.cropChangeX+e>0?t.cropChangeX+e:0),t.fixed){var o=~~(t.cropW/t.fixedNumber[0]*t.fixedNumber[1]);o+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=~~(t.cropH/t.fixedNumber[1]*t.fixedNumber[0]),t.cropOffsertX=e>0?t.cropChangeX:t.cropChangeX-t.cropW):t.cropH=o,t.cropOffsertY=t.cropOffsertY}else r>0?(t.cropH=r+t.cropChangeY>t.h?t.h-t.cropChangeY:r,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(r)>t.h?t.cropChangeY:Math.abs(r),t.cropOffsertY=t.cropChangeY+r>0?t.cropChangeY+r:0)}))},changeCropSize:function(e,t,n,i,r){e.preventDefault(),window.addEventListener("mousemove",this.changeCropNow),window.addEventListener("mouseup",this.changeCropEnd),window.addEventListener("touchmove",this.changeCropNow),window.addEventListener("touchend",this.changeCropEnd),this.canChangeX=t,this.canChangeY=n,this.changeCropTypeX=i,this.changeCropTypeY=r,this.cropX=e.clientX?e.clientX:e.touches[0].clientX,this.cropY=e.clientY?e.clientY:e.touches[0].clientY,this.cropOldW=this.cropW,this.cropOldH=this.cropH,this.cropChangeX=this.cropOffsertX,this.cropChangeY=this.cropOffsertY,this.fixed&&this.canChangeX&&this.canChangeY&&(this.canChangeY=0)},changeCropNow:function(e){var t=this;e.preventDefault();var n=e.clientX?e.clientX:e.touches?e.touches[0].clientX:0,i=e.clientY?e.clientY:e.touches?e.touches[0].clientY:0;this.$nextTick((function(){var e=~~(n-t.cropX),r=~~(i-t.cropY);if(t.canChangeX&&(1===t.changeCropTypeX?t.cropOldW-e>0?(t.cropW=t.w-t.cropChangeX-e<=t.w?t.cropOldW-e:t.cropOldW+t.cropChangeX,t.cropOffsertX=t.w-t.cropChangeX-e<=t.w?t.cropChangeX+e:0):(t.cropW=Math.abs(e)+t.cropChangeX<=t.w?Math.abs(e)-t.cropOldW:t.w-t.cropOldW-t.cropChangeX,t.cropOffsertX=t.cropChangeX+t.cropOldW):2===t.changeCropTypeX&&(t.cropOldW+e>0?(t.cropW=t.cropOldW+e+t.cropOffsertX<=t.w?t.cropOldW+e:t.w-t.cropOffsertX,t.cropOffsertX=t.cropChangeX):(t.cropW=t.w-t.cropChangeX+Math.abs(e+t.cropOldW)<=t.w?Math.abs(e+t.cropOldW):t.cropChangeX,t.cropOffsertX=t.w-t.cropChangeX+Math.abs(e+t.cropOldW)<=t.w?t.cropChangeX-Math.abs(e+t.cropOldW):0))),t.canChangeY&&(1===t.changeCropTypeY?t.cropOldH-r>0?(t.cropH=t.h-t.cropChangeY-r<=t.h?t.cropOldH-r:t.cropOldH+t.cropChangeY,t.cropOffsertY=t.h-t.cropChangeY-r<=t.h?t.cropChangeY+r:0):(t.cropH=Math.abs(r)+t.cropChangeY<=t.h?Math.abs(r)-t.cropOldH:t.h-t.cropOldH-t.cropChangeY,t.cropOffsertY=t.cropChangeY+t.cropOldH):2===t.changeCropTypeY&&(t.cropOldH+r>0?(t.cropH=t.cropOldH+r+t.cropOffsertY<=t.h?t.cropOldH+r:t.h-t.cropOffsertY,t.cropOffsertY=t.cropChangeY):(t.cropH=t.h-t.cropChangeY+Math.abs(r+t.cropOldH)<=t.h?Math.abs(r+t.cropOldH):t.cropChangeY,t.cropOffsertY=t.h-t.cropChangeY+Math.abs(r+t.cropOldH)<=t.h?t.cropChangeY-Math.abs(r+t.cropOldH):0))),t.canChangeX&&t.fixed){var o=~~(t.cropW/t.fixedNumber[0]*t.fixedNumber[1]);o+t.cropOffsertY>t.h?(t.cropH=t.h-t.cropOffsertY,t.cropW=~~(t.cropH/t.fixedNumber[1]*t.fixedNumber[0])):t.cropH=o}if(t.canChangeY&&t.fixed){var s=~~(t.cropH/t.fixedNumber[1]*t.fixedNumber[0]);s+t.cropOffsertX>t.w?(t.cropW=t.w-t.cropOffsertX,t.cropH=~~(t.cropW/t.fixedNumber[0]*t.fixedNumber[1])):t.cropW=s}}))},changeCropEnd:function(e){window.removeEventListener("mousemove",this.changeCropNow),window.removeEventListener("mouseup",this.changeCropEnd),window.removeEventListener("touchmove",this.changeCropNow),window.removeEventListener("touchend",this.changeCropEnd)},endCrop:function(){0===this.cropW&&0===this.cropH&&(this.cropping=!1),window.removeEventListener("mousemove",this.createCrop),window.removeEventListener("mouseup",this.endCrop),window.removeEventListener("touchmove",this.createCrop),window.removeEventListener("touchend",this.endCrop)},startCrop:function(){this.crop=!0},stopCrop:function(){this.crop=!1},clearCrop:function(){this.cropping=!1,this.cropW=0,this.cropH=0},cropMove:function(e){if(e.preventDefault(),!this.canMoveBox)return this.crop=!1,this.startMove(e),!1;window.addEventListener("mousemove",this.moveCrop),window.addEventListener("mouseup",this.leaveCrop),window.addEventListener("touchmove",this.moveCrop),window.addEventListener("touchend",this.leaveCrop),this.cropX=(e.clientX?e.clientX:e.touches[0].clientX)-this.cropOffsertX,this.cropY=(e.clientY?e.clientY:e.touches[0].clientY)-this.cropOffsertY},moveCrop:function(e){var t=this;e.preventDefault();var n=e.clientX?e.clientX:e.touches[0].clientX,i=e.clientY?e.clientY:e.touches[0].clientY;this.$nextTick((function(){var e=~~(n-t.cropX),r=~~(i-t.cropY);e<=1?t.cropOffsertX=1:~~(e+t.cropW)>t.w?t.cropOffsertX=t.w-t.cropW-1:t.cropOffsertX=e,r<=1?t.cropOffsertY=1:~~(r+t.cropH)>t.h?t.cropOffsertY=t.h-t.cropH-1:t.cropOffsertY=r}))},leaveCrop:function(e){window.removeEventListener("mousemove",this.moveCrop),window.removeEventListener("mouseup",this.leaveCrop),window.removeEventListener("touchmove",this.moveCrop),window.removeEventListener("touchend",this.leaveCrop)},getCropData:function(e){var t=this,n=document.createElement("canvas"),i=new Image,r=this.rotate,o=this.trueWidth,s=this.trueHeight,a=this.cropOffsertX,c=this.cropOffsertY;i.onload=function(){if(0!==~~t.cropW){var l=n.getContext("2d"),u=t.cropW,d=t.cropH,h=o*t.scale,p=s*t.scale,f=t.x-a+t.trueWidth*(1-t.scale)/2,g=t.y-c+t.trueHeight*(1-t.scale)/2;switch(n.width=u,n.height=d,l.save(),r){case 0:t.full?(n.width=u/t.scale,n.height=d/t.scale,l.drawImage(i,f/t.scale,g/t.scale,h/t.scale,p/t.scale)):l.drawImage(i,f,g,h,p);break;case 1:case-3:t.full?(n.width=u/t.scale,n.height=d/t.scale,f=f/t.scale+(h/t.scale-p/t.scale)/2,g=g/t.scale+(p/t.scale-h/t.scale)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,g,-f-p/t.scale,h/t.scale,p/t.scale)):(f+=(h-p)/2,g+=(p-h)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,g,-f-p,h,p));break;case 2:case-2:t.full?(n.width=u/t.scale,n.height=d/t.scale,l.rotate(90*r*Math.PI/180),f/=t.scale,g/=t.scale,l.drawImage(i,-f-h/t.scale,-g-p/t.scale,h/t.scale,p/t.scale)):(l.rotate(90*r*Math.PI/180),l.drawImage(i,-f-h,-g-p,h,p));break;case 3:case-1:t.full?(n.width=u/t.scale,n.height=d/t.scale,f=f/t.scale+(h/t.scale-p/t.scale)/2,g=g/t.scale+(p/t.scale-h/t.scale)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,-g-h/t.scale,f,h/t.scale,p/t.scale)):(f+=(h-p)/2,g+=(p-h)/2,l.rotate(90*r*Math.PI/180),l.drawImage(i,-g-h,f,h,p));break;default:t.full?(n.width=u/t.scale,n.height=d/t.scale,l.drawImage(i,f/t.scale,g/t.scale,h/t.scale,p/t.scale)):l.drawImage(i,f,g,h,p)}l.restore()}else{var m=o*t.scale,v=s*t.scale,w=n.getContext("2d");switch(w.save(),r){case 0:n.width=m,n.height=v,w.drawImage(i,0,0,m,v);break;case 1:case-3:n.width=v,n.height=m,w.rotate(90*r*Math.PI/180),w.drawImage(i,0,-v,m,v);break;case 2:case-2:n.width=m,n.height=v,w.rotate(90*r*Math.PI/180),w.drawImage(i,-m,-v,m,v);break;case 3:case-1:n.width=v,n.height=m,w.rotate(90*r*Math.PI/180),w.drawImage(i,-m,0,m,v);break;default:n.width=m,n.height=v,w.drawImage(i,0,0,m,v)}w.restore()}var y=n.toDataURL("image/"+t.outputType,t.outputSize);e(y)};var l=this.img.substr(0,4);"data"!==l&&(i.crossOrigin="anonymous"),i.src=this.imgs},getCropBlob:function(e){this.getCropData((function(t){var n=t.split(","),i=n[0].match(/:(.*?);/)[1],r=atob(n[1]),o=r.length,s=new Uint8Array(o);while(o--)s[o]=r.charCodeAt(o);e(new Blob([s],{type:i}))}))},showPreview:function(){var e={};e.div={width:this.cropW+"px",height:this.cropH+"px"},e.img={width:this.trueWidth+"px",height:this.trueHeight+"px",transform:"scale("+this.scale+","+this.scale+") translate3d("+(this.x-this.cropOffsertX)/this.scale+"px,"+(this.y-this.cropOffsertY)/this.scale+"px,0)rotateZ("+90*this.rotate+"deg)"},e.w=this.cropW,e.h=this.cropH,e.url=this.imgs,this.$emit("realTime",e)},reload:function(){var e=this,t=new Image;t.onload=function(){e.w=~~window.getComputedStyle(e.$refs.cropper).width.replace("px",""),e.h=~~window.getComputedStyle(e.$refs.cropper).height.replace("px",""),e.trueWidth=t.width,e.trueHeight=t.height,e.original?e.scale=1:(e.trueWidth>e.w&&(e.scale=e.w/e.trueWidth),e.trueHeight*e.scale>e.h&&(e.scale=e.h/e.trueHeight)),e.$nextTick((function(){e.x=-(e.trueWidth-e.trueWidth*e.scale)/2+(e.w-e.trueWidth*e.scale)/2,e.y=-(e.trueHeight-e.trueHeight*e.scale)/2+(e.h-e.trueHeight*e.scale)/2,e.loading=!1,e.autoCrop&&e.goAutoCrop(),e.$emit("imgLoad","success")}))},t.onerror=function(){e.$emit("imgLoad","error")},t.src=this.imgs},goAutoCrop:function(){this.cropping=!0;var e=this.autoCropWidth,t=this.autoCropHeight;0!==e&&0!==t||(e=.8*this.w,t=.8*this.h),e=e>this.w?this.w:e,t=t>this.h?this.h:t,this.fixed&&(t=e/this.fixedNumber[0]*this.fixedNumber[1]),t>this.h&&(t=this.h,e=t/this.fixedNumber[1]*this.fixedNumber[0]),this.changeCrop(e,t)},changeCrop:function(e,t){this.cropW=e,this.cropH=t,this.cropOffsertX=(this.w-e)/2,this.cropOffsertY=(this.h-t)/2},refresh:function(){this.imgs="",this.scale=1,this.crop=!1,this.rotate=0,this.w=0,this.h=0,this.trueWidth=0,this.trueHeight=0,this.clearCrop()},rotateLeft:function(){this.rotate=this.rotate<=-3?0:this.rotate-1},rotateRight:function(){this.rotate=this.rotate>=3?0:this.rotate+1},rotateClear:function(){this.rotate=0}},mounted:function(){var e=this;this.showPreview(),this.checkedImg();var t=navigator.userAgent;this.isIOS=!!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/),HTMLCanvasElement.prototype.toBlob||Object.defineProperty(HTMLCanvasElement.prototype,"toBlob",{value:function(t,n,i){for(var r=atob(this.toDataURL(n,i).split(",")[1]),o=r.length,s=new Uint8Array(o),a=0;a<o;a++)s[a]=r.charCodeAt(a);t(new Blob([s],{type:e.type||"image/png"}))}})}},c=a,l=(n("e64c"),n("0c7c")),u=Object(l["a"])(c,i,r,!1,null,"5d4074fc",null);t["a"]=u.exports},eec5:function(e,t,n){"use strict";n("4086")},f0fe:function(e,t,n){},f1bf:function(e,t,n){"use strict";n("96cf");var i=n("1da1"),r=n("bc3a"),o=n.n(r);t["a"]={data:function(){return{chatDomain:{chatApiDomain:"apichat.polyv.net",chatDomain:"chat.polyv.net"}}},created:function(){this.getChatDomain()},methods:{getChatDomain:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var n;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o.a.get("/v2/chat/domain/get.do");case 2:if(n=t.sent,0===n.data.code){t.next=5;break}throw n.data;case 5:return Object.assign(e.chatDomain,n.data.data),t.abrupt("return",n.data.data);case 7:case"end":return t.stop()}}),t)})))()}}}},f40c:function(e,t,n){"use strict";n("52a8")}}]);