(window.webpackJsonp=window.webpackJsonp||[]).push([[44],Array(837).concat([function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return s})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(r=a.next()).done;)i.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function s(e,t){for(var n=0,r=t.length,o=e.length;n>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?w(e)+t:t}function k(){return!0}function x(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function S(e,t){return R(e,t,0)}function E(e,t){return R(e,t,t)}function R(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var T,A,N,_="function"==typeof Symbol&&Symbol.iterator,I=_||"@@iterator";function M(e){this.next=e}function L(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function P(){return{value:void 0,done:!0}}function B(e){return!!F(e)}function z(e){return e&&"function"==typeof e.next}function D(e){var t=F(e);return t&&t.call(e)}function F(e){var t=e&&(_&&e[_]||e["@@iterator"]);if("function"==typeof t)return t}function U(e){return e&&"number"==typeof e.length}function V(e){return null==e?X():i(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new W(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function q(e){return null==e?X().toKeyedSeq():i(e)?c(e)?e.toSeq():e.fromEntrySeq():J(e)}function H(e){return null==e?X():i(e)?c(e)?e.entrySeq():e.toIndexedSeq():$(e)}function K(e){return(null==e?X():i(e)?c(e)?e.entrySeq():e:$(e)).toSetSeq()}function Q(e){this._array=e,this.size=e.length}function W(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function G(e){this._iterable=e,this.size=e.length||e.size}function Y(e){this._iterator=e,this._iteratorCache=[]}function Z(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function X(){return T||(T=new Q([]))}function J(e){var t=Array.isArray(e)?new Q(e).fromEntrySeq():z(e)?new Y(e).fromEntrySeq():B(e)?new G(e).fromEntrySeq():"object"==typeof e?new W(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function $(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return U(e)?new Q(e):z(e)?new Y(e):B(e)?new G(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var a=o.length-1,i=0;i<=a;i++){var c=o[n?a-i:i];if(!1===t(c[1],r?c[0]:i,e))return i+1}return i}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var a=o.length-1,i=0;return new M((function(){var e=o[n?a-i:i];return i++>a?{value:void 0,done:!0}:L(t,r?e[0]:i-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,H(n).map((function(r,o){return e(t,r,o,n)}))):ae(n)?t.call(o,r,q(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?H(e).map(oe).toList():ae(e)?q(e).map(oe).toMap():e}function ae(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ie(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ce(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||c(e)!==c(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!l(e);if(u(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ie(o[1],e)&&(n||ie(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var a=e;e=t,t=a}var d=!0,f=t.__iterate((function(t,r){if(n?!e.has(t):o?!ie(t,e.get(r,b)):!ie(e.get(r,b),t))return d=!1,!1}));return d&&e.size===f}function se(e,t){if(!(this instanceof se))return new se(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(A)return A;A=this}}function le(e,t){if(!e)throw new Error(t)}function ue(e,t,n){if(!(this instanceof ue))return new ue(e,t,n);if(le(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:L(e,o,n[t?r-o++:o++])}))},t(W,q),W.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},W.prototype.has=function(e){return this._object.hasOwnProperty(e)},W.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,a=0;a<=o;a++){var i=r[t?o-a:a];if(!1===e(n[i],i,this))return a+1}return a},W.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,a=0;return new M((function(){var i=r[t?o-a:a];return a++>o?{value:void 0,done:!0}:L(e,i,n[i])}))},W.prototype[h]=!0,t(G,H),G.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=D(this._iterable),r=0;if(z(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},G.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=D(this._iterable);if(!z(n))return new M(P);var r=0;return new M((function(){var t=n.next();return t.done?t:L(e,r++,t.value)}))},t(Y,H),Y.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,a=0;a=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return L(e,o,r[o++])}))},t(se,H),se.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},se.prototype.get=function(e,t){return this.has(e)?this._value:t},se.prototype.includes=function(e){return ie(this._value,e)},se.prototype.slice=function(e,t){var n=this.size;return x(e,t,n)?this:new se(this._value,E(t,n)-S(e,n))},se.prototype.reverse=function(){return this},se.prototype.indexOf=function(e){return ie(this._value,e)?0:-1},se.prototype.lastIndexOf=function(e){return ie(this._value,e)?this.size:-1},se.prototype.__iterate=function(e,t){for(var n=0;n1?" by "+this._step:"")+" ]"},ue.prototype.get=function(e,t){return this.has(e)?this._start+C(this,e)*this._step:t},ue.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&nn?{value:void 0,done:!0}:L(e,a++,i)}))},ue.prototype.equals=function(e){return e instanceof ue?this._start===e._start&&this._end===e._end&&this._step===e._step:ce(this,e)},t(de,n),t(fe,de),t(pe,de),t(he,de),de.Keyed=fe,de.Indexed=pe,de.Set=he;var be="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function ve(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>xe?function(e){var t=Re[e];return void 0===t&&(t=ge(e),Ee===Se&&(Ee=0,Re={}),Ee++,Re[e]=t),t}(e):ge(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(we&&void 0!==(t=ye.get(e)))return t;if(void 0!==(t=e[ke]))return t;if(!je){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[ke]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ce,1073741824&Ce&&(Ce=0),we)ye.set(e,t);else{if(void 0!==Oe&&!1===Oe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(je)Object.defineProperty(e,ke,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[ke]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[ke]=t}}return t}(e);if("function"==typeof e.toString)return ge(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ge(e){for(var t=0,n=0;n>>n),c=31&(0===n?r:r>>>n);return new Pe(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:j(e);return o[t]=n,o}Me[Ie]=!0,Me.delete=Me.remove,Me.removeIn=Me.deleteIn,Le.prototype.get=function(e,t,n,r){for(var o=this.entries,a=0,i=o.length;a=tt)return function(e,t,n,r){e||(e=new O);for(var o=new De(e,ve(n),[n,r]),a=0;a>>e)),a=this.bitmap;return 0==(a&o)?r:this.nodes[$e(a&o-1)].get(e+5,t,n,r)},Pe.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ve(r));var c=31&(0===t?n:n>>>t),s=1<=nt)return function(e,t,n,r,o){for(var a=0,i=new Array(32),c=0;0!==n;c++,n>>>=1)i[c]=1&n?t[a++]:void 0;return i[r]=o,new Be(e,a+1,i)}(e,f,l,c,h);if(u&&!h&&2===f.length&&We(f[1^d]))return f[1^d];if(u&&h&&1===f.length&&We(h))return h;var m=e&&e===this.ownerID,v=u?h?l:l^s:l|s,g=u?h?et(f,d,h,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),a=0,i=0;i>>e),a=this.nodes[o];return a?a.get(e+5,t,n,r):r},Be.prototype.update=function(e,t,n,r,o,a,i){void 0===n&&(n=ve(r));var c=31&(0===t?n:n>>>t),s=o===b,l=this.nodes,u=l[c];if(s&&!u)return this;var d=Qe(u,e,t+5,n,r,o,a,i);if(d===u)return this;var f=this.count;if(u){if(!d&&--f0&&r<32?pt(0,r,5,null,new st(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function at(e){return!(!e||!e[it])}t(ot,pe),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=C(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?gt(e,t).set(0,n):gt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,a=g(v);return t>=Ot(e._capacity)?r=bt(r,e.__ownerID,0,t,n,a):o=bt(o,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):pt(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):ht()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new st([],e);var o,a=0===r;if(t>0){var i=this.array[r];if((o=i&&i.removeBefore(e,t-5,n))===i&&a)return this}if(a&&!o)return this;var c=mt(this,e);if(!a)for(var s=0;s>>t&31;if(o>=this.array.length)return this;if(t>0){var a=this.array[o];if((r=a&&a.removeAfter(e,t-5,n))===a&&o===this.array.length-1)return this}var i=mt(this,e);return i.array.splice(o+1),r&&(i.array[o]=r),i};var lt,ut,dt={};function ft(e,t){var n=e._origin,r=e._capacity,o=Ot(r),a=e._tail;return i(e._root,e._level,0);function i(e,c,s){return 0===c?function(e,i){var c=i===o?a&&a.array:e&&e.array,s=i>n?0:n-i,l=r-i;return l>32&&(l=32),function(){if(s===l)return dt;var e=t?--l:s++;return c&&c[e]}}(e,s):function(e,o,a){var c,s=e&&e.array,l=a>n?0:n-a>>o,u=1+(r-a>>o);return u>32&&(u=32),function(){for(;;){if(c){var e=c();if(e!==dt)return e;c=null}if(l===u)return dt;var n=t?--u:l++;c=i(s&&s[n],o-5,a+(n<>>n&31,s=e&&c0){var l=e&&e.array[c],u=bt(l,t,n-5,r,o,a);return u===l?e:((i=mt(e,t)).array[c]=u,i)}return s&&e.array[c]===o?e:(y(a),i=mt(e,t),void 0===o&&c===i.array.length-1?i.array.pop():i.array[c]=o,i)}function mt(e,t){return t&&e&&t===e.ownerID?e:new st(e?e.array.slice():[],t)}function vt(e,t){if(t>=Ot(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function gt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new O,o=e._origin,a=e._capacity,i=o+t,c=void 0===n?a:n<0?a+n:o+n;if(i===o&&c===a)return e;if(i>=c)return e.clear();for(var s=e._level,l=e._root,u=0;i+u<0;)l=new st(l&&l.array.length?[void 0,l]:[],r),u+=1<<(s+=5);u&&(i+=u,o+=u,c+=u,a+=u);for(var d=Ot(a),f=Ot(c);f>=1<d?new st([],r):p;if(p&&f>d&&i5;m-=5){var v=d>>>m&31;b=b.array[v]=mt(b.array[v],r)}b.array[d>>>5&31]=p}if(c=f)i-=f,c-=f,s=5,l=null,h=h&&h.removeBefore(r,0,i);else if(i>o||f>>s&31;if(g!==f>>>s&31)break;g&&(u+=(1<o&&(l=l.removeBefore(r,s,i-u)),l&&fa&&(a=l.size),i(s)||(l=l.map((function(e){return re(e)}))),r.push(l)}return a>e.size&&(e=e.setSize(a)),Je(e,t,r)}function Ot(e){return e<32?0:e-1>>>5<<5}function jt(e){return null==e?kt():wt(e)?e:kt().withMutations((function(t){var n=r(e);Te(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function wt(e){return Ne(e)&&u(e)}function Ct(e,t,n,r){var o=Object.create(jt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function kt(){return ut||(ut=Ct(He(),ht()))}function xt(e,t,n){var r,o,a=e._map,i=e._list,c=a.get(t),s=void 0!==c;if(n===b){if(!s)return e;i.size>=32&&i.size>=2*a.size?(r=(o=i.filter((function(e,t){return void 0!==e&&c!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=a.remove(t),o=c===i.size-1?i.pop():i.set(c,void 0))}else if(s){if(n===i.get(c)[1])return e;r=a,o=i.set(c,[t,n])}else r=a.set(t,i.size),o=i.set(i.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Ct(r,o)}function St(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Et(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function At(e){var t=Qt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Wt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new M((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Nt(e,t,n){var r=Qt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var a=e.get(r,b);return a===b?o:t.call(n,a,r,e)},r.__iterateUncached=function(r,o){var a=this;return e.__iterate((function(e,o,i){return!1!==r(t.call(n,e,o,i),o,a)}),o)},r.__iteratorUncached=function(r,o){var a=e.__iterator(2,o);return new M((function(){var o=a.next();if(o.done)return o;var i=o.value,c=i[0];return L(r,c,t.call(n,i[1],c,e),o)}))},r}function _t(e,t){var n=Qt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=At(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Wt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function It(e,t,n,r){var o=Qt(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var a=e.get(r,b);return a!==b&&t.call(n,a,r,e)?a:o}),o.__iterateUncached=function(o,a){var i=this,c=0;return e.__iterate((function(e,a,s){if(t.call(n,e,a,s))return c++,o(e,r?a:c-1,i)}),a),c},o.__iteratorUncached=function(o,a){var i=e.__iterator(2,a),c=0;return new M((function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,l=s[0],u=s[1];if(t.call(n,u,l,e))return L(o,r?l:c++,u,a)}}))},o}function Mt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),x(t,n,o))return e;var a=S(t,o),i=E(n,o);if(a!=a||i!=i)return Mt(e.toSeq().cacheResult(),t,n,r);var c,s=i-a;s==s&&(c=s<0?0:s);var l=Qt(e);return l.size=0===c?c:e.size&&c||void 0,!r&&Z(e)&&c>=0&&(l.get=function(t,n){return(t=C(this,t))>=0&&tc)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:L(t,s-1,0===t?void 0:e.value[1],e)}))},l}function Lt(e,t,n,r){var o=Qt(e);return o.__iterateUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterate(o,a);var c=!0,s=0;return e.__iterate((function(e,a,l){if(!c||!(c=t.call(n,e,a,l)))return s++,o(e,r?a:s-1,i)})),s},o.__iteratorUncached=function(o,a){var i=this;if(a)return this.cacheResult().__iterator(o,a);var c=e.__iterator(2,a),s=!0,l=0;return new M((function(){var e,a,u;do{if((e=c.next()).done)return r||1===o?e:L(o,l++,0===o?void 0:e.value[1],e);var d=e.value;a=d[0],u=d[1],s&&(s=t.call(n,u,a,i))}while(s);return 2===o?e:L(o,a,u,e)}))},o}function Pt(e,t){var n=c(e),o=[e].concat(t).map((function(e){return i(e)?n&&(e=r(e)):e=n?J(e):$(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var a=o[0];if(a===e||n&&c(a)||s(e)&&s(a))return a}var l=new Q(o);return n?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),l}function Bt(e,t,n){var r=Qt(e);return r.__iterateUncached=function(r,o){var a=0,c=!1;return function e(s,l){var u=this;s.__iterate((function(o,s){return(!t||l0}function Ut(e,t,r){var o=Qt(e);return o.size=new Q(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var a=r.map((function(e){return e=n(e),D(o?e.reverse():e)})),i=0,c=!1;return new M((function(){var n;return c||(n=a.map((function(e){return e.next()})),c=n.some((function(e){return e.done}))),c?{value:void 0,done:!0}:L(e,i++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Vt(e,t){return Z(e)?t:e.constructor(t)}function qt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Ht(e){return Te(e.size),w(e)}function Kt(e){return c(e)?r:s(e)?o:a}function Qt(e){return Object.create((c(e)?q:s(e)?H:K).prototype)}function Wt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):V.prototype.cacheResult.call(this)}function Gt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):jn(e,t)},mn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Te(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):jn(t,n)},mn.prototype.pop=function(){return this.slice(1)},mn.prototype.unshift=function(){return this.push.apply(this,arguments)},mn.prototype.unshiftAll=function(e){return this.pushAll(e)},mn.prototype.shift=function(){return this.pop.apply(this,arguments)},mn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wn()},mn.prototype.slice=function(e,t){if(x(e,t,this.size))return this;var n=S(e,this.size);if(E(t,this.size)!==this.size)return pe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):jn(r,o)},mn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?jn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},mn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},mn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new M((function(){if(r){var t=r.value;return r=r.next,L(e,n++,t)}return{value:void 0,done:!0}}))},mn.isStack=vn;var gn,yn="@@__IMMUTABLE_STACK__@@",On=mn.prototype;function jn(e,t,n,r){var o=Object.create(On);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function wn(){return gn||(gn=jn(0))}function Cn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}On[yn]=!0,On.withMutations=Me.withMutations,On.asMutable=Me.asMutable,On.asImmutable=Me.asImmutable,On.wasAltered=Me.wasAltered,n.Iterator=M,Cn(n,{toArray:function(){Te(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Et(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new St(this,!0)},toMap:function(){return Ae(this.toKeyedSeq())},toObject:function(){Te(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return jt(this.toKeyedSeq())},toOrderedSet:function(){return un(c(this)?this.valueSeq():this)},toSet:function(){return tn(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Rt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mn(c(this)?this.valueSeq():this)},toList:function(){return ot(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Vt(this,Pt(this,t))},includes:function(e){return this.some((function(t){return ie(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Te(this.size);var n=!0;return this.__iterate((function(r,o,a){if(!e.call(t,r,o,a))return n=!1,!1})),n},filter:function(e,t){return Vt(this,It(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,a){if(e.call(t,r,o,a))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Te(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Te(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return Vt(this,Nt(this,e,t))},reduce:function(e,t,n){var r,o;return Te(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,a,i){o?(o=!1,r=t):r=e.call(n,r,t,a,i)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Vt(this,_t(this,!0))},slice:function(e,t){return Vt(this,Mt(this,e,t,!0))},some:function(e,t){return!this.every(Rn(e),t)},sort:function(e){return Vt(this,zt(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return w(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ae().asMutable();return e.__iterate((function(o,a){r.update(t.call(n,o,a,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ce(this,e)},entrySeq:function(){var e=this;if(e._cache)return new Q(e._cache);var t=e.toSeq().map(En).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Rn(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(k)},flatMap:function(e,t){return Vt(this,function(e,t,n){var r=Kt(e);return e.toSeq().map((function(o,a){return r(t.call(n,o,a,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Vt(this,Bt(this,e,!0))},fromEntrySeq:function(){return new Tt(this)},get:function(e,t){return this.find((function(t,n){return ie(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=Yt(e);!(n=o.next()).done;){var a=n.value;if((r=r&&r.get?r.get(a,b):b)===b)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=c(e),o=(u(e)?jt():Ae()).asMutable();e.__iterate((function(a,i){o.update(t.call(n,a,i,e),(function(e){return(e=e||[]).push(r?[i,a]:a),e}))}));var a=Kt(e);return o.map((function(t){return Vt(e,a(t))}))}(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Sn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return Dt(this,e)},maxBy:function(e,t){return Dt(this,t,e)},min:function(e){return Dt(this,e?Tn(e):_n)},minBy:function(e,t){return Dt(this,t?Tn(t):_n,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Vt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Vt(this,Lt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Rn(e),t)},sortBy:function(e,t){return Vt(this,zt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Vt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Vt(this,function(e,t,n){var r=Qt(e);return r.__iterateUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterate(r,o);var i=0;return e.__iterate((function(e,o,c){return t.call(n,e,o,c)&&++i&&r(e,o,a)})),i},r.__iteratorUncached=function(r,o){var a=this;if(o)return this.cacheResult().__iterator(r,o);var i=e.__iterator(2,o),c=!0;return new M((function(){if(!c)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var o=e.value,s=o[0],l=o[1];return t.call(n,l,s,a)?2===r?e:L(r,s,l,e):(c=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Rn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),n=c(e),r=t?1:0;return function(e,t){return t=be(t,3432918353),t=be(t<<15|t>>>-15,461845907),t=be(t<<13|t>>>-13,5),t=be((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=be(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+In(ve(e),ve(t))|0}:function(e,t){r=r+In(ve(e),ve(t))|0}:t?function(e){r=31*r+ve(e)|0}:function(e){r=r+ve(e)|0}),r)}(this))}});var kn=n.prototype;kn[d]=!0,kn[I]=kn.values,kn.__toJS=kn.toArray,kn.__toStringMapper=An,kn.inspect=kn.toSource=function(){return this.toString()},kn.chain=kn.flatMap,kn.contains=kn.includes,function(){try{Object.defineProperty(kn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Cn(r,{flip:function(){return Vt(this,At(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ie(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ie(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return Vt(this,this.toSeq().map((function(o,a){return e.call(t,[a,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Vt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var xn=r.prototype;function Sn(e,t){return t}function En(e,t){return[t,e]}function Rn(e){return function(){return!e.apply(this,arguments)}}function Tn(e){return function(){return-e.apply(this,arguments)}}function An(e){return"string"==typeof e?JSON.stringify(e):e}function Nn(){return j(arguments)}function _n(e,t){return et?-1:0}function In(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return xn[f]=!0,xn[I]=kn.entries,xn.__toJS=kn.toObject,xn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+An(e)},Cn(o,{toKeyedSeq:function(){return new St(this,!1)},filter:function(e,t){return Vt(this,It(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Vt(this,_t(this,!1))},slice:function(e,t){return Vt(this,Mt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=S(e,e<0?this.count():this.size);var r=this.slice(0,e);return Vt(this,1===n?r:r.concat(j(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return Vt(this,Bt(this,e,!1))},get:function(e,t){return(e=C(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=C(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return m(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r0)return o.getInlineStyleAt(r-1);return m(e,n)}(t,n)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return h(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),h(e,t,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return e.acceptSelection(t,new s({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,r){if(t.getCurrentContent()===n)return t;var o="insert-characters"!==r,a=i.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:a,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var c=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=n;c!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,r)?(l=l.push(s),u=u.set("selectionBefore",c)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var f=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(f=null);var p={currentContent:u,directionMap:a,undoStack:l,redoStack:d(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:f};return e.set(t,p)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),a=i.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:a,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),r=n.peek();if(!r)return t;var o=t.getCurrentContent(),a=i.getDirectionMap(r,t.getDirectionMap());return e.set(t,{currentContent:r,directionMap:a,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function h(e,t,n){return p.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function b(e,t){return e.getBlockMap().map((function(n){return o.generate(e,n,t)})).toOrderedMap()}function m(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):l()}e.exports=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.onFullyViewedOnce=t.isFullyViewed=t.onViewedOnce=t.isViewed=void 0;var r=n(918);Object.defineProperty(t,"isViewed",{enumerable:!0,get:function(){return r.isViewed}}),Object.defineProperty(t,"onViewedOnce",{enumerable:!0,get:function(){return r.onViewedOnce}});var o=n(919);Object.defineProperty(t,"isFullyViewed",{enumerable:!0,get:function(){return o.isFullyViewed}}),Object.defineProperty(t,"onFullyViewedOnce",{enumerable:!0,get:function(){return o.onFullyViewedOnce}})},function(e,t,n){"use strict";n.d(t,"d",(function(){return r.a})),n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f}));var r=n(871),o=(n(1),n(11)),a=n.n(o),i=(n(906),n(5)),c=function(e){var t=e.className,n=e.options,r=e.children;return Object(i.g)("div",{className:a()("Card-header",t)},Object(i.g)("div",{className:"Card-headerText"},r),n&&Object(i.g)("div",{className:"Card-headerOptions"},n))},s=n(33),l=n.n(s),u=n(41),d=n.n(u),f=function(e){var t=e.className,n=d()(e,["className"]);return Object(i.g)("div",l()({className:a()("Card-section",t)},n))}},function(e,t,n){"use strict";var r=n(1183),o=n(895),a=n(847),i=n(1199),c=n(866),s=n(963),l=n(966),u=n(1039),d=n(1200),f=n(1041),p=n(929),h=n(846),b=n(1037),m=n(840),v=n(973),g=n(1055),y=n(874),O=n(1260),j={Editor:d,EditorBlock:f,EditorState:m,CompositeDecorator:i,Entity:p,EntityInstance:b,BlockMapBuilder:o,CharacterMetadata:a,ContentBlock:c,ContentState:s,SelectionState:y,AtomicBlockUtils:r,KeyBindingUtil:v,Modifier:h,RichUtils:g,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(1053),convertFromRaw:n(1263),convertToRaw:O,genKey:n(860),getDefaultKeyBinding:n(1056),getVisibleSelectionRect:n(1268)};e.exports=j},function(e,t,n){"use strict";n.d(t,"h",(function(){return k})),n.d(t,"r",(function(){return I})),n.d(t,"q",(function(){return L})),n.d(t,"x",(function(){return D})),n.d(t,"n",(function(){return U})),n.d(t,"o",(function(){return V})),n.d(t,"e",(function(){return q})),n.d(t,"k",(function(){return X})),n.d(t,"w",(function(){return W})),n.d(t,"u",(function(){return P})),n.d(t,"j",(function(){return G})),n.d(t,"d",(function(){return Q})),n.d(t,"b",(function(){return K})),n.d(t,"v",(function(){return S})),n.d(t,"l",(function(){return E})),n.d(t,"p",(function(){return Y})),n.d(t,"t",(function(){return N})),n.d(t,"s",(function(){return ee})),n.d(t,"g",(function(){return ne})),n.d(t,"a",(function(){return re})),n.d(t,"f",(function(){return Z})),n.d(t,"i",(function(){return $})),n.d(t,"y",(function(){return F})),n.d(t,"c",(function(){return oe})),n.d(t,"m",(function(){return A}));var r=n(55),o=n.n(r),a=n(326),i=n.n(a),c=n(28),s=n.n(c),l=n(863),u=n.n(l),d=n(7),f=n(44),p=n.n(f),h=n(145),b=(n(37),n(365)),m=n(79),v=n.n(m),g=n(63),y=n(391),O=n.n(y);n(1003),n(212),n(402),n(72),n(56);n(1075),n(587);var j,w,C=n(948),k=(j={os:"",pc:"",platform:0},function(){if(j.os||"undefined"==typeof window)return j;var e=navigator.userAgent;return/iPhone|iPod|iPad/i.test(e)?(j.os="ios",j.platform=1):/android/i.test(e)?(j.os="android",j.platform=2):(j.os="pc",/Macintosh|OS X 10/i.test(e)?(j.pc="mac",j.platform=3):/Windows/i.test(e)&&(j.pc="windows",j.platform=4)),j}),x=function(){return"undefined"!=typeof window?window.location.href:""},S=function(e){var t,n,r=e.url,o=e.params;return r?fetch(r,{method:"post",headers:{"X-Requested-With":"fetch"},body:(t=Object(d.decamelizeKeys)(o),Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&e.append(n,r),e}),n||new FormData))}).catch((function(){})):Promise.reject(new Error("request but no url"))},E=function(e){var t=e.query,n=e.url;return fetch("".concat(n,"?").concat(p.a.stringify(t))).then((function(e){if(e.status>=400)throw new Error("Bad response from server");return e.json()})).then((function(e){return e.banner})).catch((function(e){console.error(e)}))},R=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n){return t?e||n:e}},T=function(e,t){var n=t.sessionId,r=void 0===n?"":n,o=t.os,a=void 0===o?"":o,i=t.aPageId,c=void 0===i?"":i,s=t.aToken,l=void 0===s?"":s,u=t.xSuger,d=void 0===u?"{}":u,f=t.cardType,p=t.ua,h=void 0===p?"":p,b=t.appendParams,m=t.et,v=void 0===m?"":m,g=t.callback,y=void 0===g?"":g,j=t.isHybrid,w=void 0===j?"":j,C=t.version,k=void 0===C?"":C,S=t.platform,E=t.isKeepMacro,T=void 0===E||E,A=ee(x()),N=A.plugcb,_=void 0===N?"":N,I=A.adplug,M=void 0===I?"":I,L=A.zone_id,P=void 0===L?"":L,B=A.sid,z=y||_;/[&/?]/.test(z)&&(z=encodeURIComponent(z));var D=te().zoneid,F=void 0===D?"":D,U=e.slice(0,e.indexOf("?")),V="string"==typeof d?JSON.parse(d):d,q=V.IDFA,H=void 0===q?"":q,K=V.IMEI,Q=void 0===K?"":K,W=V.ANDROID_ID,G=void 0===W?"":W,Y=V.OAID,Z=void 0===Y?"":Y;return U.includes("zhihu.com")||(H=H?O()(H):"",Q=Q?O()(Q):"",G=G?O()(G):"",Z=Z||""),f&&(e="".concat(e,"&ev=").concat(f)),b&&(e="".concat(e,"&").concat(b)),M&&(e="".concat(e,"&").concat(M)),e.replace("__SESSIONID__",R(r||B,T)).replace("__REQUESTID__",r||B).replace("__OS__",a).replace("__ET__",R(v,T)).replace("__PAGEID__",R(c,T)).replace("__ATOKEN__",R(l,T)).replace("__IDFA__",R(H,T)).replace("__IMEI__",R(Q,T)).replace("__ANDROIDID__",R(G,T)).replace("__OAID__",R(Z,T)).replace("__CREATIVEID__",R(ne(),T)).replace("__UA__",encodeURI(h)).replace("__CALLBACK__",z).replace("__ZONEID__",R(F||P,T)).replace("__ISHYBRID__",w).replace("__VERSION__",k).replace("__PLATFORM__",S)},A=function(e,t){var n=t.cid,r=void 0===n?"":n,o=t.adid,a=void 0===o?"":o,i=t.zoneid,c=void 0===i?"":i,s=t.sid,l=void 0===s?"":s,u=t.ts,d=void 0===u?"":u,f=t.os,p=void 0===f?0:f;return e.replace("__ZONEID__",R(c)).replace("__ADID__",R(a)).replace("__CREATIVEID__",R(r)).replace("__SESSIONID__",R(l)).replace("__TS__",R(d)).replace("__OS__",p)},N=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e};return e?Object.keys(e).reduce((function(r,o){var a=e[o].map((function(e){return n(T(e,t))}));return u()({},r,s()({},o,a))}),{}):{}},_=function(e){if(!document.body.contains(e))return!1;var t=e.getBoundingClientRect(),n=document.documentElement;return t.top<(window.innerHeight||n.clientHeight)},I=function(e,t,n){if(_(e))t.call(n);else var r=Object(h.subscribe)("scroll",(function(){_(e)&&(t.call(n),r.unsubscribe())}))},M=function(e){return function(t){if(!document.body.contains(t))return!1;var n=t.getBoundingClientRect();return e(n)}},L=(w=function(e){var t=document.documentElement;return e.top+parseInt(.3*e.height)<(window.innerHeight||t.clientHeight)},function(e,t,n){if(M(w)(e))t.call(n);else var r=Object(h.subscribe)("scroll",(function(){M(w)(e)&&(t.call(n),r.unsubscribe())}))}),P=function(e){try{g.a.supportsAction("ad/sendTrack").then((function(t){if(!t)return new Promise((function(t,n){var r=new Image;r.onload=t,r.addEventListener("error",n),r.src=e})).catch((function(e){console.warn("zhihu-advert request error: ",e)}));g.a.dispatch("ad/sendTrack",{tracks:[e]})}))}catch(t){return console.warn("zhihu-advert request error: ",t),new Promise((function(t,n){var r=new Image;r.onload=t,r.addEventListener("error",n),r.src=e}))}};function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.keys(e).reduce((function(t,n){return t[Object(d.decamelize)(n)]=e[n],t}),{});return p.a.stringify(t)}var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=B(t);return n&&(e.indexOf("?")>-1?e+="&".concat(n):e+="?".concat(n)),e};function D(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return e=z(e,t),Promise.race([P(e),new Promise((function(e){return setTimeout(e,n)}))])}var F=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"ad/sendContentTracks",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:D;return"pc"!==k().os?function(r,o){return Object(C.b)(t,"function"==typeof e?e(z(r,o)):e).catch((function(e){return n(r,o)}))}:n}((function(e){return{tracks:[e]}}),"ad/sendContentPluginTracks");function U(e){var t=e;return e>999&&(t="".concat((e/1e3).toFixed(1),"K")),e>999999&&(t="".concat((e/1e6).toFixed(1),"M")),t}function V(e){return Object(b.cnNiceNumber)(e)}function q(e,t,n){return(Array.isArray(t)?t:t.replace(/\[/g,".").replace(/\]/g,"").split(".")).reduce((function(e,t){return(e||{})[t]}),e)||n}function H(e){return["[object Array]","[object Object]"].includes(Object.prototype.toString.call(e))}function K(e){if(!H(e))throw new Error("obj 不是一个对象!");var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){"object"!==i()(e[n])?t[n]=e[n]:null===e[n]?t[n]="":t[n]=K(e[n])})),t}function Q(e){if(!H(e))throw new Error("obj 不是一个对象!");var t=Array.isArray(e)?[]:{};return Object.keys(e).forEach((function(n){"object"!==i()(e[n])?t[n]=e[n]:t[n]=Q(e[n])})),t}var W=function(e){try{return JSON.parse(e)}catch(e){return{}}};function G(){var e=document.createElement("div");e.className="adsbox",document.body.appendChild(e);var t="none"===getComputedStyle(e).display;return document.body.removeChild(e),t}function Y(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5,n="".concat(e).split("."),r=o()(n,2),a=r[0],i=r[1],c=void 0===i?1:i,s=[],l=1;l<=a;l+=1)s.push(1);parseInt(c,10)&&s.push(Number("0.".concat(c)).toFixed(1));for(var u=t-a-1,d=0;d1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return e;var n=Object.keys(t).map((function(e){return"".concat(e,"=").concat(t[e])})).join("&");if(!n)return e;var r=e.split("#"),a=o()(r,2),i=a[0],c=a[1],s=/\?/g.test(i)?"&":"?",l="".concat(i).concat(s).concat(n);return c?"".concat(l,"#").concat(c):l}function oe(e){if(!document.queryCommandSupported("copy"))return!1;try{var t=window.getSelection(),n=[],r={},o=t.rangeCount;if(o>0){r=t.getRangeAt(0).getBoundingClientRect();for(var a=0;a0&&void 0!==arguments[0]?arguments[0]:h;return r(this,t),o(this,e.call(this,v(n)))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():p},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){c(this.getCharacterList(),b,e,t)},t.prototype.findEntityRanges=function(e,t){c(this.getCharacterList(),m,e,t)},t}(d(h));e.exports=g},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"f",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var r=/([-\w]+)(="([^"]+)"|='([^']+)')?/g,o=function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.decodeValue,a=void 0!==o&&o,c={};t=r.exec(e);){var s=t[1],l=t[3]||t[4];c[s]=(a?i(l):l)||""}return c},a=function(e){if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/&/g,"&").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/ /g,"\r")}function c(){return Math.max(window.innerHeight/10,100)}var s=function(e){for(var t=e;t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType;){var n=document.defaultView.getComputedStyle(t);if([n.overflow,n.overflowY,n.overflowX].some((function(e){return"scroll"===e||"auto"===e})))return t;t=t.parentNode||t.parentElement}return window};function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=s(e),o=e.getBoundingClientRect().top+(r.pageYOffset||r.scrollTop||0)-(n?c():0)-t;r.scrollTo({top:o,behavior:"smooth"})}},function(e,t,n){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return k})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return x})),n.d(t,"c",(function(){return E}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(35),l=n(2),u=n(3),d=n.n(u),f=n(1),p=n(11),h=n.n(p),b=n(83),m=n.n(b),v=n(841),g=n(205),y=n(981);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}function j(e){return!!e&&!(Array.isArray(e)&&!e.some(Boolean))}function w(e){var t=e.onRef,n=e.listClassName,r=e.itemClassName,o=e.className,a=e.children,i=Object(s.a)(e,["onRef","listClassName","itemClassName","className","children"]);return Object(l.b)("div",Object.assign({ref:t,className:h()(n,o)},i,{children:f.Children.map(a,(function(e){return"string"==typeof e?Object(l.b)("span",{className:r,children:e}):e?Object(f.cloneElement)(e,{className:h()(r,e.props.className)}):e}))}))}var C=function(e){return Object(l.b)(w,Object.assign({listClassName:"ContentItem-cells",itemClassName:"ContentItem-cell"},e))},k=function(e){return Object(l.b)(w,Object.assign({listClassName:"ContentItem-actions",itemClassName:"ContentItem-action"},e))},x=function(e){return Object(l.b)(w,Object.assign({listClassName:"ContentItem-status",itemClassName:"ContentItem-statusItem"},e))},S=function(e){Object(a.a)(n,e);var t=O(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i0&&void 0!==arguments[0]&&arguments[0],t=this.props,n=t.source,r=t.playerUrl,o=t.onIframeRef,a=t.useMSE;return Object(k.g)(E.a,{placeholder:Object(k.g)("div",{className:"VideoCard-player"})},Object(k.g)("div",{className:"VideoCard-player"},Object(k.g)(O.a,{type:"video",ref:o,src:"".concat(r),iframeProps:{onLoad:this.handlePlayerLoad,allowFullScreen:!0,autoplay:e&&"lens"===n,useMSE:a}})))}},{key:"render",value:function(){var e=this.props,t=e.interactive,n=e.isConverting,r=e.isVideoAnswer,o=this.state,a=o.isMobile,i=o.playerShown,c=o.playerLoading;return Object(k.g)("div",{className:v()("VideoCard",{"VideoCard--converting":n,"VideoCard--interactive":t,"VideoCard--mobile":a,"is-videoAnswer":r})},this.renderContent(),i&&Object(k.g)("div",{className:v()("VideoCard-overlay",{"is-loading":c})},this.renderPlayer(!0)),Object(k.g)("div",{className:v()("VideoCard-mask",{"is-shown":c})}))}}]),n}(b.Component);B.propTypes={interactive:h.a.bool,showPlayButton:h.a.bool,usePlayButtonWithFileSize:h.a.bool,isVideoAnswer:h.a.bool,fileSize:h.a.number,onPlay:h.a.func,onPlayFailed:h.a.func,onLensPlay:h.a.func,onBeforePlay:h.a.func,rightBottomButton:h.a.oneOfType([h.a.element,h.a.string]),leftBottomButton:h.a.oneOfType([h.a.element,h.a.string]),thumbnail:h.a.oneOfType([h.a.element,h.a.string]),content:h.a.object},B.defaultProps={interactive:!0,showPlayButton:!0};var z=B},,function(e,t,n){"use strict";var r=n(35),o=n(2),a=n(3),i=n.n(a),c=n(27),s=n(34),l=n(78),u=n(11),d=n.n(u),f=n(177),p=n(63),h=n(83),b=n.n(h),m=n(53),v=n(370),g=n(891),y=n(30);n(892);var O=function(e){var t,a=e.isPinProfile,i=e.onClick,u=e.isPinDaily,h=e.user,O=e.avatar,j=e.avatarProps,w=e.showVipIcon,C=e.vipIconZaViewName,k=e.badgeProps,x=e.noBadge,S=e.noLink,E=e.noHoverCard,R=e.style,T=e.className,A=e.children,N=Object(r.a)(e,["isPinProfile","onClick","isPinDaily","user","avatar","avatarProps","showVipIcon","vipIconZaViewName","badgeProps","noBadge","noLink","noHoverCard","style","className","children"]),_=Object(c.useSelector)((function(e){return Object(m.d)(e,{includeTablet:!0})})),I=h.id,M=h.name,L=h.avatarUrl,P=h.urlToken,B=h.isOrg,z=h.vipInfo,D=h.url,F=h.maskLevel,U=void 0===E?_:E,V=Object(l.d)((function(){return n.e(56).then(n.bind(null,1150))}),!U&&!_);t=O?Object(o.b)(f.a,Object.assign({className:"UserLink-avatar",url:L,alt:M},j)):A||M;var q=Boolean(function(e){var t=e.id,n=e.name,r=e.urlToken;return"0"===t||"知乎用户"===n?null:r||t}(h)),H="//www.zhihu.com/".concat(B?"org":"people","/").concat(P||I),K="zhihu://pin".concat(D,"/moments");return q&&!S&&(t=Object(o.b)(s.Link,Object.assign({className:"UserLink-link","data-za-detail-view-element_name":"User",to:H,target:"_blank",onClick:function(e){return function(t){u&&"A"===t.target.nodeName&&y.a.trackEvent(t.target,{id:2065}),a&&(t.preventDefault(),p.a.dispatch("base/openURL",{url:e})),F&&t.preventDefault(),i&&"function"==typeof i&&i(t)}}(K)},b()(N,["isPinProfile","trackEvent","onClick","dispatch","isPinDaily"]),{children:t})),!U&&V&&(t=Object(o.b)(V,{toggler:t,id:I,urlToken:P,user:h}))),Object(o.c)("span",{style:R,className:d()("UserLink",T),children:[t,q&&!x&&!O&&Object(o.b)(v.c,Object.assign({css:{marginLeft:".3em"},isOrg:B,badge:h.badgeV2||h.badge,linkify:!0,enableTooltip:!0},k)),q&&w&&!O&&z&&z.vipIcon&&Object(o.b)(g.a,{vipIcon:z.vipIcon,zaViewName:C})]})};O.propTypes={user:i.a.object.isRequired,avatar:i.a.bool,avatarProps:i.a.object,noBadge:i.a.bool,noHoverCard:i.a.bool,showVipIcon:i.a.bool,style:i.a.object,className:i.a.string,children:i.a.node,isPinProfile:i.a.bool,isPinDaily:i.a.bool},O.defaultProps={avatar:!1,noBadge:!1,showVipIcon:!1},t.a=O},function(e,t,n){"use strict";var r={},o=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||r.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*o).toString(32);return r[e]=!0,e}},function(e,t,n){"use strict";var r=n(1184);e.exports=r},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(19),p=n(27),h=n(34),b=n(11),m=n.n(b),v=(n(371),n(30)),g=n(53),y=n(944),O=n(859),j=n(1031),w=(n(885),n(926)),C=n(908);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var x=function(e){Object(a.a)(n,e);var t=k(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;ir||n<=0)return"";var o=0;if(t>0){for(;t>0&&o=r)return""}else if(t<0){for(o=r;t<0&&00&&a1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,Object.assign({credentials:"include",headers:{"X-Requested-With":"Fetch"}},t)).then((function(e){return e.json()}))}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){function t(){return r(this,t),o(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var a=this.getStartOffset();return t<=this.getEndOffset()&&a<=n}if(e!==r&&e!==o)return!1;var i=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=i&&n>=i},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,n(838).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=a},function(e,t,n){"use strict";function r(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(r).join(" "):Array.prototype.map.call(arguments,r).join(" ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y}));var r=n(80),o=n.n(r),a=n(55),i=n.n(a),c=n(1),s=n(63),l=n(90),u=n(69),d=n.n(u),f=n(232),p=n(367),h=n(5),b=function(e){return/^(\w+:)?\/\//.test(e)?e:location.origin+e},m=function(e,t){var n=t.params,r=t.onRequestOpen,o=Object(p.b)();return function(t){var a=e.href,c=e.onClick;if(c&&c(t),!t.defaultPrevented&&a){var l=function(e,t){if(!t)return e;var n=e.split("#"),r=i()(n,2),o=r[0],a=r[1],c=o+(o.includes("?")?"&":"?")+t;return a?c+"#"+a:c}(b(a),n);if((null==o?void 0:o.ZhihuHybrid)||(null==o?void 0:o.Zhihu))return t.preventDefault(),void s.a.dispatch("base/openURL",{url:l});(null==r?void 0:r({ua:o,url:l}))&&t.preventDefault()}}},v=function(e,t){var n=t.extra;return{zaType:"Button",zaAction:"OpenUrl",zaEventType:"Click",shouldTrackClick:Boolean(e),extra:d()({link:{get url(){return b(e)}}},n)}},g=function(e){var t=e.getProps,n=e.params,r=e.onRequestOpen,a=e.children,i=e.extra,s=o()(e,["getProps","params","onRequestOpen","children","extra"]),l=function(e,t){return Object.assign({},e,"function"==typeof t&&t(e))}(a.props,t);return Object(c.cloneElement)(a,Object(f.j)(Object.assign({},v(l.href,{extra:i}),s,{ref:a.ref,onClick:m(l,{params:n,onRequestOpen:r})})))},y=Object(c.forwardRef)((function(e,t){var n=e.params,r=e.onRequestOpen,a=e.extra,i=e.as,c=void 0===i?l.Link:i,s=o()(e,["params","onRequestOpen","extra","as"]);return Object(h.g)(f.c,Object.assign({as:c},v(s.href,{extra:a}),s,{ref:t,onClick:m(s,{params:n,onRequestOpen:r})}))}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(55),o=n.n(r),a=n(1),i=n.n(a),c=n(11),s=n.n(c),l=n(18),u=function(e){return i.a.createElement(l.a,e,i.a.createElement("path",{d:"M12 2c5.43 0 9.848 4.325 9.996 9.72L22 12c0 5.43-4.325 9.848-9.72 9.996L12 22C6.477 22 2 17.524 2 12c0-5.43 4.325-9.848 9.72-9.996L12 2zm0 3.333l-.234.004A6.672 6.672 0 0 0 5.333 12 6.671 6.671 0 0 0 12 18.667l.234-.004A6.672 6.672 0 0 0 18.667 12l-.004-.234A6.672 6.672 0 0 0 12 5.333zm0 3.334a3.333 3.333 0 1 1 0 6.666 3.333 3.333 0 0 1 0-6.666z",fillRule:"evenodd"}))};u.defaultProps={name:"RadioButtonOn"};var d=u,f=function(e){return i.a.createElement(l.a,e,i.a.createElement("path",{d:"M12 2c5.43 0 9.848 4.325 9.996 9.72L22 12c0 5.43-4.325 9.848-9.72 9.996L12 22C6.477 22 2 17.524 2 12c0-5.43 4.325-9.848 9.72-9.996L12 2zm0 3.333l-.234.004A6.672 6.672 0 0 0 5.333 12a6.672 6.672 0 0 0 6.433 6.663l.234.004.234-.004a6.672 6.672 0 0 0 6.429-6.429l.004-.234-.004-.234a6.672 6.672 0 0 0-6.429-6.429L12 5.333z",fillRule:"evenodd"}))};f.defaultProps={name:"RadioButtonOff"};var p=f,h=n(5);var b=function(e){var t=e.style,n=e.className,r=e.id,i=e.name,c=e.value,l=e.size,u=void 0===l?20:l,f=e.checked,b=e.onChange,m=e.disabled,v=Object(a.useState)(!1),g=o()(v,2),y=g[0],O=g[1];return Object(h.g)("label",{style:t,className:s()("RadioButton",n,{"RadioButton--focused":y,"RadioButton--disabled":m})},f?Object(h.g)(d,{size:u,className:"RadioButton-iconOn"}):Object(h.g)(p,{size:u,className:"RadioButton-iconOff"}),Object(h.g)("input",{className:"RadioButton-input",id:r,name:i,value:c,type:"radio",checked:f,onFocus:function(){return O(!0)},onBlur:function(){return O(!1)},onChange:b,disabled:m}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(28),o=n.n(r),a=n(20),i=n.n(a),c=n(21),s=n.n(c),l=n(22),u=n.n(l),d=n(23),f=n.n(d),p=n(13),h=n.n(p),b=n(1),m=n.n(b),v=n(11),g=n.n(v),y=n(5);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var j=function(e){u()(n,e);var t=O(n);function n(e){var r;i()(this,n),(r=t.call(this,e)).handleChange=function(e){r.setState({checked:e.target.checked});var t=r.props.onChange;"function"==typeof t&&t(e)},r.handleFocus=function(){r.setState({focused:!0})},r.handleBlur=function(){r.setState({focused:!1})};var o=e.checked;return r.state={checked:Boolean(o),focused:!1},r}return s()(n,[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.checked,r=t.forceControlled;if(!r){var o=e.forceControlled,a=e.checked;if(!o||r){if(void 0!==n){var i=this.state.checked;a!==n&&n!==i&&this.setState({checked:n})}}else this.setState({checked:Boolean(n)})}}},{key:"render",value:function(){var e,t=this.props,n=t.id,r=t.style,a=t.className,i=t.preset,c=t.onClick,s=t.onChange,l=t.name,u=t.value,d=t.checked,f=t.disabled,p=t.forceControlled,h=this.state,b=h.focused,m=h.checked,v=p?d:m,O=p?s:this.handleChange;return Object(y.g)("label",{className:g()("Switch",a,(e={},o()(e,"Switch--".concat(i),"normal"!==i),o()(e,"Switch--focused",b),o()(e,"Switch--disabled",f),o()(e,"Switch--checked",Boolean(v)),e)),style:r},Object(y.g)("input",{id:n,className:"Switch-input",type:"checkbox",onClick:c,onChange:O,onFocus:this.handleFocus,onBlur:this.handleBlur,name:l,value:u,checked:Boolean(v),disabled:f}))}}]),n}(m.a.Component);j.defaultProps={preset:"normal"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n.n(r),a=n(131),i=Object.assign;var c=function(e){return o.a.createElement(a.a,i({width:"150",height:"120",viewBox:"0 0 150 120"},e),o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("path",{fill:"#EBEEF5",d:"M44 31.005v55.99A3.003 3.003 0 0047.003 90h53.994A3.005 3.005 0 00104 86.995v-55.99A3.003 3.003 0 00100.997 28H47.003A3.005 3.005 0 0044 31.005zm-3 0A6.005 6.005 0 0147.003 25h53.994A6.003 6.003 0 01107 31.005v55.99A6.005 6.005 0 01100.997 93H47.003A6.003 6.003 0 0141 86.995v-55.99z",fillRule:"nonzero"}),o.a.createElement("path",{fill:"#F7F8FA",d:"M59 50a6 6 0 110-12 6 6 0 010 12zm12-9.5c0-.828.68-1.5 1.496-1.5h9.008c.826 0 1.496.666 1.496 1.5 0 .828-.68 1.5-1.496 1.5h-9.008A1.495 1.495 0 0171 40.5zm0 7c0-.828.667-1.5 1.5-1.5h21c.828 0 1.5.666 1.5 1.5 0 .828-.667 1.5-1.5 1.5h-21c-.828 0-1.5-.666-1.5-1.5zM59 73a6 6 0 110-12 6 6 0 010 12zm12-9.5c0-.828.68-1.5 1.496-1.5h9.008c.826 0 1.496.666 1.496 1.5 0 .828-.68 1.5-1.496 1.5h-9.008A1.495 1.495 0 0171 63.5zm0 7c0-.828.667-1.5 1.5-1.5h21c.828 0 1.5.666 1.5 1.5 0 .828-.667 1.5-1.5 1.5h-21c-.828 0-1.5-.666-1.5-1.5z"})))}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return p}));n(1);var r=n(154),o=n(856),a=n(888),i=n(909),c=n(5),s=/<(h2|h3)[^>]*>(.*?)<\/\1>/g,l={h2:1,h3:2},u=function(e,t){return"h_".concat(e||"editor","_").concat(t)},d=function(e){return e.replace(a.b,"").replace(/<[^>]*>/g,"")},f=function(e){return l[e]},p=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";if(!e)return{catalog:[],html:e};var r=[];return t=t||"editor",n="function"==typeof n?n:function(){return String(n)},e=e.replace(s,(function(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=d(a),c=f(o),s=u(t,r.length);return r.push({text:i,titleLevel:c,Tag:o,targetId:s}),n({text:i,titleLevel:c,targetId:s,Tag:o,originText:a})})),{catalog:r,html:e}},h=function(e){var t=e.originText,n=e.targetId,r=e.Tag;return Object(o.renderToStaticMarkup)(Object(c.g)(r,{id:n,dangerouslySetInnerHTML:{__html:t}}))};t.a=function(e,t){var n=t.sourceId,a=t.theme,s=t.shouldShowCatalog,l=t.shouldFoldCatalog;if(!e)return e;if(!s)return e;var u=p(e,n,h),d=u.catalog,f=u.html;return d.length?Object(o.renderToStaticMarkup)(Object(c.g)(r.a,{theme:a},Object(c.g)(i.b,{catalog:d,canFold:l}))).concat(f):f}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p}));var r=n(33),o=n.n(r),a=n(41),i=n.n(a),c=(n(1),n(83)),s=n.n(c),l=n(11),u=n.n(l),d=n(44),f=n(5),p=function(e){var t;return"ECOMMERCE"===Object(d.parse)(null===(t=e.split("?"))||void 0===t?void 0:t[1]).BIZ},h=function(e){return Object(f.g)("div",e,Object(f.g)("span",null),Object(f.g)("span",null))},b=function(e){var t=s()(e,["entityType","entityData","newLinkCardAb"]),n=t.target,r=t.url,a=t.image,c=t.imageWidth,l=t.imageHeight,d=t.component,p=t.size,b=t.className,m=i()(t,["target","url","image","imageWidth","imageHeight","component","size","className"]);return Object(f.g)(d,o()({target:n,href:r,"data-draft-node":"block","data-draft-type":"link-card","data-is-ecommerce":"1","data-image":a},c&&{"data-image-width":c},l&&{"data-image-height":l},p&&{"data-size":p},{className:u()("LinkCard",b)},m),Object(f.g)("span",{className:"LinkCard-content LinkCard-ecommerceLoadingCard"},Object(f.g)("div",{className:"LinkCard-ecommerceLoadingCardAvatarWrapper"},Object(f.g)("img",{src:"https://pic2.zhimg.com/v2-1b0bbef27f0496a58468f92d94c8a80e_l.png",className:"LinkCard-ecommerceLoadingCardNetwork"})),Object(f.g)(h,{className:"LinkCard-ecommerceLoadingCardLoadingbar"})))};b.defaultProps={component:"a",target:"_blank"};t.a=b},function(e,t,n){"use strict";n.d(t,"a",(function(){return le}));var r=n(55),o=n.n(r),a=n(33),i=n.n(a),c=n(41),s=n.n(c),l=n(1),u=n.n(l),d=n(39),f=n(580),p=n.n(f),h=n(30),b=n(233),m=n.n(b),v=n(78),g=n(49),y=n.n(g),O=n(841),j=n(44),w=n.n(j),C=n(20),k=n.n(C),x=n(21),S=n.n(x),E=n(22),R=n.n(E),T=n(23),A=n.n(T),N=n(13),_=n.n(N),I=n(152),M=n(11),L=n.n(M),P=n(28),B=n.n(P),z=n(71),D=n.n(z),F=n(111),U=n.n(F),V=n(5);function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_()(e);if(t){var o=_()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A()(this,n)}}var H,K=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:U.a;return function(n){return D()(function(r){R()(a,r);var o=q(a);function a(){var e;k()(this,a);for(var n=arguments.length,r=new Array(n),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=t.Component,r=void 0===n?le:n,a=Object(l.useState)(null),c=o()(a,2),s=c[0],u=c[1];return Object(l.useEffect)((function(){if(e){var t=Array.from(e.querySelectorAll("img.origin_image[data-thumbnail],img.content_image[data-thumbnail]"));if(t.length){var n=t.map((function(e){return ue(e)})).map((function(e,t){var n=e.data,o=e.target;return Object(d.createPortal)(Object(V.g)(r,i()({key:t},n)),o)}));u(n)}}}),[e]),s}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n(923),f=n(205);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var h=function(e){Object(i.a)(n,e);var t=p(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0&&t>0){var n=e/t;if(n>1.2)return"180x120";if(n<=.8)return"120x160"}return"ipico"}(u,d),k=Object(b.imgUrl)(l,C);return Object(v.g)(p,i()({ref:t,target:a,href:c,"data-draft-node":"block","data-draft-type":"link-card"},k&&{"data-image":k},u&&{"data-image-width":u},d&&{"data-image-height":d},y&&{"data-size":y},r!==c&&r&&{"data-text":r},{className:f()("LinkCard new",g)},w),j||("3"===O?Object(v.g)(s.a.Fragment,null,Object(v.g)("span",{className:"LinkCard-contents withTitle"},Object(v.g)("span",{className:"LinkCard-title loadingTitle"},r),Object(v.g)("span",{className:"LinkCard-title loading withTitle"}),Object(v.g)("span",{className:"LinkCard-desc loading"})),Object(v.g)("span",{className:"LinkCard-image LinkCard-image--default"})):Object(v.g)(s.a.Fragment,null,Object(v.g)("span",{className:"LinkCard-contents"},Object(v.g)("span",{className:"LinkCard-title loading","data-text":!0}),Object(v.g)("span",{className:"LinkCard-desc loading"})),Object(v.g)("span",{className:"LinkCard-image LinkCard-image--default"}))))}));g.propTypes={component:u.a.oneOfType([u.a.string,u.a.func]),target:u.a.string,url:u.a.string.isRequired,text:u.a.string,image:u.a.string,imageWidth:u.a.oneOfType([u.a.string,u.a.number]),imageHeight:u.a.oneOfType([u.a.string,u.a.number])},g.defaultProps={component:"a",target:"_blank"},t.a=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return a}));var r=Object.freeze({DOM:{PLAY:"event/dom/play",PLAYING:"event/dom/playing",PAUSE:"event/dom/pause",ENDED:"event/dom/ended",TIMEUPDATE:"event/dom/timeupdate",ERROR:"event/dom/error",WAITING:"event/dom/waiting"},PLAYER:{QUALITY_CHANGE:"event/player/quality-change",REQUEST_PLAY:"event/player/request-play",PLAY_REJECTED:"event/player/play-rejected",REQUEST_PAUSE:"event/player/request-pause",PLAY_COUNT:"event/player/play-count",PLAY_FAILED:"event/player/play-failed",ENTER_FULLSCREEN:"event/player/enter-fullscreen",EXIT_FULLSCREEN:"event/player/exit-fullscreen",ENTER_PIP:"event/player/enter-pip",EXIT_PIP:"event/player/exit-pip"}}),o=Object.freeze({PLAYER:{PLAY:"action/player/play",PAUSE:"action/player/pause",SET_VOLUME:"action/player/set-volume",ENTER_FULLSCREEN:"action/player/enter-fullscreen",EXIT_FULLSCREEN:"action/player/exit-fullscreen",ENTER_PIP:"action/player/enter-pip",EXIT_PIP:"action/player/exit-pip",TIME_UPDATE:"action/player/time-update"}});function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*",n=arguments.length>2?arguments[2]:void 0;function r(r){function o(o){var a=o.origin||o.originalEvent.origin,i="*"===t||t===a,c=o.data||{},s=c.from,l=c.id,u=c.payload;if(i&&"griffith"===s&&(!n||e===l)&&u){var d=u.messageName,f=u.data;d&&r(d,f,o.source)}}return window.addEventListener("message",o),{unsubscribe:function(){return window.removeEventListener("message",o)}}}function o(n,r,o){n&&n.postMessage&&n.postMessage({from:"griffith",id:e,payload:{messageName:r,data:o}},t||"*")}return{subscribeMessage:r,dispatchMessage:o}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return c}));n(1);var r=n(856),o=n(851),a=n(1001),i=n(5),c=/]*data-draft-type="reference"[^>]*)>(.*?)<\/sup>/g;t.a=function(e){return function(t){return function(e,t){if(!e)return e;var n=e,s=[];return n=n.replace(c,(function(e,n){var a=Object(o.e)(n,{decodeValue:!0}),c=a["data-text"],l=void 0===c?"":c,u=a["data-url"],d=void 0===u?"":u,f=a["data-numero"],p=t?"ref_".concat(t,"_").concat(f):"ref_".concat(f),h=s.filter((function(e){return e.refKey===p})),b="".concat(p,"_").concat(h.length);s.push({refKey:p,text:l,url:d,numero:f});var m=[l,d].filter(Boolean).join(" ");return Object(r.renderToStaticMarkup)(Object(i.g)("sup",{"data-text":l,"data-url":d,"data-numero":f,"data-draft-node":"inline","data-draft-type":"reference","data-tooltip":m,"data-tooltip-preset":"white","data-tooltip-classname":"ztext-referene-tooltip"},Object(i.g)("a",{id:b,href:"#".concat(p),"data-reference-link":!0,"aria-labelledby":p},"[",f,"]")))})),s.length?n=n.concat(Object(r.renderToStaticMarkup)(Object(i.g)(a.a,{referenceList:s}))):n}(t,e)}}},function(e,t,n){"use strict";var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(3),h=n.n(p),b=n(1),m=n.n(b),v=n(11),g=n.n(v),y=n(937),O=n(152),j=n(79),w=n.n(j),C=n(143),k=n(5);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var S={top:10,left:20},E={top:0,left:0};var R=function(e){s()(n,e);var t=x(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;iu?(d.height=s,f=s/u,d.width=l*f,d.left=a+(c-d.width)/2,d.top=i+(s-d.height)/2):la.width?a.width:f.width,n=p.width/a.width,p.height=a.height*n,h={x:(f.width-p.width)/2+s,y:p.heightt.width?t.width:f.width,n=p.width/e.width,p.height=e.height*n,h={x:d.x-e.width/2,y:(p.height1&&void 0!==arguments[1]?arguments[1]:{},i=o.title,c=o.ok;return new Promise((function(r){n=Object(a.b)(h,{content:e,title:i,ok:c||"确定",onOk:r,css:{textAlign:"center"}},d()("modal")),t(n)})).finally((function(){return r(n)}))},confirm:function(e){var n,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=o.title,c=o.ok,s=o.cancel;return new Promise((function(r,o){n=Object(a.b)(h,{content:e,title:i,ok:c||"确定",onOk:r,cancel:s||"取消",onCancel:o},d()("modal")),t(n)})).finally((function(){return r(n)}))}}}},function(e,t,n){"use strict";function r(e){var t=e.id,n=e.name,r=e.urlToken;return"0"===t||"知乎用户"===n?null:Boolean(r||t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(838).OrderedMap,o={createFromArray:function(e){return r(e.map((function(e){return[e.getKey(),e]})))}};e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,a,i){return t(e,a)||(n(e)&&r(o,i),o=i),a})),n(e.last())&&r(o,e.count())}}},function(e,t,n){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,n){"use strict";var r=n(846);e.exports=function(e,t,n){var o=e.getSelection(),a=e.getCurrentContent(),i=o;if(o.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return a}else if(e.isSelectionAtStartOfContent())return a;if((i=t(e))===o)return a}return r.removeRange(a,i,n)}},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(134),p=n(1101);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var b=function(e){Object(a.a)(n,e);var t=h(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;ig(e,c);let l=w();s.write=e=>g(e,l);let u=w();s.onStart=e=>g(e,u);let d=w();s.onFrame=e=>g(e,d);let f=w();s.onFinish=e=>g(e,f);let p=[];s.setTimeout=(e,t)=>{let n=s.now()+t,r=()=>{let e=p.findIndex(e=>e.cancel==r);~e&&p.splice(e,1),k.count-=~e?1:0},o={time:n,handler:e,cancel:r};return p.splice(h(n),0,o),k.count+=1,y(),o};let h=e=>~(~p.findIndex(t=>t.time>e)||~p.length);s.cancel=e=>{c.delete(e),l.delete(e)},s.sync=e=>{v=!0,s.batchedUpdates(e),v=!1},s.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,s.onStart(n)}return r.handler=e,r.cancel=()=>{u.delete(n),t=null},r};let b="undefined"!=typeof window?window.requestAnimationFrame:()=>{};s.use=e=>b=e,s.now="undefined"!=typeof performance?()=>performance.now():Date.now,s.batchedUpdates=e=>e(),s.catch=console.error;let m=-1,v=!1;function g(e,t){v?(t.delete(e),e(0)):(t.add(e),y())}function y(){m<0&&(m=0,b(O))}function O(){~m&&(b(O),s.batchedUpdates(j))}function j(){let e=m;m=s.now();let t=h(m);t&&(C(p.splice(0,t),e=>e.handler()),k.count-=t),u.flush(),c.flush(e?Math.min(64,m-e):16.667),d.flush(),l.flush(),f.flush()}function w(){let e=new Set,t=e;return{add(n){k.count+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(k.count-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,k.count-=t.size,C(t,t=>t(n)&&e.add(t)),k.count+=e.size,t=e)}}}function C(e,t){e.forEach(e=>{try{t(e)}catch(e){s.catch(e)}})}const k={count:0,clear(){m=-1,p=[],u=w(),c=w(),d=w(),l=w(),f=w(),k.count=0}};var x=n(1);function S(){}var E=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},R={arr:Array.isArray,obj:function(e){return!!e&&"Object"===e.constructor.name},fun:function(e){return"function"==typeof e},str:function(e){return"string"==typeof e},num:function(e){return"number"==typeof e},und:function(e){return void 0===e}};function T(e,t){if(R.arr(e)){if(!R.arr(t)||e.length!==t.length)return!1;for(var n=0;n1?t-1:0),r=1;re.priority?(U.add(e),s.onStart(Q)):(W(e),s(Y))},advance:Y,sort:function(e){if(H)s.onFrame((function(){return K.sort(e)}));else{var t=V.indexOf(e);~t&&(V.splice(t,1),G(e))}},clear:function(){V=[],U.clear()}};function Q(){U.forEach(W),U.clear(),s(Y)}function W(e){V.includes(e)||G(e)}function G(e){var t,n,r;V.splice((n=function(t){return t.priority>e.priority},(r=(t=V).findIndex(n))<0?t.length:r),0,e)}function Y(e){for(var t=q,n=0;n0}var Z={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},X="[-+]?\\d*\\.?\\d+";function J(){for(var e=arguments.length,t=new Array(e),n=0;n1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function se(e,t,n){var r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,a=ce(o,r,e+1/3),i=ce(o,r,e),c=ce(o,r,e-1/3);return Math.round(255*a)<<24|Math.round(255*i)<<16|Math.round(255*c)<<8}function le(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function ue(e){return(parseFloat(e)%360+360)%360/360}function de(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function fe(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){var t,n,r="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(n=ae.exec(t))?parseInt(n[1]+"ff",16)>>>0:B&&void 0!==B[t]?B[t]:(n=$.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|255)>>>0:(n=ee.exec(t))?(le(n[1])<<24|le(n[2])<<16|le(n[3])<<8|de(n[4]))>>>0:(n=re.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+"ff",16)>>>0:(n=ie.exec(t))?parseInt(n[1],16)>>>0:(n=oe.exec(t))?parseInt(n[1]+n[1]+n[2]+n[2]+n[3]+n[3]+n[4]+n[4],16)>>>0:(n=te.exec(t))?(255|se(ue(n[1]),fe(n[2]),fe(n[3])))>>>0:(n=ne.exec(t))?(se(ue(n[1]),fe(n[2]),fe(n[3]))|de(n[4]))>>>0:null;if(null===r)return e;var o=(16711680&(r=r||0))>>>16,a=(65280&r)>>>8,i=(255&r)/255;return"rgba(".concat((4278190080&r)>>>24,", ").concat(o,", ").concat(a,", ").concat(i,")")}var he=function e(t,n,r){if(R.fun(t))return t;if(R.arr(t))return e({range:t,output:n,extrapolate:r});if(R.str(t.output[0]))return M(t);var o=t,a=o.output,i=o.range||[0,1],c=o.extrapolateLeft||o.extrapolate||"extend",s=o.extrapolateRight||o.extrapolate||"extend",l=o.easing||function(e){return e};return function(e){var t=function(e,t){for(var n=1;n=e);++n);return n-1}(e,i);return function(e,t,n,r,o,a,i,c,s){var l=s?s(e):e;if(ln){if("identity"===c)return l;"clamp"===c&&(l=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t);l=a(l),r===-1/0?l=-l:o===1/0?l+=r:l=l*(o-r)+r;return l}(e,i[t],i[t+1],a[t],a[t+1],l,c,s,o.map)}};var be=Symbol.for("FluidValue.get"),me=Symbol.for("FluidValue.observers"),ve=function(e){return Boolean(e&&e[be])},ge=function(e){return e&&e[be]?e[be]():e},ye=function(e){return e[me]||null};function Oe(e,t){var n=e[me];n&&n.forEach((function(e){!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var je=function e(t){if(i()(this,e),!t&&!(t=this.get))throw Error("Unknown getter");we(this,t)},we=function(e,t){return Se(e,be,t)};function Ce(e,t){if(e[be]){var n=e[me];n||Se(e,me,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ke(e,t){var n=e[me];if(n&&n.has(t)){var r=n.size-1;r?n.delete(t):e[me]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var xe,Se=function(e,t,n){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})},Ee=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Re=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Te=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ae=function(e,t,n,r,o){return"rgba(".concat(Math.round(t),", ").concat(Math.round(n),", ").concat(Math.round(r),", ").concat(o,")")},Ne=function(e){xe||(xe=B?new RegExp("(".concat(Object.keys(B).join("|"),")"),"g"):/^\b$/);var t=e.output.map((function(e){return ge(e).replace(Re,pe).replace(xe,pe)})),n=t.map((function(e){return e.match(Ee).map(Number)})),r=n[0].map((function(e,t){return n.map((function(e){if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]}))})).map((function(t){return he(Object.assign({},e,{output:t}))}));return function(e){var n=0;return t[0].replace(Ee,(function(){return String(r[n++](e))})).replace(Te,Ae)}},_e="react-spring: ",Ie=function(e){var t=e,n=!1;if("function"!=typeof t)throw new TypeError("".concat(_e,"once requires a function parameter"));return function(){n||(t.apply(void 0,arguments),n=!0)}},Me=Ie(console.warn);function Le(){Me("".concat(_e,'The "interpolate" function is deprecated in v9 (use "to" instead)'))}var Pe=Ie(console.warn);function Be(){Pe("".concat(_e,'Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead)'))}function ze(e){return R.str(e)&&("#"==e[0]||/\d/.test(e)||e in(B||{}))}var De=function(e){return Object(x.useEffect)(e,Fe)},Fe=[];function Ue(){var e=Object(x.useState)()[1],t=Object(x.useState)(Ve)[0];return De(t.unmount),function(){t.current&&e({})}}function Ve(){var e={current:!0,unmount:function(){return function(){e.current=!1}}};return e}function qe(e,t){var n=Object(x.useState)((function(){return{inputs:t,result:e()}})),r=o()(n,1)[0],a=Object(x.useRef)(),i=a.current,c=i;c?Boolean(t&&c.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0,n=(b[e[t+0]]+b[e[t+1]]+b[e[t+2]]+b[e[t+3]]+"-"+b[e[t+4]]+b[e[t+5]]+"-"+b[e[t+6]]+b[e[t+7]]+"-"+b[e[t+8]]+b[e[t+9]]+"-"+b[e[t+10]]+b[e[t+11]]+b[e[t+12]]+b[e[t+13]]+b[e[t+14]]+b[e[t+15]]).toLowerCase();if(!h(n))throw TypeError("Stringified UUID is invalid");return n};var g=function(e,t,n){var r=(e=e||{}).random||(e.rng||f)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return v(r)},y=n(5);var O={id:10291,name:"开始播放"},j={id:10366,name:"播放暂停"},w={id:10367,name:"播放结束"},C={id:10364,name:"有效播放"},k={id:10365,name:"感兴趣播放"},x={onSixSecond:6,onThreeSecond:3};var S={name:"1mzat5w-VideoWrapper",styles:"width:100%;height:100%;;label:VideoWrapper;"},E=Object(i.forwardRef)((function(e,t){var n=e.src,r=e.className,o=e.iframeProps,c=o.autoplay,s=o.useMSE,d=a()(o,["autoplay","useMSE"]),f="?player=".concat(JSON.stringify({autoplay:c,useMSE:s})),p=function(e){if(!e)return null;var t=new URL(e).pathname.match(/^\/video\/(\d+)$/);return t&&t[1]?t[1]:null}(n),h=Object(i.useRef)(Object(l.c)(p,"*",!0)),b=Object(i.useRef)(null),m=Object(i.useRef)(g()),v=Object(i.useRef)(!1),E=Object(i.useRef)(!1),R=Object(i.useRef)(!1),T=Object(i.useCallback)((function(e,t,n){if("onThreeSecond"===e){if(E.current)return;E.current=!0}if("onSixSecond"===e){if(R.current)return;R.current=!0}if("onEnd"===e){if(v.current)return;v.current=!0}var r=n.currentTime,o=n.duration;u.a.trackEvent(b.current,{id:t.id,action:c?"AutoPlay":"Play",name:t.name},{play:{play_event_identifier:m.current,elapsed:1e3*r,duration:1e3*o},module:[{card:{content:{video_id:p}}}]})}),[c,p]),A=Object(i.useCallback)((function(e,t,n){var r=n.currentTime;Math.floor(r)===x[e]&&T(e,t,n)}),[T]);return Object(i.useEffect)((function(){var e=h.current.subscribeMessage((function(e,t){e===l.b.DOM.PLAY&&T("onPlay",O,t),e===l.b.DOM.PAUSE&&T("onPause",j,t),e===l.b.DOM.ENDED&&T("onEnded",w,t),e===l.b.DOM.TIMEUPDATE&&A("onThreeSecond",C,t),e===l.b.DOM.TIMEUPDATE&&A("onSixSecond",k,t)}));return function(){return e&&e.unsubscribe()}}),[T,A]),Object(y.g)("div",{ref:b,className:r},Object(y.g)("iframe",Object.assign({ref:t,src:"".concat(n).concat(f)},d,{frameBorder:"0",css:S})))}));E.propTypes={className:s.a.string,src:s.a.string.isRequired,iframeProps:s.a.object},E.defaultProps={src:"",iframeProps:{autoplay:!1,useMSE:!1}};var R={video:E},T=Object(i.forwardRef)((function(e,t){var n=e.type,r=void 0===n?"video":n,o=a()(e,["type"]),i=R[r];return Object(y.g)(i,Object.assign({ref:t},o))}));T.propTypes={type:s.a.oneOf(["video"])};t.a=T},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(1432),p=n(31),h=n(30),b=n(365),m=n(205);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var g=function(e){Object(a.a)(n,e);var t=v(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n3,l=Object(s.useCallback)((function(e,t){if(o){var n=document.querySelector(".DraftEditor-editorContainer");if(n){var r=Array.from(n.querySelectorAll("h2,h3"))[t];r&&requestAnimationFrame((function(){return Object(v.a)(r,i)}))}}}),[o,i]);return(null==t?void 0:t.length)?Object(g.g)(u.Box,{className:b()(n,"Catalog"),mb:"48px",css:T,"data-za-detail-view-name":"正文"},Object(g.g)("h2",{css:A},"目录"),Object(g.g)(u.Box,{className:"Catalog-wrapper"},Object(g.g)(u.Flex,{className:"Catalog-content",flexDirection:"column",fontSize:"12px",overflow:"hidden",height:c?"84px":"auto"},t.map((function(e){var t=e.titleLevel,n=e.text,r=e.targetId,o=e.index,a=R[t]||C;return Object(g.g)(a,{key:String([r,o]),targetId:r,handleScroll:l,index:o},n)}))),Boolean(c)&&Object(g.g)(E,{isFold:!0}))):o?Object(g.g)(u.Flex,{flexDirection:"column",alignItems:"center",mb:"18px"},Object(g.g)(u.Box,{size:"160px",mb:"10px"},Object(g.g)(u.Image,{size:"100%",src:"https://pic1.zhimg.com/v2-acf70e51e6f95a027a65a9209fd6a330_r.png"})),Object(g.g)(u.Text,{color:"GBK06A",fontSize:"17px",lineHeight:"24px",textAlign:"center"},"在内容中设置标题将会在此处同步展示")):null}},,function(e,t,n){"use strict";var r=n(35),o=n(2),a=n(84),i=n(574);t.a=function(e){var t=e.checked,n=e.children,c=Object(r.a)(e,["checked","children"]);return Object(o.c)(a.b,Object.assign({},c,{children:[Object(o.b)("span",{css:{display:"inline-block",width:24,marginLeft:-24},children:t&&Object(o.b)(i.a,{text:!0,center:!0})}),n]}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return ie})),n.d(t,"a",(function(){return ce}));var r=n(55),o=n.n(r),a=n(1),i=n.n(a),c=n(7),s=n(63),l=n(841),u=n(79),d=n.n(u),f=n(1172),p=n(835),h=n(232),b=n(30),m=n(233),v=n.n(m),g=n(11),y=n.n(g),O=n(996),j=n(33),w=n.n(j),C=n(41),k=n.n(C),x=n(20),S=n.n(x),E=n(21),R=n.n(E),T=n(22),A=n.n(T),N=n(23),_=n.n(N),I=n(13),M=n.n(I),L=n(5);function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=M()(e);if(t){var o=M()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _()(this,n)}}var B=function(e){A()(n,e);var t=P(n);function n(){return S()(this,n),t.apply(this,arguments)}return R()(n,[{key:"render",value:function(){return Object(L.g)("svg",{width:"30",height:"30",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",className:"CircleLoadingBar","aria-hidden":"true"},Object(L.g)("g",null,Object(L.g)("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})))}}]),n}(a.Component),z=n(1005);var D=function(e){var t=e.className,n=e.url,r=e.source,o=k()(e,["className","url","source"]),a="苏宁"===r?"拼购":"",i="目前".concat(r,"暂不支持在电脑端购买").concat(a,"商品");return Object(L.g)(z.a,w()({className:y()("QRCodeModal",t)},o),Object(L.g)("div",{className:"QRCodeModal-title"},"用知乎 App 扫码查看"),Object(L.g)("div",{className:"QRCodeModal-tip"},i),Object(L.g)("div",{className:"QRCodeModal-qrcode"},Object(L.g)(B,null),Object(L.g)("img",{src:"https://www.zhihu.com/qrcode?url=".concat(encodeURIComponent(n))})))},F=n(140),U=n(132);var V=function(e){return Object(L.g)("svg",w()({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 10 12",fill:"currentColor"},e),Object(L.g)("path",{d:"M5,0 C7.7615,0 10,2.074 10,4.632 C10,8 8.681,9.6805 6.043,11.657 C5.463,12.0915 4.6455,12.1135 4.041,11.722 L3.952,11.66 L3.766,11.5195 C1.2555,9.5815 0,8 0,4.632 C0,2.074 2.2385,0 5,0 Z M5,1.5 C3.0425,1.5 1.5,2.929 1.5,4.632 C1.5,7.1075 2.159,8.3245 4.368,10.0855 L4.672,10.3235 L4.8565,10.463 C4.926,10.508 5.033,10.5115 5.109,10.4765 L5.144,10.4565 C7.708,8.535 8.5,7.2275 8.5,4.631 C8.5,2.9295 6.9575,1.5 5,1.5 Z M5,3 C5.82842712,3 6.5,3.67157288 6.5,4.5 C6.5,5.32842712 5.82842712,6 5,6 C4.17157288,6 3.5,5.32842712 3.5,4.5 C3.5,3.67157288 4.17157288,3 5,3 Z"}))};var q={hotel:"酒店",ticket:"门票"},H=Object.keys(q);var K={name:"1rguia",styles:"display:flex;padding:14px;"},Q={name:"1c8iba8",styles:"flex:1;margin-left:12px;overflow:hidden;"},W={name:"gg4vpm",styles:"display:flex;justify-content:space-between;"},G={name:"zjqrkl",styles:"font-size:12px;line-height:1;vertical-align:1px;"},Y={name:"1q27zj9",styles:"flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;"};function Z(e){var t,n,r,o=e.onRef,a=e.data,i=e.titleRightArea,c=a.imgUrl,s=a.title,l=a.priceText,u=a.areaName,d=Object(U.e)();return Object(L.g)("div",{css:K,ref:o},Object(L.g)("img",{src:c,css:Object(F.a)([{width:75,height:100,borderRadius:6,flexShrink:0,objectFit:"cover"},d],"")}),Object(L.g)("div",{css:Q},Object(L.g)("div",{css:W},Object(L.g)("div",{css:function(e){return Object.assign({color:e.colors.GBK02A,fontSize:15,fontWeight:e.fontWeights.bold,lineHeight:1.2,height:36},Object(U.d)(2))}},s),i),Object(L.g)("div",{css:function(e){return{color:e.colors.GBK05A,fontSize:12,marginTop:4,fontWeight:e.fontWeights.bold,height:16,lineHeight:"16px"}}},(n=(t=a).source,r=t.productTypeName,[n,q[r]].filter(Boolean).join(" · "))),Object(L.g)("div",{css:function(e){return{display:"flex",alignItems:"center",color:e.colors.GRD08A,marginTop:8,height:18,lineHeight:"18px"}}},Object(L.g)("div",{css:function(e){return{fontSize:15,fontWeight:e.fontWeights.bold}}},l," ",Object(L.g)("span",{css:G},"起")),Object(L.g)("div",{role:"button",css:function(e){return{marginLeft:"auto",cursor:"pointer",fontSize:13,fontWeight:e.fontWeights.bold}}},"去购买 ",Object(L.g)(p.a,{size:16,center:!0}))),Object(L.g)("div",{css:function(e){return{display:"flex",alignItems:"center",marginTop:2,height:18,lineHeight:1,fontSize:12,color:e.colors.GBK06A,fontWeight:e.fontWeights.bold,overflow:"hidden",transform:"scale(0.92)",transformOrigin:"left"}}},Object(L.g)(V,{width:"12",height:"12",css:Object(F.a)({flexShrink:0,marginTop:-1,marginRight:2},"")}),Object(L.g)("span",{css:Y},u))))}var X=Object(a.forwardRef)((function(e,t){return Object(L.g)(Z,w()({onRef:t},e))})),J={jingdong:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/49ab350f2a978c498a772cca64bed957.png",taobao:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/a8b2060a0b5d2c430e35ac415e19799c.png",pinduoduo:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/32e7577190980fd93efe88e79290ac2a.png",suning:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/380c2640df67aa0dac0e476f231868bc.png",meituanhotel:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/84810f4277ac3237497d30dae0ccf6e6.png",youzan:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/cb99f968d536fa5fcdfb457c08ec8325.png",zhihu:"https://zhihu-live.zhimg.com/namespace_1001/static/20210302/241545a9b1f94a0a9673708a20912fd1.png"};var $=function(e){var t=e.width,n=void 0===t?"16":t,r=e.height,o=void 0===r?"16":r;return Object(L.g)("svg",w()({width:n,height:o,viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),Object(L.g)("path",{d:"M8.31461 8L5.74555 10.5685C5.41807 10.896 5.41807 11.4269 5.74555 11.7544C6.07302 12.0819 6.60396 12.0819 6.93144 11.7544L10.0929 8.59295C10.2502 8.43572 10.3386 8.22242 10.3386 8C10.3386 7.77758 10.2502 7.56428 10.0929 7.40705L6.93144 4.24561C6.60396 3.91813 6.07302 3.91813 5.74555 4.24561C5.41807 4.57308 5.41807 5.10402 5.74555 5.4315L8.31461 8Z",fill:"#FF7955"}))},ee=n(383);var te=function(e){var t,n,r,o,a,i,l,u,f,b=e.id,m=e.bottomInfo,v=e.type,g=e.scenes,O=e.fetcher,j=d()(null===(t=navigator)||void 0===t?void 0:t.userAgent)||{},w=j.ZhihuHybrid,C=j.Safari,k=j.iOS,x=j.Android,S=function(e){w?s.a.supportsAction("mcn/openURL").then((function(t){t?s.a.dispatch("mcn/openURL",{type:v,scenes:g,url:e,fallbackUrl:e}):C?window.location.href=e:window.open(e,"_blank")})):C?window.location.href=e:window.open(e,"_blank")},E=function(e,t){if(e){var n=e.clickUrl,r=e.clickType;if(n){if(t.preventDefault(),t.stopPropagation(),"redirect"!==r)return"linkcard"===r?S(n):void(w?s.a.dispatch("base/openURL",{url:n}):S(n));O&&O(n).then((function(e){var t=Object(c.camelizeKeys)(e.data)||{},n=t.url,r=t.appSchemaIos,o=t.appSchemaAndroid;S(k?r:x?o:n)}))}}};return Object(L.g)(h.b,{content:{id:b,type:"GoodsRecommend"}},Object(L.g)(h.e,{zaText:!0,as:"div",zaType:"Card",zaBlock:"goodsRecommendCardBottomInfo",className:"BottomInfo"},Object(L.g)(h.a,{as:"div",zaText:!0,zaAction:"OpenUrl",zaBlock:"icon",zaType:"Button",extra:{link:{url:null===(n=m.icon)||void 0===n?void 0:n.clickUrl}},onClick:function(e){return E(m.icon,e)}},Object(L.g)("img",{src:null===(r=m.icon)||void 0===r?void 0:r.iconUrl,alt:""}),Object(L.g)("span",{className:y()({"MCNLinkCard-cardBottom-iconText":"redirect"===(null===(o=m.icon)||void 0===o?void 0:o.clickType)||"linkcard"===(null===(a=m.icon)||void 0===a?void 0:a.clickType)})},null===(i=m.icon)||void 0===i?void 0:i.iconText)),Object(L.g)(h.a,{as:"span",className:"MCNLinkCard-cardBottom-arrowText",zaText:!0,zaAction:"OpenUrl",zaBlock:"text",zaType:"Text",extra:{link:{url:null===(l=m.text)||void 0===l?void 0:l.clickUrl}},onClick:function(e){return E(m.text,e)}},null===(u=m.text)||void 0===u?void 0:u.text,(null===(f=m.text)||void 0===f?void 0:f.clickUrl)&&Object(L.g)(p.a,null))))},ne=function(e){var t=e.id,n=e.skuId,r=e.source,o=e.image,i=e.title,c=e.price,s=void 0===c?"0.00":c,l=e.sourceList,u=void 0===l?[]:l,f=e.bottomInfo,p=e.isContent,m=e.onRef,v=e.scenes,g=e.fetcher,O=Object(ee.versionControl)(d.a,{IOS:"7.8.0",ANDROID:"7.4.0"}),j=d()(navigator.userAgent),w=j.Mobile,C=j.Android,k=j.iOS,x=j.ZhihuHybrid,S=w?O&&x&&k?"zhihu://goods/bottom_sheet_hybrid?url=https://www.zhihu.com/grapp/select/method?page=paperBook&paperBookCardId=".concat(t):O&&x&&C?"https://www.zhihu.com/goods/bottom_sheet_hybrid?url=https://www.zhihu.com/grapp/select/method?page=paperBook&paperBookCardId=".concat(t):"https://www.zhihu.com/grapp/select/method?page=paperBook&paperBookCardId=".concat(t):"";Object(a.useEffect)((function(){b.a.trackCardShow(null,{id:10329,path:[{module_name:"".concat(t,"_").concat(n,"_").concat(r)}]})}),[]);return Object(L.g)(h.b,{as:"div",className:"AssociatedCard",block:"polymericCard",content:{type:"GoodsRecommend",id:"".concat(t,"-").concat(n,"-").concat(r)},extra:{link:{url:S}}},Object(L.g)(h.e,{as:"div",ref:m,className:"AssociatedCard-cardContainer",shouldTrackClick:!0,zaType:"Card",zaText:i,zaAction:"OpenUrl",zaEventType:"Click",extra:{link:{url:S}},onClick:function(){b.a.trackEvent(null,{id:10330,action:"OpenUrl",path:[{module_name:"".concat(t,"_").concat(n,"_").concat(r)}]})}},Object(L.g)("div",{className:y()("AssociatedCard-imageBox")},Object(L.g)("img",{className:"AssociatedCard-image",src:o,alt:""})),Object(L.g)("div",{className:"AssociatedCard-main"},Object(L.g)("div",{className:"AssociatedCard-title"},i),Object(L.g)("div",{className:"AssociatedCard-tool"},Object(L.g)("div",{className:"AssociatedCard-price"},Object(L.g)("span",null,s),Object(L.g)("span",{className:"AssociatedCard-priceQi"},"起")),Object(L.g)("div",{className:"AssociatedCard-sources"},u.length&&u.map((function(e,t){return t>2?null:Object(L.g)("img",{key:e,className:"AssociatedCard-sourceLogo",src:J[e],alt:""})})),Object(L.g)("span",{className:"AssociatedCard-sourceLength",style:{display:u.length>3?"inline-flex":"none"}},u.length),Object(L.g)($,{height:21,width:24,size:24,css:function(e){var t;return{color:null===(t=e.colors)||void 0===t?void 0:t.GRD08A}}}))))),f&&p&&Object(L.g)(te,{id:t,bottomInfo:f,type:r,fetcher:g,scenes:v}))},re=Object(a.forwardRef)((function(e,t){return Object(L.g)(ne,w()({onRef:t},e))})),oe=n(3),ae=n.n(oe),ie={CONTENT:0,MENTION_IN_CONTENT:1,SHOWCASE:2,LIVING_THEATER:3},ce={EDITOR:"editor",CONTENT:"content"},se=1,le={"淘宝":"taobao","天猫":"tmall","京东":"jingdong","京东自营":"jingdongSale","知乎":"zhihu","美团酒旅":"meituanhotel","苏宁":"suning","有赞":"youzan","拼多多":"pinduoduo"};function ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.trimZero,r=void 0!==n&&n,o=String(e).padStart(2,"0").slice(-2);return r&&"00"===o?"".concat(Math.floor(e/100)):"".concat(Math.floor(e/100),".").concat(o)}function de(e){var t=e.source,n=e.producer,r=e.price,o=e.zhihuVipText,a=e.isInvalidCard;if(null===r)return null;var i="¥ ".concat(ue(r)).concat("网络文学"===n?"/千字":"");return o?Object(L.g)("div",{className:"MCNLinkCard-VIPPrice"},Object(L.g)("span",{className:"MCNLinkCard-VIPPriceHint"},o),Object(L.g)("span",{className:"MCNLinkCard-originalPrice"},i)):Object(L.g)("div",{className:y()("MCNLinkCard-price",{"MCNLinkCard-price--invalid":a})},"拼多多"===t&&Object(L.g)("span",{className:"MCNLinkCard-pricePrefix"},"拼团价"),Object(L.g)("span",null,i))}function fe(e,t){var n=Object(a.useState)(null),r=o()(n,2),u=r[0],m=r[1],g=Object(a.useState)(!1),j=o()(g,2),w=j[0],C=j[1],k=e.component,x=void 0===k?"a":k,S=e.id,E=e.scenes,R=void 0===E?ie.CONTENT:E,T=e.className,A=e.onClick,N=e.onMouseDown,_=e.onClickGoodsPrice,I=e.refetchKey,M=e.onData,P=void 0===M?v.a:M,B=e.processResponse,z=e.getUrl,F=e.buttonText,U=e.fetcher,V=void 0===U?O.a:U,q=e.fetcherOptions,K=e.cardShowHandler,Q=e.disableZa,W=e.titleRightArea,G=e.titleRightText,Y=e.position,Z=void 0===Y?ce.CONTENT:Y,J=e.goodsRecommendCards,$=Object(a.useRef)(null);if(Object(a.useEffect)((function(){if(null!==I)if(J&&J[S])m(Object(c.camelizeKeys)(J[S]));else{var e=z?z(S):"/api/v4/mcn/linkcard/".concat(S,"?scenes=").concat(R);V(e,q).then((function(e){var t=B?B(e):Object(c.camelizeKeys)(e.data);m(t),P(t)})).catch((function(){}))}}),[S,R,m,P,I,z,B,V,q,J]),Object(a.useEffect)((function(){$.current&&!Q&&Object(l.onViewedOnce)($.current.parentNode,(function(){var e=u.skuid,t=u.source;b.a.trackCardShow($.current.parentNode,{id:6108,path:[{module_name:"".concat(S,"_").concat(e,"_").concat(le[t])}]},{button:{text:$.current.parentNode.dataset.zaExtraButtonText}})}))}),[K,u,Q,S]),!u)return Object(L.g)(x,{ref:t,className:y()("MCNLinkCard","MCNLinkCard-placeholder",T),"data-draft-node":"block","data-draft-type":"mcn-link-card"});var ee=u.url,ne=u.skuid,oe=u.title,ae=u.imgUrl,fe=u.price,pe=u.source,he=u.children,be=u.productTypeName,me=u.goodsType,ve=u.producer,ge=u.zhihuButtonText,ye=u.zhihuVipText,Oe=u.appSchemaAndroid,je=u.appSchemaIos,we=u.subtitle,Ce=u.status,ke=u.banClick,xe=u.description,Se=u.bottomInfo,Ee=u.sideInfo,Re=u.productType,Te=null,Ae="square",Ne=F||"去购买",_e=!0,Ie=!1,Me=!1,Le="知乎"===pe&&["7","8"].includes(Re+"");(Z===ce.EDITOR&&Ce===se||"red_packet"===be&&ke)&&(Ie=!0),"有赞"===pe&&"store"===be&&(_e=!1,Ne="去浏览"),"知乎"===pe&&(Te=ve,Ae="rectangle",Ne=ge||"去查看"),"red_packet"===be&&(Ne="去领取",_e=!1,Me=!0);var Pe=["天猫","京东自营"].includes(pe)?"1":void 0,Be=H.includes(be),ze=he&&he.length&&[le[pe]].concat(he.map((function(e){return le[e.source]})))||[],De=he&&he.length&&he.reduce((function(e,t){return parseInt((null==e?void 0:e.price)||0)>parseInt((null==t?void 0:t.price)||0)?t:e})),Fe=parseInt((null==De?void 0:De.price)||0)>parseInt(fe||0)?parseInt(fe||0):parseInt((null==De?void 0:De.price)||0);function Ue(e){return!1===e?null:null==e?(null==Ee?void 0:Ee.type)?Object(L.g)(h.b,{content:{type:"GoodsRecommend",id:"".concat(S,"-").concat(ne,"-").concat(le[pe])}},Object(L.g)(h.e,{zaText:!0,shouldTrackClick:!0,onClick:function(e){return function(e,t){var n;if(e.preventDefault(),e.stopPropagation(),_)return _(e);var r=d()(null===(n=navigator)||void 0===n?void 0:n.userAgent)||{},o=r.ZhihuHybrid,a=r.Safari;t=function(e){if("string"!=typeof e)return"";var t="zh_forcehybrid=1&zh_hide_nav_bar=true&zh_hide_tab_bar=true";return e.includes("?")?"".concat(e,"&").concat(t):"".concat(e,"?").concat(t)}(t),o?s.a.dispatch("base/openURL",{url:t}):a?window.location.href=t:window.open(t,"_blank")}(e,null==Ee?void 0:Ee.clickUrl)},className:y()({"MCNLinkCard-titleRightText":"text"===(null==Ee?void 0:Ee.type),"MCNLinkCard-titleRightImg":"img"===(null==Ee?void 0:Ee.type)}),as:"div",zaType:"Button",zaAction:"OpenUrl",zaEventType:"Click",zaBlock:"goodPrice",extra:{link:{url:null==Ee?void 0:Ee.clickUrl}}},"text"===(null==Ee?void 0:Ee.type)&&(G||Ee.value||Ee.test),"img"===(null==Ee?void 0:Ee.type)&&Object(L.g)("img",{src:Ee.value,alt:""}))):null:e}var Ve=he&&he.length?Object(L.g)(re,{ref:$,id:S,skuId:ne,source:le[pe],image:ae,title:oe,price:"¥ ".concat(ue(Fe)),sourceList:ze,isContent:Z===ce.CONTENT,bottomInfo:Se,scenes:R,fetcher:V}):Be?Object(L.g)(X,{data:u,ref:$,titleRightArea:Ue(W)}):Object(L.g)("div",{className:"MCNLinkCard-card",ref:$},Object(L.g)("div",{className:"MCNLinkCard-cardContainer"},Object(L.g)("div",{className:y()("MCNLinkCard-imageContainer","MCNLinkCard-imageContainer--".concat(Ae),{"MCNLinkCard-imageContainer--invalid":Ie,"MCNLinkCard-redPacketImageContainer":Me})},Object(L.g)("img",{className:"MCNLinkCard-image",src:ae,alt:""}),Te&&Object(L.g)("div",{className:"MCNLinkCard-tagInImage"},Te)),Object(L.g)("div",{className:"MCNLinkCard-info"},Object(L.g)("div",{className:"MCNLinkCard-titleContainer"},Object(L.g)("div",{className:y()("MCNLinkCard-title",{"MCNLinkCard-title--invalid":Ie,"MCNLinkCard-redPacketTitle":Me})},oe),Ue(W)),Me&&xe&&Object(L.g)("div",{className:"MCNLinkCard-desc"},xe),!Me&&Object(L.g)("div",{className:y()("MCNLinkCard-source",{"MCNLinkCard-source--invalid":Ie})},Le?"":we||pe),Object(L.g)("div",{className:"MCNLinkCard-tool"},Object(L.g)("div",{className:"MCNLinkCard-toolLeft"},Me&&Object(L.g)("div",{className:"MCNLinkCard-redEvenlope-time"},we),_e&&Object(L.g)(de,{source:pe,producer:ve,price:fe,zhihuVipText:ye,isInvalidCard:Ie})),Ie?Object(L.g)("div",{className:"MCNLinkCard-invalidButton",role:"button"},Object(L.g)(f.a,{size:17,center:!0}),Object(L.g)("span",null,"已失效")):Object(L.g)("div",{className:"MCNLinkCard-button",role:"button"},Ne,Object(L.g)(p.a,{size:24,center:!0}))))),Se&&Z===ce.CONTENT&&Object(L.g)(te,{id:S,bottomInfo:Se,fetcher:V,type:le[pe],scenes:R}));return Object(L.g)(i.a.Fragment,null,w&&Object(L.g)(D,{url:ee,source:pe,onClose:function(){return C(!1)}}),Object(L.g)(h.b,{block:"goodsRecommendCard",content:{type:"GoodsRecommend",id:"".concat(S,"-").concat(ne,"-").concat(le[pe])},extra:{link:{url:ee}}},Object(L.g)(h.e,{shouldTrackClick:!0,zaAction:"OpenUrl",zaType:"Card",zaText:oe,zaEventType:"Click",as:x,ref:t,className:y()("MCNLinkCard",T),"data-draft-node":"block","data-draft-type":"mcn-link-card","data-mcn-id":S,"data-mcn-skuid":ne,"data-mcn-source":pe,"data-mcn-goods-type":me,"data-mcn-app-schema-android":Oe,"data-mcn-app-schema-ios":je,"data-mcn-children":he&&he.length||0,"data-za-detail-view-name":S,"data-za-extra-button-text":Pe,"data-za-not-track-link":!0,"data-mcn-product-type":Re,href:ee,target:"_blank",rel:"noopener noreferrer",onClick:function(e){if(!Q&&b.a.trackEvent(e.currentTarget,{id:6208,action:"Click",path:[{module_name:"".concat(S,"_").concat(ne,"_").concat(le[pe])}]},{button:{text:e.currentTarget.dataset.zaExtraButtonText}}),Me&&Ie)e.preventDefault();else if(A&&A(e),!e.defaultPrevented){var t=d()(navigator.userAgent),n=t.Tablet,r=t.Mobile;"拼多多"!==pe||n||r||(e.preventDefault(),C(!0)),"苏宁"!==pe||"苏宁拼购"!==me||n||r||(e.preventDefault(),C(!0))}},onMouseDown:N},Ve)))}fe.prototype={component:ae.a.element,id:ae.a.number,className:ae.a.string,onClick:ae.a.func};t.c=i.a.forwardRef(fe)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ge}));var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(3),d=n.n(u),f=n(1),p=n(27),h=n(11),b=n.n(h),m=n(31),v=n(857),g=n(1271),y=n(889),O=n(235),j=n(1141),w=n(1019),C=n(377),k=n(841),x=n(1068),S=n(152),E=n(30),R=n(205),T=n(958),A=n(19),N=n(40),_=n.n(N),I=n(57),M=n(813);function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var P=function(e){Object(i.a)(n,e);var t=L(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){var e=this.props,t=e.visible,n=e.top,r=e.onSelect,o=e.content,a=this.hintInfo,i=a&&"danger"===a.type;return Object(l.c)("div",{className:b()("SharePopover",{"SharePopover--show":t}),style:{top:n},disabled:i,children:[Object(l.b)("span",{className:"SharePopover-arrow"}),Object(l.c)("div",{className:b()("SharePopover-content",{"SharePopover-content--danger":i}),onClick:function(){i||r(o)},children:[Object(l.b)(M.a,{className:"SharePopover-quote",size:24}),Object(l.b)("span",{className:"SharePopover-main",children:"发送到百科下的摘录"}),a&&Object(l.b)("span",{className:"SharePopover-hint",children:a.text})]})]})}},{key:"hintInfo",get:function(){var e=this.props,t=e.content;if(!e.isCopyable)return{type:"danger",text:"该内容限制转载"};var n=t.length;return n<100?{type:"danger",text:"最少摘录 100 字"}:n>450&&n<=500?{type:"warning",text:"还可以摘录 ".concat(500-n," 字")}:n>500&&{type:"danger",text:"已经超出 ".concat(n-500," 字")}}}]),n}(f.Component);P.propTypes={content:d.a.string,top:d.a.number,visible:d.a.bool};var B=P,z=n(43),D=n(134),F=n(1169),U=n(396);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var q=function(e){Object(i.a)(n,e);var t=V(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0)return e.getRangeAt(0)}},{key:"getExtraCopyright",value:function(e,t,n){var r=["作者:".concat(t),"链接:".concat(e),"来源:知乎","著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。"],o=["",""];return r=n?r.concat(o):o.concat(r)}},{key:"getCopyText",value:function(e,t,n,r){var o=this.getExtraCopyright(t,n,r).join("\n");return r?o+e:e+o}},{key:"getRangeHtml",value:function(e){var t=document.createElement("div");return t.appendChild(e.cloneContents()),t.outerHTML}},{key:"getCopyHtml",value:function(e,t,n,r){var o=this.getExtraCopyright(t,n,r).join("
");return"
".concat(r?o+e:e+o,"
")}},{key:"randomRange",value:function(e,t){return Math.floor(Math.random()*(t-e)+e)}},{key:"addCopyright",value:function(e,t,n){if(window.getSelection){var r=window.getSelection(),o=this.getRange(r),a=o.toString().trim(),i=this.getRangeHtml(o);if(a&&!(a.length<128)){var c=a.length>=512,s=this.getCopyHtml(i,t,n,c),l=this.getCopyText(a,t,n,c),u=e.nativeEvent.clipboardData;if("object"==typeof u){if(u.setData("text/html",''+s),u.setData("text/plain",l),u.getData("text/plain")&&u.getData("text/plain").length>0)return void e.preventDefault()}var d=document.createElement("div");d.innerHTML=s;var f=d.firstChild;f.style.position="fixed",f.style.left="-9999px",document.body.appendChild(f),r.selectAllChildren(f),setTimeout((function(){document.body.removeChild(f),r.removeAllRanges(),r.addRange(o)}),200)}}}},{key:"showTip",value:function(e,t){if(window.getSelection){var n=window.getSelection(),r=this.getRange(n),o=r.toString().trim(),a=this.randomRange(44,66);if(!(o.length<=a)){e.preventDefault(),e.stopPropagation();var i,c=r.getBoundingClientRect(),s=window.pageYOffset,l=this.rightClickX,u=this.rightClickY,d="bottom";if(-1!==u)i=u+3;else{var f=this.props.viewPort,p=c.top+s,h=c.bottom+s,b=s+f.top+52,m=s+f.bottom-52;hb&&pe.content.offsetHeight&&e.setState({contentCollapsed:!0})},e.updateStateInBrowser=function(){var t=e.props,n=t.excerpt,r=t.allowCollapseWithEmptyExcerpt,o=t.html,a=t.expanded,i=t.cover,c=t.unescapable,s=t.limit,l=t.limitWithImage,u=t.truncateHTMLOptions,d=t.truncateDisabled,f=!0,p=e.state.truncatedContent;if((n||r)&&(Ce.test(n)||d))p=n;else if(!c){var h=i?l:s,b=e.truncate(o,h,u);f=b.isTruncated,p=b.content}return{isTruncated:f,isExpanded:o&&a,truncatedContent:p,previewImg:null}},e.checkOpenInAppStyle=function(e){},e.toggle=function(t){e.isCollapsed()?e.handleExpand(t):e.handleCollapse(t)},e.handleExpand=function(t){var n,r,o=e.props.zaIds.expand;(null==t?void 0:t.target)&&(((null===(r=n=t.target.textContent)||void 0===r?void 0:r.length)>10||t.target.classList.contains("RichContent-inner")||t.target.classList.contains("List-item"))&&(n=null));E.a.trackEvent(e.richContentRef.current,Object.assign({action:"Expand"},n&&{name:n},o&&{id:o}));var a=e.props.onExpand;if(a)a(t);else{var i=e.props,c=i.onToggleExpend,s=i.data,l=s.type,u=s.id;e.context.currentUser&&Object(je.c)("article"===l?"post":l,u,je.a);c&&c(!0),e.setState({isExpanded:!0},(function(){"article"===l&&Object(k.onViewedOnce)(e.richContentRef.current,(function(){E.a.trackEvent(e.richContentRef.current,{action:"ReadFinish"})}))}))}},e.handleCollapse=function(){var t=e.props.onToggleExpend;E.a.trackEvent(e.richContentRef.current,{action:"Collapse",element:"Button"});t&&t(!1),e.setState({isExpanded:!1},(function(){return e.checkOpenInAppStyle(!1)}))},e.handlePreview=function(t){var n=e.state,r=n.isExpanded,o=n.isTruncated&&!r,a=t.target;o||"IMG"!==a.tagName||!a.classList.contains("zh-lightbox-thumb")&&!a.classList.contains("Slideshow-swiperImage")||e.setState({previewImg:a})},e.handlePositionStatusChange=function(t){var n=e.props.onPositionStatusChange;n&&(n(t),e.checkOpenInAppStyle("fixed"===t))},e.handleObserve=function(t){var n=t[0].intersectionRatio;if(n||!document.querySelector("#root").style.position){var r=n>0;r!==e.state.shouldSticky&&(e.setState({shouldSticky:r}),r||e.checkOpenInAppStyle(!1))}},e.handleTrunObserve=function(t){var n=e.props,r=n.data,o=(r.type,r.id,n.updateReadStatus,t[0]),a=o.intersectionRatio,i=o.isIntersecting;e.truncateComputed||(a>0||i)&&(setTimeout((function(){return e.truncateContent()})),e.truncateComputed=!0)},e.isCollapsed=function(){var t=e.props,n=t.after,r=t.before,o=t.unescapable,a=e.state,i=a.isExpanded,c=a.isTruncated;return!r&&!n||o?c&&!i:!i},e}return Object(a.a)(n,[{key:"componentDidMount",value:function(){var e=this;this.setState(Object.assign({},this.updateStateInBrowser(),{viewPort:{top:148,bottom:window.innerHeight-56}})),Object(k.onViewedOnce)(this.richContentRef.current,(function(){var t=e.props,n=t.data,r=n.type,o=n.id,a=t.expanded;e.context.currentUser&&a&&Object(je.c)("article"===r?"post":r,o,je.a)})),this.props.imperativeRef&&(this.props.imperativeRef.current={handleExpand:this.handleExpand.bind(this)})}},{key:"componentWillReceiveProps",value:function(e){this.props.data.id!==e.data.id&&this.setState(this.getInitTruncatedState(e))}},{key:"componentWillUpdate",value:function(e,t){if(this.state.isExpanded&&!t.isExpanded){var n=this.richContentRef.current.getBoundingClientRect();n.top1&&void 0!==arguments[1]?arguments[1]:{};if(n.url||(n.url=e),e!==n.url)throw new Error("mismatch url\n".concat(e,"\n").concat(n.url),e,n.url);return new Promise((function(e,r){n.addToQueue({options:t,resolve:e,reject:r})}))},this.instance=null,this.customFetch=t,this.delay=200,this.maxDelay=1e3,this.url="",this.queueMaxLength=10,this.queue=[],this.startTime=Date.now(),this.timeout=null,this.initialized=!1}var t;return S()(e,[{key:"initConfig",value:function(e){var t=e.delay,n=e.maxDelay,r=e.maxBatchCount;t&&(this.delay=t),n&&(this.maxDelay=n),r&&(this.maxBatchCount=r),this.initialized=!0}},{key:"buildFetchParams",value:function(e){var t=o()(e,1)[0].options,n=e.reduce((function(e,t){var n,r;return(null===(n=(r=t.options).dataBuilder)||void 0===n?void 0:n.call(r,e,t))||e}),{}),r=this.url,a=!t.method||"GET"===t.method.toUpperCase();if(a){var i=T()(r,!0);i.query=Object.assign({},i.query,{},n),r=i.toString()}return[r,Object.assign({},t,{data:a?null:Object.assign({},t.data,{},n)})]}},{key:"doFetch",value:(t=y()(v.a.mark((function e(){var t,n;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(0!==this.queue.length){e.next=2;break}return e.abrupt("return");case 2:return t=this.queue,this.queue=[],e.prev=4,e.next=7,this.customFetch.apply(this,w()(this.buildFetchParams(t)));case 7:n=e.sent,t.forEach((function(e){var t=e.options,r=e.resolve;t.resultBuilder?r(t.resultBuilder(n)):r(n)})),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),t.forEach((function(t){return t.reject(e.t0)}));case 14:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(){return t.apply(this,arguments)})},{key:"addToQueue",value:function(e){var t=this;this.initialized||this.initConfig(e.options),clearTimeout(this.timeout),(Date.now()-this.startTime>this.maxDelay||this.queue.length>=this.maxBatchCount)&&(this.startTime=Date.now(),this.doFetch()),this.queue.push(e),setTimeout((function(){t.startTime=Date.now(),t.doFetch()}),this.delay)}}]),e}(),N=null,_=function(e){return function(t,n){return N||(N=new A(e)),N.fetch(t,n)}}(function(e){return function(){var t=y()(v.a.mark((function t(n,r){var o;return v.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e(n,r);case 2:return o=t.sent,t.t0=E.camelizeKeys,t.next=6,o.json();case 6:return t.t1=t.sent,t.abrupt("return",(0,t.t0)(t.t1));case 8:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}()}(fetch)),I={},M=function(e){var t=Object(l.useRef)(0),n=e.inEditor,r=e["data-offset-key"],a=e["data-text"],i=e["data-image"],c=e.href,s=Object(l.useState)((function(){return n&&I[r]||null})),u=o()(s,2),d=u[0],f=u[1],p=Object(O.e)({once:!0}),h=o()(p,2),b=h[0],m=h[1],g=Object(O.c)((function(e){var t=e||d;if(!t||0===Object.keys(t).length)return{objectType:null,title:a||c,thumbnail:i};t.title=a||t.title||c,t.thumbnail=i||t.thumbnail;var o=Object.assign({},t,{cached:!0});return n&&(I[r]=o),o})),j=Object(O.c)(y()(v.a.mark((function e(){var n;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.current+=1,e.prev=1,e.next=4,_("/api/v4/link_card_infos",{method:"GET",credentials:"include",headers:{"Content-Type":"application/json"},dataBuilder:function(e){return e.urls="".concat(e.urls?e.urls+",":"").concat(c),e},resultBuilder:function(e){return e[c]}});case 4:n=e.sent,f(g(n)),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),t.current<=1?j():f(g());case 11:case"end":return e.stop()}}),e,null,[[1,8]])}))));return Object(l.useEffect)((function(){!m||d&&d.cached||j()}),[m,d,j]),Object(l.useEffect)((function(){n&&f(g())}),[n,g,a,i]),[b,d]},L=n(920),P=n(237),B=n(5),z={answer:"Answer",article:"Column",zvideo:"Zvideo",question:"Question",collection:"Collection",roundtable:"Roundtable",topic:"Topic"},D=u.a.forwardRef((function(e,t){var n=p()(e,["zvideoLinkCardProps"]),r=n.inEditor,a=n["data-text"],c=n.href,u=n.newLinkCardAb,f=n.zaBlock,m=s()(n,["inEditor","data-text","href","newLinkCardAb","zaBlock"]),v=Object(l.useRef)(),g=M(e),y=o()(g,2),O=y[0],j=y[1],w=Object(L.a)(e,v,"zvideo"===(null==j?void 0:j.objectType)),C=w.handleImageClick,k=w.handleInfoClick,x=Object(l.useCallback)(Object(P.a)(t,O,v),[]),S=r?h.d:d.a,E=r?null:{as:h.d,shouldTrackShow:!0,zaText:!0,zaType:"Button",zaAction:"OpenUrl",zaBlock:f,extra:{link:{url:c}},"data-za-module":"Content"},R=Object(B.g)(S,i()({},E,{url:c,data:j,onClick:k,onClickImage:C,newLinkCardAb:u}));return"3"===u?Object(B.g)(d.b,{content:{type:z[null==j?void 0:j.objectType]||"Unknown"}},Object(B.g)(b.a,i()({ref:x,text:a,url:c,component:"a",newLinkCardAb:u},m),Boolean(j)&&R)):Object(B.g)(b.a,i()({ref:x,text:a,url:c,component:"a",newLinkCardAb:u},m),Boolean(j)&&Object(B.g)(d.b,{content:{type:z[j.objectType]||"Unknown"}},R))}));t.a=D},function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(3),h=n.n(p),b=n(1),m=n(377),v=n(5);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var y=function(e){s()(n,e);var t=g(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0)&&e.setState({shown:!0})},e}return i()(n,[{key:"render",value:function(){var e=this.props,t=e.placeholder,n=e.rootMargin,r=e.children;return this.state.shown?r:Object(v.g)(m.a,{rootMargin:n,onObserve:this.handleObserve,threshold:[0,.1]},t||Object(v.g)("div",{style:{height:"1px"}}))}}]),n}(b.Component);y.propTypes={placeholder:h.a.element,rootMargin:h.a.string},y.defaultProps={rootMargin:"200px"};var O=y},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return c}));var r=n(983),o=n.n(r),a=n(24);function i(e){if("number"!=typeof e)return null;var t=Math.floor(e/60),n=Math.floor(e%60);return"".concat(String(t),":").concat(o()(String(n),2,"0"))}function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.multiple,r=void 0!==n&&n,o=t.numLimit,i=void 0===o?a.T:o,c=t.uploadPartiallyWhenExceedsLimit,s=void 0===c||c,l=Array.from(e).filter((function(e){return a.a.VIDEO.some((function(t){return e.name.toLowerCase().endsWith(t)}))}));return 0===l.length?{message:"视频格式不支持",abortUpload:!0}:!r&&l.length>1?{message:"一次仅能上传一个视频,请分开上传",abortUpload:!1,validFiles:[l[0]]}:r&&l.length>i?0===i?{message:"上传个数已达上限",abortUpload:!0}:s?{message:"最多可上传 ".concat(i," 个视频,已默认选择").concat(i>1?"前":"第"," ").concat(i," 个视频"),abortUpload:!1,validFiles:l.slice(0,i)}:{message:"一次最多上传 ".concat(i," 个视频, 请重新选择上传"),abortUpload:!0}:{message:null,abortUpload:!1,validFiles:l}}},function(e,t,n){"use strict";n.d(t,"k",(function(){return i})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return p})),n.d(t,"c",(function(){return b})),n.d(t,"d",(function(){return v})),n.d(t,"e",(function(){return y})),n.d(t,"h",(function(){return j})),n.d(t,"i",(function(){return C})),n.d(t,"g",(function(){return x})),n.d(t,"j",(function(){return R})),n.d(t,"f",(function(){return S.a}));var r=n(35),o=n(2),a=n(90),i=function(e){var t=e.children,n=Object(r.a)(e,["children"]);return Object(o.b)(a.Flex,Object.assign({alignItems:"center",justifyContent:"center",flex:1,height:"100%"},n,{children:Object(o.b)(a.Text,{textAlign:"center",color:"GBL05A",children:t})}))},c=n(1),s=n.n(c),l=n(131),u=Object.assign;var d=function(e){return s.a.createElement(l.a,u({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M94 29v-2.002c0-.55.443-.998 1-.998h1c.553 0 1 .446 1 .998V29h2.002c.55 0 .998.443.998 1v1c0 .553-.446 1-.998 1H97v2.002c0 .55-.443.998-1 .998h-1c-.553 0-1-.446-1-.998V32h-2.002A.997.997 0 0191 31v-1c0-.553.446-1 .998-1H94zm30.613 17.724l-21.82-4.638.207-3.023 22.237 4.727a6.004 6.004 0 014.62 7.122l-7.9 37.158a6.001 6.001 0 01-7.116 4.627l-15.31-3.254.63-2.934 15.31 3.25c1.62.34 3.218-.69 3.56-2.32l7.9-37.16a3.005 3.005 0 00-2.31-3.567zM48.596 85.727l.624 2.935-12.717 2.703a6.004 6.004 0 01-7.117-4.628L21.488 49.58a6.004 6.004 0 014.62-7.123L47 38.017l.133 3.038-20.402 4.337a3 3 0 00-2.3 3.564l7.9 37.157a3.005 3.005 0 003.56 2.317l12.71-2.703zM100 82c0 3.314-2.688 6-6.006 6H56.006A6.01 6.01 0 0150 82V34c0-3.314 2.688-6 6.006-6h27.147v3H56.006A3.003 3.003 0 0053 34v48c0 1.65 1.35 3 3.006 3h37.988A3.003 3.003 0 0097 82V42.373h3V82zm-4.5-41C89.7 41 85 36.3 85 30.5S89.7 20 95.5 20 106 24.7 106 30.5 101.3 41 95.5 41zm0-3a7.5 7.5 0 100-15 7.5 7.5 0 000 15z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M47 73.22l-6.484 1.378c-.82.174-1.333.97-1.16 1.78.173.816.97 1.327 1.784 1.154L47 76.287V73.22zm0-8.594l-4.58.974c-.8.17-1.324.968-1.152 1.778a1.494 1.494 0 001.775 1.156l3.957-.84v-3.068zm0-17.285a6.002 6.002 0 00-8 5.66 6.002 6.002 0 008 5.66V47.34zm56 29.88l6.178 1.318a1.5 1.5 0 10.624-2.934L103 74.148v3.067zm0-8.58l4.275.91c.808.17 1.6-.34 1.775-1.157a1.507 1.507 0 00-1.15-1.78l-4.9-1.04v3.067zm0-8.97c.626.22 1.3.34 2 .34 3.314 0 6-2.685 6-6s-2.686-6-6-6c-.7 0-1.374.12-2 .34v11.32zM76 56a8 8 0 110-16 8 8 0 010 16zm-8 7.5c0-.828.667-1.5 1.505-1.5h12.99a1.5 1.5 0 110 3h-12.99A1.5 1.5 0 0168 63.5zm-5 8c0-.828.67-1.5 1.49-1.5h23.02c.822 0 1.49.666 1.49 1.5 0 .828-.67 1.5-1.49 1.5H64.49c-.822 0-1.49-.666-1.49-1.5z"})))},f=Object.assign;var p=function(e){return s.a.createElement(l.a,f({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M67.757 83H45c-1.66 0-3-1.338-3-2.998V37.998A3.003 3.003 0 0145 35h53.42v-3H45c-3.31 0-6 2.686-6 5.998v42.004A5.994 5.994 0 0045 86h21.515l6.853 6.854a2.99 2.99 0 004.234 0L84.456 86H105c3.31 0 6-2.686 6-5.998v-36.54h-3v36.54A3.003 3.003 0 01105 83H83.214l-7.728 7.728L67.756 83z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M55 48.5c0-.828.67-1.5 1.508-1.5h26.984a1.5 1.5 0 110 3H56.508A1.5 1.5 0 0155 48.5zm0 11c0-.828.677-1.5 1.495-1.5h37.01c.826 0 1.495.666 1.495 1.5 0 .828-.677 1.5-1.495 1.5h-37.01A1.494 1.494 0 0155 59.5zm0 11c0-.828.677-1.5 1.495-1.5h37.01c.826 0 1.495.666 1.495 1.5 0 .828-.677 1.5-1.495 1.5h-37.01A1.494 1.494 0 0155 70.5z"}),s.a.createElement("path",{fill:"#EBEEF5",d:"M94.868 50.46l18.92-18.92-2.83-2.827-18.918 18.92-2.12-2.123 18.917-18.918a3.005 3.005 0 014.245-.002l2.828 2.828a3.004 3.004 0 01-.002 4.245L96.99 52.58l-2.122-2.12zm-7.193 2.377l2.244-7.327 7.07 7.07-7.328 2.245c-1.575.482-2.473-.405-1.988-1.988z",fillRule:"nonzero"})))},h=Object.assign;var b=function(e){return s.a.createElement(l.a,h({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M102 30.998A2.996 2.996 0 0098.998 28H50.002A2.996 2.996 0 0047 30.998v58.147l.193-.125c1.453-.94 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.94 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.94 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.94 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.94 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.413-.913 3.363-.94 4.807-.075V30.998zm-1.508 60.542c-.464-.3-1.21-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.21-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.21-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.21-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.21-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.21-.298-1.67 0l-4.316 2.79A1.99 1.99 0 0144 93V30.997C44 27.687 46.68 25 50.002 25h48.996A5.996 5.996 0 01105 30.998v62c0 .45-.147.866-.396 1.2l-4.112-2.658z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M55 39c0-.553.44-1 1-1h19c.553 0 1 .44 1 1v19c0 .553-.44 1-1 1H56c-.553 0-1-.44-1-1V39zm25 .5c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 39.5zm0 9c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 48.5zm0 9c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 57.5zm-25 9c0-.828.677-1.5 1.505-1.5h35.99a1.5 1.5 0 110 3h-35.99A1.5 1.5 0 0155 66.5zm0 9c0-.828.665-1.5 1.505-1.5h24.99a1.5 1.5 0 110 3h-24.99A1.5 1.5 0 0155 75.5z"})))},m=Object.assign;var v=function(e){return s.a.createElement(l.a,m({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M37.273 69.98c.212-3.3 3.063-5.98 6.387-5.98h63.91c3.315 0 6.175 2.673 6.387 5.98l1.285 20.04c.212 3.302-2.302 5.98-5.615 5.98H41.603c-3.313 0-5.827-2.673-5.615-5.98l1.285-20.04zm1.71 20.23C38.88 91.788 40.02 93 41.603 93h68.023c1.58 0 2.722-1.215 2.62-2.79l-1.284-20.037c-.11-1.726-1.657-3.173-3.394-3.173H43.66c-1.74 0-3.282 1.447-3.393 3.173L38.982 90.21zM47 58h58v-3.5a1.5 1.5 0 013 0v5c0 .414-.168.79-.44 1.06a1.49 1.49 0 01-1.06.44h-61a1.49 1.49 0 01-1.06-.44A1.49 1.49 0 0144 59.5v-5a1.5 1.5 0 013 0V58zm50-31H55v28.008h-3V25.992c0-1.1 1.025-1.992 2.283-1.992h43.434c1.26 0 2.283.898 2.283 1.992v29.016h-3V27zM60 87.5c0-.828.668-1.5 1.5-1.5h29c.828 0 1.5.666 1.5 1.5 0 .828-.668 1.5-1.5 1.5h-29c-.828 0-1.5-.666-1.5-1.5zM46 72.01c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm-52 7c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98zm8 0c0-.558.443-1.01 1.01-1.01h1.98c.558 0 1.01.443 1.01 1.01v1.98c0 .558-.443 1.01-1.01 1.01h-1.98c-.558 0-1.01-.443-1.01-1.01v-1.98z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M71 34.5a1.5 1.5 0 011.497-1.5h7.006a1.5 1.5 0 110 3h-7.006A1.495 1.495 0 0171 34.5zm-9 8c0-.828.665-1.5 1.505-1.5h24.99a1.5 1.5 0 110 3h-24.99A1.5 1.5 0 0162 42.5zm0 7c0-.828.67-1.5 1.495-1.5h19.01c.826 0 1.495.666 1.495 1.5 0 .828-.67 1.5-1.495 1.5h-19.01A1.494 1.494 0 0162 49.5z"})))},g=Object.assign;var y=function(e){return s.a.createElement(l.a,g({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M106.807 78h8.19A3.004 3.004 0 00118 74.998V34.002A3 3 0 00114.997 31H61.003A3.004 3.004 0 0058 34.002V36h-3v-1.998A6.004 6.004 0 0161.003 28h53.994A6 6 0 01121 34.002v40.996A6.004 6.004 0 01114.997 81h-5.372l-.375 6.004c-.138 2.207-1.514 2.732-3.074 1.172L99 81h-5v-3h6.243l6.178 6.178.388-6.178zM44.824 95.176c-1.56 1.56-2.936 1.035-3.074-1.172L41.312 87H37a6 6 0 01-6-6.006V45.006A6.01 6.01 0 0137 39h48a6 6 0 016 6.006v35.988A6.01 6.01 0 0185 87H53l-8.176 8.176zm-.245-3.998L51.755 84H85c1.65 0 3-1.35 3-3.006V45.006A3 3 0 0085 42H37c-1.65 0-3 1.35-3 3.006v35.988A3 3 0 0037 84h7.13l.45 7.178z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M94 49h9.494a1.5 1.5 0 110 3H94v-3zm0 9h9.494a1.5 1.5 0 110 3H94v-3zm-50 6.5c0-.828.68-1.5 1.505-1.5h30.99a1.5 1.5 0 110 3h-30.99A1.5 1.5 0 0144 64.5zm0-14.503c0-.55.453-.997.997-.997h6.006c.55 0 .997.453.997.997v6.006c0 .55-.453.997-.997.997h-6.006c-.55 0-.997-.453-.997-.997v-6.006zM44 73.5c0-.828.68-1.5 1.505-1.5h30.99a1.5 1.5 0 110 3h-30.99A1.5 1.5 0 0144 73.5z"})))},O=Object.assign;var j=function(e){return s.a.createElement(l.a,O({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("path",{fill:"#EBEEF5",d:"M62.85 82.335c-.13-.03-.202-.04-.25-.044-.117 0-.31.05-.87.34-7.092 2.65-7.508 2.79-9.903 3.43-.955.26-1.885.46-2.826.63-1.24.23-2.52-.08-3.35-.83-1.12-1.01-1.16-2.58-.02-3.73l.28-.22s.074-.053.204-.19c.265-.26.54-.63.81-1.102.588-1.05 1.025-2.445 1.224-4.246.145-.8-.374-2.14-1.117-2.833-.23-.216-.696-.727-1.487-1.683-3.62-4.37-6.03-12.332-6.03-18.87C39.5 37.19 53.48 23.5 72.446 23.5c19.842 0 32.947 13.235 32.947 29.466 0 21.157-22.76 36.133-42.028 29.488-.182-.04-.473-.11-.515-.12zm-.068-3.038c.233.014.448.05.717.108l.6.14c17.56 6.102 38.29-7.514 38.29-26.58 0-14.58-11.77-26.465-29.95-26.465-17.32 0-29.95 12.36-29.95 26.466 0 5.885 2.203 13.176 5.333 16.96.716.865 1.102 1.287 1.222 1.4 1.432 1.34 2.34 3.65 2.044 5.404-.246 2.172-.8 3.94-1.585 5.338a8.3 8.3 0 01-1.213 1.68c1.02-.175 1.87-.366 2.75-.598 2.25-.596 2.667-.743 9.4-3.245.95-.47 1.596-.653 2.326-.608zm11.554 9.593a1.5 1.5 0 111.919-2.306c5.242 4.364 12.82 5.41 19.8 2.98l.173-.05c.084-.017.372-.085.433-.1.22-.046.39-.074.59-.086.61-.037 1.14.11 1.87.472 4.83 1.793 5.13 1.9 6.73 2.324.57.15 1.12.276 1.68.38-.22-.318-.46-.7-.68-1.153-.58-1.14-.99-2.51-1.173-4.12-.232-1.39.38-2.75 1.537-3.83.12-.11.43-.44.947-1.05 2.1-2.47 3.356-7.15 3.356-11.61 0-4.7-.62-7.39-2.7-10.094a1.5 1.5 0 012.381-1.828c2.56 3.33 3.318 6.62 3.318 11.925 0 5.11-1.433 10.45-4.066 13.555-.59.693-.98 1.107-1.19 1.304-.49.46-.675.873-.623 1.16.16 1.37.47 2.41.894 3.25.324.647.62 1.013.756 1.13 1.162 1.17.883 2.636-.177 3.54-.78.67-1.91 1-2.948.817-.69-.124-1.373-.28-2.073-.46-1.75-.466-2.05-.57-7.08-2.44l-.156-.068c-.344-.173-.42-.195-.414-.195-.142.03-.33.075-.464.105-7.91 2.728-16.56 1.52-22.627-3.533z"}))},w=Object.assign;var C=function(e){return s.a.createElement(l.a,w({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("path",{fill:"#EBEEF5",d:"M46.76 78.71a1.895 1.895 0 00-1.378 2.092c.13.948.94 1.648 1.904 1.635h55.468a1.882 1.882 0 001.884-1.635c.13-.95-.46-1.846-1.367-2.09a8.61 8.61 0 01-6.4-7.872l-2.473-20.928c-.96-7.872-6.567-14.37-14.178-16.435l-.986-.267-.113-1.014c-.24-2.106-2.01-3.696-4.11-3.696s-3.87 1.59-4.104 3.696l-.114 1.014-.98.267c-7.61 2.063-13.22 8.563-14.18 16.43L53.15 70.84c-.2 3.74-2.79 6.926-6.393 7.87zm50.61-29.155l2.482 20.982c.127 2.562 1.817 4.654 4.19 5.276a4.895 4.895 0 013.568 5.397c-.336 2.446-2.434 4.26-4.876 4.227H47.306a4.883 4.883 0 01-4.896-4.227 4.897 4.897 0 013.58-5.4 5.614 5.614 0 004.17-5.168l2.49-21.093c1.068-8.77 7.135-16.06 15.46-18.7.807-3.11 3.615-5.35 6.9-5.35s6.094 2.24 6.9 5.35c8.325 2.64 14.393 9.93 15.46 18.7zm-16.417 38.91c-.288 3.184-3.007 5.36-5.943 5.36-2.936 0-5.655-2.176-5.943-5.36l-2.988.27c.43 4.82 4.52 8.09 8.93 8.09s8.49-3.27 8.93-8.09l-2.99-.27z"}))},k=Object.assign;var x=function(e){return s.a.createElement(l.a,k({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("path",{fill:"#E7EAF1",d:"M39.09 35.994c.05-3.31 2.777-5.994 6.096-5.994h18.562c2.21 0 4.667 1.66 5.487 3.708L70.152 36h34.85A5.997 5.997 0 01111 41.99v40.02c0 3.308-2.69 5.99-6 5.99H45c-3.314 0-6-2.686-6-5.99V41.99c0-.077 0-.153.004-.23l.086-5.766zm2.914 5.81L42 41.99v40.02A2.998 2.998 0 0045 85h60c1.655 0 3-1.342 3-2.99V41.99a2.998 2.998 0 00-3-2.99H68.12l-1.67-4.177C66.085 33.915 64.73 33 63.747 33h-18.56c-1.68 0-3.07 1.368-3.097 3.038l-.086 5.767zM69.89 72.658c-1.56.715-3.105-.395-2.906-2.113l.697-6.032-4.11-4.47c-1.16-1.265-.58-3.076 1.115-3.418l5.952-1.2 2.982-5.29c.843-1.498 2.744-1.507 3.593 0l2.98 5.29 5.955 1.2c1.684.34 2.28 2.145 1.11 3.418l-4.11 4.47.698 6.032c.197 1.708-1.336 2.832-2.908 2.113l-5.52-2.527-5.523 2.53z"}))},S=n(879),E=Object.assign;var R=function(e){return s.a.createElement(l.a,E({width:"150",height:"120",viewBox:"0 0 150 120"},e),s.a.createElement("g",{fill:"none",fillRule:"evenodd"},s.a.createElement("path",{fill:"#EBEEF5",d:"M109.545 78h5.463A2.995 2.995 0 00118 75.01V34.99c0-1.648-1.34-2.99-2.992-2.99H62.992A2.995 2.995 0 0060 34.99v2.027h-3V34.99c0-3.308 2.69-5.99 5.992-5.99h52.016A5.993 5.993 0 01121 34.99v40.02c0 3.308-2.69 5.99-5.992 5.99h-2.744l-.558 5.65c-.217 2.197-1.783 2.842-3.49 1.45l-8.7-7.1h-18.69v-3h19.76l8.29 6.767.67-6.767zM37.33 91.9c-1.942 1.057-3.23.15-2.878-2.027l1.237-7.64A25.886 25.886 0 0130 66c0-14.36 11.637-26 26-26 14.36 0 26 11.637 26 26 0 14.36-11.637 26-26 26-4.627 0-8.973-1.21-12.737-3.327L37.33 91.9zm5.958-6.656l1.447.814A22.878 22.878 0 0056 89c12.705 0 23-10.296 23-23 0-12.705-10.296-23-23-23-12.705 0-23 10.296-23 23a22.894 22.894 0 005.03 14.36l.833 1.04-1.11 6.855 5.535-3.01zm13.108-31.452c2.304 0 4.176.612 5.616 1.908 1.44 1.26 2.16 2.988 2.16 5.148 0 1.764-.468 3.24-1.368 4.392-.324.396-1.332 1.332-3.024 2.808-.684.576-1.188 1.224-1.512 1.872-.396.72-.576 1.512-.576 2.376v.612H53.84v-.612c0-1.332.216-2.484.72-3.42.468-1.008 1.836-2.484 4.068-4.464l.612-.684c.648-.828 1.008-1.692 1.008-2.628 0-1.26-.36-2.232-1.044-2.952-.72-.72-1.764-1.08-3.06-1.08-1.62 0-2.808.504-3.528 1.548-.648.864-.972 2.088-.972 3.672h-3.78c0-2.628.756-4.68 2.268-6.192 1.512-1.548 3.6-2.304 6.264-2.304zm-.648 21.06c.756 0 1.404.216 1.908.72.504.468.756 1.08.756 1.836s-.288 1.368-.792 1.872a2.703 2.703 0 01-1.872.72c-.72 0-1.368-.252-1.872-.756s-.756-1.116-.756-1.836c0-.756.252-1.368.756-1.836.504-.504 1.152-.72 1.872-.72z",fillRule:"nonzero"}),s.a.createElement("path",{fill:"#F7F8FA",d:"M83.23 56h24.275c.818 0 1.495-.672 1.495-1.5 0-.834-.67-1.5-1.495-1.5H81.93a28.845 28.845 0 013.002 11h12.56a1.5 1.5 0 110 3h-12.51a29.422 29.422 0 00-.05-3zM72.285 42h35.22c.826 0 1.495.666 1.495 1.5 0 .828-.677 1.5-1.495 1.5H76a28.945 28.945 0 00-3.715-3z"})))}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.onViewedOnce=t.isViewed=void 0;var o=r(n(206));t.isViewed=function(e){if(!document.body||!document.body.contains(e))return!1;var t=e.getBoundingClientRect(),n=document.documentElement;return t.bottom<(window.innerHeight||n.clientHeight)};var a=function(){};t.onViewedOnce=function(e,n,r){if(t.isViewed(e))return n.call(r,e),a;var i=o.default((function(){t.isViewed(e)&&(n.call(r,e),c())}),250);function c(){window.removeEventListener("scroll",i),window.removeEventListener("resize",i)}return window.addEventListener("scroll",i),window.addEventListener("resize",i),c}},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.onFullyViewedOnce=t.isFullyViewed=void 0;var o=r(n(206)),a=r(n(233));t.isFullyViewed=function(e,t){var n=e.getBoundingClientRect(),r=n.right,o=n.bottom,a=t.getBoundingClientRect(),i=a.right;return o<=a.bottom&&r<=i},t.onFullyViewedOnce=function(e,n,r,i){if(t.isFullyViewed(e,n))return r.call(i,e),a.default;var c=o.default((function(){t.isFullyViewed(e,n)&&(r.call(i,e),s())}),250);n.addEventListener("scroll",c),n.addEventListener("resize",c);var s=function(){n.removeEventListener("scroll",c),n.removeEventListener("resize",c)};return s}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l}));var r=n(1),o=n(841),a=n(30),i=n(78),c=function(e){a.a.trackCardShow(e,{id:7844},{button:{text:"inlinezvideo"}})},s=function(e,t,n){var r;a.a.trackEvent(e.target,{id:7846,action:"OpenUrl"},{button:{text:"inlinezvideo"}}),null==t||null===(r=t.onImageClick)||void 0===r||r.call(t,e,n)},l=function(e,t,n){var r;a.a.trackEvent(e.target,{id:7846,action:"OpenUrl"},{button:{text:"inlinezvideo"}}),null==t||null===(r=t.onImageClick)||void 0===r||r.call(t,e,n)};t.a=function(e,t,n){var a=e["data-text"],u=e.href,d=e.zvideoLinkCardProps;Object(r.useEffect)((function(){n&&Object(o.onViewedOnce)(t.current,(function(){return c(t.current)}))}),[n,t]);var f=Object(i.c)((function(e){s(e,{title:a,url:u,video:{}})})),p=Object(i.c)((function(e){l(e,d,{title:a,url:u})}));return n?{handleImageClick:f,handleInfoClick:p}:{}}},function(e,t,n){"use strict";var r=n(1),o=n(5);function a(e){var t=e.className,n=e.children,a=e.onEvent,i=Object(r.useCallback)((function(e){a(e)||e.stopPropagation()}),[a]);return Object(o.g)("div",{className:t,onBeforeInput:i,onBlur:i,onCompositionEnd:i,onCompositionStart:i,onCopy:i,onCut:i,onDragEnd:i,onDragEnter:i,onDragLeave:i,onDragOver:i,onDragStart:i,onDrop:i,onFocus:i,onInput:i,onKeyDown:i,onKeyPress:i,onKeyUp:i,onMouseUp:i,onPaste:i,onSelect:i,onClick:i},n)}a.defaultProps={onEvent:function(){return!1}},t.a=a},function(e,t,n){"use strict";var r=n(1),o=n(78);t.a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n.rootMargin,i=n.threshold,c=n.once,s=void 0===c||c;e=Array.isArray(e)?e:e?[e]:[];var l=Object(r.useRef)(null),u=Object(o.c)(t);Object(r.useEffect)((function(){if(e.length)return l.current&&e.forEach((function(e){return l.current.unobserve(e)})),l.current=new IntersectionObserver((function(e){e.forEach((function(e){e.intersectionRatio>0&&(u(e),s&&l.current.unobserve(e.target))}))}),{rootMargin:a,threshold:i}),e.forEach((function(e){return l.current.observe(e)})),function(){e.forEach((function(e){return l.current.unobserve(e)}))}}),[e,a,JSON.stringify(i),s])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return k}));var r=n(33),o=n.n(r),a=n(41),i=n.n(a),c=n(1),s=n.n(c),l=n(11),u=n.n(l),d=n(5),f=function(e){var t=e.className,n=e.title,r=e.options,a=e.children,c=i()(e,["className","title","options","children"]);return Object(d.g)("div",o()({className:u()("List",t)},c),(n||r)&&Object(d.g)("div",{className:"List-header"},Object(d.g)("h4",{className:"List-headerText"},n),Object(d.g)("div",{className:"List-headerOptions"},r)),a)},p=n(20),h=n.n(p),b=n(21),m=n.n(b),v=n(22),g=n.n(v),y=n(23),O=n.n(y),j=n(13),w=n.n(j);function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w()(e);if(t){var o=w()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O()(this,n)}}var k=function(e){g()(n,e);var t=C(n);function n(){return h()(this,n),t.apply(this,arguments)}return m()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.tabIndex,r=e.meta,o=e.children,a=e.onRef;return Object(d.g)("div",{className:u()("List-item",t),tabIndex:n,ref:a},r&&Object(d.g)("div",{className:"List-itemMeta"},r),o)}}]),n}(s.a.Component);n(989)},function(e,t,n){"use strict";var r=n(55),o=n.n(r),a=n(1),i=n(112);var c="function"==typeof Image,s={},l=c?i((function(e){return new Promise((function(t){return n=e,r=function(e,n){s[e]=n,t(n)},(o=new Image).onload=function(){var e=o.width>0&&o.height>0;r(n,e)},o.onerror=function(){r(n,!1)},void(o.src="data:image/webp;base64,"+{lossy:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",lossless:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==",alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",animation:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[n]);var n,r,o}))})):function(){return Promise.resolve(!1)};t.a=function(e){var t=s[e],n=Object(a.useState)(t),r=o()(n,2),i=r[0],u=r[1];return c&&void 0===t&&l(e).then(u),i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={TAB:9,ESCAPE:27,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(35),o=n(2),a=n(11),i=n.n(a),c=n(177),s=n(903);function l(e){var t=e.className,n=e.user,a=void 0===n?{}:n,l=e.avatarProps,u=void 0===l?{}:l,d=Object(r.a)(e,["className","user","avatarProps"]),f=a.name,p=a.avatarUrl;return Object(o.b)("span",{className:i()("UserLink",t),children:Object(o.b)(s.a,Object.assign({},d,{user:a,children:Object(o.b)(c.a,Object.assign({className:"UserLink-avatar",url:p,alt:f},u))}))})}},function(e,t,n){e.exports=n(58)(202)},function(e,t,n){"use strict";var r=n(1032),o=n(1033);e.exports=function(e,t){var n=t.getStartKey(),a=t.getStartOffset(),i=t.getEndKey(),c=t.getEndOffset(),s=o(e,t).getBlockMap(),l=s.keySeq(),u=l.indexOf(n),d=l.indexOf(i)+1;return r(s.slice(u,d).map((function(e,t){var r=e.getText(),o=e.getCharacterList();return n===i?e.merge({text:r.slice(a,c),characterList:o.slice(a,c)}):t===n?e.merge({text:r.slice(a),characterList:o.slice(a)}):t===i?e.merge({text:r.slice(0,c),characterList:o.slice(0,c)}):e})))}},function(e,t,n){"use strict";var r=n(91)||function(e){for(var t=1;t0&&c(e)}}),[y]),a}},m=b({idAttr:"data-ad-id",selector:"a[data-ad-id]",targetClassName:"RichText-ADLinkCardContainer",component:n(1e3).a}),v=n(30),g=n(232),y=n(7),O=n(873),j=n(387),w=n.n(j),C=n(11),k=n.n(C),x=n(369),S=n.n(x),E=n(152),R=n(365);function T(){var e=w()(["","的文章"]);return T=function(){return e},e}var A=function(e){var t=e.authorName,n=e.voteupCount;return Object(h.g)(u.a.Fragment,null,S()(T(),t),n>=100&&" · ".concat(Object(R.cnNiceNumber)(n),"赞同"))};function N(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,a=e.excerptText,i=e.imgUrlSrc,c=e.voteupCount,s=e.commentCount;return Object(h.g)("div",{className:"ArticleLinkCard",ref:t},Object(h.g)("span",{className:"ArticleLinkCard-title"},o),Boolean(a)&&Object(h.g)("div",{className:"ArticleLinkCard-excerpt"},a),i&&Object(h.g)("div",{className:"ArticleLinkCard-imageWrapper"},Object(h.g)("img",{src:Object(E.imgUrl)(i,"540x300"),className:"ArticleLinkCard-image",alt:""})),Object(h.g)("div",{className:"ArticleLinkCard-bottom"},Object(h.g)("span",{className:"ArticleLinkCard-hint"},"".concat(Object(R.cnNiceNumber)(c),"赞同 · ").concat(Object(R.cnNiceNumber)(s),"评论")),n&&Object(h.g)("span",{onClick:r,className:"ArticleLinkCard-hybridLink"},"查看完整文章")),Object(h.g)("div",{className:"ArticleLinkCard-bottomCardGradient"}))}function _(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,a=e.content,i=e.imgUrlSrc,c=e.voteupCount,s=e.authorName,l=e.avatarUrl;return Object(h.g)("div",{className:"ArticleLinkCard AvatarArticleLinkCard",ref:t},Object(h.g)("div",{className:"AvatarArticleLinkCard-info"},Object(h.g)("div",{className:"AvatarArticleLinkCard-hint"},l&&Object(h.g)("img",{className:"AvatarArticleLinkCard-avatar",src:l,alt:""}),Object(h.g)(A,{authorName:s,voteupCount:c})),n&&Object(h.g)("span",{onClick:r,className:"AvatarArticleLinkCard-hybridLink"},"查看全文")),Object(h.g)("span",{className:"ArticleLinkCard-title"},o),Object(h.g)("div",{className:k()("ArticleLinkCard-content",{"ArticleLinkCard-content--noImg":!i})},Object(h.g)("div",{dangerouslySetInnerHTML:{__html:a}})),!i&&Object(h.g)("span",{className:"AvatarArticleLinkCard-more"},"更多内容"),i&&Object(h.g)("img",{className:"AvatarArticleLinkCard-image",src:i,alt:""}))}function I(e){var t=e.cardRef,n=e.useOpenArticleButton,r=e.handleClickLink,o=e.title,a=e.content,i=e.imgUrlSrc,c=e.voteupCount,s=e.authorName;return Object(h.g)("div",{className:"ArticleLinkCard QuoteArticleLinkCard",ref:t},Object(h.g)("span",{className:"ArticleLinkCard-title"},o),Object(h.g)("div",{className:"QuoteArticleLinkCard-hint"},Object(h.g)(A,{authorName:s,voteupCount:c})),Object(h.g)("div",{className:k()("ArticleLinkCard-content QuoteArticleLinkCard-content",{"ArticleLinkCard-content--noImg":!i})},Object(h.g)("div",{dangerouslySetInnerHTML:{__html:a}})),!i&&n&&Object(h.g)("div",{onClick:r,className:"QuoteArticleLinkCard-hybridLink"},"查看全文"),i&&Object(h.g)("img",{className:"QuoteArticleLinkCard-image",src:i,alt:""}))}function M(e){var t=e.article,n=t.title,r=t.excerpt,o=t.content,a=t.imageUrl,i=t.voteupCount,c=t.commentCount,s=t.author,u=void 0===s?{}:s,d=e.styleAbParam,f=e.cardRef,p=e.useOpenArticleButton,b=e.handleClickLink,m=Object(l.useMemo)((function(){var e=document.createElement("div");return e.innerHTML=r,e.textContent}),[r]),v=u.name,g=u.avatarUrl;return"1"===d?Object(h.g)(_,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,content:o,imgUrlSrc:a,voteupCount:i,authorName:v,avatarUrl:g}):"2"===d?Object(h.g)(I,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,content:o,imgUrlSrc:a,voteupCount:i,authorName:v}):Object(h.g)(N,{cardRef:f,useOpenArticleButton:p,handleClickLink:b,title:n,excerptText:m,imgUrlSrc:a,voteupCount:i,commentCount:c})}var L=function(e){var t=e.article.id,n=e.article,r=e.useOpenArticleButton,o=e.enableZa,a=e.styleAbParam,i=Object(l.useRef)(null);Object(l.useEffect)((function(){o&&(v.a.setModule(i.current,{module:"Content"},{card:{content:{type:"Post",token:String(t)}}}),v.a.trackCardShow(i.current,{id:8589,element:"Card"}))}),[o,t]);var c="https://zhuanlan.zhihu.com/p/".concat(t),s=Object(l.useCallback)((function(){o&&v.a.trackEvent(i.current,{id:8590,action:"OpenUrl",element:"Card"})}),[o]);return Object(h.g)(g.c,{as:"a",shouldTrackShow:!0,shouldTrackClick:!0,zaBlock:"ZTextArticleLinkCard",zaAction:"OpenUrl",zaType:"Button",zaEventType:"Click",extra:{link:{url:c}},href:c,"data-za-not-track-link":!0,onClick:s,rel:"noopener noreferrer",target:"_blank"},Object(h.g)(M,{styleAbParam:a,cardRef:i,useOpenArticleButton:r,linkUrl:c,handleClickLink:s,article:n}))},P=b({cardDataFilter:function(e){return Array.from(e.getElementsByTagName("a")).map((function(e){var t,n=e.getAttribute("href"),r="link-card"===e.getAttribute("data-draft-type"),o="normal"===e.getAttribute("data-size");if(!n||!r||!o)return null;var a=null===(t=n.match(/https:\/\/zhuanlan.zhihu.com\/p\/(\d+)$/))||void 0===t?void 0:t[1];if(a){var i=document.createElement("div");return i.className="RichText-ArticleLinkCardContainer",e.parentNode.replaceChild(i,e),{data:{id:a},target:i}}return null})).filter(Boolean)},component:function(e){var t=e.id,n=e.useOpenArticleButton,r=e.enableZa,a=e.styleAbParam,c=s()(e,["id","useOpenArticleButton","enableZa","styleAbParam"]),u=Object(l.useState)(null),d=o()(u,2),f=d[0],p=d[1],b=Object(l.useState)(null),m=o()(b,2),v=m[0],g=m[1],j=a&&["1","2"].includes(a)?"1":"0";return Object(l.useEffect)((function(){var e="https://www.zhihu.com/api/v4/articles/".concat(t,"?is_article_card=").concat(j);Object(O.a)(e).then((function(e){return Object(y.camelizeKeys)(e)})).then((function(e){e.error?g(e.error.message):p(e)})).catch((function(e){g(e.message||"未知错误")}))}),[t,j]),v?Object(h.g)("div",{className:"ArticleLinkCard-error"},v):f?Object(h.g)(L,i()({article:f,useOpenArticleButton:n,enableZa:r,styleAbParam:a},c)):Object(h.g)("div",{className:"ArticleLinkCard-loading"},"加载中...")}}),B=n(912),z=b({idAttr:"data-mcn-id",selector:"a[data-mcn-id]",targetClassName:"RichText-MCNLinkCardContainer",component:B.c}),D=n(914),F=b({cardDataFilter:function(e){return Array.from(e.querySelectorAll("a.LinkCard[data-draft-type=link-card]")).map((function(e){var t,n=(t=e.attributes,Array.from(t).reduce((function(e,t){return"class"===t.name?e.className=t.value:e[t.name]=t.value,e}),{})),r=document.createElement("div");return r.className="RichText-LinkCardContainer",e.parentNode.replaceChild(r,e),{data:n,target:r}}))},getCardProps:function(e){return e.href&&e.href.match(/https:\/\/www.zhihu.com\/zvideo\/(\d+)$/)?e.zaBlock="ZTextZVideoLinkCard":e.zaBlock="ZTextLinkCard",e},component:D.a}),U=n(841),V=function(e){var t=Object(y.camelizeKeys)(e),n=t.resourceName,r=t.button,o=r.url,a=r.text,i=t.title,c=t.cover,s=t.price,l=t.source,u=void 0===l?"知乎":l;return{url:o,buttonText:a,title:i,imgUrl:c,price:s,authorText:t.desc,heatText:t.footer,producer:n,source:u}},q=b({idAttr:"data-sku-id",selector:"a[data-sku-id]",targetClassName:"RichText-MkSkuLinkCardContainer",component:function(e){var t=e.onClick,n=Object(l.useRef)(!1);return Object(h.g)(B.c,i()({processResponse:V,getUrl:function(e){return"https://www.zhihu.com/api/v4/market/km_sku_card/".concat(e)},fetcherOptions:{credentials:"same-origin"},onClick:function(e){v.a.trackEvent(e.target,{id:7204,action:"OpenUrl"}),t&&t(e)},disableZa:!0,ref:function(t){t&&!t.classList.contains("MCNLinkCard-placeholder")&&!1===n.current&&(v.a.setModule(t,{module:"Content"},{card:{content:{id:e.id}}}),Object(U.onViewedOnce)(t,(function(){v.a.trackCardShow(t,{id:7203})})),n.current=!0)},zaBlock:"ZTextMkSKuLinkCard"},e))}}),H=n(78),K=function(e){return{elementLocation:{type:"Button",content:{type:e.dataset.zaContentType}}}},Q=function(e){return{attachedInfoBytes:e.dataset.zaAttachInfo}},W=[{selector:"a.external, a.internal",zaBlock:"ZTextLink"},{selector:"a.member_mention, a.UserLink-link",zaBlock:"ZTextMention"},{selector:"a.video-box",zaBlock:"ZTextVideoCard"},{selector:'a.LinkCard.old[data-draft-type="link-card"]',zaBlock:"ZTextLinkCard"},{selector:'a.LinkCard.new.static[data-draft-type="link-card"]:not([data-za-content-type="Zvideo"])',zaBlock:"ZTextLinkCard",viewInfoBuilder:K,extraInfoBuilder:Q},{selector:'a.LinkCard.new.static[data-draft-type="link-card"][data-za-content-type="Zvideo"]',zaBlock:"ZTextZVideoLinkCard",viewInfoBuilder:K,extraInfoBuilder:Q},{selector:"a.FileLinkCard",zaBlock:"ZTextFileLinkCard"}],G=function(e){var t,n,r=e.element,o=e.config,a=null===(t=o.viewInfoBuilder)||void 0===t?void 0:t.call(o,r,o),i=Object.assign({elementLocation:{type:"Button"},block:o.zaBlock},a),c=Object.assign({action:"OpenUrl",elementLocation:{type:"Button"},block:o.zaBlock,eventType:"Click"},a),s=Object.assign({link:{url:r.href}},null===(n=o.extraInfoBuilder)||void 0===n?void 0:n.call(o,r,o)),u=Object(g.i)().trackEvent,d=Object(g.h)(i,s),f=Object(H.c)((function(e){u(c,s),"ZTextLinkCard"===o.zaBlock&&r.dataset.isEcommerce&&e.preventDefault()}));return Object(l.useEffect)((function(){return r.addEventListener("click",f),function(){r.removeEventListener("click",f)}}),[]),Object(l.useEffect)((function(){return d(r),function(){return d(null)}}),[]),null},Y=function(e){var t=e.root,n=Object(l.useState)([]),r=o()(n,2),a=r[0],i=r[1];return Object(l.useEffect)((function(){if(t){var e=[];W.forEach((function(n){var r=n.selector;Array.from(t.querySelectorAll(r)).forEach((function(t){e.push({el:t,config:n})}))})),i(e)}}),[t]),Object(h.g)(u.a.Fragment,null,a.map((function(e,t){var n=e.el,r=e.config;return Object(h.g)(G,{key:t,element:n,config:r})})))},Z=b({cardDataFilter:function(e){return Array.from(e.getElementsByTagName("a")).map((function(e){var t,n=e.getAttribute("href"),r="link-card"===e.getAttribute("data-draft-type");if(!n||!r)return null;var o=null===(t=n.match(/https:\/\/www.zhihu.com\/zvideo\/(\d+)$/))||void 0===t?void 0:t[1];if(o){var a=document.createElement("div");return a.className="RichText-ZVideoLinkCardContainer",e.parentNode.replaceChild(a,e),{data:{id:o},target:a}}return null})).filter(Boolean)},component:n(978).a}),X=n(90),J=n(909);var $={name:"1wtde8n",styles:"font-size:12px;overflow:hidden;"},ee=function(e){var t=e.contentHTML,n=Object(l.useState)(!0),r=o()(n,2),a=r[0],i=r[1],c=Object(H.c)((function(){i(!a)}));return Object(h.g)(g.b,{block:"ZTextCatalog"},Object(h.g)(g.e,{as:X.Flex,zaType:"Block",className:"Catalog-content",flexDirection:"column",css:$,style:{height:a?"84px":"auto"},dangerouslySetInnerHTML:{__html:t}}),Object(h.g)(g.a,{as:J.a,zaType:"Button",zaAction:a?"Expand":"Collapse",isFold:a,onClick:c}))},te=function(e){var t=e.root,n=Object(l.useState)(null),r=o()(n,2),a=r[0],i=r[1];return Object(l.useEffect)((function(){if(t){var e=t.querySelector(".Catalog-wrapper");if(e&&e.querySelector(".bottom-shadow")){var n=e.querySelector(".Catalog-content").innerHTML,r=document.createElement("div");r.className="Catalog-wrapper",e.parentNode.replaceChild(r,e),i(Object(p.createPortal)(Object(h.g)(ee,{contentHTML:n}),r))}}}),[t]),a}},function(e,t,n){"use strict";n.d(t,"h",(function(){return m})),n.d(t,"d",(function(){return x})),n.d(t,"a",(function(){return y})),n.d(t,"f",(function(){return C})),n.d(t,"b",(function(){return O})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return k}));n(55);var r=n(1),o=n(39),a=n(44),i=n.n(a),c=n(318),s=n.n(c),l=n(30),u=(n(63),n(7),n(391)),d=n.n(u),f=(n(869),n(941)),p=n(844);function h(e){return"string"!=typeof e?e:e.replace(/__TS__/g,(function(){return parseInt(Date.now()/1e3)}))}function b(e){return e instanceof r.Component?Object(o.findDOMNode)(e):e}function m(e,t,n,r){"cardShow"===e?l.a.trackCardShow(b(t),n,r):"trackEvent"===e&&l.a.trackEvent(b(t),n,r)}n.d(t,"g",(function(){return p.y}));function v(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p.x;if(!e)return new Promise((function(e){return e()}));var r=e,o=/^https?:\/\/[\w-.]+(:\d+)?/i.exec(e),a=o&&o[0];return a&&a.match("sugar.zhihu.com")&&(r=Object(p.a)(r,{ets:(new Date).getTime()})),n(r=h(r),r.indexOf("sugar.zhihu.com")>-1&&t?{fl:t}:void 0)}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.type,r=void 0===n?"":n,o=t.payload,a=void 0===o?{}:o;if(r===f.a.TopicClick){var i=a.url;return"".concat(e,"&etu=").concat(btoa(unescape(encodeURIComponent(i))))}if(r===f.a.ExtendClick&&0===e.indexOf("https://sugar.zhihu.com"))try{var c=e.slice(),l=parseInt(Date.now()/1e3),u="".concat(s()(c).pathname,"+").concat(l),p=d()(u),h=a.clickEvent,b=void 0===h?{}:h,m=b.clientX,v=b.clientY,g=b.currentTarget,y=g.getBoundingClientRect(),O=y.width,j=y.height,w=y.left,C=y.top,k=m-w,x=v-C,S="".concat(parseInt(k),"x").concat(parseInt(x),"x").concat(parseInt(O),"x").concat(parseInt(j));return"".concat(c,"&ev=").concat(S,"&emfen=").concat(p,"&emfts=").concat(l)}catch(t){return e}return e}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{var o;e&&"function"==typeof e.trackMethod&&(o=e.trackMethod,e=e.tracks);var a=e.filter(Boolean).map((function(e){var a="".concat(e).concat(n?"&et=".concat(n):"");return v(a=g(a,r),t,o)})),i=Promise.all(a).catch((function(){return null}));return Promise.race([i,new Promise((function(e){return setTimeout(e,500)}))])}catch(e){console.error("clickTrack: ",e)}}function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.filter(Boolean).map((function(e){return v(e)})),n=Promise.all(t).catch((function(){return null}));return Promise.race([n,new Promise((function(e){return setTimeout(e,500)}))])}function j(e,t){e&&e.length&&e.map((function(e){return Object(p.x)(e,{et:t?"page_adjson":"page_ads"})}))}function w(e,t){e&&e.length&&e.map((function(e){return v(e,t)}))}function C(e,t,n,r){var o;t&&"function"==typeof t.trackMethod&&(o=t.trackMethod,t=t.tracks),t&&t.length&&Object(p.r)(e,(function(){t.map((function(e){return Promise.race([v(e,n,o),new Promise((function(e,t){return setTimeout(t,5e3)}))]).then((function(){return{status:200}})).catch((function(){return{status:600}})).then((function(t){return{et:"third_imp",ev:t.status||601,etu:btoa(unescape(encodeURIComponent(e))),plugin:Object(p.j)()}})).then((function(e){if(e){var t=i.a.stringify(e);(r||[]).map((function(e){return e?Object(p.u)(t?"".concat(e).concat(e.includes("?")?"&":"?").concat(t):e):null}))}}))}))}))}function k(e,t){t&&t.length&&Object(p.q)(e,(function(){t.map((function(e){return v("".concat(e))}))}))}function x(e,t){var n=t.impressionTracks,r=t.debugTracks,o=t.viewTracks,a=t.viewXTracks,i=t.xAppFlavor;w(n,i),C(e,o,i,r),k(e,a)}},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(66),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n(19),f=n(27),p=n(377),h=n(857),b=n(1009),m=n(30),v=n(887),g=n(25),y=n(216),O=n(366),j=n(320),w=n.n(j),C=function(e,t){return e+(t?Date.now()-t:0)},k=function(e,t){return Math.abs(e-t)<.01},x={auto:"Auto",ld:"LD",sd:"SD",hd:"HD"},S={auto:"自动",ld:"低清",sd:"标清",hd:"超清"},E=[1,2,3,5,8,13];function R(e){var t,n="sd",r=0,o=null,a=0,i=null,c=!1,s=0,l=0;function u(t,c){e(t,Object.assign({play_event_identifier:o,duration:1e3*r,elapsed:C(a,i),video_quality:x[n]},c))}function d(){(++l<15?E.includes(l):l%15==0)&&u({action:"Playing"})}function f(){clearInterval(t)}return{handlePlayEvent:function(e){var n=e.currentTime,c=e.duration;r=c,k(n,0)&&(o=w()(),a=0),i=Date.now(),k(n,0)?u({action:"Play"}):u({action:"ResumePlay"}),l=0,f(),t=setInterval(d,1e3)},handlePauseEvent:function(e){var t=e.currentTime,n=e.duration;i&&(a+=Date.now()-i,i=null),k(t,n)?u({action:"EndPlay"}):u({action:"Pause"}),f()},handleQualityChangeEvent:function(e){var t=e.quality;u({action:"Switch",name:S[t]}),n=t},handleFragmentLoading:function(){c||(s=Date.now())},handleFragmentLoaded:function(){c||(c=!0,u({action:"Load"},{video_load_time:Date.now()-s}))},clearTick:f}}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var A=function(e){Object(i.a)(n,e);var t=T(n);function n(e){var o;Object(r.a)(this,n),(o=t.call(this,e)).pauseVideoInIframe=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];o.messageHelper.dispatchMessage(e.contentWindow,v.a.PLAYER.PAUSE,{dontApplyOnFullScreen:t})},o.pauseAllOtherVideos=function(){Array.from(document.querySelectorAll("iframe")).filter((function(e){return e!==o.iframe})).forEach((function(e){return o.pauseVideoInIframe(e)}))},o.handleMessage=function(e,t){var n=o.videoTracker,r=n.handlePlayEvent,a=n.handlePauseEvent,i=n.handleQualityChangeEvent,c=n.handleFragmentLoading,s=n.handleFragmentLoaded;switch(e){case v.b.DOM.PLAY:o.pauseAllOtherVideos(),r(t);break;case v.b.DOM.PAUSE:a(t);break;case v.b.PLAYER.QUALITY_CHANGE:i(t);break;case"fragment-loading":c(t);break;case"fragment-loaded":s(t)}},o.handleObserve=function(e){e[0].intersectionRatio<=0&&o.iframe&&o.pauseVideoInIframe(o.iframe,!0)},o.handlePlay=function(){o.props.trackEvent(Object(a.a)(o),{id:5500,action:"Play",element:"Video"})},o.handlePlayFailed=function(){(0,o.props.showNotification)("视频加载失败,请刷新页面重试","red")};var i=e.data;return o.messageHelper=Object(v.c)(i.id,"*",!0),o.videoTracker=R((function(e,t){m.a.trackEvent(Object(a.a)(o),e,{play:t})})),o}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.data,n=t.isLens,r=t.id,o=t.playerUrl,a=t.flvPlayerUrl,i=e.loadVideo;n||!r||o||a||i(r);var c=this.messageHelper.subscribeMessage;this.messageSubscription=c(this.handleMessage)}},{key:"componentWillUnmount",value:function(){this.messageSubscription.unsubscribe(),this.videoTracker.clearTick()}},{key:"render",value:function(){var e=this,t=this.props,n=t.data,r=t.data.error,o=t.onBeforePlay;return Object(l.b)("div",{className:"RichText-video",children:r?Object(l.b)(b.a,Object.assign({},n)):Object(l.b)(p.a,{onObserve:this.handleObserve,children:Object(l.b)(h.b,Object.assign({},n,{onIframeRef:function(t){return e.iframe=t},onPlay:this.handlePlay,onPlayFailed:this.handlePlayFailed,onBeforePlay:o}))})})}}]),n}(u.Component);t.a=Object(d.compose)(Object(f.connect)((function(e,t){var n=t.data,r=n.isLens,o=n.id;return r?{data:Object.assign({},t.data,{source:"lens",playerUrl:"https://www.zhihu.com/video/".concat(o)})}:{data:e.video.data[o]||t.data}}),{showNotification:g.h,loadVideo:y.c}),Object(O.b)((function(e){var t=e.data,n=t.isLens,r=t.id,o=t.isPlayable;return{module:"VideoItem",content:{type:"Video",sub_type:n?"SelfHosted":"Embedded",video_id:r,is_playable:Boolean(o)},trackCardShow:!0,view:{id:174}}})))(A)},function(e,t,n){var r,o,a;o=[t],void 0===(a="function"==typeof(r=function(e){"use strict";function t(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t1&&i(e,t[0],t[1])?t=[]:n>2&&i(t[0],t[1],t[2])&&(t=[t[0]]),o(e,r(t,1),[])}));e.exports=c},,function(e,t){function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}e.exports=n,e.exports.default=n},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return i})),n.d(t,"d",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"h",(function(){return l})),n.d(t,"f",(function(){return u})),n.d(t,"a",(function(){return f}));var r=n(863),o={ready:"立即下载",downloading:"下载中...",pause:"继续下载",completed:"立即安装",error:"立即下载"},a="立即打开",i={brand_card_image:"normal",plutus_card_image:"normal",plutus_card_image_download:"largeDownloadAd",plutus_card_video:"video",plutus_card_video_download:"videoDownload",plutus_card_window:"windowAd",sdk_card_image:"sdkAd",plutus_card_slide_image:"normal",plutus_card_slide_image_download:"normalDownload",plutus_card_word_105:"word",plutus_card_word_105_download:"wordDownload",plutus_card_small_image_105:"smallImage",plutus_card_small_image_105_download:"smallImageDownload",plutus_card_multi_images_105:"multiple",plutus_card_multi_images_105_download:"multipleDownload"},c={bbi_105:"normal",pbi_105:"normal",pii_105:"normal",pii_105_d:"normalDownload",pbi_105_d:"largeDownloadAd",pv_105:"video",bv_105_o:"videoWithDeeplink",bv_105_i:"videoFullscreen",pv_105_d:"videoDownload",ps_105:"windowAd",sbi_105:"sdkAd",pw_105_d:"wordDownload",pw_105:"word",psi_105:"smallImage",psi_105_d:"smallImageDownload",pmi_105:"multiple",pmi_105_d:"multipleDownload",pw_417_d:"wordDownload",pw_417:"word",psi_417:"smallImage",psi_417_d:"smallImageDownload",pw_419_d:"wordDownload",pw_419:"word",psi_419:"smallImage",psi_419_d:"smallImageDownload"},s={bsi_20:"single",bmi_20:"multiple",pw_20:"word",bw_20:"word",pw_20_d:"wordDownload",psi_20:"single",psi_20_d:"singleDownload",bsi_20_pu:"singlePu",pmi_20:"multiple",pmi_20_d:"multipleDownload",sci_20:"single",bsi_118:"single",bmi_118:"multiple"},l={bsi_208:"small",bmi_208:"multiple"},u=n.n(r)()({psi_19:"single",psi_19_d:"singleDownload",bsi_19:"single",psi_219:"small",psi_219_d:"small",pmi_219:"multiple",pmi_219_d:"multiple",pbi_m:"large",pbi_m_d:"large",psi_m:"small",psi_m_d:"small",pw_m:"word",pw_m_d:"word"},s),d="https://www.zhihu.com",f=("".concat(d,"/m_banner.html"),"".concat(d,"/m_banner2.html"),"".concat(d,"/natsume/maozhua_m_banner.html"),"".concat(d,"/natsume/ruoying_m_banner.html"),"".concat(d,"/m_related_feed.html"),"".concat(d,"/natsume/ruoying_related_feed.html"),"".concat(d,"/m_hot_feed.html"),{ExtendClick:"ExtendClick",TopicClick:"TopicClick"});new Set(["click_con","click_win","click_upvote","click_downvote"]),new Set(["click_topic","click_hot1","click_hot2","click_hot3"])},function(e,t,n){"use strict";var r=n(74),o=n.n(r),a=n(20),i=n.n(a),c=n(21),s=n.n(c),l=n(92),u=n.n(l),d=n(22),f=n.n(d),p=n(23),h=n.n(p),b=n(13),m=n.n(b),v=n(3),g=n.n(v),y=n(1),O=n.n(y),j=n(39),w=n(64),C=n.n(w),k=n(384),x=n.n(k),S=n(30),E=n(71),R=n.n(E);var T=function(e,t){return function(n){var r=t(n);return R()(r,n),r.displayName="".concat(e,"(").concat(function(e){return e.displayName||e.name||"Component"}(n),")"),r}};function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _=C()((function(){var e=new IntersectionObserver((function(t){t.forEach((function(t){if(0!==t.intersectionRatio){var n=t.target;e.unobserve(n),n.handleChange&&(n.handleChange(),n.handleChange=null)}}))}),{threshold:[.1]});return e})),I=function(e,t,n,r){return T("track",(function(o){return function(a){f()(l,a);var c=A(l);function l(){var e;i()(this,l);for(var t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:o.HYBRID_ACTION_EVENT.commonAd;return new Promise((function(n){r.a.ready().then((function(){r.a.supportsAction(t).then((function(o){o?r.a.dispatch(t,e).then((function(e){e&&!1===e.status?n({status:!1,type:2,data:e}):n({status:!0,type:2,data:e})}),(function(e){return n({status:!1,type:2,data:e})})):n({status:!1,type:1})}))})).catch((function(e){return n({status:!1,type:0,data:e})}))}))}function i(e,t){return new Promise((function(n,r){a(t,e).then((function(e){return e.status?n(e):r(e)}))}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return O})),n.d(t,"b",(function(){return j}));var r=n(33),o=n.n(r),a=n(20),i=n.n(a),c=n(21),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(22),h=n.n(p),b=n(1),m=n.n(b),v=n(7),g=n(844),y=n(869),O=function(e){function t(e){var n;return i()(this,t),(n=u()(this,f()(t).call(this,e))).state={hasError:!1},n}return h()(t,e),s()(t,[{key:"componentDidCatch",value:function(e,t){this.handleError(e,t)}},{key:"unstable_handleError",value:function(e,t){this.handleError(e,t)}},{key:"handleError",value:function(e,t){this.setState({hasError:!0}),console.error(e),t&&console.error(t),Object(y.sendRaven)({adjson:Object(g.e)(this.props,"children.props"),error:e,info:t})}},{key:"render",value:function(){return this.state.hasError?null:this.props.children}}]),t}(m.a.Component),j=function(e){return function(t){return t.data?m.a.createElement(O,null,m.a.createElement(e,o()({},t,{data:Object(v.camelizeKeys)(t.data)}))):null}}},function(e,t,n){"use strict";var r=n(27),o=n(53);t.a=function(){return Object(r.useSelector)(o.e)}},function(e,t,n){var r=n(1080),o=n(907),a=n(1081);e.exports=function(e){return o(e)?a(e):r(e)}},function(e,t,n){"use strict";function r(e){var t=String(e);return t.length<2&&(t="0"+t),t}function o(e){if(!isFinite(e))return"";var t=(e=Math.floor(e))%60,n=Math.floor(e/60);return"".concat(r(n),":").concat(r(t))}n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"b",(function(){return i})),n.d(t,"f",(function(){return c})),n.d(t,"g",(function(){return s})),n.d(t,"a",(function(){return l}));var r=5,o=40,a=60,i=300,c=6,s=[{value:"original",label:"原创"},{value:"reprint",label:"转载"}],l="https://pic2.zhimg.com/v2-feb96045745dac939aa2a900c6d6845d.jpg"},function(e,t,n){var r=n(1027)();e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(11),d=n.n(u);function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var p=function(e){Object(a.a)(n,e);var t=f(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.children;return Object(s.b)("div",{className:d()("Badge",t),children:n})}}]),n}(l.Component),h=n(232),b=n(1170),m=n(24);function v(e){return Object(s.b)(h.a,Object.assign({as:"a",href:m.F,target:"_blank",rel:"noopener noreferrer",zaBlock:"VipBadge",zaType:"Button",zaEventType:"Click",zaAction:"OpenUrl",extra:{link:{url:m.F}}},e,{children:Object(s.b)(b.a,{css:{height:"1em",width:"1em","&:hover":{cursor:"pointer"}},center:!0})}))}var g=Object(l.memo)(v);t.b=p},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(66),i=n(16),c=n(17),s=n(9),l=n(2),u=n(3),d=n.n(u),f=n(1),p=n(34),h=n(31),b=n(957),m=n(24);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var g=function(e){Object(i.a)(n,e);var t=v(n);function n(){var e;return Object(r.a)(this,n),(e=t.call(this)).state={expanded:!1},e.onExpand=e.handleExpand.bind(Object(a.a)(e)),e}return Object(o.a)(n,[{key:"handleExpand",value:function(){this.setState({expanded:!0})}},{key:"render",value:function(){var e=this.props,t=e.topics,n=e.user,r=e.ellipsisLength,o=e.expandable,a=e.privacyEnabled,i=e.showPrivacyPage,c=this.state.expanded,s="等 ".concat(t.length," 个"),u=t;return c||(u=t.slice(0,r)),0===t.length?null:Object(l.c)("span",{children:[u.map((function(e,t){return Object(l.c)("span",{children:[Object(l.b)(b.a,{showPrivacyPage:a&&i,authWrapperClassName:"ProfileMainPrivacy-authWrapper",authChild:Object(l.b)("span",{className:"ProfileMainPrivacy-pointerWrapper",children:e.name}),children:Object(l.b)(p.Link,{to:"".concat(m.D,"/").concat(n.isOrg?"org":"people","/").concat(n.urlToken,"/creations/").concat(e.id),children:e.name})}),tr&&(o?Object(l.b)(h.c,{preset:"plain",onClick:this.onExpand,children:s}):s),"话题"]})}}]),n}(f.Component);g.propTypes={topics:d.a.array.isRequired,user:d.a.object,ellipsisLength:d.a.number,expandable:d.a.bool,noHoverCard:d.a.bool,privacyEnabled:d.a.bool,showPrivacyPage:d.a.bool},g.defaultProps={ellipsisLength:3,expandable:!0,noHoverCard:!1},t.a=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o=n(1),a=n(399),i=function(e){var t=e.children,n=e.showPrivacyPage,i=e.authWrapperClassName,c=e.authChild,s=o.Children.only(t),l=c?o.Children.only(c):s;return n?Object(r.b)(a.a,{wrapperClassName:i,loginButton:l}):s}},function(e,t,n){"use strict";t.a=function(e,t){return!!e&&(!!(t=t||e.type)&&("answer"===t&&((null===(n=e.settings)||void 0===n||null===(r=n.tableOfContents)||void 0===r?void 0:r.enabled)||(null===(o=e.settings)||void 0===o||null===(a=o.tableOfContent)||void 0===a?void 0:a.enabled))));var n,r,o,a}},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(11),d=n.n(u),f=n(31),p=n(134);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var b=function(e){Object(a.a)(n,e);var t=h(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,n){return l.__create(e,t,n),this},t.prototype.mergeEntityData=function(e,t){return l.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return l.__replaceData(e,t),this},t.prototype.addEntity=function(e){return l.__add(e),this},t.prototype.getEntity=function(e){return l.__get(e)},t.createFromBlockArray=function(e,n){var r=Array.isArray(e)?e:e.contentBlocks,o=a.createFromArray(r),i=o.isEmpty()?new f:f.createEmpty(o.first().getKey());return new t({blockMap:o,entityMap:n||l,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,r=e.split(n),o=r.map((function(e){return e=h(e),new g({key:p(),text:e,type:"unstyled",characterList:b(v(i.EMPTY,e.length))})}));return t.createFromBlockArray(o)},t}(m({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=y},function(e,t,n){"use strict";var r=new RegExp("\r","g");e.exports=function(e){return e.replace(r,"")}},function(e,t,n){"use strict";var r=n(839),o=null;function a(e){return"LTR"===e||"RTL"===e}function i(e){return a(e)||r(!1),"LTR"===e?"ltr":"rtl"}function c(e){o=e}var s={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:a,getHTMLDir:i,getHTMLDirIfDifferent:function(e,t){return a(e)||r(!1),a(t)||r(!1),e===t?null:i(e)},setGlobalDir:c,initGlobalDir:function(){c("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||r(!1),o}};e.exports=s},function(e,t,n){"use strict";var r=n(838).Map,o=n(1),a=n(875),i=r({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:o.createElement("ul",{className:a("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:o.createElement("ol",{className:a("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:o.createElement("pre",{className:a("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},function(e,t,n){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,n){"use strict";function r(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var n;if(t.isCollapsed()){var o=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(n=e.getBlockForKey(o).getEntityAt(a-1))!==e.getBlockForKey(o).getEntityAt(a)?null:r(e.getEntityMap(),n):null}var i=t.getStartKey(),c=t.getStartOffset(),s=e.getBlockForKey(i);return n=c===s.getLength()?null:s.getEntityAt(c),r(e.getEntityMap(),n)}},function(e,t,n){"use strict";var r=n(1213);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";function r(e,t){var n=o.get(e,t);return"auto"===n||"scroll"===n}var o={get:n(1215),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(r(e,"overflow")||r(e,"overflowY")||r(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=o},function(e,t,n){"use strict";var r=n(1220),o=n(1221);e.exports=function(e){var t=r(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=o(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,c=e.scrollHeight-a.clientHeight;return n.x=Math.max(0,Math.min(n.x,i)),n.y=Math.max(0,Math.min(n.y,c)),n}},function(e,t,n){"use strict";var r=n(1045);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var n=r(t);if(null!=n)return n;t=t.parentNode}return null}},function(e,t,n){"use strict";var r=n(855).isPlatform("Mac OS X"),o={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return r&&e.altKey},hasCommandModifier:function(e){return r?!!e.metaKey&&!e.altKey:o.isCtrlKeyCommand(e)}};e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.getSelection(),r=e.getCurrentContent(),o=n.getStartKey(),a=n.getStartOffset(),i=o,c=0;if(t>a){var s=r.getKeyBefore(o);if(null==s)i=o;else i=s,c=r.getBlockForKey(s).getText().length}else c=a-t;return n.merge({focusKey:i,focusOffset:c,isBackward:!0})}},function(e,t,n){var r=n(1152);function o(t,n,a){return"undefined"!=typeof Reflect&&Reflect.get?(e.exports=o=Reflect.get,e.exports.default=e.exports,e.exports.__esModule=!0):(e.exports=o=function(e,t,n){var o=r(e,t);if(o){var a=Object.getOwnPropertyDescriptor(o,t);return a.get?a.get.call(n):a.value}},e.exports.default=e.exports,e.exports.__esModule=!0),o(t,n,a||t)}e.exports=o,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var r=n(43),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n(44),f=n(3),p=n.n(f),h=n(11),b=n.n(h),m=n(1154),v=n(94),g=n.n(v),y="function"==typeof ResizeObserver?function(e,t){var n=new ResizeObserver((function(e){return t(e[0].contentRect)}));return n.observe(e),function(){n.disconnect()}}:function(e,t){var n,r=function(){var r=e.getBoundingClientRect();!(n&&["left","top","width","height"].every((function(e){return n[e]===r[e]})))&&(n=r,t(r))},o=new(window.MutationObserver||window.WebKitMutationObserver)(g()(r,100));return o.observe(e,{attributes:!0,characterData:!0,childList:!0,subtree:!0}),r(),function(){o.disconnect()}};function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var j={auto:"auto",yes:"scroll",no:"hidden"},w=function(e){Object(i.a)(n,e);var t=O(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=a.pb?"PB":n>=a.tb?"TB":n>=a.gb?"GB":n>=a.mb?"MB":n>=a.kb?"KB":"B");var d=(e/a[u.toLowerCase()]).toFixed(s);return l||(d=d.replace(o,"$1")),i&&(d=d.replace(r,i)),d+c+u}function s(e){if("number"==typeof e&&!isNaN(e))return e;if("string"!=typeof e)return null;var t,n=i.exec(e),r="b";return n?(t=parseFloat(n[1]),r=n[4].toLowerCase()):(t=parseInt(e,10),r="b"),Math.floor(a[r]*t)}},function(e,t,n){"use strict";e.exports=n(1012)},function(e,t,n){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return fetch(e,Object.assign({credentials:"include",headers:{"X-Requested-With":"Fetch"}},t)).then((function(e){return e.json()}))}},function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(43),o=n(927),a=function(e,t){switch(e){case"answer":return"https://www.zhihu.com/answer/".concat(t);case"book":return"https//www.zhihu.com/pub/book/".concat(t);case"article":return"https://zhuanlan.zhihu.com/p/".concat(t);case"live":return"https://www.zhihu.com/lives/".concat(t);case"remix_album":case"remix":return"https://www.zhihu.com/remix/albums/".concat(t);case"pin":return"https://www.zhihu.com/pin/".concat(t);case"question":return"https://www.zhihu.com/question/".concat(t);case"zvideo":return"https://www.zhihu.com/zvideo/".concat(t);case"topic":return"https://www.zhihu.com/topic/".concat(t);default:return""}},i=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];try{if(!e||"string"!=typeof e)return"";if(!t||"object"!=typeof t)return e;var a=e.split("#"),i=Object(r.a)(a,2),c=i[0],s=i[1],l=void 0===s?"":s,u=c.split("?"),d=Object(r.a)(u,2),f=d[0],p=d[1],h=Object(o.parse)(p),b=n?Object.assign({},h,t):Object.assign({},t,h),m=function(e,t){return t?e+t:""};return f+m("?",Object(o.stringify)(b))+m("#",l)}catch(t){return console.error(t),e}}},function(e,t,n){"use strict";var r=n(35),o=n(43),a=n(2),i=n(1),c=n(27),s=n(183),l=n.n(s),u=n(1063),d=n(883),f=n(381),p=n(49),h=n.n(p),b=n(53),m=n(40),v=n.n(m),g=n(57),y=n(406),O=n(63),j=n(383),w=n(79),C=n.n(w),k={"京东":"jingdong","淘宝":"taobao","知乎":"zhihu","拼多多":"pinduoduo","美团酒旅":"meituanhotel","苏宁":"suning","天猫":"taobao"},x=function(e,t,n){var r=e.id,o=e.url,a=e.source,i=e.children,c=void 0===i?0:i,s=e.scenes,l=e.fallbackUrl,u=k[a],d=C()(navigator.userAgent);if(!d.ZhihuHybrid)return c&&"function"==typeof n?void n():void(d.Mobile?location.href=o:t?t.location.href=o:window.open(o));O.a.supportsAction("mcn/openURL").then((function(e){var t=e;if(r&&o&&a&&(Object(j.versionControl)(d,{IOS:"6.15",ANDROID:"6.15"})||"taobao"!==u)&&(Object(j.versionControl)(d,{IOS:"6.25",ANDROID:"6.25"})||"zhihu"!==u)&&(Object(j.versionControl)(d,{IOS:"6.28",ANDROID:"6.29"})||"pinduoduo"!==u)&&(Object(j.versionControl)(d,{IOS:"6.37",ANDROID:"6.37"})||"meituanhotel"!==u)&&(Object(j.versionControl)(d,{IOS:"6.51",ANDROID:"6.51"})||"suning"!==u)&&(Object(j.versionControl)(d,{ANDROID:"6.63"})||"0"!==r)||(t=!1),t){var n=Object.assign({id:r,url:o,type:u,fallbackUrl:l||o},s?{scenes:s}:{});O.a.dispatch("mcn/openURL",n)}else O.a.dispatch("base/openURL",{url:o})}))};var S=n(152),E=n(367),R=function(e){var t=Object(E.b)(),n=Object(i.useCallback)((function(n){t.ZhihuHybrid&&function(e,t){var n=t.root;if(!e.defaultPrevented){var r=e.target;if("img"===r.tagName.toLowerCase()&&(r.src.includes("zhimg")||!r.src.includes("equation"))&&(!r.classList.contains("ztext-gif")||r.parentNode.classList.contains("isPlaying"))){var o=Array.from(n.querySelectorAll(["img"])).filter((function(e){return e.src.includes("zhimg")&&!e.src.includes("equation")})),a=o.indexOf(r);if(-1!==a){e.preventDefault();var i=o.map((function(e){return e.dataset.thumbnail&&e.src.replace(/\.jpg|\.webp/,".gif")||e.dataset.src||e.src||""})).map((function(e){return Object(S.imgUrl)(e,Object.assign({quality:""},e.endsWith("webp")&&{extension:"jpg"}))}));O.a.dispatch("base/openImage",{images:i,index:a})}}}}(n,{root:e})}),[e,t.ZhihuHybrid]);Object(i.useEffect)((function(){if(e)return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}),[e,n])},T=n(39),A=n(859),N=function(e){var t=e.getAttribute("data-hash"),n=e.textContent.replace(/^@/,""),r=document.createElement("span");return e.parentNode.replaceChild(r,e),{target:r,data:{id:t,name:n}}},_=function(e){var t=Object(i.useState)(null),n=Object(o.a)(t,2),r=n[0],c=n[1];return Object(i.useEffect)((function(){if(e){var t=Array.from(e.querySelectorAll(".member_mention"));if(t.length){var n=t.map(N).map((function(e,t){var n=e.data,r=e.target;return Object(T.createPortal)(Object(a.c)(A.a,{user:n,children:["@",n.name]},t),r)}));c(n)}}}),[e]),r},I=n(936),M=function(e){var t=e.getAttribute("data-poster"),n="data:,"===t?"":t,r={title:e.getAttribute("data-name"),thumbnail:n,url:e.getAttribute("href"),src:e.getAttribute("data-src")};r=e.getAttribute("data-lens-id")?Object.assign({},r,{isLens:!0,id:e.getAttribute("data-lens-id"),isPlayable:!0}):Object.assign({},r,{isLens:!1,id:e.getAttribute("data-video-id"),isPlayable:"true"===e.getAttribute("data-video-playable")}),e.hasAttribute("data-lens-status")&&(r=Object.assign({},r,{error:{status:e.getAttribute("data-lens-status"),message:e.getAttribute("data-description")}}));var o=document.createElement("div");return e.parentNode.replaceChild(o,e),{target:o,data:r}},L=function(e){var t=Object(i.useState)(null),n=Object(o.a)(t,2),r=n[0],c=n[1];return Object(i.useEffect)((function(){if(e){var t=Array.from(e.querySelectorAll(".video-box, .video-link, .unprocessable_video"));if(t.length){var n=t.map(M).map((function(e,t){var n=e.data,r=e.target;return Object(T.createPortal)(Object(a.b)(I.a,{data:n},t),r)}));c(n)}}}),[e]),r},P=n(78),B={},z=function(e,t){var n=function(e){return e.split("/").reverse()[0]}(t),r=n.split("."),a=Object(o.a)(r,2),i=a[0],c=a[1],s=i.split("_"),l=Object(o.a)(s,2)[1],u="webp"===c||"gif"===c?c:"image",d=Object(p.statGenerator)({appName:"heifetz"})("".concat(u,".").concat(l,".unknown.RichText"));switch(e){case"loadstart":B[n]=Date.now();break;case"load":if(B[n]){var f="".concat(d,".success");h.a.increment({raw:"".concat(f,".count")}),h.a.timing(f,Date.now()-B[n]),delete B[n]}break;case"timeout":B[n]&&(h.a.increment({raw:"".concat(d,".timeout.count")}),delete B[n]);break;case"error":B[n]&&(h.a.increment({raw:"".concat(d,".failure.count")}),delete B[n])}},D=function(e){return Object(a.b)(d.a,Object.assign({onLoadStateChange:z},e,{useMp4:!0}))};t.a=function(e){var t=e.ecommerce,s=e.html,p=e.shouldUseArticleCard,h=e.shouldShowCatalog,m=e.sourceId,O=e.sourceType,j=Object(r.a)(e,["ecommerce","html","shouldUseArticleCard","shouldShowCatalog","sourceId","sourceType"]),w=Object(i.useState)(null),k=Object(o.a)(w,2),S=k[0],E=k[1],T=Object(i.useState)(!1),A=Object(o.a)(T,2),N=A[0],I=A[1],M=Object(i.useState)(""),B=Object(o.a)(M,2),F=B[0],U=B[1],V=!Object(b.o)({includeTablet:!0}),q=Object(c.useSelector)((function(e){return e.currentUser}));R(S);var H,K=Object(P.d)((function(){return n.e(5).then(n.bind(null,2642))})),Q=(H=Object(c.useDispatch)(),Object(i.useCallback)(function(){var e=Object(g.a)(v.a.mark((function e(t,n){var r,o,a,i;return v.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t,o=null,"京东"!==t.source&&"苏宁"!==t.source){e.next=9;break}return C()(navigator.userAgent).Safari&&"苏宁拼购"!==t.goodsType&&(o=window.open()),e.next=7,H(Object(y.b)(t.id,0)).catch((function(){return null}));case 7:i=e.sent,r=Object.assign({},t,null==i||null===(a=i.payload)||void 0===a?void 0:a.data);case 9:"苏宁拼购"!==t.goodsType&&x(r,o,n);case 10:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),[H]));return Object(a.c)(a.a,{children:[Object(a.b)(u.a,Object.assign({},j,{html:s,onRef:E,lazyLoadImageProps:{onLoadStateChange:z,useWebP:!1},adLinkCardProps:{parentId:m,parentType:O},mcnLinkCardProps:{onClick:function(e){var t=e.currentTarget,n=t.href,r=t.dataset,o=r.mcnId,a=r.mcnSource,i=r.mcnChildren,c=r.mcnAppSchemaIos,s=r.mcnAppSchemaAndroid,l=r.mcnGoodsType;V&&("拼多多"===a||"苏宁"===a&&"苏宁拼购"===l)||(e.preventDefault(),Q({id:o,source:a,goodsType:l,url:n,children:Number(i),appSchemaIos:c,appSchemaAndroid:s},(function(){U(o),I(!0)})))}},mkSkuLinkCardProps:{cardSize:"large",enableBackdrop:!1,sourceConvert:!1,tagPreset:"plain",enableMetaTag:!1,enableButton:!0,buttonPreset:"plain",buttonColor:"orange",enableHint:!1},zvideoLinkCardProps:{enableInlinePlay:!0},articleLinkCardProps:{enableZa:!0,useOpenArticleButton:!0},shouldUseArticleCard:p,shouldShowCatalog:h,sourceId:m})),Object(d.b)(S,{Component:D}),L(S),_(S),Object(f.d)(S,{ecommerce:t,getComponent:function(){return n.e(2).then(n.bind(null,1696))}}),N&&Object(a.b)(K,{showModal:N,id:F,userId:q,clientId:l.a.get("_zap"),onClose:function(){U(""),I(!1)},onSelectCard:function(e){var t=e.id,n=e.source,r=e.goods_type,o=e.url,a=e.app_schema_ios,i=e.app_schema_android;Q({id:t,source:n,goodsType:r,url:o,appSchemaIos:a,appSchemaAndroid:i})}})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(1),o=n.n(r),a=n(132),i=n(78),c=n(11),s=n.n(c),l=n(31),u=n(3),d=n.n(u),f={image:d.a.oneOf(["default","loadingError","noNetwork","contentError","noWorks","noCollection","noBalance"])},p={buttonText:d.a.oneOfType([d.a.string,d.a.element]).isRequired,buttonOnClick:d.a.func.isRequired},h={className:d.a.string,content:d.a.string.isRequired},b=Object.assign({},h,{},p),m=Object.assign({},h,{title:d.a.string.isRequired}),v=Object.assign({},m,{},p),g=Object.assign({},h,{},f),y=Object.assign({},g,{},p),O=Object.assign({},g,{title:d.a.string.isRequired}),j=Object.assign({},O,{},p),w=n(5),C=o.a.memo((function(e){var t=e.className,r=e.image,o=e.title,c=e.content,u=e.buttonText,d=e.buttonOnClick,f=Object(a.f)().isDarkMode,p=Object(i.d)((function(){return n.e(24).then(n.bind(null,2640))})),h=r&&r.replace(/\b\w/g,(function(e){return e.toUpperCase()}))+(f?"Dark":""),b=p&&p[h],m=r&&b,v=s()("EmptyView-content",{"EmptyView-withTitle":Boolean(o)});return Object(w.g)("div",{className:s()("EmptyView-container",t)},Boolean(m)&&Object(w.g)("div",{className:"EmptyView--placeholder"}),Object(w.g)("div",{className:"EmptyView"},Boolean(m)&&Object(w.g)(m,null),Boolean(o)&&Object(w.g)("div",{className:"EmptyView-title"},o),Object(w.g)("div",{className:v},Boolean(c)&&Object(w.g)("div",null,c)),Boolean(u)&&Object(w.g)(l.c,{className:"EmptyView-button",onClick:d},u)),Boolean(m)&&Object(w.g)("div",{className:"EmptyView--placeholder"}))}));function k(e){var t=function(t){var n={};return Object.keys(t).forEach((function(r){e[r]?n[r]=t[r]:console.warn("".concat(r," is not allowed. check the type"))})),Object(w.g)(C,n)};return t.propTypes=e,t}var x={ET1:k(h),ET1A:k(b),ET2:k(m),ET2A:k(v),EI1:k(g),EI1A:k(y),EI2:k(O),EI2A:k(j)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));n(1);var r=n(3),o=n.n(r),a=n(78),i=n(5);function c(e){var t=e.id,r=e.parentType,o=e.parentId,c=e.suger,s=e.data,l=e.isEditor,u=void 0!==l&&l,d=Object(a.d)((function(){return n.e(3).then(n.bind(null,2645))}),t),f=Object(a.d)((function(){return n.e(4).then(n.bind(null,2646))}),t);return t.startsWith("fee_")&&f?Object(i.g)(f,{id:t,isEditor:u}):d?Object(i.g)(d,{id:t,parentType:r,urlToken:o,suger:c,data:s,isEditor:u}):null}c.propTypes={id:o.a.string.isRequired,parentType:o.a.oneOf(["answer","article"]),parentId:o.a.string,suger:o.a.object,data:o.a.object,isEditor:o.a.bool};var s=c},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(157),i=n.n(a),c=n(5);t.a=function(e){var t=e.referenceList,n=e.onClick,r=e.listRef;return Object(c.g)(o.a.Fragment,null,Object(c.g)("h2",null,"参考"),Object(c.g)("ol",{className:"ReferenceList",onClick:n,ref:r},i()(t,"refKey").map((function(e){var n=t.filter((function(t){return t.refKey===e.refKey})),r=n.length>1?Object(c.g)(o.a.Fragment,null,Object(c.g)("span",{className:"ReferenceList-backHint","aria-label":"back"},"^"),n.map((function(e,t){var n="".concat(e.refKey,"_").concat(t);return Object(c.g)("sup",{key:n,className:"ReferenceList-backLink"},Object(c.g)("a",{href:"#".concat(n),"data-reference-link":!0},"abcdefghijklmnopqrstuvwxyz"[t%26]))}))):Object(c.g)("a",{className:"ReferenceList-backLink",href:"#".concat(e.refKey,"_0"),"aria-label":"back","data-reference-link":!0},"^");return Object(c.g)("li",{id:e.refKey,key:e.refKey,tabIndex:0},r,e.text&&Object(c.g)("span",null,e.text),e.text&&e.url&&" ",e.url&&Object(c.g)("a",{href:e.url,className:"external",target:"_blank",rel:"noopener noreferrer"},e.url))}))))}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(133),o=n(581),a=n(56);function i(e,t){Object(a.a)(2,arguments);var n=Object(r.a)(t);return Object(o.a)(e,-n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return Q}));var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(1),h=n.n(p),b=n(139),m=n(141),v=n(142);n(3);function g(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var y=n(39),O=n.n(y),j=!1,w=h.a.createContext(null),C=function(e){function t(t,n){var r;r=e.call(this,t,n)||this;var o,a=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?a?(o="exited",r.appearStatus="entering"):o="entered":o=t.unmountOnExit||t.mountOnEnter?"unmounted":"exited",r.state={status:o},r.nextCallback=null,r}Object(v.a)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&"unmounted"===t.status?{status:"exited"}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(t="entering"):"entering"!==n&&"entered"!==n||(t="exiting")}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!=typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),"entering"===t?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,o=this.props.nodeRef?[r]:[O.a.findDOMNode(this),r],a=o[0],i=o[1],c=this.getTimeouts(),s=r?c.appear:c.enter;!e&&!n||j?this.safeSetState({status:"entered"},(function(){t.props.onEntered(a)})):(this.props.onEnter(a,i),this.safeSetState({status:"entering"},(function(){t.props.onEntering(a,i),t.onTransitionEnd(s,(function(){t.safeSetState({status:"entered"},(function(){t.props.onEntered(a,i)}))}))})))},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:O.a.findDOMNode(this);t&&!j?(this.props.onExit(r),this.safeSetState({status:"exiting"},(function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,(function(){e.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))}))}))):this.safeSetState({status:"exited"},(function(){e.props.onExited(r)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:O.a.findDOMNode(this),r=null==e&&!this.props.addEndListener;if(n&&!r){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=o[0],i=o[1];this.props.addEndListener(a,i)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},n.render=function(){var e=this.state.status;if("unmounted"===e)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,Object(m.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return h.a.createElement(w.Provider,{value:null},"function"==typeof n?n(e,r):h.a.cloneElement(h.a.Children.only(n),r))},t}(h.a.Component);function k(){}C.contextType=w,C.propTypes={},C.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:k,onEntering:k,onEntered:k,onExit:k,onExiting:k,onExited:k},C.UNMOUNTED="unmounted",C.EXITED="exited",C.ENTERING="entering",C.ENTERED="entered",C.EXITING="exiting";var x=C,S=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return r=t,void((n=e).classList?n.classList.remove(r):"string"==typeof n.className?n.className=g(n.className,r):n.setAttribute("class",g(n.className&&n.className.baseVal||"",r)));var n,r}))},E=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o0&&(clearTimeout(N),O.hide())}},{key:"handleHide",value:function(){_.pop();var e=_[_.length-1];e&&e.setState({transparent:!1}),_.length<=0&&(N=setTimeout((function(){O.show()}),300))}},{key:"render",value:function(){var e=this.props,t=e.size,n=e.spread,r=e.title,o=e.subtitle,a=e.footer,i=e.closeButton,c=void 0===i?Object(R.g)("div",{className:"ModalWindow-closeButton",onClick:this.handleButtonClick},Object(R.g)(v.a,{className:"ModalWindow-closeIcon"})):i,s=e.buttonGroupOnly,l=e.className,u=e.children,d=e.onScroll,f=e.contentClassName,p=void 0===f?"":f,h=e.backDropClassName,b=void 0===h?"":h,m=this.state.transparent;return Object(R.g)(C.a,{transitionName:"ModalWindow",timeout:300},u&&Object(R.g)(w.a,{onKeyDown:this.handleKeydown},Object(R.g)("div",{className:y()("ModalWindow-wrapper",{"ModalWindow-wrapper--transparent":m})},Object(R.g)("div",{className:y()("ModalWindow-backdrop",b),onClick:this.handleBackdropClick}),Object(R.g)("div",{className:y()("ModalWindow","ModalWindow--".concat(t),l),tabIndex:0},Object(R.g)("div",{className:"ModalWindow-inner",onScroll:d},r&&Object(R.g)("h3",{className:y()("ModalWindow-title",{"ModalWindow-title--simple":!o&&s})},r),o&&Object(R.g)("div",{className:"ModalWindow-subtitle"},o),Object(R.g)("div",{className:y()("ModalWindow-content",{"ModalWindow-content--spread":n||"fullPage"===t&&!r&&!o},p)},u),a&&Object(R.g)("div",{className:"ModalWindow-footer"},a)),c))))}}]),n}(b.Component);I.propTypes={size:h.a.oneOf(["default","large","fullPage","small"]),spread:h.a.bool,title:h.a.node,subtitle:h.a.node,footer:h.a.node,closeButton:h.a.node,buttonGroupOnly:h.a.bool,hotKeyClosable:h.a.bool,maskClosable:h.a.bool,onClose:h.a.func,onScroll:h.a.func,contentClassName:h.a.string},I.defaultProps={size:"default",spread:!1,buttonGroupOnly:!1,hotKeyClosable:!0,maskClosable:!0},I.open=function(e){var t=document.createElement("div");document.body.appendChild(t);var n=!1,r=function(){n||(n=!0,o())};"function"==typeof e&&(e=e(r));var o=function(){Object(m.render)(Object(b.cloneElement)(e,{children:null}),t),setTimeout((function(){Object(m.unmountComponentAtNode)(t),t.parentNode.removeChild(t)}),300)};Object(m.render)(e.props.onClose?e:Object(b.cloneElement)(e,{onClose:r}),t)};t.a=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return S}));var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(92),s=n.n(c),l=n(22),u=n.n(l),d=n(23),f=n.n(d),p=n(13),h=n.n(p),b=n(1),m=n.n(b),v=n(39),g=n(410),y=n.n(g);function O(e,t){e&&(e.focus(t),e instanceof HTMLInputElement&&e.select())}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e},r=n(y()(t)),o=r.length;if(o){var a=r.indexOf(document.activeElement);-1===a?("prev"===e&&O(r[o-1]),"next"===e&&O(r[0])):("prev"===e&&O(r[(a-1+o)%o]),"next"===e&&O(r[(a+1)%o]))}}var w=O,C=n(925);function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var x=[],S=function(e){u()(n,e);var t=k(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;iE;E++)S[E]=E+1;S[15]=0;var R=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,T=Object.prototype.hasOwnProperty,A={},N={};function _(e){return!!T.call(N,e)||!T.call(A,e)&&(R.test(e)?N[e]=!0:(A[e]=!0,!1))}function I(e,t,n,r,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){M[e]=new I(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];M[t]=new I(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){M[e]=new I(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){M[e]=new I(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){M[e]=new I(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){M[e]=new I(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){M[e]=new I(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){M[e]=new I(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){M[e]=new I(e,5,!1,e.toLowerCase(),null,!1)}));var L=/[\-:]([a-z])/g;function P(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(L,P);M[t]=new I(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(L,P);M[t]=new I(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(L,P);M[t]=new I(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){M[e]=new I(e,1,!1,e.toLowerCase(),null,!1)})),M.xlinkHref=new I("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){M[e]=new I(e,1,!1,e.toLowerCase(),null,!0)}));var B=/["'&<>]/;function z(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=B.exec(e);if(t){var n,r="",o=0;for(n=t.index;nt}return!1}(e,t,r,!1)?"":null!==r?(e=r.attributeName,3===(n=r.type)||4===n&&!0===t?e+'=""':(r.sanitizeURL&&(t=""+t),e+'="'+z(t)+'"')):_(e)?e+'="'+z(t)+'"':""}var F="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},U=null,V=null,q=null,H=!1,K=!1,Q=null,W=0;function G(){if(null===U)throw Error(a(321));return U}function Y(){if(0W))throw Error(a(301));if(e===U)if(K=!0,e={action:n,next:null},null===Q&&(Q=new Map),void 0===(n=Q.get(t)))Q.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function te(){}var ne=0,re={readContext:function(e){var t=ne;return x(e,t),e[t]},useContext:function(e){G();var t=ne;return x(e,t),e[t]},useMemo:function(e,t){if(U=G(),t=void 0===t?null:t,null!==(q=Z())){var n=q.memoizedState;if(null!==n&&null!==t){e:{var r=n[1];if(null===r)r=!1;else{for(var o=0;o=i))throw Error(a(304));var c=new Uint16Array(i);for(c.set(r),(S=c)[0]=n+1,r=n;r=c.children.length){var s=c.footer;if(""!==s&&(this.previousWasTextNode=!1),this.stack.pop(),"select"===c.type)this.currentSelectValue=null;else if(null!=c.type&&null!=c.type.type&&c.type.type.$$typeof===d)this.popProvider(c.type);else if(c.type===b){this.suspenseDepth--;var l=r.pop();if(o){o=!1;var u=c.fallbackFrame;if(!u)throw Error(a(303));this.stack.push(u),r[this.suspenseDepth]+="\x3c!--$!--\x3e";continue}r[this.suspenseDepth]+=l}r[this.suspenseDepth]+=s}else{var f=c.children[c.childIndex++],p="";try{p+=this.render(f,c.context,c.domNamespace)}catch(e){if(null!=e&&"function"==typeof e.then)throw Error(a(294));throw e}r.length<=this.suspenseDepth&&r.push(""),r[this.suspenseDepth]+=p}}return r[0]}finally{pe.current=n,ne=t}},t.render=function(e,t,n){if("string"==typeof e||"number"==typeof e)return""===(n=""+e)?"":this.makeStaticMarkup?z(n):this.previousWasTextNode?"\x3c!-- --\x3e"+z(n):(this.previousWasTextNode=!0,z(n));if(e=(t=je(e,t,this.threadID)).child,t=t.context,null===e||!1===e)return"";if(!o.isValidElement(e)){if(null!=e&&null!=e.$$typeof){if((n=e.$$typeof)===c)throw Error(a(257));throw Error(a(258,n.toString()))}return e=fe(e),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),""}var i=e.type;if("string"==typeof i)return this.renderDOM(e,t,n);switch(i){case l:case p:case u:case m:case s:return e=fe(e.props.children),this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case b:throw Error(a(294))}if("object"==typeof i&&null!==i)switch(i.$$typeof){case h:U={};var y=i.render(e.props,e.ref);return y=X(i.render,e.props,y,e.ref),y=fe(y),this.stack.push({type:null,domNamespace:n,children:y,childIndex:0,context:t,footer:""}),"";case v:return e=[o.createElement(i.type,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case d:return n={type:e,domNamespace:n,children:i=fe(e.props.children),childIndex:0,context:t,footer:""},this.pushProvider(e),this.stack.push(n),"";case f:i=e.type,y=e.props;var w=this.threadID;return x(i,w),i=fe(y.children(i[w])),this.stack.push({type:e,domNamespace:n,children:i,childIndex:0,context:t,footer:""}),"";case O:throw Error(a(338));case g:switch(function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(i=e.type),i._status){case 1:return e=[o.createElement(i._result,r({ref:e.ref},e.props))],this.stack.push({type:null,domNamespace:n,children:e,childIndex:0,context:t,footer:""}),"";case 2:throw i._result;default:throw Error(a(295))}case j:throw Error(a(343))}throw Error(a(130,null==i?i:typeof i,""))},t.renderDOM=function(e,t,n){var i=e.type.toLowerCase();if(n===oe&&ae(i),!me.hasOwnProperty(i)){if(!be.test(i))throw Error(a(65,i));me[i]=!0}var c=e.props;if("input"===i)c=r({type:void 0},c,{defaultChecked:void 0,defaultValue:void 0,value:null!=c.value?c.value:c.defaultValue,checked:null!=c.checked?c.checked:c.defaultChecked});else if("textarea"===i){var s=c.value;if(null==s){s=c.defaultValue;var l=c.children;if(null!=l){if(null!=s)throw Error(a(92));if(Array.isArray(l)){if(!(1>=l.length))throw Error(a(93));l=l[0]}s=""+l}null==s&&(s="")}c=r({},c,{value:void 0,children:""+s})}else if("select"===i)this.currentSelectValue=null!=c.value?c.value:c.defaultValue,c=r({},c,{value:void 0});else if("option"===i){l=this.currentSelectValue;var u=function(e){if(null==e)return e;var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c.children);if(null!=l){var d=null!=c.value?c.value+"":u;if(s=!1,Array.isArray(l)){for(var f=0;f":(O+=">",s="");e:{if(null!=(l=c.dangerouslySetInnerHTML)){if(null!=l.__html){l=l.__html;break e}}else if("string"==typeof(l=c.children)||"number"==typeof l){l=z(l);break e}l=null}return null!=l?(c=[],he.hasOwnProperty(i)&&"\n"===l.charAt(0)&&(O+="\n"),O+=l):c=fe(c.children),e=e.type,n=null==n||"http://www.w3.org/1999/xhtml"===n?ae(e):"http://www.w3.org/2000/svg"===n&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":n,this.stack.push({domNamespace:n,type:i,children:c,childIndex:0,context:t,footer:s}),this.previousWasTextNode=!1,O},e}(),Ce={renderToString:function(e){e=new we(e,!1);try{return e.read(1/0)}finally{e.destroy()}},renderToStaticMarkup:function(e){e=new we(e,!0);try{return e.read(1/0)}finally{e.destroy()}},renderToNodeStream:function(){throw Error(a(207))},renderToStaticNodeStream:function(){throw Error(a(208))},version:"16.14.0"};e.exports=Ce.default||Ce},function(e,t,n){"use strict"; /** @license React v16.13.1 * create-subscription.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var r=n(1);t.createSubscription=function(e){var t=e.getCurrentValue,n=e.subscribe;return function(e){function r(){for(var n=arguments.length,r=Array(n),o=0;o=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:U,n=q;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));var r,o={},a=L(n);try{for(a.s();!(r=a.n()).done;){var i=r.value,c=t(e[i],i);N.s.und(c)||(o[i]=c)}}catch(e){a.e(e)}finally{a.f()}return o},q=["config","onProps","onStart","onChange","onPause","onResume","onRest"],H={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function K(e){var t=function(e){var t={},n=0;if(Object(N.l)(e,(function(e,r){H[r]||(t[r]=e,n++)})),n)return t}(e);if(t){var n={to:t};return Object(N.l)(e,(function(e,r){return r in t||(n[r]=e)})),n}return Object.assign({},e)}function Q(e){return e=Object(N.q)(e),N.s.arr(e)?e.map(Q):Object(N.t)(e)?N.b.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function W(e){for(var t in e)return!0;return!1}function G(e){return N.s.fun(e)||N.s.arr(e)&&N.s.obj(e[0])}function Y(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Z(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}var X=Object.assign({},{tension:170,friction:26},{mass:1,damping:1,easing:function(e){return e},clamp:!1}),J=function e(){A()(this,e),this.velocity=0,Object.assign(this,X)};function $(e,t){if(N.s.und(t.decay)){var n=!N.s.und(t.tension)||!N.s.und(t.friction);!n&&N.s.und(t.frequency)&&N.s.und(t.damping)&&N.s.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var ee=[],te=function e(){A()(this,e),this.changed=!1,this.values=ee,this.toValues=null,this.fromValues=ee,this.config=new J,this.immediate=!1};function ne(e,t){var n=t.key,r=t.props,o=t.defaultProps,a=t.state,i=t.actions;return new Promise((function(t,c){var s,l,u,d=z(null!=(s=r.cancel)?s:null==o?void 0:o.cancel,n);if(d)b();else{N.s.und(r.pause)||(a.paused=z(r.pause,n));var f=null==o?void 0:o.pause;!0!==f&&(f=a.paused||z(f,n)),l=B(r.delay||0,n),f?(a.resumeQueue.add(h),i.pause()):(i.resume(),h())}function p(){a.resumeQueue.add(h),a.timeouts.delete(u),u.cancel(),l=u.time-N.w.now()}function h(){l>0?(u=N.w.setTimeout(b,l),a.pauseQueue.add(p),a.timeouts.add(u)):b()}function b(){a.pauseQueue.delete(p),a.timeouts.delete(u),e<=(a.cancelId||0)&&(d=!0);try{i.start(Object.assign({},r,{callId:e,cancel:d}),t)}catch(e){c(e)}}}))}var re=function(e,t){return 1==t.length?t[0]:t.some((function(e){return e.cancelled}))?ie(e.get()):t.every((function(e){return e.noop}))?oe(e.get()):ae(e.get(),t.every((function(e){return e.finished})))},oe=function(e){return{value:e,noop:!0,finished:!0,cancelled:!1}},ae=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{value:e,finished:t,cancelled:n}},ie=function(e){return{value:e,cancelled:!0,finished:!1}};function ce(e,t,n,r){var o=t.callId,a=t.parentId,i=t.onRest,c=n.asyncTo,s=n.promise;return a||e!==c||t.reset?n.promise=R()(S.a.mark((function l(){var u,d,f,p,h,b,m,v;return S.a.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:if(n.asyncId=o,n.asyncTo=e,u=V(t,(function(e,t){return"onRest"===t?void 0:e})),p=new Promise((function(e,t){return d=e,f=t})),h=function(e){var t=o<=(n.cancelId||0)&&ie(r)||o!==n.asyncId&&ae(r,!1);if(t)throw e.result=t,f(e),e},b=function(e,t){var a=new le,i=new ue;return R()(S.a.mark((function c(){var s,l;return S.a.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:if(!N.b.skipAnimation){c.next=5;break}throw se(n),i.result=ae(r,!1),f(i),i;case 5:return h(a),(s=N.s.obj(e)?Object.assign({},e):Object.assign({},t,{to:e})).parentId=o,Object(N.l)(u,(function(e,t){N.s.und(s[t])&&(s[t]=e)})),c.next=11,r.start(s);case 11:if(l=c.sent,h(a),!n.paused){c.next=16;break}return c.next=16,new Promise((function(e){n.resumeQueue.add(e)}));case 16:return c.abrupt("return",l);case 17:case"end":return c.stop()}}),c)})))()},!N.b.skipAnimation){l.next=9;break}return se(n),l.abrupt("return",ae(r,!1));case 9:return l.prev=9,v=N.s.arr(e)?function(){var e=R()(S.a.mark((function e(t){var n,r,o;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=L(t),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=9;break}return o=r.value,e.next=7,b(o);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),n.e(e.t0);case 14:return e.prev=14,n.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[1,11,14,17]])})));return function(t){return e.apply(this,arguments)}}()(e):Promise.resolve(e(b,r.stop.bind(r))),l.next=13,Promise.all([v.then(d),p]);case 13:m=ae(r.get(),!0,!1),l.next=27;break;case 16:if(l.prev=16,l.t0=l.catch(9),!(l.t0 instanceof le)){l.next=22;break}m=l.t0.result,l.next=27;break;case 22:if(!(l.t0 instanceof ue)){l.next=26;break}m=l.t0.result,l.next=27;break;case 26:throw l.t0;case 27:return l.prev=27,o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?s:void 0),l.finish(27);case 30:return N.s.fun(i)&&N.w.batchedUpdates((function(){i(m,r,r.item)})),l.abrupt("return",m);case 32:case"end":return l.stop()}}),l,null,[[9,16,27,30]])})))():s}function se(e,t){Object(N.m)(e.timeouts,(function(e){return e.cancel()})),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var le=function(e){g()(n,e);var t=M(n);function n(){return A()(this,n),t.call(this,"An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}return n}(k()(Error)),ue=function(e){g()(n,e);var t=M(n);function n(){return A()(this,n),t.call(this,"SkipAnimationSignal")}return n}(k()(Error)),de=function(e){return e instanceof pe},fe=1,pe=function(e){g()(n,e);var t=M(n);function n(){var e;return A()(this,n),(e=t.apply(this,arguments)).id=fe++,e._priority=0,e}return m()(n,[{key:"get",value:function(){var e=Object(I.e)(this);return e&&e.getValue()}},{key:"to",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1];Object(N.d)(this,{type:"change",parent:this,value:e,idle:t})}},{key:"_onPriorityChange",value:function(e){this.idle||N.o.sort(this),Object(N.d)(this,{type:"priority",parent:this,priority:e})}},{key:"priority",get:function(){return this._priority},set:function(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}}]),n}(N.a),he=Symbol.for("SpringPhase"),be=function(e){return(1&e[he])>0},me=function(e){return(2&e[he])>0},ve=function(e){return(4&e[he])>0},ge=function(e,t){return t?e[he]|=3:e[he]&=-3},ye=function(e,t){return t?e[he]|=4:e[he]&=-5},Oe=function(e){g()(n,e);var t=M(n);function n(e,r){var o;if(A()(this,n),(o=t.call(this)).animation=new te,o.defaultProps={},o._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},o._pendingCalls=new Set,o._lastCallId=0,o._lastToId=0,o._memoizedDuration=0,!N.s.und(e)||!N.s.und(r)){var a=N.s.obj(e)?Object.assign({},e):Object.assign({},r,{from:e});N.s.und(a.default)&&(a.default=!0),o.start(a)}return o}return m()(n,[{key:"advance",value:function(e){var t=this,n=!0,r=!1,o=this.animation,a=o.config,i=o.toValues,c=Object(I.g)(o.to);!c&&Object(N.r)(o.to)&&(i=Object(N.y)(Object(N.q)(o.to))),o.values.forEach((function(s,l){if(!s.done){var u=s.constructor==I.b?1:c?c[l].lastPosition:i[l],d=o.immediate,f=u;if(!d){if(f=s.lastPosition,a.tension<=0)return void(s.done=!0);var p,h=s.elapsedTime+=e,b=o.fromValues[l],m=null!=s.v0?s.v0:s.v0=N.s.arr(a.velocity)?a.velocity[l]:a.velocity;if(N.s.und(a.duration))if(a.decay){var v=!0===a.decay?.998:a.decay,g=Math.exp(-(1-v)*h);f=b+m/(1-v)*(1-g),d=Math.abs(s.lastPosition-f)<.1,p=m*g}else{p=null==s.lastVelocity?m:s.lastVelocity;for(var y=a.precision||(b==u?.005:Math.min(1,.001*Math.abs(u-b))),O=a.restVelocity||y/10,j=a.clamp?0:a.bounce,w=!N.s.und(j),C=b==u?s.v0>0:bO||!(d=Math.abs(u-f)<=y));++x){w&&(f==u||f>u==C)&&(p=-p*j,f=u),f+=1*(p+=1*((1e-6*-a.tension*(f-u)+.001*-a.friction*p)/a.mass))}}else{var S=1;a.duration>0&&(t._memoizedDuration!==a.duration&&(t._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,h=s.elapsedTime+=e)),S=(S=(a.progress||0)+h/t._memoizedDuration)>1?1:S<0?0:S,s.durationProgress=S),p=((f=b+a.easing(S)*(u-b))-s.lastPosition)/e,d=1==S}s.lastVelocity=p,Number.isNaN(f)&&(console.warn("Got NaN while animating:",t),d=!0)}c&&!c[l].done&&(d=!1),d?s.done=!0:n=!1,s.setValue(f,a.round)&&(r=!0)}}));var s=Object(I.e)(this);if(n){var l=Object(N.q)(o.to);(s.setValue(l)||r)&&this._onChange(l),this._stop()}else r&&this._onChange(s.getValue())}},{key:"set",value:function(e){var t=this;return N.w.batchedUpdates((function(){t._stop(),t._focus(e),t._set(e)})),this}},{key:"pause",value:function(){this._update({pause:!0})}},{key:"resume",value:function(){this._update({pause:!1})}},{key:"finish",value:function(){var e=this;if(me(this)){var t=this.animation,n=t.to,r=t.config;N.w.batchedUpdates((function(){e._onStart(),r.decay||e._set(n,!1),e._stop()}))}return this}},{key:"update",value:function(e){return(this.queue||(this.queue=[])).push(e),this}},{key:"start",value:function(e,t){var n,r=this;return N.s.und(e)?(n=this.queue||[],this.queue=[]):n=[N.s.obj(e)?e:Object.assign({},t,{to:e})],Promise.all(n.map((function(e){return r._update(e)}))).then((function(e){return re(r,e)}))}},{key:"stop",value:function(e){var t=this,n=this.animation.to;return this._focus(this.get()),se(this._state,e&&this._lastCallId),N.w.batchedUpdates((function(){return t._stop(n,e)})),this}},{key:"reset",value:function(){this._update({reset:!0})}},{key:"eventObserved",value:function(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}},{key:"_prepareNode",value:function(e){var t=this.key||"",n=e.to,r=e.from;(null==(n=N.s.obj(n)?n[t]:n)||G(n))&&(n=void 0),null==(r=N.s.obj(r)?r[t]:r)&&(r=void 0);var o={to:n,from:r};if(!be(this)){if(e.reverse){var a=[r,n];n=a[0],r=a[1]}r=Object(N.q)(r),N.s.und(r)?Object(I.e)(this)||this._set(n):this._set(r)}return o}},{key:"_update",value:function(e,t){var n=this,r=f()({},e),o=this.key,a=this.defaultProps;r.default&&Object.assign(a,V(r,(function(e,t){return/^on/.test(t)?D(e,o):e}))),Ee(this,r,"onProps"),Re(this,"onProps",r,this);var i=this._prepareNode(r);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");var c=this._state;return ne(++this._lastCallId,{key:o,props:r,defaultProps:a,state:c,actions:{pause:function(){ve(n)||(ye(n,!0),Object(N.n)(c.pauseQueue),Re(n,"onPause",ae(n,je(n,n.animation.to)),n))},resume:function(){ve(n)&&(ye(n,!1),me(n)&&n._resume(),Object(N.n)(c.resumeQueue),Re(n,"onResume",ae(n,je(n,n.animation.to)),n))},start:this._merge.bind(this,i)}}).then((function(e){if(r.loop&&e.finished&&(!t||!e.noop)){var o=we(r);if(o)return n._update(o,!0)}return e}))}},{key:"_merge",value:function(e,t,n){var r=this;if(t.cancel)return this.stop(!0),n(ie(this));var o=!N.s.und(e.to),a=!N.s.und(e.from);if(o||a){if(!(t.callId>this._lastToId))return n(ie(this));this._lastToId=t.callId}var i=this.key,c=this.defaultProps,s=this.animation,l=s.to,u=s.from,d=e.to,f=void 0===d?l:d,p=e.from,h=void 0===p?u:p;if(!a||o||t.default&&!N.s.und(f)||(f=h),t.reverse){var b=[h,f];f=b[0],h=b[1]}var m=!Object(N.u)(h,u);m&&(s.from=h),h=Object(N.q)(h);var v=!Object(N.u)(f,l);v&&this._focus(f);var g=G(t.to),y=s.config,O=y.decay,j=y.velocity;(o||a)&&(y.velocity=0),t.config&&!g&&function(e,t,n){for(var r in n&&($(n=Object.assign({},n),t),t=Object.assign({},n,t)),$(e,t),Object.assign(e,t),X)null==e[r]&&(e[r]=X[r]);var o=e.mass,a=e.frequency,i=e.damping;N.s.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*o,e.friction=4*Math.PI*i*o/a)}(y,B(t.config,i),t.config!==c.config?B(c.config,i):void 0);var w=Object(I.e)(this);if(!w||N.s.und(f))return n(ae(this,!0));var C=N.s.und(t.reset)?a&&!t.default:!N.s.und(h)&&z(t.reset,i),k=C?h:this.get(),x=Q(f),S=N.s.num(x)||N.s.arr(x)||Object(N.t)(x),E=!g&&(!S||z(c.immediate||t.immediate,i));if(v){var R=Object(I.f)(f);if(R!==w.constructor){if(!E)throw Error("Cannot animate between ".concat(w.constructor.name," and ").concat(R.name,', as the "to" prop suggests'));w=this._set(x)}}var T=w.constructor,A=Object(N.r)(f),_=!1;if(!A){var M=C||!be(this)&&m;(v||M)&&(A=!(_=Object(N.u)(Q(k),x))),Object(N.u)(y.decay,O)&&Object(N.u)(y.velocity,j)||(A=!0)}if(_&&me(this)&&(s.changed&&!C?A=!0:A||this._stop(l)),!g&&((A||Object(N.r)(l))&&(s.values=w.getPayload(),s.toValues=Object(N.r)(f)?null:T==I.b?[1]:Object(N.y)(x)),s.immediate!=E&&(s.immediate=E,E||C||this._set(l)),A)){var L=s.onRest;Object(N.k)(Se,(function(e){return Ee(r,t,e)}));var P=ae(this,je(this,l));Object(N.n)(this._pendingCalls,P),this._pendingCalls.add(n),s.changed&&N.w.batchedUpdates((function(){var e;s.changed=!C,null==L||L(P,r),C?B(c.onRest,P):null==(e=s.onStart)||e.call(s,P,r)}))}C&&this._set(k),g?n(ce(t.to,t,this._state,this)):A?this._start():me(this)&&!v?this._pendingCalls.add(n):n(oe(k))}},{key:"_focus",value:function(e){var t=this.animation;e!==t.to&&(Object(N.p)(this)&&this._detach(),t.to=e,Object(N.p)(this)&&this._attach())}},{key:"_attach",value:function(){var e=0,t=this.animation.to;Object(N.r)(t)&&(Object(N.c)(t,this),de(t)&&(e=t.priority+1)),this.priority=e}},{key:"_detach",value:function(){var e=this.animation.to;Object(N.r)(e)&&Object(N.x)(e,this)}},{key:"_set",value:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Object(N.q)(e);if(!N.s.und(r)){var o=Object(I.e)(this);if(!o||!Object(N.u)(r,o.getValue())){var a=Object(I.f)(r);o&&o.constructor==a?o.setValue(r):Object(I.h)(this,a.create(r)),o&&N.w.batchedUpdates((function(){t._onChange(r,n)}))}}return Object(I.e)(this)}},{key:"_onStart",value:function(){var e=this.animation;e.changed||(e.changed=!0,Re(this,"onStart",ae(this,je(this,e.to)),this))}},{key:"_onChange",value:function(e,t){t||(this._onStart(),B(this.animation.onChange,e,this)),B(this.defaultProps.onChange,e,this),h()(w()(n.prototype),"_onChange",this).call(this,e,t)}},{key:"_start",value:function(){var e=this.animation;Object(I.e)(this).reset(Object(N.q)(e.to)),e.immediate||(e.fromValues=e.values.map((function(e){return e.lastPosition}))),me(this)||(ge(this,!0),ve(this)||this._resume())}},{key:"_resume",value:function(){N.b.skipAnimation?this.finish():N.o.start(this)}},{key:"_stop",value:function(e,t){if(me(this)){ge(this,!1);var n=this.animation;Object(N.k)(n.values,(function(e){e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Object(N.d)(this,{type:"idle",parent:this});var r=t?ie(this.get()):ae(this.get(),je(this,null!=e?e:n.to));Object(N.n)(this._pendingCalls,r),n.changed&&(n.changed=!1,Re(this,"onRest",r,this))}}},{key:"idle",get:function(){return!(me(this)||this._state.asyncTo)||ve(this)}},{key:"goal",get:function(){return Object(N.q)(this.animation.to)}},{key:"velocity",get:function(){var e=Object(I.e)(this);return e instanceof I.c?e.lastVelocity||0:e.getPayload().map((function(e){return e.lastVelocity||0}))}},{key:"hasAnimated",get:function(){return be(this)}},{key:"isAnimating",get:function(){return me(this)}},{key:"isPaused",get:function(){return ve(this)}}]),n}(pe);function je(e,t){var n=Q(t),r=Q(e.get());return Object(N.u)(r,n)}function we(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.loop,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.to,r=B(t);if(r){var o=!0!==r&&K(r),a=(o||e).reverse,i=!o||o.reset;return Ce(Object.assign({},e,{loop:t,default:!1,pause:void 0,to:!a||G(n)?n:void 0,from:i?e.from:void 0,reset:i},o))}}function Ce(e){var t=e=K(e),n=t.to,r=t.from,o=new Set;return N.s.obj(n)&&xe(n,o),N.s.obj(r)&&xe(r,o),e.keys=o.size?Array.from(o):null,e}function ke(e){var t=Ce(e);return N.s.und(t.default)&&(t.default=V(t)),t}function xe(e,t){Object(N.l)(e,(function(e,n){return null!=e&&t.add(n)}))}var Se=["onStart","onRest","onChange","onPause","onResume"];function Ee(e,t,n){e.animation[n]=t[n]!==F(t,n)?D(t[n],e.key):void 0}function Re(e,t){for(var n,r,o,a,i,c,s=arguments.length,l=new Array(s>2?s-2:0),u=2;u0,i=this._changed.size>0;(a&&!this._started||i&&!this._started)&&(this._started=!0,Object(N.m)(n,(function(t){var n=u()(t,2),r=n[0],o=n[1];o.value=e.get(),r(o,e,e._item)})));var c=!a&&this._started,s=i||c&&o.size?this.get():null;i&&r.size&&Object(N.m)(r,(function(t){var n=u()(t,2),r=n[0],o=n[1];o.value=s,r(o,e,e._item)})),c&&(this._started=!1,Object(N.m)(o,(function(t){var n=u()(t,2),r=n[0],o=n[1];o.value=s,r(o,e,e._item)})))}},{key:"eventObserved",value:function(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}N.w.onFrame(this._onFrame)}},{key:"idle",get:function(){return!this._state.asyncTo&&Object.values(this.springs).every((function(e){return e.idle}))}},{key:"item",get:function(){return this._item},set:function(e){this._item=e}}]),e}();function _e(e,t){return Promise.all(t.map((function(t){return Ie(e,t)}))).then((function(t){return re(e,t)}))}function Ie(e,t,n){return Me.apply(this,arguments)}function Me(){return(Me=R()(S.a.mark((function e(t,n,r){var o,a,i,c,s,l,u,d,f,p,h,b,m;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.keys,a=n.to,i=n.from,c=n.loop,s=n.onRest,l=n.onResolve,u=N.s.obj(n.default)&&n.default,c&&(n.loop=!1),!1===a&&(n.to=null),!1===i&&(n.from=null),(d=N.s.arr(a)||N.s.fun(a)?a:void 0)?(n.to=void 0,n.onRest=void 0,u&&(u.onRest=void 0)):Object(N.k)(Te,(function(e){var r=n[e];if(N.s.fun(r)){var o=t._events[e];n[e]=function(e){var t=e.finished,n=e.cancelled,a=o.get(r);a?(t||(a.finished=!1),n&&(a.cancelled=!0)):o.set(r,{value:null,finished:t||!1,cancelled:n||!1})},u&&(u[e]=n[e])}})),f=t._state,n.pause===!f.paused?(f.paused=n.pause,Object(N.n)(n.pause?f.pauseQueue:f.resumeQueue)):f.paused&&(n.pause=!0),p=(o||Object.keys(t.springs)).map((function(e){return t.springs[e].start(n)})),h=!0===n.cancel||!0===F(n,"cancel"),(d||h&&f.asyncId)&&p.push(ne(++t._lastAsyncId,{props:n,state:f,actions:{pause:N.v,resume:N.v,start:function(e,n){h?(se(f,t._lastAsyncId),n(ie(t))):(e.onRest=s,n(ce(d,e,f,t)))}}})),!f.paused){e.next=15;break}return e.next=15,new Promise((function(e){f.resumeQueue.add(e)}));case 15:return e.t0=re,e.t1=t,e.next=19,Promise.all(p);case 19:if(e.t2=e.sent,b=(0,e.t0)(e.t1,e.t2),!c||!b.finished||r&&b.noop){e.next=26;break}if(!(m=we(n,c,a))){e.next=26;break}return De(t,[m]),e.abrupt("return",Ie(t,m,!0));case 26:return l&&N.w.batchedUpdates((function(){return l(b,t,t.item)})),e.abrupt("return",b);case 28:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Le(e,t){var n=Object.assign({},e.springs);return t&&Object(N.k)(Object(N.y)(t),(function(e){N.s.und(e.keys)&&(e=Ce(e)),N.s.obj(e.to)||(e=Object.assign({},e,{to:void 0})),ze(n,e,(function(e){return Be(e)}))})),n}function Pe(e,t){Object(N.l)(t,(function(t,n){e.springs[n]||(e.springs[n]=t,Object(N.c)(t,e))}))}function Be(e,t){var n=new Oe;return n.key=e,t&&Object(N.c)(n,t),n}function ze(e,t,n){t.keys&&Object(N.k)(t.keys,(function(r){(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function De(e,t){Object(N.k)(t,(function(t){ze(e.springs,t,(function(t){return Be(t,e)}))}))}var Fe,Ue,Ve=function(e){var t=e.children,n=s()(e,["children"]),r=Object(_.useContext)(qe),o=n.pause||!!r.pause,a=n.immediate||!!r.immediate;n=Object(N.B)((function(){return{pause:o,immediate:a}}),[o,a]);var i=qe.Provider;return Object(_.createElement)(i,{value:n},t)},qe=(Fe=Ve,Ue={},Object.assign(Fe,Object(_.createContext)(Ue)),Fe.Provider._context=Fe,Fe.Consumer._context=Fe,Fe);Ve.Provider=qe.Provider,Ve.Consumer=qe.Consumer;var He=function(e){g()(n,e);var t=M(n);function n(){var e;return A()(this,n),(e=t.call(this,"return arguments.callee._call.apply(arguments.callee, arguments)")).current=[],e}return m()(n,[{key:"_call",value:function(e){Object(N.i)(),this.start(e)}},{key:"set",value:function(e){Object(N.k)(this.current,(function(t){return t.set(e)}))}},{key:"start",value:function(e){var t=this,n=[];return Object(N.k)(this.current,(function(r,o){if(N.s.und(e))n.push(r.start());else{var a=t._getProps(e,r,o);a&&n.push(r.start(a))}})),n}},{key:"update",value:function(e){var t=this;return Object(N.k)(this.current,(function(n,r){return n.update(t._getProps(e,n,r))})),this}},{key:"add",value:function(e){this.current.includes(e)||this.current.push(e)}},{key:"delete",value:function(e){var t=this.current.indexOf(e);~t&&this.current.splice(t,1)}},{key:"_getProps",value:function(e,t,n){return N.s.fun(e)?e(n,t):e}}]),n}(k()(Function));function Ke(e,t,n){var r=arguments,o=N.s.fun(t)&&t;o&&!n&&(n=[]);var a=Object(_.useMemo)((function(){return o||3==r.length?new He:void 0}),[]),c=Object(_.useRef)(0),s=Object(N.z)(),l=Object(_.useMemo)((function(){return{ctrls:[],queue:[],flush:function(e,t){var n=Le(e,t);return c.current>0&&!l.queue.length&&!Object.keys(n).some((function(t){return!e.springs[t]}))?_e(e,t):new Promise((function(r){Pe(e,n),l.queue.push((function(){r(_e(e,t))})),s()}))}}}),[]),u=i()(l.ctrls),d=[],f=Object(N.D)(e)||0,p=u.slice(e,f);function h(e,n){for(var r=e;r0)return void(i<=2147483647&&(n.expirationId=setTimeout(j,i)))}}r&&t.some((function(e){return e.expired}))&&j()}};var v=Le(e.ctrl,d);C.set(e,{phase:o,springs:v,payload:d})}));var k=Object(_.useContext)(Ve),x=Object(N.D)(k),S=k!==x&&W(k);Object(N.A)((function(){S&&Object(N.k)(p,(function(e){e.ctrl.start({default:k})}))}),[k]),Object(N.A)((function(){Object(N.k)(C,(function(e,t){var n=e.phase,r=e.springs,o=e.payload,a=t.ctrl;t.phase=n,null==d||d.add(a),Z(a,o.ref),Pe(a,r),S&&n==We&&a.start({default:k}),a[a.ref?"update":"start"](o)}))}),o?void 0:n);var E=function(e){return Object(_.createElement)(_.Fragment,null,p.map((function(t,n){var r=(C.get(t)||t.ctrl).springs,o=e(Object.assign({},r),t.item,t,n);return o&&o.type?Object(_.createElement)(o.type,Object.assign({},o.props,{key:N.s.str(t.key)||N.s.num(t.key)?t.key:t.ctrl.id,ref:o.ref})):o})))};return d?[E,d]:E}var Ye=1;function Ze(e,t,n){var r=t.key,o=t.keys,a=void 0===o?r:o;if(null===a){var i=new Set;return e.map((function(e){var t=n&&n.find((function(t){return t.item===e&&"leave"!==t.phase&&!i.has(t)}));return t?(i.add(t),t.key):Ye++}))}return N.s.und(a)?e:N.s.fun(a)?e.map(a):Object(N.y)(a)}var Xe=function(e){g()(n,e);var t=M(n);function n(e,r){var a;A()(this,n),(a=t.call(this)).source=e,a.idle=!0,a._active=new Set,a.calc=N.f.apply(void 0,i()(r));var c=a._get(),s=Object(I.f)(c);return Object(I.h)(o()(a),s.create(c)),a}return m()(n,[{key:"advance",value:function(e){var t=this._get(),n=this.get();Object(N.u)(t,n)||(Object(I.e)(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&$e(this._active)&&et(this)}},{key:"_get",value:function(){var e=N.s.arr(this.source)?this.source.map(N.q):Object(N.y)(Object(N.q)(this.source));return this.calc.apply(this,i()(e))}},{key:"_start",value:function(){var e=this;this.idle&&!$e(this._active)&&(this.idle=!1,Object(N.k)(Object(I.g)(this),(function(e){e.done=!1})),N.b.skipAnimation?(N.w.batchedUpdates((function(){return e.advance()})),et(this)):N.o.start(this))}},{key:"_attach",value:function(){var e=this,t=1;Object(N.k)(Object(N.y)(this.source),(function(n){Object(N.r)(n)&&Object(N.c)(n,e),de(n)&&(n.idle||e._active.add(n),t=Math.max(t,n.priority+1))})),this.priority=t,this._start()}},{key:"_detach",value:function(){var e=this;Object(N.k)(Object(N.y)(this.source),(function(t){Object(N.r)(t)&&Object(N.x)(t,e)})),this._active.clear(),et(this)}},{key:"eventObserved",value:function(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=Object(N.y)(this.source).reduce((function(e,t){return Math.max(e,(de(t)?t.priority:0)+1)}),0))}}]),n}(pe);function Je(e){return!1!==e.idle}function $e(e){return!e.size||Array.from(e).every(Je)}function et(e){e.idle||(e.idle=!0,Object(N.k)(Object(I.g)(e),(function(e){e.done=!0})),Object(N.d)(e,{type:"idle",parent:e}))}N.b.assign({createStringInterpolator:N.g,to:function(e,t){return new Xe(e,t)}});N.o.advance},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(11),d=n.n(u),f=n(133),p=n(72),h=n(56);function b(e,t){Object(h.a)(2,arguments);var n=Object(p.a)(e),r=Object(f.a)(t);return n.setSeconds(r),n}var m=n(1386),v=n(1387);function g(e,t){Object(h.a)(2,arguments);var n=Object(p.a)(e),r=Object(p.a)(t);return n.getTime()===r.getTime()}var y=n(212);function O(e){Object(h.a)(1,arguments);var t=Object(p.a)(e);return t.setMinutes(0,0,0),t}function j(e){Object(h.a)(1,arguments);var t=Object(p.a)(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}var w=n(1341);var C=n(1462);var k=n(1463),x=n(954),S=n.n(x),E=n(983),R=n.n(E),T=n(433),A=n.n(T),N=n(178),_=n(1122);function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var M=S()(0,24).map((function(e){return R()(e,2,"0")})),L=S()(0,60).map((function(e){return R()(e,2,"0")})),P=function(e){Object(a.a)(n,e);var t=I(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;iC.a(a);return Object(s.b)(N.a,{value:e,disabled:t,css:function(e){return{color:t?e.colors.GBK07B:e.colors.GBK02A}}},e)}))}),Object(s.b)("span",{className:"DateTimePicker-label",children:"时"}),Object(s.b)(N.b,{listClassName:"DateTimePicker-selectList",large:r,value:w.a(u,"mm"),onChange:function(t){return e.handleChange(function(e,t){Object(h.a)(2,arguments);var n=Object(p.a)(e),r=Object(f.a)(t);return n.setMinutes(r),n}(u,t),{minutes:t})},children:L.map((function(e){var t=x&&ek.a(a);return Object(s.b)(N.a,{value:e,disabled:t,css:function(e){return{color:t?e.colors.GBK07B:e.colors.GBK02A}}},e)}))}),Object(s.b)("span",{className:"DateTimePicker-label",children:"分"})]})}}]),n}(l.Component);t.a=P},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return j})),n.d(t,"e",(function(){return C})),n.d(t,"f",(function(){return S})),n.d(t,"d",(function(){return _})),n.d(t,"g",(function(){return L}));var r=n(1),o=n.n(r),a=n(30),i=n(232),c=n(851),s=function(e){var t=Object(i.i)().trackEvent,n=Object(r.useCallback)((function(n){!function(e,t,n){if(!e.defaultPrevented){var r=e.target.getAttribute("data-catalog-target-id");if(r){n({action:"OpenUrl",block:"ZTextCatalog",eventType:"Click",elementLocation:{type:"Button",text:e.target.innerText}},{link:{url:window.location.href}}),a.a.trackEvent(e.target);var o=t.querySelector("#"+r);o&&(e.preventDefault(),Object(c.a)(o,10,!1))}}}(n,e,t)}),[e,t]);Object(r.useEffect)((function(){if(e)return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}),[e,n])},l=function(e){Object(r.useEffect)((function(){e&&Array.from(e.querySelectorAll("img[eeimg]")).forEach((function(e){e.setAttribute("data-formula",e.alt),e.alt="[公式]"}))}),[e])},u=(n(883),n(55)),d=n.n(u),f=n(64),p=n.n(f),h=n(152),b=function(e){return e.replace(/\.(jpg|png|jpeg|gif)/,".webp")},m=n(922),v=n(924),g=p()((function(){return/Mobile/.test(navigator.userAgent)}));function y(e,t){var n={monitor:{type:"Event",imgResourceErrorInfo:{error_description:t,img_url:e,img_from:"web"}}};a.a.trackMonitor({name:t},n)}var O=function(e){var t=e.onLoadStateChange,n=e.enableWebP,r=e.size,o=e.quality;return function(e){var a=e.target,i=function(e){var t=e.image,n=e.enableWebP,r=e.size,o=e.quality,a=void 0===o?80:o,i=t.dataset,c=i.actualsrc,s=i.actualgif;return n&&s&&s.match(/.gif$/i)?c:(r||(r="720w",!g()&&window.devicePixelRatio>=1.5&&(r="1440w"),g()&&window.devicePixelRatio*window.innerWidth>=1080&&(r="1440w")),Object(h.imgUrl)(c,{quality:a,size:r}))}({image:a,enableWebP:n,size:r,quality:o});if(n&&(i=b(i)),a.src=i,a.complete)a.dataset.lazyStatus="ok";else{t&&a.addEventListener("loadstart",(function(){t("loadstart",i)})),a.dataset.lazyStatus="loading";var c=setTimeout((function(){a.complete||y(a.url,"image_web_timeout_image"),t&&t("timeout",i)}),15e3);a.addEventListener("load",(function(){a.dataset.lazyStatus="ok",clearTimeout(c),y(a.url,"image_web_success_image"),t&&t("load",i)})),a.addEventListener("error",(function(){clearTimeout(c),y(a.url,"image_web_fail_image"),t&&t("error",i)}))}}},j=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.useWebP,o=void 0===n||n,a=t.disabled,i=void 0!==a&&a,c=t.onLoadStateChange,s=t.size,l=t.quality,u=Object(r.useState)([]),f=d()(u,2),p=f[0],h=f[1],b=Object(v.a)("lossless");Object(m.a)(p,O({onLoadStateChange:c,enableWebP:b&&o,size:s,quality:l}),{rootMargin:"300px"}),Object(r.useEffect)((function(){if(e&&!i){var t=Array.from(e.querySelectorAll("img.lazy:not([data-thumbnail])"));t.length&&h(t)}}),[e,i])},w=n(78),C=function(e,t){var n=Object(w.c)((function(n){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.defaultPrevented&&e.target.matches("a[data-reference-link]")){var r=e.target.getAttribute("href"),o=t.querySelector(r);if(o){if(e.preventDefault(),n.onReferenceClick&&e.target.hasAttribute("aria-labelledby"))return void n.onReferenceClick(e);o.focus({preventScroll:!0}),Object(c.a)(o),document.documentElement.setAttribute("data-focus-visible","")}}}(n,e,t)}));Object(r.useEffect)((function(){if(e)return e.addEventListener("click",n),function(){e.removeEventListener("click",n)}}),[e,n])},k=(n(577),function(e){var t=function(e){if(0!==e.intersectionRatio){var t=e.target;t.dataset.zaDetailViewId=t.cardShowViewId,a.a.trackCardShow(t,{},{link:{url:t.href}}),n.unobserve(t),t.clickViewId&&(t.dataset.zaDetailViewId=t.clickViewId)}},n=new IntersectionObserver((function(e){e.forEach(t)}),{threshold:[.1]});return[{cardShowViewId:1042,clickViewId:1043,selector:"a.external, a.internal"},{cardShowViewId:1044,clickViewId:1045,selector:"a.member_mention, a.UserLink-link"},{cardShowViewId:174,clickViewId:175,selector:"a.video-box"},{cardShowViewId:171,clickViewId:172,selector:'a[data-draft-type="link-card"]'},{cardShowViewId:7692,selector:"a.FileLinkCard .FileLinkCard-info"},{cardShowViewId:9744,selector:".Catalog"}].forEach((function(t){var r=t.selector,o=t.cardShowViewId,a=t.clickViewId;Array.from(e.querySelectorAll(r)).forEach((function(e){e.cardShowViewId=o,e.clickViewId=a,n.observe(e)}))})),function(){n.disconnect()}}),x="function"==typeof queueMicrotask?queueMicrotask:function(e){return Promise.resolve().then(e)},S=function(e){var t=Object(r.useRef)(null);Object(r.useEffect)((function(){if(e)return x((function(){e&&(t.current=k(e))})),function(){t.current&&t.current()}}),[e])},E=n(33),R=n.n(E),T=n(934),A=n(873),N=n(5),_=function(e){var t=e.contentType,n=e.token,a=e.root,i=e.mcnLinkCardProps,c=Object(r.useState)(null),s=d()(c,2),l=s[0],u=s[1],f=Object(r.useState)(!1),p=d()(f,2),h=p[0],b=p[1];return Object(r.useEffect)((function(){var e=a&&a.querySelector("*[data-draft-type=mcn-link-card]");["answer","article"].includes(t)&&e&&Object(A.a)("/api/v4/mcn/linkcards?content_type=".concat(t,"&token=").concat(n)).then((function(e){var t=e.data;t&&(u(t),b(!0))})).catch((function(){b(!0)}))}),[a]),Object(N.g)(o.a.Fragment,null,h&&Object(N.g)(T.d,R()({},i,{goodsRecommendCards:l,root:a})))},I=n(841),M=n(920),L=function(e,t,n){var o=Object(r.useRef)(n),a=Object(w.c)((function(e){var n=e.currentTarget,r={title:n.dataset.text,href:n.href};"IMG"===e.target.tagName?Object(M.b)(e,t,Object.assign({},r,{video:{}})):Object(M.c)(e,t,r)}));Object(r.useEffect)((function(){if(e&&o.current){var t=Array.from(e.querySelectorAll(".LinkCard.new.static.zvideo"));return t.forEach((function(e){Object(I.onViewedOnce)(e,(function(){return Object(M.d)(e)})),e.addEventListener("click",a)})),function(){t.forEach((function(e){e.removeEventListener("click",a)}))}}}),[e,o,a])}},function(e,t,n){"use strict";n.d(t,"b",(function(){return _})),n.d(t,"a",(function(){return d}));var r=n(3),o=n.n(r),a=n(1),i=n(11),c=n.n(i),s=n(177),l=n(5),u=function(e){var t=e.title,n=e.subtitle,r=e.attrInfo,o=e.coverUrl,a=e.avatarUrl,i=e.avatarFit;return Object(l.g)("div",null,o&&Object(l.g)("div",{className:"HoverCard-coverContainer"},Object(l.g)("img",{className:"HoverCard-cover",src:o,alt:"cover"})),Object(l.g)("div",{className:c()("HoverCard-titleContainer",{"HoverCard-titleContainer--noAvatar":!o})},a&&Object(l.g)(s.a,{size:68,className:"HoverCard-avatar",url:a,imgFit:i}),Object(l.g)("div",{className:c()("HoverCard-titleText",{"HoverCard-titleText--noAvatar":!a})},Object(l.g)("div",{className:"HoverCard-title"},t),n&&Object(l.g)("div",{className:"HoverCard-subtitle"},n)),r&&Object(l.g)("div",{className:"HoverCard-attrInfo"},r)))};u.propTypes={title:o.a.node,subtitle:o.a.node,attrInfo:o.a.node,coverUrl:o.a.string,avatarUrl:o.a.string,avatarFit:o.a.oneOf(["fill","contain","cover","none","scale-down"])};var d=u,f=n(20),p=n.n(f),h=n(21),b=n.n(h),m=n(22),v=n.n(m),g=n(23),y=n.n(g),O=n(13),j=n.n(O),w=n(33),C=n.n(w),k=n(41),x=n.n(k),S=n(83),E=n.n(S),R=n(375),T=n(138);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=j()(e);if(t){var o=j()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y()(this,n)}}var N=function(e){v()(n,e);var t=A(n);function n(){var e;p()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:"",t=e;if(P.test(e)){var n=e.match(/target=([^=]+)/)||[],r=h()(n,2),o=r[1];o&&(t=decodeURIComponent(o))}var a=t.split("/"),i=h()(a,3),c=i[2];return c||""},z=function(e){s()(n,e);var t=M(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"renderLinkMeta",value:function(){var e=this.props,t=e.url,n=e.entityType,r=e.entityData,o=B(t);if(n&&r&&"job"===n){var a=r.salary,i=r.city,c=r.location,s=r.seniority,l=r.education;return Object(I.g)("span",{className:"LinkCard-meta"},Object(I.g)("span",{className:"LinkCard-textMeta"},s&&Object(I.g)("span",{className:"LinkCard-metaItem"},s),l&&Object(I.g)("span",{className:"LinkCard-metaItem"},l),(i||c)&&Object(I.g)("span",{className:"LinkCard-metaItem"},i,Object(I.g)("span",{className:"LinkCard-metaItem-jobLocation"},c))),a&&Object(I.g)("span",{className:"LinkCard-badge"},a))}return Object(I.g)("span",{className:"LinkCard-meta"},Object(I.g)(S.a,{size:17,center:!0}),o)}},{key:"render",value:function(){var e=A()(this.props,["entityType","entityData"]),t=e.text,n=e.target,r=e.url,o=e.image,a=e.imageWidth,i=e.imageHeight,c=e.component,s=e.className,l=e.size,u=g()(e,["text","target","url","image","imageWidth","imageHeight","component","className","size"]);if(Object(_.b)(r))return Object(I.g)(_.a,m()({className:R()("old",s)},this.props));var d=function(e,t){if(e>0&&t>0){var n=e/t;if(n>1.2)return{modifier:"horizontal",size:"180x120"};if(n<=.8)return{modifier:"vertical",size:"120x160"}}return{modifier:"square",size:"ipico"}}(a,i),f=d.modifier,p=d.size,h=!o&&function(e){var t=B(e);return"zhihu.com"===t||t.endsWith(".zhihu.com")}(r)?"https://zhstatic.zhihu.com/assets/zhihu/editor/zhihu-card-default.svg":Object(N.imgUrl)(o,p);return Object(I.g)(c,m()({target:n,href:r,"data-draft-node":"block","data-draft-type":"link-card"},h&&{"data-image":h},a&&{"data-image-width":a},i&&{"data-image-height":i},l&&{"data-size":l},{className:R()("LinkCard old",s,{"LinkCard--hasImage":Boolean(h),"LinkCard--noImage":!h})},u),h&&Object(I.g)("span",{className:"LinkCard-backdrop",style:{backgroundImage:"url(".concat(h,")")}}),Object(I.g)("span",{className:"LinkCard-content"},Object(I.g)("span",{className:"LinkCard-text"},Object(I.g)("span",{className:"LinkCard-title","data-text":!0},t),this.renderLinkMeta()),Object(I.g)("span",{className:"LinkCard-imageCell"},h?Object(I.g)("img",{className:R()("LinkCard-image","LinkCard-image--".concat(f)),alt:"图标",src:h}):Object(I.g)(L,null))))}}]),n}(O.a.Component);z.propTypes={component:w.a.oneOfType([w.a.string,w.a.func]),target:w.a.string,url:w.a.string.isRequired,text:w.a.string.isRequired,image:w.a.string,imageWidth:w.a.oneOfType([w.a.string,w.a.number]),imageHeight:w.a.oneOfType([w.a.string,w.a.number])},z.defaultProps={component:"a",target:"_blank"};t.a=z},function(e,t,n){var r=n(946),o=n(207);e.exports=function(e,t){var n=-1,a=o(e)?Array(e.length):[];return r(e,(function(e,r,o){a[++n]=t(e,r,o)})),a}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(365);function o(e){return Object(r.formatNumber)(e)||"--"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),o=n(6),a=n(25),i=n(24),c=Object(o.a)("user",["UPDATE_FOLLOWERS_PIN"]).UPDATE_FOLLOWERS_PIN;function s(e,t,n){return function(o,s){var l=s(),u=l.entities.users,d=l.currentUser,f=u[e];return o(n?Object(a.h)(i.U.blocked,"red"):{urlToken:d,userUrlToken:e,expect:t,API:{types:c,endpoint:"members/".concat(e,"/followers"),method:t?"POST":"DELETE"},UPDATE:{request:{users:Object(r.a)({},e,{isFollowing:t})},failure:{users:Object(r.a)({},e,f)},success:function(t){return{users:Object(r.a)({},e,t)}}}})}}},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(30),p=n(176),h=n(365),b=n(870),m=n(1120),v=n(859),g=n(944),y=n(854),O=(n(1151),n(926)),j=n(908);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var C=function(e){Object(a.a)(n,e);var t=w(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.user;f.a.setModule(this,{module:"UserItem"},{card:{content:{type:"User",member_hash_id:e.id,follower_num:e.followerCount}}})}},{key:"renderRewardDetails",value:function(){var e=this.props.user,t=e.amount,n=e.rewardCreated;return Object(s.c)("div",{className:"ContentItem-rewardDetails",children:[Object(s.b)("p",{className:"ContentItem-rewardAmount",children:t&&"赞赏了 ¥".concat(t/100)}),Object(s.b)("p",{className:"ContentItem-rewardTime",children:Object(p.toRelativeString)(n)})]})}},{key:"render",value:function(){var e=this.props,t=e.user,n=t.urlToken,r=t.isFollowed,o=t.isFollowing,a=t.answerCount,i=t.articlesCount,c=t.followerCount,l=t.id,u=t.isOrg,d=e.user,f=e.type,p=e.isRewardList,w=e.action,C=e.meta,k=e.status,x=e.noTrackCardShow,S=e.onClick,E=e.currentUser,R=!n,T=E&&E.id===l,A=void 0!==w?w:!T&&!R&&Object(s.b)(b.a,{id:d.urlToken,type:f||d.type,preset:b.a.PRESETS.primary,gender:d.gender,isFollowing:o,onClick:S}),N=void 0!==C?C:R||Object(s.b)(g.a,{user:d}),_=void 0!==k?Object(s.b)(y.d,{children:k}):!R&&Object(s.c)(y.d,{children:[Boolean(a)&&"".concat(Object(h.formatNumber)(a)," 回答"),Boolean(i)&&"".concat(Object(h.formatNumber)(i)," 文章"),Boolean(c)&&"".concat(Object(h.formatNumber)(c)," 关注者")]}),I="//www.zhihu.com/".concat(u?"org":"people","/").concat(n||l),M=this.props.userLinkV2;return Object(s.b)(y.e,{data:d,link:I,image:M?Object(s.b)(O.a,{className:"UserItem-avatar",avatarProps:{size:60},user:d,target:"_blank"}):Object(s.b)(v.a,{className:"UserItem-avatar",avatar:!0,avatarProps:{size:60},user:d,target:"_blank"}),title:Object(s.c)("div",{className:"UserItem-title",children:[M?Object(s.b)(j.a,{user:d,target:"_blank"}):Object(s.b)(v.a,{user:d,target:"_blank"}),Object(s.b)(m.a,{isFollowing:o,isFollowed:r})]}),meta:Object(s.c)("div",{children:[N,_]}),noTrackCardShow:x,extra:p?this.renderRewardDetails():A})}}]),n}(d.Component);C.contextTypes={authRequired:u.a.func},C.propTypes={action:u.a.node,status:u.a.node,meta:u.a.node,type:u.a.string,isRewardList:u.a.bool,onClick:u.a.func,currentUser:u.a.object},t.a=C},,function(e,t,n){"use strict";var r=n(843);t.a=function(e,t,n,o){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:" ",i=e.getSelection(),c=e.getCurrentContent(),s=c.createEntity(t,n,o),l=s.getLastCreatedEntityKey(),u=r.EditorState.set(e,{currentContent:s}),d=(u=r.AtomicBlockUtils.insertAtomicBlock(u,l,a)).getCurrentContent(),f=d.getBlockMap(),p=i.getStartKey(),h=d.getBlockForKey(p);h!==f.first()&&0===h.getLength()&&(f=f.delete(p),d=d.merge({blockMap:f}));var b=u.getSelection().getFocusKey(),m=d.getBlockForKey(b);return m!==f.last()&&0===m.getLength()&&(f=f.delete(b),d=d.merge({blockMap:f,selectionAfter:r.SelectionState.createEmpty(d.getKeyAfter(b))})),u=r.EditorState.set(u,{currentContent:d}),r.EditorState.forceSelection(u,u.getCurrentContent().getSelectionAfter())}},function(e,t,n){var r=n(1028),o=n(319),a=n(408);e.exports=function(e){return function(t,n,i){return i&&"number"!=typeof i&&o(t,n,i)&&(n=i=void 0),t=a(t),void 0===n?(n=t,t=0):n=a(n),i=void 0===i?t0&&(f=Object.assign({},f,Object(o.a)({},d,l()(u[d],p)))),Object(i.b)(e,Object.assign({},f))})),e)},m=n(1),v=Object(m.createContext)({showLabelInfo:!0,showLabels:!0}),g=v.Provider,y=v.Consumer,O=function(e){return function(t){var n=Object(i.b)(y,{children:function(n){return Object(i.b)(e,Object.assign({},t,{showLabelProps:n}))}});return d()(n,e)}}},function(e,t,n){"use strict";var r=n(2),o=n(27),a=n(36),i=n(38),c=n.n(i),s=n(37),l=n.n(s),u=n(101);t.a=Object(o.connect)((function(e){var t;return{vipInfo:null===(t=Object(a.b)(e))||void 0===t?void 0:t.vipInfo}}))((function(e){var t=e.widget,n=e.className,o=e.vipInfo,a=t.id,i=t.url;return Object(r.b)(u.a,{className:n,onClick:function(){var e;(null==o||null===(e=o.widget)||void 0===e?void 0:e.id)!=="".concat(a)&&(l.a.set("widgetId",a),l.a.set("widgetUrl",i))},preset:"link",a:!0,to:"https://".concat(c.a.wwwHost,"/settings/stickers"),children:Object(r.b)("img",{src:i,style:{width:"100%"}})})}))},function(e,t,n){"use strict";var r=n(850),o=n(838),a=n(860),i=o.OrderedMap;e.exports=function(e){return e.first()instanceof r?function(e){var t={},n=void 0;return i(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),c=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),l=r.getChildKeys(),u=r.getParentKey(),d=a();(t[i]=d,c)&&(e.get(c)?e.setIn([c,"prevSibling"],d):e.setIn([i,"nextSibling"],null));s&&(e.get(s)?e.setIn([s,"nextSibling"],d):e.setIn([i,"prevSibling"],null));if(u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"children"],f.set(f.indexOf(r.getKey()),d))}else e.setIn([i,"parent"],null),n&&(e.setIn([n.getKey(),"nextSibling"],d),e.setIn([i,"prevSibling"],t[n.getKey()])),n=e.get(i);l.forEach((function(t){e.get(t)?e.setIn([t,"parent"],d):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]})))}(e):function(e){return i(e.toArray().map((function(e){var t=a();return[t,e.set("key",t)]})))}(e)}},function(e,t,n){"use strict";var r=n(847),o=n(896),a=n(839);function i(e,t,n){var i=t.getCharacterList(),c=n>0?i.get(n-1):void 0,s=n=n&&(r={start:e,end:t})})),"object"!=typeof r&&a(!1),r}(i,u,n),p=f.start,h=f.end;p0&&window.scrollTo(o.x,o.y+a+10)}else{n instanceof HTMLElement||g(!1),(a=n.offsetHeight+n.offsetTop-(r.offsetHeight+o.y))>0&&u.setTop(r,u.getTop(r)+a+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),o=t.getText(),a=this.props.tree.size-1,l=O(this.props.selection,n);return this.props.tree.map((function(u,d){var h=u.get("leaves"),b=h.size-1,m=h.map((function(r,u){var f=c.encode(n,d,u),p=r.get("start"),h=r.get("end");return s.createElement(i,{key:f,offsetKey:f,block:t,start:p,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(p,h),styleSet:t.getInlineStyleAt(p),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:d===a&&u===b})})).toArray(),v=u.get("decoratorKey");if(null==v)return m;if(!e.props.decorator)return m;var g=y(e.props.decorator),O=g.getComponentForKey(v);if(!O)return m;var j=g.getPropsForKey(v),w=c.encode(n,d,0),C=o.slice(h.first().get("start"),h.last().get("end")),k=p.getHTMLDirIfDifferent(f.getDirection(C),e.props.direction);return s.createElement(O,r({},j,{contentState:e.props.contentState,decoratedText:C,dir:k,key:w,entityKey:t.getEntityAt(u.get("start")),offsetKey:w}),m)})).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,n=e.offsetKey,r=h({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return s.createElement("div",{"data-offset-key":n,className:r},this._renderChildren())},t}(s.Component);e.exports=j},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";function r(e,t){return!!t&&(e===t.documentElement||e===t.body)}var o={getTop:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return r(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;r(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=o},function(e,t,n){"use strict";var r=n(1225),o=n(1226),a=n(945),i=new RegExp("\r\n","g"),c={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?o(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return c[e]}))},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n0},e}();e.exports=l},function(e,t,n){"use strict";e.exports=function e(t){if(t instanceof Element){var n=t.getAttribute("data-offset-key");if(n)return n;for(var r=0;r0&&(n=a.childNodes.length)),0===n){var u=null;if(null!=s)u=s;else{var d=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||o(e.firstChild));)e=e.firstChild;return e}(a);u=c(o(d))}return{key:u,offset:0}}var f=a.childNodes[n-1],p=null,h=null;if(o(f)){var b=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||o(e.lastChild));)e=e.lastChild;return e}(f);p=c(o(b)),h=l(b)}else p=c(s),h=l(f);return{key:p,offset:h}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,n,o,i,l){var u=n.nodeType===Node.TEXT_NODE,d=i.nodeType===Node.TEXT_NODE;if(u&&d)return{selectionState:a(e,c(r(n)),o,c(r(i)),l),needsRecovery:!1};var f=null,p=null,h=!0;return u?(f={key:c(r(n)),offset:o},p=s(t,i,l)):d?(p={key:c(r(i)),offset:l},f=s(t,n,o)):(f=s(t,n,o),p=s(t,i,l),n===i&&o===l&&(h=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:a(e,f.key,f.offset,p.key,p.offset),needsRecovery:h}}},function(e,t,n){"use strict";var r="\\s|(?![_])"+n(1243).getPunctuation(),o=new RegExp("^(?:"+r+")*(?:['‘’]|(?!"+r+").)*(?:(?!"+r+").)"),a=new RegExp("(?:(?!"+r+").)(?:['‘’]|(?!"+r+").)*(?:"+r+")*$");function i(e,t){var n=t?a.exec(e):o.exec(e);return n?n[0]:e}var c={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}};e.exports=c},function(e,t,n){"use strict";e.exports=function(e,t){var n,r=e.getSelection(),o=r.getStartKey(),a=r.getStartOffset(),i=e.getCurrentContent(),c=o;return t>i.getBlockForKey(o).getText().length-a?(c=i.getKeyAfter(o),n=0):n=a+t,r.merge({focusKey:c,focusOffset:n})}},function(e,t,n){"use strict";var r,o=a||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return o({},B,e)},K=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[C()],entities:new Array(1),blocks:[H({parent:n,key:v(),type:e,depth:Math.max(0,Math.min(4,t))})]}},Q=function e(t,n,r,a,i,c,s,l,u,f){var p=L,h=n.nodeName.toLowerCase(),m=t,v="unstyled",g=!1,y=i&&D(i,a,l),O=o({},P),w=void 0;if("#text"===h){var C=n.textContent,k=C.trim();if(a&&""===k&&n.parentElement){var S=n.parentElement.nodeName.toLowerCase();if("ol"===S||"ul"===S)return{chunk:o({},P),entityMap:t}}return""===k&&"pre"!==i?{chunk:V(u),entityMap:t}:("pre"!==i&&(C=C.replace(x," ")),L=h,{chunk:{text:C,inlines:Array(C.length).fill(r),entities:Array(C.length).fill(u),blocks:[]},entityMap:t})}if(L=h,"br"===h)return"br"!==p||i&&"unstyled"!==y?{chunk:q(),entityMap:t}:{chunk:K("unstyled",s,f),entityMap:t};if("img"===h&&n instanceof HTMLImageElement&&n.attributes.getNamedItem("src")&&n.attributes.getNamedItem("src").value){var E=n,R={};M.forEach((function(e){var t=E.getAttribute(e);t&&(R[e]=t)})),n.textContent="📷",u=d.__create("IMAGE","MUTABLE",R||{})}r=function(e,t,n){var r=N[e];if(r)n=n.add(r).toOrderedSet();else if(t instanceof HTMLElement){var o=t;n=n.withMutations((function(e){var t=o.style.fontWeight,n=o.style.fontStyle,r=o.style.textDecoration;T.indexOf(t)>=0?e.add("BOLD"):A.indexOf(t)>=0&&e.remove("BOLD"),"italic"===n?e.add("ITALIC"):"normal"===n&&e.remove("ITALIC"),"underline"===r&&e.add("UNDERLINE"),"line-through"===r&&e.add("STRIKETHROUGH"),"none"===r&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))})).toOrderedSet()}return n}(h,n,r),"ul"!==h&&"ol"!==h||(a&&(s+=1),a=h),!j&&"li"===h&&n instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(_).some((function(n){e.classList.contains(n)&&(t=_[n])})),t}(n,s));var B=D(h,a,l),z=a&&"li"===i&&"li"===h,H=(!i||j)&&-1!==c.indexOf(h);(z||H)&&(w=(O=K(B,s,f)).blocks[0].key,i=h,g=!j),z&&(v="ul"===a?"unordered-list-item":"ordered-list-item");var Q=n.firstChild;null!=Q&&(h=Q.nodeName.toLowerCase());for(var W=null;Q;){Q instanceof HTMLAnchorElement&&Q.href&&U(Q)?function(){var e=Q,t={};I.forEach((function(n){var r=e.getAttribute(n);r&&(t[n]=r)})),t.url=new b(e.href).toString(),W=d.__create("LINK","MUTABLE",t||{})}():W=void 0;var G=e(m,Q,r,a,i,c,s,l,W||u,j?w:null),Y=G.chunk;m=G.entityMap,O=F(O,Y,j);var Z=Q.nextSibling;!f&&Z&&c.indexOf(h)>=0&&i&&(O=F(O,q())),Z&&(h=Z.nodeName.toLowerCase()),Q=Z}return g&&(O=F(O,K(v,s,f))),{chunk:O,entityMap:m}},W=function(e,t,n,r){e=e.trim().replace(k,"").replace(S," ").replace(E,"").replace(R,"");var a=function(e){var t=e.get("unstyled").element,n=h([]);return e.forEach((function(e){e.aliasedElements&&e.aliasedElements.forEach((function(e){n=n.add(e)})),n=n.add(e.element)})),n.filter((function(e){return e&&e!==t})).toArray().sort()}(n),i=t(e);if(!i)return null;L=null;var c=function(e,t){return t.some((function(t){return-1!==e.indexOf("<"+t)}))}(e,a)?a:["div"],s=Q(r,i,C(),"ul",null,c,-1,n),l=s.chunk,u=s.entityMap;return 0===l.text.indexOf("\r")&&(l={text:l.text.slice(1),inlines:l.inlines.slice(1),entities:l.entities.slice(1),blocks:l.blocks}),"\r"===l.text.slice(-1)&&(l.text=l.text.slice(0,-1),l.inlines=l.inlines.slice(0,-1),l.entities=l.entities.slice(0,-1),l.blocks.pop()),0===l.blocks.length&&l.blocks.push(o({},P,{type:"unstyled",depth:0})),l.text.split("\r").length===l.blocks.length+1&&l.blocks.unshift({type:"unstyled",depth:0}),{chunk:l,entityMap:u}},G=function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,n=e.blocks,r=e.inlines,o=e.entities,a=j?l:s;return e.text.split("\r").reduce((function(e,i,s){i=O(i);var u=n[s],d=t+i.length,f=r.slice(t,d),p=o.slice(t,d),h=w(f.map((function(e,t){var n={style:e,entity:null};return p[t]&&(n.entity=p[t]),c.create(n)})));t=d+1;var b=u.depth,m=u.type,g=u.parent,y=u.key||v(),j=null;if(g){var C=e.cacheRef[g],k=e.contentBlocks[C];if(k.getChildKeys().isEmpty()&&k.getText()){var x=k.getCharacterList(),S=k.getText();j=v();var E=new l({key:j,text:S,characterList:x,parent:g,nextSibling:y});e.contentBlocks.push(E),k=k.withMutations((function(e){e.set("characterList",w()).set("text","").set("children",k.children.push(E.getKey()))}))}e.contentBlocks[C]=k.set("children",k.children.push(y))}var R=new a({key:y,parent:g,type:m,depth:b,text:i,characterList:h,prevSibling:j||(0===s||n[s-1].parent!==g?null:n[s-1].key),nextSibling:s===n.length-1||n[s+1].parent!==g?null:n[s+1].key});return e.contentBlocks.push(R),e.cacheRef[R.key]=s,e}),{cacheRef:{},contentBlocks:[]}).contentBlocks};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,r=W(e,t,n,d);if(null==r)return null;var o=r.chunk,a=r.entityMap,i=G(o);return{contentBlocks:i,entityMap:a}}},function(e,t,n){"use strict";var r=n(855),o=n(839),a=r.isBrowser("IE <= 9");e.exports=function(e){var t,n=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n}},function(e,t,n){"use strict";var r=n(846),o=n(840),a=(n(874),n(1255)),i=n(852),c={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return c.toggleInlineStyle(e,"BOLD");case"italic":return c.toggleInlineStyle(e,"ITALIC");case"underline":return c.toggleInlineStyle(e,"UNDERLINE");case"code":return c.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return c.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return c.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=r.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=o.push(e,t,"insert-characters");return o.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),a=n.getBlockBefore(r);if(a&&"atomic"===a.getType()){var i=n.getBlockMap().delete(a.getKey()),s=n.merge({blockMap:i,selectionAfter:t});if(s!==n)return o.push(e,s,"remove-range")}var l=c.tryToRemoveBlockStyle(e);return l?o.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),a=t.getStartKey(),i=n.getBlockForKey(a).getLength();if(t.getStartOffset()0&&i!==c)return null;var s=i.getType(),l=a.getBlockBefore(o);if("code-block"===s&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==s)return r.setBlockType(a,t,"unstyled")}return null}};e.exports=c},function(e,t,n){"use strict";var r=n(973),o=n(967),a=n(855),i=a.isPlatform("Mac OS X"),c=a.isPlatform("Windows"),s=i&&a.isBrowser("Firefox < 29"),l=r.hasCommandModifier,u=r.isCtrlKeyCommand;function d(e){return i&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!c&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return i&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&u(e)?"backspace-word":null;case 89:return u(e)?c?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case o.RETURN:return"split-block";case o.DELETE:return function(e){return c&&e.shiftKey?null:d(e)?"delete-word":"delete"}(e);case o.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":d(e)?"backspace-word":"backspace"}(e);case o.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case o.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,n){"use strict";var r={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=r},,function(e,t,n){"use strict";function r(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…";return e.length>t?e.slice(0,t)+n:e}function o(e,t){for(var n,r=0,o="",a=e.length,i=0;i=t-1));i+=1);return o}n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return c}));var a=null;function i(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"…",c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];"undefined"==typeof document?t=o(n=e.replace(/<.+?>/g,""),r):((a=a||document.createElement("div")).textContent=e,t=o(n=a.textContent.replace(/<.+?>/g,""),r));var s=!1;return t!==n&&(s=!0,t=t.slice(0,t.length-i.length),t+=i),c?{output:t,truncated:s}:t}function c(e){return/\uD83C[\uDF00-\uDFFF]|\uD83D[\uDC00-\uDE4F]/g.test(e)}},function(e,t,n){"use strict";var r=n(43),o=n(1),a=n(37),i=n.n(a);t.a=function(e){var t=Object(o.useState)((function(){return i.a.get(e)})),n=Object(r.a)(t,2),a=n[0],c=n[1];return[a,Object(o.useCallback)((function(t){i.a.set(e,t),c(t)}),[e])]}},,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["children","render","tag","innerRef","triggerOnce","threshold","root","rootId","rootMargin"])),c=this.state.inView;return a.createElement(o,r({},i,{ref:this.handleNode}),"function"==typeof n?n(c):null,"function"==typeof t?t(c):t)}}]),t}(a.Component);l.defaultProps={tag:"div",threshold:0,triggerOnce:!1},t.default=l},function(e,t,n){"use strict";n.d(t,"a",(function(){return $}));var r=n(74),o=n.n(r),a=n(55),i=n.n(a),c=n(33),s=n.n(c),l=n(41),u=n.n(l),d=n(1),f=n.n(d),p=n(3),h=n.n(p),b=n(132),m=n(233),v=n.n(m);var g=function(e){return e.length?function(t,n){var r=this;return e.reverse().reduce((function(e,t){return t.call(r,e,n)}),t)}:v.a},y=n(237),O=n(11),j=n.n(O),w=n(1085),C=n.n(w),k=n(881),x=/


<\/p>/g,S=function(e){return e?e.replace(x,'


'):e},E=n(856),R=n(1020),T=n(886),A=n(7),N=n(882),_=n(931),I=n(5),M=function(e){var t=e.className,n=e.html;return n?Object(I.g)("span",{className:"LinkCard-richText ".concat(t),dangerouslySetInnerHTML:{__html:"".concat(n,"")}}):null},L={title:function(e,t){var n=e.title,r=e.content,o="5"===t||"6"===t||!r;return Object(I.g)(_.c,{key:"title",twoLine:o},n)},excerpt:function(e){var t=e.content;return Object(I.g)(M,{key:"excerpt",className:"LinkCard-excerpt",html:t})},desc:function(e){var t=e.desc;return Object(I.g)(M,{key:"desc",className:"LinkCard-desc",html:t})},url:function(e){var t=e.content,n=e.desc,r=e.url;return!t&&!n&&Object(I.g)(_.b,{key:"url",url:r})}},P={1:["title","excerpt","desc","url"],5:["title"],6:["title","desc","url"],7:["title","excerpt","url"]},B=function(e){var t=e.data,n=e.newLinkCardAb,r=t.image,o=t.ratio,a=t.isVideo,i=P[n]||P[1];return Object(I.g)(f.a.Fragment,null,Object(I.g)("span",{className:"LinkCard-contents"},i.map((function(e){return L[e](t,n)}))),Object(I.g)(_.a,{url:r,ratio:o,isVideo:a}))},z=(n(932),{ANSWER:"Answer",ARTICLE:"Column",ZVIDEO:"Zvideo",QUESTION:"Question",COLLECTION:"Collection",ROUNDTABLE:"Roundtable",SPECIAL:"Special",TOPIC:"Topic"}),D=function(e){if(Object(N.b)(e.url))return Object(I.g)(N.a,s()({},e,{className:j()("old",e.className)}));var t=Object(d.useMemo)((function(){return function(e){var t={};if(e.data){var n=Object(A.camelizeKeys)(JSON.parse(e.data)),r=n.source,o=void 0===r?{}:r,a=n.display,i=void 0===a?{}:a,c=n.zaData,s=void 0===c?{}:c,l=i.cardOpenUrl,u=i.title,d=i.content,f=i.desc,p=i.image||{};t={source:o,url:l,title:u,content:d,desc:f,image:p.imageUrl,ratio:p.ratio,isVideo:p.isVideo,zaAttachInfo:s.attachInfo}}return Object.assign({},t,{},e,{title:e.text||t.title,image:t.image||e.image})}(e)}),[e]),n=t.source,r=t.target,o=t.title,a=t.url,i=t.zaAttachInfo;return Object(I.g)(T.a,{notCommerce:!0,target:r,text:o,url:a,"data-za-attach-info":i,"data-za-content-type":z[null==n?void 0:n.contentType]||"Unknown",className:"static"},Object(I.g)(B,{data:t,newLinkCardAb:e.newLinkCardAb}))},F=n(851),U=/]*data-draft-type="link-card"[^>]*)>(.*?)<\/a>/g,V=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.newLinkCardAb,r=t.linkCardInfo;return e?e.replace(U,(function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=Object(F.e)(t,{decodeValue:!0}),i=a.target,c=void 0===i?"_blank":i,l=a.href,u=void 0===l?"":l,d=a["data-image"],f=a["data-image-width"],p=a["data-image-height"],h=a["data-entity-type"],b=a["data-entity-data"],m=a["data-size"],v=o.replace(/<[^>]*>/g,"");v=Object(F.b)(v),u.match(/https:\/\/www.zhihu.com\/zvideo\/(\d+)$/)&&!v&&(v="知乎视频");var g=Number(n)>0,y=g?r?D:T.a:R.a;return Object(E.renderToStaticMarkup)(Object(I.g)(y,s()({text:v,url:u,target:c,image:d,imageWidth:f,imageHeight:p,entityType:h,entityData:Object(F.f)(b),size:m},g&&{newLinkCardAb:n},r&&{data:r[u]})))})):e},q=n(1018),H=/]*data-draft-type="file-link-card"[^>]*)>(.*?)<\/a>/g,K=function(e){return e?e.replace(H,(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object(F.e)(t,{decodeValue:!0}),o=r.href,a=void 0===o?"":o,i=r["data-file-type"],c=r["data-file-extension"],s=r["data-file-size"],l=r["data-file-source"],u=Object(F.b)(n);return Object(E.renderToStaticMarkup)(Object(I.g)(q.a,{href:a,name:u,type:i,extension:c,size:s,source:l}))})):e},Q=n(888),W=(n(1002),n(578),[S]),G=Object(d.forwardRef)((function(e,t){var n,r=e.as,o=e.tag,a=e.className,i=e.html,c=e.clearBoth,l=void 0!==c&&c,d=e.richContentKey,p=e.root,h=e.Portal,b=e.useHooks,m=u()(e,["as","tag","className","html","clearBoth","richContentKey","root","Portal","useHooks"]),v=C()(W);b(p);var g=null!==(n=null!=r?r:o)&&void 0!==n?n:"div";return Object(I.g)(f.a.Fragment,null,h&&Object(I.g)(h,{root:p}),Object(I.g)(g,s()({key:d||i,ref:t,className:j()("RichText","ztext",a,{"RichText--clearBoth":l}),dangerouslySetInnerHTML:{__html:v(i)}},m)))}));G.propTypes={as:h.a.string,tag:h.a.string,html:h.a.string.isRequired,clearBoth:h.a.bool,ref:h.a.func,Portal:h.a.func,useHooks:h.a.func},G.defaultProps={useHooks:v.a};var Y=f.a.memo(G),Z=n(1016),X=n(934),J=function(e){var t=e.onRef,n=e.htmlProcessors,r=e.newLinkCardAb,a=e.linkCardInfo,c=e.shouldUseArticleCard,l=e.articleLinkCardProps,p=e.zvideoLinkCardProps,h=e.adLinkCardProps,m=e.mcnLinkCardProps,v=e.mkSkuLinkCardProps,O=e.html,j=e.sourceId,w=e.shouldShowCatalog,C=e.shouldFoldCatalog,x=e.referenceLinkProps,S=e.lazyLoadImageProps,E=u()(e,["onRef","htmlProcessors","newLinkCardAb","linkCardInfo","shouldUseArticleCard","articleLinkCardProps","zvideoLinkCardProps","adLinkCardProps","mcnLinkCardProps","mkSkuLinkCardProps","html","sourceId","shouldShowCatalog","shouldFoldCatalog","referenceLinkProps","lazyLoadImageProps"]),R=h||{},T=R.parentType,A=R.parentId,N=Object(d.useState)(null),_=i()(N,2),M=_[0],L=_[1],P=Object(b.f)();Object(Z.b)(M),Object(Z.e)(M,x),Object(Z.a)(M),Object(Z.f)(M),Object(Z.g)(M,p,a),Object(Z.c)(M,S);var B=Number(r)>0,z=g([].concat(o()(n),[Object(Q.a)(),V,K,k.a])),D=B?!a&&Object(I.g)(X.f,{zvideoLinkCardProps:p,root:M,newLinkCardAb:r}):Object(I.g)(f.a.Fragment,null,c&&Object(I.g)(X.b,s()({},l,{root:M})),Object(I.g)(X.h,s()({},p,{root:M})));return Object(I.g)(f.a.Fragment,null,w&&C&&Object(I.g)(X.c,{root:M}),D,Object(Z.d)({root:M,mcnLinkCardProps:m,contentType:T,token:A}),Object(I.g)(X.a,s()({},h,{root:M})),Object(I.g)(X.e,s()({},v,{root:M})),Object(I.g)(X.g,{root:M}),Object(I.g)(Y,s()({ref:Object(d.useCallback)(Object(y.a)(L,t),[]),html:z(O,{sourceId:j,theme:P,shouldShowCatalog:w,shouldFoldCatalog:C,newLinkCardAb:r,linkCardInfo:a})},E)))};J.propTypes={html:h.a.string.isRequired,onRef:h.a.oneOfType([h.a.func,h.a.object]),htmlProcessors:h.a.array,newLinkCardAb:h.a.string,linkCardInfo:h.a.object},J.defaultProps={shouldUseArticleCard:!1,htmlProcessors:[]};var $=f.a.memo(J)},function(e,t,n){"use strict";n.d(t,"a",(function(){return ee}));var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(41),h=n.n(p),b=n(1),m=n.n(b),v=n(3),g=n.n(v),y=n(11),O=n.n(y),j=n(152),w=n(232),C=n(254),k=n(242),x=n(163),S=n(213),E=n(73),R=n(804),T=n(5);function A(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var N=function(e){s()(n,e);var t=A(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;i10485760)return e.setState({errorMsg:"请上传不超过 10M 的图片"},(function(){e.resetErrorMsg()})),void e.resetUpload();Object(k.a)(t).then((function(n){var r=window.URL.createObjectURL(n),o=new Image;o.onload=function(){o.width<640||o.height<360?(e.setState({errorMsg:"请上传宽度不小于 640px,高度不小于 360px 的图片"},(function(){e.resetErrorMsg()})),e.resetUpload()):e.setState({cropShown:!0,file:t,dataUrl:r})},o.src=r}))},e.resetUpload=function(){e.setState({cropShown:!1})},e.resetErrorMsg=function(){setTimeout((function(){e.setState({errorMsg:""})}),2400)},e.uploadImage=function(t){return Object(C.a)(t).then((function(t){var n=t.src;e.uploadVideoPoster(n)})).catch((function(){e.setState({errorMsg:"上传封面图片失败"},(function(){e.resetErrorMsg()}))}))},e.uploadVideoPoster=function(t,n){if(n)return Object(j.loadImage)(t).then((function(t){var n=document.createElement("canvas"),r=n.getContext("2d");n.width=t.width,n.height=t.height,r.drawImage(t,0,0,t.width,t.height),n.toBlob(e.uploadImage,"image/jpeg")}));t=Object(j.imgUrl)(t,""),(0,e.props.onVideoPosterChange)(t),e.resetUpload(),e.hideEditor()},e.handleUploadImage=function(){var t;e.load("https://lens.zhihu.com/report?msg=upload_cover",{catch:function(){return null}}),(t=e).uploadImage.apply(t,arguments).then((function(){e.shouldRetry=!1}))},e}return i()(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.thumbnail,r=t.needUploadThumbnail,o=t.uploading,a=t.id,i=t.changedVideoPoster,c=t.instantUpload;r&&n&&this.uploadVideoPoster(n,!n.startsWith("http")),!1!==o||i||c||(this.shouldRetry=!0,this.cts=new x.a,this.token=this.cts.token,Object(x.b)((function(){return e.load("https://lens.zhihu.com/api/v4/videos/".concat(a,"/default_cover")).then((function(t){if(!t.algorithm_cover_url)return Promise.reject("has no smart cover");e.shouldRetry&&e.uploadVideoPoster(t.algorithm_cover_url,!1)}))}),{times:10,delay:3e3,shouldRetry:function(){return e.shouldRetry},cancellationToken:this.token}))}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.changedVideoPoster,n=e.needUploadThumbnail;t&&!n&&(this.shouldRetry=!1)}},{key:"componentWillUnmount",value:function(){this.cts&&this.cts.cancel();var e=this.state.dataUrl;e&&window.URL.revokeObjectURL(e)}},{key:"load",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.errorMessage,o=h()(n,["errorMessage"]);return fetch(e,Object.assign({},o,{headers:Object.assign({},o.headers,{Accept:"application/json","X-Requested-With":"Fetch"}),credentials:"include"})).then((function(e){return e.json().catch((function(){return{}})).then((function(t){if(!e.ok)throw t;return t}))})).catch((function(){if(n.catch)return n.catch();t.setState({errorMsg:r||"上传封面失败"},(function(){t.resetErrorMsg()}))}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.editorShown,r=t.cropShown,o=t.file,a=t.dataUrl,i=t.curTabId,c=t.errorMsg,s=t.covers,l=void 0===s?[]:s,u=this.props,d=u.triggerClassName,f=u.coverButtonText,p=u.uploading,h=u.upload,b=u.originVideo,m=u.useCoverCrop,v=u.zvideoId,g=u.id,y=(null==h?void 0:h.file)||b,j="video/mp4"===(null==y?void 0:y.type),C=m?z:V;return Object(T.g)(_.a,null,Object(T.g)("div",{className:"VideoCoverEditor"},Object(T.g)(w.a,{className:O()(d,"Video-uploadPosterButton"),zaText:!0,zaType:"Button",zaBlock:"VideoUploadPoster",extra:{mediaInfo:{attachmentZvideoId:v,videoInfo:{videoId:g}}},onClick:this.showEditor},Object(T.g)("p",null,f)),n&&Object(T.g)(E.b,{className:"VideoCoverEditor-Modal",title:j&&this.renderTitle(),onClose:this.hideEditor},0===i&&(r?Object(T.g)(C,{file:o,image:a,onResetUpload:this.resetUpload,onUploadImage:this.handleUploadImage}):Object(T.g)(N,{onVideoPosterChange:this.handleVideoPosterChange})),1===i&&j&&(p?Object(T.g)(W,{backTab:function(){e.setState({curTabId:0})}}):Object(T.g)(J,{items:l,video:y,onUploadPoster:function(){e.load("https://lens.zhihu.com/report?msg=choose_cover",{catch:function(){return null}}),e.uploadVideoPoster.apply(e,arguments).then((function(){e.shouldRetry=!1}))}})))),Object(T.g)(S.a,{notification:{key:c,text:c,theme:"red"},delay:2400}))}}]),n}(b.Component);ee.propTypes={onVideoPosterChange:g.a.func.isRequired,coverButtonText:g.a.string,useCoverCrop:g.a.bool},ee.defaultProps={onVideoPosterChange:function(){},coverButtonText:"上传视频封面",useCoverCrop:!0}},function(e,t,n){"use strict";var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(1),h=n(5);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var m=function(e){s()(n,e);var t=b(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){return Object(h.g)("svg",{width:"30",height:"30",viewBox:"0 0 66 66",xmlns:"http://www.w3.org/2000/svg",className:"CircleLoadingBar","aria-hidden":"true"},Object(h.g)("g",null,Object(h.g)("circle",{className:"path",fill:"none",strokeWidth:"6",strokeLinecap:"round",cx:"33",cy:"33",r:"30"})))}}]),n}(p.Component);t.a=m},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,o=n(43),a=n(0),i=n(2),c=n(78),s=n(1),l=n(73),u=n(24),d=n(992),f=n(373),p={comment_img:"comment_img",dynamic_top:"dynamic_top",comment_sticker:"comment_sticker",block_keyword:"block_keyword"},h=(r={},Object(a.a)(r,p.comment_img,"https://pic1.zhimg.com/v2-1b6677f81c2df41f55332474e15bc5a8.png"),Object(a.a)(r,p.dynamic_top,"https://pic1.zhimg.com/v2-e16a265a43592abd5b98fceef02a1614.png"),Object(a.a)(r,p.comment_sticker,"https://pic1.zhimg.com/v2-183a98cd480d24cd3e3246ba7a26303b.png"),Object(a.a)(r,p.block_keyword,"https://pic3.zhimg.com/v2-0ad4e8aa43c3279cc7536f2fb7ac8348.png"),r);t.b=Object(d.a)((function(e){var t=e.show,n=e.setShow,r=e.type,a=e.isLogin,d=Object(s.useState)(""),p=Object(o.a)(d,2),b=p[0],m=p[1],v=Object(s.useState)(!1),g=Object(o.a)(v,2),y=g[0],O=g[1],j=Object(f.b)(),w=Object(c.c)((function(){t&&n(!1)})),C=Object(c.c)((function(){window.open(u.F,"_blank")}));return Object(s.useEffect)((function(){!b&&a&&(O(!0),j("/api/v4/unlimited/vip_rights/popup?token="+r).then((function(e){m(e.payload.button.text)})).catch((function(){})).then((function(){O(!1)})))}),[t]),Object(i.b)(l.b,{css:{".Modal-content":{padding:0,marginTop:0}},onClose:w,children:t&&!y&&Object(i.c)(i.a,{children:[Object(i.b)("img",{src:h[r],css:{height:"230px",width:"400px",display:"block"}}),Object(i.b)("div",{css:{padding:20},children:Object(i.b)("div",{css:function(e){return{padding:8,background:"linear-gradient(135deg, ".concat(e.colors.GYL06A," 0.2%, ").concat(e.colors.GYL08A," 100%)"),borderRadius:3,textAlign:"center",fontsize:14,color:e.colors.GYL12A,userSelect:"none","&:hover":{cursor:"pointer"}}},onClick:C,children:b||"开通会员立即解锁"})})]})})}))},function(e,t,n){var r=n(583),o=n(259),a=n(257),i=n(93),c=n(207),s=n(258),l=n(256),u=n(325),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(c(e)&&(i(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||u(e)||a(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(l(e))return!r(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stripHTML=t.truncateHTML=t.parseTag=t.parseTagGroup=t.parseAttrs=t.TAG_RE=t.TAG_RE_TEMPLATE=void 0;var r=n(1140);Object.defineProperty(t,"TAG_RE_TEMPLATE",{enumerable:!0,get:function(){return r.TAG_RE_TEMPLATE}}),Object.defineProperty(t,"TAG_RE",{enumerable:!0,get:function(){return r.TAG_RE}}),Object.defineProperty(t,"parseAttrs",{enumerable:!0,get:function(){return r.parseAttrs}}),Object.defineProperty(t,"parseTagGroup",{enumerable:!0,get:function(){return r.parseTagGroup}}),Object.defineProperty(t,"parseTag",{enumerable:!0,get:function(){return r.parseTag}}),Object.defineProperty(t,"truncateHTML",{enumerable:!0,get:function(){return r.truncateHTML}}),Object.defineProperty(t,"stripHTML",{enumerable:!0,get:function(){return r.stripHTML}})},function(e,t,n){var r=n(209),o=n(260),a=n(238),i=n(1021),c=n(1071),s=n(215),l=n(1072),u=n(244),d=n(93);e.exports=function(e,t,n){t=t.length?r(t,(function(e){return d(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[u];var f=-1;t=r(t,s(a));var p=i(e,(function(e,n,o){return{criteria:r(t,(function(t){return t(e)})),index:++f,value:e}}));return c(p,(function(e,t){return l(e,t,n)}))}},function(e,t,n){var r=n(207);e.exports=function(e,t){return function(n,o){if(null==n)return n;if(!r(n))return e(n,o);for(var a=n.length,i=t?a:-1,c=Object(n);(t?i--:++i=s?l:l*("desc"==n[o]?-1:1)}return e.index-t.index}},function(e,t,n){var r=n(248);e.exports=function(e,t){if(e!==t){var n=void 0!==e,o=null===e,a=e==e,i=r(e),c=void 0!==t,s=null===t,l=t==t,u=r(t);if(!s&&!u&&!i&&e>t||i&&c&&l&&!s&&!u||o&&c&&l||!n&&l||!a)return 1;if(!o&&!i&&!u&&e0)),d="undefined"!=typeof File,f={touch:{react:{down:"onTouchStart",mouseDown:"onMouseDown",drag:"onTouchMove",drop:"onTouchEnd",move:"onTouchMove",mouseMove:"onMouseMove",up:"onTouchEnd",mouseUp:"onMouseUp"},native:{down:"touchstart",mouseDown:"mousedown",drag:"touchmove",drop:"touchend",move:"touchmove",mouseMove:"mousemove",up:"touchend",mouseUp:"mouseup"}},desktop:{react:{down:"onMouseDown",drag:"onDragOver",drop:"onDrop",move:"onMouseMove",up:"onMouseUp"},native:{down:"mousedown",drag:"dragStart",drop:"drop",move:"mousemove",up:"mouseup"}}},p=u?f.touch:f.desktop,h="undefined"!=typeof window&&window.devicePixelRatio?window.devicePixelRatio:1,b=function(e){function a(){var e,t,n;r(this,a);for(var c=arguments.length,l=Array(c),u=0;u0&&void 0!==arguments[0]?arguments[0]:window.event;if(e.stopPropagation(),e.preventDefault(),e.dataTransfer){var t=e.dataTransfer,r=t.files,o=t.items;r&&r.length?(n.props.onDropFile(e),n.loadImageFile(r[0])):o&&o.length&&i(o,(function(e){return n.loadImage(e)}))}},n.setCanvas=function(e){n.canvas=e},o(n,t)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,t.Component),l(a,[{key:"isVertical",value:function(){return this.props.rotate%180!=0}},{key:"getBorders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.border;return Array.isArray(e)?e:[e,e]}},{key:"getDimensions",value:function(){var e=this.props,t=e.width,n=e.height,r=e.rotate,o=e.border,a={},i=this.getBorders(o),s=c(i,2),l=s[0],u=s[1],d=t,f=n;return this.isVertical()?(a.width=f,a.height=d):(a.width=d,a.height=f),a.width+=2*l,a.height+=2*u,{canvas:a,rotate:r,width:t,height:n,border:o}}},{key:"getImage",value:function(){var e=this.getCroppingRect(),t=this.state.image;e.x*=t.resource.width,e.y*=t.resource.height,e.width*=t.resource.width,e.height*=t.resource.height;var n=document.createElement("canvas");this.isVertical()?(n.width=e.height,n.height=e.width):(n.width=e.width,n.height=e.height);var r=n.getContext("2d");return r.translate(n.width/2,n.height/2),r.rotate(this.props.rotate*Math.PI/180),r.translate(-n.width/2,-n.height/2),this.isVertical()&&r.translate((n.width-n.height)/2,(n.height-n.width)/2),r.drawImage(t.resource,-e.x,-e.y),n}},{key:"getImageScaledToCanvas",value:function(){var e=this.getDimensions(),t=e.width,n=e.height,r=document.createElement("canvas");return this.isVertical()?(r.width=n,r.height=t):(r.width=t,r.height=n),this.paintImage(r.getContext("2d"),this.state.image,0,1),r}},{key:"getXScale",value:function(){var e=this.props.width/this.props.height,t=this.state.image.width/this.state.image.height;return Math.min(1,e/t)}},{key:"getYScale",value:function(){var e=this.props.height/this.props.width,t=this.state.image.height/this.state.image.width;return Math.min(1,e/t)}},{key:"getCroppingRect",value:function(){var e=this.props.position||{x:this.state.image.x,y:this.state.image.y},t=1/this.props.scale*this.getXScale(),n=1/this.props.scale*this.getYScale(),r={x:e.x-t/2,y:e.y-n/2,width:t,height:n},o=0,a=1-r.width,i=0,c=1-r.height;return(t>1||n>1)&&(o=-r.width,a=1,i=-r.height,c=1),s({},r,{x:Math.max(o,Math.min(r.x,a)),y:Math.max(i,Math.min(r.y,c))})}},{key:"isDataURL",value:function(e){return null!==e&&!!e.match(/^\s*data:([a-z]+\/[a-z]+(;[a-z-]+=[a-z-]+)?)?(;base64)?,[a-z0-9!$&',()*+;=\-._~:@/?%\s]*\s*$/i)}},{key:"loadImage",value:function(e){d&&e instanceof File?this.loadImageFile(e):"string"==typeof e&&this.loadImageURL(e)}},{key:"loadImageURL",value:function(e){var t=new Image;t.onload=this.handleImageReady.bind(this,t),t.onerror=this.props.onLoadFailure,!this.isDataURL(e)&&this.props.crossOrigin&&(t.crossOrigin=this.props.crossOrigin),t.src=e}},{key:"loadImageFile",value:function(e){var t=this,n=new FileReader;n.onload=function(e){return t.loadImageURL(e.target.result)},n.readAsDataURL(e)}},{key:"componentDidMount",value:function(){var e=n.findDOMNode(this.canvas).getContext("2d");if(this.props.image&&this.loadImage(this.props.image),this.paint(e),document){var t=p.native;document.addEventListener(t.move,this.handleMouseMove,!1),document.addEventListener(t.up,this.handleMouseUp,!1),u&&(document.addEventListener(t.mouseMove,this.handleMouseMove,!1),document.addEventListener(t.mouseUp,this.handleMouseUp,!1))}}},{key:"componentWillUnmount",value:function(){if(document){var e=p.native;document.removeEventListener(e.move,this.handleMouseMove,!1),document.removeEventListener(e.up,this.handleMouseUp,!1),u&&(document.removeEventListener(e.mouseMove,this.handleMouseMove,!1),document.removeEventListener(e.mouseUp,this.handleMouseUp,!1))}}},{key:"componentDidUpdate",value:function(e,t){var r=n.findDOMNode(this.canvas),o=r.getContext("2d");o.clearRect(0,0,r.width,r.height),this.paint(o),this.paintImage(o,this.state.image,this.props.border),e.image===this.props.image&&e.width===this.props.width&&e.height===this.props.height&&e.position===this.props.position&&e.scale===this.props.scale&&e.rotate===this.props.rotate&&t.my===this.state.my&&t.mx===this.state.mx&&t.image.x===this.state.image.x&&t.image.y===this.state.image.y||this.props.onImageChange()}},{key:"handleImageReady",value:function(e){var t=this.getInitialSize(e.width,e.height);t.resource=e,t.x=.5,t.y=.5,this.setState({drag:!1,image:t},this.props.onImageReady),this.props.onLoadSuccess(t)}},{key:"getInitialSize",value:function(e,t){var n=void 0,r=void 0,o=this.getDimensions();return o.height/o.width>t/e?r=e*((n=this.getDimensions().height)/t):n=t*((r=this.getDimensions().width)/e),{height:n,width:r}}},{key:"componentWillReceiveProps",value:function(e){(e.image&&this.props.image!==e.image||this.props.width!==e.width||this.props.height!==e.height)&&this.loadImage(e.image)}},{key:"paintImage",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h;if(t.resource){var o=this.calculatePosition(t,n);e.save(),e.translate(e.canvas.width/2,e.canvas.height/2),e.rotate(this.props.rotate*Math.PI/180),e.translate(-e.canvas.width/2,-e.canvas.height/2),this.isVertical()&&e.translate((e.canvas.width-e.canvas.height)/2,(e.canvas.height-e.canvas.width)/2),e.scale(r,r),e.globalCompositeOperation="destination-over",e.drawImage(t.resource,o.x,o.y,o.width,o.height),e.restore()}}},{key:"calculatePosition",value:function(e,t){e=e||this.state.image;var n=this.getBorders(t),r=c(n,2),o=r[0],a=r[1],i=this.getCroppingRect(),s=e.width*this.props.scale,l=e.height*this.props.scale,u=-i.x*s,d=-i.y*l;return this.isVertical()?(u+=a,d+=o):(u+=o,d+=a),{x:u,y:d,height:l,width:s}}},{key:"paint",value:function(e){e.save(),e.scale(h,h),e.translate(0,0),e.fillStyle="rgba("+this.props.color.slice(0,4).join(",")+")";var t=this.props.borderRadius,n=this.getDimensions(),r=this.getBorders(n.border),o=c(r,2),a=o[0],i=o[1],s=n.canvas.height,l=n.canvas.width;t=Math.max(t,0),t=Math.min(t,l/2-a,s/2-i),e.beginPath(),function(e,t,n,r,o,a){if(0===a)e.rect(t,n,r,o);else{var i=r-a,c=o-a;e.translate(t,n),e.arc(a,a,a,Math.PI,1.5*Math.PI),e.lineTo(i,0),e.arc(i,a,a,1.5*Math.PI,2*Math.PI),e.lineTo(r,c),e.arc(i,c,a,2*Math.PI,.5*Math.PI),e.lineTo(a,o),e.arc(a,c,a,.5*Math.PI,Math.PI),e.translate(-t,-n)}}(e,a,i,l-2*a,s-2*i,t),e.rect(l,0,-l,s),e.fill("evenodd"),e.restore()}},{key:"render",value:function(){var e=this.getDimensions(),n={width:e.canvas.width,height:e.canvas.height,cursor:this.state.drag?"grabbing":"grab"},r={width:e.canvas.width*h,height:e.canvas.height*h,style:s({},n,this.props.style)};return r[p.react.down]=this.handleMouseDown,r[p.react.drag]=this.handleDragOver,this.props.disableDrop||(r[p.react.drop]=this.handleDrop),u&&(r[p.react.mouseDown]=this.handleMouseDown),t.createElement("canvas",s({ref:this.setCanvas},r))}}]),a}();return b.propTypes={scale:e.number,rotate:e.number,image:e.oneOfType([e.string].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t0?Math.floor(n):Math.ceil(n)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=a(n(404)),o=a(n(420));function a(e){return e&&e.__esModule?e:{default:e}}var i=function(e){if(204===e.status)return!1;if("0"===e.headers.get("content-length"))return!1;var t=e.headers.get("content-type");return t&&-1!==t.indexOf("application/json")},c=function(e){return e.ok?i(e)?e.json():e.text():i(e)?e.json().then((function(t){return Promise.reject(Object.assign({},t,{status:e.status}))})):e.text().then((function(t){return Promise.reject(new o.default(e,{text:t}))}))},s=(0,r.default)(fetch),l=function(e,t){return s(e,t).then(c)};t.default=l},function(e,t,n){var r=n(1078),o=n(584),a=n(1079),i=n(907),c=n(951),s=n(1082),l=Math.ceil;e.exports=function(e,t){var n=(t=void 0===t?" ":o(t)).length;if(n<2)return n?r(t,e):t;var u=r(t,l(e/c(t)));return i(t)?a(s(u),0,e).join(""):u.slice(0,e)}},function(e,t){var n=Math.floor;e.exports=function(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=n(t/2))&&(e+=e)}while(t);return r}},function(e,t,n){var r=n(412);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(585)("length");e.exports=r},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[a,i,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[a+r+"?",r,i,c,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+l,"g");e.exports=function(e){for(var t=d.lastIndex=0;d.test(e);)++t;return t}},function(e,t,n){var r=n(1083),o=n(907),a=n(1084);e.exports=function(e){return o(e)?a(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",a="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+o+")"+"?",l="[\\ufe0e\\ufe0f]?"+s+("(?:\\u200d(?:"+[a,i,c].join("|")+")[\\ufe0e\\ufe0f]?"+s+")*"),u="(?:"+[a+r+"?",r,i,c,n].join("|")+")",d=RegExp(o+"(?="+o+")|"+u+l,"g");e.exports=function(e){return e.match(d)||[]}},function(e,t,n){var r=n(586)(!0);e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(370);function o(e){var t,n=e.isOrg,o=e.badgeV2,a=e.badge;if(!n)return!1;var i=Object(r.e)(o||a);return Boolean(null===(t=i.identity)||void 0===t?void 0:t.length)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o=n(11),a=n.n(o);function i(e){var t=e.className;return Object(r.b)("span",{className:a()("ActivityItem-StickyMark",t),children:"置顶"})}},function(e,t,n){"use strict";var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(3),d=n.n(u),f=n(1),p=n(19),h=n(27),b=n(11),m=n.n(b),v=n(177),g=n(31),y=n(977),O=n(1017),j=n(372),w=n(30),C=n(101),k=n(24),x=n(153);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var E=function(e){Object(i.a)(n,e);var t=S(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;ii){var c=a;o.every((function(e){return!(c=l?s:(n.setFullYear(s.getFullYear(),s.getMonth(),c),n)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"c",(function(){return d}));var r=n(0),o=n(7),a=n(10),i=n(6),c=Object(i.a)("club",["GET","JOIN","LEAVE","UPDATE","REQUEST_JOIN"]),s=function(e){return{API:{types:c.GET,method:"GET",endpoint:"clubs/".concat(e),fetchOptions:{credentials:"include"}},schema:a.a.CLUB,meta:{id:e}}},l=function(e){return function(t){return t({API:{types:c.JOIN,method:"POST",endpoint:"clubs/".concat(e,"/join"),fetchOptions:{credentials:"include"}},meta:{id:e}}).then((function(){return t(s(e))}))}},u=function(e,t){return function(n){return n({API:{types:c.REQUEST_JOIN,method:"POST",endpoint:"clubs/".concat(e,"/join_requests"),fetchOptions:{zsEncrypt:!0},body:Object(o.decamelizeKeys)({requestDetail:t})}}).then((function(){return n(s(e))}))}},d=function(e){return function(t,n){var o=n().entities.clubs[e],a=o.joinCount,i=o.isJoined,l=o.loginMask;return t({API:{types:c.LEAVE,method:"DELETE",endpoint:"clubs/".concat(e,"/join"),fetchOptions:{credentials:"include"}},UPDATE:{request:{clubs:Object(r.a)({},e,Object.assign({isJoined:!1},a&&{joinCount:a-1}))},failure:{clubs:Object(r.a)({},e,Object.assign({isJoined:i,loginMask:l},a&&{joinCount:a}))}},meta:{id:e}}).then((function(){return t(s(e))}))}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return c}));var r=function(e){var t=e.title,n=e.id,r=e.topics,o=e.answerCount,a=e.commentCount,i=e.created,c=e.updatedTime,s=e.visitsCount,l=e.followerCount;return{name:t,url:"https://www.zhihu.com/question/".concat(n),keywords:r.map((function(e){return e.name})).join(","),answerCount:o,commentCount:a,dateCreated:new Date(1e3*i).toISOString(),dateModified:new Date(1e3*c).toISOString(),"zhihu:visitsCount":s,"zhihu:followerCount":l}};function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&(t||n)}var a={auto_notif:"auto_notif",header:"header",question_header_card:"question_header_card",force_launch_notif:"force_launch_notif",agree:"agree",disagree:"disagree",comment:"comment",star:"star",comment_list:"comment_list",comment_more:"comment_more",more_answers:"more_answers",bottom:"bottom",capsule:"capsule",follow:"follow",write_answer:"write_answer"},i={expand_answer:"force_launch_notif",expand_answer1:"auto_notif",expand_answer2:"auto_notif",up:"agree",down:"disagree",comment_answer:"comment",collect_answer:"star"},c=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.isClose,n=e.isEvaluate,r=e.isLocked,o=e.isSuggest;return t?"closed":o?"suggested":n?"evaluated":r?"locked":""}},function(e,t,n){"use strict";var r=n(4),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n.n(u),f=n(11),p=n.n(f),h=n(3),b=n.n(h),m=n(133),v=n(1094),g=n(56);function y(e,t){Object(g.a)(2,arguments);var n=Object(m.a)(t);return Object(v.a)(e,12*n)}var O=n(1126),j=n(72);var w=n(738),C=n(581),k=n(211);var x=n(1427),S=n(1341),E=n(1295),R=n(1428),T=n(1429),A=n(360);function N(e,t){Object(g.a)(2,arguments);var n=Object(j.a)(e),r=Object(j.a)(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function _(e){Object(g.a)(1,arguments);var t=Object(j.a)(e),n=t.getDate();return n}var I=n(18),M=function(e){return d.a.createElement(I.a,e,d.a.createElement("path",{d:"M17.782 16.78a.737.737 0 0 1-1.052 0l-4.512-4.249a.758.758 0 0 1 0-1.063L16.73 7.22a.737.737 0 0 1 1.052 0c.29.294.29.77.001 1.063L14 12l3.782 3.716c.29.294.29.77 0 1.063zm-5 0a.737.737 0 0 1-1.052 0L7.218 12.53a.758.758 0 0 1 0-1.063L11.73 7.22a.737.737 0 0 1 1.052 0c.29.294.29.77.001 1.063L9 12l3.782 3.716c.29.294.29.77 0 1.063z",fillRule:"evenodd"}))};M.defaultProps={name:"DoubleArrowLeft"};var L=M,P=n(1137),B=n(835),z=function(e){return d.a.createElement(I.a,e,d.a.createElement("path",{d:"M6.218 16.78a.737.737 0 0 0 1.052 0l4.512-4.249a.758.758 0 0 0 0-1.063L7.27 7.22a.737.737 0 0 0-1.052 0 .759.759 0 0 0-.001 1.063L10 12l-3.782 3.716a.758.758 0 0 0 0 1.063zm5 0a.737.737 0 0 0 1.052 0l4.512-4.249a.758.758 0 0 0 0-1.063L12.27 7.22a.737.737 0 0 0-1.052 0 .759.759 0 0 0-.001 1.063L15 12l-3.782 3.716a.758.758 0 0 0 0 1.063z",fillRule:"evenodd"}))};z.defaultProps={name:"DoubleArrowRight"};var D=z;function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var U=["日","一","二","三","四","五","六"],V=function(e){Object(i.a)(n,e);var t=F(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var c=Object(j.a)(e),s=c.getDay(),l=6+(s0&&Object(A.a)(u,t)>0}return Object(l.b)("td",{className:p()("Calendar-day",{"is-hovered":Object(E.a)(t,v),"is-today":Object(E.a)(t,y),"is-disabled":r,"is-not-this-month":!N(t,b),"is-input-date":o,"is-in-range":c}),onClick:function(){r||e.handleDayClick(t)},onMouseEnter:function(){r||e.handleDayHover(t)},onMouseLeave:function(){r||e.handleDayHover(null)},children:_(t)},n)}))},n)}))})]}),q&&Object(l.b)("div",{className:"Calendar-bottomTool",children:c&&Object(l.b)("button",{className:"Calendar-todayButton",onClick:function(){return e.handleDayClick(y)},disabled:i(y),children:"今天"})})]})}}]),n}(u.Component);V.defaultProps={weekStartsOn:0,disabledDate:function(){return!1},onChange:function(){return!1},onCalendarDateChange:function(){return!1},onHover:function(){return!1},showToday:!0,showPrevMonth:!0,showPrevYear:!0,showNextMonth:!0,showNextYear:!0},V.propTypes={defaultCalendarDate:b.a.instanceOf(Date),value:b.a.oneOfType([b.a.instanceOf(Date),b.a.arrayOf(b.a.instanceOf(Date))]),weekStartsOn:b.a.number,disabledDate:b.a.func,onChange:b.a.func,onHover:b.a.func,showToday:b.a.bool,showPrevMonth:b.a.bool,showPrevYear:b.a.bool,showNextMonth:b.a.bool,showNextYear:b.a.bool};t.a=V},,function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r,o=n(20),a=n.n(o),i=n(21),c=n.n(i),s=n(22),l=n.n(s),u=n(23),d=n.n(u),f=n(13),p=n.n(f),h=n(1),b=n.n(h),m=n(11),v=n.n(m),g=n(5);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p()(e);if(t){var o=p()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d()(this,n)}}!function(e){e.BLACK="black",e.WHITE="white"}(r||(r={}));var O=function(e){l()(n,e);var t=y(n);function n(){return a()(this,n),t.apply(this,arguments)}return c()(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.maskClassName,r=e.shown,o=e.background,a=e.children,i=e.fullContent;return Object(g.g)("div",{className:v()("Mask",t,{"Mask-hidden":!r})},Object(g.g)("div",{className:v()("Mask-mask","Mask-mask--".concat(o),n)}),a&&Object(g.g)("div",{className:i?"Mask-content--full":"Mask-content"},a))}}]),n}(b.a.Component);O.defaultProps={shown:!1,background:r.BLACK};var j=O},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),o=n(34),a=n(78),i=["answer","question","article","pin","zvideo","club_post","videoanswer"];var c=Object(o.withRouter)((function(e){var t=e.parent.type,o=i.includes(t),c=Object(a.d)((function(){return n.e(18).then(n.bind(null,2649))}),!o),s=Object(a.d)((function(){return n.e(18).then(n.bind(null,2643))}),o),l=o?s:c;return l?Object(r.b)(l,Object.assign({},e)):null}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return a}));var r=n(63),o={400:"请求参数有误",401:"用户认证失败",403:"服务已拒绝",404:"资源不存在",405:"请求方式有误",410:"资源已解散",502:"网关错误",503:"服务无响应",504:"网关超时"},a=function(e){var t;return(null==e||null===(t=e.payload)||void 0===t?void 0:t.message)||(null==e?void 0:e.status)&&o[e.status]||"操作失败"};t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a.dispatch("ui/showToast",{icon:"fail",text:a(e)})}},function(e,t,n){"use strict";var r=n(43),o=n(2),a=n(1),i=n(71),c=n.n(i),s=n(27),l=n(380),u=Object(s.connect)((function(e){return{hasData:e.emoticons.emoticonGroupList.length>0}}));t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alwaysShow,n=void 0!==t&&t;return function(e){return u(c()((function(t){var i=t.hasData,c=Object(a.useState)(!1),u=Object(r.a)(c,2),d=u[0],f=u[1],p=Object(s.useDispatch)();return Object(a.useEffect)((function(){i?f(!0):p(Object(l.d)()).then((function(e){var t=e.payload.data[0].id;p(Object(l.e)(t)),f(!0)})).catch((function(){f(!0)}))}),[p,i]),(!d||!n)&&Object(o.b)(e,Object.assign({},t))}),e))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return s}));var r=n(4),o=n(1),a=n(19),i=n(27);function c(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=Object(i.useDispatch)(),c=Array.isArray(e),s=c?e:[e];return Object(o.useMemo)((function(){return c?s.map((function(e){return Object(a.bindActionCreators)(e,n)})):Object(a.bindActionCreators)(s[0],n)}),[n].concat(Object(r.a)(s),Object(r.a)(t)))}function s(e){return Object(i.useSelector)(e,i.shallowEqual)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}));var r=n(953);function o(e){return(t=e,t?t.replace(/\.[^/.]+$/,""):"").slice(0,r.c);var t}function a(e,t){var n=e.title,o=e.description,a=e.categoryFirstLevel,i=e.categorySecondLevelId,c=e.topics,s=e.zvideoType;if(!n)return"视频标题至少 ".concat(r.e," 个字");if(n.lengthr.d)return"视频标题最多 ".concat(r.d," 个字");if(o.length>r.b)return"视频描述最多 ".concat(r.b," 个字");if(!a)return"请选择所属领域";if(!i)return"请选择所属二级领域";if(!c.length)return"请绑定话题";if(!s)return"请选择类型";if(t){var l=t();if(l)return l}}},function(e,t,n){"use strict";function r(e,t){return!(!e||!t)&&(e.id===t.id&&void 0!==e.id||e.urlToken===t.urlToken&&void 0!==e.urlToken)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(35),o=n(2),a=n(31),i=n(1182),c=function(e){var t=e.onClick,n=e.text,c=Object(r.a)(e,["onClick","text"]);return Object(o.c)(a.c,Object.assign({preset:"link",onClick:t,css:{fontSize:15}},c,{children:[Object(o.b)(i.a,{text:!0,center:!0})," ",n]}))};c.defaultProps={text:"修改"},t.a=c},function(e,t,n){"use strict";t.a=function(e){return e.componentList.filter(Boolean).filter((function(e){var t=e.component;return Boolean(t)})).map((function(e){return e.component}))}},function(e,t,n){"use strict";n.d(t,"animated",(function(){return M}));var r=n(21),o=n.n(r),a=n(55),i=n.n(a),c=n(20),s=n.n(c),l=n(22),u=n.n(l),d=n(23),f=n.n(d),p=n(13),h=n.n(p),b=n(80),m=n.n(b),v=n(1014);n.o(v,"useSpring")&&n.d(t,"useSpring",(function(){return v.useSpring})),n.o(v,"useTransition")&&n.d(t,"useTransition",(function(){return v.useTransition}));var g=n(39),y=n(900),O=n(1110);function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h()(e);if(t){var o=h()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f()(this,n)}}var w=/^--/;function C(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||w.test(e)||x.hasOwnProperty(e)&&x[e]?(""+t).trim():t+"px"}var k={};var x={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","Ms","Moz","O"];x=Object.keys(x).reduce((function(e,t){return S.forEach((function(n){return e[function(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}(n,t)]=e[t]})),e}),x);var E=/^(matrix|translate|scale|rotate|skew)/,R=/^(translate)/,T=/^(rotate|skew)/,A=function(e,t){return y.s.num(e)&&0!==e?e+t:e},N=function e(t,n){return y.s.arr(t)?t.every((function(t){return e(t,n)})):y.s.num(t)?t===n:parseFloat(t)===n},_=function(e){u()(n,e);var t=j(n);function n(e){var r=e.x,o=e.y,a=e.z,c=m()(e,["x","y","z"]);s()(this,n);var l=[],u=[];return(r||o||a)&&(l.push([r||0,o||0,a||0]),u.push((function(e){return["translate3d(".concat(e.map((function(e){return A(e,"px")})).join(","),")"),N(e,0)]}))),Object(y.l)(c,(function(e,t){if("transform"===t)l.push([e||""]),u.push((function(e){return[e,""===e]}));else if(E.test(t)){if(delete c[t],y.s.und(e))return;var n=R.test(t)?"px":T.test(t)?"deg":"";l.push(Object(y.y)(e)),u.push("rotate3d"===t?function(e){var t=i()(e,4),r=t[0],o=t[1],a=t[2],c=t[3];return["rotate3d(".concat(r,",").concat(o,",").concat(a,",").concat(A(c,n),")"),N(c,0)]}:function(e){return["".concat(t,"(").concat(e.map((function(e){return A(e,n)})).join(","),")"),N(e,t.startsWith("scale")?1:0)]})}})),l.length&&(c.transform=new I(l,u)),t.call(this,c)}return n}(O.a),I=function(e){u()(n,e);var t=j(n);function n(e,r){var o;return s()(this,n),(o=t.call(this)).inputs=e,o.transforms=r,o._value=null,o}return o()(n,[{key:"get",value:function(){return this._value||(this._value=this._get())}},{key:"_get",value:function(){var e=this,t="",n=!0;return Object(y.k)(this.inputs,(function(r,o){var a=Object(y.q)(r[0]),c=e.transforms[o](y.s.arr(a)?a:r.map(y.q)),s=i()(c,2),l=s[0],u=s[1];t+=" "+l,n=n&&u})),n?"none":t}},{key:"observerAdded",value:function(e){var t=this;1==e&&Object(y.k)(this.inputs,(function(e){return Object(y.k)(e,(function(e){return Object(y.r)(e)&&Object(y.c)(e,t)}))}))}},{key:"observerRemoved",value:function(e){var t=this;0==e&&Object(y.k)(this.inputs,(function(e){return Object(y.k)(e,(function(e){return Object(y.r)(e)&&Object(y.x)(e,t)}))}))}},{key:"eventObserved",value:function(e){"change"==e.type&&(this._value=null),Object(y.d)(this,e)}}]),n}(y.a);v.Globals.assign({batchedUpdates:g.unstable_batchedUpdates,createStringInterpolator:y.g,colors:y.e});var M=Object(O.d)(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;var n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t.style,o=t.children,a=t.scrollTop,i=t.scrollLeft,c=m()(t,["style","children","scrollTop","scrollLeft"]),s=Object.values(c),l=Object.keys(c).map((function(t){return n||e.hasAttribute(t)?t:k[t]||(k[t]=t.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()})))}));for(var u in void 0!==o&&(e.textContent=o),r)if(r.hasOwnProperty(u)){var d=C(u,r[u]);"float"===u?u="cssFloat":w.test(u)?e.style.setProperty(u,d):e.style[u]=d}l.forEach((function(t,n){e.setAttribute(t,s[n])})),void 0!==a&&(e.scrollTop=a),void 0!==i&&(e.scrollLeft=i)},createAnimatedStyle:function(e){return new _(e)},getComponentProps:function(e){e.scrollTop,e.scrollLeft;return m()(e,["scrollTop","scrollLeft"])}}).animated},function(e,t,n){"use strict";n.d(t,"a",(function(){return R})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return L})),n.d(t,"e",(function(){return j})),n.d(t,"f",(function(){return N})),n.d(t,"g",(function(){return C})),n.d(t,"h",(function(){return w}));var r=n(55),o=n.n(r),a=n(975),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(20),h=n.n(p),b=n(21),m=n.n(b),v=n(900),g=n(1);function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var O=Symbol.for("Animated:node"),j=function(e){return e&&e[O]},w=function(e,t){return Object(v.h)(e,O,t)},C=function(e){return e&&e[O]&&e[O].getPayload()},k=function(){function e(){h()(this,e),w(this,this)}return m()(e,[{key:"getPayload",value:function(){return this.payload||[]}}]),e}(),x=function(e){s()(n,e);var t=y(n);function n(e){var r;return h()(this,n),(r=t.call(this))._value=e,r.done=!0,r.durationProgress=0,v.s.num(r._value)&&(r.lastPosition=r._value),r}return m()(n,[{key:"getPayload",value:function(){return[this]}},{key:"getValue",value:function(){return this._value}},{key:"setValue",value:function(e,t){return v.s.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}},{key:"reset",value:function(){var e=this.done;this.done=!1,v.s.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(k),S=function(e){s()(n,e);var t=y(n);function n(e){var r;return h()(this,n),(r=t.call(this,0))._string=null,r._toString=Object(v.f)({output:[e,e]}),r}return m()(n,[{key:"getValue",value:function(){var e=this._string;return null==e?this._string=this._toString(this._value):e}},{key:"setValue",value:function(e){if(v.s.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!i()(f()(n.prototype),"setValue",this).call(this,e))return!1;this._string=null}return!0}},{key:"reset",value:function(e){e&&(this._toString=Object(v.f)({output:[this.getValue(),e]})),this._value=0,i()(f()(n.prototype),"reset",this).call(this)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(x),E={dependencies:null},R=function(e){s()(n,e);var t=y(n);function n(e){var r;return h()(this,n),(r=t.call(this)).source=e,r.setValue(e),r}return m()(n,[{key:"getValue",value:function(e){var t={};return Object(v.l)(this.source,(function(n,r){var o;(o=n)&&o[O]===o?t[r]=n.getValue(e):Object(v.r)(n)?t[r]=Object(v.q)(n):e||(t[r]=n)})),t}},{key:"setValue",value:function(e){this.source=e,this.payload=this._makePayload(e)}},{key:"reset",value:function(){this.payload&&Object(v.k)(this.payload,(function(e){return e.reset()}))}},{key:"_makePayload",value:function(e){if(e){var t=new Set;return Object(v.l)(e,this._addToPayload,t),Array.from(t)}}},{key:"_addToPayload",value:function(e){var t=this;E.dependencies&&Object(v.r)(e)&&E.dependencies.add(e);var n=C(e);n&&Object(v.k)(n,(function(e){return t.add(e)}))}}]),n}(k),T=function(e){s()(n,e);var t=y(n);function n(e){return h()(this,n),t.call(this,e)}return m()(n,[{key:"getValue",value:function(){return this.source.map((function(e){return e.getValue()}))}},{key:"setValue",value:function(e){var t=this.getPayload();return e.length==t.length?t.some((function(t,n){return t.setValue(e[n])})):(i()(f()(n.prototype),"setValue",this).call(this,e.map(A)),!0)}}],[{key:"create",value:function(e){return new n(e)}}]),n}(R);function A(e){return(Object(v.t)(e)?S:x).create(e)}function N(e){var t=j(e);return t?t.constructor:v.s.arr(e)?T:Object(v.t)(e)?S:x}var _=function(e,t){var n=!v.s.fun(e)||e.prototype&&e.prototype.isReactComponent;return Object(g.forwardRef)((function(r,a){var i=Object(g.useRef)(null),c=n&&Object(g.useCallback)((function(e){i.current=function(e,t){e&&(v.s.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),s=function(e,t){var n=new Set;E.dependencies=n,e.style&&(e=Object.assign({},e,{style:t.createAnimatedStyle(e.style)}));return e=new R(e),E.dependencies=null,[e,n]}(r,t),l=o()(s,2),u=l[0],d=l[1],f=Object(v.z)(),p=function(){var e=i.current;n&&!e||!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&f()},h=new I(p,d),b=Object(g.useRef)();Object(v.A)((function(){var e=b.current;b.current=h,Object(v.k)(d,(function(e){return Object(v.c)(e,h)})),e&&(Object(v.k)(e.deps,(function(t){return Object(v.x)(t,e)})),v.w.cancel(e.update))})),Object(g.useEffect)(p,[]),Object(v.C)((function(){return function(){var e=b.current;Object(v.k)(e.deps,(function(t){return Object(v.x)(t,e)}))}}));var m=t.getComponentProps(u.getValue());return Object(g.createElement)(e,Object.assign({},m,{ref:c}))}))},I=function(){function e(t,n){h()(this,e),this.update=t,this.deps=n}return m()(e,[{key:"eventObserved",value:function(e){"change"==e.type&&v.w.write(this.update)}}]),e}();var M=Symbol.for("AnimatedComponent"),L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.applyAnimatedValues,r=void 0===n?function(){return!1}:n,o=t.createAnimatedStyle,a=void 0===o?function(e){return new R(e)}:o,i=t.getComponentProps,c=void 0===i?function(e){return e}:i,s={applyAnimatedValues:r,createAnimatedStyle:a,getComponentProps:c},l=function e(t){var n=P(t)||"Anonymous";return(t=v.s.str(t)?e[t]||(e[t]=_(t,s)):t[M]||(t[M]=_(t,s))).displayName="Animated(".concat(n,")"),t};return Object(v.l)(e,(function(t,n){v.s.arr(e)&&(n=P(t)),l[n]=l(t)})),{animated:l}},P=function(e){return v.s.str(e)?e:e&&v.s.str(e.displayName)?e.displayName:v.s.fun(e)&&e.name||null}},function(e,t){},function(e,t){},,,,function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(27),d=n(19),f=n(3),p=n.n(f),h=n(11),b=n.n(h),m=n(262),v=n.n(m),g=n(78),y=n(232),O=n(380),j=n(36),w=n(234),C=n(1066),k=n(43),x=n(156);function S(e){var t,n,r,o,a,i,c,u,d,f=e.className,p=e.emoticonGroupList,h=e.curEmoticonGroupId,m=e.onGroupSelected,v=e.vipEnabled,y=Object(l.useRef)(),O=Object(x.a)(v,p),j=(t=y,n=Object(l.useState)({left:null,x:null}),r=Object(k.a)(n,2),o=r[0],a=r[1],i=Object(l.useState)(!1),c=Object(k.a)(i,2),u=c[0],d=c[1],{onMouseDown:Object(g.c)((function(e){var n;d(!0);var r=null===(n=t.current)||void 0===n?void 0:n.scrollLeft,o=e.clientX;a({left:r,x:o}),e.preventDefault()})),onMouseMove:Object(g.c)((function(e){if(u){var n=e.clientX-o.x;t.current&&(t.current.scrollLeft=o.left-n)}})),onMouseUp:Object(g.c)((function(){u&&d(!1)}))});return Object(s.b)("div",{className:b()("EmoticonsFooter",f),children:Object(s.b)("ul",Object.assign({className:"EmoticonsFooter-items",ref:y},j,{children:O.map((function(e){return Object(s.b)("li",{className:b()("EmoticonsFooter-item",{"EmoticonsFooter-item--selected":h===e.id}),onClick:function(){m(e.id)},children:Object(s.b)("img",{src:e.iconUrl,className:"EmoticonsFooter-itemIcon"})},e.id)}))}))})}var E=n(1007);function R(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var T=function(e){Object(a.a)(n,e);var t=R(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i1&&void 0!==arguments[1]?arguments[1]:9;return new Promise((function(n){if(0!==t){var r=document.createElement("video"),o=(window.URL||window.webkitURL).createObjectURL(e),a=0,i=0,c=[],s=document.createElement("canvas"),l=s.getContext("2d"),u=function(){i=r.duration/(t-1),r.currentTime=a};r.addEventListener("loadeddata",u);r.addEventListener("seeked",(function e(){!function(){if(l){var e=r.videoWidth,t=r.videoHeight;s.width=e,s.height=t,l.drawImage(r,0,0,e,t),c.push({url:s.toDataURL("image/jpeg")})}}(),(a+=i)<=r.duration?r.currentTime=a:(r.removeEventListener("loadeddata",u),r.removeEventListener("seeked",e),n(c))})),r.src=o}else n([])}))}var a=function(){return"undefined"!=typeof window&&!/Maxthon/.test(window.navigator.userAgent)},i={reprint:"reprint",original:"original"},c=[{value:i.reprint,label:"转载"},{value:i.original,label:"原创"}],s=[".3gp",".asf",".avi",".dat",".f4v",".flv",".m4v",".mkv",".mov",".mp4",".mp4v",".mpe",".mpeg",".mpg",".ra",".ram",".rm",".rmvb",".vob",".webm",".wm",".wmv"],l=2147483648,u=102400,d=3600},function(e,t,n){"use strict";n.d(t,"b",(function(){return q}));var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(33),h=n.n(p),b=n(41),m=n.n(b),v=n(1),g=n.n(v),y=n(11),O=n.n(y),j=n(825),w=n(30),C=n(232),k=n(208),x=n.n(k),S=n(880),E=n.n(S),R=n(938),T=n.n(R),A=n(83),N=n.n(A),_=n(245),I=n(84),M=n(1091),L=(n(947),n(5)),P=function(){return Object(L.g)("span",{className:"Editable-toolbar-separator"})},B=function(e){var t=e.className,n=m()(e,["className"]);return Object(L.g)(I.b,h()({className:O()(t,"Editable-toolbarMenuItem")},n))},z=n(783),D=n(31);function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}g.a.Component;var U=n(904);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var q={INLINE_STYLE:"inlineStyle",BLOCK_TYPE:"blockType",ENTITY:"entity",CLEAR_FORMAT:"clearFormat"},H=function(e,t){var n={inlineStyle:!1,blockType:!1,entity:!1,clearFormat:!1};return"atomic"===t&&(n.inlineStyle=!0,n.blockType=!0,n.entity=!0,n.clearFormat=!0),"code-block"===t&&(n.inlineStyle=!0,n.entity=!0),n},K={FIRST_LINE:[U.a.BASIC_STYLING,U.a.LIST_CONTENT,U.a.BLOCK_CONTENT,U.a.STRUCTURE_STYLING,U.a.FORMAT_EDITING],SECOND_LINE:[U.a.BASIC_MEDIA,U.a.PROFESSIONAL_MEDIA,U.a.CUSTOM_MAIN]},Q=function(e){s()(n,e);var t=V(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0&&Object(L.g)(P,null))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,r=(t.currentStyle,t.currentBlockType),o=t.onCommand,a=t.toolbarMainPlugins,i=t.toolbarSidePlugins,c=t.toolbarMenuPlugins,s=t.toolbarMenuAttention,l=t.isFixed,u=t.style,d=t.menuCallout,f=t.plugins,p=this.state,h=p.isMenuOpen,b=p.isMenuAttentionShown,m=H(0,r),v=Object(U.b)(f);return Object(L.g)(C.b,{block:"Toolbar"},Object(L.g)("div",{style:u,className:O()("Editable-toolbar",n),onMouseDown:function(e){return e.preventDefault()},ref:this.toolbarRef},Object(L.g)("div",{className:"Editable-toolbar-controls"},this.renderToolbarSections(K.FIRST_LINE),Object(L.g)(I.c,{className:"Editable-toolbarMenu",getContainer:function(){return e.toolbarRef.current},toggler:Object(L.g)(M.a,{label:h?null:"更多",icon:j.a,disabled:m.entity,onRef:this.menuButtonRef,onMouseEnter:b?function(){clearTimeout(e.timeout),e.setState({isMenuAttentionShown:!1})}:null}),onClick:function(e){w.a.trackEvent(e.target,{id:1183,action:"Click"})},onOpen:function(){o("click-more"),e.setState({isMenuOpen:!0})},onClose:function(){e.setState({isMenuOpen:!1})}},this.renderToolbarSections([U.a.MENU]),c),Object(L.g)(_.a,{isOpen:b,target:b&&this.menuButtonRef.current,container:this.toolbarRef.current,isFixed:l},s),i&&Object(L.g)(P,null),i),Object(L.g)("div",{className:"Editable-toolbar-controls"},this.renderToolbarSections(K.SECOND_LINE),a&&0===v[U.a.CUSTOM_MAIN].length&&Object(L.g)(P,null),a),d&&g.a.cloneElement(d,{anchor:this.menuButtonRef})))}}]),n}(v.Component);t.a=Q},,function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2);function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var u=function(e){Object(a.a)(n,e);var t=l(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.isFollowed,n=e.isFollowing;return t?Object(s.b)("span",{className:"FollowStatus",children:n?"相互关注":"关注了你"}):null}}]),n}(n(1).Component);t.a=u},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o=n(11),a=n.n(o);function i(e){var t=e.header,n=e.options,o=e.className,i=e.onRef,c=e.showOptions,s=void 0===c||c;return Object(r.c)("div",{className:a()("Topbar",o,!1),ref:i,children:[Object(r.b)("div",{className:"Topbar-title",children:t}),s&&Object(r.b)("div",{className:"Topbar-options",children:n})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return j}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(3),d=n.n(u),f=n(11),p=n.n(f),h=n(1341),b=n(431),m=n(138),v=n(1430),g=n(798),y=n(1098);function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var j=function(e){Object(a.a)(n,e);var t=O(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=0&&l<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(r.a)(e),d=u.getDay(),f=(d-1||/[A-Z]/.test(e))}var Lt={};var Pt=["","X","Y","Z"],Bt=["transformPerspective","x","y","z"];function zt(e,t){return Bt.indexOf(e)-Bt.indexOf(t)}["translate","scale","rotate","skew"].forEach((function(e){return Pt.forEach((function(t){return Bt.push(e+t)}))}));var Dt=new Set(Bt);function Ft(e){return Dt.has(e)}var Ut=new Set(["originX","originY","originZ"]);function Vt(e){return Ut.has(e)}function qt(e,t){var n=t.layout,r=t.layoutId;return Ft(e)||Vt(e)||(n||void 0!==r)&&(!!Lt[e]||"opacity"===e)}var Ht=function(e){return null!==e&&"object"==typeof e&&e.getVelocity},Kt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"};function Qt(e){return e.startsWith("--")}var Wt=function(e,t){return t&&"number"==typeof e?t.transform(e):e},Gt=function(e,t){return function(n){return Math.max(Math.min(n,t),e)}},Yt=function(e){return e%1?Number(e.toFixed(5)):e},Zt=/(-)?([\d]*\.?[\d])+/g,Xt=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))/gi,Jt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;function $t(e){return"string"==typeof e}var en=function(e){return{test:function(t){return $t(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return""+t+e}}},tn=en("deg"),nn=en("%"),rn=en("px"),on=en("vh"),an=en("vw"),cn=Object(nt.a)(Object(nt.a)({},nn),{parse:function(e){return nn.parse(e)/100},transform:function(e){return nn.transform(100*e)}}),sn={test:function(e){return"number"==typeof e},parse:parseFloat,transform:function(e){return e}},ln=Object(nt.a)(Object(nt.a)({},sn),{transform:Gt(0,1)}),un=Object(nt.a)(Object(nt.a)({},sn),{default:1}),dn=Object(nt.a)(Object(nt.a)({},sn),{transform:Math.round}),fn={borderWidth:rn,borderTopWidth:rn,borderRightWidth:rn,borderBottomWidth:rn,borderLeftWidth:rn,borderRadius:rn,radius:rn,borderTopLeftRadius:rn,borderTopRightRadius:rn,borderBottomRightRadius:rn,borderBottomLeftRadius:rn,width:rn,maxWidth:rn,height:rn,maxHeight:rn,size:rn,top:rn,right:rn,bottom:rn,left:rn,padding:rn,paddingTop:rn,paddingRight:rn,paddingBottom:rn,paddingLeft:rn,margin:rn,marginTop:rn,marginRight:rn,marginBottom:rn,marginLeft:rn,rotate:tn,rotateX:tn,rotateY:tn,rotateZ:tn,scale:un,scaleX:un,scaleY:un,scaleZ:un,skew:tn,skewX:tn,skewY:tn,distance:rn,translateX:rn,translateY:rn,translateZ:rn,x:rn,y:rn,z:rn,perspective:rn,transformPerspective:rn,opacity:ln,originX:cn,originY:cn,originZ:rn,zIndex:dn,fillOpacity:ln,strokeOpacity:ln,numOctaves:dn};function pn(e,t,n,r,o,a,i,c){var s,l=e.style,u=e.vars,d=e.transform,f=e.transformKeys,p=e.transformOrigin;f.length=0;var h=!1,b=!1,m=!0;for(var v in t){var g=t[v];if(Qt(v))u[v]=g;else{var y=fn[v],O=Wt(g,y);if(Ft(v)){if(h=!0,d[v]=O,f.push(v),!m)continue;g!==(null!==(s=y.default)&&void 0!==s?s:0)&&(m=!1)}else if(Vt(v))p[v]=O,b=!0;else if((null==n?void 0:n.isHydrated)&&(null==r?void 0:r.isHydrated)&&Lt[v]){var j=Lt[v].process(g,r,n),w=Lt[v].applyTo;if(w)for(var C=w.length,k=0;k0?-1:1)*((r-a)*i)/c}):(t=function(e){return Math.exp(-e*o)*((e-s)*o+1)-.001},n=function(e){return Math.exp(-e*o)*(o*o*(s-e))});var f=function(e,t,n){for(var r=n,o=1;o<12;o++)r-=e(r)/t(r);return r}(t,n,5/o);if(o*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:o};var p=Math.pow(f,2)*u;return{stiffness:p,damping:2*d*Math.sqrt(u*p),duration:o}}function jr(e,t){return e*Math.sqrt(1-t*t)}var wr=["duration","bounce"],Cr=["stiffness","damping","mass"];function kr(e,t){return t.some((function(t){return void 0!==e[t]}))}function xr(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.restSpeed,i=void 0===a?2:a,c=e.restDelta,s=Object(nt.d)(e,["from","to","restSpeed","restDelta"]),l={done:!1,value:n},u=function(e){var t=Object(nt.a)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!kr(e,Cr)&&kr(e,wr)){var n=Or(e);(t=Object(nt.a)(Object(nt.a)(Object(nt.a)({},t),n),{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(s),d=u.stiffness,f=u.damping,p=u.mass,h=u.velocity,b=u.duration,m=u.isResolvedFromDuration,v=Sr,g=Sr;function y(){var e=h?-h/1e3:0,t=o-n,r=f/(2*Math.sqrt(d*p)),a=Math.sqrt(d/p)/1e3;if(null!=c||(c=Math.abs(o-n)<=1?.01:.4),r<1){var i=jr(a,r);v=function(n){var c=Math.exp(-r*a*n);return o-c*((e+r*a*t)/i*Math.sin(i*n)+t*Math.cos(i*n))},g=function(n){var o=Math.exp(-r*a*n);return r*a*o*(Math.sin(i*n)*(e+r*a*t)/i+t*Math.cos(i*n))-o*(Math.cos(i*n)*(e+r*a*t)-i*t*Math.sin(i*n))}}else if(1===r)v=function(n){return o-Math.exp(-a*n)*(t+(e+a*t)*n)};else{var s=a*Math.sqrt(r*r-1);v=function(n){var i=Math.exp(-r*a*n),c=Math.min(s*n,300);return o-i*((e+r*a*t)*Math.sinh(c)+s*t*Math.cosh(c))/s}}}return y(),{next:function(e){var t=v(e);if(m)l.done=e>=b;else{var n=1e3*g(e),r=Math.abs(n)<=i,a=Math.abs(o-t)<=c;l.done=r&&a}return l.value=l.done?o:t,l},flipTarget:function(){var e;h=-h,n=(e=[o,n])[0],o=e[1],y()}}}xr.needsInterpolation=function(e,t){return"string"==typeof e||"string"==typeof t};var Sr=function(e){return 0},Er=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},Rr=function(e,t,n){return-n*e+n*t+e},Tr=function(e,t){return function(n){return Boolean($t(n)&&Jt.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Ar=function(e,t,n){return function(r){var o;if(!$t(r))return r;var a=r.match(Zt),i=a[0],c=a[1],s=a[2],l=a[3];return(o={})[e]=parseFloat(i),o[t]=parseFloat(c),o[n]=parseFloat(s),o.alpha=void 0!==l?parseFloat(l):1,o}},Nr=Gt(0,255),_r=Object(nt.a)(Object(nt.a)({},sn),{transform:function(e){return Math.round(Nr(e))}}),Ir={test:Tr("rgb","red"),parse:Ar("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,o=e.alpha,a=void 0===o?1:o;return"rgba("+_r.transform(t)+", "+_r.transform(n)+", "+_r.transform(r)+", "+Yt(ln.transform(a))+")"}};var Mr={test:Tr("#"),parse:function(e){var t="",n="",r="",o="";return e.length>5?(t=e.substr(1,2),n=e.substr(3,2),r=e.substr(5,2),o=e.substr(7,2)):(t=e.substr(1,1),n=e.substr(2,1),r=e.substr(3,1),o=e.substr(4,1),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:Ir.transform},Lr={test:Tr("hsl","hue"),parse:Ar("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,o=e.alpha,a=void 0===o?1:o;return"hsla("+Math.round(t)+", "+nn.transform(Yt(n))+", "+nn.transform(Yt(r))+", "+Yt(ln.transform(a))+")"}},Pr=function(e,t,n){var r=e*e,o=t*t;return Math.sqrt(Math.max(0,n*(o-r)+r))},Br=[Mr,Ir,Lr],zr=function(e){return Br.find((function(t){return t.test(e)}))},Dr=function(e){return"'"+e+"' is not an animatable color. Use the equivalent color code instead."},Fr=function(e,t){var n=zr(e),r=zr(t);Object(it.a)(!!n,Dr(e)),Object(it.a)(!!r,Dr(t)),Object(it.a)(n.transform===r.transform,"Both colors must be hex/RGBA, OR both must be HSLA.");var o=n.parse(e),a=r.parse(t),i=Object(nt.a)({},o),c=n===Lr?Rr:Pr;return function(e){for(var t in i)"alpha"!==t&&(i[t]=c(o[t],a[t],e));return i.alpha=Rr(o.alpha,a.alpha,e),n.transform(i)}},Ur={test:function(e){return Ir.test(e)||Mr.test(e)||Lr.test(e)},parse:function(e){return Ir.test(e)?Ir.parse(e):Lr.test(e)?Lr.parse(e):Mr.parse(e)},transform:function(e){return $t(e)?e:e.hasOwnProperty("red")?Ir.transform(e):Lr.transform(e)}};function Vr(e){var t=[],n=0,r=e.match(Xt);r&&(n=r.length,e=e.replace(Xt,"${c}"),t.push.apply(t,r.map(Ur.parse)));var o=e.match(Zt);return o&&(e=e.replace(Zt,"${n}"),t.push.apply(t,o.map(sn.parse))),{values:t,numColors:n,tokenised:e}}function qr(e){return Vr(e).values}function Hr(e){var t=Vr(e),n=t.values,r=t.numColors,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n0},parse:qr,createTransformer:Hr,getAnimatableNone:function(e){var t=qr(e);return Hr(e)(t.map(Kr))}},Wr=function(e){return"number"==typeof e};function Gr(e,t){return Wr(e)?function(n){return Rr(e,t,n)}:Ur.test(e)?Fr(e,t):Jr(e,t)}var Yr=function(e,t){var n=Object(nt.e)([],e),r=n.length,o=e.map((function(e,n){return Gr(e,t[n])}));return function(e){for(var t=0;t=o.numNumbers,"Complex values '"+e+"' and '"+t+"' too different to mix. Ensure all colors are of the same type."),br(Yr(r.parsed,o.parsed),n)},$r=function(e,t){return function(n){return Rr(e,t,n)}};function eo(e,t,n){for(var r,o=[],a=n||("number"==typeof(r=e[0])?$r:"string"==typeof r?Ur.test(r)?Fr:Jr:Array.isArray(r)?Yr:"object"==typeof r?Zr:void 0),i=e.length-1,c=0;ce[s-1]&&(e=[].concat(e),t=[].concat(t),e.reverse(),t.reverse());var l=eo(t,i,c),u=2===s?function(e,t){var n=e[0],r=e[1],o=t[0];return function(e){return o(Er(n,r,e))}}(e,l):function(e,t){var n=e.length,r=n-1;return function(o){var a=0,i=!1;if(o<=e[0]?i=!0:o>=e[r]&&(a=r-1,i=!0),!i){for(var c=1;co||c===r);c++);a=c-1}var s=Er(e[a],e[a+1],o);return t[a](s)}}(e,l);return a?function(t){return u(yr(e[0],e[s-1],t))}:u}var no,ro=function(e){return function(t){return 1-e(1-t)}},oo=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},ao=function(e){return function(t){return t*t*((e+1)*t-e)}},io=function(e){return e},co=(no=2,function(e){return Math.pow(e,no)}),so=ro(co),lo=oo(co),uo=function(e){return 1-Math.sin(Math.acos(e))},fo=ro(uo),po=oo(fo),ho=ao(1.525),bo=ro(ho),mo=oo(ho),vo=function(e){var t=ao(e);return function(e){return(e*=2)<1?.5*t(e):.5*(2-Math.pow(2,-10*(e-1)))}}(1.525),go=function(e){if(1===e||0===e)return e;var t=e*e;return e<4/11?7.5625*t:e<8/11?9.075*t-9.9*e+3.4:e<.9?4356/361*t-35442/1805*e+16061/1805:10.8*e*e-20.52*e+10.72},yo=ro(go);function Oo(e,t){return e.map((function(){return t||lo})).splice(0,e.length-1)}function jo(e){var t=e.from,n=void 0===t?0:t,r=e.to,o=void 0===r?1:r,a=e.ease,i=e.offset,c=e.duration,s=void 0===c?300:c,l={done:!1,value:n},u=Array.isArray(o)?o:[n,o],d=function(e,t){return e.map((function(e){return e*t}))}(i&&i.length===u.length?i:function(e){var t=e.length;return e.map((function(e,n){return 0!==n?n/(t-1):0}))}(u),s);function f(){return to(d,u,{ease:Array.isArray(a)?a:Oo(u,a)})}var p=f();return{next:function(e){return l.value=p(e),l.done=e>=s,l},flipTarget:function(){u.reverse(),p=f()}}}var wo={keyframes:jo,spring:xr,decay:function(e){var t=e.velocity,n=void 0===t?0:t,r=e.from,o=void 0===r?0:r,a=e.power,i=void 0===a?.8:a,c=e.timeConstant,s=void 0===c?350:c,l=e.restDelta,u=void 0===l?.5:l,d=e.modifyTarget,f={done:!1,value:o},p=i*n,h=o+p,b=void 0===d?h:d(h);return b!==h&&(p=b-o),{next:function(e){var t=-p*Math.exp(-e/s);return f.done=!(t>u||t<-u),f.value=f.done?b:b+t,f},flipTarget:function(){}}}};var Co="undefined"!=typeof performance?function(){return performance.now()}:function(){return Date.now()},ko="undefined"!=typeof window?function(e){return window.requestAnimationFrame(e)}:function(e){return setTimeout((function(){return e(Co())}),1/60*1e3)};var xo=!0,So=!1,Eo=!1,Ro={delta:0,timestamp:0},To=["read","update","preRender","render","postRender"],Ao=To.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,o=!1,a=new WeakSet,i={schedule:function(e,i,c){void 0===i&&(i=!1),void 0===c&&(c=!1);var s=c&&o,l=s?t:n;return i&&a.add(e),-1===l.indexOf(e)&&(l.push(e),s&&o&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(c){var s;if(o=!0,t=(s=[n,t])[0],(n=s[1]).length=0,r=t.length)for(var l=0;l=t+n:e<=-n}(f,E,g,T)&&_():(r.stop(),j&&j()))}return s&&(null==y||y(),(r=u(I)).start()),{stop:function(){null==O||O(),r.stop()}}}function Vo(e,t){return t?e*(1e3/t):0}var qo=function(e){return 1e3*e},Ho=function(e,t){return 1-3*t+3*e},Ko=function(e,t){return 3*t-6*e},Qo=function(e){return 3*e},Wo=function(e,t,n){return((Ho(t,n)*e+Ko(t,n))*e+Qo(t))*e},Go=function(e,t,n){return 3*Ho(t,n)*e*e+2*Ko(t,n)*e+Qo(t)};function Yo(e,t,n,r){if(e===t&&n===r)return io;for(var o=new Float32Array(11),a=0;a<11;++a)o[a]=Wo(.1*a,e,n);function i(t){for(var r=0,a=1;10!==a&&o[a]<=t;++a)r+=.1;--a;var i=r+.1*((t-o[a])/(o[a+1]-o[a])),c=Go(i,e,n);return c>=.001?function(e,t,n,r){for(var o=0;o<8;++o){var a=Go(t,n,r);if(0===a)return t;t-=(Wo(t,n,r)-e)/a}return t}(t,i,e,n):0===c?i:function(e,t,n,r,o){var a,i,c=0;do{(a=Wo(i=t+(n-t)/2,r,o)-e)>0?n=i:t=i}while(Math.abs(a)>1e-7&&++c<10);return i}(t,r,r+.1,e,n)}return function(e){return 0===e||1===e?e:Wo(i(e),t,r)}}var Zo={linear:io,easeIn:co,easeInOut:lo,easeOut:so,circIn:uo,circInOut:po,circOut:fo,backIn:ho,backInOut:mo,backOut:bo,anticipate:vo,bounceIn:yo,bounceInOut:function(e){return e<.5?.5*(1-go(1-2*e)):.5*go(2*e-1)+.5},bounceOut:go},Xo=function(e){if(Array.isArray(e)){Object(it.a)(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=Object(nt.c)(e,4);return Yo(t[0],t[1],t[2],t[3])}return"string"==typeof e?(Object(it.a)(void 0!==Zo[e],"Invalid easing type '"+e+"'"),Zo[e]):e},Jo=function(e,t){return"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!Qr.test(t)||t.startsWith("url(")))},$o=function(){return{type:"spring",stiffness:500,damping:25,restDelta:.5,restSpeed:10}},ea=function(e){return{type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restDelta:.01,restSpeed:10}},ta=function(){return{type:"keyframes",ease:"linear",duration:.3}},na=function(e){return{type:"keyframes",duration:.8,values:e}},ra={x:$o,y:$o,z:$o,rotate:$o,rotateX:$o,rotateY:$o,rotateZ:$o,scaleX:ea,scaleY:ea,scale:ea,opacity:ta,backgroundColor:ta,color:ta,default:ea},oa=new Set(["brightness","contrast","saturate","opacity"]);function aa(e){var t=e.slice(0,-1).split("("),n=t[0],r=t[1];if("drop-shadow"===n)return e;var o=(r.match(Zt)||[])[0];if(!o)return e;var a=r.replace(o,""),i=oa.has(n)?1:0;return o!==r&&(i*=100),n+"("+i+a+")"}var ia=/([a-z-]*)\(.*?\)/g,ca=Object(nt.a)(Object(nt.a)({},Qr),{getAnimatableNone:function(e){var t=e.match(ia);return t?t.map(aa).join(" "):e}}),sa=Object(nt.a)(Object(nt.a)({},fn),{color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:ca,WebkitFilter:ca}),la=function(e){return sa[e]};function ua(e,t){var n,r=la(e);return r!==ca&&(r=Qr),null===(n=r.getAnimatableNone)||void 0===n?void 0:n.call(r,t)}var da=!1;function fa(e){var t=e.ease,n=e.times,r=e.yoyo,o=e.flip,a=e.loop,i=Object(nt.d)(e,["ease","times","yoyo","flip","loop"]),c=Object(nt.a)({},i);return n&&(c.offset=n),i.duration&&(c.duration=qo(i.duration)),i.repeatDelay&&(c.repeatDelay=qo(i.repeatDelay)),t&&(c.ease=function(e){return Array.isArray(e)&&"number"!=typeof e[0]}(t)?t.map(Xo):Xo(t)),"tween"===i.type&&(c.type="keyframes"),(r||a||o)&&(Object(it.b)(!da,"yoyo, loop and flip have been removed from the API. Replace with repeat and repeatType options."),da=!0,r?c.repeatType="reverse":a?c.repeatType="loop":o&&(c.repeatType="mirror"),c.repeat=a||r||o||i.repeat),"spring"!==i.type&&(c.type="keyframes"),c}function pa(e,t,n){var r,o,a,i;return Array.isArray(t.to)&&(null!==(r=e.duration)&&void 0!==r||(e.duration=.8)),function(e){Array.isArray(e.to)&&null===e.to[0]&&(e.to=Object(nt.e)([],Object(nt.c)(e.to)),e.to[0]=e.from)}(t),function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from;var t=Object(nt.d)(e,["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from"]);return!!Object.keys(t).length}(e)||(e=Object(nt.a)(Object(nt.a)({},e),(o=n,a=t.to,i=zn(a)?na:ra[o]||ra.default,Object(nt.a)({to:a},i(a))))),Object(nt.a)(Object(nt.a)({},t),fa(e))}function ha(e,t,n,r,o){var a,i=va(r,e),c=null!==(a=i.from)&&void 0!==a?a:t.get(),s=Jo(e,n);"none"===c&&s&&"string"==typeof n?c=ua(e,n):ba(c)&&"string"==typeof n?c=ma(n):!Array.isArray(n)&&ba(n)&&"string"==typeof c&&(n=ma(c));var l=Jo(e,c);return Object(it.b)(l===s,"You are trying to animate "+e+' from "'+c+'" to "'+n+'". '+c+" is not an animatable value - to enable this animation set "+c+" to a value animatable to "+n+" via the `style` property."),l&&s&&!1!==i.type?function(){var r={from:c,to:n,velocity:t.getVelocity(),onComplete:o,onUpdate:function(e){return t.set(e)}};return"inertia"===i.type||"decay"===i.type?function(e){var t,n=e.from,r=void 0===n?0:n,o=e.velocity,a=void 0===o?0:o,i=e.min,c=e.max,s=e.power,l=void 0===s?.8:s,u=e.timeConstant,d=void 0===u?750:u,f=e.bounceStiffness,p=void 0===f?500:f,h=e.bounceDamping,b=void 0===h?10:h,m=e.restDelta,v=void 0===m?1:m,g=e.modifyTarget,y=e.driver,O=e.onUpdate,j=e.onComplete;function w(e){return void 0!==i&&ec}function C(e){return void 0===i?c:void 0===c||Math.abs(i-e)T||-1===A&&e-1&&e.splice(n,1)}var ja=function(){function e(){this.subscriptions=[]}return e.prototype.add=function(e){var t=this;return ya(this.subscriptions,e),function(){return Oa(t.subscriptions,e)}},e.prototype.notify=function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var o=0;oh&&v,j=Array.isArray(m)?m:[m],w=j.reduce(i,{});!1===g&&(w={});var C=b.prevResolvedValues,k=void 0===C?{}:C,x=Object(nt.a)(Object(nt.a)({},k),w),S=function(e){O=!0,f.delete(e),b.needsAnimating[e]=!0};for(var E in x){var R=w[E],T=k[E];p.hasOwnProperty(E)||(R!==T?zn(R)&&zn(T)?gr(R,T)?b.protectedKeys[E]=!0:S(E):void 0!==R?S(E):f.add(E):void 0!==R&&f.has(E)?S(E):b.protectedKeys[E]=!0)}b.prevProp=m,b.prevResolvedValues=w,b.isActive&&(p=Object(nt.a)(Object(nt.a)({},p),w)),a&&e.blockInitialAnimation&&(O=!1),O&&!y&&d.push.apply(d,Object(nt.e)([],Object(nt.c)(j.map((function(e){return{animation:e,options:Object(nt.a)({type:o},t)}})))))},m=0;m=3;if(t||n){var o=e.point,a=Bo().timestamp;r.history.push(Object(nt.a)(Object(nt.a)({},o),{timestamp:a}));var i=r.handlers,c=i.onStart,s=i.onMove;t||(c&&c(r.lastMoveEvent,e),r.startEvent=r.lastMoveEvent),s&&s(r.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){r.lastMoveEvent=e,r.lastMoveEventInfo=Ya(t,r.transformPagePoint),Yn(e)&&0===e.buttons?r.handlePointerUp(e,t):zo.update(r.updatePoint,!0)},this.handlePointerUp=function(e,t){r.end();var n=r.handlers,o=n.onEnd,a=n.onSessionEnd,i=Xa(Ya(t,r.transformPagePoint),r.history);r.startEvent&&o&&o(e,i),a&&a(e,i)},!(Zn(e)&&e.touches.length>1)){this.handlers=t,this.transformPagePoint=o;var a=Ya(er(e),this.transformPagePoint),i=a.point,c=Bo().timestamp;this.history=[Object(nt.a)(Object(nt.a)({},i),{timestamp:c})];var s=t.onSessionStart;s&&s(e,Xa(a,this.history)),this.removeListeners=br(ar(window,"pointermove",this.handlePointerMove),ar(window,"pointerup",this.handlePointerUp),ar(window,"pointercancel",this.handlePointerUp))}}return e.prototype.updateHandlers=function(e){this.handlers=e},e.prototype.end=function(){this.removeListeners&&this.removeListeners(),_o.update(this.updatePoint)},e}();function Ya(e,t){return t?{point:t(e.point)}:e}function Za(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xa(e,t){var n=e.point;return{point:n,delta:Za(n,$a(t)),offset:Za(n,Ja(t)),velocity:ei(t,.1)}}function Ja(e){return e[0]}function $a(e){return e[e.length-1]}function ei(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,o=$a(e);n>=0&&(r=e[n],!(o.timestamp-r.timestamp>qo(t)));)n--;if(!r)return{x:0,y:0};var a=(o.timestamp-r.timestamp)/1e3;if(0===a)return{x:0,y:0};var i={x:(o.x-r.x)/a,y:(o.y-r.y)/a};return i.x===1/0&&(i.x=0),i.y===1/0&&(i.y=0),i}function ti(e){return e}function ni(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}var ri={translate:0,scale:1,origin:0,originPoint:0};function oi(){return{x:Object(nt.a)({},ri),y:Object(nt.a)({},ri)}}function ai(e){return[e("x"),e("y")]}function ii(e,t,n){var r=t.min,o=t.max;return void 0!==r&&eo&&(e=n?Rr(o,e,n.max):Math.min(e,o)),e}function ci(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function si(e,t){var n,r=t.min-e.min,o=t.max-e.max;return t.max-t.minr?n=Er(t.min,t.max-r,e.min):r>o&&(n=Er(e.min,e.max-o,t.min)),yr(0,1,n)}function bi(e,t,n,r){void 0===r&&(r=.5),e.origin=r,e.originPoint=Rr(t.min,t.max,e.origin),e.scale=pi(n)/pi(t),fi(e.scale,1,1e-4)&&(e.scale=1),e.translate=Rr(n.min,n.max,e.origin)-e.originPoint,fi(e.translate)&&(e.translate=0)}function mi(e,t,n,r){bi(e.x,t.x,n.x,vi(r.originX)),bi(e.y,t.y,n.y,vi(r.originY))}function vi(e){return"number"==typeof e?e:.5}function gi(e,t,n){e.min=n.min+t.min,e.max=e.min+pi(t)}var yi=function(e,t){return e.depth-t.depth};function Oi(e){return e.projection.isEnabled||e.shouldResetTransform()}function ji(e,t){void 0===t&&(t=[]);var n=e.parent;return n&&ji(n,t),Oi(e)&&t.push(e),t}function wi(e){if(!e.shouldResetTransform()){var t,n=e.getLayoutState();e.notifyBeforeLayoutMeasure(n.layout),n.isHydrated=!0,n.layout=e.measureViewportBox(),n.layoutCorrected=(t=n.layout,{x:Object(nt.a)({},t.x),y:Object(nt.a)({},t.y)}),e.notifyLayoutMeasure(n.layout,e.prevViewportBox||n.layout),zo.update((function(){return e.rebaseProjectionTarget()}))}}function Ci(e,t){return{min:t.min-e.min,max:t.max-e.min}}function ki(e,t){return{x:Ci(e.x,t.x),y:Ci(e.y,t.y)}}function xi(e,t){var n=e.getLayoutId(),r=t.getLayoutId();return n!==r||void 0===r&&e!==t}function Si(e){var t=e.getProps(),n=t.drag,r=t._dragX;return n&&!r}function Ei(e,t){e.min=t.min,e.max=t.max}function Ri(e,t,n){return n+t*(e-n)}function Ti(e,t,n,r,o){return void 0!==o&&(e=Ri(e,o,r)),Ri(e,n,r)+t}function Ai(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),e.min=Ti(e.min,t,n,r,o),e.max=Ti(e.max,t,n,r,o)}function Ni(e,t){var n=t.x,r=t.y;Ai(e.x,n.translate,n.scale,n.originPoint),Ai(e.y,r.translate,r.scale,r.originPoint)}function _i(e,t,n,r){var o=Object(nt.c)(r,3),a=o[0],i=o[1],c=o[2];e.min=t.min,e.max=t.max;var s=void 0!==n[c]?n[c]:.5,l=Rr(t.min,t.max,s);Ai(e,n[a],n[i],l,n.scale)}var Ii=["x","scaleX","originX"],Mi=["y","scaleY","originY"];function Li(e,t,n){_i(e.x,t.x,n,Ii),_i(e.y,t.y,n,Mi)}function Pi(e,t,n,r,o){return e=Ri(e-=t,1/n,r),void 0!==o&&(e=Ri(e,1/o,r)),e}function Bi(e,t,n){var r=Object(nt.c)(n,3),o=r[0],a=r[1],i=r[2];!function(e,t,n,r,o){void 0===t&&(t=0),void 0===n&&(n=1),void 0===r&&(r=.5);var a=Rr(e.min,e.max,r)-t;e.min=Pi(e.min,t,n,a,o),e.max=Pi(e.max,t,n,a,o)}(e,t[o],t[a],t[i],t.scale)}function zi(e,t){Bi(e.x,t,Ii),Bi(e.y,t,Mi)}var Di=new Set;function Fi(e,t,n){e[n]||(e[n]=[]),e[n].push(t)}function Ui(e){return Di.add(e),function(){return Di.delete(e)}}function Vi(){if(Di.size){var e=0,t=[[]],n=[],r=function(n){return Fi(t,n,e)},o=function(t){Fi(n,t,e),e++};Di.forEach((function(t){t(r,o),e=0})),Di.clear();for(var a=n.length,i=0;i<=a;i++)t[i]&&t[i].forEach(Hi),n[i]&&n[i].forEach(Hi)}}var qi,Hi=function(e){return e()},Ki=new WeakMap,Qi=function(){function e(e){var t=e.visualElement;this.isDragging=!1,this.currentDirection=null,this.constraints=!1,this.elastic={x:{min:0,max:1},y:{min:0,max:1}},this.props={},this.hasMutatedConstraints=!1,this.cursorProgress={x:.5,y:.5},this.originPoint={},this.openGlobalLock=null,this.panSession=null,this.visualElement=t,this.visualElement.enableLayoutProjection(),Ki.set(t,this)}return e.prototype.start=function(e,t){var n=this,r=void 0===t?{}:t,o=r.snapToCursor,a=void 0!==o&&o,i=r.cursorProgress,c=this.props.transformPagePoint;this.panSession=new Ga(e,{onSessionStart:function(e){var t;n.stopMotion();var r=function(e){return er(e,"client")}(e).point;null===(t=n.cancelLayout)||void 0===t||t.call(n),n.cancelLayout=Ui((function(e,t){var o=ji(n.visualElement),c=function(e){var t=[];return e.children.forEach((function e(n){Oi(n)&&t.push(n),n.children.forEach(e)})),t.sort(yi)}(n.visualElement),s=Object(nt.e)(Object(nt.e)([],Object(nt.c)(o)),Object(nt.c)(c)),l=!1;n.isLayoutDrag()&&n.visualElement.lockProjectionTarget(),t((function(){s.forEach((function(e){return e.resetTransform()}))})),e((function(){wi(n.visualElement),c.forEach(wi)})),t((function(){s.forEach((function(e){return e.restoreTransform()})),a&&(l=n.snapToCursor(r))})),e((function(){Boolean(n.getAxisMotionValue("x")&&!n.isExternalDrag())||n.visualElement.rebaseProjectionTarget(!0,n.visualElement.measureViewportBox(!1)),n.visualElement.scheduleUpdateLayoutProjection();var e=n.visualElement.projection;ai((function(t){if(!l){var o=e.target[t],a=o.min,c=o.max;n.cursorProgress[t]=i?i[t]:Er(a,c,r[t])}var s=n.getAxisMotionValue(t);s&&(n.originPoint[t]=s.get())}))})),t((function(){Io.update(),Io.preRender(),Io.render(),Io.postRender()})),e((function(){return n.resolveDragConstraints()}))}))},onStart:function(e,t){var r,o,a,i=n.props,c=i.drag,s=i.dragPropagation;(!c||s||(n.openGlobalLock&&n.openGlobalLock(),n.openGlobalLock=ur(c),n.openGlobalLock))&&(Vi(),n.isDragging=!0,n.currentDirection=null,null===(o=(r=n.props).onDragStart)||void 0===o||o.call(r,e,t),null===(a=n.visualElement.animationState)||void 0===a||a.setActive(Hn.Drag,!0))},onMove:function(e,t){var r,o,a,i,c=n.props,s=c.dragPropagation,l=c.dragDirectionLock;if(s||n.openGlobalLock){var u=t.offset;if(l&&null===n.currentDirection)return n.currentDirection=function(e,t){void 0===t&&(t=10);var n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==n.currentDirection&&(null===(o=(r=n.props).onDirectionLock)||void 0===o||o.call(r,n.currentDirection)));n.updateAxis("x",t.point,u),n.updateAxis("y",t.point,u),null===(i=(a=n.props).onDrag)||void 0===i||i.call(a,e,t),qi=e}},onSessionEnd:function(e,t){return n.stop(e,t)}},{transformPagePoint:c})},e.prototype.resolveDragConstraints=function(){var e=this,t=this.props,n=t.dragConstraints,r=t.dragElastic,o=this.visualElement.getLayoutState().layoutCorrected;this.constraints=!!n&&(Ct(n)?this.resolveRefConstraints(o,n):function(e,t){var n=t.top,r=t.left,o=t.bottom,a=t.right;return{x:ci(e.x,r,a),y:ci(e.y,n,o)}}(o,n)),this.elastic=function(e){return!1===e?e=0:!0===e&&(e=.35),{x:li(e,"left","right"),y:li(e,"top","bottom")}}(r),this.constraints&&!this.hasMutatedConstraints&&ai((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o[t],e.constraints[t]))}))},e.prototype.resolveRefConstraints=function(e,t){var n=this.props,r=n.onMeasureDragConstraints,o=n.transformPagePoint,a=t.current;Object(it.a)(null!==a,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop."),this.constraintsBox=di(a,o);var i=function(e,t){return{x:si(e.x,t.x),y:si(e.y,t.y)}}(e,this.constraintsBox);if(r){var c=r(function(e){var t=e.x,n=e.y;return{top:n.min,bottom:n.max,left:t.min,right:t.max}}(i));this.hasMutatedConstraints=!!c,c&&(i=ni(c))}return i},e.prototype.cancelDrag=function(){var e,t;this.visualElement.unlockProjectionTarget(),null===(e=this.cancelLayout)||void 0===e||e.call(this),this.isDragging=!1,this.panSession&&this.panSession.end(),this.panSession=null,!this.props.dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(t=this.visualElement.animationState)||void 0===t||t.setActive(Hn.Drag,!1)},e.prototype.stop=function(e,t){var n,r,o;null===(n=this.panSession)||void 0===n||n.end(),this.panSession=null;var a=this.isDragging;if(this.cancelDrag(),a){var i=t.velocity;this.animateDragEnd(i),null===(o=(r=this.props).onDragEnd)||void 0===o||o.call(r,e,t)}},e.prototype.snapToCursor=function(e){var t=this;return ai((function(n){if(Wi(n,t.props.drag,t.currentDirection)){var r=t.getAxisMotionValue(n);if(!r)return t.cursorProgress[n]=.5,!0;var o=t.visualElement.getLayoutState().layout,a=o[n].max-o[n].min,i=o[n].min+a/2,c=e[n]-i;t.originPoint[n]=e[n],r.set(c)}})).includes(!0)},e.prototype.updateAxis=function(e,t,n){if(Wi(e,this.props.drag,this.currentDirection))return this.getAxisMotionValue(e)?this.updateAxisMotionValue(e,n):this.updateVisualElementAxis(e,t)},e.prototype.updateAxisMotionValue=function(e,t){var n=this.getAxisMotionValue(e);if(t&&n){var r=this.originPoint[e]+t[e],o=this.constraints?ii(r,this.constraints[e],this.elastic[e]):r;n.set(o)}},e.prototype.updateVisualElementAxis=function(e,t){var n,r=this.visualElement.getLayoutState().layout[e],o=r.max-r.min,a=this.cursorProgress[e],i=function(e,t,n,r,o){var a=e-t*n;return r?ii(a,r,o):a}(t[e],o,a,null===(n=this.constraints)||void 0===n?void 0:n[e],this.elastic[e]);this.visualElement.setProjectionTargetAxis(e,i,i+o)},e.prototype.setProps=function(e){var t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,o=void 0!==r&&r,a=e.dragPropagation,i=void 0!==a&&a,c=e.dragConstraints,s=void 0!==c&&c,l=e.dragElastic,u=void 0===l?.35:l,d=e.dragMomentum,f=void 0===d||d,p=Object(nt.d)(e,["drag","dragDirectionLock","dragPropagation","dragConstraints","dragElastic","dragMomentum"]);this.props=Object(nt.a)({drag:n,dragDirectionLock:o,dragPropagation:i,dragConstraints:s,dragElastic:u,dragMomentum:f},p)},e.prototype.getAxisMotionValue=function(e){var t=this.props,n=t.layout,r=t.layoutId,o="_drag"+e.toUpperCase();return this.props[o]?this.props[o]:n||void 0!==r?void 0:this.visualElement.getValue(e,0)},e.prototype.isLayoutDrag=function(){return!this.getAxisMotionValue("x")},e.prototype.isExternalDrag=function(){var e=this.props,t=e._dragX,n=e._dragY;return t||n},e.prototype.animateDragEnd=function(e){var t=this,n=this.props,r=n.drag,o=n.dragMomentum,a=n.dragElastic,i=n.dragTransition,c=function(e,t){void 0===t&&(t=!0);var n,r=e.getProjectionParent();return!!r&&(t?zi(n=ki(r.projection.target,e.projection.target),r.getLatestValues()):n=ki(r.getLayoutState().layout,e.getLayoutState().layout),ai((function(t){return e.setProjectionTargetAxis(t,n[t].min,n[t].max,!0)})),!0)}(this.visualElement,this.isLayoutDrag()&&!this.isExternalDrag()),s=this.constraints||{};if(c&&Object.keys(s).length&&this.isLayoutDrag()){var l=this.visualElement.getProjectionParent();if(l){var u=ki(l.projection.targetFinal,s);ai((function(e){var t=u[e],n=t.min,r=t.max;s[e]={min:isNaN(n)?void 0:n,max:isNaN(r)?void 0:r}}))}}var d=ai((function(n){var l;if(Wi(n,r,t.currentDirection)){var u=null!==(l=null==s?void 0:s[n])&&void 0!==l?l:{},d=a?200:1e6,f=a?40:1e7,p=Object(nt.a)(Object(nt.a)({type:"inertia",velocity:o?e[n]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},i),u);return t.getAxisMotionValue(n)?t.startAxisValueAnimation(n,p):t.visualElement.startLayoutAnimation(n,p,c)}}));return Promise.all(d).then((function(){var e,n;null===(n=(e=t.props).onDragTransitionEnd)||void 0===n||n.call(e)}))},e.prototype.stopMotion=function(){var e=this;ai((function(t){var n=e.getAxisMotionValue(t);n?n.stop():e.visualElement.stopLayoutAnimation()}))},e.prototype.startAxisValueAnimation=function(e,t){var n=this.getAxisMotionValue(e);if(n){var r=n.get();return n.set(r),n.set(r),ga(e,n,0,t)}},e.prototype.scalePoint=function(){var e=this,t=this.props,n=t.drag;if(Ct(t.dragConstraints)&&this.constraintsBox){this.stopMotion();var r={x:0,y:0};ai((function(t){r[t]=hi(e.visualElement.projection.target[t],e.constraintsBox[t])})),this.updateConstraints((function(){ai((function(t){if(Wi(t,n,null)){var o=function(e,t,n){var r=e.max-e.min,o=Rr(t.min,t.max-r,n);return{min:o,max:o+r}}(e.visualElement.projection.target[t],e.constraintsBox[t],r[t]),a=o.min,i=o.max;e.visualElement.setProjectionTargetAxis(t,a,i)}}))})),setTimeout(Vi,1)}},e.prototype.updateConstraints=function(e){var t=this;this.cancelLayout=Ui((function(n,r){var o=ji(t.visualElement);r((function(){return o.forEach((function(e){return e.resetTransform()}))})),n((function(){return wi(t.visualElement)})),r((function(){return o.forEach((function(e){return e.restoreTransform()}))})),n((function(){t.resolveDragConstraints()})),e&&r(e)}))},e.prototype.mount=function(e){var t=this,n=ar(e.getInstance(),"pointerdown",(function(e){var n=t.props,r=n.drag,o=n.dragListener;r&&(void 0===o||o)&&t.start(e)})),r=Wn(window,"resize",(function(){t.scalePoint()})),o=e.onLayoutUpdate((function(){t.isDragging&&t.resolveDragConstraints()})),a=e.prevDragCursor;return a&&this.start(qi,{cursorProgress:a}),function(){null==n||n(),null==r||r(),null==o||o(),t.cancelDrag()}},e}();function Wi(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}var Gi,Yi,Zi={pan:mr((function(e){var t=e.onPan,n=e.onPanStart,r=e.onPanEnd,o=e.onPanSessionStart,a=e.visualElement,i=t||n||r||o,c=Object(p.useRef)(null),s=Object(p.useContext)(ut).transformPagePoint,l={onSessionStart:o,onStart:n,onMove:t,onEnd:function(e,t){c.current=null,r&&r(e,t)}};Object(p.useEffect)((function(){null!==c.current&&c.current.updateHandlers(l)})),ir(a,"pointerdown",i&&function(e){c.current=new Ga(e,l,{transformPagePoint:s})}),pr((function(){return c.current&&c.current.end()}))})),drag:mr((function(e){var t=e.dragControls,n=e.visualElement,r=Object(p.useContext)(ut).transformPagePoint,o=pt((function(){return new Qi({visualElement:n})}));o.setProps(Object(nt.a)(Object(nt.a)({},e),{transformPagePoint:r})),Object(p.useEffect)((function(){return t&&t.subscribe(o)}),[o]),Object(p.useEffect)((function(){return o.mount(n)}),[])}))};function Xi(e){return"string"==typeof e&&e.startsWith("var(--")}!function(e){e[e.Entering=0]="Entering",e[e.Present=1]="Present",e[e.Exiting=2]="Exiting"}(Gi||(Gi={})),function(e){e[e.Hide=0]="Hide",e[e.Show=1]="Show"}(Yi||(Yi={}));var Ji=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function $i(e,t,n){void 0===n&&(n=1),Object(it.a)(n<=4,'Max CSS variable fallback depth detected in property "'+e+'". This may indicate a circular fallback dependency.');var r=Object(nt.c)(function(e){var t=Ji.exec(e);if(!t)return[,];var n=Object(nt.c)(t,3);return[n[1],n[2]]}(e),2),o=r[0],a=r[1];if(o){var i=window.getComputedStyle(t).getPropertyValue(o);return i?i.trim():Xi(a)?$i(a,t,n+1):a}}function ec(e,t){return e/(t.max-t.min)*100}var tc={process:function(e,t,n){var r=n.target;if("string"==typeof e){if(!rn.test(e))return e;e=parseFloat(e)}return ec(e,r.x)+"% "+ec(e,r.y)+"%"}},nc={borderRadius:Object(nt.a)(Object(nt.a)({},tc),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:tc,borderTopRightRadius:tc,borderBottomLeftRadius:tc,borderBottomRightRadius:tc,boxShadow:{process:function(e,t){var n=t.delta,r=t.treeScale,o=e,a=e.includes("var("),i=[];a&&(e=e.replace(Ji,(function(e){return i.push(e),"_$css"})));var c=Qr.parse(e);if(c.length>5)return o;var s=Qr.createTransformer(e),l="number"!=typeof c[0]?1:0,u=n.x.scale*r.x,d=n.y.scale*r.y;c[0+l]/=u,c[1+l]/=d;var f=Rr(u,d,.5);"number"==typeof c[2+l]&&(c[2+l]/=f),"number"==typeof c[3+l]&&(c[3+l]/=f);var p=s(c);if(a){var h=0;p=p.replace("_$css",(function(){var e=i[h];return h++,e}))}return p}}},rc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.frameTarget={x:{min:0,max:1},y:{min:0,max:1}},t.currentAnimationTarget={x:{min:0,max:1},y:{min:0,max:1}},t.isAnimating={x:!1,y:!1},t.stopAxisAnimation={x:void 0,y:void 0},t.isAnimatingTree=!1,t.animate=function(e,n,r){void 0===r&&(r={});var o=r.originBox,a=r.targetBox,i=r.visibilityAction,c=r.shouldStackAnimate,s=r.onComplete,l=r.prevParent,u=Object(nt.d)(r,["originBox","targetBox","visibilityAction","shouldStackAnimate","onComplete","prevParent"]),d=t.props,f=d.visualElement,p=d.layout;if(!1===c)return t.isAnimatingTree=!1,t.safeToRemove();if(!t.isAnimatingTree||!0===c){c&&(t.isAnimatingTree=!0),n=o||n,e=a||e;var h=!1,b=f.getProjectionParent();if(b){var m=b.prevViewportBox,v=b.getLayoutState().layout;l&&(a&&(v=l.getLayoutState().layout),o&&!xi(l,b)&&l.prevViewportBox&&(m=l.prevViewportBox)),m&&lc(l,o,a)&&(h=!0,n=ki(m,n),e=ki(v,e))}var g=oc(n,e),y=ai((function(r){var o,a;if("position"===p){var c=e[r].max-e[r].min;n[r].max=n[r].min+c}if(!f.projection.isTargetLocked)return void 0===i?g?t.animateAxis(r,e[r],n[r],Object(nt.a)(Object(nt.a)({},u),{isRelative:h})):(null===(a=(o=t.stopAxisAnimation)[r])||void 0===a||a.call(o),f.setProjectionTargetAxis(r,e[r].min,e[r].max,h)):void f.setVisibility(i===Yi.Show)}));return f.syncRender(),Promise.all(y).then((function(){t.isAnimatingTree=!1,s&&s(),f.notifyLayoutAnimationComplete()}))}},t}return Object(nt.b)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.visualElement;t.animateMotionValue=ga,t.enableLayoutProjection(),this.unsubLayoutReady=t.onLayoutUpdate(this.animate),t.layoutSafeToRemove=function(){return e.safeToRemove()},function(e){for(var t in e)Lt[t]=e[t]}(nc)},t.prototype.componentWillUnmount=function(){var e=this;this.unsubLayoutReady(),ai((function(t){var n,r;return null===(r=(n=e.stopAxisAnimation)[t])||void 0===r?void 0:r.call(n)}))},t.prototype.animateAxis=function(e,t,n,r){var o,a,i=this,c=void 0===r?{}:r,s=c.transition,l=c.isRelative;if(!this.isAnimating[e]||!cc(t,this.currentAnimationTarget[e])){null===(a=(o=this.stopAxisAnimation)[e])||void 0===a||a.call(o),this.isAnimating[e]=!0;var u=this.props.visualElement,d=this.frameTarget[e],f=u.getProjectionAnimationProgress()[e];f.clearListeners(),f.set(0),f.set(0);var p=function(){var r=f.get()/1e3;!function(e,t,n,r){e.min=Rr(t.min,n.min,r),e.max=Rr(t.max,n.max,r)}(d,n,t,r),u.setProjectionTargetAxis(e,d.min,d.max,l)};p();var h=f.onChange(p);this.stopAxisAnimation[e]=function(){i.isAnimating[e]=!1,f.stop(),h()},this.currentAnimationTarget[e]=t;var b=s||u.getDefaultTransition()||sc;return ga("x"===e?"layoutX":"layoutY",f,1e3,b&&va(b,"layout")).then(this.stopAxisAnimation[e])}},t.prototype.safeToRemove=function(){var e,t;null===(t=(e=this.props).safeToRemove)||void 0===t||t.call(e)},t.prototype.render=function(){return null},t}(p.Component);function oc(e,t){return!(ic(e)||ic(t)||cc(e.x,t.x)&&cc(e.y,t.y))}var ac={min:0,max:0};function ic(e){return cc(e.x,ac)&&cc(e.y,ac)}function cc(e,t){return e.min===t.min&&e.max===t.max}var sc={duration:.45,ease:[.4,0,.1,1]};function lc(e,t,n){return e||!e&&!(t||n)}var uc={layoutReady:function(e){return e.notifyLayoutReady()}};function dc(){var e=new Set;return{add:function(t){return e.add(t)},flush:function(t){var n=void 0===t?uc:t,r=n.layoutReady,o=n.parent;Ui((function(t,n){var a=Array.from(e).sort(yi),i=o?ji(o):[];n((function(){Object(nt.e)(Object(nt.e)([],Object(nt.c)(i)),Object(nt.c)(a)).forEach((function(e){return e.resetTransform()}))})),t((function(){a.forEach(wi)})),n((function(){i.forEach((function(e){return e.restoreTransform()})),a.forEach(r)})),t((function(){a.forEach((function(e){e.isPresent&&(e.presence=Gi.Present)}))})),n((function(){Io.preRender(),Io.render()})),t((function(){zo.postRender((function(){return a.forEach(fc)})),e.clear()}))})),Vi()}}}function fc(e){e.prevViewportBox=e.projection.target}var pc=Object(p.createContext)(dc()),hc=Object(p.createContext)(dc());function bc(e){return!!e.forceUpdate}var mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(nt.b)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.syncLayout,n=e.framerSyncLayout,r=e.visualElement;bc(t)&&t.register(r),bc(n)&&n.register(r),r.onUnmount((function(){bc(t)&&t.remove(r),bc(n)&&n.remove(r)}))},t.prototype.getSnapshotBeforeUpdate=function(){var e=this.props,t=e.syncLayout,n=e.visualElement;return bc(t)?t.syncUpdate():(!function(e){e.shouldResetTransform()||(e.prevViewportBox=e.measureViewportBox(!1),e.rebaseProjectionTarget(!1,e.prevViewportBox))}(n),t.add(n)),null},t.prototype.componentDidUpdate=function(){var e=this.props.syncLayout;bc(e)||e.flush()},t.prototype.render=function(){return null},t}(h.a.Component);var vc={measureLayout:function(e){var t=Object(p.useContext)(pc),n=Object(p.useContext)(hc);return h.a.createElement(mc,Object(nt.a)({},e,{syncLayout:t,framerSyncLayout:n}))},layoutAnimation:function(e){var t=Object(nt.c)(ht(),2)[1];return p.createElement(rc,Object(nt.a)({},e,{safeToRemove:t}))}};function gc(){return{isHydrated:!1,layout:{x:{min:0,max:1},y:{min:0,max:1}},layoutCorrected:{x:{min:0,max:1},y:{min:0,max:1}},treeScale:{x:1,y:1},delta:oi(),deltaFinal:oi(),deltaTransform:""}}var yc=gc();function Oc(e,t,n){var r=e.x,o=e.y,a="translate3d("+r.translate/t.x+"px, "+o.translate/t.y+"px, 0) ";if(n){var i=n.rotate,c=n.rotateX,s=n.rotateY;i&&(a+="rotate("+i+") "),c&&(a+="rotateX("+c+") "),s&&(a+="rotateY("+s+") ")}return a+="scale("+r.scale+", "+o.scale+")",n||a!==wc?a:""}function jc(e){var t=e.deltaFinal;return 100*t.x.origin+"% "+100*t.y.origin+"% 0"}var wc=Oc(yc.delta,yc.treeScale,{x:1,y:1}),Cc=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];function kc(e,t,n,r){var o,a,i=e.delta,c=e.layout,s=e.layoutCorrected,l=e.treeScale,u=t.target;a=c,Ei((o=s).x,a.x),Ei(o.y,a.y),function(e,t,n){var r=n.length;if(r){var o,a;t.x=t.y=1;for(var i=0;i=0;t--){var n=Q.path[t];if(n.projection.isEnabled){e=n;break}}O=e}return O},resolveRelativeTargetBox:function(){var e=Q.getProjectionParent();if(R.relativeTarget&&e&&(function(e,t){gi(e.target.x,e.relativeTarget.x,t.target.x),gi(e.target.y,e.relativeTarget.y,t.target.y)}(R,e.projection),Si(e))){var t=R.target;Li(t,t,e.getLatestValues())}},shouldResetTransform:function(){return Boolean(b._layoutResetTransform)},pointTo:function(e){T=e.projection,A=e.getLatestValues(),null==j||j(),j=br(e.onSetAxisTarget(Q.scheduleUpdateLayoutProjection),e.onLayoutAnimationComplete((function(){var e;Q.isPresent?Q.presence=Gi.Present:null===(e=Q.layoutSafeToRemove)||void 0===e||e.call(Q)})))},isPresent:!0,presence:Gi.Entering});return Q}};function Ec(e){e.resolveRelativeTargetBox()}function Rc(e){e.updateLayoutProjection()}var Tc,Ac=Object(nt.e)(["initial"],Object(nt.c)(za)),Nc=Ac.length,_c=new Set(["width","height","top","left","right","bottom","x","y"]),Ic=function(e){return _c.has(e)},Mc=function(e,t){e.set(t,!1),e.set(t)},Lc=function(e){return e===sn||e===rn};!function(e){e.width="width",e.height="height",e.left="left",e.right="right",e.top="top",e.bottom="bottom"}(Tc||(Tc={}));var Pc=function(e,t){return parseFloat(e.split(", ")[t])},Bc=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return Pc(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?Pc(i[1],e):0}},zc=new Set(["x","y","z"]),Dc=Bt.filter((function(e){return!zc.has(e)}));var Fc={width:function(e){var t=e.x;return t.max-t.min},height:function(e){var t=e.y;return t.max-t.min},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Bc(4,13),y:Bc(5,14)},Uc=function(e,t,n,r){void 0===n&&(n={}),void 0===r&&(r={}),t=Object(nt.a)({},t),r=Object(nt.a)({},r);var o=Object.keys(t).filter(Ic),a=[],i=!1,c=[];if(o.forEach((function(o){var s=e.getValue(o);if(e.hasValue(o)){var l,u=n[o],d=t[o],f=Sa(u);if(zn(d))for(var p=d.length,h=null===d[0]?1:0;h1&&void 0!==arguments[1]?arguments[1]:18,n=e/2*(1-1/Math.SQRT2)-t/2,r=parseFloat(n.toFixed(2));return{position:"absolute",right:r,bottom:r}};var Ds=n(876),Fs=n(367),Us=n(44),Vs=n(208),qs=n.n(Vs),Hs=n(404),Ks=n.n(Hs),Qs=n(39),Ws=(n(577),n(154));function Gs(){var e=!1,t=[],n=new Set,r={subscribe:function(e){return n.add(e),function(){n.delete(e)}},start:function(r,o){if(e){var a=[];return n.forEach((function(e){a.push(Ia(e,r,{transitionOverride:o}))})),Promise.all(a)}return new Promise((function(e){t.push({animation:[r,o],resolve:e})}))},set:function(t){return Object(it.a)(e,"controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."),n.forEach((function(e){!function(e,t){Array.isArray(t)?Na(e,t):"string"==typeof t?Na(e,[t]):Aa(e,t)}(e,t)}))},stop:function(){n.forEach((function(e){!function(e){e.forEachValue((function(e){return e.stop()}))}(e)}))},mount:function(){return e=!0,t.forEach((function(e){var t=e.animation,n=e.resolve;r.start.apply(r,Object(nt.e)([],Object(nt.c)(t))).then(n)})),function(){e=!1,r.stop()}}};return r}var Ys=n(176);function Zs(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Le()(e);if(t){var o=Le()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ie()(this,n)}}var Xs=function(e){var t=e.user,n=e.className,r=e.badgeSize,o=void 0===r?14:r,a=e.isHybrid,i=qe()(e,["user","className","badgeSize","isHybrid"]),c=t.avatarUrl,s=t.badge,l=t.badgeV2,u=t.isOrg,d=t.id,p=Object(us.e)(),b=a?30:24,v="0"===d||""===d,g=Object(f.g)(h.a.Fragment,null,Object(f.g)(m.Image,{size:b,src:c,css:Object(as.a)({borderRadius:a?"50%":"2px"},";label:content;"),className:n}),(null!=l?l:s)&&a&&Object(f.g)(Bs,{size:o,badge:null!=l?l:s,css:zs(2*o,o)}));return v?Object(f.g)("span",i,g):Object(f.g)(m.Box,{size:b,css:Object(as.a)(Object.assign({position:"relative"},p),";label:Avatar;"),className:n},Object(f.g)(Ds.b,{href:"https://www.zhihu.com/".concat(u?"org":"people","/").concat(d),zaType:"Image",onClick:function(e){T.a.trackEvent(e.target,{id:1200,action:"OpenUrl",element_name:"User"})}},g))},Js={400:"请求参数有误",401:"用户认证失败",403:"服务已拒绝",404:"资源不存在",405:"请求方式有误",410:"资源已解散",502:"网关错误",503:"服务无响应",504:"网关超时"},$s=function(e){return function(){var t=Ue()(De.a.mark((function t(n){var r,o,a,i,c=arguments;return De.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},t.next=3,e(n,r);case 3:if(o=t.sent,t.prev=4,a=o.headers.get("content-type"),i=null,!a||-1===a.indexOf("application/json")||204===o.status){t.next=13;break}return t.next=10,o.json();case 10:i=t.sent,t.next=18;break;case 13:return t.t0=JSON,t.next=16,o.text();case 16:t.t1=t.sent,i=t.t0.parse.call(t.t0,t.t1);case 18:if(i=Object(ce.camelizeKeys)(i),o.ok&&!i.error){t.next=22;break}throw i.toastMsg=i.error.message,i;case 22:return t.abrupt("return",i);case 25:throw t.prev=25,t.t2=t.catch(4),t.t2.status=o.status,t.t2;case 29:case"end":return t.stop()}}),t,null,[[4,25]])})));return function(e){return t.apply(this,arguments)}}()},el=function(e){return function(){var t=Ue()(De.a.mark((function t(n,r){return De.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e(n,r);case 3:return t.abrupt("return",t.sent);case 6:throw t.prev=6,t.t0=t.catch(0),400===t.t0.status&&18e4===t.t0.code&&Ye.a.supportsAction("base/unLockAccount").then((function(e){return e&&Ye.a.dispatch("base/unLockAccount")})),t.t0.toastMsg||(t.t0.toastMsg=Js[t.t0.status]||"操作失败"),t.t0;case 11:case"end":return t.stop()}}),t,null,[[0,6]])})));return function(e,n){return t.apply(this,arguments)}}()},tl=function(){throw new Error("Not implemented")},nl=!1,rl=!1,ol=function(){var e=Ue()(De.a.mark((function e(t){var n;return De.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(rl){e.next=3;break}return e.next=3,rl=!0,Ye.a.ready().catch((function(){nl=!0}));case 3:if(!nl){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,Ye.a.dispatch("account/showLoginDialog",{next:t}).catch((function(e){return e}));case 7:if("object"!=typeof(n=e.sent)||"ERR_AUTH_ALREADYLOGIN"!==n.name&&"ERR_ACOUNT_NOTGUEST"!==n.name){e.next=11;break}return nl=!0,e.abrupt("return",nl);case 11:return e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),al=Object(p.createContext)({data:null,dispatch:We.a,authRequired:We.a}),il="LOAD_COMMENT_PREVIEW",cl="TOGGLE_LIKE",sl=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.type,r=t.payload;if(n===il)return Object(ce.camelizeKeys)(r);if(n===cl){var o=r.id,a=r.nextAction,i=r.rootCommentId;return Object.assign({},e,{data:e.data.map((function(e){return i?i!==e.id?e:Object.assign({},e,{childComments:e.childComments.map((function(t){return t.id!==o?t:Object.assign({},t,{likeCount:e.likeCount+("like"===a?1:-1),liked:"like"===a})}))}):e.id!==o?e:Object.assign({},e,{likeCount:e.likeCount+("like"===a?1:-1),liked:"like"===a})}))})}return e},ll=function(e){var t=e.children,n=e.resourceType,r=e.resourceId,o=e.redirectUrl,a=e.requestHost,i=e.commentUnfoldable,c=e.showInteractions,s=void 0===c||c,l=e.showSecondaryComment,u=e.showSecondaryCommentButton,d=e.showLevelInfo,h=e.preProxy,b=e.onAllCommentsShow,m=void 0===b?We.a:b,v=e.openInApp,g=void 0===v?We.a:v,y=e.listHeight,O=Object(p.useReducer)(sl,null),j=Be()(O,2),w=j[0],C=j[1],k=Object(Ge.c)(function(e){return Ks()("undefined"!=typeof fetch?fetch:tl,[e,el,$s].filter(Boolean))}(h)),x=Object(Ge.c)(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://www.zhihu.com";return function(t){return function(n){var r=n.target;return ol(e).then((function(e){if(e)return t(r)}))}}}(o)),S=Object(Ge.c)((function(e){for(var t="//".concat(null!=a?a:location.host),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o2&&void 0!==arguments[2])||arguments[2],r=null;return function(){var o=Date.now();if(!n&&!r||o-r0){n.disconnect();var r=e.props,o=r.view,a=void 0===o?{}:o,i=r.extra;e.trackCardShowTimer=setTimeout((function(){T.a.trackCardShow(xe()(e),a,i)}))}})),e}return Te()(n,[{key:"componentDidMount",value:function(){this.setModule()}},{key:"componentDidUpdate",value:function(){this.setModule()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.trackCardShowTimer)}},{key:"setModule",value:function(){var e=this.props,t=e.module,n=e.index,r=e.isAd,o=e.moduleName,a=e.content,i=e.list,c=e.card,s=e.attachedInfoBytes;if(t){var l=Object(Qs.findDOMNode)(this);l&&T.a.setModule(l,{module:t,index:n,is_ad:r,module_name:o},function(e,t,n,r){return Object.assign({},e&&{card:{content:e}},t&&{card:t},n&&{list:n},r&&{attached_info_bytes:r})}(a,c,i,s))}}},{key:"render",value:function(){var e=this.props,t=e.visibleThreshold,n=e.trackCardShow,r=e.children;return n?Object(f.g)(fl,{threshold:t,onChange:this.handleIntersectionChange},r):r}}]),n}(p.Component);pl(hl,"propTypes",{id:g.a.string,module:g.a.string,moduleName:g.a.string,index:g.a.number,isAd:g.a.bool,content:g.a.object,extra:g.a.object,trackCardShow:g.a.bool,attachedInfoBytes:g.a.string}),pl(hl,"defaultProps",{id:null,module:null,index:null,isAd:!1,content:null,extra:null,attachedInfoBytes:null,trackCardShow:!1,visibleThreshold:0});var bl={avatarUrl:"https://pic4.zhimg.com/50/da8e974dc_s.jpg",badge:null,id:"0"},ml=["1","0.7","0.4"],vl={name:"y94coq-CommentInput",styles:"display:flex;align-items:center;justify-content:space-between;width:100%;;label:CommentInput;"},gl={name:"15hob7-CommentInput",styles:"width:100%;align-items:center;;label:CommentInput;"},yl={name:"1qhwv8r-CommentInput",styles:"line-height:normal;;label:CommentInput;"},Ol={name:"yi8ge9-CommentInput",styles:"height:34px;align-items:center;margin-right:4px;;label:CommentInput;"},jl=function(e){var t=e.inputPlaceholder,n=e.emoticons,r=e.currentUserId,o=Object(p.useState)([]),a=Be()(o,2),i=a[0],c=a[1],s=Object(p.useState)(bl),l=Be()(s,2),u=l[0],d=l[1];return Object(p.useEffect)((function(){n.length>0&&Ye.a.dispatch("base/getFrequentlyUsedEmoticon",{count:3}).then((function(e){if(null==e?void 0:e.data)return c(e.data.map((function(e){return t=e,n.find((function(e){return e.placeholder===t}));var t})))}))}),[n]),Object(p.useEffect)((function(){r?Ye.a.dispatch("base/getData",{type:"people",id:r}).then((function(e){var t=e.data;t&&d(Object(ce.camelizeKeys)(t))})):Ye.a.dispatch("account/me").then((function(e){if(null==e?void 0:e.url_token){var t=e.avatar_url,n=e.url_token,r=e.badge_v2,o=e.badge;d({avatarUrl:t,id:n,badgeV2:r,badge:o})}}))}),[r]),Object(f.g)(m.Flex,{css:gl},Object(f.g)(Xs,{user:u}),Object(f.g)(hl,{module:"CommentEditView"},Object(f.g)(dl,{as:m.Flex,query:{openEditor:!0},css:function(e){return{flex:1,border:"1px solid ".concat(e.colors.GBK09A),marginLeft:"10px",borderRadius:"8px",height:"36px",paddingLeft:"10px",fontSize:"13px",color:e.colors.GBK06A}},innerStyle:vl,onClick:function(e){return T.a.trackEvent(e.target,{id:1203,action:"Click"})}},Object(f.g)(m.Text,{css:yl},t||"写下你的评论..."),i.length>0&&Object(f.g)(m.Flex,{css:Ol},i.filter(Boolean).map((function(e,t){var n=e.static_image_url,r=e.title;return Object(f.g)("img",{key:r,src:n,css:Object(as.a)({width:"20px",height:"20px",marginRight:"4px",opacity:ml[t]},";label:CommentInput;")})}))))))},wl={hybrid:{username:{fontSize:14,color:"GBK02A"},authorTag:{fontSize:13},content:{lineHeight:"21px"},commentTag:{fontSize:12,height:20,lineHeight:"16px",color:"GBK06A",marginTop:"6px"}},web:{username:{fontSize:15,color:"GBK03A"},authorTag:{fontSize:15},content:{lineHeight:"24px"},commentTag:{fontSize:14,height:24,lineHeight:"24px",color:"GBL05A",marginTop:"4px"}}};function Cl(e){var t=e.name,n=e.nicknameColor,r=void 0===n?{}:n,o=e.showLevelInfo,a=e.isOrg,i=e.id,c=e.className,s=e.uaType,l=Object(us.f)(),u=r.color,d=r.nightModeColor,p=Boolean(o&&u&&d&&!a),h=l.isDarkMode?d:u,b=l.isDarkMode?"#999999":"#1a1a1a",v=p?h:b,g="0"===i||""===i,y=g?m.Text:Ds.b,O=wl[s].username,j=O.fontSize,w=O.color;return Object(f.g)(y,Object.assign({},!g&&{href:"https://www.zhihu.com/".concat(a?"org":"people","/").concat(i),as:m.Text},{color:v||w,fontSize:j,fontWeight:"bold",lineHeight:"16px",css:Object(as.a)([{flex:"0 1 auto"},Object(us.d)(1)],";label:LevelInfoName;"),className:c}),t)}var kl={name:"1ronkat-AuthorLevelIcon",styles:"margin-left:6px;height:16px;display:flex;align-items:center;;label:AuthorLevelIcon;"};function xl(e){var t=e.levelInfo,n=void 0===t?{}:t,r=n.level,o=n.iconInfo,a=o.url,i=o.nightModeUrl,c=Object(us.f)().isDarkMode?i:a;return Object(f.g)("a",{href:"https://www.zhihu.com/level-detail",css:kl},Object(f.g)(m.Image,{height:"14px",src:c,alt:"等级 ".concat(r)}))}var Sl=["comment_gif","comment_img","comment_sticker"],El=function(e,t){return e instanceof NodeList?Object(f.g)(h.a.Fragment,null,[].map.call(e,(function(e,n){return Object(f.g)(p.Fragment,{key:n},t(e,n))}))):t(e)},Rl={class:"className"},Tl=function(e,t){function n(e,t){return e.nodeType===Node.TEXT_NODE?e.nodeValue:e.nodeType===Node.ELEMENT_NODE?Object(p.createElement)("A"===e.nodeName&&t?Ds.b:e.tagName.toLowerCase(),e.attributes?Array.from(e.attributes).reduce((function(e,t){return e[Rl[t.name]||t.name]=t.value,e}),{}):{},e.childNodes.length?El(e.childNodes,n):null):null}return El(e,(function(e){return t(e,(function(t){return n(e,t)}))}))},Al=function(e,t){return e.replace(/(\[[^[^\]]+\])/g,(function(e){var n=t.find((function(t){return t.placeholder===e}));return n?"'):e}))},Nl=h.a.memo((function(e){return function(e){if("undefined"==typeof DOMParser)return Object(f.g)("div",{dangerouslySetInnerHTML:{__html:e}});var t=(new DOMParser).parseFromString(e,"text/html");return Tl(t.body.childNodes,(function(e,t){return e.nodeType===Node.ELEMENT_NODE?t(!0):e.textContent}))}(e.text)})),_l=function(e){var t=e.tagInfo,n=e.richText,r=e.responseLink,o=e.className,a=Object(Ws.b)().isDarkMode;if(!t)return null;var i=t.text,c=t.color,s=t.nightColor,l=t.hasBorder,u=t.borderColor,d=t.borderNightColor,h=t.targetLink,b=h&&r,m=Object(p.useContext)(al).openInApp,v=Object(Fs.b)(),g=Object(Ge.c)((function(e){b&&!v.ZhihuHybrid&&(e.preventDefault(),m())})),y=b?Ds.b:"span";return Object(f.g)(y,Object.assign({css:function(e){return Object.assign({},l&&u&&Object(us.c)({border:"1px solid ".concat(a?d:u),borderRadius:"4px"}),b&&{textDecoration:"none"},{height:"14px",fontSize:"10px",lineHeight:"15px",boxSizing:"border-box",marginLeft:"4px",padding:"0 4px","& a":{color:e.colors.GBL01A,textDecoration:"none"}})},className:o,style:{color:a?s:c},onClick:g},Boolean(b)&&{href:h}),n?Object(f.g)(Nl,{text:i}):i,Boolean(h)&&Object(f.g)(Xe.a,{css:function(e){return{fill:e.colors[c],marginRight:"-2px"}},center:!0,size:12}))};var Il={answer:"回答",article:"文章",pin:"想法"},Ml={name:"35g1vl-Vip",styles:"margin-left:4px;;label:Vip;"},Ll={name:"gcn50p-Vip",styles:"height:14px;width:14px;;label:Vip;"},Pl=function(e){var t=e.vipInfo,n=t.vipIcon,r=(n=void 0===n?{}:n).url,o=t.isVip,a=Object(p.useContext)(al).resourceType;return Object(p.useEffect)((function(){T.a.trackCardShow(null,{id:3613,name:Il[a]})}),[a]),r&&o?Object(f.g)(Ds.a,{shouldTrackShow:!0,zaType:"Image",zaBlock:"VIP"},Object(f.g)("a",{href:"https://www.zhihu.com/vip?entry_privileges_type=member_id",css:Ml,onClick:function(){T.a.trackEvent(null,{id:3612,action:"Click",name:Il[a]})}},Object(f.g)(m.Image,{src:r,css:Ll}))):null};var Bl={name:"oyggkg-UserLine",styles:"align-items:center;line-height:16px;;label:UserLine;"},zl={name:"t6oasj-UserLine",styles:"margin-left:4px;;label:UserLine;"},Dl=function(e){var t=e.showLevelInfo,n=void 0!==t&&t,r=e.authorTags,o=void 0===r?[]:r,a=e.className,i=e.user,c=e.uaType,s=e.badgeSize,l=void 0===s?14:s,u=i.name,d=i.vipInfo,p=i.levelInfo,h=i.badge,b=i.badgeV2,v=i.isOrg,g=i.id;return Object(f.g)(m.Flex,{css:Bl,className:a},Object(f.g)(Cl,Object.assign({name:u},p,{isOrg:v,id:g,showLevelInfo:n,uaType:c})),n&&p&&Object(f.g)(xl,{levelInfo:p}),o.map((function(e){return Object(f.g)(_l,{key:e.text,responseLink:!0,richText:!0,tagInfo:e})})),(null!=b?b:h)&&"hybrid"!==c&&Object(f.g)(Bs,{size:l,badge:null!=b?b:h,css:zl}),d&&Object(f.g)(Pl,{vipInfo:d}))};Dl.propTypes={username:g.a.string.isRequired,vipInfo:g.a.object};var Fl={name:"186dd9b-UnfoldButton",styles:"height:21px;;label:UnfoldButton;"},Ul=function(e){var t=e.onClick,n=Object(us.f)().colors,r=n.GBK04A,o=n.GBK99A;return Object(f.g)("span",{css:Object(as.a)({position:"absolute",right:0,bottom:0,paddingLeft:18,backgroundImage:"linear-gradient(90deg, ".concat(Object(us.b)(o).alpha(0),", ").concat(o," 25%, ").concat(o,")"),display:"inline-block",color:r},";label:UnfoldButton;"),onClick:t},"展开",Object(f.g)(Je.a,{center:!0,color:r,css:Fl}))},Vl=function(e){var t=e.comment,n=t.content,r=t.collapsed,o=t.isDeleted,a=t.id,i=e.emoticons,c=e.className,s=e.rootCommentId,l=e.unfoldable,u=e.uaType,d=!r&&!o,h=Object(p.useRef)(),b=Object(p.useRef)(),v=Object(p.useState)(!1),g=Be()(v,2),y=g[0],O=g[1],j=Object(p.useState)(!1),w=Be()(j,2),C=w[0],k=w[1],x=Object(p.useMemo)((function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if("undefined"==typeof DOMParser)return Object(f.g)("div",{dangerouslySetInnerHTML:{__html:e}});var n=Al(e,t),r=new DOMParser,o=r.parseFromString(n,"text/html");return Tl(o.body.childNodes,(function(e,t){return e.nodeType===Node.ELEMENT_NODE&&e.classList.contains("sticker")?t(!1):e.nodeType===Node.ELEMENT_NODE&&e.textContent.match("http")?t(!0):e.textContent}))}(n,null!=i?i:[])}),[n,i]),S=wl[u].content.lineHeight;Object(p.useLayoutEffect)((function(){var e,t;l&&!C&&(null===(e=h.current)||void 0===e?void 0:e.clientHeight)<(null===(t=b.current)||void 0===t?void 0:t.clientHeight)&&O(!0)}),[h,b,O,C,l]);var E=Object(Ge.c)((function(e){T.a.trackEvent(e.target,{id:1201,action:"OpenUrl",element_name:"Body"});var t,n=e.target;if(Sl.some((function(e){return n.classList.contains(e)}))){var r=n.href;r&&(t=r,Ye.a.dispatch("base/openImage",{images:[t],index:0})),e.preventDefault()}})),R=Object(Ge.c)((function(e){e.stopPropagation(),k(!0)}));return Object(f.g)(dl,{ref:h,innerRef:b,as:m.Box,onClick:E,fontSize:"15px",lineHeight:S,color:d?"GBK03A":"GBK07A",mt:"6px",css:Object(as.a)(Object.assign({position:"relative",overflowWrap:"break-word"},!C&&Object(us.d)(2),l&&!C&&{display:"block",overflow:"hidden",maxHeight:42},{img:{width:"1.24em",height:"1.24em",marginBottom:"-0.25em"}}),";label:CommentContent;"),className:c,zaType:"Card",query:{rootCommentId:s,anchorCommentId:a}},x,y&&!C&&Object(f.g)(Ul,{onClick:R}))},ql=function e(t){var n=function(e,t){return Object.keys(t).reduce((function(e,n){var r=e[n];if(delete e[n],r){var o=t[n],a="function"==typeof o?o(e):o;return Object.assign({},e,a,a&&a.style&&{style:Object.assign({},e.style,a.style)})}return e}),Object.assign({},e))}(t,e.mapProps),r=n.name,o=n.className,a=n.defaultClassName,i=n.size,c=n.center,s=qe()(n,["name","className","defaultClassName","size","center"]),l=Object(f.g)("svg",Object.assign({className:"".concat(a," ").concat(a,"--").concat(r).concat(o?" ".concat(o):"")},s,i&&{width:i,height:i}));return c?Object(f.g)("span",{style:e.strutStyle},"​",l):l};ql.defaultProps={defaultClassName:"Icon",fill:"currentColor"},ql.mapProps={text:{size:"1.2em"}},ql.strutStyle={display:"inline-flex",alignItems:"center"};var Hl=function(e){return Object(f.g)(ql,Object.assign({viewBox:"0 0 24 24"},e),Object(f.g)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C16.9706 3 21 7.02944 21 12C21 12.9242 20.7842 14.037 20.3617 15.3551C20.2673 15.6497 20.2603 15.9655 20.3417 16.264L20.4506 16.64C21.073 18.8462 21.1396 20.1542 20.6504 20.5641C20.1634 20.972 18.8358 20.9294 16.6675 20.4363L16.264 20.3417C15.9655 20.2603 15.6497 20.2673 15.3551 20.3617C14.037 20.7842 12.9242 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3ZM12 4.61093C7.9191 4.61093 4.6109 7.91913 4.6109 12C4.6109 16.0809 7.9191 19.3891 12 19.3891C12.7277 19.3891 13.6797 19.2071 14.8633 18.8277C15.4548 18.6381 16.0886 18.6241 16.6417 18.7757C17.687 19.0279 18.5219 19.1739 19.1295 19.2169L19.248 19.2241L19.349 19.228L19.3449 19.1745C19.2933 18.6329 19.1303 17.872 18.846 16.8877L18.7875 16.6878C18.6241 16.0886 18.638 15.4548 18.8276 14.8633C19.2071 13.6797 19.389 12.7277 19.389 12C19.389 7.91913 16.0808 4.61093 12 4.61093Z"}))};Hl.defaultProps={name:"CommentLikeNormal"};var Kl=function(e){return Object(f.g)(ql,Object.assign({viewBox:"0 0 43 41"},e),Object(f.g)("path",{fill:"currentColor",fillRule:"evenodd",d:"M19.417 35.624L10.37 40.38a1.734 1.734 0 0 1-2.516-1.829l1.728-10.073a4.625 4.625 0 0 0-1.33-4.094L.933 17.25a1.734 1.734 0 0 1 .961-2.958l10.114-1.47a4.625 4.625 0 0 0 3.483-2.53l4.523-9.165a1.734 1.734 0 0 1 3.11 0l4.524 9.166a4.625 4.625 0 0 0 3.482 2.53l10.114 1.47a1.734 1.734 0 0 1 .961 2.957l-7.319 7.134a4.625 4.625 0 0 0-1.33 4.094l1.728 10.073a1.734 1.734 0 0 1-2.516 1.829l-9.047-4.756a4.625 4.625 0 0 0-4.304 0z"}))};Kl.defaultProps={name:"Star"};var Ql=function(e){return Object(f.g)(ql,Object.assign({viewBox:"0 0 43 41"},e),Object(f.g)("g",{fillRule:"evenodd"},Object(f.g)("path",{d:"M19.417 35.624L10.37 40.38a1.734 1.734 0 0 1-2.516-1.829l1.728-10.073a4.625 4.625 0 0 0-1.33-4.094L.933 17.25a1.734 1.734 0 0 1 .961-2.958l10.114-1.47a4.625 4.625 0 0 0 3.483-2.53l4.523-9.165a1.734 1.734 0 0 1 3.11 0l4.524 9.166a4.625 4.625 0 0 0 3.482 2.53l10.114 1.47a1.734 1.734 0 0 1 .961 2.957l-7.319 7.134a4.625 4.625 0 0 0-1.33 4.094l1.728 10.073a1.734 1.734 0 0 1-2.516 1.829l-9.047-4.756a4.625 4.625 0 0 0-4.304 0z",opacity:".2"}),Object(f.g)("path",{d:"M21.5.162v34.931c-.716.01-1.43.188-2.083.53L10.37 40.38a1.734 1.734 0 0 1-2.516-1.829l1.728-10.073a4.625 4.625 0 0 0-1.33-4.094L.933 17.25a1.734 1.734 0 0 1 .961-2.958l10.114-1.47a4.625 4.625 0 0 0 3.483-2.53l4.523-9.165c.29-.59.872-.94 1.486-.965z"})))};Ql.defaultProps={name:"HalfStar"};var Wl=Ke()(Array(5)),Gl={name:"1341f8n-ScoreBar",styles:"margin-right:2px;;label:ScoreBar;"},Yl={name:"1341f8n-ScoreBar",styles:"margin-right:2px;;label:ScoreBar;"},Zl=function(e){var t=e.score/2,n=Object(us.f)().colors.GRD10A,r=Object(us.b)(n).alpha(.2);return Object(f.g)(m.Flex,{flexDirection:"row",height:"20px",alignItems:"center",mt:"2px"},Wl.map((function(e,o){var a=function(e,t){return e-t>=0?1:e-t<=-1?0:.5}(t,o+1);return.5===a?Object(f.g)(Ql,{key:"".concat(o,"-").concat(a),css:Gl,color:n,size:12}):Object(f.g)(Kl,{key:"".concat(o,"-").concat(a),css:Yl,color:a?n:r,size:12})})))},Xl=function(e){return Object(f.g)(ql,Object.assign({viewBox:"0 0 24 24"},e),Object(f.g)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 4.07782C8.5 2.24411 10.4861 1.09899 12.0731 2.01775C13.7298 2.9769 14.663 4.82463 14.4516 6.72727L14.3379 7.74996H17.9194C20.4493 7.74996 22.2533 10.2038 21.4987 12.6185L19.6761 18.4508C19.1559 20.1155 17.5599 21.197 15.8279 21.0902C13.456 20.9438 9.78636 20.75 7 20.75H4.49936C3.53225 20.75 2.75 19.9658 2.75 19V9.49996C2.75 8.53346 3.5335 7.74996 4.5 7.74996H5.1371C6.55156 7.74996 7.81995 6.87883 8.32771 5.55864C8.4416 5.26254 8.5 4.94801 8.5 4.63076V4.07782ZM11.3215 3.31589C10.7346 2.97608 10 3.39961 10 4.07782V4.63076C10 5.13211 9.90771 5.62918 9.72773 6.09711C8.99716 7.99659 7.17222 9.24996 5.1371 9.24996H4.5C4.36193 9.24996 4.25 9.36189 4.25 9.49996V19C4.25 19.1386 4.36191 19.25 4.49936 19.25H7C9.83637 19.25 13.5459 19.4465 15.9203 19.593C16.9721 19.6579 17.9327 19.0008 18.2444 18.0034L20.067 12.1711C20.5198 10.7222 19.4374 9.24996 17.9194 9.24996H13.5C13.2867 9.24996 13.0834 9.15911 12.9412 9.00015C12.7989 8.84119 12.731 8.62916 12.7546 8.41713L12.9608 6.56162C13.1065 5.25035 12.4633 3.97693 11.3215 3.31589Z"}))};Xl.defaultProps={name:"CommentLikeNormal"};var Jl=function(e){return Object(f.g)(ql,Object.assign({viewBox:"0 0 24 24"},e),Object(f.g)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M8.5 4.07782C8.5 2.24411 10.4861 1.09899 12.0731 2.01775C13.7298 2.9769 14.663 4.82463 14.4516 6.72727L14.3379 7.74996H17.9194C20.4493 7.74996 22.2533 10.2038 21.4987 12.6185L19.6761 18.4508C19.1559 20.1155 17.5599 21.197 15.8279 21.0902C13.456 20.9438 9.78636 20.75 7 20.75H4.49936C3.53225 20.75 2.75 19.9658 2.75 19V9.49996C2.75 8.53346 3.5335 7.74996 4.5 7.74996H5.1371C6.55156 7.74996 7.81995 6.87883 8.32771 5.55864C8.4416 5.26254 8.5 4.94801 8.5 4.63076V4.07782Z",fill:"#0066FF"}))};Jl.defaultProps={name:"CommentLikeActive"};var $l=function(e){var t,n=e.comment,r=e.rootCommentId,o=n.likeCount,a=n.liked,i=Object(Fs.b)(),c=Object(p.useRef)(!1),s=Object(p.useContext)(al),l=s.dispatch,u=s.fetcher,d=s.authRequired,b=s.openInApp,m=a?Jl:Xl,v=(t=pt(Gs),Object(p.useEffect)(t.mount,[]),t),g=Object(Ge.c)(Ue()(De.a.mark((function e(){return De.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return setTimeout((function(){Ye.a.dispatch("iOS/hapticFeedback")}),300),e.next=3,v.start({scale:1.3,transition:{type:"tween",duration:.2,ease:[0,0,.58,1]}});case 3:return e.next=5,v.start({scale:1,transition:{type:"tween",duration:.3,ease:[.42,0,.2,1.8]}});case 5:case"end":return e.stop()}}),e)})))),y=Object(Ge.c)(function(){var e=Ue()(De.a.mark((function e(t){var o;return De.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i.ZhihuHybrid){e.next=3;break}return b(),e.abrupt("return");case 3:if(!c.current){e.next=5;break}return e.abrupt("return");case 5:return c.current=!0,T.a.trackEvent(t,{action:a?"UnUpvote":"Upvote",id:a?1444:1202}),"like"===(o=a?"dislike":"like")&&g(),e.prev=9,e.next=12,u("/api/v4/comment_v5/comment/".concat(n.id,"/reaction/").concat(o),{method:"PUT"});case 12:l({type:cl,payload:{nextAction:o,id:n.id,rootCommentId:r}}),e.next=18;break;case 15:e.prev=15,e.t0=e.catch(9),Ye.a.dispatch("ui/showToast",{icon:"fail",text:e.t0&&e.t0.toastMsg||"操作失败"});case 18:return e.prev=18,c.current=!1,e.finish(18);case 21:case"end":return e.stop()}}),e,null,[[9,15,18,21]])})));return function(t){return e.apply(this,arguments)}}()),O=i.ZhihuHybrid?"":"赞";return Object(f.g)(h.a.Fragment,null,Object(f.g)(A.a,{zaType:"Button",zaAction:a?"UnUpvote":"Upvote",as:es.button,css:function(){return{marginLeft:"16px",display:"flex",alignItems:"center",justifyContent:"center",padding:0,color:"inherit",font:"inherit",background:"none",outline:"none",border:"none",appearance:"none"}},initial:{scale:1},animate:v,onClick:d(y)},i.ZhihuHybrid?Object(f.g)(m,{size:20,css:function(e){return{fill:e.colors.GBK06A}}}):Object(f.g)($e.a,{size:16,css:function(e){return{fill:e.colors.GBL05A}}})),Object(f.g)("span",{css:function(e){return{marginLeft:"4px",color:e.colors[a?"GBL01A":"GBK06A"]}}},o>0?Object(Ze.cnNiceNumber)(o):O))},eu={name:"1xugp30-CommentFooter",styles:"flex-direction:column;;label:CommentFooter;"},tu={name:"860uge-CommentFooter",styles:"height:auto;padding:0;font-size:11px;line-height:16px;margin-top:6px;&:first-of-type{margin-left:0;};label:CommentFooter;"},nu={name:"mtl4uv-CommentFooter",styles:"flex-shrink:0;align-items:baseline;;label:CommentFooter;"},ru={name:"19bza57-CommentFooter",styles:"flex-shrink:0;align-items:center;;label:CommentFooter;"},ou=function(e){var t=e.comment,n=e.rootCommentId,r=e.className,o=e.uaType,a=e.isSecondary,i=t.score,c=t.createdTime,s=t.contentTag,l=t.commentTag,u=t.canLike,d=t.resourceId,h=t.resourceType,b=Object(p.useContext)(al).showInteractions,v=wl[o].commentTag,g=v.fontSize,y=v.color,O=v.height,j=v.lineHeight,w=v.marginTop,C="hybrid"===o;return Object(f.g)(m.Flex,{css:eu,className:r},i>0&&Object(f.g)(Zl,{score:i}),Object(f.g)(m.Flex,{flexDirection:"row"},s.map((function(e){return Object(f.g)(_l,{key:e.text,richText:!0,tagInfo:e,css:tu})}))),Object(f.g)(m.Flex,{fontSize:g,justifyContent:"space-between",alignItems:"center",height:O,lineHeight:j,mt:w,color:y},Object(f.g)(m.Flex,{css:nu},Object(f.g)("span",null,Object(Ys.toSmartString)(c),Boolean(l.length)&&" · "),l.map((function(e){return Object(f.g)(_l,{key:e.text,tagInfo:e,css:Object(as.a)({fontSize:g,paddingLeft:0,paddingRight:0},";label:CommentFooter;")})}))),b&&Object(f.g)(m.Flex,{css:ru},Object(f.g)(dl,{query:{openEditor:!0,anchorCommentId:t.id,rootCommentId:n,replyAuthorName:t.author.name,resourceId:d,resourceType:h}},C?Object(f.g)(Hl,{size:20,center:!0}):Object(f.g)(et.a,{size:18,center:!0}),!C&&!a&&Object(f.g)("span",{css:function(e){return{marginLeft:"4px",color:e.colors.GBL05A}}},"回复")),(!C||u)&&Object(f.g)($l,{comment:t,rootCommentId:n}))))};var au={name:"1dcx2oz-SecondaryCommentComponent",styles:"flex-direction:column;;label:SecondaryCommentComponent;"},iu={name:"4hy4b-SecondaryCommentComponent",styles:"margin-top:4px;;label:SecondaryCommentComponent;"},cu={name:"1eevzca-SecondaryCommentComponent",styles:"width:24px;height:24px;;label:SecondaryCommentComponent;"},su={name:"12bc2ol-SecondaryCommentComponent",styles:"flex:1;flex-direction:column;margin-left:8px;;label:SecondaryCommentComponent;"},lu={name:"1vk1mee-SecondaryCommentComponent",styles:"font-weight:normal;;label:SecondaryCommentComponent;"},uu={name:"mwmz17-SecondaryCommentComponent",styles:"margin-top:-4px;;label:SecondaryCommentComponent;"},du=function(e){var t=e.comment,n=e.emoticons,r=e.rootCommentId,o=e.uaType,a=t.author,i=t.authorTag,c=t.index,s=t.id,l=t.replyToAuthor,u=t.replyAuthorTag,d=wl[o].authorTag.fontSize;return Object(f.g)(m.Flex,{css:au},Object(f.g)(A.b,{content:{type:"Comment",id:t.id}},Object(f.g)(hl,{module:"CommentItem",index:c,card:{content:{type:"Comment",id:s}},view:{id:1199},trackCardShow:!0},Object(f.g)(A.e,{as:m.Flex,css:iu,zaType:"Card"},Object(f.g)(Xs,{user:a,css:cu,badgeSize:13}),Object(f.g)(m.Flex,{css:su},Object(f.g)("div",{css:function(e){return{display:"flex",fontSize:d,color:e.colors.GBK03A,alignItems:"center",fontWeight:"bold",lineHeight:"16px"}}},Object(f.g)("div",null,a.name),i.map((function(e){return Object(f.g)(_l,{key:e.text,tagInfo:e,css:lu})})),l&&Object(f.g)(h.a.Fragment,null,Object(f.g)(Xe.a,{size:12,center:!0,css:function(e){return{marginRight:"4px",fill:e.colors.GBK06A}}}),Object(f.g)("div",null,l.name),u.map((function(e){return Object(f.g)(_l,{key:e.text,tagInfo:e})})))),Object(f.g)(Vl,{comment:t,emoticons:n,rootCommentId:r,uaType:o,css:function(e){return{marginTop:"4px",color:e.colors.GBK04A}}}),Object(f.g)(ou,{comment:t,rootCommentId:r,css:uu,uaType:o,isSecondary:!0}))))))},fu=function(e){var t=e.id,n=e.count,r=e.offsetLeft;return n?Object(f.g)(dl,{as:m.Text,css:Object(as.a)({display:"flex",justifyContent:"flex-start",marginTop:"8px",marginLeft:r},";label:SecondaryCommentShowAll;"),innerStyle:function(e){return{display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"center",fontSize:"12px",height:"28px",background:e.colors.GBK10A,color:e.colors.GBK03A,padding:"0 10px 0 16px",borderRadius:"14px"}},query:{rootCommentId:t}},Object(f.g)("span",null,"查看全部"," ".concat(Object(Ze.cnNiceNumber)(n)),"条回复"),Object(f.g)(tt.a,{center:!0,size:18,css:function(e){return{fill:e.colors.GBK03A}}})):null};var pu={name:"41k5ss-SecondaryComments",styles:"border-radius:8px;flex-direction:column;margin-top:6px;margin-left:40px;;label:SecondaryComments;"},hu=function(e){var t=e.comments,n=e.count,r=e.emoticons,o=e.rootCommentId,a=e.uaType,i=Object(p.useContext)(al),c=i.showLevelInfo,s=i.showSecondaryComment,l=i.showSecondaryCommentButton;return!s&&!l||0===t.length?null:Object(f.g)(m.Flex,{css:pu},s&&t.map((function(e,t){return Object(f.g)(A.b,{content:{type:"Comment",id:e.id},key:e.id},Object(f.g)(hl,{module:"CommentItem",content:{type:"Comment",id:e.id},index:t,view:{id:1199},trackCardShow:!0},Object(f.g)(du,{comment:e,showLevelInfo:c,emoticons:r,rootCommentId:o,uaType:a})))})),l&&Object(f.g)(fu,{id:o,count:n,offsetLeft:s?32:0}))};var bu={name:"ggkfz0-CommentItem",styles:"flex-direction:column;;label:CommentItem;"},mu={name:"10bw6yb-CommentItem",styles:"margin-top:16px;;label:CommentItem;"},vu={name:"1xuwofq-CommentItem",styles:"flex:1;flex-direction:column;margin-left:10px;;label:CommentItem;"},gu=function(e){var t=e.comment,n=e.showLevelInfo,r=e.showInteractions,o=e.emoticons,a=t.author,i=t.authorTag,c=t.childComments,s=void 0===c?[]:c,l=t.childCommentCount,u=t.index,d=t.id,h=Object(Fs.b)(),b=(null==h?void 0:h.ZhihuHybrid)||(null==h?void 0:h.Zhihu),v=b?"hybrid":"web",g=Object(p.useContext)(al).commentUnfoldable;return Object(f.g)(m.Flex,{css:bu},Object(f.g)(A.b,{content:{type:"Comment",id:t.id}},Object(f.g)(hl,{module:"CommentItem",index:u,card:{content:{type:"Comment",id:d}},view:{id:1199},trackCardShow:!0},Object(f.g)(A.e,{as:m.Flex,css:mu,zaType:"Card"},Object(f.g)(Xs,{user:a,isHybrid:b}),Object(f.g)(m.Flex,{css:vu},Object(f.g)(Dl,{user:a,showLevelInfo:n,authorTags:i,uaType:v}),Object(f.g)(Vl,{unfoldable:g,comment:t,emoticons:o,uaType:v}),Object(f.g)(ou,{comment:t,showInteractions:r,uaType:v}))))),Object(f.g)(hu,{comments:s,count:l,emoticons:o,rootCommentId:d,uaType:v}))};var yu={name:"1xcn102-PreviewCommentContent",styles:"margin:0 16px 40px;flex-direction:column;;label:PreviewCommentContent;"},Ou={name:"xpd3m8-PreviewCommentContent",styles:"font-size:15px;font-weight:500;margin-bottom:16px;;label:PreviewCommentContent;"},ju={name:"tihhxc-PreviewCommentContent",styles:"height:18px;;label:PreviewCommentContent;"},wu=function(e){var t,n=e.className,r=e.showLevelInfo,o=e.showInteractions,a=e.resourceType,i=e.resourceId,c=e.currentUserId,s=void 0===c?"":c,l=e.showCommentInput,u=e.inputPlaceholder,d=e.customHeader,b=e.customFooter,v=e.onCommentChange,g=e.commentType,y=void 0===g?"abstract_comment":g,O=e.onLoad,j=Object(p.useState)([]),w=Be()(j,2),C=w[0],k=w[1],x=Object(p.useContext)(al),S=x.fetcher,E=x.data,R=x.dispatch,A=Object(Ge.g)(E),N=Object(Ge.c)(v),_=Object(Ge.c)((function(){S("/api/v4/comment_v5/".concat(a,"s/").concat(i,"/").concat(y)).then((function(e){return R({type:il,payload:e})}))}));Object(p.useEffect)(_,[_]),Object(p.useEffect)((function(){var e=Ye.a.listen("base/onMessage",(function(e){var t=e.type,n=e.data;if("comment/listChange"===t){var r=n.status;n.resourceType===a&&String(n.resourceId)===String(i)&&(_(),N(r))}}));return function(){return e()}}),[]);var I=1===(null==E||null===(t=E.commentStatus)||void 0===t?void 0:t.type);if(Object(p.useEffect)((function(){I||Object(is.loadScript)("https://unpkg.zhimg.com/@cfe/emoticon@1.2.3/lib/emoticon.js").then((function(){return window.zh_emoticon?window.zh_emoticon.reduce((function(e,t){var n;return[].concat(Ke()(e),Ke()(null!==(n=t.stickers)&&void 0!==n?n:[]))}),[]):[]})).then(k)}),[I]),Object(p.useEffect)((function(){!A&&E&&(null==O||O())}),[A,E,O]),!E)return null;var M=E.counts.totalCounts,L=E.data,P=void 0===L?[]:L;if(I)return null;var B=M>0?Object(Ze.cnNiceNumber)(M):"";return Object(f.g)(m.Flex,{className:n,css:yu},d?d(B):Object(f.g)(m.Box,{color:"GBK02A",css:Ou},"评论 ".concat(B)),l&&Object(f.g)(jl,{inputPlaceholder:u,emoticons:C,currentUserId:s}),P.map((function(e,t){return Object(f.g)(gu,{key:e.id,comment:e,showLevelInfo:r,showInteractions:o,emoticons:C,index:t})})),P.length>0&&Object(f.g)(hl,{module:"CommentList"},Object(f.g)(dl,{as:m.Flex,css:function(e){return{marginTop:"20px",color:e.colors.GBK06A,fontSize:"13px",width:"100%",justifyContent:"center",lineHeight:"normal",alignItems:"center"}},onClick:function(e){return T.a.trackEvent(e.target,{id:1204,action:"OpenUrl",element_name:"ViewAll"})}},b?b(B):Object(f.g)(h.a.Fragment,null,Object(f.g)("span",{css:ju},"查看全部评论"),Object(f.g)(tt.a,{size:18,center:!0,css:function(e){return{color:e.colors.GBK06A,marginLeft:"4px"}}})))))};wu.propTypes={className:g.a.string,showCommentInput:g.a.bool,showLevelInfo:g.a.bool.isRequired,showSecondaryComment:g.a.bool,showSecondaryCommentButton:g.a.bool,commentUnfoldable:g.a.bool,resourceType:g.a.string.isRequired,resourceId:g.a.string.isRequired,currentUserId:g.a.string,inputPlaceholder:g.a.string,redirectUrl:g.a.string,customHeader:g.a.func,customFooter:g.a.func,onCommentChange:g.a.func,onLoad:g.a.func,preProxy:g.a.func,requestHost:g.a.string,commentType:g.a.string,showInteractions:g.a.bool},wu.defaultProps={showLevelInfo:!1,showInteractions:!0,showCommentInput:!0,showSecondaryComment:!0,showSecondaryCommentButton:!0,commentUnfoldable:!1,onCommentChange:We.a};var Cu=h.a.forwardRef((function(e,t){return Object(f.g)(ll,e,Object(f.g)(os,null,Object(f.g)(A.b,{block:"Comment"},Object(f.g)(wu,Object.assign({},e,{ref:t})))))})),ku=n(428),xu=n(1097),Su=Object(C.withRouter)(Object(j.connect)(null,{loadComments:ku.e})((function(e){var t=Object(p.useState)([]),n=Object(o.a)(t,2),r=n[0],a=n[1],i=e.parent,c=i.type,s=i.id,l=i.question,u=e.loadComments,f=e.location.pathname,h=-1!==(null==f?void 0:f.indexOf("answer")),b=-1!==(null==f?void 0:f.indexOf("question")),m=Object(j.useSelector)((function(e){return Object(he.j)(e,{type:h?"answer":b?"question":"",id:s||(null==l?void 0:l.id)})}));if(Object(p.useEffect)((function(){u(c,s).then((function(e){var t=e.payload;a(t.data)}))}),[s,c,u]),!(null==r?void 0:r.length))return null;var v=function(e,t){"zvideo"===c?Object(ee.e)(Object(ye.a)({type:c,id:s},{launch_button:t})):m?location.href="zhihu://".concat(c,"/").concat(s,"?utm_app_name=zhihu_check"):Object(ee.e)(Object(ye.a)({type:c,id:s},{launch_button:t})),e.preventDefault()};return Object(d.b)("div",{className:"CommentsForOia",children:Object(d.b)(Cu,{css:{margin:0},showInteractions:!1,resourceType:c,resourceId:String(s),showCommentInput:!1,openInApp:function(e){return v(e,xu.b.comment_list)},customHeader:function(){return null},customFooter:function(e){return e<=2?null:Object(d.b)(_.c,{css:{width:"calc(100vw - 32px) !important"},color:"blue",preset:"primary",onClick:function(e){return v(e,xu.b.comment_more)},children:"打开 App 查看更多评论"})}})})}))),Eu=n(1277),Ru=n(1278),Tu=n(960),Au=n(73),Nu=n(101),_u=n(1276),Iu=n.n(_u),Mu=n(1297),Lu=n.n(Mu),Pu=n(1309),Bu=n.n(Pu),zu=n(1362),Du=n.n(zu),Fu={answerAdmireCouldOpen:{image:Lu.a,title:"开启「赞赏」权益",content:"你已经获得了「赞赏」权益,使用「赞赏」可以得到更多收益。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/reward/community",detailViewName:"admire",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},answerAdmireCouldUse:{image:Lu.a,title:"使用「赞赏」权益",content:"你可以为这篇内容开启「赞赏」。「赞赏」开启后,读者将可以付费支持你的创作。",buttonText:"开启赞赏",detailViewName:"admire",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929},promotionCouldOpen:{image:Du.a,title:"开启「自定义推广」权益",content:"你已经获得了「自定义推广」权益,使用「自定义推广」可以让内容得到更多展示机会。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/custom-promotion",detailViewName:"promotion",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},promotionCouldUse:{image:Du.a,title:"使用「自定义推广」权益",content:"你可以使用「自定义推广」权益,使这篇内容获得更多展示机会。快去使用权益吧。",buttonText:"立即使用权益",buttonLink:"https://www.zhihu.com/creator/custom-promotion",detailViewName:"promotion",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929},recommendationCouldOpen:{image:Bu.a,title:"开启「内容自荐」权益",content:"你已经获得了「内容自荐」权益,优质内容通过自荐后可以展示给更多人。快去开启权益吧。",buttonText:"立即开启",buttonLink:"https://www.zhihu.com/creator/recommend",detailViewName:"recommend",cardShowId:4922,buttonClickId:4924,readAlwaysId:4926,readNextId:4928},recommendationCouldUse:{image:Bu.a,title:"使用「内容自荐」权益",content:"你可以使用「内容自荐」权益,让更多人看到这篇内容。快去使用权益吧。",buttonText:"立即自荐",detailViewName:"recommend",cardShowId:4923,buttonClickId:4925,readAlwaysId:4927,readNextId:4929}};var Uu=function(e){var t=e.notification,n=void 0===t?{}:t,r=e.className,o=e.onRead,a=e.onUseAdmire,i=e.onUseRecommend,c=Object.keys(n).find((function(e){return n[e]})),s=Fu[c]||{},l=s.title,u=s.image,f=s.content,h=s.buttonText,b=s.buttonLink,m=s.detailViewName,v=s.cardShowId,g=s.buttonClickId,y=s.readAlwaysId,j=s.readNextId;return Object(p.useEffect)((function(){c&&T.a.trackCardShow(null,{id:v,name:m})}),[c,v,m]),Object(d.b)(Au.b,{className:O()("CreatorRightsNotification",r),onClose:function(){o("next"),T.a.trackEvent(null,{id:j,name:m})},children:c&&Object(d.c)(p.Fragment,{children:[Object(d.b)("img",{className:"CreatorRightsNotification-background",src:Iu.a,alt:"blue background"}),Object(d.b)("img",{className:"CreatorRightsNotification-liukanshan",src:u,alt:"liukanshan image"}),Object(d.b)("div",{className:"CreatorRightsNotification-title",children:l}),Object(d.b)("div",{className:"CreatorRightsNotification-content",children:f}),Object(d.c)(Au.a,{className:"CreatorRightsNotification-buttonGroup",children:[b?Object(d.b)(Nu.a,{className:"CreatorRightsNotification-button",preset:"primary",color:"blue",to:b,target:"_blank",onClick:function(){o("current"),T.a.trackEvent(null,{id:g,name:m})},children:h}):Object(d.b)(_.c,{className:"CreatorRightsNotification-button",preset:"primary",color:"blue",onClick:function(){o("current"),T.a.trackEvent(null,{id:g,name:m}),"answerAdmireCouldUse"===c&&a(),"recommendationCouldUse"===c&&i()},children:h}),Object(d.b)(_.c,{className:"CreatorRightsNotification-dismiss",preset:"plain",color:"grey",onClick:function(){o("always"),T.a.trackEvent(null,{id:y,name:m})},children:"不再提醒"})]})]})})},Vu=n(1008),qu=n(1345),Hu=n(1123),Ku=n(854),Qu=n(890),Wu=n(902),Gu=n(899),Yu=n(241),Zu=n(1336),Xu=n(1340),Ju=n(862),$u=n(1311),ed=n(240),td=n(990),nd={up:1,neutral:0,down:-1};function rd(e){var t=e.id,n=e.voteupCount,r=e.voting,o=e.isOwner,a=e.answer,i=e.currentUser,c=e.disabled,s=Object(j.useDispatch)();Object(p.useEffect)((function(){!c&&i&&s(Object(ed.b)(["opposeRight"]))}),[c,i,s]);var l=Object(j.useSelector)((function(e){var t=e.entities.questions[a.question.id];return null==t?void 0:t.voteDownReason})),u=Object(j.useSelector)((function(e){return Object(ed.d)(e)})),f=Object(p.useCallback)((function(e){s(Object(oe.K)(a.id,nd[e],{zVideoId:t}))}),[t,s,a.id]);return Object(d.b)(td.a,{type:"zvideo",isShowVoteDownMenu:Boolean(!c&&i)&&u,count:n,voting:r,onVote:f,isOwner:o,voteDownReason:l,onLoadVoteDownReason:function(){s(Object(oe.k)(a.id,a.question.id))},onSelectVoteDownReason:function(e){s(Object(oe.C)(a.id,e.reasonId)).then((function(e){s(Object(fe.h)(e.payload.message))}))},onSetVoteDownReason:function(e){s(Object(ed.e)(e))}})}var od=n(913);function ad(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var id=function(e){Object(s.a)(n,e);var t=ad(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props.activateReward;return Object(d.c)("div",{className:"Reward",children:[Object(d.b)("button",{className:"Reward-activateBtn",onClick:e,children:"开启赞赏"}),Object(d.b)("div",{className:"Reward-activateHint",children:"赞赏开启后,读者将可以付费支持你的创作。"})]})}}]),n}(p.Component);function cd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}id.propTypes={activateReward:g.a.func};var sd=function(e){Object(s.a)(n,e);var t=cd(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.tagline,n=e.totalMoney,r=e.showRewarders;return Object(d.c)("div",{children:[Object(d.b)("div",{className:"Reward-tagline",children:t||re.p}),Boolean(n)&&Object(d.b)("div",{className:"Reward-money",children:Object(d.c)("span",{onClick:r,children:["¥ ",n.toFixed(2)]})})]})}}]),n}(p.Component);sd.propTypes={tagline:g.a.string,totalMoney:g.a.number,showRewarders:g.a.func};var ld=n(1136);function ud(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var dd=function(e){Object(s.a)(n,e);var t=ud(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.modalShown,n=e.onLoad,r=e.items,o=e.voteupCount,a=e.isRewardList,i=e.onClose,c=e.notice;return Object(d.b)(F.b,{size:"fullPage",onClose:i,children:t&&Object(d.b)(ld.a,{items:r,text:"赞赏了",isFetching:!1,isDrained:!1,voteupCount:o,onLoad:n,isRewardList:a,notice:c,type:"rewardPeople"})})}}]),n}(p.Component);function fd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}dd.propTypes={onLoad:g.a.func,modalShown:g.a.bool};var pd=function(e){Object(s.a)(n,e);var t=fd(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i6&&Object(d.c)("span",{className:"Reward-MoreUser",onClick:r,children:[Object(d.b)("i",{}),Object(d.b)("i",{}),Object(d.b)("i",{})]})]})]})}}]),n}(p.Component);pd.propTypes={users:g.a.array,handleListShown:g.a.func,rewardMemberCount:g.a.number,onUserClick:g.a.func},pd.defaultProps={users:[]};var hd=Object(ne.b)({module:"UserList",moduleName:"*** 人已赞赏"})(pd);function bd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var md=function(e){Object(s.a)(n,e);var t=bd(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.rewardMemberCount,n=e.handleListShown,r=e.isAuthor,o=e.users,a=e.onUserClick;return t?Object(d.b)(hd,{users:o,onUserClick:a,handleListShown:n,rewardMemberCount:t}):Object(d.b)("div",{className:"Reward-countZero",children:r?"还没有人赞赏。":"还没有人赞赏,快来当第一个赞赏的人吧!"})}}]),n}(p.Component);function vd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}md.propTypes={rewardMemberCount:g.a.number,handleListShown:g.a.func,isAuthor:g.a.bool,users:g.a.array,onUserClick:g.a.func};var gd=function(e){Object(s.a)(n,e);var t=vd(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){var e=this.props,t=e.tagline,n=e.onClick;return Object(d.c)("div",{children:[Object(d.b)("div",{className:"Reward-tagline",children:t||re.p}),Object(d.b)("button",{className:"Reward-rewardBtn",onClick:n,children:"赞赏"})]})}}]),n}(p.Component);function yd(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}gd.propTypes={onClick:g.a.func,tagline:g.a.string};var Od=function(){return n.e(38).then(n.bind(null,2644)).then((function(e){return e.TipjarDialog}))},jd=function(e){Object(s.a)(n,e);var t=yd(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0){var r={};n.forEach((function(e){r[e.urlToken]=e})),e.props.updateEntitiesUsers(r)}}))},e.handleListShown=function(t){var n=e.props.onRewardUserMoreClick;n&&n(t),e.setState({modalShown:!0})},e.handleListHide=function(){e.setState({modalShown:!1})},e.updateReward=function(t){var n=e.props,r=n.type,o=n.id,a=n.rewardInfo.canOpenReward;if("article"===r){var i=!!a||void 0;e.props.updateArticleReward(o,t,i)}else e.props.updateAnswerReward(o,t)},e.activateReward=function(){e.onSubmitReward(re.p)},e.showRewarders=function(){e.setState({modalShown:!0})},e.addReward=e.context.authRequired((function(t,n){var r=e.props,o=r.id;"article"===r.type?e.props.createArticleTipjar(o,t):e.props.createTipjar(o,t,n)}),void 0,fe.b),e.handleRewardButtonClick=function(t){var n=e.props.onRewardButtonClick;n&&n(t),e.setState({TipjarRender:!0})},e.colseTijarDialog=function(){e.setState({TipjarRender:!1})},e.removeTradeNumber=function(){var t=e.props,n=t.id,r=t.type;e.props.removeTradeNumber(n,r)},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.rewardInfo;e&&e.isRewardable&&this.onLoad("normal"),this.props.imperativeRef&&(this.props.imperativeRef.current={activateReward:this.activateReward.bind(this)})}},{key:"componentWillUnmount",value:function(){this.props.imperativeRef&&(this.props.imperativeRef.current=null)}},{key:"render",value:function(){var e=this.props,t=e.currentUser,n=e.isAuthor,r=e.isMobile,o=e.id,a=e.reward,i=e.author,c=e.type,s=e.ua,l=e.rewardInfo,u=l.canOpenReward,f=l.isRewardable,p=l.tagline,h=l.rewardTotalMoney,b=l.rewardMemberCount,m=e.onRewardUserClick,v=e.balanceEnable;if(n&&t&&"organization"===t.userType)return null;var g=this.state,y=g.TipjarRender,O=g.modalShown;if(n&&u)return Object(d.b)("div",{children:Object(d.b)(id,{activateReward:this.activateReward})});if(f){var j=a&&a[c][o]||{},w=j.tradeNumber,C=j.users,k=j.notice,x=Object(d.b)(dd,{modalShown:O,items:C,voteupCount:b,onLoad:this.onLoad,isRewardList:n,notice:k,onClose:this.handleListHide}),S=Object(d.b)(md,{rewardMemberCount:b,handleListShown:this.handleListShown,onUserClick:m,users:C,isAuthor:n});if(!n)return Object(d.c)("div",{className:"Reward",children:[Object(d.b)(gd,{tagline:p,onClick:this.handleRewardButtonClick}),S,x,Object(d.b)(D.a,{getComponent:Od,author:i,tagline:p,isMobile:r,ua:s,addReward:this.addReward,colseTijarDialog:this.colseTijarDialog,tradeNumber:w,removeTradeNumber:this.removeTradeNumber,onPaySuccess:this.onPaySuccess,TipjarRender:y,type:c,balanceEnable:v})]});var E=(Number(h)||0)/100;return Object(d.c)("div",{className:"Reward",children:[Object(d.b)(sd,{tagline:p,totalMoney:E,showRewarders:this.showRewarders}),x,S]})}return null}}]),n}(p.Component);jd.propTypes={reward:g.a.object,isAuthor:g.a.bool,author:g.a.object,id:g.a.number,rewardInfo:g.a.object,currentUser:g.a.object,ua:g.a.object,type:g.a.string,isMobile:g.a.bool,balanceEnable:g.a.bool,onRewardButtonClick:g.a.func,onRewardUserClick:g.a.func,onRewardUserMoreClick:g.a.func},jd.contextTypes={authRequired:g.a.func},jd.defaultProps={rewardInfo:{},type:"answer",balanceEnable:!0};var wd=Object(b.compose)(Object(j.connect)(null,{updateAnswerReward:oe.H,updateArticleReward:pe.l,createArticleTipjar:pe.b,getRewardUserDetails:pe.i,getPagingArticleRewardUser:pe.f,getPagingArticleRewardUserDetails:pe.g,getArticleRewardUser:pe.e,updateEntitiesUsers:pe.m,getRewardUser:pe.h,createTipjar:pe.c,removeTradeNumber:pe.k,onRewardSuccess:pe.j,showNotification:fe.h}))(jd),Cd=n(959),kd=n(18),xd=function(e){return h.a.createElement(kd.a,e,h.a.createElement("path",{d:"M16.387 10.869l-3.188-4.27A1 1 0 1 1 14.8 5.401l4.92 6.59-4.883 7.491a1 1 0 1 1-1.676-1.092l3.6-5.522H7a3 3 0 0 1-3-3V7a1 1 0 1 1 2 0v2.869a1 1 0 0 0 1 1h9.387z"}))};xd.defaultProps={name:"Jump"};var Sd=xd;var Ed=function(e){var t=e.className,n=e.commercial;if(!(n&&n.tail&&n.tail.url&&n.tail.message))return null;var r=n.tail,o=r.url,a=r.message;return Object(d.c)("a",{className:O()("CommercialQuestionTail",t),href:o,children:[a,Object(d.b)(Sd,{className:"CommercialQuestionTail-Icon",center:!0,text:!0})]})},Rd=n(1030),Td=n(1090),Ad=n(33),Nd=n.n(Ad),_d=n(863),Id=n.n(_d),Md=n(160),Ld=n.n(Md),Pd=n(935),Bd=n(949),zd=n(941),Dd=n(844);function Fd(e,t){return e.length<=t?e:"".concat(e.substring(0,t),"...")}function Ud(e){var t=e.logoUrl,n=e.productName,r=e.productDesc,o=e.link,a=void 0===o?"":o,i=e.btnText,c=void 0===i?"":i,s=e.className,l=void 0===s?"":s,u=e.productNameMaxLength,d=void 0===u?6:u,f=e.productDescMaxLength,p=void 0===f?15:f,b=e.btnTextMaxLength,m=void 0===b?4:b,v=e.type,g="".concat("pc"===v?"pc":"app","_EAnswerCard");return h.a.createElement("a",{ref:e.cardRef,onClick:e.onClick,href:a,target:"_blank",className:O()("".concat(g),l)},h.a.createElement(A.e,{zaType:"Card",zaBlock:"advertPluginCard"}),h.a.createElement("img",{src:t,className:"".concat(g,"-image"),alt:"logo"}),h.a.createElement("div",{className:"".concat(g,"-content")},h.a.createElement("div",{className:O()("".concat(g,"-content-appName")),style:{WebkitBoxOrient:"vertical",maxWidth:"".concat(d+1,"em")}},Fd(n,d)),r&&h.a.createElement("div",{className:"".concat(g,"-content-desc"),style:{maxWidth:"".concat(p+1,"em")}},Fd(r,p))),h.a.createElement("div",{className:"".concat(g,"-button"),style:{maxWidth:"".concat(m+1,"em")},onClick:e.onBtnClick},Fd(c,m)),"app"===v&&h.a.createElement("div",{className:"app_EAnswerCard-bottom-close",onClick:function(t){return function(e,t){e.stopPropagation(),e.preventDefault(),t.onClose()}(t,e)}},"×"))}var Vd=n(948),qd=function(e){function t(e){var n;return Ee()(this,t),(n=Ie()(this,Le()(t).call(this,e))).onceViewTrack=function(e,t){n.viewShow||(n.viewShow=!0,T.a.trackCardShow(e,{id:5642}),Object(Pd.f)(e,{trackMethod:Pd.g,tracks:t}))},n.addDSCListener=function(){try{var e=n.props.data.pluginType;if(/^android/i.test(e)){n.appPromotionUrl=null,n.downloadInfo=null,n.landingUrl=Object(Dd.e)(n.props.data,"plugin.".concat(e,".plugin.").concat(e,".landingUrl"),"");var t=Object(Dd.e)(n.props.data,"plugin.".concat(e,".plugin.").concat(e,".downloadInfo"),"{}"),r=Object(Dd.e)(JSON.parse(t.adjson||"{}"),"ads[0].creatives[0].asset.app_promotion_url","");r&&(Vd.a({app_promotion_url:n.appPromotionUrl},"ad/getDownloadStatus").then((function(e){var t=e.status,r=e.data;t||console.log("下载插件 ad/getDownloadStatus 调用失败!"),n.setState({status:r.status})})).catch(console.log),n.appPromotionUrl||Ye.a.listen("ad/downloadStatusChange",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.status,r=void 0===t?"error":t;n.setState({status:r})}))),n.appPromotionUrl=r,n.downloadInfo=t}}catch(e){console.log(e)}},n.onBtnClick=function(e){"pc"!==Object(Dd.h)().os&&n.appPromotionUrl&&n.downloadInfo&&(e.stopPropagation(),e.preventDefault(),n.sendClickTrack(),Vd.a(n.downloadInfo,"ad/downloadApk"))},n.sendClickTrack=function(){T.a.trackEvent(n.card,{id:5641,action:"OpenUrl"}),Object(Pd.a)({trackMethod:Pd.g,tracks:n.track.click})},n.handleClick=function(e){e.stopPropagation(),n.sendClickTrack(),"pc"!==Object(Dd.h)().os&&n.landingUrl&&n.downloadInfo&&(e.preventDefault(),Vd.a(n.downloadInfo,"ad/open"))},n.sessionId=Ld()(),n.init(e),n.viewShow=!1,n.state={status:"ready"},n}return Ne()(t,e),Te()(t,[{key:"init",value:function(e){var t=e.data,n=t.plugin,r=t.suger,o=void 0===r?"":r,a=(n[t.pluginType]||{}).trackUrl,i=void 0===a?{}:a,c=Object(Dd.h)(),s={xSuger:o,sessionId:this.sessionId,os:c.os,cardType:"".concat(c.os,"_download")};this.track=Object(Dd.t)(i,s)}},{key:"componentDidMount",value:function(){var e=this.props.data.visible,t=Object(Dd.h)();T.a.setModule(this.card,{module:"Content",module_name:"".concat(t.os,"_download")}),e&&this.onceViewTrack(this.card,this.track.view),this.addDSCListener()}},{key:"componentWillReceiveProps",value:function(e){e.data.visible&&this.onceViewTrack(this.card,this.track.view)}},{key:"render",value:function(){var e=this,t=this.props.data,n=t.author,r=void 0===n?{}:n,o=t.plugin,a=t.className,i=void 0===a?"":a,c=t.pluginType,s=(o[c]||{}).plugin,l=(void 0===s?{}:s)[c],u=Object(Dd.h)(),d=this.state.status,f=void 0===d?"ready":d,p={className:i,type:"pc"===u.os?"pc":"app",btnText:l.interaction||"立即下载",onClick:this.handleClick,productNameMaxLength:13,productDescMaxLength:15,btnTextMaxLength:4,onClose:this.props.onClose};return/^ios/i.test(c)?(p.logoUrl=l.icon,p.productName=l.name,l.score>0&&(p.productDesc="Appstore 评分:".concat(l.score)),p.link=l.landingUrl):/^android/i.test(c)&&(p.logoUrl=l.icon||r.avatarUrl||"",p.productName=l.name,p.link=l.landingUrl,p.onBtnClick=this.onBtnClick,zd.c[f]&&(p.btnText=zd.c[f])),p.link?h.a.createElement(A.c,Nd()({as:Ud,shouldTrackClick:!0,zaType:"Card",zaAction:"OpenUrl",zaBlock:"advertPluginCard",cardRef:function(t){e.card=t}},p)):null}}]),t}(h.a.Component);qd.propTypes={data:g.a.object.isRequired};var Hd=function(e){var t=e.data;return t&&t.plugin&&t.plugin[t.pluginType]?h.a.createElement(Bd.a,null,h.a.createElement(qd,e)):null},Kd=function(e){function t(e){var n;return Ee()(this,t),(n=Ie()(this,Le()(t).call(this,e))).onceViewTrack=function(e,t){n.viewShow||(n.viewShow=!0,T.a.trackCardShow(n.card,{id:5642}),Object(Pd.f)(e,{trackMethod:Pd.g,tracks:t}))},n.handleClick=function(e){e.stopPropagation(),T.a.trackEvent(n.card,{id:5641,action:"OpenUrl"}),Object(Pd.a)({trackMethod:Pd.g,tracks:n.track.click});var t=Object(Dd.e)(n.props.data,"plugin.leads.plugin.leads",{}),r=n.props.data,o=r.contentType,a=r.contentToken;t.isCanvas&&(e.preventDefault(),t.creativeId=Object(Dd.g)(),Vd.a(t,"ad/openForm"));var i=t.cardType,c=t.hashId;if("message"===i){e.preventDefault();var s={inbox_id:c,initial_message:"",auto_focus:!0,title:"",source_type:o,source_id:a};Vd.a(s,"base/openInbox")}},n.isHiddenEcommerceAd=function(e){return!(!e.isCanvas||e.adjson)||!(e.isCanvas||e.token||e.landingUrl)},n.sessionId=Ld()(),n.init(e),n.viewShow=!1,n}return Ne()(t,e),Te()(t,[{key:"init",value:function(e){var t=e.data,n=t.plugin,r=t.suger,o=void 0===r?"":r,a=t.pluginType,i=Object(Dd.e)(e.data,"plugin.leads.plugin.leads",{}).cardType,c=(n[a]||{}).trackUrl,s=void 0===c?{}:c,l=Object(Dd.h)().os,u={xSuger:o,sessionId:this.sessionId,os:l,cardType:i};this.track=Object(Dd.t)(s,u)}},{key:"componentDidMount",value:function(){var e=this.props.data.visible,t=Object(Dd.h)();T.a.setModule(this.card,{module:"Content",module_name:"".concat(t.os,"_leads")}),e&&this.onceViewTrack(this.card,this.track.view);var n=Object(Dd.e)(this.props.data,"plugin.leads.plugin.leads",{}),r=n.isCanvas,o=n.adjson;r&&Vd.a({adjson:o},"ad/preload")}},{key:"componentWillReceiveProps",value:function(e){e.data.visible&&this.onceViewTrack(this.card,this.track.view)}},{key:"render",value:function(){var e=this,t=this.props.data,n=t.author,r=void 0===n?{}:n,o=t.plugin,a=void 0===o?{}:o,i=t.className,c=void 0===i?"":i,s=t.pluginType,l=Object(Dd.e)(a,"".concat(s,".plugin.").concat(s),{});return this.isHiddenEcommerceAd(l)?null:h.a.createElement(A.c,Nd()({as:Ud,shouldTrackClick:!0,zaType:"Card",zaAction:"OpenUrl",zaBlock:"advertPluginCard",cardRef:function(t){e.card=t}},{className:c,type:"app",logoUrl:r.avatarUrl,productName:r.name,productNameMaxLength:13,productDesc:l.desc,productDescMaxLength:15,link:l.landingUrl||"javascript:",btnText:l.interaction||"立即咨询",btnTextMaxLength:4,onClick:this.handleClick,onClose:this.props.onClose}))}}]),t}(h.a.Component);Kd.propTypes={data:g.a.object.isRequired};var Qd=function(e){var t=e.data;return t&&t.plugin&&t.plugin[t.pluginType]?h.a.createElement(Bd.a,null,h.a.createElement(Kd,e)):null},Wd=function(e){function t(){var e,n;Ee()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=t.contentExpanded,r=t.unescapable,o=e.labelInfo,a=e.hermesLabel;return Object(d.b)(p.Fragment,{children:!n&&!r&&Object(d.b)(Rd.a,{labelInfo:o||a})})},jf=n(1285),wf=n(1388),Cf=function(){return Object(d.c)("div",{className:"SelfVisibleLable-wrap",children:[Object(d.b)(wf.a,{className:"SelfVisibleLable-lockIcon",width:16,center:!0}),"仅自己可见"]})},kf=function(e){var t=e.answer,n=e.canCollapse,r=e.showReviewingLabel,o=t.collapsedBy,a=t.reviewInfo,i=(a=void 0===a?{}:a).isReviewing,c=a.tips,s=t.isVisible,l=t.relationship,u=(l=void 0===l?{}:l).isAuthor,f=t.visibleOnlyToAuthor;return u&&f?Object(d.b)(Cf,{}):i&&s?Object(d.b)("div",{className:"AnswerItem-status",children:c},"negativeLabels"):r&&!1===s&&u?Object(d.b)("div",{children:Object(d.b)(jf.a,{})},"negativeLabelsReviewing"):"org"!==o||n?null:Object(d.c)("div",{className:"AnswerItem-status",children:["回答被提问机构移至隐藏区(",Object(d.b)("a",{href:"/org-intro#org-question",target:"_blank",children:"为什么?"}),")"]},"negativeLabels")},xf=function(e){var t=e.isNormal,n=void 0===t||t,r=e.collapsedBy,o=e.suggestEdit,a=e.collapseReason,i=e.isCollapsed,c=e.question,s=(c=void 0===c?{}:c).brand,l=(s=void 0===s?{}:s).isPuQuestion;return!n&&(null==o?void 0:o.unnormalDetails)?{abnormalDetailProps:{abnormalDetail:o.unnormalDetails}}:("community"===r||l)&&i?{collapseReasonProps:{collapseReason:a}}:null},Sf=function(e){var t=e.answer,n=e.canCollapse,r=e.hideCommercialInviteLabel,o=t.collapsedBy,a=t.relevantInfo,i=(a=void 0===a?{}:a).relevantType,c=a.brandSpecialExtra;if(Object(oe.m)(t)||Object(oe.n)(t)||"org"===o&&!n){if("brand_special"===i&&!r)return{type:"answer",data:c};if("brand_best"===i)return{data:{name:"品牌精选",subText:"本回答由品牌设为精选"}}}return null},Ef=function(e){var t=e.annotationDetail,n=e.reviewInfo,r=(n=void 0===n?{}:n).isReviewing,o=e.isNormal,a=void 0===o||o,i=e.collapsedBy;return!r&&a&&"community"!==i&&t?{annotationDetail:t}:null};n(1314);function Rf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Tf=function(e){return"plain"===e||"special-plain"===e},Af=Tf,Nf={allowed:"允许规范转载",need_payment:"允许付费转载",disallowed:"禁止转载"},_f=["zhi-hu-ri-bao-51-41"],If=Object(w.createSelector)((function(e,t){return Object.assign({},e.entities.answers[t.answer.id]||t.answer,{videoContribution:t.answer.videoContribution})}),(function(e,t){return e.entities.questions[t.answer.question.id]}),(function(e,t){return t?Object.assign({},e,{question:Object.assign({},e.question,t)}):e})),Mf=function(e){Object(s.a)(n,e);var t=Rf(n);function n(){var e,r,o,i,s,l;Object(a.a)(this,n);for(var u=arguments.length,f=new Array(u),h=0;h1&&void 0!==arguments[1]&&arguments[1],r=e.props,o=r.answer,a=o.type,i=o.id,s=r.blockReading,l=r.isSpecialQuestionOrAnswer;return function(r,o){if(r&&r.preventDefault(),s&&T.a.trackEvent(Object(c.a)(e),{id:5550,action:"Click"},{button:{text:"openapp"}}),l)location.href="zhihu://".concat(a,"/").concat(i,"?utm_app_name=zhihu_check");else{var u=xu.a[o]||xu.a[t],d=Object.assign({},s&&{yyb_ckey:"CK1430255776739"},{preventToOIA:n});xu.b[u]&&(d.launch_button=xu.b[u]),Object(ee.e)(Object(ye.a)({type:a,id:i}),d)}}},e.renderLabels=function(){var t=e.props.answer,n=t.isNormal;if((void 0===n||n)&&e.isPaidAnswer)return{labels:[],editingLabels:[]};var r=e.props,o=r.useNewLabels,a=r.canCollapse,i=r.relatedTo,c=r.showReviewingLabel,s=r.hideCommercialInviteLabel,l=e.state,u=l.contentExpanded,f=l.editing,p=kf({answer:t,canCollapse:a,showReviewingLabel:c}),h=xf(t),b=Sf({answer:t,canCollapse:a,hideCommercialInviteLabel:s}),m=Ef(t);if(!o){var v=Object(d.b)(Td.a,Object.assign({useOldLabels:!0,item:{isLabeled:!0}},h,{commercialProps:b,annotationProps:m,showLegacyPositiveLabel:Object(oe.n)(t),editing:f}));return{labels:[p,v],editingLabels:[v]}}if(p||h)return{labels:[p,Object(d.b)(Td.a,Object.assign({item:{isLabeled:!0}},h),"labels")],editingLabels:[]};var g=[Object(d.b)(Td.a,{item:t,commercialProps:b,annotationProps:m,editing:f},"labels")];return{labels:u||i?g:[],editingLabels:g}},e.renderPrefix=function(){var t=e.props,n=t.answer,r=t.relatedTo,o={contentExpanded:e.state.contentExpanded,unescapable:Boolean(r)};return Of(n,o)},e.renderVoteButton=function(){var t=e.props,n=t.answer,r=t.answer,o=r.question,a=o.questionType,i=o.isMuted,c=r.relationship,s=(c=void 0===c?{}:c).isRecognized,l=c.voting,u=r.attachment,f=r.voteupCount,p=t.shouldOia,h=t.zaInfos,b=h.voteUp,m=h.voteDown,v=t.isMuteSpecial,g=t.isMuteFreeze,y=t.isAuthor,O=e.context.currentUser,j=e.state.positionStatus,w="commercial"===a;return e.isLegacyVideoAnswer?Object(d.b)(rd,{answer:n,id:u.attachmentId,voteupCount:f,voting:l,isOwner:y,disabled:w&&i||v||g,currentUser:O}):Object(d.b)($u.a,Object.assign({answer:n,disabled:w&&i||v||g},p&&{onClick:e.createOpenInAppHandler("vote_answer")},{disableAuth:e.disableAuth,isRecognized:s,handleToggleGuide:e.handleToggleGuide,positionStatus:j,zaIds:{voteUp:b,voteDown:m}}),"vote")},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){var e=this,t=this.props,n=t.expanded,r=t.byComment,o=t.editing,a=t.loadVideoDetails,i=t.isSearchSpecialSource,c=t.isMobile,s=t.isWechat,l=this.state.shareVideoQuery;if(l&&a(l).then((function(){e.setState({shouldShowVideoDetails:!0})})),n&&this.loadAnswerConcernedVoters(),r&&setTimeout((function(){return e.setState({commentsShown:Boolean(r)})})),o&&this.startEditing(),c&&!i&&this.showOiaModal(),c&&s)if(document.addEventListener("WeixinJSBridgeReady",(function(){e.handleLoadedNext()})),"complete"===document.readyState)this.handleLoadedNext();else{window.addEventListener("load",(function t(){window.removeEventListener("load",t),e.handleLoadedNext()}))}}},{key:"componentDidUpdate",value:function(e){!this.props.editing||e.editing||this.state.editing||this.startEditing()}},{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.props.answer,r=n.reshipmentSettings,o=n.commentPermission,a=e.answer,i=a.reshipmentSettings,c=a.commentPermission;!r&&i&&!o&&c&&setTimeout((function(){return t.settingsTogglerEl.click()}))}},{key:"getShareVideoId",value:function(){var e=this.props,t=e.location;return e.isMobile?t.query.preview_video_id:null}},{key:"renderReshipmentSettings",value:function(e){var t=this;return Object.keys(Nf).map((function(n){return Object(d.b)(M.a,{onClick:function(){return t.handleReshipmentSettings(n)},checked:n===e,children:Nf[n]},n)}))}},{key:"renderAnswerExtraInfo",value:function(){var e=this.props,t=e.answer,n=e.actor,r=e.action,o=e.concernedUpvoters,a=e.isHuman,i=e.useNewLabels,c=e.isMobile,s=t.id,l=t.voteupCount,u=t.markInfos,f=t.isNormal;if(!((!a||!c)&&(void 0===f||f)))return null;var p=(null==u?void 0:u.length)>0&&!i;return p||l?Object(d.b)(mf,{id:s,voteupCount:l,markInfos:p&&u,actorToken:null==n?void 0:n.urlToken,action:r,concernedUpvoters:o},"AnswerItemExtraInfo"):null}},{key:"renderSettings",value:function(){var e=this,t=this.context.currentUser,n=this.props,r=n.answer,o=r.collapsedBy,a=r.reshipmentSettings,i=r.commentPermission,c=r.question.questionType,s=r.rewardInfo,l=(s=void 0===s?{}:s).isRewardable,u=void 0!==l&&l,f=r.relevantInfo,p=n.answer,h=n.canCollapse,b=n.isMobile,m=n.isAuthor;return t&&m?a&&i?Object(d.c)(I.c,{toggler:Object(d.b)(_.c,{preset:"plain",onRef:function(t){e.settingsTogglerEl=t},icon:k.a,label:!b&&"设置"}),reversed:!0,menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:[this.renderReshipmentSettings(a),Object(d.b)(I.a,{}),Object(d.b)(Oe.c,{target:p,onChange:this.props.updateAnswerCommentPermission,current:p.commentPermission}),Object(d.b)(I.a,{}),u&&Object(d.b)(I.b,{onClick:this.onCloseReward,children:"关闭赞赏"}),Object(d.b)(I.b,{onClick:this.openDeleteModal,children:"删除"}),"commercial"===c&&h&&"nobody"===o&&(!f||"brand_special"!==f.relevantType)&&[Object(d.b)(I.a,{},"MenuDivider"),Object(d.b)(I.b,{onClick:this.handleUpdateAnswerCollapsed,children:"隐藏"},"MenuItem")]]},"settings"):Object(d.b)(_.c,{preset:"plain",onClick:this.handleLoadAnswerForSettings,icon:k.a,label:!b&&"设置"},"settings"):null}},{key:"renderReshipment",value:function(e,t){var n=this;return"need_payment"===t?Object(d.b)(I.b,{onClick:function(){T.a.trackEvent(n.contentItem,{action:"Authorize",element:"Button",is_intent:!0})},tag:"a",href:"/copyright/apply?answer=".concat(e),target:"_blank",children:"申请授权"}):"disallowed"===t?Object(d.b)(I.b,{tag:"a",target:"_blank",href:"/term/zhihu-terms#sec-licence-6",children:"禁止转载"}):null}},{key:"renderOptions",value:function(){var e=this;if(!this.context.currentUser)return null;var t=this.props,n=t.answer,r=t.canCollapse,o=t.renderExtraOptions,a=t.permission.canBrandAdminEdit,i=t.isMobile,c=t.isAuthor,s=n.id,l=n.reshipmentSettings,u=n.collapsedBy,p=n.question,h=p.questionType,b=p.brand,m=(b=void 0===b?{}:b).isPuQuestion,v=n.annotationAction,g=void 0===v?[]:v,y=n.annotationDetail,O={toggler:Object(d.b)(_.c,{preset:"plain",className:"OptionsButton",icon:x.a,"aria-label":"更多"}),reversed:!0,onOpen:this.handleLogMoreClick,menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selfMenuItem"},j="commercial"===h,w="nobody"!==u;return c?null:Object(f.e)(I.c,Object.assign({},O,{key:"options"}),i&&Object(d.b)(sf.a,{answer:n}),r&&!j&&Object(d.b)(I.b,{onClick:w?this.handleUpdateAnswerCollapsed:this.handleCollapseModalShow,children:w?"取消隐藏":"隐藏"}),a&&j&&!w&&!m&&Object(d.b)(I.b,{onClick:this.handleUpdateAnswerCollapsed,children:"隐藏"}),g&&g.some((function(e){return re.d.add===e}))&&!y&&Object(d.b)(I.b,{onClick:this.handleShowAddAnnotationModal,children:"标记内容"}),g&&g.some((function(e){return re.d.cancel===e}))&&y&&Object(d.b)(I.b,{onClick:this.handleShowCancelAnnotationModal,children:"撤销标记"}),Object(d.b)(I.b,{onClick:this.handleReportOpen,children:"举报"}),this.renderReshipment(s,l),o&&o({itemClassName:"AnswerItem-selfMenuItem",getContainer:function(){return e.contentItem}}))}},{key:"renderMeta",value:function(){var e=function(e){var t=e.thumbnail,n=e.voteupCount,r=e.question.id,o=e.id,a=e.createdTime,i=e.updatedTime,c=e.commentCount;return{image:t,upvoteCount:n,url:"https://www.zhihu.com/question/".concat(r,"/answer/").concat(o),dateCreated:new Date(1e3*a).toISOString(),dateModified:new Date(1e3*i).toISOString(),commentCount:c}}(this.props.answer);return Object.keys(e).map((function(t){return Object(d.b)("meta",{itemProp:t,content:e[t]},t)}))}},{key:"renderBrandQuestionPrizeTip",value:function(){var e=this.props.answer,t=e.id,n=e.question.prize,r=(n=void 0===n?{}:n).winnersAnswerTokens,o=n.prizes;if(!n.status)return null;var a=["一","二","三"],i=null;return o&&r&&r.forEach((function(e,n){e.includes(t)&&null===i&&(i=o&&o[1]&&o[1].name?"得".concat(a[n],"等奖"):"奖")})),i&&Object(d.c)("div",{className:"AnswerItem-brandQuestionPrizeTip",children:["该回答在有奖问答中获",i]})}},{key:"renderBrandEntityTrack",value:function(){var e=this.state.contentExpanded,t=this.props,n=t.answer,r=t.expanded,o=t.isBrandAnswer,a=n.question;return(r||e)&&(a&&"commercial"===a.questionType||o)?Object(d.b)(qu.a,{type:n.type,id:n.id}):null}},{key:"renderEditTime",value:function(){var e,t,n,r=this.props,o=r.shouldOia,a=r.answer,i=a.id,c=a.createdTime,s=a.updatedTime,l=a.question.id,u=a.playCount,f=a.attachment,p=u||(null==f||null===(e=f.zvideo)||void 0===e?void 0:e.playCount)||(null==f||null===(t=f.video)||void 0===t||null===(n=t.videoInfo)||void 0===n?void 0:n.playCount)||0,h="".concat(re.E,"/question/").concat(l,"/answer/").concat(i);return Object(d.b)(od.a,Object.assign({created:c,updated:s,href:h},this.isVideoAnswer&&p>0&&{videoPlayCount:Number(p)},o&&{onClick:this.createOpenInAppHandler("click_answer")}))}},{key:"render",value:function(){var e,t,n=this,a=this.props,i=a.answer,c=a.reward,s=a.answer,l=s.id,u=s.isNormal,f=void 0===u||u,p=s.isDelete,h=s.question,b=s.rewardInfo,v=s.question,g=v.title,y=v.id,j=v.questionType,w=v.commercial,C=v.brand,k=(C=void 0===C?{}:C).isPuQuestion,x=s.author,T=s.excerpt,I=s.content,M=s.enableConvert,P=s.editableContent,B=s.commentCount,D=s.adminClosedComment,F=s.collapsedBy,U=s.isSticky,V=s.thumbnail,q=s.thumbnailExtraInfo,H=s.reviewInfo,K=(H=void 0===H?{}:H).isReviewing,Q=H.editType,G=s.relevantInfo,Y=(G=void 0===G?{}:G).relevantType,Z=s.annotationDetail,X=s.paidInfo,J=void 0===X?{}:X,ee=s.creatorRightsNotification,te=s.attachment,ne=s.vessayInfo,oe=s.videoContribution,ae=a.relatedTo,ie=a.editable,ce=a.byComment,se=a.draft,le=a.expanded,ue=a.lastreadTouchable,de=a.preset,fe=a.canCollapse,pe=a.canStick,he=a.itemProp,be=void 0===he?"answer":he,me=a.addAnnotation,ve=a.cancelAnnotation,Oe=a.showNotification,ke=a.dataZaIndex,xe=a.blockReading,Se=a.isWechat,Ee=a.isHuaweiBrowser,Re=a.isHonor,Te=a.lessExcerpt,Ae=a.isHuman,Ne=a.ua,_e=a.shouldSpecialOia,Ie=a.shareVideoDetail,Me=a.trackPromotionClick,Le=a.formatContent,Pe=a.zaInfos,Be=Pe.expand,ze=Pe.title,De=Pe.thank,Fe=Pe.toggleComment,Ue=Pe.share,Ve=Pe.getCommentAction,qe=a.handleToggleSticky,He=a.renderActionButtons,Ke=a.permission.canBrandAdminEdit,Qe=a.readContentRightsNotification,We=a.ecommerce,Ge=a.isMobile,Ye=a.canAbstract,Ze=a.isBaidu,Xe=a.isMuteSpecial,Je=a.isMuteFreeze,$e=a.isAuthor,et=a.shouldUseArticleCard,tt=a.isTopic,nt=a.xiaomi,rt=a.showCommentForOia,ot=a.pathname,at=a.richContentKey,it=a.isQuestionPage,ct=a.useNewEditorSetting,st=a.showMobileSignInModal,lt=a.abTestShowMobileSignInModal,ut="function"==typeof qe,dt=this.context.currentUser,ft="".concat(re.E,"/question/").concat(y,"/answer/").concat(l),pt=this.state,ht=pt.reportModalShown,bt=pt.deleteModalShown,mt=pt.collapseModalShown,vt=pt.favlistsShown,gt=pt.editing,yt=pt.commentsShown,Ot=pt.commentsAutoFocus,jt=pt.commentPattern,wt=pt.addAnnotationModalShown,Ct=pt.cancelAnnotationModalShown,kt=pt.positionStatus,xt=pt.shareVideoQuery,St=pt.shouldShowVideoDetails,Et=pt.contentExpanded,Rt=pt.showWechatExpand,Tt=pt.autoExpand,At=pt.shownLoadingBar,Nt=pt.wxIsReady,_t=pt.shownCatalogModal,It=xt&&St?{title:Ie.title,thumbnail:Ie.coverUrl,isLens:!0,id:xt,isPlayable:!0,url:"https://www.zhihu.com/video/".concat(xt)}:null;if(p)return Object(d.c)("div",{className:"AnswerItem-deleted",children:["你已经删除了该问题的回答,如果需要修改,请先  ",Object(d.b)("a",{onClick:this.handleRestoreAnswer,children:"撤销删除"})]});var Mt,Lt=!(K&&"create"===Q),Pt="commercial"===j,Bt="nobody"!==F,zt=!function(e){return"special-plain"===e}(de)&&Object(d.b)(Ju.a,{className:O()("AnswerItem-authorInfo",{"AnswerItem-authorInfo--related":ae}),preset:Af(de)?"plain":"default",author:x,relatedTo:ae,id:l,userLinkV2:!0},"authorInfo"),Dt=this.renderAnswerExtraInfo(),Ft=this.renderLabels(),Ut=Ft.labels,Vt=Ft.editingLabels,qt=V||(null==te||null===(e=te.video)||void 0===e||null===(t=e.videoInfo)||void 0===t?void 0:t.thumbnail);if(gt)return Object(d.c)("div",{children:[ct?Object(d.c)(m.Flex,{alignItems:"center",justifyContent:"space-between",css:function(e){return{borderBottom:"1px solid ".concat(e.colors.GBK09A),".Tabs":{border:"none"}}},children:[Object(d.b)("div",{css:function(e){return{fontWeight:"bold",fontSize:15,color:e.colors.GBK03A,borderBottom:"1px solid ".concat(e.colors.GBK10A)}},children:this.isVideoAnswer?"本回答为视频回答":"本回答为图文回答"}),Object(d.b)(Zu.a,{handleClick:null===(Mt=this.answerFormRef.current)||void 0===Mt?void 0:Mt.toggleFullscreen})]}):Object(d.c)(d.a,{children:[this.isVideoAnswer&&Object(d.b)("div",{css:function(e){return Object.assign({padding:"4px 0 20px",fontWeight:"bold",fontSize:15,lineHeight:"21px",color:e.colors.GBK03A,borderBottom:"1px solid ".concat(e.colors.GBK10A)},it&&{marginBottom:16})},children:"本回答为视频回答"}),zt]}),!ct&&Vt,!ct&&Dt,Object(d.b)(Xu.a,{css:ct?{margin:"0 -20px -20px"}:{margin:"16px -20px 0"},className:"AnswerItem-form",isReediting:!0,imperativeRef:this.answerFormRef,question:h,answer:i,defaultValue:P,onDeleteDraft:this.handleCancelEditAnswer,onCancel:this.handleCancelEditAnswer,onSubmit:this.handleSubmitAnswer,isRewardable:b.isRewardable,addRewardTagline:this.addRewardTagline})]});var Ht=Tf(de)?[[zt].concat(Object(r.a)(Ut)),Dt]:[[zt].concat(Object(r.a)(Ut),[Dt]),null],Kt=Object(o.a)(Ht,2),Qt=Kt[0],Wt=Kt[1],Gt="mainEntityOfPage"===be||"acceptedAnswer"===be,Yt=_e&&!Gt,Zt=!It&&this.renderEditTime(),Xt=J.content,Jt=this.isPaidAnswer,$t=Jt?Xt:I,en=!ae&&Object(d.b)(uf,{questionId:y,title:g,href:ft,zaTitleId:ze,showStickyMark:ut&&this.props.isSticky,onClick:Me}),tn=f||$e,nn=nt&&ot.match(/\/question\/\d+$/g),rn=Le?Le($t||T,i):$t||T||"",on=Lt&&!Ge&&Et&&Object(Ce.a)(i,"answer"),an=Boolean(M||(null==ne?void 0:ne.enableVideoTranslate)),cn=Object(Ru.a)("answer",l);return Object(d.c)(Ku.e,{onRef:function(e){return n.contentItem=e},className:"AnswerItem","data-za-index":ke,"data-zop":JSON.stringify({authorName:x.name,itemId:l,title:g,type:"answer"}),data:i,link:ft,meta:Qt,title:en,lastreadTouchable:ue,name:l,itemProp:be,itemType:"http://schema.org/Answer",itemScope:!0,children:[f&&(!tt||Et)&&Object(d.b)(yf.b,{answer:i}),this.renderMeta(),Pt&&this.renderBrandQuestionPrizeTip(),this.renderBrandEntityTrack(),this.isLegacyVideoAnswer&&Object(d.b)("div",{css:{marginTop:16},children:Object(d.b)(N.b,{id:te.zvideo.videoId,thumbnail:te.zvideo.thumbnail,playerUrl:"https://video.zhihu.com/video/".concat(te.zvideo.videoId),isLens:!0,isPlayable:!0})}),(ae||Et)&&oe&&Object(d.b)(vf.a,Object.assign({},oe)),(ae||Et)&&this.isVideoAnswer&&Object(d.b)(gf.a,{}),tn?Object(d.c)(od.b,Object.assign({richContentKey:at,className:O()({"RichContent-mobileBaidu":Ze}),imperativeRef:this.richContentRef,canAbstract:Ye,onToggleExpend:this.handleExpand},Yt&&{expandText:"App 内查看"},xe&&Gt&&{expandText:"展开阅读全文"},Ge&&Ae&&!Gt&&{collapsedHeight:180},{cover:qt,hasVideo:Boolean(q&&"video"===q.type)||this.isVideoAnswer,videoData:It,handleClickVideoMoreButton:this.handleClickVideoMoreButton,unescapable:Boolean(ae),expanded:le,onPositionStatusChange:this.handlePositionStatusChange,before:Wt,excerpt:Le?Le(T,i):T,html:rn,prefix:this.renderPrefix(),ecommerce:We,after:Object(d.c)("div",{children:[Object(d.b)(yf.a,{answer:i}),Object(d.b)(Ed,{className:"AnswerItem-CommercialQuestionTail",commercial:w}),!Ge&&Et&&Object(d.b)(Xd,{contentType:"answer",contentToken:l,author:x}),Zt,dt&&$e&&ie&&Object(d.c)("a",{className:"AnswerItem-editButton",onClick:this.handleStartEditAnswer,children:[Object(d.b)(S.a,{text:!0,center:!0})," ",Object(d.c)("span",{className:"AnswerItem-editButtonText",children:["修改",se&&se.editableContent&&"(有未发布的编辑草稿)"]})]}),!Ge&&dt&&Object(d.b)(wd,{imperativeRef:this.rewardContainerRef,reward:c,currentUser:dt,rewardInfo:b,isAuthor:$e,id:l,author:x,ua:Ne,balanceEnable:!1})]}),data:i,onClick:xe&&Gt?function(){!Ge||Se||dt||!lt?(nn||Se)&&Ge?(n.setState({autoExpand:!1}),n.richContentRef.current.handleExpand()):(Ee||Re)&&Ge?(n.setState({autoExpand:!1}),n.createOpenInAppHandler("expand_answer1",!0)(),n.richContentRef.current.handleExpand()):dt&&Ge?(n.setState({autoExpand:!1}),n.richContentRef.current.handleExpand()):n.setState({showWechatExpand:!0,autoExpand:!1}):st(!0)}:Yt?n.createOpenInAppHandler("expand_answer"):n.disableAuth&&xe&&n.handleToggleGuide},Te?{limit:74}:{},{zaIds:{expand:Be},shouldUseArticleCard:et,children:[Lt&&Ke&&Pt&&Bt&&!k&&Object(d.b)(_.c,{className:O()("ContentItem-rightButton AnswerItem-mainAction AnswerItem-open",{"AnswerItem-mainAction--disabled":"community"===F}),onClick:this.handleUpdateAnswerCollapsed,children:"公开回答"}),Lt&&pe&&!Bt&&"brand_special"!==Y&&Object(d.b)(_.c,{className:"ContentItem-rightButton AnswerItem-mainAction AnswerItem-brandQuestionButton",onClick:this.handleUpdateAnswerStick,children:U?"取消精选":"设为精选"}),!this.props.isBaidu&&He({componentList:[{name:"vote",component:Lt&&this.renderVoteButton()},{name:"comment",component:Lt&&Object(d.b)(Wu.a,Object.assign({onInstance:function(e){return n.commentButton=e},onClick:this.openModal},Ge&&Ae&&_e&&{onClick:this.createOpenInAppHandler("comment_answer")},{commentsShown:yt,commentClosed:D,count:B,positionStatus:kt,zaInfos:{toggleComment:Fe,getCommentAction:Ve}}),"comment")},{name:"catalog",component:on&&Object(d.b)(je.a,{html:rn,sourceId:i.id,onClick:this.toggleCatalogModal},"catalog")},{name:"share",component:Lt&&!Ge&&Object(d.b)(Qu.a,{disabled:Xe||Je,id:l,type:"answer",title:g,authorName:x&&x.name,href:ft,positionStatus:kt,zaShareId:Ue},"share")},{name:"favlist",component:Lt&&(!dt||!dt.isOrg)&&Object(d.b)(Vu.a,{onRef:function(e){return n.favButtonRef=e},onClick:this.handleFavlistsShown,label:Ge?"":"收藏",disabled:Xe||Je},"favlist")},!Ge&&{name:"thank",component:Lt&&!$e&&Object(d.b)(sf.a,Object.assign({zaInfo:De,answer:i,disabled:Xe||Je},this.isLegacyVideoAnswer&&{zVideoId:te.attachmentId}),"thank")},{name:"sticky",component:!Ge&&ut&&$e&&Object(ge.a)(dt)&&Object(d.b)(_.c,{preset:"plain",onClick:qe,icon:this.props.isSticky?E.a:R.a,label:this.props.isSticky?"取消置顶":"置顶"},"sticky")},{name:"vessay",component:!Ge&&$e&&an&&Object(d.c)(A.a,{as:_.c,zaAction:"OpenUrl",zaText:"生成视频",zaType:"Button",preset:"plain",onClick:function(){return window.open(cn)},className:"ContentItem-convertVideoButton",extra:{link:{url:cn}},children:[Object(d.b)(Eu.a,{}),Object(d.b)("span",{children:"生成视频"})]})},{name:"options",component:Ge&&Ae||Lt&&this.renderOptions()},{name:"settings",component:Ge&&Ae||this.renderSettings()},{name:"annotation",component:!Et&&Object(d.b)(Hu.a,{annotationDetail:Z},"annotation")}]})]})):Zt,tn&&!Jt&&Object(d.b)(Jd.a,{content:$t,type:"answer",urlToken:String(l)}),rt&&ot.startsWith("/question")&&Object(d.b)("div",{children:Object(d.b)(Su,{parent:i})}),Object(d.b)(Gu.a,{shown:yt,parent:i,byComment:ce,commentPattern:jt,autoFocus:Ot,onClose:this.closeModal}),Object(d.b)(Yu.a,{type:"answer",urlToken:l,shown:ht,onClose:this.handleReportHide,zaEnabled:!0}),Object(d.b)(W,{addAnnotation:me,onClose:this.handleCloseAddAnnotationModal,shown:wt,type:re.e,urlToken:l,showNotification:Oe}),Object(d.b)($,{cancelAnnotation:ve,onClose:this.handleCloseCancelAnnotationModal,shown:Ct,type:re.e,urlToken:l,showNotification:Oe}),dt&&$e&&Object(d.b)(Cd.a,{title:"你确定要删除自己的答案吗?",subtitle:"答案内容不会被永久删除,你还可以撤消本次删除操作。",shown:bt,onCancel:this.closeDeleteModal,onSubmit:this.handleDeleteAnswer}),fe&&Object(d.b)(Cd.a,{title:"隐藏答案",subtitle:"隐藏后该回答将不展示也不流通,是否确定隐藏?",shown:mt,onCancel:this.handleCollapseModalHide,onSubmit:this.handleUpdateAnswerCollapsed}),Object(d.b)(Tu.a,{id:l,type:"answer",shown:vt,onClose:this.handleFavlistHide,zaEnabled:!0}),Ge&&this.state.guideShown&&Object(d.b)(z.a,{redirectUrl:ft,buttons:[Se?{name:"wechat",text:"快速登录",fill:"#fff"}:"zhihu"],urlScheme:Object(ye.a)({type:"answer",id:l}),onClose:this.handleToggleGuide}),Object(d.b)(Uu,{notification:ee,onRead:function(e){Qe("answer",l,e)},onUseAdmire:function(){n.rewardContainerRef.current.activateReward()},onUseRecommend:function(){var e=n.props.postToolsRecommend;L.a.confirm(Object(d.b)("div",{style:{textAlign:"center"},children:"该推荐将使用本月的 1 次推荐次数。"}),{title:"确定是否推荐?"}).then((function(){return e("answer",l)}),(function(){}))}}),Object(d.b)(rf,{show:Rt&&!nn&&Ge&&!Se,id:i.id,type:i.type,onCancel:function(){n.setState({showWechatExpand:!1},(function(){Tt||n.richContentRef.current.handleExpand()}))},onSubmit:function(){n.setState({showWechatExpand:!1}),Se?Nt?n.createOpenInAppHandler(Tt?"expand_answer2":"expand_answer1")():n.setState({shownLoadingBar:!0}):n.createOpenInAppHandler(Tt?"expand_answer2":"expand_answer1")()}}),Object(d.b)(cf,{show:At&&Ge}),on&&Object(d.b)(we.a,{shown:_t,html:rn,sourceId:i.id,onClose:this.toggleCatalogModal,created:i.createdTime,updated:i.updatedTime,author:x,zaContent:{type:"Answer",token:String(i.id)}})]})}},{key:"isPaidAnswer",get:function(){return"paid"===this.props.answer.answerType}},{key:"isVideoAnswer",get:function(){var e=this.props.answer.attachment;return 2===(null==e?void 0:e.type)||"zvideo"===(null==e?void 0:e.type)||"video"===(null==e?void 0:e.type)}},{key:"isLegacyVideoAnswer",get:function(){var e=this.props.answer.attachment;return"zvideo"===(null==e?void 0:e.type)}}]),n}(p.PureComponent);Mf.contextTypes={currentUser:g.a.object,authRequired:g.a.func,startAddAnswer:g.a.func},Mf.propTypes={relatedTo:g.a.oneOf(["question","answer"]),editable:g.a.bool,preset:g.a.oneOf(["special-plain","plain","primary"]),lessExcerpt:g.a.bool,shareVideoDetail:g.a.object,formatContent:g.a.func,renderExtraOptions:g.a.func,zaInfos:g.a.object,onToggleExpand:g.a.func,useNewLabels:g.a.bool,renderActionButtons:g.a.func,canAbstract:g.a.bool,trackPromotionClick:g.a.func,isSearchSpecialSource:g.a.bool,hideCommercialInviteLabel:g.a.bool},Mf.defaultProps={editable:!1,canAbstract:!1,isSearchSpecialSource:!1,preset:"primary",zaInfos:{},renderActionButtons:sf.b};var Lf=Object(b.compose)(Object(ne.b)((function(e){var t=e.answer,n=e.trackCardShow,r=void 0===n||n,o=e.zaInfos,a=void 0===o?{}:o;return Object.assign({module:"AnswerItem",card:{has_image:Boolean(t.thumbnailExtraInfo&&"image"===t.thumbnailExtraInfo.type),has_video:Boolean(t.thumbnailExtraInfo&&"video"===t.thumbnailExtraInfo.type),content:{type:"Answer",token:t.id&&t.id.toString(),upvote_num:t.voteupCount,comment_num:t.commentCount,publish_timestamp:new Date(t.createTime).getTime(),parent_token:t.question&&t.question.id.toString(),author_member_hash_id:t.author&&t.author.id,video_id:t.thumbnailExtraInfo&&t.thumbnailExtraInfo.videoId}},content:{type:"Answer",token:t.id}},a.index&&{index:a.index},a.cardShow&&{view:{id:a.cardShow}},{trackCardShow:r})})),C.withRouter,Object(j.connect)((function(e,t){var n,r,o=e.entities.drafts,a=void 0===o?{}:o,i=e.question,c=(i=void 0===i?{}:i).draftStatus,s=e.answers,l=(s=void 0===s?{}:s).paidContent,u=void 0===l?{}:l,d=e.reward,f=e.switches,p=e.video.shareVideoDetail,h=e.env,b=h.edition,m=h.userAgent,v=t.answer,g=t.relatedTo,y=t.location.pathname,O=y.split("/"),j=!1,w=!0;!O[1]||"org"!==O[1]&&"people"!==O[1]||(j=O[2]&&-1!==_f.indexOf(O[2]),w=!1);var C=function(e){var t;if(e.videoContribution)return e;if(null===(t=e.attachment)||void 0===t?void 0:t.video){var n=e.attachment.video,r=n.title,o=n.subVideoId,a=n.parentVideoId,i=n.zvideoId,c={videoId:o,zvideoId:i,title:r,playCount:n.playCount,voteupCount:n.voteupCount,isComplete:!i||a===o,startTime:n.startTime,creationReferences:n.creationReferences};return Object.assign({},e,{videoContribution:c})}return e}(If(e,t)),k=Object(me.b)(e),x=["question","answer"].includes(g),S=Object(he.c)(e)&&x,E=Object(he.i)(e),R=m.Mobile,T=m.Qzone,A=R&&E&&!T;return{draft:v&&a["question_".concat(v.question.id)],draftStatus:null==c?void 0:c[v.question.id],answer:C,ua:Object(he.l)(e),pathname:y,xiaomi:b.xiaomi,reward:d,switches:f,isHuman:S,shouldOia:Object(he.h)(e)&&!j,shouldSpecialOia:Object(he.i)(e)&&!j,isSpecialQuestionOrAnswer:Object(he.j)(e,{type:x&&g,id:x?"answer"===g?v.id:v.question.id:""}),shouldAllAutoExpand:"1"===Object(he.a)(e,"web_mweb_launch"),isMobile:Object(he.d)(e),isWechat:e.env.userAgent.Wechat,isHuaweiBrowser:/huaweibrowser/gi.test(e.env.userAgent.origin)||/huawei/gi.test(e.env.userAgent.origin)&&!e.env.userAgent.UC&&!e.env.userAgent.Wechat&&!e.env.userAgent.MQQBrowser&&!/quark/gi.test(e.env.userAgent.origin)&&!/baidu/gi.test(e.env.userAgent.origin),isHonor:/honor/gi.test(e.env.userAgent.origin)&&/MQQBrowser/gi.test(e.env.userAgent.origin),concernedUpvoters:Object(oe.g)(e,{id:v.id}),currentUser:k,shareVideoDetail:p,isBrandAnswer:Object(oe.l)(v),permission:Object(ae.Z)(e),ecommerce:Object(te.c)(e,{type:"answer",urlToken:String(v.id)}),isBaidu:Object(he.h)(e)&&b.baidu,showCommentForOia:Object(he.h)(e),blockReading:A,paidContent:u,isMuteSpecial:Object(ae.C)(C.question),isMuteFreeze:Object(ae.B)(C.question),isAuthor:null!==(n=null===(r=v.relationship)||void 0===r?void 0:r.isAuthor)&&void 0!==n?n:Object(me.i)(e,v.author),shouldUseArticleCard:"1"===Object(he.a)(e,"gue_visit_n_artcard"),useNewEditorSetting:"1"===Object(he.a)(e,"editor"),abTestShowMobileSignInModal:"1"===Object(he.a)(e,"h5_signin"),isQuestionPage:w}}),{updateAnswerReshipmentSettings:oe.G,updateAnswerCommentPermission:oe.F,updateAnswerCollapsed:oe.E,updateAnswerStick:oe.I,deleteAnswer:oe.i,restoreAnswer:oe.A,updateAnswer:oe.D,loadAnswerForSettings:oe.t,showNotification:fe.h,addAnnotation:function(e,t,n,r){return{API:{types:ue.ADD_ANNOTATION,endpoint:"v3/collaboration/annotation",method:"POST",body:Object(se.getFormData)(Object(ce.decamelizeKeys)({objectType:e,urlToken:t,reason:n,detail:r}))},UPDATE:{success:function(n){var r=de(e);return r?Object(ie.a)({},r,Object(ie.a)({},t,n)):null}}}},cancelAnnotation:function(e,t,n,r){return{API:{types:ue.CANCEL_ANNOTATION,endpoint:"v3/collaboration/annotation_cancel",method:"POST",body:Object(se.getFormData)(Object(ce.decamelizeKeys)({objectType:e,urlToken:t,reason:n,detail:r}))},UPDATE:{success:function(n){var r=de(e);return r?Object(ie.a)({},r,Object(ie.a)({},t,Object.assign({},n,{annotationDetail:null}))):null}}}},addRewardTagline:pe.a,updateAnswerReward:oe.H,getVoteDownReason:oe.k,selectVoteDownReason:oe.C,loadAnswerConcernedVoters:oe.q,fillCurrentUserIfNeeded:me.e,loadVideoDetails:be.d,readContentRightsNotification:ve.Mb,postToolsRecommend:ve.Lb,showMobileSignInModal:ae.fb}),Rd.c)(Mf)},function(e,t,n){"use strict";var r=n(43),o=n(2),a=n(1),i=n.n(a),c=n(27),s=n(11),l=n.n(s),u=n(1543),d=n(30),f=n(232),p=n(78),h=n(366),b=n(1431),m=n(783),v=n(1464),g=n(18),y=function(e){return i.a.createElement(g.a,e,i.a.createElement("path",{d:"M18.175 15.761c0 .104-.101.207-.203.207H9.265v-2.065L4 17.103 9.265 20.2v-2.065h8.707c1.215 0 2.228-1.032 2.228-2.27V10.6h-2.025v5.161zm-12.15-7.37c0-.204.101-.306.202-.306h8.708v2.043L20.2 7.064 14.935 4v2.043H6.228C5.013 6.043 4 7.063 4 8.39V13.6h2.025V8.391z"}))};y.defaultProps={name:"Sync"};var O=y,j=n(1351),w=n(1064),C=n(31),k=n(135),x=n(178),S=n(877),E=n(872),R=n(175),T=n(878),A=n(1015),N=n(1104),_=n(396),I=n(376),M=n(25),L=n(952),P=n(395),B=n(73);function z(e){var t=e.campaign,n=e.selected,r=e.onSelect,a=t.title,i=t.description;return Object(o.c)("div",{className:"VideoContributableCampaignModalCampaign",children:[Object(o.c)("div",{className:"VideoContributableCampaignModalCampaign-info",onClick:r,children:[Object(o.b)("div",{className:"VideoContributableCampaignModalCampaign-title",children:a}),Object(o.b)("div",{className:"VideoContributableCampaignModalCampaign-description",children:i})]}),Object(o.b)(S.a,{checked:n,onChange:r,size:16})]})}var D=function(e){var t=e.shown,n=e.onClose,i=e.defaultCampaignId,c=e.campaignList,s=e.onSubmit,l=Object(a.useState)((function(){return i?c.find((function(e){return e.id===i})):null})),u=Object(r.a)(l,2),d=u[0],f=u[1];return Object(o.b)(B.b,{title:"选择活动",size:"large",onClose:n,children:t&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoContributableCampaignModal-list",children:c.map((function(e){return Object(o.b)(z,{campaign:e,selected:(null==d?void 0:d.id)===e.id,onSelect:function(){f((null==d?void 0:d.id)===e.id?null:e)}},e.id)}))}),Object(o.c)(B.a,{direction:"horizontal",children:[Object(o.b)(C.c,{onClick:n,children:"返回"}),Object(o.b)(C.c,{preset:"primary",color:"blue",onClick:function(){s(d)},children:"确定"})]})]})})},F=n(90),U=n(368),V=n(799),q=n(1096),H=n(180);function K(e){var t=e.club,n=t.id,r=t.name,a=t.description,i=t.avatar,c=t.isJoined,s=t.joinType,l=t.postCount,u=t.allowSync,d=e.selected,f=e.onSelect,p=e.handleJoinButtonClick;return Object(o.c)("div",{className:"VideoSyncToClubModalItem",children:[Object(o.c)(F.Flex,{css:{width:"calc(100% - ".concat(c?20:92,"px)")},children:[Object(o.b)("img",{src:i,className:"VideoSyncToClubModalItem-avatar"}),Object(o.c)("div",{className:"VideoSyncToClubModalItem-info",onClick:f,children:[Object(o.b)("div",{className:"VideoSyncToClubModalItem-title Highlight",dangerouslySetInnerHTML:{__html:r}}),Object(o.b)("div",{className:"VideoSyncToClubModalItem-description Highlight",dangerouslySetInnerHTML:{__html:a}}),Object(o.c)("div",{className:"VideoSyncToClubModalItem-data",children:[l,"条内容"]})]})]}),c?Object(o.b)(S.a,{checked:d,onChange:f,size:16,disabled:!u}):Object(o.b)(C.c,{preset:"secondary",color:"blue",onClick:function(){return p(n,s)},children:"all"===s?"加入圈子":"申请加入"})]})}var Q=function(e){var t=e.shown,n=e.onClose,i=e.selectedClub,s=e.onSelectClub,l=Object(a.useState)(i),u=Object(r.a)(l,2),d=u[0],f=u[1],p=Object(a.useState)(""),h=Object(r.a)(p,2),b=h[0],v=h[1],g=Object(a.useState)(""),y=Object(r.a)(g,2),O=y[0],j=y[1],w=Object(c.useSelector)((function(e){return e.club.explore.candidateSyncClubs})),x=Object(c.useSelector)((function(e){var t;return(null===(t=e.search)||void 0===t?void 0:t.clubentityByQuery[O])||{isFetching:!1,isDrained:!1,ids:[]}})),S=x.isFetching,E=x.isDrained,T=x.ids,A=Object(c.useSelector)((function(e){return e.entities})),N=A.searchClub,_={data:T.filter((function(e){return Boolean(e)})).map((function(e){var t=N[e]||{},n=t.object;return Object.assign({},t,{object:(A.clubs||{})[n]})})),isLoading:S,paging:{isEnd:E}},I=Object(c.useDispatch)();Object(a.useEffect)((function(){i||f(null)}),[i]);var M=Object(a.useRef)(null),L=Object(a.useCallback)((function(){return M.current.parentElement}),[M]),z=function(){(null==M?void 0:M.current)&&(M.current.parentElement.scrollTop=0)},D=Object(a.useCallback)((function(e){var t=e.target.value;v(t),O&&!t&&(j(""),z())}),[O]),Q=Object(c.useSelector)((function(e){var t;return null===(t=e.search)||void 0===t?void 0:t.nextOffset.clubentityByQuery})),W=Object(a.useCallback)((function(e){I(Object(H.t)(Object.assign({type:"clubentity",query:e},O===e?Q:{limit:10,offset:0})))}),[Q,O,I]),G=Object(a.useCallback)((function(e){z(),O!==e&&(W(e),j(e))}),[O,W]),Y=Object(a.useCallback)((function(e){13===e.keyCode&&b.trim()&&(document.activeElement.blur(),G(b.trim()))}),[b,G]),Z=Object(a.useCallback)((function(){O?W(b):I(Object(P.b)())}),[I,b,O,W]),X=O?_:w,J=X.data,$=void 0===J?[]:J,ee=X.paging,te=(ee=void 0===ee?{}:ee).isEnd,ne=X.isLoading,re=function(e,t){"all"===t?I(Object(q.b)(e)).then((function(){I(Object(P.b)(!0))})):window.open("https://www.zhihu.com/club/".concat(e),"_blank")},oe=Object(o.c)("div",{className:"VideoSyncToClubModal-Empty",children:[Object(o.b)("img",{className:"VideoSyncToClubModal-Empty--Image",src:"https://pic4.zhimg.com/80/v2-111b363c733ca84c2fd2044eca77503b_hd.png"}),Object(o.b)("div",{className:"VideoSyncToClubModal-Empty--Text",children:"暂时没有找到「".concat(O,"」的相关圈子")})]}),ae=Object(o.b)(U.b,{getContainer:L,onLoad:Z,isLoading:Boolean(ne),placeholder:Object(o.b)(U.a,{className:"List-item"}),isDrained:Boolean(te),className:"VideoSyncToClubModal-list",children:Object(o.c)(F.Box,{height:"100%",ref:M,children:[$.map((function(e){var t=O?Object.assign({},e.object,{id:e.object.id,avatar:e.object.avatarUrl,postCount:e.object.clubPostCount}):e;return Object(o.b)(K,{club:t,selected:(null==d?void 0:d.id)===t.id,onSelect:function(){t.isJoined&&(t.allowSync?f((null==d?void 0:d.id)===t.id?null:t):R.a.alert("无法同步到取消关联主站的圈子。"))},handleJoinButtonClick:re},t.id)})),te&&Object(o.b)("div",{className:"VideoSyncToClubModal-list--notMore",children:"没有更多内容"})]})});return Object(o.b)(B.b,{title:"选择圈子",size:"large",onClose:n,maskClosable:!1,children:t&&Object(o.c)(o.a,{children:[Object(o.b)(k.a,{className:"VideoSyncToClubModal-search",value:b,placeholder:"搜索圈子",before:Object(o.b)(V.a,{size:16,className:"VideoSyncToClubModal-search--icon"}),after:Boolean(b)&&Object(o.b)(m.a,{size:12,onClick:function(){v(""),j(""),z()},className:"VideoSyncToClubModal-search--icon"}),onChange:D,onKeyUp:Y}),O&&O===_.preSearchText&&0===$.length?oe:ae,Object(o.c)(B.a,{direction:"horizontal",children:[Object(o.b)(C.c,{onClick:n,children:"返回"}),Object(o.b)(C.c,{preset:"primary",color:"blue",onClick:function(){s(d)},disabled:!d,children:"确定"})]})]})})},W=n(245),G=n(382),Y=n(1303),Z=n(1060),X=function(e){var t=e.defaultVideo,i=e.title,s=e.description,l=t.id,u=Object(c.useDispatch)(),d=Object(a.useRef)(),h=Object(a.useState)(0),b=Object(r.a)(h,2),m=b[0],v=b[1],g=Object(Z.a)("zvideo_contribution_form:should_hide_tooltip"),y=Object(r.a)(g,2),O=y[0],j=y[1],w=Object(a.useState)(!1),C=Object(r.a)(w,2),k=C[0],x=C[1],S=Object(a.useState)(!1),E=Object(r.a)(S,2),R=E[0],T=E[1],A=Object(G.m)(l).answer,N=(A=void 0===A?{}:A).canContribute,_=void 0!==N&&N,I=Object(G.n)(l),L=Object(p.d)((function(){return n.e(19).then(n.bind(null,2650))})),P=Object(a.useCallback)((function(){i?m<6e4?u(Object(M.h)("大于 1 分钟的视频才可以投稿哦")):(u(Object(G.k)(null)),x(!0),T(!1)):u(Object(M.h)("输入标题后才可以投稿哦"))}),[i,u,m]),B=Object(a.useCallback)((function(){x(!0),T(!0)}),[]);return Object(a.useEffect)((function(){u(Object(G.g)(l,"edit"))}),[u,l]),Object(a.useEffect)((function(){var e,n;t.file?(n=t.file,new Promise((function(e,t){try{var r=document.createElement("video");r.preload="metadata",r.onloadedmetadata=function(){URL.revokeObjectURL(r.src),e(Math.floor(1e3*r.duration))},r.onerror=t,r.src=URL.createObjectURL(n)}catch(e){t(e)}}))).then((function(e){u(Object(G.f)({zvideoId:l,duration:e})),v(e)})):((null===(e=t.video)||void 0===e?void 0:e.duration)&&v(parseInt(1e3*t.video.duration)),u(Object(G.f)({zvideoId:l})))}),[t,u,l]),Object(p.i)((function(){return j(!0)}),!O&&_?5e3:null),_||I.length?Object(o.c)(f.b,{block:"Contribution",children:[Object(o.b)(f.e,{ref:d,zaType:"Block",className:"VideoUploadForm-itemTitle",css:function(e){return{"::after":{content:'"投稿到问题可以获得更多曝光哦~"',color:e.colors.GBK06A,fontWeight:"normal"}}},children:"投稿问题(选填)"}),Object(o.b)(W.a,{placement:"top-left",isOpen:!O,target:d.current,css:{".Popover-arrow":{transform:"translate(-115px, 0)"}},children:"投稿到问题,让更多人看到你的视频"}),Object(o.b)(Y.a,{zvideoId:l,showCreateButton:!0,onAdd:P,onSelect:B}),Boolean(L)&&Object(o.b)(L,{show:k,defaultVideo:t,title:i,description:s,duration:m,closeAfterEdit:R,onClose:function(){return x(!1)}})]}):null},J=n(1105),$=n(953);t.a=function(e){var t,n,i,s,g,y,B,z,F,U,V,q,H,K,W,G=e.className,Y=e.defaultVideo,Z=e.defaultCampaignId,ee=e.checkFormValid,te=e.shouldShowSyncToListCheckbox,ne=e.onRemove,re=e.onSubmit,oe=e.isEditing,ae=e.shouldShowScheduledPublish,ie=u.a(new Date,30),ce=Object(a.useState)(!1),se=Object(r.a)(ce,2),le=se[0],ue=se[1],de=Object(a.useState)(ie),fe=Object(r.a)(de,2),pe=fe[0],he=fe[1],be=Object(N.b)((function(e){return e.zvideos.tagoreCategory})),me=Object(N.a)([I.d,I.t,I.k,I.l,I.j,I.h,M.h,I.n]),ve=Object(r.a)(me,8),ge=ve[0],ye=ve[1],Oe=ve[2],je=ve[3],we=ve[4],Ce=ve[5],ke=ve[6],xe=ve[7],Se=Object(a.useState)((null==Y?void 0:Y.title)||""),Ee=Object(r.a)(Se,2),Re=Ee[0],Te=Ee[1],Ae=Object(a.useState)(null!==(t=null==Y?void 0:Y.description)&&void 0!==t?t:""),Ne=Object(r.a)(Ae,2),_e=Ne[0],Ie=Ne[1],Me=Object(a.useState)(null!==(n=null==Y||null===(i=Y.category)||void 0===i||null===(s=i.firstLevel)||void 0===s?void 0:s.id)&&void 0!==n&&n),Le=Object(r.a)(Me,2),Pe=Le[0],Be=Le[1],ze=be.find((function(e){return e.data.id===Pe})),De=Object(a.useState)(null!==(g=null==Y||null===(y=Y.category)||void 0===y||null===(B=y.secondLevel)||void 0===B?void 0:B.id)&&void 0!==g&&g),Fe=Object(r.a)(De,2),Ue=Fe[0],Ve=Fe[1];Object(a.useEffect)((function(){be.length||Oe()}),[be,Oe]);var qe=Object(a.useState)(Boolean(null==Y||null===(z=Y.category)||void 0===z||null===(F=z.firstLevel)||void 0===F?void 0:F.id)||Boolean(null==Y||null===(U=Y.category)||void 0===U||null===(V=U.secondLevel)||void 0===V?void 0:V.id)),He=Object(r.a)(qe,2),Ke=He[0],Qe=He[1],We=Object(p.b)((function(e){je(e).then((function(e){var t=e.payload.data[0];t&&(Be(t.firstLevel.id),Ve(t.secondLevel.id))}))}),300);Object(a.useEffect)((function(){Ke||We({title:Re,type:"zvideo",content:_e})}),[Re,_e,Ke,We]);var Ge=Object(a.useState)(null!==(q=null==Y?void 0:Y.topics)&&void 0!==q?q:[]),Ye=Object(r.a)(Ge,2),Ze=Ye[0],Xe=Ye[1],Je=Object(a.useState)(Boolean(null==Y||null===(H=Y.topics)||void 0===H?void 0:H.length)),$e=Object(r.a)(Je,2),et=$e[0],tt=$e[1],nt=Object(a.useState)(!1),rt=Object(r.a)(nt,2),ot=rt[0],at=rt[1],it=Object(p.b)((function(e){we(e).then((function(e){var t=e.payload.data;t.length&&Xe(t)}))}),300);Object(a.useEffect)((function(){!et&&Pe&&Ue&&it({type:"zvideo",text:Re,firstLevelCategoryId:Pe,secondLevelCategoryId:Ue,limit:$.f})}),[Re,Pe,Ue,et,it]);var ct=Object(a.useState)(null==Y?void 0:Y.imageUrl),st=Object(r.a)(ct,2),lt=st[0],ut=st[1],dt=Object(a.useCallback)((function(e){return ut(e)}),[ut]);Object(a.useEffect)((function(){(!lt&&(null==Y?void 0:Y.imageUrl)||lt===$.a&&(null==Y?void 0:Y.imageUrl)&&Y.imageUrl!==$.a)&&ut(Y.imageUrl)}),[lt,Y]);var ft=Object(a.useState)(null==Y?void 0:Y.zvideoType),pt=Object(r.a)(ft,2),ht=pt[0],bt=pt[1],mt="published"===(null==Y?void 0:Y.zvideoState),vt=Object(a.useState)(null==Y?void 0:Y.campaign),gt=Object(r.a)(vt,2),yt=gt[0],Ot=gt[1],jt=Object(a.useState)(!1),wt=Object(r.a)(jt,2),Ct=wt[0],kt=wt[1],xt=Object(a.useState)(!1),St=Object(r.a)(xt,2),Et=St[0],Rt=St[1],Tt=Object(a.useState)(te),At=Object(r.a)(Tt,2),Nt=At[0],_t=At[1],It=Object(a.useState)([]),Mt=Object(r.a)(It,2),Lt=Mt[0],Pt=Mt[1],Bt=Boolean(null==Lt?void 0:Lt.length)&&!yt,zt="published"===(null==Y?void 0:Y.zvideoState);Object(a.useEffect)((function(){Ce().then((function(e){var t=e.payload;Pt(t.data)}))}),[Ce]),Object(a.useEffect)((function(){var e=null==Lt?void 0:Lt.find((function(e){return e.id===Z}));!e||Ct||yt||Ot(e)}),[Z,Lt,Ct,yt]);var Dt=Object(a.useState)("草稿已保存"),Ft=Object(r.a)(Dt,2),Ut=Ft[0],Vt=Ft[1],qt=Object(p.b)((function(e,t){ye(e,t).then((function(){Vt("草稿已保存")}))}),300);Object(a.useEffect)((function(){Y.id&&(Vt("草稿保存中…"),qt(Y.id,{title:Re,description:_e,category:{firstLevel:Pe||void 0,secondLevel:Ue||void 0},zvideoType:ht,topicIds:Ze.map((function(e){return e.id||e.urlToken})),campaignId:null==yt?void 0:yt.id,imageUrl:lt,isVisible:Nt}))}),[Y.id,Re,_e,Pe,Ue,ht,Ze,yt,lt,Nt,qt]);var Ht=Object(p.b)((function(e){return ge(e).then((function(e){var t,n,r,o,a,i,c,s,l=e.payload;l&&(!Re&&Te(l.title),!lt&&l.imageUrl&&ut(l.imageUrl),!_e&&Ie(null!==(t=l.description)&&void 0!==t?t:""),!Pe&&Be(null!==(n=null===(r=l.category)||void 0===r||null===(o=r.firstLevel)||void 0===o?void 0:o.id)&&void 0!==n&&n),!Ue&&Ve(null!==(a=null===(i=l.category)||void 0===i||null===(c=i.secondLevel)||void 0===c?void 0:c.id)&&void 0!==a&&a),!(null==Ze?void 0:Ze.length)&&Xe(null!==(s=l.topics)&&void 0!==s?s:[]),!ht&&bt(l.zvideoType),!yt&&Ot(l.campaign))}))}),300);Object(a.useEffect)((function(){Y.id&&Ht(Y.id)}),[Y,Ht]);var Kt=Object(c.useDispatch)(),Qt=Object(c.useSelector)((function(e){return e.club.explore.joinedClubs})),Wt=!te&&(null==Qt||null===(K=Qt.data)||void 0===K?void 0:K.length)>0,Gt=Object(a.useState)(!1),Yt=Object(r.a)(Gt,2),Zt=Yt[0],Xt=Yt[1],Jt=Object(a.useState)(!1),$t=Object(r.a)(Jt,2),en=$t[0],tn=$t[1],nn=Object(a.useState)(null),rn=Object(r.a)(nn,2),on=rn[0],an=rn[1];Object(a.useEffect)((function(){Qt||te||Kt(Object(P.c)())}),[Kt,Qt,te]),Object(a.useEffect)((function(){oe&&Y.id&&xe(Y.id).then((function(e){(null==e?void 0:e.payload)&&(an(e.payload),Xt(!0))}))}),[oe,Y,xe]);var cn=function(){return te?"添加":le?"定时发布":"发布视频"},sn=Boolean(Y.id);return Object(o.b)(f.b,{block:"VideoUpLoadForm",content:{type:"Zvideo",id:Y.id},children:Object(o.c)(f.e,{zaType:"Block",className:l()("VideoUploadForm",G),children:[Object(o.c)("div",{className:"VideoUploadForm-item",children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle VideoUploadForm-itemTitle--first",children:"标题"}),Object(o.b)(k.a,{className:"VideoUploadForm-input",value:Re,onChange:function(e){Te(e.target.value)},placeholder:"输入视频标题",large:!0}),Re.length<$.e&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["还需要输入 ",$.e-Re.length," 个字"]}),Re.length>$.d&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["已超出 ",Re.length-$.d," 个字"]})]}),Object(o.c)("div",{className:"VideoUploadForm-item",children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"简介(选填)"}),Object(o.b)(k.a,{className:"VideoUploadForm-input VideoUploadForm-input--multiline",value:_e,onChange:function(e){Ie(e.target.value)},placeholder:"填写视频简介,让更多人找到你的视频",multiline:!0,large:!0}),_e.length>$.b&&Object(o.c)("div",{className:"VideoUploadForm-itemError",children:["已超出 ",_e.length-$.b," 个字"]})]}),sn&&Object(o.b)(X,{defaultVideo:Y,title:Re,description:_e}),Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"所属领域"}),Object(o.c)("div",{className:"VideoUploadForm-selectContainer",children:[Object(o.c)(x.b,{className:"VideoUploadForm-select",listClassName:"VideoUploadForm-selectList",value:Pe,onChange:function(e){Be(e),Ve(!1),Qe(!0)},children:[!ze&&Object(o.b)(x.a,{value:!1,text:"选择领域"},"all"),be.map((function(e){var t=e.data;return Object(o.b)(x.a,{value:t.id,text:t.name},t.id)}))]}),ze&&Object(o.c)(x.b,{className:"VideoUploadForm-select",listClassName:"VideoUploadForm-selectList",value:Ue,onChange:function(e){Ve(e),Qe(!0)},children:[Object(o.b)(x.a,{value:!1,text:"选择领域"},"all"),ze.children.map((function(e){var t=e.data;return Object(o.b)(x.a,{value:t.id,text:t.name},t.id)}))]})]}),Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"绑定话题"}),Object(o.b)(_.a,{className:"VideoUploadForm-topicInput",value:Ze,onChange:function(e){Xe(e),tt(!0)},max:$.f,actived:ot,onToggleActived:function(){return at(!ot)}}),Object(o.c)("div",{className:"VideoUploadForm-typeContainer",children:[Object(o.b)("div",{className:l()("VideoUploadForm-radioContainer",{"VideoUploadForm-radioContainer--disabled":mt}),children:$.g.map((function(e){return Object(o.c)("label",{className:"VideoUploadForm-radioLabel",children:[Object(o.b)(S.a,{className:"VideoUploadForm-radio",size:16,checked:e.value===ht,onChange:function(){bt(e.value)},disabled:mt}),e.label]},e.value)}))}),"reprint"===ht&&Object(o.b)("div",{className:"VideoUploadForm-typeHint",children:"请确保转载视频符合版权使用规范,如被举报侵权,视频将会被删除"})]}),ae&&Object(o.c)("div",{className:"VideoUploadForm-scheduledPublish",children:[Object(o.b)("span",{className:"VideoUploadForm-scheduledPublish--text",children:"定时发布"}),Object(o.b)(T.a,{className:"VideoUploadForm-scheduledPublish--switch",checked:le,onChange:function(e){return ue(e.target.checked)}}),le&&Object(o.c)(o.a,{children:[Object(o.b)(A.a,{className:"VideoUploadForm-scheduledPublish--timePicker",value:pe,min:ie,onChange:function(e){he(Date.parse(e))}}),Object(o.b)(b.a,{className:"VideoUploadForm-scheduledPublish--tooltip",size:18,"data-tooltip":"时间需至少设置在30分钟以后","data-tooltip-position":"top"})]})]}),yt&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"视频活动"}),Object(o.b)(C.c,{preset:"plain",color:"blue",className:"VideoUploadForm-campaignTitle",onClick:function(){Rt(!0),kt(!0)},disabled:zt,children:yt.title})]}),on&&!le&&Object(o.c)(o.a,{children:[Object(o.b)("div",{className:"VideoUploadForm-itemTitle",children:"同步到圈子"}),Object(o.b)(h.a,{view:{id:8603},card:{content:{id:on.id,type:"Zvideo"}},trackCardShow:!0,children:Object(o.c)("div",{className:l()("VideoUploadForm-syncClubTitle",{"VideoUploadForm-syncClubTitle--disabled":Zt}),children:[!Zt&&Object(o.b)(m.a,{text:!0,center:!0,size:6,css:{marginRight:4},onClick:function(){an(null)}}),Object(o.b)("span",{dangerouslySetInnerHTML:{__html:on.name},onClick:function(){Zt?R.a.alert("暂不支持修改已同步的圈子"):tn(!0)}})]})})]}),(Bt||Wt)&&Object(o.c)("div",{className:"VideoUploadForm-featureList",children:[Bt&&!zt&&Object(o.c)("div",{className:"VideoUploadForm-feature",onClick:function(){Rt(!0),kt(!0)},children:[Object(o.b)(v.a,{className:"VideoUploadForm-featureIcon",size:20}),Object(o.b)("div",{className:"VideoUploadForm-featureName",children:"绑定活动"})]}),Wt&&!on&&!le&&Object(o.b)(h.a,{view:{id:8602},card:{content:{type:"Zvideo"}},trackCardShow:!0,children:Object(o.c)("div",{className:"VideoUploadForm-feature",onClick:function(){tn(!0)},children:[Object(o.b)(O,{className:"VideoUploadForm-featureIcon",size:20}),Object(o.b)("div",{className:"VideoUploadForm-featureName",children:"同步到圈子"})]})})]}),Boolean(null==Lt?void 0:Lt.length)&&Object(o.b)(D,{shown:Et,onClose:function(){Rt(!1)},defaultCampaignId:null==yt?void 0:yt.id,campaignList:Lt,onSubmit:function(e){Rt(!1),Ot(e)}}),Wt&&Object(o.b)(Q,{shown:en,onClose:function(){return tn(!1)},selectedClub:on,onSelectClub:function(e){an(e),tn(!1)}}),te&&Object(o.c)("div",{className:"VideoUploadForm-syncToList",children:[Object(o.b)(E.a,{css:{marginRight:"8px"},checked:Nt,onChange:function(e){return _t(e.target.checked)}}),"同步到个人主页「视频」列表"]}),Object(o.c)("div",{className:"VideoUploadForm-imageContainer",children:[Object(o.b)("img",{className:"VideoUploadForm-image",src:lt||$.a,alt:""}),Object(o.b)("div",{className:"VideoUploadForm-duration",children:Object(L.a)(null===(W=Y.video)||void 0===W?void 0:W.duration)}),Object(o.b)(w.a,{triggerClassName:"VideoUploadForm-imageEditButton",useCoverCrop:!1,originVideo:Y.file,onVideoPosterChange:dt,zvideoId:Y.id,id:Y.videoId})]}),Y.id&&Object(o.c)("div",{className:"VideoUploadForm-draftHint",children:[ne&&Object(o.b)(C.c,{className:"VideoUploadForm-draftRemoveButton",preset:"plain",icon:j.a,onClick:ne}),Ut]}),Object(o.b)(h.a,{module:"Content",card:{content:{type:"Zvideo",token:Y.id}},children:Object(o.b)(f.a,{zaType:"Button",zaText:cn(),zaAction:"Save",as:C.c,className:"VideoUploadForm-submitButton",preset:"primary",color:"blue",onClick:function(e){var t=Object(J.a)({title:Re,description:_e,categoryFirstLevel:ze,categorySecondLevelId:Ue,topics:Ze,zvideoType:ht},ee);if(t)return ke(t,"red");d.a.trackEvent(e.target,{id:7038,action:"Upload"},{button:{text:te?"添加":"发布视频"}});var n={id:Y.id,videoId:Y.videoId,title:Re,description:_e,category:{firstLevel:Pe,secondLevel:Ue},zvideoType:ht,topicIds:Ze.map((function(e){return e.id||e.urlToken})),campaignId:null==yt?void 0:yt.id,clubId:null==on?void 0:on.id,imageUrl:lt,publishAt:pe};re(n,le)},children:cn()})})]})})}},function(e,t,n){"use strict";var r=n(2),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(1),u=n(3),d=n.n(u),f=n(31),p=n(73);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var b=function(e){Object(i.a)(n,e);var t=h(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:{},n=r(e,5),a=n[0],c=n[1],s=n[2],l=n[3],u=n[4],d="open";"/"===c?d="close":(o.includes(s)||"/"===u)&&(d="self-close");var f=t.parseAttrs?i(l):l;return{tagHTML:a,tagName:s,tagType:d,attrs:f}}function s(e){var t=e.tagName,n=e.attrs;return"string"==typeof n?t:"invisible"===n.class?"invisible":"video-box"===n.class?"video-box":["link-card","mcn-link-card","metalink"].includes(n["data-draft-type"])?"link-card":t}function l(e){switch(e){case"invalid":return{type:"invalid"};case"noscript":case"figcaption":case"video-box":case"link-card":return{type:"replace",content:" "};case"div":case"br":case"figure":case"img":case"hr":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"p":case"pre":case"code":case"blockquote":case"ul":case"ol":case"li":return{type:"replace-self",content:" "};case"invisible":return{type:"hide"};default:return null}}function u(e){return!!(e.h1||e.h2||e.h3||e.h4||e.h5||e.h6||e.blockquote||e.pre||e.img||e["video-box"]||e["link-card"])||(e.br||0)+(e.p||0)+(e.li||0)>1}t.TAG_RE_TEMPLATE=new RegExp(/<(\/?)(#TAG_NAME#)\s*(#TAG_ATTRS#)\s*(\/?)>/.source.replace("#TAG_ATTRS#",/[^>]*/.source)),t.TAG_RE=new RegExp(t.TAG_RE_TEMPLATE.source.replace("#TAG_NAME#",/[\w|-]+/.source)),t.parseAttrs=i,t.parseTagGroup=c,t.parseTag=function(e,n){var r=t.TAG_RE.exec(e);if(r)return c(r,n)},t.getBlockType=s,t.truncateHTML=function(e){for(var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1/0,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a.endsWith,d=void 0===i?"…":i,f=a.placeholders,p=void 0===f?{}:f,h=[],b=[],m=[],v={},g={},y=new RegExp(t.TAG_RE.source,"g"),O=0,j=0,w=0,C=0,k=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];h.push(e),t||(O+=e.length),j+=e.length};n=y.exec(e);){var x=c(n,{parseAttrs:!0}),S=x.tagHTML,E=x.tagType,R=x.tagName,T="close"===E&&o.includes(R)?"invalid":s("close"!==E?x:b[b.length-1]),A=p[T]?{type:"replace",content:p[T]}:l(T);"close"!==E&&(v[T]=(v[T]||0)+1);var N=e.slice(j,n.index),_=N.length;if(O+_>=r&&0===w&&0===C){for(k(N.slice(0,r-O));m.length;){var I=m.pop();h.push(""))}break}0===w&&k(N,0!==C),"invalid"!==T&&("open"===E?b.push(x):"close"===E&&b.pop(),A?("replace"===A.type&&(0===w&&"close"!==E&&h.push(A.content),"open"===E?w++:"close"===E&&w--),0===w&&"replace-self"===A.type&&h.push(A.content),0===w&&"hide"===A.type&&("open"===E?C++:"close"===E&&C--,h.push(S))):0===w&&(h.push(S),"open"===E?m.push(x):"close"===E&&m.pop())),"video-box"!==T||g.type||"string"==typeof x.attrs||(g.type="video",g.url=x.attrs["data-poster"],g.id=x.attrs["data-lens-id"]),j=y.lastIndex}if(Or||O===r&&j=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){s=!0,a=e},f:function(){try{c||null==n.return||n.return()}finally{if(s)throw a}}}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"))return e;var t=document,n=t.createElement("div");n.innerHTML=e;var r,i=a(o()(n.childNodes));try{for(i.s();!(r=i.n()).done;){var c=r.value;if("BR"===c.nodeName&&c.previousSibling&&"BR"!==c.previousSibling.nodeName&&c.nextSibling&&"BR"===c.nextSibling.nodeName){for(var l=t.createElement("p"),u=c.previousSibling;u&&!s(u)&&("BR"!==u.nodeName||u.previousSibling&&"BR"!==u.previousSibling.nodeName&&!s(u.previousSibling));){var d=l.childNodes;d.length>0?l.insertBefore(u,d[0]):l.appendChild(u),u=c.previousSibling}l.childNodes.length>0&&(n.insertBefore(l,c),c.nextSibling.parentNode.removeChild(c.nextSibling),c.parentNode.removeChild(c))}}}catch(e){i.e(e)}finally{i.f()}return n.innerHTML}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({},e,{viewBox:"0 0 24 24"}),i.a.createElement("path",{d:"M9.218 16.78a.737.737 0 0 0 1.052 0l4.512-4.249a.758.758 0 0 0 0-1.063L10.27 7.22a.737.737 0 0 0-1.052 0 .759.759 0 0 0-.001 1.063L13 12l-3.782 3.716a.758.758 0 0 0 0 1.063z",fillRule:"evenodd"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({viewBox:"0 0 24 24"},e),i.a.createElement("path",{d:"M13.491 10.488s-.012-5.387 0-5.998c-.037-1.987-3.035-1.987-2.997 0-.038 1.912 0 5.998 0 5.998H4.499c-1.999.01-1.999 3.009 0 3.009s5.995-.01 5.995-.01v5.999c0 2.019 3.006 2.019 2.997 0-.01-2.019 0-5.998 0-5.998s3.996.009 6.004.009c2.008 0 2.008-3-.01-3.009h-5.994z",fillRule:"evenodd"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({viewBox:"0 0 12 12"},e),i.a.createElement("path",{fillRule:"evenodd",d:"M3 2L2 3l3 3-3 3 1 1 3-3 3 3 1-1-3-3 3-3-1-1-3 3"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r);function a(e){var t=e.style;return o.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 25",style:t},o.a.createElement("path",{fill:"#FA0",d:"M17.274758,15.4469628 L19.717838,23.7077251 C19.8447617,24.1107955 19.7143932,24.5558233 19.3955281,24.8079664 C19.0766631,25.0601095 18.6426594,25.0613602 18.3225416,24.8110584 L11.9871141,19.556149 L5.67675579,24.8157738 C5.35585352,25.0642585 4.92230992,25.0611015 4.60456814,24.8079664 C4.28682636,24.5548313 4.15784801,24.1098443 4.28559448,23.7074782 L6.69918173,15.4591101 L0.383646092,10.7225632 C0.0610151875,10.4737818 -0.0766431831,10.0304757 0.0422739945,9.62323054 C0.161191172,9.21598539 0.509822814,8.93679002 0.906828141,8.93086791 L8.69117778,8.93086791 L11.125674,0.681629762 C11.2430397,0.276206583 11.5378306,0 12.0000481,0 C12.4622656,0 12.7310442,0.276206583 12.8484099,0.681629762 L15.2829062,8.93086791 L23.0932681,8.93086791 C23.4904075,8.93683682 23.8390971,9.21625563 23.9578641,9.62370313 C24.0766312,10.0311506 23.9386295,10.4745268 23.6156809,10.7230801 L17.274758,15.4469628 Z"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({width:"16",height:"16",viewBox:"0 0 24 25"},e),i.a.createElement("path",{fill:"none",stroke:"#FA0",strokeWidth:"1.764",d:"M11.9819001,0.879433133 C11.9795516,0.880021622 11.9838641,0.88895781 11.971605,0.931278979 L9.35049088,9.81286791 L8.69117778,9.81286791 L0.919983421,9.8127698 C0.919003912,9.81278441 0.901713576,9.82663106 0.888917203,9.87045367 C0.870461414,9.93365758 0.891089579,10.0000872 0.912838593,10.0169576 L7.7173316,15.1202144 L7.54568587,15.7068089 L5.12624332,23.9743743 C5.10962557,24.0267157 5.12267547,24.0829123 5.14588507,24.110054 L11.9857433,18.4090959 L12.5501987,18.8772825 L18.8564176,24.1084404 C18.8797348,24.0814822 18.8926963,24.023831 18.8720512,23.9578624 L16.254506,15.1071827 L16.7478316,14.7396633 L23.0777374,10.0241232 C23.1088665,10.000165 23.1295357,9.93375829 23.111104,9.87052561 C23.0983169,9.82665738 23.0810031,9.81278318 23.0932681,9.81286791 L14.6235931,9.81286791 L14.4369752,9.18051713 L12.0011958,0.92688923 C11.9873473,0.879051627 11.9964848,0.872771777 12.0017908,0.875210734 Z"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r);function a(e){return o.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 24 25",style:e.style},o.a.createElement("path",{fill:"#FA0",d:"M17.274758,15.4469628 L19.717838,23.7077251 C19.8447617,24.1107955 19.7143932,24.5558233 19.3955281,24.8079664 C19.0766631,25.0601095 18.6426594,25.0613602 18.3225416,24.8110584 L11.9871141,19.556149 L5.67675579,24.8157738 C5.35585352,25.0642585 4.92230992,25.0611015 4.60456814,24.8079664 C4.28682636,24.5548313 4.15784801,24.1098443 4.28559448,23.7074782 L6.69918173,15.4591101 L0.383646092,10.7225632 C0.0610151875,10.4737818 -0.0766431831,10.0304757 0.0422739945,9.62323054 C0.161191172,9.21598539 0.509822814,8.93679002 0.906828141,8.93086791 L8.69117778,8.93086791 L11.125674,0.681629762 C11.2430397,0.276206583 11.5378306,0 12.0000481,0 C12.4622656,0 12.7310442,0.276206583 12.8484099,0.681629762 L15.2829062,8.93086791 L23.0932681,8.93086791 C23.4904075,8.93683682 23.8390971,9.21625563 23.9578641,9.62370313 C24.0766312,10.0311506 23.9386295,10.4745268 23.6156809,10.7230801 L17.274758,15.4469628 Z"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({xmlns:"http://www.w3.org/2000/svg",width:"27",height:"24",viewBox:"0 0 27 24"},e),i.a.createElement("path",{fill:"#0084FF",d:"M25.0589726,39.0133333 C25.4056402,39.0133333 25.7340622,39.0755556 26.0442385,39.2 C26.3544148,39.3244444 26.6280998,39.4977778 26.8652934,39.72 C27.1024871,39.9422222 27.2849437,40.2044444 27.4126634,40.5066667 C27.540383,40.8088889 27.6042428,41.1288889 27.6042428,41.4666667 C27.6042428,41.8044444 27.540383,42.1244444 27.4126634,42.4266667 C27.2849437,42.7288889 27.1024871,42.9911111 26.8652934,43.2133333 C26.6280998,43.4355556 26.3544148,43.6133333 26.0442385,43.7466667 C25.7340622,43.88 25.4056402,43.9466667 25.0589726,43.9466667 C24.6940593,43.9466667 24.3610759,43.88 24.0600224,43.7466667 C23.758969,43.6133333 23.4898454,43.4355556 23.2526518,43.2133333 C23.0154581,42.9911111 22.8330015,42.7288889 22.7052818,42.4266667 C22.5775622,42.1244444 22.5137023,41.8044444 22.5137023,41.4666667 C22.5137023,41.1288889 22.5775622,40.8088889 22.7052818,40.5066667 C22.8330015,40.2044444 23.0154581,39.9422222 23.2526518,39.72 C23.4898454,39.4977778 23.758969,39.3244444 24.0600224,39.2 C24.3610759,39.0755556 24.6940593,39.0133333 25.0589726,39.0133333 Z M36.4442675,39.0666667 C36.7909351,39.0666667 37.1239185,39.1288889 37.4432176,39.2533333 C37.7625167,39.3777778 38.0362017,39.5511111 38.2642725,39.7733333 C38.4923433,39.9955556 38.6748,40.2577778 38.8116425,40.56 C38.948485,40.8622222 39.0169062,41.1822222 39.0169062,41.52 C39.0169062,41.8577778 38.948485,42.1777778 38.8116425,42.48 C38.6748,42.7822222 38.4923433,43.0444444 38.2642725,43.2666667 C38.0362017,43.4888889 37.7625167,43.6666667 37.4432176,43.8 C37.1239185,43.9333333 36.7909351,44 36.4442675,44 C36.0975998,44 35.7691779,43.9333333 35.4590016,43.8 C35.1488253,43.6666667 34.8797017,43.4888889 34.6516309,43.2666667 C34.4235601,43.0444444 34.2411034,42.7822222 34.1042609,42.48 C33.9674185,42.1777778 33.8989972,41.8577778 33.8989972,41.52 C33.8989972,41.1822222 33.9674185,40.8622222 34.1042609,40.56 C34.2411034,40.2577778 34.4235601,39.9955556 34.6516309,39.7733333 C34.8797017,39.5511111 35.1488253,39.3777778 35.4590016,39.2533333 C35.7691779,39.1288889 36.0975998,39.0666667 36.4442675,39.0666667 Z M41.042175,23.92 C41.5530536,23.92 41.9498968,23.9866667 42.2327046,24.12 C42.5155124,24.2533333 42.7162147,24.4177778 42.8348116,24.6133333 C42.9534084,24.8088889 43.0081454,25.0177778 42.9990226,25.24 C42.9898997,25.4622222 42.9579698,25.6533333 42.9032328,25.8133333 C42.8484958,25.9733333 42.7344604,26.3022222 42.5611266,26.8 C42.3877928,27.2977778 42.1916519,27.8444444 41.9727039,28.44 C41.7537559,29.0355556 41.5393694,29.6266667 41.3295442,30.2133333 C41.1197191,30.8 40.9600695,31.2622222 40.8505955,31.6 C40.6134019,32.3111111 40.3123484,32.8044444 39.9474351,33.08 C39.5825218,33.3555556 39.135503,33.4933333 38.6063787,33.4933333 L37.6758498,33.4933333 L35.8968975,33.4933333 L33.5705752,33.4933333 L31.025305,33.4933333 L24.2379177,33.4933333 L24.6484451,35.8933333 L38.4421678,35.8933333 C39.3179597,35.8933333 39.7558556,36.2577778 39.7558556,36.9866667 C39.7558556,37.3422222 39.6691887,37.6488889 39.4958549,37.9066667 C39.3225211,38.1644444 38.9804149,38.2933333 38.4695363,38.2933333 L37.1558484,38.2933333 L34.6105781,38.2933333 L31.463201,38.2933333 L28.2610868,38.2933333 L25.633711,38.2933333 L24.1284437,38.2933333 C23.7635304,38.2933333 23.4579155,38.2133333 23.211599,38.0533333 C22.9652826,37.8933333 22.7600188,37.6844444 22.5958078,37.4266667 C22.4315969,37.1688889 22.2993158,36.8888889 22.1989646,36.5866667 C22.0986135,36.2844444 22.0210694,36 21.9663324,35.7333333 C21.9480867,35.6266667 21.8979112,35.3688889 21.8158057,34.96 C21.7337002,34.5511111 21.633349,34.04 21.5147522,33.4266667 C21.3961554,32.8133333 21.2638743,32.1288889 21.117909,31.3733333 C20.9719437,30.6177778 20.8259784,29.8577778 20.680013,29.0933333 C20.3333454,27.2977778 19.9410636,25.2977778 19.5031677,23.0933333 L17.4505304,23.0933333 C17.1768454,23.0933333 16.9487746,23.0266667 16.7663179,22.8933333 C16.5838613,22.76 16.4333345,22.6 16.3147377,22.4133333 C16.1961409,22.2266667 16.1140354,22.0266667 16.0684212,21.8133333 C16.0228071,21.6 16,21.4044444 16,21.2266667 C16,20.8711111 16.1231582,20.5777778 16.3694747,20.3466667 C16.6157912,20.1155556 16.9487746,20 17.3684249,20 L17.9705318,20 L18.5179017,20 L19.2021142,20 L20.1326431,20 C20.4975564,20 20.789487,20.0533333 21.008435,20.16 C21.227383,20.2666667 21.4007168,20.4 21.5284364,20.56 C21.6561561,20.72 21.7473844,20.8888889 21.8021214,21.0666667 C21.8568584,21.2444444 21.9024726,21.3955556 21.9389639,21.52 C21.9754552,21.6622222 22.0119466,21.8622222 22.0484379,22.12 C22.0849292,22.3777778 22.1214206,22.64 22.1579119,22.9066667 C22.2126489,23.2266667 22.2673859,23.5644444 22.3221229,23.92 L41.042175,23.92 Z",transform:"translate(-16 -20)"}))}},function(e,t,n){e.exports=n.p+"assets/sidebar-download-qrcode.7caef4dd.png"},,function(e,t,n){},function(e,t,n){var r=n(13);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e},e.exports.default=e.exports,e.exports.__esModule=!0},,function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return i}));var r=n(14),o=function(){return!0},a={REDIRECT_URL:"REDIRECT_URL",CHANGE_IFRAME_HEIGHT:"CHANGE_IFRAME_HEIGHT",SHOW_APPLY_RIGHTS_SUCCESS_MODAL:"SHOW_APPLY_RIGHTS_SUCCESS_MODAL"},i=function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(r.a)(this,e),this.onIframeMessage=function(e){!1!==t.beforeMessage(e)&&e.data&&e.data.type&&t.onMessage(e.data,e)},this.close=function(){window.removeEventListener("message",t.onIframeMessage)};var o=Object.assign({},e.defaultOption,n);this.beforeMessage=o.beforeMessage,this.onMessage=o.onMessage,window.addEventListener("message",this.onIframeMessage)};i.defaultOption={beforeMessage:o,onMessage:o}},function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r2&&void 0!==arguments[2]?arguments[2]:{threshold:0},a=arguments[3],i=n.root,c=n.rootMargin,l=n.threshold||0;if(e&&t){var u=c?l.toString()+"_"+c:""+l.toString();i&&(u=a?a+"_"+u:null);var d=u?o.get(u):null;d||(d=new IntersectionObserver(s,n),u&&o.set(u,d));var f={callback:t,visible:!1,options:n,observerId:u,observer:u?void 0:d};return r.set(e,f),d.observe(e),f}}function i(e){if(e){var t=r.get(e);if(t){var n=t.observerId,a=t.observer,i=n?o.get(n):a;i&&i.unobserve(e);var c=!1;n&&r.forEach((function(t,r){t&&t.observerId===n&&r!==e&&(c=!0)})),i&&!c&&(i.disconnect(),o.delete(n)),r.delete(e)}}}function c(){o.forEach((function(e){e.disconnect()})),o.clear(),r.clear()}function s(e){e.forEach((function(e){var t=e.isIntersecting,n=e.intersectionRatio,o=e.target,a=r.get(o);if(a&&n>=0){var i=a.options,c=!1;Array.isArray(i.threshold)?c=i.threshold.some((function(e){return a.visible?n>e:n>=e})):void 0!==i.threshold&&(c=a.visible?n>i.threshold:n>=i.threshold),void 0!==t&&(c=c&&t),a.callback&&a.callback(c)}}))}t.default={observe:a,unobserve:i,destroy:c}},function(e,t,n){e.exports=n.p+"assets/deleteComment.97d8abc0.gif"},function(e,t,n){"use strict";n.d(t,"d",(function(){return C})),n.d(t,"a",(function(){return x})),n.d(t,"e",(function(){return S})),n.d(t,"b",(function(){return R}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(233),u=n.n(l),d=n(1),f=n(71),p=n.n(f),h=n(37),b=n.n(h),m=n(49),v=n.n(m);function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var y="success",O="fail",j="request",w="error";function C(){var e=b.a.get("EDITABLE_STATSC");e&&(e.forEach((function(e){v.a.increment(e)})),b.a.delete("EDITABLE_STATSC"))}var k={get pageName(){return"UnknownPage"},reportRequest:u.a,reportSuccess:u.a,reportFail:u.a,reportFailAfterTimeout:u.a,reportError:u.a,reportFailFromFunc:function(e){return e},reportAllFromFunc:function(e){return e},reportAllFromPromise:function(e){return e},reportToSentry:u.a},x=Object(d.createContext)(),S=function(e){return p()((function(t){var n=Object(d.useContext)(x)||k;return Object(s.b)(e,Object.assign({reporter:n},t))}),e)},E=function(e){Object(a.a)(n,e);var t=g(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidCatch",value:function(e,t){var n=this.props,r=n.reporter,o=n.name;throw r&&(r.reportError(o),r.reportToSentry(o,e,{extra:{errorInfo:t}})),e}},{key:"render",value:function(){return this.props.children}}]),n}(d.Component),R=S(E);t.c=function(e){var t=function(t,n){v.a.increment("".concat(e,".").concat(t,".").concat(n,".count"))},n=function(t,n){var r="".concat(e,".").concat(t,".").concat(n,".count"),o=b.a.get("EDITABLE_STATSC")||[];o.push(r),b.a.set("EDITABLE_STATSC",o)},r=function(e){return t(e,y)},o=function(e){return t(e,O)};return{get pageName(){return e},reportRequest:function(e){return t(e,j)},reportSuccess:r,reportFail:o,reportFailAfterTimeout:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e4,r=function(){n(e,O)};window.addEventListener("beforeunload",r);var a=setTimeout((function(){o(e),a=null,window.removeEventListener("beforeunload",r)}),t),i=function(){a&&(clearTimeout(a),window.removeEventListener("beforeunload",r))};return i},reportError:function(e){return t(e,w)},reportFailFromFunc:function(e,t){return function(){try{return t.apply(void 0,arguments)}catch(t){throw o(e),t}}},reportAllFromFunc:function(e,t){return function(){try{var n=t.apply(void 0,arguments);return r(e),n}catch(t){throw o(e),t}}},reportAllFromPromise:function(e,t){return t.then((function(t){return r(e),t}),(function(t){throw o(e),t}))},reportToSentry:function(t,n){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};null===(r=window.Raven)||void 0===r||r.captureException(n,Object.assign({tags:{scope:"".concat(e,":").concat(t)}},o))},stash:n}}},function(e,t,n){},function(e,t){var n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function a(e){return 3*e}function i(e,t,n){return((r(t,n)*e+o(t,n))*e+a(t))*e}function c(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+a(t)}function s(e){return e}e.exports=function(e,t,r,o){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===t&&r===o)return s;for(var a=n?new Float32Array(11):new Array(11),l=0;l<11;++l)a[l]=i(.1*l,e,r);function u(t){for(var n=0,o=1;10!==o&&a[o]<=t;++o)n+=.1;--o;var s=n+.1*((t-a[o])/(a[o+1]-a[o])),l=c(s,e,r);return l>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var a=c(t,n,r);if(0===a)return t;t-=(i(t,n,r)-e)/a}return t}(t,s,e,r):0===l?s:function(e,t,n,r,o){var a,c,s=0;do{(a=i(c=t+(n-t)/2,r,o)-e)>0?n=c:t=c}while(Math.abs(a)>1e-7&&++s<10);return c}(t,n,n+.1,e,r)}return function(e){return 0===e?0:1===e?1:i(u(e),t,o)}}},,function(e,t,n){"use strict";var r=n(0),o=n(2),a=n(11),i=n.n(a),c=n(1564),s=n(234),l=n(793),u=n(1557),d=n(1558),f=n(797),p=n(1559),h=n(1560),b=n(1561),m=n(1562),v=n(1563),g={online_roundtable:l.a,relevant:u.a,editor_recommendation:d.a,roundtable:l.a,special:f.a,weekly:p.a,daily:h.a,professional:b.a,zhizhi_plan_recommend:m.a,zhizhi_plan_edu_recommend:m.a,zhizhi_plan_baby_recommend:m.a,zhizhi_plan_acg_recommend:m.a,zhizhi_plan_outing_recommend:m.a,zhizhi_plan_rumour_deny:v.a,zhizhi_plan:m.a},y={alpha:1,group:"GYL02A"},O={alpha:.08,group:"GYL02A"},j={brand_special:c.a},w=Object.assign({},g,{COMMERCIAL_ICONS:j}),C=function(e){return"GBL07A"===(e||y).group?"commercial":"positive"},k=function(e){return"GBL07A"===(e||O).group?"commercial":"positive"},x=function(e){return"recognition"===e?"professional":e};t.a=Object(s.a)(null)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.labelInfo,n=e.extra,a=void 0===n?{}:n,c=e.className;if(!t)return null;var s=t.type,l=t.text,u=t.foregroundColor,d=t.backgroundColor,f=a.customIcon,p=a.customIconClassName,h=C(u),b=k(d),m=f||w[x(s)];return m?Object(o.c)("span",{className:i()("Label-icon","Label-iconColor--".concat(h),Object(r.a)({},"Label-iconColor--".concat(b,"Background"),d),c),children:[Object(o.b)(m,{center:!0,className:i()("Label-iconImg",p)}),l]}):null}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n(3),f=n.n(d),p=n(923),h=n(205);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var m=function(e){Object(i.a)(n,e);var t=b(n);function n(){return Object(o.a)(this,n),t.apply(this,arguments)}return Object(a.a)(n,[{key:"render",value:function(){var e=this.props,t=e.containerClassName,n=e.selector,o=Object(r.a)(e,["containerClassName","selector"]);return Object(l.b)(h.b,{className:t,selector:n,children:Object(l.b)(p.b,Object.assign({},o))})}}]),n}(u.Component);m.propTypes={containerClassName:f.a.string,selector:f.a.string},m.defaultProps={selector:".List-item"};var v=m},function(e,t,n){"use strict";var r=n(2),o=n(1),a=n.n(o),i=n(18),c=function(e){return a.a.createElement(i.a,e,a.a.createElement("path",{fill:"currentColor",d:"M3.495 3A1.993 1.993 0 0 0 1.5 4.99v14.02c0 1.092.893 1.99 1.995 1.99h16.01a1.993 1.993 0 0 0 1.995-1.99V4.99c0-1.092-.893-1.99-1.995-1.99zm1.007 8a.999.999 0 1 1 0-2h6.995a.999.999 0 1 1 0 2zM3.5 14c0 .556.449 1 1.002 1h4.995a.999.999 0 1 0 0-2H4.502c-.546 0-1.002.448-1.002 1zm15.285-2.429a.5.5 0 0 1 0 .858l-3.528 2.117a.5.5 0 0 1-.757-.43V9.884a.5.5 0 0 1 .757-.429z",fillRule:"evenodd",clipRule:"evenodd"}))};c.defaultProps={name:"Catalog"};var s=c,l=n(31),u=n(881),d=n(366),f=n(30);t.a=function(e){var t=e.className,n=e.onClick,a=e.html,i=e.sourceId,c=Object(o.useCallback)((function(e){f.a.trackEvent(e.target,{id:9857,action:"Click"}),n&&n(e)}),[n]),p=Object(o.useMemo)((function(){return Object(u.c)(a,i).catalog}),[a,i]);return(null==p?void 0:p.length)?Object(r.b)(d.a,{trackCardShow:!0,view:{id:9856},children:Object(r.b)(l.c,{preset:"plain",className:t,onClick:c,icon:s,label:"目录"})}):null}},function(e,t,n){"use strict";var r=n(849),o=n(2),a=n(1),i=n(11),c=n.n(i),s=n(134),l=n(176),u=n(369),d=n.n(u),f=n(881),p=n(43),h=n(35),b=n(90),m=n(835),v=n(132),g=n(366),y=n(30),O=n(851),j=function(e){var t=e.children,n=e.targetId,r=e.active,a=e.setCursor,i=Object(h.a)(e,["children","targetId","active","setCursor"]);return Object(o.b)(b.Text,Object.assign({color:r?"GBL01A":"GBK02A",fontWeight:r?"bold":"normal",css:{fontSize:"14px"}},i,{children:Object(o.b)(g.a,{module:"Content",moduleName:String(t),children:Object(o.c)(b.Flex,{css:{cursor:"pointer",alignItems:"center",height:"48px"},sx:{borderBottom:"1px solid",borderColor:"GBK09A"},onClick:function(e){y.a.trackEvent(e.target,{id:9745,action:"Click",name:"弹窗"});var t=document.querySelector("#"+n);a(n),t&&Object(O.a)(t)},children:[Object(o.b)(b.Text,{css:Object(v.d)(1),children:t}),Object(o.b)(m.a,{size:"24px",css:function(e){return{color:e.colors.GBL05A,flex:"0 0 auto",marginLeft:"auto"}}})]})})}))},w=function(e){return Object(o.b)(j,Object.assign({},e))},C={1:w,2:function(e){return Object(o.b)(j,Object.assign({pl:"20px"},e))}},k=function(e){var t=e.catalog,n=e.className,r=e.zaContent,i=Object(a.useState)(null),s=Object(p.a)(i,2),l=s[0],u=s[1];return Object(a.useEffect)((function(){if(null==t?void 0:t.length){var e=null,n=Object(O.d)();t.forEach((function(t){var r=document.querySelector("#"+t.targetId);(null==r?void 0:r.getBoundingClientRect().top)<=n+2&&(e=t.targetId)})),u(e)}}),[]),(null==t?void 0:t.length)?Object(o.b)(g.a,{trackCardShow:!0,view:{id:9744,name:"弹窗"},content:r,module:"Content",children:Object(o.b)(b.Box,{className:c()(n),children:Object(o.b)(b.Flex,{flexDirection:"column",css:{fontSize:"12px"},children:t.map((function(e){var t=e.titleLevel,n=e.text,r=e.targetId,a=C[t]||w;return Object(o.b)(a,{targetId:r,active:l===r,setCursor:u,children:n},r)}))})})}):null};function x(){var e=Object(r.a)([""," 编辑于",""]);return x=function(){return e},e}t.a=function(e){var t=e.className,n=e.shown,r=e.onClose,i=e.html,u=e.sourceId,p=e.updated,h=e.author,b=e.zaContent,m=Object(a.useMemo)((function(){return Object(f.c)(i,u).catalog}),[i,u]);return Object(o.b)(s.b,{wrapperClassName:"CatalogModal-wrapper",className:c()("CatalogModal",t),title:"目录",subtitle:d()(x(),null==h?void 0:h.name,Object(l.toSmartString)(p)),onClose:r,children:n&&Object(o.b)(k,{css:{paddingBottom:"16px"},catalog:m,zaContent:b})})}},function(e,t,n){"use strict";var r=n(43),o=n(2),a=n(71),i=n.n(a),c=n(7),s=n(156),l=n(4),u=n(122);function d(e){return e.reduce((function(e,t){var n;return[].concat(Object(l.a)(e),Object(l.a)(null!==(n=t.stickers)&&void 0!==n?n:[]))}),[])}var f=function(){return window.zh_emoticon?Promise.resolve(d(window.zh_emoticon)):Object(u.loadScript)("https://unpkg.zhimg.com/@cfe/emoticon@1.2.2/lib/emoticon.js").then((function(){return window.zh_emoticon?d(window.zh_emoticon):[]}))},p=n(1);t.a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alwaysShow,n=void 0!==t&&t;return function(e){return i()((function(t){var a=Object(p.useState)(!1),i=Object(r.a)(a,2),l=i[0],u=i[1];return Object(p.useEffect)((function(){Object(s.c)()?u(!0):f().then((function(e){Object(s.e)(Object(c.camelizeKeys)(e)),u(!0)})).catch((function(){u(!0)}))}),[]),(l||n)&&Object(o.b)(e,Object.assign({},t))}),e)}}},function(e,t,n){"use strict";var r=n(20),o=n.n(r),a=n(21),i=n.n(a),c=n(22),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(33),h=n.n(p),b=n(1),m=n(11),v=n.n(m),g=n(30),y=n(805),O=n(327),j=n(31),w=n(857),C=n(1064),k=n(393),x=n(5);function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f()(e);if(t){var o=f()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u()(this,n)}}var E={upload:"视频上传失败"};function R(e){var t=e/1e3/1e3;return t=t<10?t.toPrecision(1):Math.round(t),"".concat(t,"M")}var T=function(e){s()(n,e);var t=S(n);function n(){var e;o()(this,n);for(var r=arguments.length,a=new Array(r),i=0;i=e.start}));1!=h.length&&a(!1);var b=h[0];if("IMMUTABLE"===f)return n.merge({anchorOffset:b.start,focusOffset:b.end,isBackward:!1});s||(l?d=b.end:u=b.start);var m=r.getRemovalRange(u,d,t.getText().slice(b.start,b.end),b.start,i);return n.merge({anchorOffset:m.start,focusOffset:m.end,isBackward:!1})}e.exports=function(e,t,n,r,o){var a=r.getStartOffset(),c=r.getEndOffset(),s=t.getEntityAt(a),l=n.getEntityAt(c-1);if(!s&&!l)return r;var u=r;if(s&&s===l)u=i(e,t,u,o,s,!0,!0);else if(s&&l){var d=i(e,t,u,o,s,!1,!0),f=i(e,n,u,o,l,!1,!1);u=u.merge({anchorOffset:d.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=i(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(l){var h=i(e,n,u,o,l,!1,!1);u=u.merge({focusOffset:h.getEndOffset(),isBackward:!1})}return u}},function(e,t,n){"use strict";e.exports={getRemovalRange:function(e,t,n,r,o){var a=n.split(" ");a=a.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(tt;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e};e.exports=function(e,t){if(t.isCollapsed())return e;var n=e.getBlockMap(),o=t.getStartKey(),c=t.getStartOffset(),l=t.getEndKey(),u=t.getEndOffset(),p=n.get(o),h=n.get(l),b=p instanceof r,m=[];if(b){var v=h.getChildKeys(),g=s(l,n);h.getNextSiblingKey()&&(m=m.concat(g)),v.isEmpty()||(m=m.concat(g.concat([l]))),m=m.concat(s(a(h,n),n))}var y=void 0;y=p===h?f(p.getCharacterList(),c,u):p.getCharacterList().slice(0,c).concat(h.getCharacterList().slice(u));var O=p.merge({text:p.getText().slice(0,c)+h.getText().slice(u),characterList:y}),j=n.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===l})).filter((function(e,t){return-1===m.indexOf(t)})).concat(i([[l,null]])).map((function(e,t){return t===o?O:null})),w=n.merge(j).filter((function(e){return!!e}));return b&&(w=d(w,p,h,n)),e.merge({blockMap:w,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:c,focusKey:o,focusOffset:c,isBackward:!1})})}},function(e,t,n){"use strict";var r=n(850),o=n(838),a=n(860),i=n(839),c=o.List,s=o.Map,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}};e.exports=function(e,t){t.isCollapsed()||i(!1);var n=t.getAnchorKey(),o=t.getAnchorOffset(),u=e.getBlockMap(),d=u.get(n),f=d.getText(),p=d.getCharacterList(),h=a(),b=d instanceof r,m=d.merge({text:f.slice(0,o),characterList:p.slice(0,o)}),v=m.merge({key:h,text:f.slice(o),characterList:p.slice(o),data:s()}),g=u.toSeq().takeUntil((function(e){return e===d})),y=u.toSeq().skipUntil((function(e){return e===d})).rest(),O=g.concat([[n,m],[h,v]],y).toOrderedMap();return b&&(d.getChildKeys().isEmpty()||i(!1),O=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();l(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,a=t.toArray();return a.splice(n,0,o),e.merge({children:c(a)})})),l(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),l(r,e,(function(e){return e.merge({nextSibling:o})})),l(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(O,m,v)),e.merge({blockMap:O,selectionBefore:t,selectionAfter:t.merge({anchorKey:h,anchorOffset:0,focusKey:h,focusOffset:0,isBackward:!1})})}},function(e,t,n){"use strict";var r,o=n(838),a=n(1197),i=n(852),c=o.OrderedMap,s={getDirectionMap:function(e,t){r?r.reset():r=new a;var n=e.getBlockMap(),s=n.valueSeq().map((function(e){return i(r).getDirection(e.getText())})),l=c(n.keySeq().zip(s));return null!=t&&o.is(t,l)?t:l}};e.exports=s},function(e,t,n){"use strict";var r=n(1038),o=n(965),a=n(839),i=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t?o.isStrong(t)||a(!1):t=o.getGlobalDir(),this._defaultDir=t,this.reset()}return e.prototype.reset=function(){this._lastDir=this._defaultDir},e.prototype.getDirection=function(e){return this._lastDir=r.getDirection(e,this._lastDir),this._lastDir},e}();e.exports=i},function(e,t,n){"use strict";var r=n(850),o=n(838),a=n(1035),i=n(839),c=o.OrderedMap,s=o.List,l=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},u=function(e,t,n,r,o){if(!o)return e;var a="after"===r,i=t.getKey(),c=n.getKey(),u=t.getParentKey(),d=t.getNextSiblingKey(),f=t.getPrevSiblingKey(),p=n.getParentKey(),h=a?n.getNextSiblingKey():c,b=a?c:n.getPrevSiblingKey();return e.withMutations((function(e){l(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(i))})})),l(f,e,(function(e){return e.merge({nextSibling:d})})),l(d,e,(function(e){return e.merge({prevSibling:f})})),l(h,e,(function(e){return e.merge({prevSibling:i})})),l(b,e,(function(e){return e.merge({nextSibling:i})})),l(p,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(c),r=a?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,i),e.merge({children:s(o)})})),l(i,e,(function(e){return e.merge({nextSibling:h,prevSibling:b,parent:p})}))}))};e.exports=function(e,t,n,o){"replace"===o&&i(!1);var s=n.getKey(),l=t.getKey();l===s&&i(!1);var d=e.getBlockMap(),f=t instanceof r,p=[t],h=d.delete(l);f&&(p=[],h=d.withMutations((function(e){var n=t.getNextSiblingKey(),r=a(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===l})).takeWhile((function(e){var t=e.getKey(),o=t===l,a=n&&t!==n,i=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||i)})).forEach((function(t){p.push(t),e.delete(t.getKey())}))})));var b=h.toSeq().takeUntil((function(e){return e===n})),m=h.toSeq().skipUntil((function(e){return e===n})).skip(1),v=p.map((function(e){return[e.getKey(),e]})),g=c();if("before"===o){var y=e.getBlockBefore(s);y&&y.getKey()===t.getKey()&&i(!1),g=b.concat([].concat(v,[[s,n]]),m).toOrderedMap()}else if("after"===o){var O=e.getBlockAfter(s);O&&O.getKey()===l&&i(!1),g=b.concat([[s,n]].concat(v),m).toOrderedMap()}return e.merge({blockMap:u(g,t,n,o,f),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:l,focusKey:l})})}},function(e,t,n){"use strict";var r=n(838).List,o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._decorators=t.slice()}return e.prototype.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var a=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r0||null!==p;if(h&&e.restoreEditorDOM(),e.exitCurrentMode(),t){if(r.draft_handlebeforeinput_composed_text&&e.props.handleBeforeInput&&s(e.props.handleBeforeInput(t,n)))return;var b=o.replaceText(n.getCurrentContent(),n.getSelection(),t,i,p);e.update(a.push(n,b,"insert-characters"))}else h&&e.update(a.set(n,{nativelyRenderedContent:null,forceSelection:!0}))}}};e.exports=p},function(e,t,n){"use strict";var r=n(1203);e.exports=r},function(e,t,n){"use strict";var r=n(91)||function(e){for(var t=1;tC,I));var U=A||i,V={className:F,"data-block":!0,"data-editor":h,"data-offset-key":M,key:E};void 0!==_&&(V=r({},V,{contentEditable:_,suppressContentEditableWarning:!0}));var q=s.createElement(z,V,s.createElement(U,L));w.push({block:q,wrapperTemplate:B,key:E,offsetKey:M}),C=B?S.getDepth():null,k=B}for(var H=[],K=0;K * Licensed under MIT License */!function(o,a){"use strict";var i="model",c="name",s="type",l="vendor",u="version",d="mobile",f="tablet",p="smarttv",h={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"==typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"==typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},b={rgx:function(e,t){for(var n,r,o,a,i,c,s=0;s0?2==a.length?"function"==typeof a[1]?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3==a.length?"function"!=typeof a[1]||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):void 0:this[a[0]]=c?a[1].call(this,c,a[2]):void 0:4==a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):void 0):this[a]=c||void 0;s+=2}},str:function(e,t){for(var n in t)if("object"==typeof t[n]&&t[n].length>0){for(var r=0;r=|~>|~|>|)?\s*(.+)/,s=/^(\d*)(.*)/;function l(e,t){var n=e.split(a);return n.length>1?n.some((function(e){return O.contains(e,t)})):function(e,t){var n=e.split(i);if(n.length>0&&n.length<=2||r(!1),1===n.length)return u(n[0],t);var o=n[0],a=n[1];return b(o)&&b(a)||r(!1),u(">="+o,t)&&u("<="+a,t)}(e=n[0].trim(),t)}function u(e,t){if(""===(e=e.trim()))return!0;var n,r=t.split(o),a=p(e),i=a.modifier,c=a.rangeComponents;switch(i){case"<":return d(r,c);case"<=":return-1===(n=y(r,c))||0===n;case">=":return f(r,c);case">":return function(e,t){return 1===y(e,t)}(r,c);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,a=parseInt(r[o],10);h(a)&&(r[o]=a+1+"");return f(e,n)&&d(e,r)}(r,c);default:return function(e,t){return 0===y(e,t)}(r,c)}}function d(e,t){return-1===y(e,t)}function f(e,t){var n=y(e,t);return 1===n||0===n}function p(e){var t=e.split(o),n=t[0].match(c);return n||r(!1),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function h(e){return!isNaN(e)&&isFinite(e)}function b(e){return!p(e).modifier}function m(e,t){for(var n=e.length;nt?1:el(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(i.toJS())});var u=t===e.focusNode;try{e.extend(t,n)}catch(o){throw r.logSelectionStateFailure({anonymizedDom:s(t,(function(t){var n=[];return t===c&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:c?c.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:u,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:o?""+o:null,offset:n},null,2),selectionState:JSON.stringify(i.toJS(),null,2)}),o}}else{var d=e.getRangeAt(0);d.setEnd(t,n),e.addRange(d.cloneRange())}}function d(e,t,n,o){var a=document.createRange();n>l(t)&&r.logSelectionStateFailure({anonymizedDom:s(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(o.toJS())}),a.setStart(t,n),e.addRange(a)}e.exports=function(e,n,r,a,i){if(o(document.documentElement,n)){var c=t.getSelection(),s=e.getAnchorKey(),l=e.getAnchorOffset(),f=e.getFocusKey(),p=e.getFocusOffset(),h=e.getIsBackward();if(!c.extend&&h){var b=s,m=l;s=f,l=p,f=b,p=m,h=!1}var v=s===r&&a<=l&&i>=l,g=f===r&&a<=p&&i>=p;if(v&&g)return c.removeAllRanges(),d(c,n,l-a,e),void u(c,n,p-a,e);if(h){if(g&&(c.removeAllRanges(),d(c,n,p-a,e)),v){var y=c.focusNode,O=c.focusOffset;c.removeAllRanges(),d(c,n,l-a,e),u(c,y,O,e)}}else v&&(c.removeAllRanges(),d(c,n,l-a,e)),g&&u(c,n,p-a,e)}}}).call(this,n(100))},function(e,t,n){"use strict";e.exports={logSelectionStateFailure:function(){return null}}},function(e,t,n){"use strict";var r=n(1214);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(1216),o=n(1217);function a(e){return null==e?e:String(e)}e.exports=function(e,t){var n=void 0;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return a(n.getPropertyValue(o(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return a(n.getPropertyValue(o(t)));if("display"===t)return"none"}return e.currentStyle?a("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[r(t)]):a(e.style&&e.style[r(t)])}},function(e,t,n){"use strict";var r=/-(.)/g;e.exports=function(e){return e.replace(r,(function(e,t){return t.toUpperCase()}))}},function(e,t,n){"use strict";var r=/([A-Z])/g;e.exports=function(e){return e.replace(r,"-$1").toLowerCase()}},function(e,t,n){"use strict";var r=n(1219);e.exports=function(e){var t=r(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}}},function(e,t,n){"use strict";var r=n(969);e.exports=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!r(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}}},function(e,t,n){"use strict";var r="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;e.exports=function(e){return(e=e||document).scrollingElement?e.scrollingElement:r||"CSS1Compat"!==e.compatMode?e.body:e.documentElement}},function(e,t,n){"use strict";e.exports=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}},function(e,t,n){"use strict";function r(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function o(){var e=void 0;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function a(){return{width:window.innerWidth||r(),height:window.innerHeight||o()}}a.withoutScrollbars=function(){return{width:r(),height:o()}},e.exports=a},function(e,t,n){"use strict";e.exports=function(e){e||(e="");var t=void 0,n=arguments.length;if(n>1)for(var r=1;r0){if(e.props.handleDroppedFiles&&l(e.props.handleDroppedFiles(p,h)))return;c(h,(function(t){t&&e.update(f(d,p,t))}))}else{var b=e._internalDrag?"internal":"external";e.props.handleDrop&&l(e.props.handleDrop(p,n,b))||(e._internalDrag?e.update(function(e,t){var n=o.moveText(e.getCurrentContent(),e.getSelection(),t);return a.push(e,n,"insert-fragment")}(d,p)):e.update(f(d,p,n.getText())))}}}};function f(e,t,n){var r=o.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return a.push(e,r,"insert-fragment")}e.exports=d},function(e,t,n){"use strict";var r={isImage:function(e){return"image"===o(e)[0]},isJpeg:function(e){var t=o(e);return r.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function o(e){return e.split("/")}e.exports=r},function(e,t,n){"use strict";var r=n(839);e.exports=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&r(!1),"number"!=typeof t&&r(!1),0===t||t-1 in e||r(!1),"function"==typeof e.callee&&r(!1),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),o=0;o=0;p--)if(!(null!=f&&p>0&&r.isSurrogatePair(f,p-1))){if(e.setStart(u,p),!i(o(e),n))break;s=u,l=p}if(-1===p||0===u.childNodes.length)break;d=c(u=u.childNodes[p])}return e.setStart(s,l),e}},function(e,t,n){"use strict";var r=n(1051),o=n(840),a=n(974),i=n(898);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return a(e,1);var o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(0,n),c=r.getBackward(i);return a(e,c.length||1)}),"backward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";e.exports={getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}},function(e,t,n){"use strict";var r=n(1051),o=n(840),a=n(1052),i=n(898);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),o=t.getStartKey(),i=e.getCurrentContent().getBlockForKey(o).getText().slice(n),c=r.getForward(i);return a(e,c.length||1)}),"forward");return t===e.getCurrentContent()?e:o.push(e,t,"remove-range")}},function(e,t,n){"use strict";var r=n(846),o=n(840);e.exports=function(e){var t=r.splitBlock(e.getCurrentContent(),e.getSelection());return o.push(e,t,"split-block")}},function(e,t,n){"use strict";var r=n(840);e.exports=function(e){var t=e.getSelection(),n=t.getEndKey(),o=e.getCurrentContent().getBlockForKey(n).getLength();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:o,focusKey:n,focusOffset:o,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(840);e.exports=function(e){var t=e.getSelection(),n=t.getStartKey();return r.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})}},function(e,t,n){"use strict";var r=n(840),o=n(867),a=n(974),i=n(898);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),c=n.getBlockForKey(r).getText()[i-1];return a(e,c?o.getUTF16Length(c,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(e,t,n){"use strict";var r=n(840),o=n(867),a=n(1052),i=n(898);e.exports=function(e){var t=i(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),i=t.getAnchorOffset(),c=n.getBlockForKey(r).getText()[i];return a(e,c?o.getUTF16Length(c,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return r.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")}},function(e,t,n){"use strict";var r=n(846),o=n(840),a=n(928);e.exports=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var i,c,s=t.getAnchorKey(),l=e.getCurrentContent(),u=l.getBlockForKey(s).getLength();if(u<=1)return e;n===u?(i=t.set("anchorOffset",n-1),c=t):c=(i=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var d=a(l,i),f=r.removeRange(l,i,"backward"),p=f.getSelectionAfter(),h=p.getAnchorOffset()-1,b=p.merge({anchorOffset:h,focusOffset:h}),m=r.replaceWithFragment(f,b,d),v=o.push(e,m,"insert-fragment");return o.acceptSelection(v,c)}},function(e,t,n){"use strict";var r=n(840);e.exports=function(e,t,n){var o=r.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(r.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(o)}),0)):n(o);else{var a=o.getCurrentContent();n(r.set(o,{nativelyRenderedContent:a}))}}},function(e,t,n){"use strict";var r=n(895),o=n(847),a=n(1044),i=n(846),c=n(1253),s=n(840),l=n(1055),u=n(968),d=n(1046),f=n(897),p=n(1256);function h(e,t,n){var r=i.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return s.push(e,r.set("entityMap",n),"insert-fragment")}e.exports=function(e,t){t.preventDefault();var n=new a(t.clipboardData);if(!n.isRichText()){var b=n.getFiles(),m=n.getText();if(b.length>0){if(e.props.handlePastedFiles&&f(e.props.handlePastedFiles(b)))return;return void d(b,(function(t){if(t=t||m){var n=e._latestEditorState,a=p(t),d=o.create({style:n.getCurrentInlineStyle(),entity:u(n.getCurrentContent(),n.getSelection())}),f=l.getCurrentBlockType(n),h=c.processText(a,d,f),b=r.createFromArray(h),v=i.replaceWithFragment(n.getCurrentContent(),n.getSelection(),b);e.update(s.push(n,v,"insert-fragment"))}}))}}var v=[],g=n.getText(),y=n.getHTML(),O=e._latestEditorState;if(!e.props.handlePastedText||!f(e.props.handlePastedText(g,y,O))){if(g&&(v=p(g)),!e.props.stripPastedStyles){var j=e.getClipboard();if(n.isRichText()&&j){if(-1!==y.indexOf(e.getEditorKey())||1===v.length&&1===j.size&&j.first().getText()===g)return void e.update(h(e._latestEditorState,j))}else if(j&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(v,j))return void e.update(h(e._latestEditorState,j));if(y){var w=c.processHTML(y,e.props.blockRenderMap);if(w){var C=w.contentBlocks,k=w.entityMap;if(C){var x=r.createFromArray(C);return void e.update(h(e._latestEditorState,x,k))}}}e.setClipboard(null)}if(v.length){var S=o.create({style:O.getCurrentInlineStyle(),entity:u(O.getCurrentContent(),O.getSelection())}),E=l.getCurrentBlockType(O),R=c.processText(v,S,E),T=r.createFromArray(R);e.update(h(e._latestEditorState,T))}}}},function(e,t,n){"use strict";var r=n(91)||function(e){for(var t=1;t0;){var u=l.pop(),d=u.parentRef,f=d.getChildKeys(),p=f.indexOf(u.key),h=Array.isArray(u.children);if(!h){h||m(!1);break}var b=u.children.map(C),v=new a(r({},j(u,t),{parent:d.getKey(),children:g(b.map((function(e){return e.key}))),prevSibling:0===p?null:f.get(p-1),nextSibling:p===f.size-1?null:f.get(p+1)}));n=n.set(v.getKey(),v),l=k(l,b,v)}return n}),O())}(i,t):function(e,t){return O(e.map((function(e){var n=new o(j(e,t));return[n.getKey(),n]})))}(n?l.fromRawTreeStateToRawState(e).blocks:i,t)};e.exports=function(e){Array.isArray(e.blocks)||m(!1);var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,a=r.mutability,i=r.data;n[e]=c.__create(o,a,i||{})})),n}(e),n=x(e,t),r=n.isEmpty()?new d:d.createEmpty(n.first().getKey());return new i({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})}},function(e,t,n){"use strict";var r=n(91)||function(e){for(var t=1;t0){var l=t[c-1];return l||o(!1),void l.children.push(s)}n.push(s)})),r({},e,{blocks:n})}};e.exports=i},function(e,t,n){"use strict";var r=n(847),o=n(838).List;e.exports=function(e,t){var n=e.map((function(e,n){var o=t[n];return r.create({style:e,entity:o})}));return o(n)}},function(e,t,n){"use strict";var r=n(867).substr;e.exports=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var o=r(e,0,t.offset).length,a=o+r(e,t.offset,t.length).length,i=o;i1&&0===t[0].width){var c=t[1];n=c.top,o=c.right,a=c.bottom,i=c.left}else{var s=t[0];n=s.top,o=s.right,a=s.bottom,i=s.left}for(var l=1;lS.d||n>S.d?o>1?{height:"".concat(S.d,"px"),minWidth:"".concat(S.g,"px")}:o<1?{width:"".concat(S.d,"px"),minHeight:"".concat(S.g,"px"),height:S.d*o}:{height:"".concat(S.d,"px"),width:"".concat(S.d,"px")}:{maxWidth:"".concat(S.d,"px"),maxHeight:"".concat(S.d,"px"),width:n,height:r}},e.isTempUrl=function(e){return e.startsWith("blob")},e.handleImageClick=function(t){var n=e.state.imageUrl;e.isTempUrl(n)||e.setState({previewImg:t.target})},e}return Object(o.a)(n,[{key:"componentDidUpdate",value:function(){var e=this,t=this.props.image.url,n=this.state.imageUrl;t!==n&&Object(Q.loadImage)(t).then((function(){e.setState({imageUrl:t}),URL.revokeObjectURL(n)}))}},{key:"render",value:function(){var e=this,t=this.state,n=t.imageUrl,r=t.previewImg;return Object(s.c)("div",{children:[Object(s.b)("img",{className:b()("ImageMessage",{"ImageMessage--temp":this.isTempUrl(n)}),src:Object(Q.imgUrl)(n,"hd"),onClick:this.handleImageClick,style:this.getImageStyle()}),r&&Object(s.b)(K.a,{className:"ImageMessage-ImageView",img:r,onClose:function(){return e.setState({previewImg:null})}})]})}}]),n}(l.Component);function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}G.propTypes={image:p.a.shape({width:p.a.number,height:p.a.number,url:p.a.string})};var Z=function(e){Object(a.a)(n,e);var t=Y(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props.sticker.url;return Object(s.b)("img",{className:"StickerMessage",src:Object(Q.imgUrl)(e,"xl")})}}]),n}(l.Component);Z.propTypes={sticker:p.a.shape({id:p.a.string,url:p.a.string})};var X=n(7),J=n(942),$=n(232),ee=n(865),te=function(e){var t=e.result,n=e.isInMessage,r=e.onClick,o=t.name,a=t.coverPath,i=void 0===a?"https://i1.wp.com/pic4.zhimg.com/80/v2-231f5c4e7db8b6c08493a220be85705e_hd.png?ssl=1":a,c=t.className,s=void 0===c?"":c,l=t.intro;return u.a.createElement("div",{className:b()("KfeCollection-MessageEventCard",s,{"KfeCollection-MessageEventCard--InMessage":n}),onClick:r},u.a.createElement("img",{src:i,className:"KfeCollection-MessageEventCard-cover"}),u.a.createElement("div",{className:"KfeCollection-MessageEventCard-content"},u.a.createElement("div",{className:"KfeCollection-MessageEventCard-title"},o),u.a.createElement("div",{className:"KfeCollection-MessageEventCard-text"},l)))},ne=function(e){var t=e.result,n=e.onClick,r=e.isInMessage,o=void 0!==r&&r,a=e.hasClickZA,i=void 0===a||a,c=t.token,s=t.id;return u.a.createElement($.b,{block:"EcomMessageEventCard",content:{type:ee.e.event,id:s}},u.a.createElement($.e,{shouldTrackClick:i,zaType:"Card",zaAction:"Unknown",zaText:"留资卡片",zaEventType:"Unknown",onClick:function(e){i&&V.a.trackEvent(e.target,{id:o?9970:10048,action:"Click",name:"留资卡片"}),n(c)}},u.a.createElement(J.a,{options:[{},o?{card:{content:{id:String(s)}}}:{},{id:o?9968:10046,name:"留资卡片"}]},u.a.createElement(te,{result:t,isInMessage:o}))))};ne.propTypes={className:p.a.string,result:p.a.object.isRequired,extra:p.a.shape({ua:p.a.object,theme:p.a.string}).isRequired};var re=ne,oe=n(55),ae=n.n(oe),ie=n(128),ce=n(588);function se(){return(se=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var ue,de=[].concat(function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t1024*Je.R*1024)return n("请上传小于 ".concat(Je.R,"M 的图片。"),"red"),!1},e.sendImage=function(t){var n=t.file;(0,e.props.handleSendImage)(n)},e}return Object(o.a)(n,[{key:"render",value:function(){var e=this,t=this.props.className;return Object(s.b)($e.a,{accept:"image/png,image/jpeg",onRef:function(t){e.uploadInput=t},customUpload:this.sendImage,beforeUpload:this.checkSize,multiple:!0,children:Object(s.b)(et.a,{className:t})})}}]),n}(l.Component);nt.propTypes={senderId:p.a.string,className:p.a.string,handleSendImage:p.a.func};var rt=Object(d.connect)(null,{showNotification:Ae.h})(nt),ot=n(1381),at=n(1103),it=n(1116);function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var st=function(e){Object(a.a)(n,e);var t=ct(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i0&&t<=6e4&&(Object(mt.a)(null,{id:9980,action:"StatusReport"}),null==r||r())}));return Object(l.useEffect)((function(){if(n){var e=Date.now();s(e)}}),[s,n]),Object(k.i)(r,6e4),null};_t.propTypes={endSignal:p.a.bool};var Mt=_t;function Lt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var Pt=function(e){Object(a.a)(n,e);var t=Lt(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i1024*Je.R*1024)||(n("请上传小于 ".concat(Je.R,"M 的图片。"),"red"),!1)},e.handleKeyDown=function(t){var n=e.props,r=n.inputMessage,o=n.senderId,a=n.inputValue;13===t.keyCode&&(t.ctrlKey||t.metaKey)?r({senderId:o,inputValue:"".concat(a,"\n")}):13!==t.keyCode||t.shiftKey||e.handleSendTextMessage(t)},e.handleSendImage=function(t){var n;if(t&&e.checkSize(t)){var r=e.props,o=r.uploadImage,a=r.sendMessage,i=r.senderId,c=r.addTempImageMessage,s=r.setImageSendFailure,l=Ye()("TempImage_");e.handleSetFirsetInteractive(),Object(Xe.a)(t).then((function(e){var n=URL.createObjectURL(e);Object(Q.loadImage)(n).then((function(r){var u=r.height,d=r.width;c(i,n,l,u,d),o(e).then((function(e){return a({contentType:S.a.image,receiverId:i,data:{image:{height:e.payload.dataRawheight,width:e.payload.dataRawwidth,url:e.payload.src}},tempMessageId:l})})).catch((function(){s({tempMessageId:l,receiverId:i,file:t})}))}))})),null===(n=e.inputRef.current)||void 0===n||n.focus()}},e.handleSendEmoticon=function(t){var n,r=t.id,o=t.dynamicImageUrl,a=t.staticImageUrl,i=t.title,c=e.props,s=c.senderId,l=c.sendMessage;e.handleSetFirsetInteractive(),l({contentType:"sticker",receiverId:s,data:{sticker:{sticker_id:r,url:o||a,title:i}}}),V.a.trackEvent(null,{id:3640,action:"Click",name:i}),null===(n=e.inputRef.current)||void 0===n||n.focus()},e.handleSendTextMessage=function(t){var n=e.props,r=n.senderId,o=n.sendMessage,a=n.inputValue,i=n.location.query,c=i.source_type,s=i.source_id;a.length>1e4?M.a.alert("发送文字不得超过 1 万字,请重新编辑后再次发送",{title:"发送失败"}):a.trim()&&(e.handleSetFirsetInteractive(),t.preventDefault(),o({contentType:S.a.text,receiverId:r,data:{text:a},sourceType:c,sourceId:s}),V.a.trackEvent(null,{id:5309,action:"Click"}))},e.insertEmoji=function(t){var n,r=e.props,o=r.inputMessage,a=r.senderId,i=r.inputValue,c=e.state.cursorPosition,s=[i.slice(0,c),t,i.slice(c)].join("");e.setState({cursorPosition:c+t.length}),o({senderId:a,inputValue:s}),V.a.trackEvent(null,{id:3641,action:"Click",name:t.slice(1,t.length-1)}),null===(n=e.inputRef.current)||void 0===n||n.focus()},e.handleBlur=function(t){e.setState({cursorPosition:t.target.selectionStart})},e.handleInputMessage=function(t){var n=e.props;(0,n.inputMessage)({senderId:n.senderId,inputValue:t.target.value})},e.handleInputRef=function(t){e.inputRef.current=t},e}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.inputRef.current&&(this.inputRef.current.focus(),this.inputRef.current.addEventListener("keydown",this.handleKeyDown))}},{key:"componentWillUnmount",value:function(){this.inputRef.current&&this.inputRef.current.removeEventListener("keydown",this.handleKeyDown)}},{key:"render",value:function(){var e=this.props,t=e.inputValue,n=e.senderId,r=e.sender;return(null==r?void 0:r.isForbidden)?Object(s.b)("div",{className:"InputBox",css:{justifyContent:"flex-end"},children:Object(s.b)("div",{className:"InputBox-footer",children:Object(s.c)("div",{className:"InputBox-footerDesc",css:{textAlign:"center",paddingRight:0},children:["要反馈",Object(s.b)(We.Link,{to:"/messages/3d198a56310c02c4a83efb9f4a4c027e",css:function(e){return{color:e.colors.GBK06A,fontWeight:"bold",paddingLeft:"4px"}},children:"@知乎小管家"})]})})}):Object(s.c)("div",{className:"InputBox",children:[Object(s.b)(Mt,{endSignal:this.state.firstInteractive}),Object(s.b)(Nt,{senderId:n,insertEmoji:this.insertEmoji,handleSendImage:this.handleSendImage,handleSendEmoticon:this.handleSendEmoticon,onHandleFirstInterActive:this.handleSetFirsetInteractive}),Object(s.b)(Ze.a,{multiline:!0,spread:!0,value:t,className:"InputBox-input",onRef:this.handleInputRef,onChange:this.handleInputMessage,onBlur:this.handleBlur}),Object(s.c)("div",{className:"InputBox-footer",children:[Object(s.b)("div",{className:"InputBox-footerDesc",children:"按 Enter 键发送"}),Object(s.b)(w.c,{preset:"primary",color:"blue",className:"InputBox-sendBtn",onClick:this.handleSendTextMessage,disabled:!t.trim(),children:"发送"})]})]})}}]),n}(l.Component);var Bt=Object(m.compose)(We.withRouter,Object(d.connect)((function(e,t){var n=t.senderId,r=(e.chat.chats[n]||{}).inputValue;return{inputValue:void 0===r?"":r}}),{sendMessage:y.p,inputMessage:y.m,uploadImage:L.b,addTempImageMessage:y.b,setImageSendFailure:y.q,showNotification:Ae.h}))(Pt),zt=n(783);function Dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var Ft=function(e){Object(a.a)(n,e);var t=Dt(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i0&&"、",Object(l.b)(C.a,{noBadge:!0,user:e,children:e.name},t)]},t)})),i>0&&n-i>0&&"等",o?Object(l.c)(j.c,{preset:"plain",onClick:a,children:[c,r]}):c+r]})};k.propTypes={voteupCount:v.a.number.isRequired,upvotedFollowees:v.a.array.isRequired,actionText:v.a.string.isRequired,canClick:v.a.bool,onClick:v.a.func},k.defaultProps={voteupCount:0,actionText:"赞了",upvotedFollowees:[]};var x=k,S=n(1136);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var R=function(e){Object(a.a)(n,e);var t=E(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;im?pl.bottom&&e.top-n.height>l.top&&(f=ie),c===ie&&e.bottom+n.heightC?Ol.right&&e.left-n.width>l.left&&(f="left"),"left"===c&&e.right+n.width0&&void 0!==arguments[0]?arguments[0]:{},l=arguments.length>1?arguments[1]:void 0,u=s.getElement,d=s.padding,f=void 0===d?0:d,p=s.getBoundaryInfo;if("object"==typeof f&&(o=f.top||0,a=f.bottom||0,i=f.left||0,c=f.right||0),p)return p();var h={};u?h=u():l&&(h=l);var b=h.getBoundingClientRect(),m=b.top,v=b.right,g=b.bottom,y=b.left;return{top:m+(null!==(e=o)&&void 0!==e?e:f),right:v-(null!==(t=c)&&void 0!==t?t:f),bottom:g-(null!==(n=a)&&void 0!==n?n:f),left:y+(null!==(r=i)&&void 0!==r?r:f)}}(a,l),i.getBoundingClientRect(),r);return o||(u.targetContainerStyle.left+=window.pageXOffset,u.targetContainerStyle.top+=window.pageYOffset),u}}({target:i,container:s,placement:w,fixed:r,boundary:l,element:I.current,customPosition:m});if(e){var t=e.placement,n=e.targetContainerStyle,o=e.arrowStyle;C(t),E(n),N(o)}}));Object(c.useEffect)((function(){t&&L()}),[t]),Object(c.useLayoutEffect)((function(){if(d)return window.addEventListener("resize",L),function(){window.removeEventListener("resize",L)}}),[]);var B=Object(D.c)((function(e){var n;t&&(!document.body.contains(e.target)||(null==I||null===(n=I.current)||void 0===n?void 0:n.contains(e.target))||(null==i?void 0:i.contains(e.target))||v&&v())}));Object(c.useEffect)((function(){return a&&(M.Mobile?document.addEventListener("touchstart",B):document.addEventListener("click",B)),a&&function(){M.Mobile?document.removeEventListener("touchstart",B):document.removeEventListener("click",B)}}),[a,M,B]);var z=Object(D.c)((function(){C(u),g()})),F=Object(c.useCallback)((function(e){var t=e.transitionStyles,o=e.springStyles,a=e.item;return Object(P.g)(me,{key:"popover",ref:I,withArrow:n,arrowStyle:A,placement:w,fixed:r,style:Object.assign({},S,t,o,"function"==typeof f?f(w):f,p&&{backgroundColor:p}),onMounted:L},a)}),[n,A,w,r,S,f,p,L]);return Object(P.g)(ge,{renderChildren:F,transitionProps:h,springProps:b,onAfterEnter:L,onAfterLeave:z},t&&y)};je.propTypes={isOpen:$.a.bool,arrowed:$.a.bool,fixed:$.a.bool,globalClose:$.a.bool,placement:$.a.oneOf(Object.values(ce)),listenResize:$.a.bool,container:$.a.object,boundary:$.a.shape({getElement:$.a.func,padding:$.a.oneOfType([$.a.number,$.a.object]),getBoundaryInfo:$.a.func}),transitionProps:$.a.shape({from:$.a.object.isRequired,enter:$.a.object.isRequired,leave:$.a.object.isRequired,config:$.a.oneOfType([$.a.object,$.a.func])}),springProps:$.a.shape({from:$.a.object.isRequired,enter:$.a.object.isRequired,leave:$.a.object.isRequired}),customStyle:$.a.oneOfType([$.a.object,$.a.func]),backgroundColor:$.a.string,customPosition:$.a.func,onClose:$.a.func,onAfterLeave:$.a.func},je.defaultProps={isOpen:!1,arrowed:!0,fixed:!1,globalClose:!1,placement:"top",listenResize:!0,transitionProps:{from:{transform:"translateY(10px)",p:1},enter:{transform:"translateY(0px)",p:0},leave:{transform:"translateY(0px)",p:2},config:function(e){return e?{tension:380,friction:20}:{duration:300}}},springProps:Oe,onClose:$.a.func,onAfterLeave:te.a};var we=je,Ce={GOLDEN:{bg:"GYL02A",color:"GYL02A",colorNoAlpha:!0},BLUE:{bg:"GBL01A",color:"GBL07A"},PURPLE:{bg:"GRD07A",color:"GRD07A"},GREY:{bg:"GBK10A",color:"GBK06A",bgNoAlpha:!0,colorNoAlpha:!0}},ke=function(e){var t=e.bg,n=e.color,r=e.bgNoAlpha,o=e.colorNoAlpha,a=Object(I.f)(),i=a.colors,c=a.colorMod;return{bg:r?i[t]:c(i[t]).alpha(.08),color:o?i[n]:c(i[n]).alpha(.72)}};var xe={name:"2q0wp1-Label",styles:"flex:0 0 auto;;label:Label;"},Se={name:"2q0wp1-Label",styles:"flex:0 0 auto;;label:Label;"},Ee={name:"18mqqn8-Label",styles:"flex:0 0 auto;cursor:pointer;;label:Label;"},Re={name:"zzd7cz-Label",styles:"margin:0 -4px;flex:0 0 auto;;label:Label;"},Te=s.a.forwardRef((function(e,t){var n=e.color,r=void 0===n?Ce.BLUE:n,o=e.iconUrl,a=e.icon,c=e.name,s=e.subText,p=e.linkText,h=e.link,b=e.expandable,m=e.isExpanded,v=e.showDeleteButton,g=e.onDelete,y=e.onClick,O=e.style,j=e.css,w=i()(e,["color","iconUrl","icon","name","subText","linkText","link","expandable","isExpanded","showDeleteButton","onDelete","onClick","style","css"]),C=Object(_.b)().Mobile,k=Object(I.f)().fontWeights,x=ke(r),S=x.bg,E=x.color,R=h&&!b?M.b:"div",T=null,B=null;return v?B=l.a:b?T=m?u.a:d.a:h&&(T=f.a),Object(P.g)(R,Object.assign({ref:t,css:Object(A.a)(Object.assign({flex:"0 1 auto",display:"flex",alignItems:"center",justifyContent:"flex-start",background:S,padding:"0 8px",height:C?28:30,borderRadius:C?14:15,textDecoration:"none",fontSize:C?13:14,lineHeight:C?"16px":"18px",color:E,overflow:"hidden"},j),";label:Label;")},h&&{href:h},{style:Object.assign({cursor:T?"pointer":"default"},O),onClick:y},w),o?Object(P.g)("img",{src:Object(L.imgUrl)(o,"m"),height:C?16:19,width:C?16:19,alt:"",css:xe}):Boolean(a)&&Object(P.g)(a,{fill:E,size:C?17:20,css:Se}),Object(P.g)(N.Flex,{overflow:"hidden",flex:"0 1 auto",mx:"4px"},Object(P.g)(N.Text,{flexShrink:0,fontWeight:k.bold,mt:C?"1px":0},c)),Boolean(s||p)&&Object(P.g)(N.Text,{flex:"0 0 auto",display:"flex",alignItems:"center",mt:C?"1px":0,mr:"4px"},s||p),Boolean(B)&&Object(P.g)(B,{fill:E,size:18,onClick:g,css:Ee}),Boolean(T)&&Object(P.g)(T,{fill:E,size:C?23:26,css:Re}))}));Te.displayName="Label";var Ae={name:"134vuwg-text",styles:"margin-left:4px;text-decoration:none;color:inherit;;label:text;"},Ne=function(e){var t=e.inviter,n=i()(e,["inviter"]),r=t.name,o=t.urlToken,a=Object(P.g)(s.a.Fragment,null,"谢邀",Object(P.g)("a",{"data-za-detail-view-id":8126,href:"https://www.zhihu.com/people/".concat(o),css:Ae},"@".concat(r)));return Object(P.g)(Te,Object.assign({icon:p.a,name:a},n))};var _e=function(e){var t=e.data,n=i()(e,["data"]),r=t.url,o=t.title;return Object(P.g)(Te,Object.assign({},n,{name:"知乎蓝宝书收录",icon:v,subText:o,link:r}))};function Ie(e){var t=e.data,n=i()(e,["data"]),r=t.name,o=t.iconUrl,a=t.linkText,c=t.link;return Object(P.g)(Te,Object.assign({},n,{color:Ce.PURPLE,name:r,subText:a,iconUrl:o,icon:g.a,link:c}))}var Me={answer:"品牌特邀",article:"特邀文章"};function Le(e){var t=e.data,n=e.type,r=void 0===n?"answer":n,o=Boolean(null==t?void 0:t.subText),a=t.name,i=void 0===a?"谢邀":a,c=t.iconUrl;return Object(P.g)(Te,{iconUrl:c,icon:h.a,name:o?i:Me[r],subText:(null==t?void 0:t.subText)||"本文由品牌邀请撰写"})}var Pe=["relevant","editor_recommendation","zhizhi_plan_rumour_deny","zhizhi_plan_recommend","zhizhi_plan_edu_recommend","zhizhi_plan_baby_recommend","zhizhi_plan_acg_recommend","zhizhi_plan_outing_recommend","zhizhi_plan","online_roundtable","roundtable","special","raise_hand","weekly","daily","professional"],Be={online_roundtable:y.a,relevant:O.a,editor_recommendation:j.a,roundtable:y.a,special:w.a,raise_hand:w.a,weekly:C.a,daily:k.a,professional:x.a,zhizhi_plan_recommend:S.a,zhizhi_plan_edu_recommend:S.a,zhizhi_plan_baby_recommend:S.a,zhizhi_plan_acg_recommend:S.a,zhizhi_plan_outing_recommend:S.a,zhizhi_plan_rumour_deny:E.a,zhizhi_plan:S.a},ze={online_roundtable:"圆桌收录",relevant:"亲自答",editor_recommendation:"编辑推荐",roundtable:"圆桌收录",special:"专题收录",raise_hand:"举手行动",weekly:"周刊收录",daily:"日报收录",professional:"专业",zhizhi_plan_recommend:"致知计划",zhizhi_plan_edu_recommend:"致知计划",zhizhi_plan_baby_recommend:"致知计划",zhizhi_plan_acg_recommend:"致知计划",zhizhi_plan_outing_recommend:"致知计划",zhizhi_plan_rumour_deny:"专业辟谣",zhizhi_plan:"致知计划",science_seeking_truth_recommend:"科学求真"},De=Object.assign({},ze,{weekly:"知乎周刊收录",daily:"知乎日报收录"}),Fe={relevant:"此回答由问题相关方亲自撰写",professional:"已有 {} 人赠与了专业徽章"},Ue={online_roundtable:"圆桌",relevant:"亲自答",editor_recommendation:"编辑推荐",roundtable:"圆桌",special:"专题收录",raise_hand:"举手行动",weekly:"周刊收录",daily:"日报收录",professional:"内容专业",zhizhi_plan_recommend:"致知计划",zhizhi_plan_edu_recommend:"致知计划之教育季",zhizhi_plan_baby_recommend:"致知计划之母婴季",zhizhi_plan_acg_recommend:"致知计划之动漫游戏季",zhizhi_plan_outing_recommend:"致知计划之未来出行季",zhizhi_plan_rumour_deny:"辟谣标识"},Ve=s.a.forwardRef((function(e,t){var n=e.children,r=e.placement,a=void 0===r?"bottom":r,l=e.onClick,u=e.onPopoverClosed,d=i()(e,["children","placement","onClick","onPopoverClosed"]),f=Object(I.f)(),p=Object(c.useRef)(),h=Object(c.useState)(!1),b=o()(h,2),m=b[0],v=b[1],g=Object(c.useRef)(),y=Object(_.b)().Mobile,O=Boolean(n),j=Object(D.c)((function(e){var n,r;p.current=(r=e,(n=t)?("function"==typeof n?n(r):n.current=r,r):r)})),w=Object(D.c)((function(e){l&&l(e),O&&v(!m)})),C=Object(D.c)((function(){g.current&&clearTimeout(g.current),O&&!m&&v(!0)})),k=Object(D.c)((function(){g.current=setTimeout((function(){v(!1)}),100)}));return Object(P.g)(s.a.Fragment,null,Object(P.g)(Te,Object.assign({},d,{ref:j,expandable:O,isExpanded:m,onClick:w},!y&&{onMouseOver:C,onMouseLeave:k})),O&&Object(P.g)(we,{isOpen:m,arrowed:!0,globalClose:!0,listenResize:!0,target:p.current,placement:a,boundary:{padding:16},customStyle:{borderRadius:"8px",boxShadow:"0 -3px 10px 0 rgba(0, 0, 0, 0.1)"},backgroundColor:f.colors.GBK99C,onClose:k,onAfterLeave:u},Object(P.g)("div",{onMouseOver:C,onMouseLeave:k},n)))}));Ve.displayName="ExpandableLabel";var qe=function(e){return{icon:Be[e],title:De[e],shortTitle:ze[e],description:Fe[e],zaName:Ue[e]}},He=function(e,t){return e.includedInfos?e.includedInfos.find((function(e){return e.type===t})):null},Ke=function(e){var t=e.data,n=e.onLinkClick,r=t.type,o=t.icon,a=t.title,i=t.description,s=t.zaName,l=t.link,u=Object(_.b)().Mobile,d=Object(I.f)(),f=Object(c.useRef)(),p=Object(D.c)((function(e){B.a.trackEvent(f.current,{id:3771,name:"多个"},{button:{text:s}}),l&&n&&n(e,l,r)}));return Object(P.g)(Te,Object.assign({ref:f,color:Ce.GOLDEN,icon:o,name:a},l&&{zaText:!0,shouldTrackShow:!0,zaBlock:r},{subText:i,link:l,onClick:p,css:Object(A.a)({height:u?34:36,borderRadius:0,background:"none","&:hover":{background:l?d.colors.GBK10A:"none"}},";label:ContentItem;")}))},Qe=function(e){var t=e.data,n=e.onLinkClick,r=Object(_.b)().Mobile;return Object(P.g)(N.Box,{py:"8px",maxWidth:r?"calc(100vw - 34px)":"400px"},t.map((function(e){return Object(P.g)(Ke,{key:e.type,data:e,onLinkClick:n})})))},We=function(e){return Object(c.useMemo)((function(){var t=[];if(Pe.forEach((function(n){var r=function(e,t){switch(t){case"online_roundtable":return e.onlineRoundtable?Object.assign({},qe(t),{description:e.onlineRoundtable.name,link:"https://www.zhihu.com/roundtable/".concat(e.onlineRoundtable.urlToken)}):null;case"relevant":return e.relevantInfo&&e.relevantInfo.isRelevant?qe(t):null;case"professional":return e.recognitionInfo&&e.recognitionInfo.recognizedCount?Object.assign({},qe(t),{description:Fe[t].replace("{}",String(e.recognitionInfo.recognizedCount)),link:"#!",members:e.recognitionInfo.latestRecognizers}):null;case"zhizhi_plan":var n=e.includedInfos?e.includedInfos.find((function(e){return e.commonType===t&&!Pe.includes(e.type)})):null;return n?{icon:Be[n.type]||Be[t],title:n.name||De[n.type]||De[t],shortTitle:n.name||ze[n.type]||ze[t],description:n.title,link:n.url,zaName:Ue[n.type]||n.type}:null;case"special":case"raise_hand":var r=He(e,t);if(!r)return null;var o=qe(t);return Object.assign({},o,{title:r.subtitle||o.title,shortTitle:r.subtitle||o.shortTitle,description:r.title,link:r.url});default:var a=He(e,t);return a?Object.assign({},qe(t),{description:a.title,link:a.url}):null}}(e,n);r&&t.push(Object.assign({type:n},r))})),!t.length)return null;var n=t.length>1&&"online_roundtable"!==t[0].type,r=t[0];return n&&(r.meta="relevant"===r.type?"及 ".concat(t.length-1," 项收录"):"等 ".concat(t.length," 项收录")),{items:t,label:r,expandable:n}}),[e])},Ge=function(e){var t=e.placement,n=void 0===t?"bottom":t,r=e.data,o=e.onExpand,a=e.onLinkClick,i=We(r),s=Object(c.useRef)(),l=Object(c.useRef)(!1);if(!i)return null;var u=i.label,d=i.items,f=i.expandable,p=u.type,h=u.icon,b=u.title,m=u.shortTitle,v=u.meta,g=u.description,y=u.link,O=u.zaName,j=Boolean(y&&!f),w=j?Ve:z.e;Object(c.useLayoutEffect)((function(){B.a.setModule(s.current,{module:"Content",module_name:O}),Object(F.onViewedOnce)(s.current,(function(){B.a.trackCardShow(s.current,{id:3769,name:f?"多个":"一个"})}))}),[f,O]);var C=Object(D.c)((function(){l.current=!1})),k=Object(D.c)((function(e){f&&!l.current&&(l.current=!l.current,o&&o(i)),!f&&j&&(B.a.trackEvent(s.current,{id:3771,name:"一个"},{button:{text:O}}),a&&a(e,y,p))})),x={as:Ve,zaType:"Block"};return j?x={zaText:!0,zaBlock:p,shouldTrackShow:!0}:f&&(x=Object.assign({},x,{zaText:!0,onPopoverClosed:C})),Object(P.g)(w,Object.assign({},x,{ref:s,color:Ce.GOLDEN,icon:h,name:v&&m||b,subText:v||g,link:y,placement:n,onClick:k}),f&&Object(P.g)(Qe,{data:d,onLinkClick:a}))},Ye=function(){return Object(P.g)(Te,{color:Ce.GOLDEN,icon:O.a,name:"亲自答",subText:"此回答由问题相关方亲自撰写"})},Ze=function(e){var t=e.color,n=void 0===t?Ce.GREY:t,r=e.icon,o=e.name,a=e.subText,i=e.moreLink,c=e.renderMoreIcon,l=e.description,u=Object(_.b)().Mobile,d=ke(n).color,f=null;return f=i&&c?Object(P.g)(s.a.Fragment,null,a,Object(P.g)(M.b,{href:i,css:Object(A.a)({marginLeft:a?4:0,textDecoration:"none",color:"inherit"},";label:PopoverContent;")},c)):a,Object(P.g)(N.Box,{py:"8px",maxWidth:u?"calc(100vw - 34px)":"400px"},Object(P.g)(Te,{color:n,icon:r,name:o,subText:f,css:Object(A.a)({height:u?32:36,borderRadius:0,background:"none"},";label:PopoverContent;")}),Boolean(l)&&Object(P.g)(N.Text,{lineHeight:u?"16px":"18px",fontSize:u?"13px":"14px",color:d,mx:"12px",mb:"8px"},l))},Xe=function(e){var t=e.disclaimerInfo,n=t.excerpt,r=t.description,o=t.subDescription,a=n?"创作声明":r,i=n&&"内容".concat(n);return Object(P.g)(Ve,{name:a,subText:i},Object(P.g)(Ze,{color:Ce.BLUE,name:a,subText:i,description:o}))},Je=function(e){var t=e.annotationDetail;if(!t)return null;var n=t.detail,r=t.member,o=t.reasonDescription||"该内容已被标记",a="strong"===t.type&&R.a,i=r?"".concat(r.name,":"):"";return Object(P.g)(Ve,{color:Ce.GREY,icon:a,name:o},Object(P.g)(Ze,{icon:a,name:o,description:(n||i)&&Object(P.g)("span",{dangerouslySetInnerHTML:{__html:"".concat(i).concat(n||"未填写原因")}})}))};var $e={name:"14z35ax-HelpIcon",styles:"vertical-align:bottom;;label:HelpIcon;"},et=function(e){var t=e.fill,n=Object(I.f)().colors.GBL05A;return Object(P.g)(T.a,{fill:t||n,size:18,css:$e})},tt=function(e){var t=e.collapseReason;return Object(P.g)(Ve,{color:Ce.GREY,name:"该回答已被折叠"},Object(P.g)(Ze,{name:"该回答已被折叠",renderMoreIcon:Object(P.g)(et,null),moreLink:"/question/20120168/answer/35704072",description:"折叠原因:".concat(t)}))},nt={color:"inherit",textDecoration:"underline"},rt=function(e){var t=e.abnormalDetail,n=void 0===t?{description:"回答建议修改",reason:""}:t,r=n.description,o=n.reasonId,a=n.reason,i=[10015,30005].includes(o)?Object(P.g)(s.a.Fragment,null,"不规范转载",Object(P.g)(M.b,{href:"https://www.zhihu.com/question/20258015",css:nt,onClick:function(e){return e.stopPropagation()}},a)):a,c=10027===o?Object(P.g)(s.a.Fragment,null,"作者修改内容或举证后,回答会重新展示。如果一周内未得到有效修改,回答会自动折叠。",Object(P.g)("br",null),"知乎严格按照公开的流程处理各类投诉,不收任何费用也不与任何中介机构合作。",Object(P.g)(M.b,{href:"https://www.zhihu.com/term/zhihu-terms#sec-report",css:nt},"投诉流程")):"作者修改内容通过后,回答会重新显示。如果一周内未得到有效修改,回答会自动折叠。";return Object(P.g)(Ve,{color:Ce.GREY,name:r,subText:i},Object(P.g)(Ze,{name:r,renderMoreIcon:Object(P.g)(et,null),moreLink:"https://www.zhihu.com/question/24752645",description:c}))};var ot={name:"pf9kc0-Labels",styles:"& > div, & > a{margin-right:8px;margin-bottom:8px;};label:Labels;"},at=function(e){var t=e.answerCollapsed,n=e.answerAbnormal,r=e.commercial,o=e.thanksForInviting,a=e.positive,c=e.bluebook,s=e.annotation,l=e.disclaimer,u=e.adPromotion,d=e.campaign,f=e.limit,p=void 0===f?2:f,h=i()(e,["answerCollapsed","answerAbnormal","commercial","thanksForInviting","positive","bluebook","annotation","disclaimer","adPromotion","campaign","limit"]);if(!(t||n||r||o||a||c||s||l||u||d))return null;var b=[t||n,r||o||u||c,a,s||l,d].filter(Boolean).slice(0,p);return Object(P.g)(N.Flex,Object.assign({flexDirection:"row",flexWrap:"wrap",pt:"8px",css:ot},h),b.map((function(e,t){return Object(P.g)("div",{key:t},e)})))};at.propTypes={answerCollapsed:$.a.node,answerAbnormal:$.a.node,commercial:$.a.node,thanksForInviting:$.a.node,bluebook:$.a.node,positive:$.a.node,annotation:$.a.node,disclaimer:$.a.node,adPromotion:$.a.node,campaign:$.a.node};var it=s.a.memo(at)},,function(e,t,n){"use strict";var r=n(2),o=n(11),a=n.n(o),i=n(1388);t.a=function(e){var t=e.className;return Object(r.c)("div",{className:a()("Reviewing",t),children:[Object(r.c)("div",{className:"Reviewing-top",children:[Object(r.b)(i.a,{size:16}),Object(r.b)("span",{className:"Reviewing-tip",children:"内容审核中"})]}),Object(r.b)("div",{className:"Reviewing-text",children:"内容将在审核通过后自动发布"})]})}},,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M5 14a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm7 0a2 2 0 1 1 0-4 2 2 0 0 1 0 4z",fillRule:"evenodd"}))};i.defaultProps={name:"Dots"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm-.034 2.966c1.949 0 1.485 1.807 1.485 2.211 0 .115-.785 7.79-.785 7.79h-1.4s-.785-7.623-.785-7.738c0-.416-.463-2.263 1.485-2.263zm1.057 13.522c-.294.287-.647.43-1.056.43-.41 0-.762-.142-1.058-.43a1.429 1.429 0 0 1-.443-1.07c0-.41.148-.762.443-1.057a1.443 1.443 0 0 1 1.058-.442c.409 0 .762.143 1.056.43.296.287.443.644.443 1.07 0 .427-.147.783-.443 1.07z",fillRule:"evenodd"}))};i.defaultProps={name:"Alert"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M6 3.956v16.088C6 21.124 6.517 22 7.9 22c.326 0 .533-.087.896-.236L22 13.784c.571-.355 1.143-.87 1.143-1.784S22.57 10.571 22 10.216L8.796 2.236C8.433 2.087 8.226 2 7.9 2 6.514 2 6 2.876 6 3.956z"}))};i.defaultProps={name:"Play"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M12 11l-3.716 3.782a.758.758 0 0 1-1.064 0 .738.738 0 0 1 0-1.052l4.249-4.512a.758.758 0 0 1 1.064 0l4.246 4.512a.738.738 0 0 1 0 1.052.757.757 0 0 1-1.063 0L12.002 11z",fillRule:"evenodd"}))};i.defaultProps={name:"ArrowUp"},t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(33),o=n.n(r),a=n(1),i=n.n(a);function c(e){return i.a.createElement("svg",o()({viewBox:"0 0 24 19",width:"24",height:"18",fill:"#e6eaee"},e),i.a.createElement("path",{fillRule:"evenodd",d:"M12.8 2.5c4.4 0 9.4 15.6 9.4 16H0S2.8 6 6 6.4c1.2 0 1.8 5.8 1.8 5.8s2.5-9.5 5-9.8zm7.8 3c-2 0-3-1.2-3-2.7 0-1.6 1.5-2.8 3-2.8 1.6 0 2.8 1.2 2.8 2.8 0 1.5-1.2 2.7-2.8 2.7z"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r);function a(e){return o.a.createElement("svg",{width:"12",height:"10",viewBox:"0 0 12 10",style:e.style},o.a.createElement("mask",{id:"ViewIcon","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"12",height:"10"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 4.8C12 2.56 8.72727 0 6 0C3.27273 0 0 2.56 0 4.8C0 7.04 3.27273 9.6 6 9.6C8.72727 9.6 12 7.04 12 4.8ZM3.79994 4.8C3.79994 3.58497 4.78491 2.6 5.99994 2.6C7.21496 2.6 8.19994 3.58497 8.19994 4.8C8.19994 6.01502 7.21496 7 5.99994 7C4.78491 7 3.79994 6.01502 3.79994 4.8Z",fill:"black"})),o.a.createElement("g",{mask:"url(#ViewIcon)"},o.a.createElement("rect",{x:"-2",y:"-2.8",width:"16",height:"16",fill:"#8590A6"})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r);function a(e){return o.a.createElement("svg",{width:"9",height:"11",viewBox:"0 0 9 11",style:e.style},o.a.createElement("path",{d:"M0 1C0 0.447715 0.447715 0 1 0H8C8.55228 0 9 0.447715 9 1V9.13148C9 9.93018 8.10985 10.4066 7.4453 9.96353L5.0547 8.3698C4.7188 8.14587 4.2812 8.14587 3.9453 8.3698L1.5547 9.96353C0.890146 10.4066 0 9.93018 0 9.13148V1Z",fill:"#8590A6"}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),o=n.n(r);function a(e){return o.a.createElement("svg",{width:"10",height:"12",viewBox:"0 0 10 12",style:e.style},o.a.createElement("mask",{id:"UpdateTimeIcon","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"10",height:"12"},o.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.0456 3.17377C9.79834 2.8189 10.1837 1.94914 9.91402 1.14002C9.62296 0.266822 8.67913 -0.205091 7.80593 0.0859764L4.50803 1.18527C4.40079 1.21835 4.29816 1.26195 4.20137 1.31488C3.97216 1.43959 3.78091 1.6137 3.63673 1.81892C3.50452 2.00645 3.41003 2.22248 3.3643 2.45598C3.32608 2.64908 3.32175 2.85082 3.35567 3.0525C3.38728 3.24338 3.45134 3.42332 3.54198 3.58645C3.6623 3.80402 3.82732 3.98694 4.02117 4.1273C4.21884 4.27093 4.44931 4.37218 4.69922 4.4177C4.80621 4.43741 4.91575 4.44673 5.02636 4.44494C5.3467 4.45005 5.65899 4.5474 5.9257 4.7256C6.19977 4.90873 6.41338 5.16901 6.53952 5.47354L8.07925 4.83577L6.53952 5.47355C6.66566 5.77808 6.69866 6.11317 6.63436 6.43646L8.26893 6.7616L6.63436 6.43646C6.57005 6.75975 6.41132 7.05671 6.17825 7.28978C5.94517 7.52286 5.64821 7.68159 5.32492 7.7459L5.65006 9.38047L5.32492 7.7459C5.00164 7.8102 4.66654 7.7772 4.36201 7.65106L3.72423 9.19079L4.36201 7.65106C4.05748 7.52492 3.79719 7.3113 3.61406 7.03723C3.43093 6.76316 3.33319 6.44094 3.33319 6.11132C3.33319 5.19089 2.58703 4.44473 1.66659 4.44473C0.74616 4.44473 0 5.19089 0 6.11132C0 7.10019 0.293232 8.06684 0.842616 8.88906C1.392 9.71127 2.17286 10.3521 3.08645 10.7305C4.00004 11.1089 5.00533 11.208 5.97519 11.015C6.94506 10.8221 7.83593 10.3459 8.53517 9.64671C9.2344 8.94747 9.71058 8.0566 9.9035 7.08673C10.0964 6.11687 9.99741 5.11158 9.61899 4.19799C9.46794 3.83334 9.2751 3.48985 9.0456 3.17377Z",fill:"black"})),o.a.createElement("g",{mask:"url(#UpdateTimeIcon)"},o.a.createElement("rect",{x:"-3.88873",y:"-2.77719",width:"17.777",height:"17.777",fill:"#8590A6"})))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(212),o=n(56);function a(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()===a.getTime()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n.n(r),a=n(131),i=Object.assign;var c=function(e){return o.a.createElement(a.a,i({width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},e),o.a.createElement("path",{d:"M11.25 4a.25.25 0 00-.25.25V11H4.25a.25.25 0 00-.25.25v1.5c0 .138.112.25.25.25H11v6.75c0 .138.112.25.25.25h1.5a.25.25 0 00.25-.25V13h6.75a.25.25 0 00.25-.25v-1.5a.25.25 0 00-.25-.25H13V4.25a.25.25 0 00-.25-.25h-1.5z",clipRule:"evenodd"}))}},function(e,t,n){e.exports=n.p+"assets/liukanshan_coin.29bf8333.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2),o=n(90),a=n(78);function i(e){var t=Object(a.d)((function(){return n.e(10).then(n.bind(null,1474))}));return Object(r.b)(o.Box,{my:"14px",css:{minHeight:20},children:t?Object(r.b)(t,Object.assign({width:"70px",height:"20px",css:{display:"block"}},e)):null})}},,,function(e,t,n){"use strict";var r=n(2),o=n(11),a=n.n(o),i=n(90),c=n(1182),s=n(783),l=n(365),u=n(176),d=n(31),f=n(30),p=n(233),h=n.n(p),b=n(366),m=n(101),v=n(854);t.a=function(e){var t,n,o=e.question,p=e.question,g=p.id,y=p.title,O=p.answerCount,j=p.followerCount,w=p.updatedTime,C=p.created,k=e.headerInfo,x=e.showTime,S=e.extraFooterInfo,E=e.renderItem,R=e.enableIgnore,T=e.handleIgnoreQuestion,A=void 0===T?h.a:T,N=e.zaId,_=(N=void 0===N?{}:N).titleClick,I=N.writeAnswer,M=N.cardShow,L=N.ignoreQuestion,P=e.className,B=e.button,z=e.titleLink,D=e.zaContent;if(E)return E(o);var F="/question/".concat(g),U="https://www.zhihu.com/question/".concat(g),V=k?Object(r.c)(i.Flex,{mb:12,color:"GBL05A",alignItems:"center",css:{fontSize:"15px"},children:[Object(r.b)("img",{className:a()("QuestionItem-head--avatar",{"QuestionItem-head--avatarCircle":"circle"===(null===(t=k.avatar)||void 0===t?void 0:t.shape)}),src:null===(n=k.avatar)||void 0===n?void 0:n.url}),Object(r.b)("div",{className:"QuestionItem-head--reason",children:k.reason}),k.extra&&Object(r.b)("div",{className:"QuestionItem-head--extra",children:k.extra})]}):null,q=Object(r.b)("div",{className:"QuestionItem-title",children:Object(r.b)("a",Object.assign({href:z||F,target:"_blank",rel:"noopener noreferrer","data-za-detail-view-name":"Title"},_&&{"data-za-detail-view-id":_},{children:y}))});return Object(r.b)(b.a,{module:"QuestionItem",content:D||{type:"Question",token:String(g)},trackCardShow:Boolean(M),view:{id:M},children:Object(r.c)("div",{className:a()("QuestionItem",P),children:[V,Object(r.b)(v.e,{data:o,link:z||F,lastreadTouchable:!1,title:q,children:Object(r.c)(i.Flex,{mt:20,children:[B||Object(r.b)(m.a,{className:"QuestionItem-footer--writeAnswerButton",icon:c.a,label:"写回答",href:"".concat(U,"#write"),target:"_blank","data-za-not-track-link":!0,onClick:function(e){I&&f.a.trackEvent(e.target,{id:I,action:"OpenUrl"})}}),Object(r.b)(i.Box,{ml:16,children:Object(r.b)(v.d,{children:S||["".concat(Object(l.formatNumber)(O)," 回答"),"".concat(Object(l.formatNumber)(j)," 关注"),x&&"".concat(Object(u.toRelativeString)(w||C))]})})]})}),R&&Object(r.b)(d.c,{className:"QuestionItem-ignoreButton",preset:"plain","data-tooltip":"不感兴趣","data-tooltip-preset":"white","data-tooltip-classname":"QuestionItem-ignoreButtonTooltip",color:"GBL07A",icon:s.a,onClick:function(e){A(g),f.a.trackEvent(e.target,{id:L,action:"Click"})}})]})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(35),o=n(2),a=n(1386),i=n(1),c=n.n(i),s=n(131),l=Object.assign;var u=function(e){return c.a.createElement(s.a,l({width:"24",height:"14",viewBox:"0 0 24 14"},e),c.a.createElement("rect",{width:"24",height:"14",rx:"2"}),c.a.createElement("path",{fill:"#FFF",d:"M3.328 9.96h1.12V7.584c0-.68-.088-1.424-.144-2.064h.04l.6 1.272L6.656 9.96h1.2V4.04h-1.12V6.4c0 .672.088 1.456.152 2.072h-.04l-.592-1.28-1.72-3.152H3.328v5.92zm5.992 0h3.72v-.992h-2.536V7.384h2.08v-.992h-2.08V5.024h2.448V4.04H9.32v5.92zm5.48 0h1.448l.648-2.928c.096-.464.176-.92.256-1.368h.032c.072.448.16.904.256 1.368l.664 2.928h1.472l1.096-5.92h-1.128l-.464 2.888c-.088.616-.176 1.248-.264 1.888h-.04c-.128-.64-.248-1.28-.376-1.888l-.688-2.888h-1.008l-.688 2.888c-.128.616-.256 1.256-.376 1.888h-.032c-.088-.632-.184-1.264-.272-1.888l-.472-2.888h-1.208L14.8 9.96z"}))};function d(e){var t=e.isNewBefore,n=Object(r.a)(e,["isNewBefore"]);return t&&Object(a.a)(new Date,t)?Object(o.b)(u,Object.assign({css:{marginLeft:4},fill:"#0066FF",width:32,height:15},n)):null}},function(e,t,n){"use strict";var r=n(43),o=n(2),a=n(78),i=n(27),c=n(90),s=n(232),l=n(811),u=n(175),d=n(233),f=n.n(d),p=n(382),h=n(1060),b=n(0),m=n(1),v=n(132),g=n(138),y=n(783),O=n(916),j=function(e){var t=e.className,n=e.index,r=void 0===n?0:n,a=e.selected,i=e.onClick,l=e.onDelete,u=e.item,d=e.item,f=d.status,p=d.startTime,h=d.endTime,j=d.target,w=(j=void 0===j?{}:j).parentObject.title,C=0===f,k=Object(m.useMemo)((function(){return"".concat(Object(O.b)(p/1e3)," - ").concat(Object(O.b)(h/1e3))}),[p,h]),x=Object(o.c)(s.a,Object.assign({zaType:"Card",zaText:w,view:{elementLocation:{card:{index:r}}},as:c.Box,role:"button",className:t,width:"167px",height:"70px",color:"GBK03A",p:"8px",pb:"0",lineHeight:"normal"},C&&{onClick:i},{css:function(e){var t;return{border:"1px solid ".concat(a?"transparent":C?e.colorMod(e.colors.GBL01A).alpha(.08):e.colors.GBK09A),boxShadow:a?"inset 0 0 0 2px ".concat(e.colors.GBL01A):"none",borderRadius:"4px",":hover":(t={background:C?e.colorMod(e.colors.GBL01A).alpha(.08):e.colors.GBK10A},Object(b.a)(t,".".concat("ContributionItem-deleteButton"),{visibility:"visible"}),Object(b.a)(t,"cursor",C?"pointer":"not-allowed"),t)}},children:[Object(o.c)(c.Flex,Object.assign({},C&&{color:"GBL01A"},{fontSize:"11px",fontWeight:"600",alignItems:"center",justifyContent:"space-between",children:[Object(o.b)(c.Box,{children:k}),Object(o.b)(s.a,{zaBlock:"Delete",zaText:"删除投稿",zaType:"Button",as:c.Box,role:"button",className:"ContributionItem-deleteButton",onClick:function(e){e.stopPropagation(),null==l||l(u)},css:{cursor:"pointer",visibility:"hidden"},children:Object(o.b)(y.a,{size:12})})]})),Object(o.b)(c.Box,{mt:"4px",fontSize:"13px",css:[Object(v.d)(2),{wordBreak:"break-all"}],children:w})]}));return Object(o.b)(s.b,{block:"VideoAnswerItem",children:C?x:Object(o.b)(g.a,{toggler:x,placement:"top",arrowed:!0,toggleEvent:"hover",children:Object(o.b)(c.Box,{fontSize:"12px",p:"8px",children:"已投稿问题仅支持在回答详情页编辑"})})})},w=function(e){var t=e.className,n=e.onClick,a=e.totalCount,i=e.currentCount,u=Object(h.a)("zvideo_contribution_form:should_hide_new_tag"),d=Object(r.a)(u,2),f=d[0],p=d[1];return Object(o.c)(s.a,{zaType:"Button",zaAction:"",zaBlock:"AddVideoAnswer",zaText:"添加问题",as:c.Flex,className:t,role:"button",width:"167px",height:"70px",flexDirection:"column",color:"GBL01A",alignItems:"center",justifyContent:"center",onClick:function(e){f||p(!0),null==n||n(e)},css:function(e){return Object.assign({position:"relative",cursor:"pointer",borderRadius:"3px",border:"1px solid ".concat(e.colorMod(e.colors.GBL01A).alpha(.08)),":hover":{background:e.colorMod(e.colors.GBL01A).alpha(.08)},overflow:"hidden"},!f&&{"::after":{content:'"NEW"',position:"absolute",top:"0",right:"0",color:e.colors.GRD03A,fontSize:"8px",fontWeight:"600",width:"28px",height:"17px",lineHeight:"17px",textAlign:"center",background:e.colorMod(e.colors.GRD03A).alpha(.08),borderBottomLeftRadius:"3px"}})},children:[Object(o.b)(l.a,{size:12}),Object(o.b)(c.Box,{fontSize:"14px",fontWeight:"500",mt:"1px",children:i&&a?"继续添加 (".concat(i,"/").concat(a,")"):"添加问题"})]})};t.a=function(e){var t=e.zvideoId,n=e.showCreateButton,r=void 0!==n&&n,s=e.showSelect,l=void 0!==s&&s,d=e.onAdd,h=e.onSelect,b=Object(i.useDispatch)(),m=Object(p.o)(),v=Object(p.n)(t),g=Object(p.m)(t).answer,y=(g=void 0===g?{}:g).canContribute,O=void 0!==y&&y,C=g.totalCount,k=void 0===C?0:C,x=v.length,S=Object(a.c)((function(e){b(Object(p.k)(e.id)),b(Object(p.e)(e.id)),null==h||h(e)})),E=Object(a.c)((function(e){u.a.confirm(Object(o.b)(c.Box,{textAlign:"center",children:"已编辑的投稿内容不会被保存"}),{title:Object(o.b)(c.Box,{ml:"23px",children:"确定删除该视频投稿?"}),text:{ok:"确认删除",cancel:"继续编辑"}}).then((function(){if(e.status&&0!==e.status){var n=e.target.object.id;n&&b(Object(p.c)(t,e.id,n))}else b(Object(p.d)(t,e.id));b(Object(p.k)(null))}),f.a)}));return Object(o.c)(c.Flex,{flexWrap:"wrap",ml:"-8px",mt:"-12px",children:[v.map((function(e){return Object(o.b)(j,{selected:l&&(null==m?void 0:m.id)===e.id,onClick:function(){return S(e)},onDelete:function(){return E(e)},item:e,css:{marginLeft:"8px",marginTop:"12px"}},e.id)})),O&&x0&&void 0!==arguments[0]?arguments[0]:[],t=Object(c.useDispatch)(),n=Object(c.useSelector)((function(t){return i()(t.switches,e)}),c.shallowEqual);return Object(o.useEffect)((function(){t(Object(s.b)(e))}),[t].concat(Object(r.a)(e))),n}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n.n(r),a=n(131),i=Object.assign;var c=function(e){return o.a.createElement(a.a,i({width:"20",height:"20",viewBox:"0 0 20 20"},e),o.a.createElement("path",{d:"M8.524 14.597a1.374 1.374 0 01-.999.403c-.377 0-.737-.133-1.002-.406l-3.612-3.725a1.476 1.476 0 01.006-2.05 1.386 1.386 0 011.997.01l2.614 2.704 7.56-7.774a1.385 1.385 0 011.998 0 1.482 1.482 0 010 2.055l-8.562 8.783z",fillRule:"evenodd",clipRule:"evenodd"}))}},function(e,t,n){e.exports=n.p+"assets/liukanshan_paper.d98ba9b2.svg"},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(94),o=n.n(r);function a(e,t,n){var r=!1,a=o()((function(){r=!1,e.apply(void 0,arguments)}),t,n);return Object.assign((function(){r=!0,a.apply(void 0,arguments)}),{cancel:a.cancel,flush:a.flush,pending:function(){return r}})}},function(e,t,n){"use strict";var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(1),d=n(19),f=n(3),p=n.n(f),h=n(27),b=n(83),m=n.n(b),v=n(25),g=n(240),y=n(68),O=n(24),j=n(990);function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(s.a)(e);if(t){var o=Object(s.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(c.a)(this,n)}}var C=function(e,t){var n=e.entities.questions[t.answer.question.id];return n&&n.voteDownReason},k={loadSwitches:g.b,showNotification:v.h,updateAnswerVote:y.K,getVoteDownReason:y.k,selectVoteDownReason:y.C,setOpposeRightStatus:g.e},x=function(e){Object(i.a)(n,e);var t=w(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i0&&g.a.createElement("div",{className:"KfeCollection-GoodsCardV2-catalog"},"章节目录",g.a.createElement("div",{className:"KfeCollection-GoodsCardV2-catalogSectionList"},O.map((function(e){var t=e.manuscriptUrl,n=e.sectionId,r=e.title;return g.a.createElement(S.a,{zaType:"Text",key:n,zaBlock:"catalog",extra:{link:{url:t}},zaAction:"OpenUrl"},g.a.createElement("a",{className:"KfeCollection-GoodsCardV2-catalogSectionItem",href:t,target:"_blank",rel:"noopener noreferrer",key:n,"data-za-detail-view-id":7500,"data-za-extra":JSON.stringify({button:{text:r}})},r,g.a.createElement(E.a,{className:"KfeCollection-GoodsCardV2-catalogSectionItemIcon"})))}))))))}}]),n}(g.a.Component);I(P,"propTypes",{theme:j.a.oneOf([M,L]),onClick:j.a.func}),I(P,"defaultProps",{theme:L});var B=P,z=n(31),D=n(1305),F=function(e){return-1===e.indexOf("?")?"".concat(e,"?entry=qa"):"".concat(e,"&entry=qa")};function U(e){var t=e.header,n=void 0===t?{}:t,r=e.onClick,o=n.title,a=n.subTitle,i=n.link;return g.a.createElement("a",{href:F(i),target:"_blank",rel:"noopener noreferrer",className:"KfeCollection-GoodsCardV3-header",onClick:r},g.a.createElement("div",{className:"KfeCollection-GoodsCardV3-headerTitle"},o),g.a.createElement("div",{className:"KfeCollection-GoodsCardV3-headerSubTitle"},g.a.createElement("div",null,a),g.a.createElement(D.a,{className:"KfeCollection-GoodsCardV3-headerIcon"})))}var V=function(e){var t=Object(v.useRef)(),n=e.className,r=e.zaInfo,o=void 0===r?{}:r,a=e.goodsCard,i=e.shelvesInfo,c=e.onBookshelfButtonClick,s=void 0===c?C.a:c,l=e.theme,u=void 0===l?"light":l,d=e.onClick,f=a.header,p=a.body,h=a.body,b=h.title,m=h.cover,y=h.coverLabel,O=h.link,j=h.desc,w=h.label,k=h.vipNote,_=h.icons,I=h.heatNote,M=Object(S.i)().trackEvent;Object(v.useEffect)((function(){Object(R.onViewedOnce)(t.current,(function(){A.a.trackCardShow(t.current,{id:8467,name:p.title},{button:{text:f.title}})}))}),[p,f]);var L=Object(v.useCallback)((function(e){A.a.trackEvent(e.target,{id:8468,action:"OpenUrl",name:p.title},{link:{url:f.link},button:{text:f.title}}),M({action:"OpenUrl",eventType:"Click",elementLocation:{text:f.title,block:{blockText:"newSkuCardHeader"},type:"Button",content:{type:N.e.paidAnswer}}},{link:{url:f.link}})}),[p,f,M]),P=Object(v.useCallback)((function(e){A.a.trackEvent(e.target,{id:8469,action:"OpenUrl",name:p.title},{link:{url:p.link},button:{text:f.title}}),d&&d(e)}),[p,f,d]),B=Object(v.useCallback)((function(e){var t=(null==i?void 0:i.whetherInShelf)?"去书架查看":"加入书架",n=(null==i?void 0:i.whetherInShelf)?"OpenUrl":"Collect",r={url:p.link};A.a.trackEvent(e.target,{id:8294,action:"OpenUrl",name:p.title},{link:r,button:{text:t}}),M({action:n,eventType:"Click",elementLocation:{type:"Button",text:t}},(null==i?void 0:i.whetherInShelf)?{link:{url:"https://www.zhihu.com/xen/market/vip/vip-recommend"}}:null),s(e)}),[p,s,i,M]);return g.a.createElement("section",{className:x()("KfeCollection-GoodsCardV3",n),"data-za-module":"Content","data-za-extra-module":JSON.stringify({card:{content:[o]}})},g.a.createElement(U,{header:f,onClick:L}),g.a.createElement(S.b,{content:Object.assign({},o,{type:N.e.paidAnswer}),block:"newSkuCard"},g.a.createElement(S.a,{zaType:"Card",shouldTrackShow:!0,zaAction:"OpenUrl",extra:{link:{url:O}}},g.a.createElement("a",{href:F(O),target:"_blank",rel:"noopener noreferrer",className:x()("KfeCollection-GoodsCardV3-content","KfeCollection-GoodsCardV3-content--topHeader"),onClick:P,ref:t},g.a.createElement("div",{className:"KfeCollection-GoodsCardV3-cover"},g.a.createElement("img",{className:"KfeCollection-GoodsCardV3-coverVip",src:"light"===u?null==_?void 0:_.leftTopDayIcon:null==_?void 0:_.leftTopNightIcon,alt:""}),g.a.createElement("img",{className:x()("KfeCollection-GoodsCardV3-coverImage"),src:Object(T.imgUrl)(m,{size:"200x0"})}),g.a.createElement("div",{className:"KfeCollection-GoodsCardV3-coverLabel"},y)),g.a.createElement("div",{className:"KfeCollection-GoodsCardV3-detail"},b&&g.a.createElement("h2",{className:"KfeCollection-GoodsCardV3-detailTitle"},b),j&&g.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailDescription"},j),w&&g.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailLabel"},w),I?g.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailHeatNote"},I):k&&g.a.createElement("p",{className:"KfeCollection-GoodsCardV3-detailVipNote",dangerouslySetInnerHTML:{__html:k}}),i&&g.a.createElement(z.c,{className:"KfeCollection-GoodsCardV3-bookshelfButton",preset:"plain",color:"grey",onClick:B},i.whetherInShelf?"去书架查看":"加入书架",g.a.createElement(E.a,{text:!0,center:!0})))))))};function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m()(e);if(t){var o=m()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h()(this,n)}}function H(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var K=function(e){f()(n,e);var t=q(n);function n(){var e;i()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){c=!0,a=e},f:function(){try{i||null==n.return||n.return()}finally{if(c)throw a}}}}function ie(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=1?Math.round(t):t.toFixed(1),"MB")}var fe=["CHANGE_MIND","TOO_SLOW","NO_PROGRESS","OTHER"].sort((function(){return.5-Math.random()})),pe={CHANGE_MIND:"我不想发了",TOO_SLOW:"上传速度太慢",NO_PROGRESS:"上传卡住了",OTHER:"其他"};var he=function(e){var t=Object(s.useDispatch)(),n=e.className,r=e.infoClassName,c=e.formClassName,l=e.video,u=e.shouldShowSyncToListCheckbox,f=void 0!==u&&u,p=e.forwardToZVideoPage,h=e.createVideoDraft,b=e.updateVideoDraft,m=e.onUploadError,v=e.onRemove,y=e.onPublish,O=e.handleVideoStateChange,w=e.shouldShowScheduledPublish,C=l.status,k=l.file,S=!!l.queryVideoId,E=Object(i.useRef)(),T=Object(i.useRef)(null),A=Object(i.useRef)(null),N=Object(i.useState)(!1),_=Object(o.a)(N,2),I=_[0],M=_[1],L=Object(i.useState)(!1),P=Object(o.a)(L,2),B=P[0],z=P[1],D=Object(i.useState)(""),F=Object(o.a)(D,2),U=F[0],V=F[1],q=Object(i.useState)(""),H=Object(o.a)(q,2),Y=H[0],Z=H[1],X=Object(i.useState)({uploadedSize:0}),J=Object(o.a)(X,2),$=J[0],ee=J[1],te=Object(i.useState)(!1),ne=Object(o.a)(te,2),re=ne[0],oe=ne[1],ce=Object(g.c)((function(){T.current&&(T.current.getSession("video",k).abort(),T.current=null,oe(!1))}));Object(i.useEffect)((function(){"uploading"!==C||re||(T.current=new Q.b({usage:"zvideo",apiRoot:j.a.fetchRoot.lens}),oe(!0))}),[C,k,re]);var he=Object(g.c)((function(){if(T.current){var e=T.current.getSession("video",k);O(e.state),ee(e.state),e.state.completed&&e.off("change",he)}})),be=re&&T.current&&0===$.uploadedSize;Object(i.useEffect)((function(){be&&(T.current.getSession("video",k).on("change",he),E.current=Date.now())}),[be,k,he]);var me=Object(g.c)((function(e,t){return"uploaded"===e?null==h?void 0:h(Object.assign({},t,{isLens:!0,isPlayable:!0,thumbnail:ue.a,url:"https://www.zhihu.com/video/".concat(t.id),playerUrl:"https://www.zhihu.com/video/".concat(t.id)})):"cover"===e?(ce(),null==b?void 0:b({imageUrl:t.thumbnail||ue.a})):void 0})),ve=Object(g.c)((function(){if(ce(),v(),U){var e=Math.round($.uploadedSize/k.size*100),n="取消时上传进度:".concat(e,"%"),r=Y?"「".concat(n,"」").concat(Y,"}"):n,o=(l||{}).id,a=Math.round((Date.now()-E.current)/1e3);t(Object(x.u)({reason:U,reasonDetail:r,zvideoId:o,uploadProgress:String(e),uploadedSize:String(Math.round($.uploadedSize)),zvideoTotalSize:String(k.size),uploadDurationSec:String(a)}))}Z(""),V("")})),ge=function(){"uploading"!==C?M(!0):z(!0)},ye=function(){return z(!1)},Oe=function(){return M(!1)},je=function(e){var t=e.target.name;V(t)},we=Object(i.useCallback)((function(e){Z(e.currentTarget.value)}),[Z]),Ce=["uploading","uploaded"].includes(C),ke=Object(i.useMemo)((function(){return de(k.size)}),[k.size]);return Object(a.c)("div",{className:d()("VideoUploadItem","VideoUploadItem--".concat(C),n),children:["pending"===C&&Object(a.b)(se,{className:r,title:k.name,titleHint:"等待上传 ".concat(ke),tool:Object(a.b)(R.c,{preset:"plain",onClick:ve,children:"取消上传"})}),"uploading"===C&&Object(a.b)(se,{className:r,title:k.name,titleHint:"UPLOADING_SUCCESS"===$.uploadingStatus?"上传完成,正在生成默认视频封面":"正在上传 ".concat(Math.round($.uploadedSize/k.size*100),"% ").concat(de($.uploadedSize)," / ").concat(ke),titleBottom:Object(a.b)(le,{className:"VideoUploadItem-progress",current:$.uploadedSize,max:k.size}),tool:Object(a.b)(R.c,{className:"VideoUploadItem-toolLastButton",preset:"plain",onClick:ge,children:"取消上传"})}),re&&Object(a.b)(W.a,{ref:A,className:"VideoUploadItem-videoUploader",coverButtonText:"编辑视频封面",uploadManager:T.current,onVideoProcessStep:me,onVideoUploadError:function(e){"uploaded"!==C&&m(e)},data:{upload:{file:k}},isPin:!0}),"uploadError"===C&&Object(a.b)(se,{className:r,title:k.name,titleHint:"上传失败,请尝试重新上传",tool:Object(a.b)(R.c,{preset:"plain",onClick:ve,children:"删除视频"})}),"uploaded"===C&&Object(a.b)(se,{className:r,title:k.name,titleHint:"上传完成 ".concat(S?"":ke),tool:S?"":Object(a.b)(R.c,{preset:"plain",onClick:ge,children:"删除视频"})}),"published"===C&&!p&&Object(a.b)(se,{className:r,imageUrl:l.imageUrl,duration:l.video.duration,title:l.title,titleHint:Object(a.b)("a",{href:"https://www.zhihu.com/zvideo/".concat(l.id),target:"_blank",rel:"noopener noreferrer",children:"发布成功,点击前往详情页查看"})}),Ce&&Object(a.b)(ie.a,{className:c,defaultVideo:l,defaultCampaignId:e.defaultCampaignId,shouldShowSyncToListCheckbox:f,shouldShowScheduledPublish:w,onRemove:ge,onSubmit:y,checkFormValid:function(){return"uploaded"!==C?"请在视频上传完成后发布":null}}),Object(a.b)(K.b,{className:"VideoUploadItem-modal",title:"确定取消上传该视频?",subtitle:"未上传成功的内容不会被保留",onClose:ye,children:B&&Object(a.c)("div",{className:"VideoUploadItem-modalContent",children:[Object(a.b)("p",{children:"为什么取消上传?你的建议也许能帮助我们"}),fe.map((function(e){return Object(a.c)("label",{children:[Object(a.b)(ae,{name:e,onChange:je,checked:U===e}),Object(a.b)("span",{className:"VideoUploadItem-OptionItem-Title",children:pe[e]})]},e)})),"OTHER"===U&&Object(a.b)(G.a,{className:"VideoUploadItem-feedback",placeholder:"请在这里填上你的反馈",value:Y,onChange:we,large:!0,maxLength:300}),Object(a.c)(K.a,{direction:"horizontal",children:[Object(a.b)(R.c,{preset:"primary",onClick:ye,children:"继续上传"}),Object(a.b)(R.c,{preset:"primary",onClick:ve,color:"blue",children:"取消上传"})]})]})}),Object(a.b)(K.b,{className:"VideoUploadItem-modal",title:"确定取消发布视频?",onClose:Oe,children:I&&Object(a.c)("div",{className:"VideoUploadItem-modalContent",children:[Object(a.b)("p",{css:{textAlign:"center"},children:"上传成功的内容将会保存至「草稿箱」"}),Object(a.c)(K.a,{direction:"horizontal",children:[Object(a.b)(R.c,{preset:"primary",onClick:Oe,children:"继续发布"}),Object(a.b)(R.c,{preset:"primary",onClick:ve,color:"blue",children:"取消发布"})]})]})})]})},be=n(980),me=n(868);var ve=function(){var e=Object(i.useState)([]),t=Object(o.a)(e,2),n=t[0],r=t[1],c=Object(s.useDispatch)(),l=Object(i.useRef)([]);Object(i.useEffect)((function(){c(Object(x.e)()).then((function(e){var t=e.payload.data;r(t)}))}),[c]);var u=Object(i.useCallback)((function(e){var t=e.index;if(!l.current[t]){l.current[t]=!0;var r=n[t];b.a.trackCardShow(null,{id:9517},{link:{url:r.url},button:{text:String(r.id)}})}}),[n]),d=Object(i.useCallback)((function(e){return Object(a.b)(B.Link,{href:e.url,target:"_blank",css:{display:"flex",flex:"0 0 100%"},"data-za-detail-view-id":9518,"data-za-extra":JSON.stringify({link:{url:e.url},button:{text:String(e.id)}}),children:Object(a.b)(me.a,{ratio:7.5,css:{width:"100%"},children:Object(a.b)(B.Image,{src:e.imageUrl,alt:"",size:"100%",css:{objectFit:"cover"}})})})}),[]);return 0===n.length?null:Object(a.b)(B.Flex,{css:{justifyContent:"center",height:"100%",overflowX:"scroll",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},children:Object(a.b)(be.a,{items:n.slice(0,5),renderItem:d,enableArrows:!0,interval:3e3,css:{maxWidth:1e3,margin:20,borderRadius:4},onSlide:u})})};n(1127);t.a=Object(l.withRouter)((function(e){var t,n=e.type,c=void 0===n?"create":n,l=e.defaultCampaignId,u=e.enableMultipleUpload,p=void 0!==u&&u,m=e.enableZVideoListSelectorEntry,O=void 0!==m&&m,R=e.shouldShowSyncToListCheckbox,_=void 0!==R&&R,I=e.onClose,M=e.onSubmit,L=e.forwardToZVideoPage,B=void 0!==L&&L,z=e.isInModal,D=void 0!==z&&z,F=e.shouldPublish,U=void 0===F||F,V=e.showBanner,q=void 0!==V&&V,K=e.shouldShowScheduledPublish,Q=void 0!==K&&K,W=e.route,G=e.router,Y=e.location.query.videoId,Z=Object(i.useState)(Y?[{queryVideoId:Y,tempId:h()(),file:{size:0,name:"已上传视频"},status:"uploaded",imageUrl:ue.a}]:[]),X=Object(o.a)(Z,2),J=X[0],$=X[1],ee=Object(i.useState)({}),te=Object(o.a)(ee,2),ne=te[0],re=te[1],oe=Object(i.useState)(!1),ae=Object(o.a)(oe,2),ie=ae[0],ce=ae[1],se=(Object(s.useSelector)((function(e){return e.zvideos.insertable}))||{}).data,le=Object(k.a)([x.b,x.t,x.o,x.p,C.h,x.i,x.r,S.j]),de=Object(o.a)(le,8),fe=de[0],pe=de[1],be=de[2],me=de[3],ge=de[4],ye=de[5],Oe=de[6],je=de[7],we=Object(i.useRef)();we.current=J;var Ce=Object(g.c)((function(e,t){var n=Object.assign({},J[e],{status:"uploaded",videoId:t.id,imageUrl:t.thumbnail,video:{id:t.id,duration:t.duration}});return $(J.map((function(t,r){return e===r?n:t}))),fe(n).then((function(t){var r=t.payload;$(we.current.map((function(t,o){return e===o?Object.assign({},n,{id:r.id}):t})))}))}));Object(i.useEffect)((function(){Y&&Ce(0,{id:Y}).then((function(){return Object(y.b)(Y,{apiRoot:j.a.fetchRoot.lens})})).then((function(e){e&&$((function(t){return[Object.assign({},t[0],{imageUrl:e})]}))}))}),[Y,Ce]),Object(i.useEffect)((function(){var e,t=null===(e=J[0])||void 0===e?void 0:e.id;if(t){var n=Object(N.a)(Y);n&&pe(t,{vessayOutline:n})}}),[J,Y,pe]);var ke=Object(i.useCallback)((function(e,t){var n=Object(E.a)(e,{multiple:p,numLimit:w.T-J.length}),o=n.message,a=n.abortUpload,i=n.validFiles;o&&(ge(o,a?"red":"white"),a)||(b.a.trackEvent(null,{id:9479,action:t,path:[{module:"Content"}]},{module:[{card:{content:[{video_count:null==i?void 0:i.length}]}}]}),$([].concat(Object(r.a)(J),Object(r.a)(null==i?void 0:i.map((function(e){return{tempId:h()(),file:e,title:Object(A.b)(e.name),status:"pending"}}))))))}),[p,J,ge]),xe=function(e){var t=Math.round(e.uploadedSize/e.fileSize*100);re({uploadProgress:t,fileSize:e.fileSize})},Se=Object(i.useCallback)((function(){(null==se?void 0:se.length)>0?ce(!0):ye().then((function(e){e.payload.data.length?ce(!0):ge("还没有发布过视频")}))}),[se,ye,ge]);Object(i.useEffect)((function(){if(!J.some((function(e){return"uploading"===e.status}))){var e=J.findIndex((function(e){return"pending"===e.status}));-1!==e&&$(J.map((function(t,n){return n!==e?t:Object.assign({},t,{status:"uploading",uploadedSize:0})})))}}),[J,$]);var Ee=Object(i.useCallback)((function(){G.setRouteLeaveHook(W,null),window.onbeforeunload=null}),[G,W]);Object(i.useEffect)((function(){if(W&&G){if(J.some((function(e){return"uploading"===e.status}))){var e,t,n=ne.uploadProgress,r=ne.fileSize,o=Math.round(1024*(null===(e=navigator)||void 0===e||null===(t=e.connection)||void 0===t?void 0:t.downlink)||1024e3);v.a.timing("VideoUpload.default.upload_cancel.downlink",o),v.a.timing("VideoUpload.default.upload_cancel.fileSize",r),v.a.timing("VideoUpload.default.upload_cancel.uploadProgress",n),G.setRouteLeaveHook(W,(function(){return"确定离开该页面?有暂未发布的视频,离开后内容将被清空"})),window.onbeforeunload=function(){return"确定离开该页面?有暂未发布的视频,离开后内容将被清空"}}else Ee();return Ee}}),[G,W,J,Ee,ne]);var Re=Object(i.useCallback)((function(e){$(J.filter((function(t,n){return e!==n})))}),[J]),Te=Object(i.useCallback)((function(e,t){var n;e&&ge(e),je(t),n=t,b.a.trackEvent(null,{id:9382,action:"StatusReport",path:[{module:"Content"}]},{module:[{card:{content:[{type:"Zvideo",id:String(n)}]}}],status:{result:"Success",event:{action:"Upload"}}})}),[ge,je]),Ae=Object(i.useCallback)((function(e,t,n){if(null==M||M([t.id]),null==I||I(),U){var r=t.id,o=t.publishAt,a=t.clubId;n&&o?me(r,Math.floor(o/1e3)).then((function(){Te("内容已保存在草稿箱,将在 ".concat(f.a(o,"yyyy/MM/dd HH:mm")," 时间发布"),r),Re(e)})):be(r).then((function(){Te(null,r),$(J.map((function(n,r){return e!==r?n:Object.assign({},n,t,{status:"published"})}))),a&&Oe(r,a),B&&(b.a.trackPageShow({id:9516}),window.location.href="https://www.zhihu.com/zvideo/".concat(r))}))}}),[M,I,U,be,me,Te,Oe,J,Re,B]);return ie?Object(a.b)(H,{onSubmit:M,onClose:function(){ce(!1)}}):void 0===Y&&0===J.length?Object(a.c)(a.a,{children:[q&&Object(a.b)(ve,{}),Object(a.b)(P,{onFiles:ke,enableZVideoListSelectorEntry:O,multiple:p,onOpenZVideoList:Se})]}):B&&"published"===(null===(t=J[0])||void 0===t?void 0:t.status)?Object(a.b)("div",{className:"ZVideoUploader-published",children:Object(a.b)("span",{children:"发布成功,跳转中..."})}):Object(a.c)("div",{className:d()("ZVideoUploader-form",{"ZVideoUploader-modalForm":D}),children:[Object(a.c)("div",{className:"ZVideoUploader-titleArea",children:[Object(a.b)("span",{className:"ZVideoUploader-title",children:"insert"===c?"添加视频":"上传视频"}),p&&Object(a.b)(T,{text:"添加视频",onFiles:ke,zaClickId:7037,disabled:J.length>=w.T})]}),J.map((function(e,t){var n;return Object(a.b)(he,{className:"ZVideoUploader-videoUploadItem",video:e,forwardToZVideoPage:B,handleVideoStateChange:xe,shouldShowSyncToListCheckbox:_,shouldShowScheduledPublish:Q,defaultCampaignId:l,createVideoDraft:function(e){return Ce(t,e)},updateVideoDraft:function(e){return function(e,t){var n=Object.assign({},J[e],t);$(J.map((function(t,r){return e===r?n:t}))),n.id&&pe(n.id,t)}(t,e)},onUploadError:function(){$(J.map((function(e,n){return t!==n?e:Object.assign({},e,{status:"uploadError"})})))},onRemove:function(){return Re(t)},onPublish:function(){for(var e=arguments.length,n=new Array(e),r=0;r0?" · ".concat(Object(i.cnNiceNumber)(f),"赞同"):null]})]}),!h&&Object(r.c)("div",{className:"VideoContributionAnswer-action",children:[Object(r.b)(u,{style:{marginRight:"6px"}}),"完整版"]})]})]})}},,,,function(e,t,n){"use strict";var r=n(2),o=n(1),a=n(11),i=n.n(a),c=n(783),s=n(407);t.a=function(e){var t=e.show,n=e.setModal,a=e.children,l=e.className,u=e.onCancel,d=e.hideIcon,f=e.maskClosable,p=void 0===f||f,h=function(){n?n(!1):u&&u()},b=Object(o.useRef)();return Object(o.useEffect)((function(){var e=null;return t?(document.body.style.overflow="hidden",e=Object(s.a)(b.current)):document.body.style.overflow="auto",function(){e&&e()}}),[t]),Object(r.b)("div",{className:l,children:Object(r.c)("div",{ref:b,children:[Object(r.b)("div",Object.assign({className:i()({"ModalExp-background":t})},p&&{onClick:h})),Object(r.c)("div",{className:i()("ModalExp-content",{"ModalExp-modalShow":t}),onClick:function(e){e.stopPropagation()},children:[!d&&Object(r.b)(c.a,{size:24,fill:"#d3d3d3",className:"ModalExp-closeIcon",onClick:h}),a]})]})})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(3),d=n.n(u),f=n(73),p=n(31),h=n(783),b=n(1181),m=n(1280);function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var g=function(e){Object(a.a)(n,e);var t=v(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.memberHashId,n=e.isModalShow,r=e.handleCloseModal;return Object(s.b)(f.b,{className:"ChatBoxModal",spread:!0,onClose:r,contentClassName:"ChatBoxModal-content",closeButton:Object(s.b)(p.c,{preset:"plain",className:"ChatBoxModal-closeButton",onClick:r,"aria-label":"关闭",children:Object(s.b)(h.a,{className:"ChatBoxModal-closeIcon"})}),children:n&&Object(s.b)(b.a,{handleReceiveMessage:this.handleReceiveMessage,children:Object(s.b)(m.a,{type:"default",senderId:t,className:"Chat-ChatBox"},t)})})}}]),n}(l.Component);g.propTypes={memberHashId:d.a.string,handleCloseModal:d.a.func,isModalShow:d.a.bool}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M2.224 21.667s4.24-1.825 4.788-2.056C15.029 23.141 22 17.714 22 11.898 22 6.984 17.523 3 12 3S2 6.984 2 11.898c0 1.86.64 3.585 1.737 5.013-.274.833-1.513 4.756-1.513 4.756zm5.943-9.707c.69 0 1.25-.569 1.25-1.271a1.26 1.26 0 0 0-1.25-1.271c-.69 0-1.25.569-1.25 1.27 0 .703.56 1.272 1.25 1.272zm7.583 0c.69 0 1.25-.569 1.25-1.271a1.26 1.26 0 0 0-1.25-1.271c-.69 0-1.25.569-1.25 1.27 0 .703.56 1.272 1.25 1.272z",fillRule:"evenodd"}))};i.defaultProps={name:"WeChat"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{fill:"#FB6622",d:"M15.518 3.06c8.834-.854 7.395 7.732 7.394 7.731-.625 1.439-1.673.309-1.673.309.596-7.519-5.692-6.329-5.692-6.329-.898-1.067-.029-1.711-.029-1.711zm4.131 6.985c-.661 1.01-1.377.126-1.376.126.205-3.179-2.396-2.598-2.396-2.598-.719-.765-.091-1.346-.091-1.346 4.882-.551 3.863 3.818 3.863 3.818zM5.317 7.519s4.615-3.86 6.443-1.328c0 0 .662 1.08-.111 2.797.003-.003 3.723-1.96 5.408.159 0 0 .848 1.095-.191 2.649 0 0 2.918-.099 2.918 2.715 0 2.811-4.104 6.44-9.315 6.44-5.214 0-8.026-2.092-8.596-3.102 0 0-3.475-4.495 3.444-10.33zm10.448 7.792s.232-4.411-5.71-4.207c-6.652.231-6.579 4.654-6.579 4.654.021.39.097 3.713 5.842 3.713 5.98 0 6.447-4.16 6.447-4.16zm-9.882.86s-.059-3.632 3.804-3.561c3.412.06 3.206 3.165 3.206 3.165s-.026 2.979-3.684 2.979c-3.288 0-3.326-2.583-3.326-2.583zm2.528 1.037c.672 0 1.212-.447 1.212-.998 0-.551-.543-.998-1.212-.998-.672 0-1.215.447-1.215.998 0 .551.546.998 1.215.998z",fillRule:"evenodd"}))};i.defaultProps={name:"Weibo"},t.a=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(35),o=n(2),a=n(90),i=n(3),c=n.n(i),s=n(804),l=n(1533);function u(e){var t,n,r=e.preset,i=e.deltaFixed,c=e.compareCount,u=void 0===c?null:c,d=e.originCount,f="small"===r,p=(n=void 0===d?null:d,null===(t=u)||null===n||0===t?null:(n-t)/t);if(null===p)return"--";var h=p>=0?{color:"GBL01A",icon:s.a}:{color:"GRD01A",icon:l.a},b=h.color,m=h.icon;return Object(o.c)(o.a,{children:[Object(o.b)(a.Text,{color:b,as:"span",children:Object(o.b)(m,{text:!0,center:!0})})," ",Object(o.b)(a.Text,{color:f&&b,as:"span",children:"".concat(i&&Math.abs(p)>10?"1000+":Math.abs(Math.round(1e4*p)/100),"%")})]})}function d(e){var t=e.className,n=e.textClassName,i=e.text,c=Object(r.a)(e,["className","textClassName","text"]),s="small"===c.preset;return Object(o.c)(a.Flex,{css:{fontSize:12,alignItems:"center",justifyContent:"space-between"},className:t,children:[Object(o.b)(a.Text,{className:n,color:s?"GBK06A":"GBL08A",children:i}),Object(o.b)(a.Text,{sx:{fontWeight:"bold"},css:{marginLeft:4},children:Object(o.b)(u,Object.assign({},c))})]})}d.propTypes={preset:c.a.oneOf(["normal","small"])},t.b=d},,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M2 18.242c0-.326.088-.532.237-.896l7.98-13.203C10.572 3.57 11.086 3 12 3c.915 0 1.429.571 1.784 1.143l7.98 13.203c.15.364.236.57.236.896 0 1.386-.875 1.9-1.955 1.9H3.955c-1.08 0-1.955-.517-1.955-1.9z",fillRule:"evenodd"}))};i.defaultProps={name:"TriangleUp"},t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(2),o=n(90),a=n(1553),i=n(232);function c(e){var t=e.handleClick;return Object(r.c)(i.a,{as:o.Flex,zaAction:"Unknown",zaText:"全屏编辑",zaType:"Button",aliginItem:"center",fontSize:14,color:"GBL05A",pr:"20px",lineHeight:"55px",css:{cursor:"pointer"},onClick:t,children:[Object(r.b)(o.Text,{mr:"10px",children:"全屏编辑"}),Object(r.b)(a.a,{text:!0,center:!0})]})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),o=n(1),a=n.n(o),i=n(90),c=n(155),s={textAnswer:"textAnswer",videoAnswer:"videoAnswer"},l=[{key:s.textAnswer,name:"图文回答"},{key:s.videoAnswer,name:"视频回答"}];function u(e,t){var n=e.activeTabKey,o=e.onChange;return Object(r.b)(c.b,{children:l.map((function(e){var a=e.key,l=e.name;return Object(r.b)(c.a,{css:{padding:"0 10px",":first-of-type":{paddingLeft:20}},children:Object(r.b)(i.Text,{ref:a===s.videoAnswer?t:null,onClick:function(){return o(a)},css:function(e){return Object.assign({color:e.colors.GBK03A,cursor:"pointer"},n===a&&{fontWeight:"bold",borderBottom:"4px solid ".concat(e.colors.GBL01A)})},children:l})},a)}))})}t.b=a.a.forwardRef(u)},function(e,t,n){e.exports=n.p+"assets/logo.804f083e.png"},,function(e,t,n){"use strict";n.d(t,"a",(function(){return Ar}));var r=n(43),o=n(849),a=n(14),i=n(66),c=n(15),s=n(16),l=n(17),u=n(9),d=n(2),f=n(3),p=n.n(f),h=n(1),b=n.n(h),m=n(27),v=n(19),g=n(34),y=n(11),O=n.n(y),j=n(90),w=n(369),C=n.n(w),k=n(1386),x=n(1543),S=n(1553),E=n(1555),R=n(1351),T=n(836),A=n(1556),N=n(31),_=n(84),I=n(911),M=n(250),L=n(235),P=n(375),B=n(175),z=n(176),D=n(37),F=n.n(D),U=n(366),V=n(1310),q=n(321),H=n(134),K=n(976),Q=n(30),W=n(232),G=n(1337);function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Z=function(e){Object(s.a)(n,e);var t=Y(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i0&&(!(null==n?void 0:n.id)||p);Object(h.useEffect)((function(){p&&c(function(e){var t,n,r,o,a="open"===(null==e||null===(t=e.disclaimerInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.status);return{isDisclaimerChecked:a,disclaimerType:a?null==e||null===(r=e.disclaimerInfo)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.type:"none"}}(p))}),[Boolean(p)]),Object(h.useEffect)((function(){l||s(Object(ie.M)(t.id))}),[]);return b?Object(d.b)(_.c,{positionStatus:o,toggler:Object(d.c)(j.Flex,Object.assign({alignItems:"center",color:"GBL05A",fontSize:r?12:13,css:{position:"relative",cursor:"pointer"}},r&&{marginLeft:"8px",padding:"0 10px",height:20,bg:"GBK10A",css:{borderRadius:10}},{children:[Object(d.b)(j.Text,{mr:"4px",color:r?"GBL05A":"GBK06A",children:(null==f?void 0:f.description)||rt.description}),Object(d.b)(tt.a,{text:!0,center:!0})]})),menuClassName:"AnswerItem-selfMenu",itemClassName:"AnswerItem-selectMenuItem",children:[].concat(Object($e.a)(l),[rt]).map((function(e){return Object(d.b)(I.a,{onClick:function(){return function(e){c({isDisclaimerChecked:"none"!==e.type,disclaimerType:e.type})}(e)},checked:e.type===u,children:e.description},e.type)}))}):null};function it(e){var t,n=e.question,r=e.answer,o=e.isVideoAnswer,a=e.handleToggleAnonymous,i=e.positionStatus,c=e.isReediting,s=e.setScheduledPublish,l=e.canScheduledPublish,u=e.settingExpanded,f=e.handleExpand,p=e.isFullScreen,b=e.inEditor,v=Object(m.useDispatch)(),g=Object(m.useSelector)(ue.b),y=Object(m.useSelector)((function(e){return e.switches})).isAnswerRewardable;Object(h.useEffect)((function(){void 0===y&&v(Object(me.b)(["isAnswerRewardable"]))}),[v,y]);var O=null==n||null===(t=n.relationship)||void 0===t?void 0:t.isAnonymous,w="show"===Object(de.n)("gue_anonymous"),C=(n||{}).questionType,k=g&&!g.isOrg,x=k&&("normal"===C||"commercial"===C&&w||O)&&!o,S=Boolean(n||r)&&!(null==r?void 0:r.id);return o&&c?null:Object(d.c)(j.Box,Object.assign({p:"0 20px",width:"100%"},p&&{mx:"auto",maxWidth:688},{bg:"GBK99A",css:function(e){return Object.assign({position:"relative"},u?Object(pe.c)({borderTop:"1px solid ".concat(e.colors.GBK09A)}):{boxShadow:"0 -1px 3px ".concat(e.colorMod(e.colors.GBK02B).alpha(.12))},(b&&!u||!b&&u)&&{height:0,overflow:"hidden"})},children:[Object(d.c)(j.Flex,{py:"13px",justifyContent:"space-between",alignItems:"center",css:function(e){return Object.assign({},Object(pe.c)({borderBottom:"1px solid ".concat(e.colors.GBK09A)}))},children:[Object(d.c)(j.Flex,{alignItems:"center",children:[Object(d.b)(j.Text,{mr:"4px",fontSize:15,fontWeight:"bold",color:"GBK03A",children:"发布设置"}),!u&&!o&&Object(d.c)(d.a,{children:[Object(d.c)(j.Flex,{ml:"16px",alignItems:"center",children:[Object(d.b)(ot,{}),Object(d.b)(at,{isSmall:!0,question:n,answer:r,positionStatus:i})]}),x&&!c&&Object(d.c)(j.Flex,{ml:"16px",alignItems:"center",children:[Object(d.b)(j.Text,{fontSize:14,fontWeight:"bold",color:"GBL05A",children:"匿名发布"}),Object(d.b)(Be,{isSmall:!0,isAnonymous:O,answer:r,handleToggleAnonymous:a})]}),!c&&Object(d.c)(j.Flex,{ml:"16px",alignItems:"center",children:[Object(d.b)(j.Text,{fontSize:14,fontWeight:"bold",color:"GBL05A",children:"推送给关注者"}),Object(d.b)(De,{isSmall:!0})]})]})]}),Object(d.c)(W.a,{as:j.Flex,zaAction:"Unknown",zaText:u?"收起":"全部设置",zaType:"Button",alignItems:"center",color:"GBL05A",css:{cursor:"pointer"},onClick:f,children:[Object(d.b)(j.Text,{fontSize:14,mr:"4px",children:u?"收起":"全部设置"}),u?Object(d.b)(he.a,{size:20,center:!0}):Object(d.b)(be.a,{size:20,center:!0})]})]}),Object(d.c)("div",{css:{maxHeight:u?"auto":0,overflowY:"hidden"},children:[!o&&Object(d.b)(ve,{customTitle:Object(d.b)(ot,{}),children:Object(d.b)(at,{question:n,answer:r,positionStatus:i})}),x&&!c&&Object(d.b)(ve,{title:"匿名发布",children:Object(d.b)(Be,{isAnonymous:O,answer:r,handleToggleAnonymous:a})}),!c&&l&&Object(d.b)(ve,{title:"定时发布",children:Object(d.b)(Je,{setScheduledPublish:s})}),!c&&k&&Object(d.b)(ve,{title:"编辑一句话介绍 / 话题经验",children:Object(d.b)(Ye,{question:n,currentUser:g})}),(n||r)&&!o&&y&&Object(d.b)(ve,{title:"开启赞赏",children:Object(d.b)(_e,{question:n,answer:r,isAnswerRewardable:!0})}),S&&!o&&Object(d.b)(ve,{title:"推送给关注者",children:Object(d.b)(De,{})}),!c&&Object(d.c)(d.a,{children:[Object(d.b)(Pe,{currentUser:g}),Object(d.b)(He,{})]})]})]}))}var ct=n(810);function st(e){var t=e.type,n=e.textCount,r=e.draftStatus,o=e.removeDraft,a=e.handleSubmit,i=e.isReediting,c=e.scheduledPublishAt,s=e.onCancelEdit,l=e.draft,u=e.canSubmit,f=e.isFullScreen;return Object(d.c)(j.Flex,Object.assign({justifyContent:"space-between",alignItems:"center",p:"10px 20px",width:"100%"},f&&{mx:"auto",maxWidth:688},{bg:"GBK99A",css:function(e){return{boxShadow:"0 -1px 3px ".concat(e.colorMod(e.colors.GBK02B).alpha(.12))}},children:[Object(d.c)(j.Flex,{alignItems:"center",children:[Object(d.b)(j.Text,{width:86,height:34,lineHeight:"34px",textAlign:"center",fontSize:14,color:"GBK99A",bg:"GBL01A",css:{borderRadius:3,cursor:u?"pointer":"not-allowed",opacity:u?1:.3},onClick:a,children:i?"提交修改":c?"定时发送":"发布".concat("answer"===t?"回答":"文章")}),i&&Object(d.b)(j.Text,{color:"GBL07A",ml:"10px",onClick:s,css:{cursor:"pointer"},children:l?"保存草稿并离开":"取消"})]}),Object(d.c)(j.Text,{fontSize:14,color:"GBL05A",children:[n?"共 ".concat(n," 字"):"",n&&r?",":"",r,r&&Object(d.b)(ct.a,{text:!0,center:!0,css:{marginLeft:8,cursor:"pointer"},onClick:o})]})]}))}var lt=n(959),ut=function(e){var t=e.shown,n=e.onClose;return Object(d.b)(X.b,{onClose:n,title:"该问题暂时只支持客户端进行回答",children:t&&Object(d.b)("div",{className:"SlideshowEditBlockModal",children:Object(d.b)(N.c,{preset:N.b.Primary,color:N.a.Blue,onClick:n,children:"知道了"})})})};ut.propTypes={shown:p.a.bool.isRequired,onClose:p.a.func.isRequired};var dt=ut,ft=n(1423),pt=n(451),ht=n(1341),bt=n(368),mt=n(998),vt=n(131),gt=Object.assign;var yt=function(e){return b.a.createElement(vt.a,gt({width:"150",height:"120",viewBox:"0 0 150 120"},e),b.a.createElement("path",{fill:"#EBEEF5",d:"M102 30.998A2.996 2.996 0 0098.998 28H50.002A2.996 2.996 0 0047 30.998v58.147l.193-.125c1.453-.939 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.939 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.939 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.939 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.453-.939 3.473-.94 4.927 0l2.537 1.64 2.536-1.64c1.413-.913 3.363-.94 4.807-.075V30.998zm-1.508 60.542c-.464-.3-1.209-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.209-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.209-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.209-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.209-.298-1.67 0l-4.165 2.692-4.165-2.692c-.464-.3-1.209-.298-1.67 0l-4.316 2.79A1.997 1.997 0 0144 93V30.997A5.996 5.996 0 0150.002 25h48.996A5.996 5.996 0 01105 30.998V93a2 2 0 01-.396 1.2l-4.112-2.66z"}),b.a.createElement("path",{fill:"#F7F8FA",d:"M55 38.999c0-.552.439-.999.999-.999H75c.552 0 .999.439.999.999V58a.993.993 0 01-.999.999H56a.993.993 0 01-.999-.999V39zm25 .501c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 39.5zm0 9c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 48.5zm0 9c0-.828.675-1.5 1.498-1.5h11.004c.827 0 1.498.666 1.498 1.5 0 .828-.675 1.5-1.498 1.5H81.498A1.495 1.495 0 0180 57.5zm-25 9c0-.828.677-1.5 1.505-1.5h35.99a1.499 1.499 0 110 3h-35.99A1.499 1.499 0 0155 66.5zm0 9c0-.828.665-1.5 1.505-1.5h24.99a1.499 1.499 0 110 3h-24.99A1.499 1.499 0 0155 75.5z"}))};function Ot(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var jt={current:"当前草稿",saved:"自动保存",published:"发布过的版本"},wt=function(e){Object(s.a)(n,e);var t=Ot(n);function n(){var e;Object(a.a)(this,n);for(var r=arguments.length,o=new Array(r),i=0;i=30)return void B.a.alert(null,{title:"一篇内容最多可添加 ".concat(30," 个商品")});t.props.handleCommand("insert-mcn-link-card:".concat(a))}if("insertAdLinkCard"===o){if(a.startsWith("ZhiTask_"))if(p().filter((function(e){return e.getData().id.startsWith("ZhiTask_")})).size>=5)return void B.a.alert("一篇内容最多可添加 ".concat(5," 个「知+自选」卡片"));if(a.startsWith("fee_"))if(p().filter((function(e){return e.getData().id.startsWith("fee_")})).size>=1)return void B.a.alert("一篇内容最多可添加 ".concat(1," 个「付费回答」卡片"));t.props.handleCommand("insert-ad-link-card:".concat(a))}}}})})})})})),Ft=function(e){var t=e.shouldDisabled,n=e.shouldShow,r=void 0===n?function(){return!0}:n,o=e.getContentInfo,a=void 0===o?function(){}:o,i={};return i.containerRef=Object(h.createRef)(),{initialize:function(e){Object.assign(i,e)},toolbar:{label:"用户收益",icon:Mt,shouldShow:r,shouldDisabled:function(){return!!(null==t?void 0:t())||null},section:Lt.a.CUSTOM_MAIN,toolType:Bt.b.ENTITY,onClick:function(){i.containerRef.current.setShowUserProfitCardSelector(!0),Q.a.trackEvent(null,{id:6097,action:"Click"})},priority:1},toolbarV2:{label:"收益",text:"收益",icon:Mt,shouldShow:r,shouldDisabled:function(){return!!t()||null},section:Pt.a.BUSINESS_MEDIA,toolType:Bt.b.ENTITY,onClick:function(){i.containerRef.current.setShowUserProfitCardSelector(!0),Q.a.trackEvent(null,{id:6097,action:"Click"})},priority:1},components:Object(d.b)(Dt,{ref:i.containerRef,getStore:function(){return i},getContentInfo:a})}},Ut=function(e){return b.a.createElement(_t.a,e,b.a.createElement("path",{d:"M9.586 3a1 1 0 0 1 .707.293l1.414 1.414a1 1 0 0 0 .707.293H21a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h6.586zM4 11v6.75c0 .138.112.25.25.25h15.5a.25.25 0 0 0 .25-.25V11H4zm0-2h16V7.25a.25.25 0 0 0-.25-.25h-8.164a1 1 0 0 1-.707-.293L9.464 5.293A1 1 0 0 0 8.757 5H4.25a.25.25 0 0 0-.25.25V9z"}))};Ut.defaultProps={name:"Folder"};var Vt=Ut;var qt=function(e){var t=e.shown,n=e.onClose,r=e.onSubmit,o=Object(h.useCallback)((function(e){var t=e.type,o=e.payload;"browser/closeCurrentPage"!==t?"editor/submitAttachment"!==t||r(o.files):n()}),[r,n]);return Object(d.b)(X.b,{className:"BaiduFileSelector",size:"large",onClose:n,children:t&&Object(d.b)("div",{className:"BaiduFileSelector-content",children:Object(d.b)(K.a,{className:"BaiduFileSelector-iframe",src:"https://www.zhihu.com/appview/editor/attachment/baidu",onMessage:o})})})},Ht=Object(h.forwardRef)((function(e,t){var n=Object(h.useState)(!1),o=Object(r.a)(n,2),a=o[0],i=o[1];return Object(h.useImperativeHandle)(t,(function(){return{setBaiduFileSelectorShown:i}}),[]),Object(d.b)(qt,{shown:a,onClose:function(){return i(!1)},onSubmit:function(t){i(!1),e.onSubmit(t)}})})),Kt=function(){var e={},t=function(t){e.getEditorRef().props.handleCommand("insert-file-link-card:".concat(JSON.stringify(t)))},n=function(){return Object(zt.a)(e.getEditorState()).filter((function(e){return"file-link-card"===e.getType()}))};return e.containerRef=Object(h.createRef)(),{initialize:function(t){Object.assign(e,t)},components:Object(d.b)(Ht,{handleSubmit:t,ref:e.containerRef,onSubmit:t}),toolbar:{section:Lt.a.CUSTOM_MAIN,label:"上传附件",icon:Vt,toolType:Bt.b.ENTITY,onClick:function(){n().size>=10?B.a.alert(null,{title:"一篇内容最多可添加 ".concat(10," 个附件")}):e.containerRef.current.setBaiduFileSelectorShown(!0)},priority:2},toolbarV2:{section:Pt.a.BUSINESS_MEDIA,label:"上传附件",text:"网盘",icon:Vt,toolType:Bt.b.ENTITY,onClick:function(){n().size>=10?B.a.alert(null,{title:"一篇内容最多可添加 ".concat(10," 个附件")}):e.containerRef.current.setBaiduFileSelectorShown(!0)},priority:2}}},Qt=n(1554),Wt=n(862),Gt=function(e){var t=e.className,n=e.onClose,r=e.shown,o=e.allInviters,a=e.onChoose;return Object(d.b)(H.b,{title:"添加「谢邀」卡片",subtitle:"选择邀请人,添加感谢他的卡片",onClose:n,className:t,css:{width:"536px"},children:r&&o.map((function(e){return Object(d.c)(j.Flex,{css:{padding:"12px 0"},children:[Object(d.b)(Wt.a,{author:e}),Object(d.b)(N.c,{color:"color",preset:"blue",css:{height:"32px",marginLeft:"auto"},onClick:function(){Q.a.trackEvent(null,{id:7682,action:"Click"}),a&&a(e)},children:"选择"})]},e.id)}))})},Yt=n(1090),Zt=function(e){var t=e.shown,n=e.hasShown,r=e.children,o=Object(h.useRef)(n),a=Object(h.useRef)(t);return Object(h.useEffect)((function(){!t&&a.current&&(o.current=!0),a.current=t}),[t]),t&&!o.current&&r},Xt=function(e){var t=e.className,n=e.shown,o=e.hasShown,a=e.inviters,i=e.onConfirm,c=e.onCancel,s=Object(h.useState)(n),l=Object(r.a)(s,2),u=l[0],f=l[1],p=Object(h.useRef)(n);return Object(h.useEffect)((function(){p.current!==n&&f(n),p.current=n}),[n]),(null==a?void 0:a.length)>0&&Object(d.b)(Zt,{shown:u,hasShown:o,children:Object(d.c)(j.Flex,{className:t,pb:"12px",px:"16px",mx:"-20px",mb:"16px",color:"GBK05A",alignItems:"center",sx:{borderBottom:"1px solid",borderColor:"GBK09A",fontSize:"15px",lineHeight:"20px",position:"relative",zIndex:"0"},children:[a.map((function(e,t){return Object(d.b)(j.Image,{src:a[0].avatarUrl,size:24,sx:{borderRadius:"50%",border:"2px solid",borderColor:"GBK99A",position:"relative",zIndex:a.length-t,marginLeft:t?"-14px":"0"}},e.id)})),Object(d.b)(j.Text,{ml:"8px",children:a[0].name+(a.length>1?"等 ".concat(a.length," 人"):"")}),"邀请你回答",Object(d.b)(j.Text,{color:"primary",ml:"16px",css:{cursor:"pointer"},onClick:function(){Q.a.trackEvent(null,{id:7683,action:"Click",path:[{module_name:1===a.length?"0":"1"}]},{button:{text:"添加谢邀"}}),i&&i(a)},children:"添加谢邀"}),Object(d.b)(j.Text,{ml:"16px",css:{cursor:"pointer"},onClick:function(){f(!1),Q.a.trackEvent(null,{id:7683,action:"Click",path:[{module_name:1===a.length?"0":"1"}]},{button:{text:"忽略"}}),c&&c()},children:"忽略"})]})})};var Jt=Object(h.forwardRef)((function(e,t){var n=e.getAllInviters,o=e.inviterQuery,a=e.getStore,i=e.getInitialThankInviterInfo,c=Object(h.useState)(!1),s=Object(r.a)(c,2),l=s[0],u=s[1],f=Object(h.useState)(i()),p=Object(r.a)(f,2),b=p[0],m=p[1],v=Object(h.useState)(null),g=Object(r.a)(v,2),y=g[0],O=g[1],j=Object(ge.c)((function(){return u(!1)}));return Object(h.useImperativeHandle)(t,(function(){return{openInviterListModal:function(){return u(!0)},getInvitersData:function(){return y},getThankInviterInfo:function(){return b}}}),[y,b]),Object(h.useEffect)((function(){n().then((function(e){var t=e.payload;O(t.data);var n=a();n.setEditorState(n.getEditorState())}))}),[]),Object(d.c)(d.a,{children:[b&&Object(d.b)(Yt.a,{css:{marginBottom:16,marginTop:"4px !important"},showDeleteButton:!0,item:{isLabeled:!0},inviter:b,onDelete:function(){m(null)}}),(null==y?void 0:y.length)>0&&Object(d.b)(Xt,{hasShown:Boolean(o)||Boolean(b),shown:!b,inviters:y,onConfirm:function(e){(null==e?void 0:e.length)&&(1!==e.length?u(!0):m(e[0]))}}),Object(d.b)(Gt,{onClose:j,shown:l,allInviters:y,onChoose:function(e){m(e),j()}})]})})),$t=function(e){var t=e.getShouldShowToolbarButton,n=e.getAllInviters,r=e.inviterQuery,o=e.getInitialThankInviterInfo,a={},i=Object(h.createRef)(null);return{initialize:function(e){Object.assign(a,e)},componentsBeforeEditor:[{component:Object(d.b)(Jt,{getAllInviters:n,inviterQuery:r,ref:i,getStore:function(){return a},getInitialThankInviterInfo:o}),priority:0}],getExtraPluginData:function(){var e,t,n;return t=o,n=null===(e=i.current)||void 0===e?void 0:e.getThankInviterInfo(),t?n?n.id===t.id?{}:{thankInviterStatus:"open",thankInviter:n.id}:{thankInviterStatus:"close"}:n?{thankInviterStatus:"open",thankInviter:n.id}:{}},toolbar:{label:"添加谢邀",section:Lt.a.CUSTOM_MAIN,priority:3,icon:Qt.a,onClick:function(){i.current.openInviterListModal()},shouldShow:t,shouldDisabled:function(){var e,t,n;return Boolean(!(null===(e=i.current)||void 0===e||null===(t=e.getInvitersData())||void 0===t?void 0:t.length)||(null===(n=i.current)||void 0===n?void 0:n.getThankInviterInfo()))}},toolbarV2:{label:"添加谢邀",section:Pt.a.BUSINESS_MEDIA,text:"谢邀",icon:Qt.a,priority:3,onClick:function(){i.current.openInviterListModal()},shouldShow:t,shouldDisabled:function(){var e,t,n;return Boolean(!(null===(e=i.current)||void 0===e||null===(t=e.getInvitersData())||void 0===t?void 0:t.length)||(null===(n=i.current)||void 0===n?void 0:n.getThankInviterInfo()))}}}},en=n(1026),tn=n(1302),nn=n(7),rn=n(997),on=n(373),an=n(799),cn=function(e){var t=e.tab,n=e.tabType,o=e.tabChange,a=e.searchPublicList,i=Object(h.useState)(""),c=Object(r.a)(i,2),s=c[0],l=c[1];return Object(d.c)(j.Flex,{alignItems:"center",justifyContent:"space-between",css:function(e){return{height:"50px",padding:"0 20px",boxShadow:"inset 0px -0.5px 0px ".concat(e.colors.GBK09A)}},children:[Object(d.b)(j.Flex,{children:t.map((function(e){return Object(d.b)("div",{className:O()("MaterialLibraryHeader-classify",{active:n===e.type}),onClick:function(){o(e.type)},children:e.name},e.type)}))}),"public"===n&&Object(d.b)(j.Box,{width:"198px",children:Object(d.b)(je.a,{className:"MaterialLibraryHeader-search materials_library_public_search",placeholder:"搜索公共素材库",onChange:function(e){l(e.target.value)},after:Object(d.b)(an.a,{text:!0,onClick:function(){a({keyword:s,isFirst:!0})}}),onKeyUp:function(e){13===e.keyCode&&a({keyword:s,isFirst:!0})}})})]})};cn.propTypes={tab:p.a.array,tabType:p.a.string,tabChange:p.a.func,searchPublicList:p.a.func};var sn=cn,ln=n(828),un=n(783),dn=Object.assign||function(e){for(var t=1;t15?B.a.alert("分组已达上限,请删除已有的分类后再行添加"):B.a.confirm(Object(d.c)("div",{className:"MaterialLibrary-alert",children:[Object(d.b)("h2",{children:"添加分类"}),Object(d.b)(bn,{type:"add",className:"MaterialLibraryNav-input-module"})]}),{text:{ok:"添加",cancel:"取消"}}).then((function(){var e,t=null===(e=document.querySelector(".MaterialLibrary-input-module"))||void 0===e?void 0:e.value;s("/api/v4/materials/pc_editor/folders",{method:"POST",body:{name:t,material_type:"image"}}).then((function(){i()})).catch((function(e){var t,n,r;B.a.alert((null===(t=e.payload)||void 0===t?void 0:t.message)||(null===(n=e.payload)||void 0===n||null===(r=n.error)||void 0===r?void 0:r.message)||"网络错误,稍后重试吧!")}))}),(function(){}))},children:[Object(d.b)(pn,{className:"nav-icon"}),"添加分类"]})]})};mn.propTypes={folders:p.a.object,getFoldersList:p.a.func,navClick:p.a.func};var vn=mn,gn=n(35),yn=n(999),On=n(242),jn=n(254),wn=Object.assign||function(e){for(var t=1;t .MaterialLibrary-imgListItemHover":{display:"flex"}}},children:[Object(d.b)(j.Image,{src:null==t?void 0:t.origin,loading:"lazy",size:"100%",css:{position:"absolute",left:0,right:0,objectFit:"cover",borderRadius:"inherit",opacity:(null==t?void 0:t.deleted)?"0.3":"1"}}),Object(d.c)("div",{className:"MaterialLibrary-imgListItemHover",children:[Object(d.b)(W.a,{as:j.Flex,zaType:"Button",zaText:"添加图片",alignItems:"center",justifyContent:"center",title:"添加",onClick:function(){o(t)},width:"24px",height:"24px",css:function(e){return{borderRadius:"2px",position:"absolute",top:"2px",right:"2px",backgroundColor:e.colors.GBL01A,display:(null==t?void 0:t.deleted)?"none":"flex"}},children:Object(d.b)(Sn.a,{fill:"currentColor",size:18})}),(null==t?void 0:t.deleted)?Object(d.b)(W.a,{as:j.Flex,zaType:"Button",zaText:"选择图片",alignItems:"center",justifyContent:"center",title:"选择",onClick:function(){B.a.confirm(Object(d.c)("div",{className:"MaterialLibrary-alert",children:[Object(d.b)("h2",{children:"是否从最近使用删除图片?"}),Object(d.b)("p",{children:"插入至内容中的图片不会受到影响"})]}),{text:{ok:"删除",cancel:"取消"}}).then((function(){i("/api/v4/materials/pc_editor/recently-materials",{method:"DELETE",body:{material_type:"image",material_ids:[null==t?void 0:t.materialId]}}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?a({isFirst:!0}):B.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){}))},width:"24px",height:"24px",css:function(e){return{borderRadius:"2px",position:"absolute",bottom:"2px",right:"2px",backgroundColor:e.colors.GBL01A}},children:Object(d.b)(ct.a,{fill:"currentColor",size:18})}):Object(d.b)(W.a,{as:j.Flex,zaType:"Button",zaText:"选择图片",alignItems:"center",justifyContent:"center",title:"选择",onClick:function(){r("latest"===n?t.materialId:t.uniqueId)},width:"24px",height:"24px",css:function(e){return{borderRadius:"2px",position:"absolute",bottom:"2px",right:"2px",border:"2px solid ".concat(e.colors.GBK99A)}}})]}),(null==t?void 0:t.checked)&&Object(d.b)(W.a,{as:j.Flex,zaType:"Button",zaText:"选择图片",alignItems:"center",justifyContent:"center",title:"添加",onClick:function(){r("latest"===n?t.materialId:t.uniqueId)},width:"24px",height:"24px",css:function(e){return{borderRadius:"2px",position:"absolute",bottom:"4px",right:"4px",backgroundColor:e.colors.GBL01A,color:e.colors.GBK99A}},children:Object(d.b)(En.a,{fill:"currentColor",size:13})}),"dynamic"===t.subtype&&Object(d.b)(Rn,{}),t.deleted&&Object(d.b)(Tn,{})]}),Object(d.b)(j.Box,{mt:"4px",fontSize:"10px",lineHeight:"20px",css:Object(pe.d)(1),title:"文件名称",children:null==t?void 0:t.name})]})};An.propTypes={data:p.a.string,tabType:p.a.string,chooseImage:p.a.func,insertImageSingle:p.a.func,getLatestList:p.a.func};var Nn=An,_n=function(e){var t=e.tabType,n=(e.onLoad,e.checkboxValue),o=e.handleAllData,a=e.keywordCatch,i=e.isEmpty,c=e.isPageError,s=Object(h.useState)("all"),l=Object(r.a)(s,2);l[0],l[1];return Object(d.c)(j.Flex,{justifyContent:"space-between",css:{padding:"10px 20px 10px 8px"},children:[Object(d.c)("div",{children:[!1,a&&"public"===t&&!i&&!c&&Object(d.c)(j.Box,{color:"GBK03A",width:"200px",css:{margin:"0px 12px",fontSize:"12px"},children:["以下为「",a,"」相关搜索内容"]})]}),"private"===t||"latest"===t||"public"===t?Object(d.c)(j.Flex,{alignItems:"center",css:function(e){return{fontSize:"13px",color:e.colors.GBL04A}},children:[Object(d.b)(Oe.a,{type:"checkbox",checked:n,onChange:function(e){o(e.target.checked)},size:15,style:{marginRight:"5px"}}),"本页全选"]}):Object(d.b)("div",{})]})};_n.propTypes={tabType:p.a.string,onLoad:p.a.func,checkboxValue:p.a.bool,handleAllData:p.a.func,keywordCatch:p.a.string,isEmpty:p.a.bool};var In=_n,Mn=n(178),Ln=function(e){var t,n,r,o=e.dataList,a=e.getFoldersList,i=e.getLatestList,c=e.navActiveId,s=e.folders,l=e.sourceType,u=e.sourceId,f=e.isMine,p=e.tabType,b=e.insertImage,m=e.onClose,v=Object(on.b)(),g=null==s||null===(t=s.child)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.id,y=Object(h.useMemo)((function(){return o.filter((function(e){return!0===e.checked}))}),[o]),w=function(e){var t=[];return y.forEach((function(n){"latest"===p||e?t.push(n.materialId):t.push(n.uniqueId)})),t};return Object(d.c)(j.Flex,{css:{padding:"13px 20px"},children:[Object(d.b)("button",{className:O()("MaterialLibrary-handleButton insert",{active:y.length>0}),css:function(e){return{background:e.colorMod(e.colors.GBL01A).alpha(.3)}},onClick:function(){var e=[];y.forEach((function(t){e.push(null==t?void 0:t.origin)})),b(e),v("/api/v4/materials/pc_editor/recently-materials",{method:"POST",body:{source_type:l,source_id:String(u),material_type:"image",material_ids:w(!0)}}),m()},children:"插入选择图片"}),f&&y.length>0&&(null==s||null===(r=s.child)||void 0===r?void 0:r.length)>1&&Object(d.b)("button",{className:"MaterialLibrary-handleButton change",onClick:function(){var e,t,n;0!==y.length&&(g=null==s||null===(e=s.child)||void 0===e||null===(t=e[0])||void 0===t?void 0:t.id,B.a.confirm(Object(d.c)("div",{className:"MaterialLibrary-alert",children:[Object(d.c)("h2",{children:["为已选择共 ",y.length," 张图片分类"]}),Object(d.b)(Mn.b,{buttonClassName:"MaterialLibraryContent-select",listClassName:"MaterialLibraryContent-option",onChange:function(e){g=e},children:null==s||null===(n=s.child)||void 0===n?void 0:n.map((function(e){var t=e.name,n=e.id;return Object(d.b)(Mn.a,{value:n,text:t,children:t},n)}))})]}),{text:{ok:"确定",cancel:"取消"}}).then((function(){v("/api/v4/materials/pc_editor/material-move",{method:"POST",body:{folder_id:c,target_folder_id:g,folder_material_ids:w()}}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?a(null,c):B.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){})))},children:"变更分类"}),(f||"latest"===p)&&y.length>0&&Object(d.b)("button",{className:"MaterialLibrary-handleButton delete",onClick:function(){0!==y.length&&B.a.confirm(Object(d.c)("div",{className:"MaterialLibrary-alert",children:[Object(d.c)("h2",{children:["是否删除已选择共 ",y.length," 张图片?"]}),Object(d.b)("p",{children:"插入至内容中的图片不会受到影响"})]}),{text:{ok:"删除",cancel:"取消"}}).then((function(){var e=f?"/api/v4/materials/pc_editor/folders/".concat(c,"/materials"):"/api/v4/materials/pc_editor/recently-materials";v(e,{method:"DELETE",body:Object(Fe.a)({material_type:"image"},"latest"===p?"material_ids":"folder_material_ids",w())}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?"latest"===p?i({isFirst:!0}):a(null,c):B.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")}))}),(function(){}))},children:"删除图片"})]})};Ln.propTypes={dataList:p.a.array};var Pn=Ln,Bn={private:"上传图片",latest:"上传图片",public:"搜索其他内容"},zn=function(e){var t=e.tabType,n=e.dataList,r=e.onLoad,o=e.isMine,a=e.folders,i=e.getFoldersList,c=e.getLatestList,s=e.navActiveId,l=e.insertImage,u=e.isLoading,f=e.isFetching,p=e.sourceType,h=e.sourceId,b=e.keywordCatch,m=e.isPageError,v=e.handleUploadImage,g=e.refreshImageList,y=e.clickHanlder,O=e.insertImageSingle,w=e.handleAllData,C=e.chooseImage,k=e.checkboxValue,x=e.uploadImageRef,S=e.onClose,E=e.restProps,R={private:"图片库为空,请上传个人图片吧",public:"没有找到".concat(b?"「"+b+"」":"","相关内容"),latest:"最近使用为空,请搜索网络素材或上传图片"};return Object(d.c)(j.Flex,{flexDirection:"column",width:"100%",children:[Object(d.b)(In,{tabType:t,onLoad:r,checkboxValue:k,handleAllData:w,keywordCatch:b,isEmpty:0===n.length&&!u,isPageError:m}),0===n.length&&!u&&!m&&Object(d.c)(d.a,{children:[Object(d.b)("input",{css:{display:"none"},ref:x,type:"file",onChange:v,accept:"image/*",multiple:!0}),Object(d.b)(yn.a.EI1A,{image:"default",content:R[t],buttonText:Bn[t],buttonOnClick:y})]}),!u&&!f&&m&&Object(d.b)(yn.a.EI1A,{image:"loadingError",content:"网络连接失败",buttonText:"刷新页面",buttonOnClick:g}),n.length>0&&Object(d.c)(bt.b,Object.assign({css:{flex:1,overflow:"auto"},getContainer:function(e){return e},onLoad:r,isLoading:u},E,{children:[o&&Object(d.b)(xn,{handleUploadImage:v},n.length),n.map((function(e,n){return Object(d.b)(Nn,{data:e,tabType:t,chooseImage:C,insertImage:l,insertImageSingle:O,getLatestList:c},n)})),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"}),Object(d.b)("i",{className:"MaterialLibraryList-placeholder"})]})),f&&Object(d.b)("div",{className:"MaterialLibraryList-loading",children:"加载中..."}),(null==n?void 0:n.length)>0&&Object(d.b)(Pn,{dataList:n,getFoldersList:i,getLatestList:c,navActiveId:s,folders:a,sourceType:p,sourceId:h,isMine:o,tabType:t,insertImage:l,onClose:S})]})},Dn=function(e){var t=e.tabType,n=e.materialList,o=e.onLoad,a=e.isMine,i=void 0!==a&&a,c=e.folders,s=e.getFoldersList,l=e.getLatestList,u=e.navActiveId,f=e.insertImage,p=e.tabChange,b=e.isLoading,m=e.isFetching,v=e.sourceType,g=e.sourceId,y=e.keywordCatch,O=e.isPageError,j=e.onClose,w=Object(gn.a)(e,["tabType","materialList","onLoad","isMine","folders","getFoldersList","getLatestList","navActiveId","insertImage","tabChange","isLoading","isFetching","sourceType","sourceId","keywordCatch","isPageError","onClose"]),C=Object(on.b)(),k=Object(h.useRef)(),x=Object(h.useState)(n||[]),S=Object(r.a)(x,2),E=S[0],R=S[1],T=Object(h.useState)(!1),A=Object(r.a)(T,2),N=A[0],_=A[1];Object(h.useEffect)((function(){var e=Object($e.a)(n);_(!1),R(e)}),[n,R]);return Object(d.b)(zn,{tabType:t,dataList:E,onLoad:o,isMine:i,folders:c,getFoldersList:s,getLatestList:l,navActiveId:u,insertImage:f,isLoading:b,isFetching:m,sourceType:v,sourceId:g,keywordCatch:y,isPageError:O,handleUploadImage:function(e){var t=e.target.files;if(null==t?void 0:t.length)if((null==t?void 0:t.length)>100)B.a.alert("添加图片请不要超过 100 张哦~");else for(var n=[],r=function(e){Object(On.a)(t[e]).then((function(r){Object(jn.a)(r).then((function(r){var o;(n=n.concat({name:null===(o=t[e])||void 0===o?void 0:o.name,source:null==r?void 0:r.original_hash})).length===t.length&&function(e){C("/api/v4/materials/pc_editor/folders/".concat(u,"/materials"),{method:"POST",body:{material_type:"image",materials:e}}).then((function(e){var t,n;(null===(t=e.payload)||void 0===t?void 0:t.success)?s(null,u):B.a.alert((null===(n=e.payload)||void 0===n?void 0:n.message)||"网络错误,稍后重试吧!")})).catch((function(e){var t,n,r;B.a.alert((null===(t=e.payload)||void 0===t?void 0:t.message)||(null===(n=e.payload)||void 0===n||null===(r=n.error)||void 0===r?void 0:r.message)||"网络错误,稍后重试吧!")}))}(n)}))}))},o=0;o0&&(!(null==n?void 0:n.id)||o);return Object(h.useEffect)((function(){o&&s(function(e){var t,n,r,o,a="open"===(null==e||null===(t=e.disclaimerInfo)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.status);return{isDisclaimerChecked:a,disclaimerType:a?null==e||null===(r=e.disclaimerInfo)||void 0===r||null===(o=r[0])||void 0===o?void 0:o.type:"none"}}(o))}),[Boolean(o)]),Object(h.useEffect)((function(){a||r(Object(ie.M)(t.id))}),[]),p?Object(d.b)(cr,{disclaimers:a,checked:u,disclaimerChecked:f,onChange:function(e){s({isDisclaimerChecked:"none"!==e.type,disclaimerType:e.type})}}):Object(d.b)(j.Box,{width:"157px",mr:"40px"})},lr=n(450);function ur(e){var t=e.shown,n=e.onClose;return Object(d.b)(X.b,{title:"商业声明",subtitle:"",onClose:n,children:t&&Object(d.c)(j.Box,{children:[Object(d.b)(j.Text,{fontSize:15,lineHeight:"22px",color:"GBK02A",children:"「商业声明」是为自己创作的内容添加商业声明的工具。当你创作的内容中包含商业推广信息时,建议进行声明,选择「本内容含有商业推广」,并选择具体推广方式。对商业推广信息的正确声明有助于内容展示。"}),Object(d.b)(N.c,{preset:"primary",color:"blue",onClick:n,css:{width:166,height:32,lineHeight:"32px",fontSize:14,margin:"25px 0 0 93px"},children:"知道了"})]})})}var dr=n(574),fr=function(e){var t=e.checked,n=e.onChange,r=e.text;return Object(d.c)(j.Flex,{flex:1,alignItems:"center",as:"label",css:{cursor:"pointer"},children:[Object(d.b)(Ie.a,{size:16,checked:t,onChange:n}),Object(d.b)(j.Text,{ml:"8px",fontSize:"15px",lineHeight:"21px",children:r})]})},pr=function(e){var t=e.text,n=e.checked,r=e.onClick,o=e.showCheckIcon,a=Object(gn.a)(e,["text","checked","onClick","showCheckIcon"]);return Object(d.c)(j.Flex,Object.assign({justifyContent:"space-between",alignItems:"center",px:"12px",height:30,lineHeight:"30px",fontSize:14,color:n?"GBL01A":"GBK06A",css:function(e){return Object.assign({cursor:"pointer",borderRadius:15,backgroundColor:n?e.colorMod(e.colors.GBL01A).alpha(.08):"transparent"},{border:"1px solid ".concat(n?"transparent":e.colors.GBK09A)})}},a,{onClick:r,children:[Object(d.b)(j.Text,{children:t}),n&&o&&Object(d.b)(dr.a,{text:!0,center:!0})]}))};function hr(e){var t=e.shown,n=e.onClose,o=e.isCurrentReported,a=e.commercialTypes,i=e.currentSelectedTypes,c=e.setCommercialReportInfo,s=Object(h.useState)(!1),l=Object(r.a)(s,2),u=l[0],f=l[1],p=Object(h.useState)([]),b=Object(r.a)(p,2),m=b[0],v=b[1];Object(h.useEffect)((function(){f(o)}),[o]),Object(h.useEffect)((function(){v(i)}),[i]);return t?Object(d.b)(X.b,{title:"商业推广",subtitle:"",onClose:n,children:Object(d.c)(j.Box,{children:[Object(d.c)(j.Flex,{justifyContent:"space-between",alignItems:"center",children:[Object(d.b)(fr,{checked:!u,onChange:function(){return f(!1)},text:"本内容不含商业推广"}),Object(d.b)(fr,{checked:u,onChange:function(){return f(!0)},text:"本内容含有商业推广"})]}),u&&Object(d.c)(j.Box,{mt:"20px",children:[Object(d.b)(j.Text,{mb:"10px",fontSize:15,lineHeight:"21px",color:"GBK02A",children:"推广方式(必选)"}),Object(d.b)(j.Flex,{flexWrap:"wrap",children:a.map((function(e){var t=e.value,n=e.name;return Object(d.b)(pr,{flexShrink:0,mb:"10px",mr:"8px",text:n,checked:m.includes(t),onClick:function(){return function(e){if(m.includes(e)){var t=m.filter((function(t){return t!==e}));v(t)}else v(m.concat([e]))}(t)}},t)}))})]}),Object(d.c)(H.a,{direction:"horizontal",css:{marginTop:32},children:[Object(d.b)(N.c,{onClick:n,color:"grey",children:"取消"}),Object(d.b)(N.c,{disabled:u&&0===m.length,preset:"primary",color:"blue",onClick:function(){c({isCurrentReported:u,currentSelectedTypes:m}),n()},children:"确认"})]})]})}):null}var br=function(e){var t,n=e.question,o=e.answerId,a=n.relationship.isAnonymous,i=Object(m.useDispatch)(),c=Object(h.useContext)(Te).updateFormData,s=Object(m.useSelector)((function(e){return e.commercialReport})),l=(s||{}).commercialTypes,u=void 0===l?[]:l,f=(null==s||null===(t=s.answers)||void 0===t?void 0:t[o])||{},p=f.isCommercialReported,b=f.selectedCommercialTypes,v=void 0===b?[]:b,g=Object(h.useState)(!1),y=Object(r.a)(g,2),O=y[0],w=y[1],C=Object(h.useState)([]),k=Object(r.a)(C,2),x=k[0],S=k[1],E=Object(h.useState)(!1),R=Object(r.a)(E,2),T=R[0],A=R[1],N=Object(h.useState)(!1),_=Object(r.a)(N,2),I=_[0],M=_[1];Object(h.useEffect)((function(){(0===u.length||o)&&i(Object(lr.b)("answer",o))}),[]),Object(h.useEffect)((function(){o&&(w(p),S(v.map((function(e){return e.value}))))}),[o,p,JSON.stringify(v)]);return 0===u.length?null:Object(d.c)(j.Flex,{px:"24px",pb:"12px",mx:"auto",width:"100%",maxWidth:694,css:{opacity:a?.3:1},children:[Object(d.c)(j.Flex,{fontSize:14,color:"GBL05A",children:[Object(d.b)(et.a,{text:!0,center:!0,onClick:function(){return M(!0)},css:{cursor:"pointer"}}),Object(d.c)(j.Text,{ml:"10px",color:"#606a80",children:["商业声明:本内容",O&&!a?"含有":"不含","商业推广"]})]}),Object(d.c)(j.Flex,{fontSize:14,ml:"8px",color:"#8490a8",css:{cursor:"pointer"},onClick:function(){a?i(Object(le.h)("匿名回答无法添加商业推广,请先取消匿名","red")):A(!0)},children:[Object(d.b)(Gn.a,{text:!0,center:!0}),Object(d.b)(j.Text,{ml:"4px",children:"修改"})]}),Object(d.b)(hr,{onClose:function(){return A(!1)},shown:T,isCurrentReported:O,commercialTypes:u,currentSelectedTypes:x,setCommercialReportInfo:function(e){var t=e.isCurrentReported,r=e.currentSelectedTypes;c({commercialReportInfo:{isReport:t,commercialTypes:r}}),w(t),S(r),i(Object(lr.c)({questionId:n.id,isCommercialReported:t}))}}),Object(d.b)(ur,{onClose:function(){return M(!1)},shown:I})]})},mr=function(e){var t,n=Object(ue.b)(e),r=Object.values(e.entities.answers).filter((function(e){var t;return(null===(t=e.author)||void 0===t?void 0:t.urlToken)===(n&&n.urlToken)}))[0]||{};return null==r||null===(t=r.rewardInfo)||void 0===t?void 0:t.tagline},vr=function(e){var t=e.answer,n=(t=void 0===t?{}:t).rewardInfo,o=(n=void 0===n?{}:n).isRewardable,a=void 0!==o&&o,i=e.question,c=i.id,s=i.relationship.isAnonymous,l=Object(h.useState)(!1),u=Object(r.a)(l,2),f=u[0],p=u[1],b=Object(m.useSelector)((function(e){return e.switches})).isAnswerRewardable,v=Object(m.useSelector)(mr),g=Object(h.useState)(!1),y=Object(r.a)(g,2),O=y[0],j=y[1],w=Object(h.useContext)(Te),C=w.getFormData,k=w.updateFormData,x=Object(h.useState)(a),S=Object(r.a)(x,2),E=S[0],R=S[1],T=Object(m.useDispatch)(),A=C().rewardTagline;return Object(h.useEffect)((function(){k({rewardTagline:v})}),[v,k]),Object(h.useEffect)((function(){T(Object(me.b)(["isAnswerRewardable"]))}),[T]),Object(h.useEffect)((function(){b&&(F.a.get("rewardNotication")||(j(!0),F.a.set("rewardNotication",!0)))}),[b]),Object(ge.i)((function(){return j(!1)}),O?2e3:null),b?Object(d.c)("div",{className:"AnswerForm-openRewardButton",children:[Object(d.c)("label",{className:"AnswerForm-openRewardLabel",htmlFor:"AnswerForm-openRewardInput",children:[Object(d.b)(Oe.a,{className:"AnswerForm-openRewardCheckbox",checked:E,onChange:function(e){if(!s)return!e.target.checked||A?(k({rewardTagline:""}),R(!1),void Object(xe.n)(c,!1)):void p(!0);T(Object(le.h)("匿名回答无法开启赞赏,请先取消匿名","red"))},id:"AnswerForm-openRewardInput",size:16}),"开启赞赏"]}),f&&Object(d.b)(ke,{submitRewardText:function(e){k({rewardTagline:e}),R(!0),T(Object(xe.n)()),p(!1)},onClose:function(){return p(!1)},tagline:A,edit:!1}),O&&Object(d.b)("span",{className:"AnswerForm-Notication",children:"你的回答可以开启赞赏了"})]}):null},gr=function(e){var t=e.answer,n=Object(h.useContext)(Te),r=n.updateFormData,o=(0,n.getFormData)().pushActivity,a=Object(ze.a)(),i=!(null==t?void 0:t.id);Object(h.useEffect)((function(){i&&r({pushActivity:!0})}),[i,r]);return i?Object(d.c)("label",{htmlFor:"pushFollowSwitch",css:{display:"flex",alignItems:"center"},children:[Object(d.b)(Oe.a,{checked:o,onChange:function(e){var t=e.target.checked;Q.a.trackEvent(null,{id:8361,action:"Click"},{button:{text:t?"开":"关"}}),t?r({pushActivity:!0}):(Q.a.trackCardShow(null,{id:8362}),a.confirm("设置后,关注你的其他用户将无法在「首页 - 关注」阅读这篇回答",{title:"关闭推送给关注者吗",ok:"关闭推送"}).then((function(){Q.a.trackEvent(null,{id:8363,action:"Click"}),r({pushActivity:!1})})).catch((function(){})))},id:"pushFollowSwitch",size:16}),Object(d.b)(j.Text,{fontSize:"14px",color:"GBL05A",ml:"9px",children:"推送给我的关注者"})]}):null},yr=Object(nr.a)(null)((function(e){var t=e.answer,n=e.question,r=Object(rr.a)();return Object(d.c)(d.a,{children:[Object(d.c)("div",{className:"AnswerForm-footerContent AnswerForm-container",children:[Object(d.b)(sr,{answer:t,question:n}),Object(d.b)(vr,{answer:t,question:n}),Object(d.b)(gr,{answer:t,question:n})]}),r&&Object(d.b)(br,{answerId:null==t?void 0:t.id,question:n})]})})),Or=n(826),jr=n(825),wr=function(e){var t=e.question,n=Object(m.useSelector)(ue.b);return t.relationship.isAnonymous?Object(d.b)(Wt.a,{className:"AnswerAdd-info",noLink:!0,author:we.h}):n&&n.isOrg?Object(d.b)(Wt.a,{className:"AnswerAdd-info",noLink:!0,author:n}):Object(d.b)(Wt.a,{className:"AnswerAdd-info",noLink:!0,author:n,children:Object(d.b)(j.Text,{color:"GBK04A",children:Object(d.b)(Ge,{questionId:t.id,currentUser:n})})})};function Cr(e){var t=e.question,n=e.handleHistoryVersion,r=e.handleImportDoc,o=Object(h.useRef)();return Object(d.b)(d.a,{children:Object(d.c)(j.Flex,{p:"11px 20px",justifyContent:"space-between",mx:"auto",width:"100%",maxWidth:688,children:[Object(d.b)(wr,{question:t}),Object(d.c)(j.Flex,{justifyContent:"center",alignItems:"center",p:"7px 12px",height:34,fontSize:14,fontWeight:500,color:"GBL05A",bg:"GBK10A",css:{borderRadius:3},children:[Object(d.c)(W.a,{as:j.Text,zaAction:"Unknown",zaText:"文档导入",zaType:"Button",pr:"8px",css:function(e){return{cursor:"pointer",borderRight:"1px solid ".concat(e.colors.GBK08A)}},onClick:r,children:[Object(d.b)(Or.a,{center:!0,text:!0,css:{marginRight:4}}),"文档导入"]}),Object(d.b)(_.c,{arrowed:!1,toggler:Object(d.b)(N.c,{preset:"plain",onRef:o,children:Object(d.b)(jr.a,{css:{paddingLeft:8,position:"relative",top:1}})}),children:Object(d.b)(W.a,{as:_.b,zaAction:"Unknown",zaText:"历史版本",zaType:"Button",onClick:n,css:{padding:"10px 20px"},children:"历史版本"})})]})]})})}function kr(){var e=Object(o.a)(["草稿保存于",""]);return kr=function(){return e},e}function xr(){var e=Object(o.a)(["草稿保存于",""]);return xr=function(){return e},e}function Sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Er={allowed:"允许规范转载",need_payment:"允许付费转载",disallowed:"禁止转载"},Rr=function(e){Object(s.a)(n,e);var t=Sr(n);function n(e,r){var o;Object(a.a)(this,n),(o=t.call(this,e,r)).editableReady=function(){var e,t,n,r,a=o.props,i=a.reporter,c=a.draft;(null===(e=(t=o).cancelEditableStatscTimeout)||void 0===e||e.call(t),i.reportSuccess($n.editableInit),c)&&(null===(n=(r=o).cancelDraftLoadStatscTimeout)||void 0===n||n.call(r),i.reportSuccess($n.draftLoad))},o.onCompositionStart=function(){o.composition=!0,o.syncDraft.cancel()},o.onCompositionEnd=function(){o.composition=!1,o.prevValue&&o.syncDraft(o.prevValue),o.prevValue=null},o.onChangeContent=function(e){o.loggingDeltaTime||(o.loggingDeltaTime=!0,o.startCompositionTime=Math.floor((new Date).getTime()/1e3)),o.hasEdited=!0,o.setState({content:e,isEmpty:e.isEmpty,isTyping:!0}),o.composition?o.prevValue=e:o.syncDraft(e)},o.onInsertDoc=function(){return o.editable.handleKeyCommand("insert-doc")},o.onAfterChangeContent=function(e){var t=e.getSelection().getIsBackward(),n=document.getSelection();if(n.rangeCount){var r=n.getRangeAt(0).cloneRange();r.collapse(t);var o=r.getBoundingClientRect();if(0===o.height){var a=r.commonAncestorContainer;1===a.nodeType&&(o=a.getBoundingClientRect())}if(0!==o.height){var i=o.bottom-(window.innerHeight-117);i>0&&window.scrollBy(0,i)}}},o.onDeleteDraftModalShow=function(){o.setState({deleteDraftModalShown:!0})},o.onDeleteDraft=function(){var e=o.props,t=e.isReediting,n=e.activeTabKey;t||(n===G.a.videoAnswer?o.editable.clearAllContent():o.editable.reset(),o.setState({draft:"",content:{toHTML:function(){return""}},isEmpty:!0})),o.deleteDraft();var r=o.props.onDeleteDraft;r&&r()},o.onDeleteDraftModalHide=function(){o.setState({deleteDraftModalShown:!1})},o.checkVideoSectionReady=function(e){if(!e)return B.a.alert("没有上传视频,请上传后提交",{title:"无视频"}),!1;var t=e.videoId,n=e.isOriginal;if(t){if("zvideo"===e.type&&null==n)return B.a.alert("没有视频类型,请选择视频为原创或转载后提交",{title:"无视频类型"}),!1}else{var r=o.editable.checkVideoStatus();if(r.isUploading)return B.a.alert("视频上传中,请上传完成后提交",{title:"视频上传中"}),!1;if(r.hasError)return B.a.alert("视频上传失败,请重新上传后提交",{title:"上传失败"}),!1}return!0},o.checkEditorContentReady=function(){return o.editable.hasVideo("upload")?(o.handleError("video-uploading"),!1):o.editable.hasImage("upload")?(o.handleError("image-uploading"),!1):o.editable.hasImage("error")||o.editable.hasVideo("error")&&!o.editable.hasVideo("error-review")?(B.a.alert("草稿中含有上传失败的内容,请更改后重新提交",{title:"上传失败"}),!1):!o.editable.hasVideo("error-review")&&!o.editable.hasVideo("censor")||(B.a.alert("视频中包含未通过审核的信息,请更改后重新提交",{title:"视频未通过审核"}),!1)},o.getSubmitData=function(e,t,n){var r,a=o.state,c=a.reshipmentSettings,s=a.commentPermission,l=a.scheduledPublishAt,u=o.props,f=u.answer,p=u.disclaimers,h=u.settings,b=u.isReediting,m=u.getFormData,v=u.isOffice,g=u.useNewEditorSetting,y={content:t},O=m(),j=O.isDisclaimerChecked,w=O.disclaimerType,C=O.commercialReportInfo,S=O.rewardTagline,E=O.pushActivity,R=O.commentPermission,T=O.reshipmentSettings;if(!b)if(g){var A=o.props.currentUser.caEnabled?"need_payment":"allowed";y.reshipmentSettings=T||A,y.commentPermission=R||"all"}else y.reshipmentSettings=c||"allowed",y.commentPermission=s||"all";if(e)return{content:t,attachment:n,reshipmentSettings:y.reshipmentSettings,commentPermission:y.commentPermission};if(y.rewardSetting={canReward:Boolean(S),tagline:S},p&&p.length&&(!f||h)&&(y.disclaimerStatus=j?"open":"close",y.disclaimerType=w||"none"),v&&(y.commercialReportInfo=C),l){if(Q.a.trackEvent(Object(i.a)(o),{action:"Click",id:5733,name:"回答"}),k.a(l,x.a(new Date,30)))return void B.a.alert(Object(d.b)("div",{style:{textAlign:"center"},children:"只能设置 30 分钟后的定时时间"}),{title:"定时发布"});y.publishAt=Math.floor(l/1e3)+0}return void 0!==E&&(y.pushActivity=E),y.tableOfContentsEnabled=o.editable.hasCatalog(),Object.assign(y,null===(r=o.editable)||void 0===r?void 0:r.getExtraPluginData()),y},o.canSubmit=function(){var e,t,n=null===(e=o.editable)||void 0===e?void 0:e.toHTML(),r=o.isVideoAnswer?null===(t=o.editable)||void 0===t?void 0:t.getAttachment():null;return o.isVideoAnswer?Boolean(r||n):Boolean(n)},o.handleSubmit=o.context.authRequired((function(){var e=o.props.reporter;e.reportRequest($n.addAnswer);try{var t=o.props,n=t.answer,r=t.isReediting,a=t.onSubmit,c=t.showNotification,s=t.question,l=s.id,u=s.questionType,d=t.currentUser,f=t.updateSettingsDisclaimer,p=t.loadLabel,h=t.onCancel;if(!o.editable)return h(),void e.reportSuccess($n.addAnswer);if(!o.canSubmit())return void e.reportSuccess($n.addAnswer);var b=o.editable.toHTML(),m=o.isVideoAnswer?o.editable.getAttachment():null;if(o.isVideoAnswer&&!o.checkVideoSectionReady(m))return void e.reportSuccess($n.addAnswer);if(!o.checkEditorContentReady())return void e.reportSuccess($n.addAnswer);var v=o.getSubmitData(o.isVideoAnswer,b,m);Promise.resolve(a(v)).then((function(){n&&v.disclaimerStatus&&f(n.id,v.disclaimerStatus,v.disclaimerType),n&&p("answer",n.id)})).then((function(){Q.a.trackCardShow(null,{id:7879}),r||Q.a.trackEvent(null,{id:4931,action:"StatusReport"},{module:[{card:{content:[{type:"Answer",parent_token:String(l),author_member_hash_id:d.id}]}}],status:{result:"Success",event:{action:"Submit"}}})})).then((function(){"commercial"===u&&c("已发布!由品牌筛选后进入推荐区。")})).then((function(){e.reportSuccess($n.addAnswer)})).catch((function(t){var n;t.status&&"5"!==(null===(n=t.status)||void 0===n?void 0:n.toString()[0])||(e.reportFail($n.addAnswer),e.reportToSentry($n.addAnswer,t)),r||Q.a.trackEvent(Object(i.a)(o),{id:4931,action:"StatusReport"},{status:{result:"Fail",event:{action:"Submit"}}})}));var g=r?"Edit":"Answer";"Answer"===g&&Q.a.trackEvent(Object(i.a)(o),{id:4930}),Q.a.trackEvent(Object(i.a)(o),{action:g,is_intent:!1})}catch(t){throw e.reportFail($n.addAnswer),e.reportToSentry($n.addAnswer,t),t}})),o.onCancel=function(){var e=o.props.onCancel;o.editable.hasVideo("upload")?o.handleError("video-uploading-draft"):o.editable.hasImage("upload")?o.handleError("image-uploading-draft"):(o.hasEdited&&o.syncDraftImmediately(),e&&e())},o.onFocus=function(){"org"===o.props.question.questionType&&o.shouldAnswerOrgQuestionModalShow&&o.handleAnswerOrgQuestionModalShow(),o.setState({focusing:!0})},o.onFocusWithAuth=function(){return o.onFocusAuthChecked?o.onFocus():(o.onFocusAuthChecked=!0,o.context.authRequired(o.onFocus)())},o.onSelectText=function(e){o.setState({selectedText:e.replace(/\s/g,"")})},o.onLoadStart=function(){o.setState({loadingShown:!0})},o.onLoadEnd=function(){o.setState({loadingShown:!1})},o.handleInsertZVideo=function(){o.setState({showZVideoUploader:!0})},o.getAllInviters=function(){var e=o.props,t=e.question;return(0,e.fetchAllInviters)(t.id)},o.getToolbarSidePlugins=function(){var e=o.state,t=e.isFullscreen,n=e.isLeaveActive;return(!t||n)&&Object(d.b)(M.a,{icon:Object(d.b)(S.a,{text:!0}),className:"AnswerForm-enterFullscreenButton",onClick:o.toggleFullscreen},"enterFullscreen")},o.getToolbarMenuPlugins=function(){var e=o.state.scheduledPublishAt;return Object(d.b)(h.Fragment,{children:o.canUseScheduledPublish&&Object(d.c)(M.c,{onClick:function(){o.setUseScheduledPublish(!e),Q.a.trackEvent(Object(i.a)(o),{action:"Click",id:5730,name:"回答"})},children:[Object(d.b)(E.a,{text:!0}),e?"取消定时发布":"定时发布"]})})},o.setUseScheduledPublish=function(e,t){if(e)if(t)o.setState({scheduledPublishAt:t});else{var n=x.a(new Date,30);o.setState({initialScheduledPublishAt:n,scheduledPublishAt:n})}else B.a.confirm("取消后,当前设定的定时发布将不会生效,确定要取消发布吗?",{title:"取消定时发布",text:{cancel:"我再想想"}}).then((function(){o.setState({scheduledPublishAt:void 0}),Q.a.trackEvent(Object(i.a)(o),{action:"Click",id:5737,name:"回答"})})).catch((function(){Q.a.trackEvent(Object(i.a)(o),{action:"Click",id:5736,name:"回答"})})),Q.a.trackCardShow(Object(i.a)(o),{id:5735,name:"回答"})},o.getEditorState=function(){return o.editable.state.editorState?o.editable.state.editorState:o.editable.getEditorState()},o.toggleFullscreen=function(){var e=o.state.isFullscreen,t=function(){var e=o.scroller.querySelector(".Editable");return e?e.offsetTop:0};o.scrollTop=e?o.scroller.scrollTop-t():Math.max(-o.scroller.getBoundingClientRect().top,0),o.setState({isFullscreen:!e},(function(){o.state.isFullscreen?o.scrollTop>0&&(o.scroller.scrollTop=o.scrollTop+t()):window.scrollTo(0,o.scroller.getBoundingClientRect().top-document.documentElement.getBoundingClientRect().top+o.scrollTop)}))},o.exitFullscreen=function(){o.cloneEditor.resetWithValue(o.getCloneContent());o.fullscreenContent.addEventListener("animationend",(function e(){o.fullscreenContent.removeEventListener("animationend",e),o.setState({isLeaveActive:!1}),o.toggleFullscreen()})),o.setState({isLeaveActive:!0})},o.handleFullscreenRef=function(e){e?q.hide():(q.show(),o.setState({isToolbarSticky:!1}))},o.handleScroll=function(){o.isHandleScrollPending||(o.isHandleScrollPending=!0,requestAnimationFrame((function(){var e=o.state,t=e.isFullscreen,n=e.isToolbarSticky,r=!1;if(t&&o.scroller){var a=o.scroller.querySelector(".Editable-toolbar");r=!!a&&o.scroller.scrollTop===a.offsetTop}r!==n&&o.setState({isToolbarSticky:r}),o.isHandleScrollPending=!1})))},o.handleUploadStart=function(){o.setState({isUploading:!0})},o.handleUploadEnd=function(){o.setState({isUploading:!1})},o.handleUploadError=function(e,t){switch(t){case"video":o.handleError("video-upload-error");break;case"image":o.handleError("image-upload-error",e)}},o.handleAnswerOrgQuestionModalShow=function(){o.setState({answerModalShown:!0}),o.shouldAnswerOrgQuestionModalShow=!1},o.handleAnswerModalHide=function(){o.setState({answerModalShown:!1})},o.syncDraftImmediately=o.props.reporter.reportFailFromFunc($n.draftSave,(function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.state.content,n=o.props.reporter,r=t.toHTML(),a=o.state.lastUpdatedTime,c=Math.floor((new Date).getTime()/1e3);e=!a||o.startCompositionTime-a>180?c-o.startCompositionTime:c-a,o.setState({isTyping:!1});var s,l=o.props.answer,u=(l=void 0===l?{}:l).attachment;s=o.videoAnswerEditable||"zvideo"===(null==u?void 0:u.type)?"video_answer":"video"===(null==u?void 0:u.type)?"video_answer_v2":"normal";var d=o.isVideoAnswer?t.getAttachment():null,f=o.isVideoAnswer?Boolean(d||r):Boolean(r);f?n.reportAllFromPromise($n.draftSave,o.updateDraft(r,e,s,d).then((function(e){e.payload&&e.payload.updatedTime&&o.setState({lastUpdatedTime:e.payload.updatedTime}),o.loggingDeltaTime=!1,delete o.startCompositionTime})).then((function(){Q.a.trackEvent(Object(i.a)(o),{action:"AutoSave"})}))):(o.deleteDraft(),n.reportSuccess($n.draftSave))})),o.syncDraft=Object(V.a)(o.syncDraftImmediately,2e3),o.updateDraft=function(){for(var e=o.props,t=e.question.id,n=e.draft,r=e.addDraft,a=e.updateDraft,i=arguments.length,c=new Array(i),s=0;s0?"in "+r:r+" ago":r},formatLong:i,formatRelative:function(e,t,n,r){return c[e]},localize:{ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:s({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:s({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return Number(e)-1}}),month:s({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:s({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:s({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(u={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e,t){var n=String(e),r=t||{},o=n.match(u.matchPattern);if(!o)return null;var a=o[0],i=n.match(u.parsePattern);if(!i)return null;var c=u.valueCallback?u.valueCallback(i[0]):i[0];return{value:c=r.valueCallback?r.valueCallback(c):c,rest:n.slice(a.length)}}),era:l({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:l({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:l({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:l({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:l({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},f=n(414),p=n(72),h=n(415),b=n(56);function m(e){Object(b.a)(1,arguments);var t=1,n=Object(p.a)(e),r=n.getUTCDay(),o=(r=o.getTime()?n+1:t.getTime()>=i.getTime()?n:n-1}function g(e){Object(b.a)(1,arguments);var t=v(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=m(n);return r}var y=n(133);function O(e,t){Object(b.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,a=null==o?0:Object(y.a)(o),i=null==n.weekStartsOn?a:Object(y.a)(n.weekStartsOn);if(!(i>=0&&i<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var c=Object(p.a)(e),s=c.getUTCDay(),l=(s=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var l=new Date(0);l.setUTCFullYear(r+1,0,s),l.setUTCHours(0,0,0,0);var u=O(l,t),d=new Date(0);d.setUTCFullYear(r,0,s),d.setUTCHours(0,0,0,0);var f=O(d,t);return n.getTime()>=u.getTime()?r+1:n.getTime()>=f.getTime()?r:r-1}function w(e,t){Object(b.a)(1,arguments);var n=t||{},r=n.locale,o=r&&r.options&&r.options.firstWeekContainsDate,a=null==o?1:Object(y.a)(o),i=null==n.firstWeekContainsDate?a:Object(y.a)(n.firstWeekContainsDate),c=j(e,t),s=new Date(0);s.setUTCFullYear(c,0,i),s.setUTCHours(0,0,0,0);var l=O(s,t);return l}var C=n(127),k="midnight",x="noon",S="morning",E="afternoon",R="evening",T="night";function A(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),a=r%60;if(0===a)return n+String(o);var i=t||"";return n+String(o)+i+Object(C.a)(a,2)}function N(e,t){return e%60==0?(e>0?"-":"+")+Object(C.a)(Math.abs(e)/60,2):_(e,t)}function _(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+Object(C.a)(Math.floor(o/60),2)+n+Object(C.a)(o%60,2)}var I={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return h.a.y(e,t)},Y:function(e,t,n,r){var o=j(e,r),a=o>0?o:1-o;if("YY"===t){var i=a%100;return Object(C.a)(i,2)}return"Yo"===t?n.ordinalNumber(a,{unit:"year"}):Object(C.a)(a,t.length)},R:function(e,t){var n=v(e);return Object(C.a)(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return Object(C.a)(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Object(C.a)(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Object(C.a)(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return h.a.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return Object(C.a)(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=function(e,t){Object(b.a)(1,arguments);var n=Object(p.a)(e),r=O(n,t).getTime()-w(n,t).getTime();return Math.round(r/6048e5)+1}(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):Object(C.a)(o,t.length)},I:function(e,t,n){var r=function(e){Object(b.a)(1,arguments);var t=Object(p.a)(e),n=m(t).getTime()-g(t).getTime();return Math.round(n/6048e5)+1}(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):Object(C.a)(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):h.a.d(e,t)},D:function(e,t,n){var r=function(e){Object(b.a)(1,arguments);var t=Object(p.a)(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):Object(C.a)(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Object(C.a)(a,2);case"eo":return n.ordinalNumber(a,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),a=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Object(C.a)(a,t.length);case"co":return n.ordinalNumber(a,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return Object(C.a)(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?x:0===o?k:o/12>=1?"pm":"am",t){case"b":case"bb":case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?R:o>=12?E:o>=4?S:T,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return h.a.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):h.a.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):Object(C.a)(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):Object(C.a)(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):h.a.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):h.a.s(e,t)},S:function(e,t){return h.a.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return N(o);case"XXXX":case"XX":return _(o);case"XXXXX":case"XXX":default:return _(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return N(o);case"xxxx":case"xx":return _(o);case"xxxxx":case"xxx":default:return _(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+A(o,":");case"OOOO":default:return"GMT"+_(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+A(o,":");case"zzzz":default:return"GMT"+_(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e,a=Math.floor(o.getTime()/1e3);return Object(C.a)(a,t.length)},T:function(e,t,n,r){var o=(r._originalDate||e).getTime();return Object(C.a)(o,t.length)}};function M(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}}function L(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}}var P={p:L,P:function(e,t){var n,r=e.match(/(P+)(p+)?/),o=r[1],a=r[2];if(!a)return M(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;case"PPPP":default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",M(o,t)).replace("{{time}}",L(a,t))}},B=n(211),z=["D","DD"],D=["YY","YYYY"];function F(e){return-1!==z.indexOf(e)}function U(e){return-1!==D.indexOf(e)}function V(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://git.io/fxCyr"))}var q=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,H=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,K=/^'([^]*?)'?$/,Q=/''/g,W=/[a-zA-Z]/;function G(e,t,n){Object(b.a)(2,arguments);var o=String(t),a=n||{},i=a.locale||d,c=i.options&&i.options.firstWeekContainsDate,s=null==c?1:Object(y.a)(c),l=null==a.firstWeekContainsDate?s:Object(y.a)(a.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=i.options&&i.options.weekStartsOn,h=null==u?0:Object(y.a)(u),m=null==a.weekStartsOn?h:Object(y.a)(a.weekStartsOn);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!i.localize)throw new RangeError("locale must contain localize property");if(!i.formatLong)throw new RangeError("locale must contain formatLong property");var v=Object(p.a)(e);if(!Object(r.a)(v))throw new RangeError("Invalid time value");var g=Object(B.a)(v),O=Object(f.a)(v,g),j={firstWeekContainsDate:l,weekStartsOn:m,locale:i,_originalDate:v},w=o.match(H).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,P[t])(e,i.formatLong,j):e})).join("").match(q).map((function(n){if("''"===n)return"'";var r=n[0];if("'"===r)return Y(n);var o=I[r];if(o)return!a.useAdditionalWeekYearTokens&&U(n)&&V(n,t,e),!a.useAdditionalDayOfYearTokens&&F(n)&&V(n,t,e),o(O,n,i.localize,j);if(r.match(W))throw new RangeError("Format string contains an unescaped latin alphabet character `"+r+"`");return n})).join("");return w}function Y(e){return e.match(K)[1].replace(Q,"'")}},function(e,t,n){"use strict";var r=n(35),o=n(14),a=n(15),i=n(16),c=n(17),s=n(9),l=n(2),u=n(3),d=n.n(u),f=n(1),p=n(73),h=n(27),b=n(119),m=n(153),v=n(102),g=n(31),y=n(375),O=n(20),j=n.n(O),w=n(21),C=n.n(w),k=n(22),x=n.n(k),S=n(23),E=n.n(S),R=n(13),T=n.n(R),A=n(1383),N=n(11),_=n.n(N),I=n(5);function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T()(e);if(t){var o=T()(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E()(this,n)}}var L=function(e){x()(n,e);var t=M(n);function n(){var e;j()(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Array.from({length:t},(function(t,n){return n+e}))},k=function(e){s()(n,e);var t=w(n);function n(){return o()(this,n),t.apply(this,arguments)}return i()(n,[{key:"render",value:function(){var e,t=this.props,n=t.onSelect,r=t.className,o=t.clickCallback,a=this.props.current,i=this.props.total,c=o&&(e=o,function(){e.apply(void 0,arguments)})||n,s=function(e,t){var n="...";return t<=5?C(1,t):e>t-3?[1,n].concat(h()(C(t-3,3)),[t]):e<=3?[1].concat(h()(C(2,3)),[n,t]):[1,n].concat(h()(C(e-Math.floor(1.5),3)),[n,t])}(a,i);return Object(y.g)("div",{className:v()("Pagination",r)},a>1&&a<=i&&Object(y.g)(j,{className:"PaginationButton-prev",onSelect:c,text:"上一页",page:a-1}),s.map((function(e,t){return"number"==typeof e?Object(y.g)(j,{onSelect:c,text:e,page:e,key:t,isCurrent:a===e}):Object(y.g)("button",{disabled:!0,key:t,className:"PaginationButton PaginationButton--ellipsis"},e)})),a>0&&a-1;return{ad:i,ads:c,creatives:l,creative:s,style:n,isDownload:u,template:o,oldAd:a.ad}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"b",(function(){return v}));var r=n(863),o=n.n(r),a=n(80),i=n.n(a),c=n(7),s=n(844),l=n(941);function u(e){var t=e.oldData,n=e.adjson;if("{}"!==JSON.stringify(n))return l.g[Object(s.e)(n,"ads[0].style")];var r,o,a=Object(s.e)(t.ad,"creatives[0].appPromotionUrl");return"".concat((r=Object(s.e)(t,"ad.adVerb"),o={singlePu:"PROMOTE_SMALL_IMAGE_CARD_PU",single:"PROMOTE_SMALL_IMAGE_CARD",word:"PROMOTE_WORD",multiple:"PROMOTE_MULTI_IMAGES_CARD"},Object.keys(o).find((function(e){return o[e]===r})))).concat(a?"Download":"")}function d(e){var t=e.oldData,n=e.adjson;return"{}"!==JSON.stringify(n)?l.d[Object(s.e)(n,"ads[0].style")]:l.e[Object(s.e)(t,"ad.style")]}function f(e){var t,n,r=e.oldData,o=e.adjson;return"{}"!==JSON.stringify(o)?l.h[Object(s.e)(o,"ads[0].style")]:(t=Object(s.e)(r,"ad.adVerb"),n={small:"PROMOTE_SUBJECT_CARD_SMALL_IMAGE",multiple:"PROMOTE_SUBJECT_CARD_MULTI_IMAGE"},Object.keys(n).find((function(e){return n[e]===t})))}function p(e){var t=e.oldData,n=e.adjson;return"{}"!==JSON.stringify(n)?Object(s.e)(n,"ads[0].experimentInfo"):Object(s.e)(t,"ad.experimentInfo")}function h(e){var t=e.oldData,n=e.adjson;return"{}"!==JSON.stringify(n)?Object(s.e)(n,"ads[0].webExperiment"):Object(s.e)(t,"ad.webExperiment")}function b(e){var t=e.ad,n=e.related,r=(t.partyId,t.creatives),a=t.downloadSilent,c=void 0!==a&&a,l=t.isNewWebview,u=void 0!==l&&l,d=t.isSpeeding,f=t.cdnMap,p=t.displayAdvertisingTag,h=i()(t,["partyId","creatives","downloadSilent","isNewWebview","isSpeeding","cdnMap","displayAdvertisingTag"]),b=Object(s.e)(r[0],"canvas"),m={displayAdvertisingTag:p,downloadSilent:c,isNewWebview:u,isCdnSpeeding:d,cdnMap:f},v=r.map((function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.voteupCount,r=t.commentCount,a=t.followerCount,c=t.answerCount,l=e.landingUrl,u=e.appPromotionUrl,d=e.deepUrl,f=e.packageName,p=e.title,h=e.nativeUrl,b=void 0===h?"":h,m=e.window,v=e.imageRatioExtra,g=e.brand,y=void 0===g?{}:g,O=e.thumbnailExtraInfo,j=e.cta,w=(j=void 0===j?{}:j).value,C=void 0===w?"":w,k=e.description,x=e.protoInfo,S=e.image,E=e.gallery,R=void 0===E?[]:E,T=e.thirdSdkInfo,A=e.showNum,N=void 0===A?{}:A,_=e.recommend,I=i()(e,["landingUrl","appPromotionUrl","deepUrl","packageName","title","nativeUrl","window","imageRatioExtra","brand","thumbnailExtraInfo","cta","description","protoInfo","image","gallery","thirdSdkInfo","showNum","recommend"]),M=Object(s.e)(x,"contentType"),L=y.name,P=y.logo,B=Object(s.e)(R,"length")>=2?R.map((function(e){return e.url})):[S],z=R&&R.map((function(e){return{image:e.url,desc:e.description}})),D=o()({landingUrl:l,appPromotionUrl:u,deepUrl:d,packageName:f,title:p,nativeUrl:b,window:m,imageRatioExtra:v,desc:k,cta:C,imgs:B,brandName:L,brandLogo:P,recommend:_,gallery:R,galleries:z},I),F=o()({contentType:M,voteupNum:n,commentNum:r,followNum:a,answerNum:c},N),U={asset:D,protoInfo:F,videoInfo:O,thirdSdkInfo:T};return U}(e,n)}));return o()({},h,{canvas:b,creatives:v,expand:m})}function m(e){var t=e.type,n=e.oldData,r=e.adjson;switch(t){case"large":case"intext":return d({oldData:n,adjson:r});case"subject":return f({oldData:n,adjson:r});case"bonus":case"pccard":return function(e){var t=e.adjson;if("{}"!==JSON.stringify(t))return l.h[Object(s.e)(t,"ads[0].style")]}({adjson:r});case"mfeed":return function(e){var t=e.oldData,n=e.adjson;return"{}"!==JSON.stringify(n)?l.f[Object(s.e)(n,"ads[0].style")]:{PROMOTE_SMALL_IMAGE_CARD:"small",PROMOTE_MULTI_IMAGES_CARD:"multiple",PROMOTE_WORD:"word",PROMOTE_URL_CARD:"large",PROMOTE_CARD:"small"}[Object(s.e)(t,"ad.adVerb")]}({oldData:n,adjson:r});default:return u({oldData:n,adjson:r})}}function v(e,t){if(["large","intext","recommend"].includes(t)&&function(e){return!e||!(e.ad||e.adjson)}(e))return null;var n=Object(c.camelizeKeys)(e),r=Object(s.e)(e,"adjson"),a=Object(c.camelizeKeys)(Object(s.w)(r)),i=m({type:t,oldData:n,adjson:a}),l=p({oldData:n,adjson:a}),u=h({oldData:n,adjson:a});return{data:n,adjson:r?function(e,t){return{ads:e.ads.map((function(e){return o()({adjsonStr:t},e)}))}}(a,r):function(e,t){var n=e.related,r=void 0===n?{}:n,a=e.adList,i=e.ad;return{ads:(a||[{ad:i}]).map((function(e){var n=e.ad;return o()({adjsonStr:t},b({ad:n,related:r}))}))}}(n,r),style:i,experimentInfo:l,webExperiment:u}}},function(e,t,n){e.exports=n.p+"assets/creator_entrance.a883e0a5.png"},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M2 6a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6zm13.96 2.2l-5.008 5.008-2.651-2.652-1.768 1.768 4.42 4.42 6.776-6.777L15.96 8.2z",fillRule:"evenodd"}))};i.defaultProps={name:"CheckboxOn"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M5 6v12a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V6a1 1 0 0 0-1-1H6a1 1 0 0 0-1 1zM2 6a4 4 0 0 1 4-4h12a4 4 0 0 1 4 4v12a4 4 0 0 1-4 4H6a4 4 0 0 1-4-4V6z"}))};i.defaultProps={name:"CheckboxOff"},t.a=i},,function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(1343),p=n(12),h=n(6);function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var m=function(e){Object(a.a)(n,e);var t=b(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.isDrained,n=e.page,r=e.prePage,o=e.onLoad,a=e.isNextLoaded;t||o(Object(h.c)(n),r),a||o(Object(h.c)(n+1),r)}},{key:"componentWillReceiveProps",value:function(e){var t=e.isFetching,n=e.isDrained,r=e.isNextLoaded,o=e.page,a=e.prePage,i=e.onLoad,c=e.total;n||t||i(Object(h.c)(o),a),!r&&o1&&Object(s.b)(f.a,{current:r,total:n,clickCallback:o})]})}}]),n}(d.Component);m.propTypes={isFetching:u.a.bool.isRequired,isDrained:u.a.bool.isRequired,onLoad:u.a.func.isRequired,total:u.a.number,page:u.a.number,prePage:u.a.number,placeholder:u.a.node,onPaginationClick:u.a.func.isRequired,isNextLoaded:u.a.bool},m.defaultProps={prePage:p.b,page:1}},function(e,t,n){"use strict";var r=n(125);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,o.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var o=r(n(1360));e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=r(e.className,t):e.setAttribute("class",r(e.className&&e.className.baseVal||"",t))}},function(e,t,n){e.exports=n.p+"assets/liukanshan_loudspeaker.292ada3b.svg"},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return at}));var r=n(2),o=n(1),a=n.n(o),i=n(27),c=n(29),s=n(19),l=n(11),u=n.n(l),d=n(158),f=n(1134),p=n(14),h=n(15),b=n(66),m=n(16),v=n(17),g=n(9),y=n(43),O=n(35),j=n(3),w=n.n(j),C=n(208),k=n.n(C),x=n(30),S=n(842),E=n(365),R=n(144);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(g.a)(e);if(t){var o=Object(g.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(v.a)(this,n)}}function A(){return n.e(46).then(n.bind(null,2651))}var N=function(e){Object(m.a)(n,e);var t=T(n);function n(){return Object(p.a)(this,n),t.apply(this,arguments)}return Object(h.a)(n,[{key:"render",value:function(){return Object(r.b)(R.a,Object.assign({getComponent:A},this.props))}}]),n}(o.Component),_=n(36),I=n(102),M=n(131),L=Object.assign;var P=function(e){return a.a.createElement(M.a,L({width:"40",height:"40",viewBox:"0 0 40 40"},e),a.a.createElement("g",{fill:"#06F",fillRule:"evenodd"},a.a.createElement("circle",{cx:"20",cy:"20",r:"20",opacity:".12"}),a.a.createElement("path",{d:"M23.487 10.463c1.896 0 2.583.193 3.277.555a3.824 3.824 0 011.607 1.573c.371.678.569 1.35.569 3.206v8.472c0 1.855-.198 2.527-.569 3.205a3.824 3.824 0 01-1.607 1.573c-.694.363-1.381.556-3.277.556h-6.96c-1.895 0-2.583-.193-3.276-.556a3.824 3.824 0 01-1.608-1.573c-.37-.678-.568-1.35-.568-3.205v-8.472c0-1.855.197-2.528.568-3.206.37-.678.915-1.21 1.608-1.573.693-.362 1.38-.556 3.277-.556h6.959zm0 2.08h-6.96c-1.407 0-1.836.081-2.273.31a1.72 1.72 0 00-.735.72c-.234.427-.317.847-.317 2.224v8.472c0 1.377.083 1.796.317 2.224.172.316.412.551.735.72.437.229.866.31 2.274.31h6.959c1.407 0 1.836-.081 2.274-.31a1.72 1.72 0 00.735-.72c.234-.428.317-.847.317-2.224v-8.472c0-1.377-.083-1.797-.317-2.225a1.72 1.72 0 00-.735-.72c-.438-.228-.867-.309-2.274-.309zm-1.991 9.778v1.873h-5.955V22.32h5.955zm2.977-3.328v1.872h-8.932v-1.872h8.932zm0-3.33v1.873h-8.932v-1.872h8.932z",fillRule:"nonzero"})))},B=Object.assign;var z=function(e){return a.a.createElement(M.a,B({width:"40",height:"40",viewBox:"0 0 40 40"},e),a.a.createElement("g",{fill:"none",fillRule:"evenodd"},a.a.createElement("circle",{cx:"20",cy:"20",r:"20",fill:"#F4C807",opacity:".12"}),a.a.createElement("path",{d:"M6 6h28v28H6z"}),a.a.createElement("path",{fill:"#F4C807",d:"M20.406 11.772l-2.172 2.176h-2.29c-1.438 0-1.875.085-2.322.324-.33.176-.575.422-.751.752-.24.448-.324.886-.324 2.326v7.12c0 1.44.085 1.878.324 2.326.176.33.421.576.75.752.421.225.834.314 2.08.323l7.35.001c1.438 0 1.876-.084 2.323-.324.33-.176.575-.422.751-.752.24-.448.324-.886.324-2.326v-4.905l2.172-2.175v7.08c0 1.94-.202 2.643-.58 3.352a3.95 3.95 0 01-1.643 1.645c-.708.379-1.41.58-3.346.58h-7.108c-1.936 0-2.639-.201-3.347-.58a3.95 3.95 0 01-1.642-1.645c-.378-.71-.58-1.413-.58-3.352v-7.12c0-1.94.202-2.643.58-3.352a3.95 3.95 0 011.642-1.645c.708-.379 1.41-.58 3.347-.58h4.462zm6.908-2.053c.384.116.747.338 1.168.759l.188.189c.42.421.642.785.758 1.17a1.98 1.98 0 010 1.163c-.116.385-.337.749-.758 1.17l-6.9 6.911c-.62.622-.827.81-1.078 1.004-.251.193-.496.34-.784.47-.288.131-.553.226-1.392.48l-1.088.332a1.303 1.303 0 01-1.625-1.629l.33-1.09c.255-.84.35-1.104.48-1.393.13-.29.277-.534.47-.785.193-.252.381-.46 1.001-1.081l6.9-6.911c.42-.421.784-.643 1.168-.76a1.97 1.97 0 011.162 0zm-3.204 4.096l-4.797 4.805c-.547.548-.709.723-.852.91-.112.146-.19.276-.265.443-.097.214-.175.44-.4 1.182l-.094.31.31-.095c.74-.225.965-.303 1.179-.4.167-.076.297-.154.442-.266.187-.143.361-.305.909-.853l4.797-4.805-1.23-1.23zm2.546-2.43c-.109.033-.23.11-.443.324l-.874.875 1.228 1.231.875-.876c.213-.213.29-.334.323-.444a.24.24 0 000-.153c-.033-.11-.11-.23-.323-.445l-.189-.188c-.213-.214-.334-.291-.443-.325a.238.238 0 00-.154 0z",fillRule:"nonzero"})))},D=Object.assign;var F=function(e){return a.a.createElement(M.a,D({width:"40",height:"40",viewBox:"0 0 40 40"},e),a.a.createElement("g",{fill:"#26BFBF",fillRule:"evenodd"},a.a.createElement("circle",{cx:"20",cy:"20",r:"20",opacity:".12"}),a.a.createElement("path",{d:"M21.987 11.686v2.169h-6.125c-1.43 0-1.863.064-2.297.306-.332.128-.574.383-.74.702-.255.447-.332.893-.332 2.297v7.018c0 1.442.09 1.876.332 2.297.166.345.408.587.74.766.434.23.868.319 2.297.319h7.018c1.43 0 1.863-.077 2.297-.32.345-.165.587-.408.766-.74.216-.408.296-.816.305-2.054l.001-6.316.025.025h2.17v6.074c0 1.914-.217 2.616-.587 3.318a3.92 3.92 0 01-1.634 1.62c-.689.383-1.403.575-3.317.575h-7.018c-1.915 0-2.616-.204-3.318-.575a3.891 3.891 0 01-1.62-1.62c-.384-.702-.575-1.404-.575-3.318v-7.018c0-1.914.204-2.629.574-3.318a3.996 3.996 0 011.62-1.633c.703-.383 1.404-.574 3.318-.574h6.1zm1.889 6.954c1.059 1.06 1.059 2.807 0 3.88l-.039.038a2.719 2.719 0 01-3.879 0l-2.45-2.553a.801.801 0 00-1.123 0l-.05.052c-.32.357-.32.893 0 1.212a.75.75 0 00.726.217c.51-.128 1.047.23 1.149.74a.946.946 0 01-.727 1.148 2.649 2.649 0 01-2.527-.74 2.796 2.796 0 010-3.905l.038-.025c1.098-1.085 2.808-1.085 3.892 0l2.463 2.488a.764.764 0 001.11 0l.038-.025a.855.855 0 000-1.187.876.876 0 00-.74-.217c-.51.128-1.02-.204-1.148-.727-.128-.51.204-1.021.727-1.149l.013-.013a2.703 2.703 0 012.527.766zm4.338-9.315v2.578h2.578v1.722h-2.578v2.59h-1.723v-2.602h-2.59v-1.71h2.59V9.325h1.723z",fillRule:"nonzero"})))},U=Object.assign;var V=function(e){return a.a.createElement(M.a,U({width:"40",height:"40",viewBox:"0 0 40 40"},e),a.a.createElement("g",{fill:"#FF9607",fillRule:"evenodd"},a.a.createElement("circle",{cx:"20",cy:"20",r:"20",opacity:".12"}),a.a.createElement("path",{d:"M24.233 24.777v-9.555c0-.942-.748-1.706-1.67-1.706H13.61c-.922 0-1.67.764-1.67 1.707v9.554c0 .943.748 1.707 1.67 1.707h8.954c.921 0 1.669-.764 1.669-1.707zm3.478-10.349a2.302 2.302 0 013.297.243c.367.434.57.989.57 1.563v7.532c0 1.32-1.047 2.389-2.337 2.389a2.308 2.308 0 01-1.53-.583l-1.475-1.306v.512c0 2.073-1.644 3.753-3.672 3.753H13.61c-2.028 0-3.672-1.68-3.672-3.753v-9.555c0-2.074 1.644-3.754 3.672-3.754h8.954c2.028 0 3.672 1.68 3.672 3.754v.51l1.475-1.305zm-1.475 7.13l2.786 2.466a.33.33 0 00.219.083.338.338 0 00.334-.341v-7.532a.346.346 0 00-.082-.223.329.329 0 00-.47-.035l-2.787 2.466v3.116z",fillRule:"nonzero"})))},q=n(1418),H=n.n(q),K=n(1419),Q=n.n(K),W=n(1420),G=n.n(W),Y=n(1421),Z=n.n(Y);function X(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(g.a)(e);if(t){var o=Object(g.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(v.a)(this,n)}}var J={answer:[P,H.a,"#ffc601"],article:[z,Q.a,"#ff6084"],pin:[F,G.a,"#25c7c7"],video:[V,Z.a,'"ff9015']};function $(e){var t=e.preset,n=e.type,o=Object(O.a)(e,["preset","type"]);if("old"===t){var a=Object(y.a)(J[n],1)[0];return Object(r.b)(a,Object.assign({},o))}var i=Object(y.a)(J[n],3),c=i[1],s=i[2];return Object(r.b)("div",{className:"GlobalWrite-iconContainer",css:function(e){return{background:e.colorMod(s).alpha(.12),"&:hover":{background:e.colorMod(s).alpha(.22)}}},children:Object(r.b)("img",{className:"GlobalWrite-icon",src:c,alt:""})})}var ee={answer:{id:2744,action:"OpenUrl",elementName:"Answer"},article:{id:2752,action:"OpenUrl",elementName:"Post"},pin:{id:2753,action:"Click",elementName:"Pin"},draft:{id:2750,action:"OpenUrl"}},te=function(e){Object(m.a)(n,e);var t=X(n);function n(){var e;Object(p.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a=1e3*t&&Date.now()<=1e3*n;return Object.assign({},e,{enable:o})}(),n=t.url,a=t.imageUrl,i=t.zaCardShowId,c=t.zaClickId,s=t.enable;return Object(o.useEffect)((function(){i&&s&&x.a.trackCardShow(null,{id:i})}),[i,s]),s?Object(r.b)(S.d,{css:{display:"flex",flexDirection:"column"},children:Object(r.b)("a",{href:n,target:"_blank",rel:"noopener noreferrer",ref:e,"data-za-detail-view-id":c,css:{fontSize:0},children:Object(r.b)("img",{src:a,width:"100%",alt:""})})}):null},Fe=n(234),Ue=n(401);function Ve(e){var t=e.split(" ")[0].split("-"),n=Object(y.a)(t,3),r=n[0],o=n[1],a=n[2],i=e.split(" ")[1].split(":"),c=Object(y.a)(i,2),s=c[0],l=c[1];return new Date(r,o-1,a,s,l)}var qe=Object(Fe.a)(null)((function(){var e=Object(o.useRef)(),t=Object(i.useDispatch)(),n=function(){var e=Object(i.useSelector)((function(e){var t,n;return null===(t=e.topstory)||void 0===t||null===(n=t.banner)||void 0===n?void 0:n.right})),t=Object(Be.a)();if(!e)return null;var n=Ve(e.startTime),r=Ve(e.endTime),o=Date.now(),a=o>n.getTime()&&o0&&Object(r.c)("div",{className:"ClubSliderList-pagination",children:[Object(r.b)("button",{className:"ClubSliderList-arrow",onClick:function(){return m("left")},children:Object(r.b)(He.a,{center:!0,text:!0})}),Object(r.b)("span",{children:"".concat(a,"/").concat(h)}),Object(r.b)("button",{className:"ClubSliderList-arrow",onClick:function(){return m("right")},children:Object(r.b)(Ke.a,{center:!0,text:!0})})]})]})},Ze=n(1371),Xe=n(1093),Je=n(1272),$e=n(1368),et=n(366),tt=n(24),nt=function(e,t){return e.map((function(e){var n=t.find((function(t){return t.key===e.key}));return n?Object.assign({},e,n):e}))},rt=function(e){return e.topstory&&e.topstory.sidebar},ot=Object(c.createSelector)(rt,_.h,(function(e,t){return nt(ke,[e&&{key:"pub",number:e.latestAddedBookCount},e&&{key:"org",number:e.latestRoundtableCount},{key:"infinity",visible:!t}].filter(Boolean))})),at=Object(s.compose)(Object(Fe.a)(null),Object(et.b)({module:"RightSideBar"}))(Object(o.memo)(it));function it(e){var t=e.preset,n=void 0===t?"old":t,a=e.omit,c=(a=void 0===a?{}:a).noNav,s=a.noWrite,l=a.noClub,p=a.noCreator,h=a.noBanner,b=a.noCategory,m=a.noAd,v=a.noCarouselAd,g=void 0===v||v,y=a.noBalance,O=void 0===y||y,j=a.noFooter,w=a.noAppBanner,C=Object(i.useDispatch)(),k=Object(i.useSelector)(rt),x=Object(i.useSelector)(_.b),S=Object(i.useSelector)(ot),E=Object(Je.b)(Je.a.Question),R=function(e,t,n){return nt(Ce,[e&&{key:"star",number:e.unreadItemCountOfFollowedFavlist},t&&{key:"questionList",url:"/people/".concat(t.urlToken||t.id,"/following/questions"),number:t.followingQuestionCount},{key:"invite",url:n?"/creator/featured-question/invited":"/question/waiting?type=invite"},e&&{key:"balance",visible:!0},e&&{key:"coupon",visible:e.needShowGiftCertificate}].filter(Boolean))}(k,x,E),T=Object(i.useSelector)(_.h),A=Object(o.useRef)(null),N=!T&&!c;Object(o.useEffect)((function(){!k&&x&&C(Object(Ue.f)()),N&&C(Object(_.e)(["followingQuestionCount"]))}),[]);var I=Object(o.useCallback)((function(){var e,t;null===(e=A.current)||void 0===e||null===(t=e.check)||void 0===t||t.call(e)}),[]),M=Xe.a;return"new"===n&&(M="div"),Object(r.c)(M,{className:u()("GlobalSideBar","GlobalSideBar--".concat(n)),offset:tt.i+10,ref:A,children:[!s&&Object(r.b)(ne,{preset:n,creatorQuestionRightPass:E}),!l&&x&&Object(r.b)(Ye,{}),!p&&Object(r.b)($e.a,{className:"GlobalSideBar-creator",iconStyle:"small",onHeightChange:I,showWallEProtectLink:"new"!==n}),T&&Object(r.b)(Pe,{}),!h&&Object(r.b)(De,{}),!b&&Object(r.b)(Se,{categoryData:S,children:Object(r.b)(qe,{})}),!O&&Object(r.b)(Te,{items:R.filter((function(e){return["balance","coupon"].includes(e.key)}))}),!g&&Object(r.b)(Ie,{defaultItems:[{position:"new_home_up",key:"new_home_up",delay:0},{position:"new_home_bottom",key:"new_home_bottom",delay:1e3}],onHeightChange:I}),!m&&Object(r.b)(Ne,{position:"new_home_up",onHeightChange:I}),N&&Object(r.b)(Re,{navData:R,onHeightChange:I}),!T&&!m&&Object(r.b)(Ne,{position:"new_home_bottom",delay:1e3,onHeightChange:I}),!w&&Object(r.b)(Ze.a,{type:"home"}),!j&&Object(r.b)(d.a,{children:Object(r.b)(f.a,{showHelpCenter:!N})})]})}},,function(e,t,n){"use strict";var r=n(43),o=n(2),a=n(1),i=n.n(a),c=n(27),s=n(90),l=n(11),u=n.n(l),d=n(1022),f=n(136),p=n(36),h=n(1272),b=n(131),m=Object.assign;var v=function(e){return i.a.createElement(b.a,m({width:"16",height:"16",viewBox:"0 0 16 16"},e),i.a.createElement("path",{d:"M8 3l.737.339.428.187.377.158.326.127c.15.055.282.1.395.133.55.161 1.297.157 2.237-.014l-.002 3.784c0 3.07-2.52 4.76-4.498 5.286-1.977-.527-4.498-2.216-4.498-5.286L3.5 3.93c.94.17 1.686.175 2.237.014C6.187 3.812 6.941 3.497 8 3zm2.38 3.066L7.599 8.834 6.32 7.566a.4.4 0 00-.554.554l1.55 1.55a.5.5 0 00.568 0l3.05-3.05a.4.4 0 00-.554-.554z"}))},g=n(14),y=n(15),O=n(16),j=n(17),w=n(9),C=n(842),k=n(796),x=n(835),S=n(30),E=n(1354),R=n.n(E);function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(w.a)(e);if(t){var o=Object(w.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(j.a)(this,n)}}var A=function(e){Object(O.a)(n,e);var t=T(n);function n(){return Object(g.a)(this,n),t.apply(this,arguments)}return Object(y.a)(n,[{key:"componentDidMount",value:function(){S.a.trackCardShow(this,{id:4783})}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.linkClassName,r=e.hintClassName,i=e.children,c=e.title,s=e.entranceMessage,l=e.showRedDot,d=e.zaClickId,f="small"===e.iconStyle;return Object(o.b)(C.d,{className:u()("CreatorEntrance",t),children:Object(o.c)("a",{className:u()("CreatorEntrance-link",n,{"CreatorEntrance-Link--smallIcon":f}),href:"/creator",target:"_blank","data-za-detail-view-id":d,children:[Object(o.c)("div",{className:u()("CreatorEntrance-hint",r,{"CreatorEntrancePage-hint--smallIcon":f}),children:[f?Object(o.c)(a.Fragment,{children:[Object(o.b)(k.a,{className:"CreatorEntrance-creatorIcon"}),Object(o.b)("div",{className:"CreatorEntrance-text",children:Object(o.b)("div",{className:"CreatorEntrance-indexPageTitle",children:c})})]}):Object(o.c)(a.Fragment,{children:[Object(o.b)("img",{className:"CreatorEntrance-image",src:R.a,alt:"zhihu creator icon"}),Object(o.c)("div",{className:"CreatorEntrance-text",children:[Object(o.b)("div",{className:"CreatorEntrance-title",children:c}),Object(o.b)("div",{className:"CreatorEntrance-entranceMessage",children:s})]})]}),l&&Object(o.b)("div",{className:"CreatorEntrance-seen"}),Object(o.b)(x.a,{className:u()("CreatorEntrance-arrow",{"CreatorEntrance-arrow--smallIcon":f})})]}),i]})})}}]),n}(a.Component);A.defaultProps={iconStyle:"large"};var N=A,_=n(1333);function I(e){var t=e.onHeightChange,n=Object(h.b)(h.a.Analytics),r=Object(c.useSelector)((function(e){return e.creator.creatorStatistics}));Object(a.useEffect)((function(){n&&t&&t()}),[t,n]);var i=Object(c.useDispatch)();Object(a.useEffect)((function(){i(Object(f.eb)())}),[i]);var s=r||{},l=s.yesterdayReadCount,p=s.theDayBeforeYesterdayReadCount,b=s.yesterdayUpvotedCount,m=s.theDayBeforeYesterdayUpvotedCount;return Object(o.c)("div",{className:"ProfileSideCreator-analytics",children:[Object(o.c)("div",{className:"ProfileSideCreator-readCountItem",children:[Object(o.b)("div",{className:"ProfileSideCreator-readCountTitle",children:"昨日阅读(播放)数"}),Object(o.b)("div",{className:u()("ProfileSideCreator-readCountNumber",{"ProfileSideCreator-readCountNumber__isNull":null===l}),children:null===l?"计算中":Object(d.a)(l)}),Object(o.b)(_.b,{textClassName:"ProfileSideCreator-countDeltaText",deltaFixed:!0,originCount:l,compareCount:p,text:"较前日"})]}),Object(o.c)("div",{className:"ProfileSideCreator-readCountItem",children:[Object(o.b)("div",{className:"ProfileSideCreator-readCountTitle",children:"昨日赞同数"}),Object(o.b)("div",{className:u()("ProfileSideCreator-readCountNumber",{"ProfileSideCreator-readCountNumber__isNull":null===b}),children:null===b?"计算中":Object(d.a)(b)}),Object(o.b)(_.b,{textClassName:"ProfileSideCreator-countDeltaText",deltaFixed:!0,originCount:b,compareCount:m,text:"较前日"})]})]})}function M(e){return Object(o.c)(s.Link,Object.assign({href:"/creator/explore/wall-e",target:"_blank",display:"flex",alignItems:"center",fontSize:"12px",color:"GBL05A"},e,{children:["瓦力保镖为你的创作提供持续保护",Object(o.b)(v,{size:17,center:!0,css:{marginLeft:2}})]}))}t.a=function(e){var t=e.className,n=e.iconStyle,i=void 0===n?"large":n,l=e.showWallEProtectLink,u=void 0===l||l,d=e.onHeightChange,h=Object(a.useState)(!1),b=Object(r.a)(h,2),m=b[0],v=b[1],g=Object(c.useDispatch)(),y=Object(c.useSelector)(p.h),O=Object(c.useSelector)(f.ac),j=Object(c.useSelector)((function(e){return e.creator.applyStatus}));if(Object(a.useEffect)((function(){y||g(Object(f.bb)()).catch((function(){return null})).then((function(){v(!0)}))}),[g,y]),!m||0===j.creatorStatus||y)return null;var w=O?{zaClickId:6848,title:Object(o.c)(s.Flex,{css:{justifyContent:"space-between"},children:["创作中心",Object(o.b)(s.Text,{as:"span",sx:{color:"GBL01A"},children:"去开通"})]})}:{zaClickId:2288,title:Object(o.c)(s.Box,{children:["创作中心",j.level&&Object(o.c)(s.Text,{as:"span",sx:{color:"GBL01A",marginLeft:"8px"},children:["Lv ",j.level]})]}),entranceMessage:j.entranceMsg||"查看详细",children:Object(o.c)(o.a,{children:[Object(o.b)(I,{onHeightChange:d}),u&&"small"===i&&Object(o.b)(s.Box,{width:"100%",px:"8px",py:"10px",sx:{borderTop:"1px solid",borderColor:"GBK10A"},children:Object(o.b)(M,{})}),u&&"small"!==i&&Object(o.b)(s.Box,{width:"100%",px:"20px",children:Object(o.b)(M,{py:"12px",sx:{borderTop:"1px solid",borderColor:"GBK10A"}})})]})},C=w.title,k=w.entranceMessage,x=w.children,S=w.zaClickId;return Object(o.b)(N,{className:t,hintClassName:"ProfileSideCreator-creatorEntranceHint",title:C,entranceMessage:k,showRedDot:j.notification&&j.notification.accessed>0,zaClickId:S,iconStyle:i,children:x})}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return H}));var r=n(33),o=n.n(r),a=n(20),i=n.n(a),c=n(21),s=n.n(c),l=n(23),u=n.n(l),d=n(13),f=n.n(d),p=n(92),h=n.n(p),b=n(22),m=n.n(b),v=n(1),g=n.n(v),y=n(3),O=n.n(y),j=n(7),w=n(1352),C=n(1353),k=n(1384),x=n(844),S=n(30),E=n(44),R=n.n(E),T=n(949),A=n(1407),N="https://www.zhihu.com",_={qihoo_pc_js:"".concat(N,"/inner_bottom_360.html"),baidu_pc_js:"u6559262",default:"".concat(N,"/inner_bottom.html")},I={qihoo_pc_js:"".concat(N,"/inner_top_360.html"),baidu_pc_js:"u6559261",default:"".concat(N,"/inner_top.html")},M={qihoo_pc_js:"".concat(N,"/inner_top_360.html"),baidu_pc_js:"u6559261",default:"".concat(N,"/inner_top.html")},L={qihoo_pc_js:"".concat(N,"/inner_bottom_360.html"),baidu_pc_js:"u6559262",default:"".concat(N,"/inner_bottom.html")},P={qihoo_pc_js:"".concat(N,"/home_top_360.html"),baidu_pc_js:"u6559258",default:"".concat(N,"/home_top.html")},B={qihoo_pc_js:"".concat(N,"/home_bottom_360.html"),baidu_pc_js:"u6559260",default:"".concat(N,"/home_bottom.html")},z="".concat(N,"/home_bottom.html"),D={new_answer_down_sticky:_,new_answer_up:I,new_question_up:M,new_question_down_sticky:L,new_home_up:P,new_home_bottom:B},F="https://www.zhihu.com/commercial_api/banners_v3/",U={new_home_up:"home_up",new_home_bottom:"home_bottom",new_answer_up:"answer_up",new_answer_down_sticky:"answer_down_sticky",new_question_up:"question_up",new_question_down_sticky:"question_down_sticky"},V=n(935),q=function(e){function t(){var e,n;i()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:n.props,t=e.delay;clearTimeout(n.loadTimeout),t>0?n.loadTimeout=setTimeout((function(){n.loadBannerRequest(e)}),t):n.loadBannerRequest(e)},n.handleIframeLoad=function(){setTimeout(n.props.onHeightChange,300)},n.handleImageLoad=function(){var e=n.state.item;if(e){n.debugTracks("image_onload"),n.trackImpression();var t=Object(w.a)(e).creative,r=Object(x.e)(t,"asset.landingUrl","");S.a.trackEvent(h()(n),{action:"Load"},{link:{url:r}}),setTimeout(n.props.onHeightChange,300)}},n.debugTracks=function(e){var t=n.state.item;if(t){var r=Object(w.a)(t).ad.debugTracks,o=void 0===r?[]:r,a={et:e},i=R.a.stringify(a);o.map((function(e){return e?Object(x.u)(i?"".concat(e).concat(e.includes("?")?"&":"?").concat(i):e):null}))}},n.handleClose=function(){var e=n.state.item;if(e){var t=Object(w.a)(e).ad.closeTracks,r=void 0===t?[]:t;Object(V.b)(r),n.hideImage()}},n.handleLog=function(e){var t=n.state.item,r=Object(w.a)(t),o=r.ad,a=r.creative,i=o.clickTracks,c=void 0===i?[]:i,s=Object(x.e)(a,"asset.landingUrl","");S.a.trackEvent(e.target,{action:"OpenUrl",url:window.location.href},{link:{url:s}}),Object(V.a)(c)},n.hideImage=function(){var e=n.card.offsetHeight;n.card.style.height="".concat(e,"px"),n.timeout=setTimeout((function(){n.card.classList.add("Pc-card--hidden"),n.card.style.height=0,n.timeout=setTimeout((function(){n.props.onHideImage(),n.props.onHeightChange()}),300)}),17)},n}return m()(t,e),s()(t,[{key:"componentDidMount",value:function(){this.load()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.id,r=t.location,o=e.id,a=e.location;n===o&&r===a||(clearTimeout(this.timeout),this.setState({item:null}),this.load(e))}},{key:"render",value:function(){var e=this,t=this.state.item;if(!t)return null;var n=Object(w.a)(t),r=n.ad,o=void 0===r?{displayAdvertisingTag:"",template:""}:r,a=n.creative,i=void 0===a?{asset:{}}:a,c=o.expand.displayAdvertisingTag,s=o.template,l=i.asset,u=l.imgs,d=void 0===u?[]:u,f=l.landingUrl,p=void 0===f?"":f,h={title:"third_ad",className:"Banner-adsense",src:this.getAdsenseSource(s),adId:this.getAdsenseSource(s),scrolling:"no",frameBorder:"0",onLoad:this.handleIframeLoad};return g.a.createElement("div",{className:"Pc-card Card",ref:function(t){e.card=t}},g.a.createElement("a",{className:"Banner-link",href:p,target:"_blank",onClick:this.handleLog},Object(x.k)(s)?g.a.createElement(k.a,{value:h,template:s}):g.a.createElement(g.a.Fragment,null,c&&g.a.createElement("div",{className:"Banner-adTag"},"广告"),g.a.createElement("img",{className:"Banner-image",src:d[0],alt:"广告",onLoad:this.handleImageLoad,onError:function(){return e.debugTracks("image_onerror")},ref:function(t){e.image=t}}))),this.props.isMobile||g.a.createElement("div",{className:"Pc-card-button-close ",onClick:this.handleClose,"data-tooltip":"不再显示","data-tooltip-position":"bottom"},g.a.createElement(A.c,{name:"close",className:"Pc-card-button-close-svg "})))}}]),t}(v.Component);function H(e){return g.a.createElement(T.a,null,g.a.createElement(q,o()({},e,{data:Object(j.camelizeKeys)(e.data)})))}q.propTypes={id:O.a.string,location:O.a.string.isRequired,onLoadBanner:O.a.func,onHideImage:O.a.func,onHeightChange:O.a.func,isMobile:O.a.bool},q.defaultProps={isMobile:!1,onLoadBanner:function(){},onHideImage:function(){},onHeightChange:function(){}}},function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(842);function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var h={unregistered:{url:"http://zhi.hu/BDXoI",qrcode:n(1149)},home:{url:"http://zhi.hu/BDXoI",qrcode:n(1149)},question:{url:"http://zhi.hu/BDXoI",qrcode:n(1149)}},b=function(e){Object(a.a)(n,e);var t=p(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"renderContent",value:function(){var e=this.props.type;return Object(s.b)(f.d,{className:"AppBanner",children:Object(s.b)("a",{className:"AppBanner-link",href:h[e].url,children:Object(s.c)("div",{className:"AppBanner-layout",children:[Object(s.b)("img",{className:"AppBanner-qrcode",src:h[e].qrcode,alt:"QR Code of Downloading Zhihu App"}),Object(s.c)("div",{className:"AppBanner-content",children:[Object(s.b)("div",{className:"AppBanner-title",children:"下载知乎客户端"}),Object(s.b)("div",{className:"AppBanner-description",children:"与世界分享知识、经验和见解"})]})]})})})}},{key:"render",value:function(){return this.context.currentUser?null:this.renderContent()}}]),n}(d.Component);b.contextTypes={currentUser:u.a.object},b.propTypes={type:u.a.oneOf(Object.keys(h)),getSidebar:u.a.func},b.defaultProps={type:"unregistered",getSidebar:function(){return null}};t.a=b},,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M17.007 11.504c0 .65-.13 1.26-.36 1.83l3 3.073S23 14.136 23 11.504C23 8.008 17.255 4 11.995 4c-1.4 0-2.741.25-3.982.701l2.161 2.16c.57-.23 1.18-.36 1.831-.36a5.004 5.004 0 0 1 5.002 5.003zM2.57 4.342l2.067 2.075C3.499 7.258 1 9.119 1 11.504c0 3.336 5.79 7.503 11.005 7.503 1.55 0 3.031-.3 4.382-.84l.42.42 2.125 2.118s.782.571 1.314 0-.074-1.305-.074-1.305L3.955 3.183s-.76-.742-1.385-.19c-.626.554 0 1.35 0 1.35zm4.963 4.96l1.55 1.552c-.05.21-.08.43-.08.65 0 1.66 1.341 3.001 3.002 3.001.22 0 .44-.03.65-.08l1.551 1.551c-.67.33-1.41.53-2.2.53a5.004 5.004 0 0 1-5.003-5.002c0-.79.2-1.53.53-2.201zm4.312-.78l3.151 3.152.02-.16c0-1.66-1.34-3.001-3.001-3.001l-.17.01z",opacity:".9",fillRule:"evenodd"}))};i.defaultProps={name:"EyeSlash"},t.a=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new Promise((function(t){return setTimeout(t,e)}))};function o(e){var t=[];return e.reduce((function(e,n){return e.then((function(){return n().then((function(e){t.push(e)}))}))}),Promise.resolve()).then((function(){return t}))}},,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M13.25 5.5H6.868c-.755 0-1.368.613-1.368 1.368v10.264c0 .755.613 1.368 1.368 1.368h10.264c.755 0 1.368-.613 1.368-1.368V10.75H20v6.467A2.783 2.783 0 0 1 17.217 20H6.783A2.783 2.783 0 0 1 4 17.217V6.783A2.783 2.783 0 0 1 6.783 4h6.467v1.5zM8.158 13.4a1.033 1.033 0 0 1 1.744-.078l.258.37a.782.782 0 0 0 1.303-.031l1.332-2.113a1.173 1.173 0 0 1 2.01.043l2.03 3.537A1.25 1.25 0 0 1 15.748 17H8.25a1.252 1.252 0 0 1-1.085-1.873l.992-1.728zM9.5 11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm3.75-5.5a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5zM18.5 4V2.25a.75.75 0 1 1 1.5 0V4h1.75a.75.75 0 1 1 0 1.5H20v1.75a.75.75 0 1 1-1.5 0V5.5h-1.75a.75.75 0 1 1 0-1.5h1.75zm.75 7.5a.75.75 0 1 1 0-1.5.75.75 0 0 1 0 1.5z"}))};i.defaultProps={name:"AddImage"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M7.523 13.5h8.954c-.228 2.47-2.145 4-4.477 4-2.332 0-4.25-1.53-4.477-4zM12 21a9 9 0 1 1 0-18 9 9 0 0 1 0 18zm0-1.5a7.5 7.5 0 1 0 0-15 7.5 7.5 0 0 0 0 15zm-3-8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm6 0a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"}))};i.defaultProps={name:"Emotion"},t.a=i},,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10-4.477 10-10 10zm-2.762-5.37c.243.246.452.37.78.37.33 0 .576-.203.827-.443.25-.24 7.052-7.054 7.052-7.054a.988.988 0 0 0-.311-1.354.973.973 0 0 0-1.345.315l-6.222 6.077-2.31-2.418a.971.971 0 0 0-1.368-.19.988.988 0 0 0-.188 1.377s2.841 3.074 3.085 3.32z",fillRule:"evenodd"}))};i.defaultProps={name:"CheckCircle"},t.a=i},function(e,t,n){"use strict";var r=n(33),o=n.n(r),a=n(55),i=n.n(a),c=n(1),s=n.n(c);var l={baidu_pc_js:function(e){var t=e.value,n=void 0===t?{}:t,r=n.className,o=n.adId,a=n.onLoad,l=Object(c.useState)("_".concat(Math.random().toString(36).slice(2))),u=i()(l,1)[0];function d(){var e;(e=document.getElementById("baidu-ad-js"))||((e=document.createElement("script")).setAttribute("src","//cpro.baidustatic.com/cpro/ui/cm.js"),e.setAttribute("defer","defer"),e.setAttribute("id","baidu-ad-js"),document.body.appendChild(e)),window.slotbydup=window.slotbydup||[],window.slotbydup.push({id:o,container:u,async:!0}),a&&a()}return Object(c.useEffect)((function(){d()}),[d]),s.a.createElement("div",{id:u,className:"".concat(u," ").concat(r)})},goole_pc_js:function(e){var t=e.value;return s.a.createElement("iframe",o()({},t,{title:"google广告"}))},maozhua_pc_js:function(e){var t=e.value,n=void 0===t?{}:t;return s.a.createElement("iframe",o()({},n,{title:"猫爪广告"}))},ruoying_pc_js:function(e){var t=e.value,n=void 0===t?{}:t;return s.a.createElement("iframe",o()({},n,{title:"若影广告"}))}};t.a=function(e){var t=e.template,n=l[t];return s.a.createElement(n,e)}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(72),o=n(56);function a(e,t){Object(o.a)(2,arguments);var n=Object(r.a)(e),a=Object(r.a)(t);return n.getTime()a.getTime()}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M18 8c.1-3.308-2.592-6-5.9-6-3.308 0-6 2.692-6 6v2H5.002C4 10 4 11 4 11v9s0 2 2 2h12c2 0 2-1.97 2-1.97V11s0-1-1-1h-1V8zm-6-4c2.143.018 4.005 1.597 4 4v2H8V7.996C8.013 5.562 9.857 3.982 12 4z",fillRule:"evenodd"}))};i.defaultProps={name:"Lock"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M14.445 9h5.387s2.997.154 1.95 3.669c-.168.51-2.346 6.911-2.346 6.911s-.763 1.416-2.86 1.416H8.989c-1.498 0-2.005-.896-1.989-2v-7.998c0-.987.336-2.032 1.114-2.639 4.45-3.773 3.436-4.597 4.45-5.83.985-1.13 3.2-.5 3.037 2.362C15.201 7.397 14.445 9 14.445 9zM3 9h2a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V10a1 1 0 0 1 1-1z",fillRule:"evenodd"}))};i.defaultProps={name:"Like"},t.a=i},,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(1306),o=(n(1291),n(33)),a=n.n(o),i=n(1),c=n.n(i);n(1142),n(1144);n(1143);n(1145),n(1146),n(1147),n(1148);function s(e){return c.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg"},e,{viewBox:"0 0 12 10"}),c.a.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(-2 -3)"},c.a.createElement("rect",{width:"16",height:"16"}),c.a.createElement("rect",{width:"12",height:"2",x:"2",y:"3",fill:"#9FADC7",fillRule:"nonzero",rx:"1"}),c.a.createElement("rect",{width:"12",height:"2",x:"2",y:"7",fill:"#9FADC7",fillRule:"nonzero",rx:"1"}),c.a.createElement("rect",{width:"7",height:"2",x:"2",y:"11",fill:"#9FADC7",fillRule:"nonzero",rx:"1"})))}function l(e){return c.a.createElement("svg",a()({xmlns:"http://www.w3.org/2000/svg"},e,{viewBox:"0 0 12 12"}),c.a.createElement("path",{fill:"#9FADC7",d:"M3,2.66666667 L13,2.66666667 C13.5522847,2.66666667 14,3.11438192 14,3.66666667 L14,12.6600825 C14,13.2123673 13.5522847,13.6600825 13,13.6600825 C12.7827311,13.6600825 12.5713728,13.5893212 12.3979007,13.4585037 L8.60209931,10.596043 C8.24569125,10.3272712 7.75430875,10.3272712 7.39790069,10.596043 L3.60209931,13.4585037 C3.16114346,13.791034 2.53410906,13.7031377 2.2015788,13.2621819 C2.07076131,13.0887097 2,12.8773515 2,12.6600825 L2,3.66666667 C2,3.11438192 2.44771525,2.66666667 3,2.66666667 Z",transform:"translate(-2 -2)"}))}n(1292),n(1293),n(1294),t.c=r.a},,,function(e,t,n){"use strict";var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(3),u=n.n(l),d=n(1),f=n(27),p=n(11),h=n.n(p),b=n(1172),m=n(31),v=n(870),g=n(241),y=n(66),O=n(807),j=n(30),w=n(25),C=n(1329),k=n(24);function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var S=function(e){Object(a.a)(n,e);var t=x(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;it||isNaN(t))&&(n=t)})),n||new Date(NaN)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(72),o=n(56);function a(e){var t,n;if(Object(o.a)(1,arguments),e&&"function"==typeof e.forEach)t=e;else{if("object"!=typeof e||null===e)return new Date(NaN);t=Array.prototype.slice.call(e)}return t.forEach((function(e){var t=Object(r.a)(e);(void 0===n||n".concat(e,"")}))},z=function(e){Object(a.a)(n,e);var t=P(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i2&&" 等 ".concat(t.length," 人")]}),toggleEvent:"hover",targetClassName:"Invitees-popover",arrowed:!0,children:Object(s.b)("div",{className:"Invitees",children:t.map((function(e){return Object(s.b)(Q,{user:e},e.urlToken)}))})})]}):Object(s.b)("h2",{className:"QuestionInvitation-title",children:"你可以邀请下面用户,快速获得回答"}),n],o=Object(d.a)(r,2),a=o[0],i=o[1];return Object(s.b)(H.a,{header:a,options:i})}},{key:"render",value:function(){var e=this,t=this.props,n=t.isFetching,r=t.isDrained,o=t.items,a=t.searchItems,i=t.expandCount,c=t.autoInvitationItem,l=t.question,u=(l=void 0===l?{}:l).id,d=this.state,f=d.expanded,p=d.keyword,h=p?a:o,b=Boolean((void 0===i||i>0)&&!p&&h.length&&c&&c.status),v=b?i-1:i,g=!v||f,y=i?k.d:"div";return Object(s.c)(y,{className:"QuestionInvitation",children:[this.renderHeader(),n?Object(s.b)("div",{className:m()("QuestionInvitation-content","QuestionInvitation-content--centered"),children:Object(s.b)(E.a,{})}):Object(s.c)("div",{className:m()("QuestionInvitation-content",{"QuestionInvitation-content--centered":!h.length}),children:[h.length?Object(s.b)(R.a,{module:"UserList",children:Object(s.c)(x.b,{children:[b&&Object(s.b)(q,{questionId:u,item:c}),(g?h:h.slice(0,v)).map((function(t){return Object(s.b)(x.a,{className:m()({"List-item--mobile":!1}),children:Object(s.b)(z,Object.assign({},t,{keyword:p,onInvite:e.handleInvite}))},t.user.urlToken)}))]})}):Object(s.c)(T.k,{children:[Object(s.b)(T.f,{}),Object(s.b)("div",{children:r?"没有可以邀请的人":"没有找到你想邀请的人"})]}),h.length>v&&!g&&Object(s.b)(A.a,{onClick:this.handleExpand,children:"更多推荐结果"})]})]})}}]),n}(l.Component);W.propTypes={expandCount:h.a.number,items:h.a.array,searchItems:h.a.array,onInvite:h.a.func.isRequired};var G=Object(R.b)({module:"InvitationFrame"})(W),Y=n(102);function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var X=function(e){Object(a.a)(n,e);var t=Z(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=e+1?s:t>=e+.5?u:f}(t,n);return Object(r.b)(o,{size:15},t)}))})}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M9.676 11.252c-.243.433-.542.85-.494 1.237.189 1.509 2.938 1.807 3.746 2.816.59.736.835 1.852.892 3.725.01.303 0 .97-.867.97H1.933c-.915 0-.925-.643-.915-.936.062-1.877.292-3.02.895-3.76.812-.994 3.743-1.267 3.872-2.872.03-.361-.246-.74-.493-1.18C3.917 8.802 3.39 4 7.466 4s3.506 4.941 2.21 7.252zm8.073.79l.002.641c1.57 1.766 4.47 1.307 4.851 3.166.125.61.328 1.538.384 3.232.009.284.014.919-.905.919-.92 0-5.523-.021-6.875-.019 0-2.806-.144-5.987-2.707-6.285.537-.331 1.725-.504 2.178-1.013l.002-.64c-.881.118-2.679-.541-2.679-.541.61-.64.747-1.387 1.192-4.317.355-2.93 2.835-2.903 3.022-2.903.187 0 2.667-.027 3.028 2.903.439 2.93.577 3.677 1.186 4.317 0 0-1.797.659-2.68.54z",fillRule:"evenodd"}))};i.defaultProps={name:"Users"},t.a=i},,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M4 10V8a1 1 0 1 1 2 0v2h2a1 1 0 0 1 0 2H6v2a1 1 0 0 1-2 0v-2H2a1 1 0 0 1 0-2h2zm10.455 2c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-7 6c0-2.66 4.845-4 7.272-4C17.155 14 22 15.34 22 18v1.375c0 .345-.28.625-.625.625H8.08a.625.625 0 0 1-.625-.625V18z",fillRule:"evenodd"}))};i.defaultProps={name:"Invite"},t.a=i},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(4),o=n(1059),a=n(365),i=function(e){return{name:"description",property:"og:description",content:e}},c=function(e,t){var n=[];if(e&&e.content){var r=Object(o.c)(e.content,100);r&&n.push(i(r))}if(t){var a=t.map((function(e){return e.name})).join(",");a&&n.push({name:"keywords",content:a})}return n},s=function(e,t){var n=[];if(e&&e.detail){var a=Object(o.c)(e.detail,100);a&&n.push(i(a))}else t&&t.content&&n.push.apply(n,Object(r.a)(c(t)));if(e.topics){var s=e.topics.map((function(e){return e.name})).join(",");if(s){var l={name:"keywords",content:s};n.push(l)}}return n},l=function(e){if(e){var t=e.headline,n=void 0===t?"":t,r=e.answerCount,o=void 0===r?0:r,c=e.voteupCount,s=void 0===c?0:c,l="".concat(n," 回答数 ").concat(Object(a.formatNumber)(o),",获得 ").concat(Object(a.formatNumber)(s)," 次赞同");return[i(l)]}return[]}},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M4.125 21h15.75c.621 0 1.125-.593 1.125-1.324 0-.73-.504-1.323-1.125-1.323H4.125c-.621 0-1.125.593-1.125 1.323C3 20.407 3.504 21 4.125 21z"}),o.a.createElement("path",{d:"M15.69 3.826c0-.457-.418-.826-.92-.826H9.23c-.508 0-.92.37-.92.827V9.64H5.538c-1.015 0-1.255.526-.533 1.175l6.344 5.709a1 1 0 0 0 1.302 0l6.344-5.71c.722-.648.483-1.175-.535-1.175h-2.77V3.826z",fillRule:"nonzero"})))};i.defaultProps={name:"StickyUnset"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("g",{fillRule:"evenodd"},o.a.createElement("path",{d:"M4.125 3h15.75C20.496 3 21 3.593 21 4.324c0 .73-.504 1.323-1.125 1.323H4.125C3.504 5.647 3 5.054 3 4.324 3 3.593 3.504 3 4.125 3z"}),o.a.createElement("path",{d:"M15.69 20.174c0 .457-.418.826-.92.826H9.23c-.508 0-.92-.37-.92-.827V14.36H5.538c-1.015 0-1.255-.526-.533-1.175l6.344-5.709a1 1 0 0 1 1.302 0l6.344 5.71c.722.648.483 1.175-.535 1.175h-2.77v5.813z",fillRule:"nonzero"})))};i.defaultProps={name:"StickySet"},t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M5.74 4h12.52c.961 0 1.74.775 1.74 1.73V16.27c0 .955-.779 1.73-1.74 1.73h-3.825l-1.658 2.044a1 1 0 0 1-1.554 0l-1.658-2.044H5.74C4.78 18 4 17.224 4 16.27V5.73C4 4.775 4.778 4 5.74 4zM7 8.98c0 .554.449.996 1.003.996h4.994A.992.992 0 0 0 14 8.981a.997.997 0 0 0-1.003-.995H8.003A.992.992 0 0 0 7 8.98zm0 4c0 .554.446.996.995.996h8.01a.993.993 0 0 0 .995-.995.993.993 0 0 0-.995-.995h-8.01A.993.993 0 0 0 7 12.98z",fillRule:"evenodd"}))};i.defaultProps={name:"Community"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M13.693 10.354l1.634-7.542c.195-.901-.16-1.083-.798-.39l-9.18 9.97c-.638.693-.377 1.254.582 1.254h5.376l-1.634 7.542c-.195.901.16 1.083.798.39l9.18-9.97c.638-.693.377-1.254-.582-1.254h-5.376z"}))};i.defaultProps={name:"Live"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M16 17.649V2.931a.921.921 0 0 0-.045-.283.943.943 0 0 0-1.182-.604L4.655 5.235A.932.932 0 0 0 4 6.122v14.947c0 .514.421.931.941.931H19.06c.52 0 .941-.417.941-.93V7.292a.936.936 0 0 0-.941-.931h-.773v12.834a.934.934 0 0 1-.83.924L6.464 21.416c-.02.002 2.94-.958 8.883-2.881a.932.932 0 0 0 .653-.886z",fillRule:"evenodd"}))};i.defaultProps={name:"Ebook"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M11.267 10.188h-2.69a.26.26 0 0 0-.261.26v.508c0 .149.117.26.262.26h2.896v1.54H8.578a.26.26 0 0 0-.262.259v.508c0 .15.117.26.262.26h2.896v2.31c0 .139.119.257.265.257h.522a.258.258 0 0 0 .265-.257v-2.31h2.896a.26.26 0 0 0 .262-.26v-.508a.257.257 0 0 0-.262-.26h-2.896v-1.54h2.896a.26.26 0 0 0 .262-.26v-.507a.257.257 0 0 0-.262-.26h-2.69l2.51-2.636a.26.26 0 0 0-.004-.366l-.423-.413a.253.253 0 0 0-.36.01L12 9.418 9.545 6.784a.248.248 0 0 0-.36-.011l-.423.413a.264.264 0 0 0-.004.366l2.509 2.636zM12 19.973c-1.101 0-2.16-.15-3.152-.43-.532.18-5.27 2.177-4.743 1.179.527-.998 1.58-2.746.806-3.25C3.11 15.936 2 13.822 2 11.486 2 6.8 6.477 3 12 3s10 3.8 10 8.487-4.477 8.486-10 8.486z"}))};i.defaultProps={name:"Infinity"},t.a=i},function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M21 9.749v9.91c0 .74-.604 1.341-1.35 1.341H4.35C3.604 21 3 20.4 3 19.659V9.319c0-.503.283-.963.733-1.193l4.892-2.5V3.341c0-.74.604-1.341 1.35-1.341.267 0 .527.078.749.225l9.675 6.408c.375.249.601.668.601 1.116zM8.297 8.307L5.372 9.802A.223.223 0 0 0 5.25 10v8.54c0 .124.1.224.225.224h8.586a.223.223 0 1 0 .124-.41l-4.959-3.259a1.339 1.339 0 0 1-.601-1.116V8.506a.224.224 0 0 0-.328-.199z"}))};i.defaultProps={name:"KnowledgeBase"},t.a=i},,,,,,,,,,function(e,t,n){"use strict";var r=a(n(1755)),o=a(n(1549));function a(e){return e&&e.__esModule?e:{default:e}}e.exports={TransitionGroup:o.default,CSSTransitionGroup:r.default}},function(e,t,n){"use strict";t.__esModule=!0;var r=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2],r=e.errors;if(!t||"title"===t){var o=e.title,a=null;0!==o.length||n?o.length>51?a={level:"error",text:"问题标题超出 ".concat(o.length-51," 个字")}:o.length>0&&o.length<3?a={level:"error",text:"问题字数太少了吧"}:o.length>0&&-1===o.indexOf("?")&&-1===o.indexOf("?")?a={level:"error",text:"你还没有给问题添加问号"}:(o.match(/(\?|?)/g)||[]).length>1&&(a={level:"warning",text:"多个问题建议拆分"}):a={level:"error",text:"问题标题不能为空"},r=Object.assign({},r,{title:a})}if(!t||"reason"===t){var i=e.reason,c=e.otherReason,s=null;i&&("other"!==i||c)||(s={level:"error",text:i?"必填":"必选"}),r=Object.assign({},r,{reason:s})}if((!t||"topics"===t)&&e.topics){var l=e.topics,u=null;0!==l.length||n||(u={level:"error",text:"至少添加一个话题"}),r=Object.assign({},r,{topics:u})}return r},_=n(835),I=n(154),M=function(e){var t=e.onSelect,n=Object(I.b)();return Object(r.b)("div",{children:g.map((function(e){return Object(r.c)("div",{css:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:"pointer",lineHeight:"48px",boxShadow:"inset 0 -1px 0 0 ".concat(n.colors.GBK10A),"&:last-child":{marginBottom:"16px"}},onClick:function(){return t(e.value)},children:[e.text,Object(r.b)(_.a,{css:{fill:n.colors.GBL05A}})]},e.value)}))})};M.propTypes={onSelect:u.a.func.isRequired};var L=M,P=function(e){var t=e.title,n=e.text,o=e.shown,a=e.allowConfirm,i=void 0===a||a,c=e.onSubmit,s=e.onClose,l=e.buttonText,u=void 0===l?{}:l;return Object(r.b)(p.b,{title:t,onClose:s,children:o&&Object(r.c)("div",{color:"GBK03A",css:{margin:"50px 16px 0",fontSize:"20px",textAlign:"center"},children:[n,Object(r.c)(p.a,{children:[i&&Object(r.b)(f.c,{preset:"primary",color:"blue",onClick:c,children:u.ok||"确认"}),Object(r.b)(f.c,{onClick:s,children:u.cancel||"取消"})]})]})})};P.propTypes={title:u.a.string,text:u.a.string,shown:u.a.bool,allowConfirm:u.a.bool,onSubmit:u.a.func.isRequired,onClose:u.a.func.isRequired,buttonText:u.a.shape({ok:u.a.string,cancel:u.a.string})};var B=P,z=n(90),D=n(135),F=n(35),U=function(e){var t=e.children,n=e.css,o=Object(F.a)(e,["children","css"]);return Object(r.b)(z.Flex,Object.assign({alignItems:"center",mb:"8px",color:"GBL05A",css:n},o,{children:t}))},V=function(e){var t=e.children,n=e.css,o=Object(F.a)(e,["children","css"]);return Object(r.b)(z.Box,Object.assign({ml:"auto",css:n},o,{children:t}))},q=function(e){var t=e.children,n=e.css,o=Object(F.a)(e,["children","css"]);return Object(r.b)(z.Text,Object.assign({as:"span",color:"GBK03A",css:n},o,{children:t}))},H=function(e){var t=e.before,n=e.after,o=e.headerLabel,a=e.headerRight,i=e.children,c=Object(F.a)(e,["before","after","headerLabel","headerRight","children"]),s=o||a;return Object(r.c)(z.Box,Object.assign({mb:"12px",css:{"& .Popover":{display:"block"},"& .TagInput":{lineHeight:0}}},c,{children:[t,s&&Object(r.c)(U,{children:[o&&Object(r.b)(q,{children:o}),a&&Object(r.b)(V,{children:a})]}),i,n]}))};H.Header=U,H.HeaderLabel=q,H.HeaderRight=V;var K=H,Q={warning:"GYL01A",error:"GRD03A"},W=function(e){var t=e.children,n=e.level,o=Object(F.a)(e,["children","level"]);return Object(r.b)(z.Text,Object.assign({as:"span",color:Q[n]},o,{children:t}))},G=function(e){return Object(r.b)(a.a,{message:"一个未知的错误信息 ".concat(typeof e.children),children:Object(r.b)(W,Object.assign({},e))})},Y=W,Z=function(e){var t=e.onInputRef,n=e.title,o=e.onChange,a=e.onBlur,i=e.titleError,l=e.before,u=e.after,d=Object(s.useState)(!1),f=Object(c.a)(d,2),p=f[0],h=f[1],b=null;if(p){var m=51-n.length;m>=0?m<10&&(b="还可以输入 ".concat(m," 个字")):b=Object(r.c)(Y,{level:"error",children:["问题标题超出 ",-m," 个字"]})}else i&&(b=Object(r.b)(Y,{level:i.level,children:i.text}));var v=Object(s.useCallback)((function(e){h(!0),o&&o(e)}),[o]),g=Object(s.useCallback)((function(e){h(!1),a&&a(e)}),[a]),y=Object(s.useRef)();return Object(s.useEffect)((function(){setTimeout((function(){var e;return null===(e=y.current)||void 0===e?void 0:e.focus()}),60)}),[]),Object(r.c)(r.a,{children:[Object(r.b)(K,{children:Object(r.c)(z.Flex,{children:[l,Object(r.b)(D.a,{css:{border:"0 none",fontSize:"15px"},onRef:function(e){y.current=e,t(e)},required:!0,multiline:!0,spread:!0,large:!0,rows:2,placeholder:"问题标题",value:n,onChange:v,onBlur:g}),u]})}),b&&Object(r.b)(K,{headerRight:b})]})};Z.propTypes={onInputRef:u.a.func,title:u.a.string,titleError:O,onChange:u.a.func,onBlur:u.a.func};var X=Z,J=n(832),$=n(833),ee=n(829),te=n(250),ne=n(425),re=n(416),oe=function(e){var t=e.onEditableRef,n=e.defaultValue,o=e.onChange,a=e.detailError,i=e.isAnonymous,l=Object(d.useDispatch)(),u=Object(s.useCallback)((function(){return l(m.h.apply(void 0,arguments))}),[l]),f=Object(s.useRef)(),p=Object(s.useState)(!1),h=Object(c.a)(p,2),b=h[0],v=h[1],g=Object(s.useCallback)((function(){f.current&&f.current.handleKeyCommand("insert-image")}),[]),y=Object(s.useCallback)((function(){f.current&&f.current.handleKeyCommand("insert-video")}),[]),O=Object(s.useCallback)((function(e,t){Object(ne.b)(e,t,u,m.c)}),[u]),j=Object(s.useCallback)((function(e,t){switch(t){case"video":O("video-upload-error");break;case"image":O("image-upload-error",e)}}),[O]);return Object(r.c)(r.a,{children:[Object(r.b)(K,{mb:"16px",headerLabel:"问题描述(可选):",headerRight:Object(r.c)(r.a,{children:[Object(r.b)(te.a,{label:"".concat(b?"收起":"展开","工具栏"),isActive:b,icon:J.a,onClick:function(){return v(!b)}}),Object(r.b)(te.a,{label:"插入图片",icon:$.a,onClick:g}),Object(r.b)(te.a,{label:"上传视频",icon:ee.a,onClick:y})]}),marginTop:"24px",children:Object(r.b)(re.a,{ref:function(e){f.current=e,t&&t(e)},allowDragAndDrop:!0,allowLinkCard:!0,minRows:2,allowToolbar:b,allowVideoTitleChange:!0,allowHeaderThree:!1,placeholder:"问题背景、条件等详细信息",defaultValue:n,onError:O,onUploadError:j,onChange:o,onBeforeVideoUpload:function(){return!i},editingContentType:"question"})}),a&&Object(r.b)(K,{headerRight:Object(r.b)(Y,{level:a.level,children:a.text})})]})};oe.propTypes={onEditableRef:u.a.func,defaultValue:u.a.string,detailError:O,onChange:u.a.func.isRequired,isAnonymous:u.a.bool};var ae=oe,ie=n(440),ce=n(396),se=function(e){var t=e.topic;return Object(r.b)(ie.a,{css:{marginRight:"8px"},children:Object(r.b)("a",{target:"_blank",rel:"noopener noreferrer",href:"//www.zhihu.com/topic/".concat(t.id||t.urlToken),children:t.name})})};function le(e){var t=e.topics,n=void 0===t?[]:t,o=e.onChange,a=e.permitEditTopics,i=Object(s.useState)(null),l=Object(c.a)(i,2),u=l[0],d=l[1],f=Object(s.useState)(n),p=Object(c.a)(f,2),h=p[0],b=p[1],m=Object(s.useState)(!1),v=Object(c.a)(m,2),g=v[0],y=v[1],O=Object(s.useCallback)((function(e){var t;b(e);var n=null===(t=N({topics:e},"topics"))||void 0===t?void 0:t.topics;d(n),o&&o(e,n)}),[o]);return Object(r.c)(K,{mb:"24px",children:[u&&Object(r.b)(Y,{as:"div",level:u.level,children:u.text}),a?Object(r.b)(ce.a,{actived:g,value:h,onChange:O,onToggleActived:function(){return y(!g)}}):h.map((function(e){return Object(r.b)(se,{topic:e},e.name)}))]})}le.propTypes={topics:u.a.arrayOf(u.a.object),onChange:u.a.func,permitEditTopics:u.a.bool};var ue=le,de=n(34),fe=n(178),pe=function(e){var t=e.onInputRef,n=e.questionType,o=e.reason,a=e.otherReason,i=e.onReasonChange,c=e.onInputChange,s=e.reasonError,l=Object(I.b)(),u=Boolean(!o&&s),d=Boolean("other"===o&&!a&&s);return Object(r.b)("div",{className:"EditQuestionReasonInput",children:Object(r.b)(K,{mb:"0",before:Object(r.c)(K.Header,{mb:"0",children:[Object(r.b)(fe.b,{css:{marginRight:"8px"},needsReposition:!0,plain:!0,text:o?null:"请选择一个修改理由",value:o,onChange:i,children:g.map((function(e){return Object(r.b)(fe.a,{value:e.value,text:e.text},e.value)}))}),u&&Object(r.b)(Y,{level:s.level,children:s.text}),!["org","commercial"].includes(n)&&Object(r.b)(K.HeaderRight,{children:Object(r.b)(de.Link,{className:"EditQuestion-whyEdit",target:"blank",to:"/question/19550238/answer/95068125",children:"为什么问题可以被公共编辑?"})})]}),children:"other"===o&&Object(r.b)(z.Box,{css:d&&{"& input::placeholder":{color:l.colors.GRD03A}},children:Object(r.b)(D.a,{onRef:t,spread:!0,large:!0,value:a,placeholder:"请输入修改理由(必填)",onChange:c})})})})};pe.propTypes={onInputRef:u.a.func,questionType:u.a.string.isRequired,reason:u.a.string,otherReason:u.a.string,reasonError:O,onReasonChange:u.a.func,onInputChange:u.a.func};var he=pe;function be(e){if(!e)return"提交修改时发生未知错误";if("string"==typeof e)return e;var t=e.status,n=e.message,r=e.name;return n?["Network request failed","Failed to fetch"].some((function(e){return n.indexOf(e)>-1}))?"提交修改时发生网络请求错误":n.startsWith("request http")?"提交修改时发生错误".concat(t?":"+t:""):"提交修改时发生错误:".concat(n):"提交修改时发生错误:".concat(r||"Unknown")}function me(e){var t=e.onSuccess,n=e.onFailure,r=Object(d.useSelector)((function(e){var t=e.notification;return t[m.c]||t.updateQuestion}));return Object(s.useEffect)((function(){if(r){var e=r.id,o=r.code,a=r.text;e?t(e):n(function(e,t){switch(e){case 103003:return["title",{level:"error",text:"已经存在的问题"}];case 103001:return["detail",{level:"error",text:"过长的补充说明"}];default:return["overall",{text:be(t)}]}}(o,a))}}),[r]),null}me.propTypes={onSuccess:u.a.func.isRequired,onFailure:u.a.func.isRequired};var ve=function(e){return["title","reason","topics"].find((function(t){var n;return"error"===(null===(n=e[t])||void 0===n?void 0:n.level)}))};function ge(e){var t=e.onClose,n=e.show,o=e.id,a=e.title,l=e.detail,u=e.topics,g=e.questionType,O=e.isAnonymous,j=e.brand,w=e.permitEditTopics,_=Object(d.useSelector)(h.b),I=Object(d.useDispatch)(),M=Object(s.useCallback)((function(){return I(m.h.apply(void 0,arguments))}),[I]),P=Object(s.useRef)({titleInput:null,editable:null,reasonInput:null}),z=function(e){var t;if("title"===e)null===(t=P.current.titleInput)||void 0===t||t.focus();else if("reason"===e){var n;null===(n=P.current.reasonInput)||void 0===n||n.focus()}},D=Object(s.useReducer)(T,Object.assign({},R,{title:a,detail:l,topics:u})),F=Object(c.a)(D,2),U=F[0],V=F[1],q=U.step,H=U.title,K=U.reason,Q=U.otherReason,W=U.onceChanged,Y=U.uploadModalShown,Z=U.videoQuestionConfirmShown,J=U.videoQuestionConfirmAllowContinue,$=U.videoQuestionConfirmTitle,ee=U.videoQuestionConfirmText,te=U.errors,ne=te.title,re=te.detail,oe=te.reason,ie=te.overall;A(n,(function(e){Object(c.a)(e,1)[0]&&V({type:k,payload:{title:a,detail:{toHTML:function(){return l}},topics:u,onceChanged:!1}})}));var ce=Object(s.useCallback)((function(){V({type:E}),M("问题修改成功!"),t()}),[M,t]),se=Object(s.useCallback)((function(e){var t=Object(c.a)(e,2),n=t[0],r=t[1];V({type:x,payload:Object(i.a)({},n,r)}),z(n)}),[]),le=Object(s.useMemo)((function(){return ve(te)}),[te]),de=Object(s.useCallback)((function(e){var t=e.target.value;V({type:C,payload:["title",t]})}),[]),fe=Object(s.useCallback)((function(){V({type:x,payload:N({title:H},"title")})}),[H]),pe=Object(s.useCallback)((function(e){V({type:C,payload:["detail",e]})}),[]),be=Object(s.useCallback)((function(e,t){V({type:C,payload:["topics",e]}),V({type:x,payload:{topics:t}})}),[]),ge=Object(s.useCallback)((function(e){V({type:k,payload:{reason:e,step:1}}),"other"===e&&setTimeout((function(){return z("reason")}))}),[]),ye=Object(s.useCallback)((function(e){var t=e.target.value;V({type:C,payload:["otherReason",t]}),"reason"===le&&t&&V({type:x,payload:{reason:null}})}),[le]),Oe=Object(s.useCallback)((function(){var e;(null===(e=P.current.editable)||void 0===e?void 0:e.hasVideo("upload"))?V({type:S,payload:["uploadModalShown",!0]}):t()}),[t]),je=function(){var e=U.title,t=U.detail,n=U.topics,r=U.reason,a=U.otherReason,i={question:{title:e},meta:{reason:"other"===r?a:r}},c=t.toHTML();c!==l&&(i.question.detail=c),n!==u&&(i.question.topicUrlTokens=n.map((function(e){return e.urlToken||e.id}))),Object.keys(i.question).length>0&&I(Object(b.lb)(o,i))},we=function(){V({type:S,payload:["videoQuestionConfirmShown",!1]})},Ce=function(){V({type:S,payload:["uploadModalShown",!1]})},ke=Object(s.useCallback)((function(){Ce(),t()}),[t]),xe=Boolean(!W||le),Se=0===q,Ee=Se?y[0]:{css:{width:"595px","& .Modal-content":{paddingBottom:ie?0:"32px"}}};return Object(r.c)(r.a,{children:[Object(r.b)(me,{onSuccess:ce,onFailure:se}),Object(r.b)(p.b,Object.assign({footer:ie&&Object(r.b)(G,{level:"error",children:ie.text}),onClose:Oe,hotKeyClosable:!1,maskClosable:!1},Ee,{children:n&&(Se?Object(r.b)(L,{onSelect:ge}):Object(r.c)("div",{className:"QuestionAsk",children:[Object(r.b)(B,{title:$,text:ee,shown:Z,allowConfirm:J,onSubmit:function(){we(),je()},onClose:we,buttonText:{ok:"发布",cancel:"继续编辑"}}),Object(r.b)(B,{text:"关闭弹窗将丢失上传中的视频内容",shown:Y,onSubmit:ke,onClose:Ce}),Object(r.c)("form",{onSubmit:function(e){return e.preventDefault()},noValidate:!0,children:[Object(r.b)(X,{onInputRef:function(e){return P.current.titleInput=e},title:H,onChange:de,onBlur:fe,titleError:ne,before:Object(r.b)(v.a,{isAnonymous:O,questionType:g,brand:j,css:{flexShrink:0,marginTop:"3px",marginRight:"16px"}})}),Object(r.b)(ae,{onEditableRef:function(e){return P.current.editable=e},defaultValue:l,onChange:pe,detailError:re,isAnonymous:O}),Object(r.b)(ue,{topics:u,onChange:be,permitEditTopics:w}),Object(r.b)(he,{onInputRef:function(e){return P.current.reasonInput=e},questionType:g,reason:K,otherReason:Q,reasonError:oe,onReasonChange:ge,onInputChange:ye}),Object(r.b)(p.a,{css:{marginTop:ie?"16px":"25px"},children:Object(r.b)(f.c,{preset:"primary",color:"blue",disabled:xe,onClick:function(){var e=N(U);V({type:x,payload:e});var t=ve(e);if(t)z(t);else{var n=P.current.editable;if(!function(e,t){return e.hasVideo("upload")?(t("请等待视频上传完成后发布","red",m.c),!0):!!e.hasImage("upload")&&(t("请等待图片上传完成后发布","red",m.c),!0)}(n,M)){var r=function(e,t){return e.hasVideo()&&!t.isOrg?{videoQuestionConfirmShown:!0,videoQuestionConfirmAllowContinue:!0,videoQuestionConfirmText:"包含视频的编辑将在审核完成后生效,是否继续?"}:e.hasImage("error")||e.hasVideo("error")&&!e.hasVideo("error-review")?{videoQuestionConfirmShown:!0,videoQuestionConfirmAllowContinue:!1,videoQuestionConfirmTitle:"上传失败",videoQuestionConfirmText:"草稿中含有上传失败的内容,请更改后重新提交"}:e.hasVideo("error-review")||e.hasVideo("censor")?{videoQuestionConfirmShown:!0,videoQuestionConfirmAllowContinue:!1,videoQuestionConfirmTitle:"视频未通过审核",videoQuestionConfirmText:"视频中包含未通过审核的信息,请更改后重新提交"}:null}(n,_);r?V({type:k,payload:r}):je()}}},children:"提交修改"})})]})]}))}))]})}ge.propTypes={id:u.a.number,title:u.a.string,detail:u.a.string,topics:u.a.arrayOf(u.a.object),show:u.a.bool,onClose:u.a.func,isAnonymous:u.a.bool,brand:u.a.object,permitEditTopics:u.a.bool},ge.defaultProps={onClose:function(){}};var ye=ge;function Oe(e){return Object(r.b)(o.a,{children:Object(r.b)(a.a,{children:Object(r.b)(ye,Object.assign({},e))})})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(3),d=n.n(u),f=n(11),p=n.n(f),h=n(1389),b="TopicVoteCheckbox";function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var v=[0,1,2,3,4,5,6,7].map((function(e){return Object(s.b)("div",{className:"".concat(b,"-Sparkle")},e)}));function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var y={Recommend:function(e){Object(a.a)(n,e);var t=m(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onChange,r=e.checked,o=e.onClick,a=e.tooltipPosition;return Object(s.c)("div",Object.assign({className:p()(b,"".concat(b,"--recommend"),t),"data-tooltip":"推荐"},a&&{"data-tooltip-position":a},{children:[Object(s.b)("input",{id:"topic-recommend",type:"checkbox",checked:r,onChange:n,onClick:o}),Object(s.c)("label",{htmlFor:"topic-recommend",children:[Object(s.b)(h.a,{size:19}),v]})]}))}}]),n}(l.Component),Against:function(e){Object(a.a)(n,e);var t=g(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.className,n=e.onChange,r=e.checked,o=e.onClick,a=e.tooltipPosition;return Object(s.c)("div",Object.assign({className:p()(b,"".concat(b,"--against"),t),"data-tooltip":"不推荐"},a&&{"data-tooltip-position":a},{children:[Object(s.b)("input",{id:"topic-against",type:"checkbox",checked:r,onChange:n,onClick:o}),Object(s.b)("label",{htmlFor:"topic-against",children:Object(s.b)(h.a,{size:19})})]}))}}]),n}(l.Component)};function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var j=function(e){return e.stopPropagation()},w=function(e){Object(a.a)(n,e);var t=O(n);function n(){return Object(r.a)(this,n),t.apply(this,arguments)}return Object(o.a)(n,[{key:"render",value:function(){var e=this.props,t=e.noAnimation,n=e.status,r=e.onVoteChange,o=e.tooltipPosition;return Object(s.b)("span",{className:"VotableTopicCard",onClick:j,children:Object(s.c)("span",{className:p()("VotableTopicCard-RecommendStatus",{"VotableTopicCard-VoteActions--noAnimation":t}),children:[Object(s.b)(y.Recommend,{className:"".concat("VotableTopicCard","-VoteCheckbox"),checked:"like"===n,onChange:function(e){r(e,"recommend")},tooltipPosition:o}),Object(s.b)(y.Against,{className:"".concat("VotableTopicCard","-VoteCheckbox"),checked:"dislike"===n,onChange:function(e){r(e,"unrecommend")},tooltipPosition:o})]})})}}]),n}(l.Component);w.propTypes={noAnimation:d.a.bool.isRequired,status:d.a.oneOf(["like","dislike","none"]).isRequired,noBorder:d.a.bool.isRequired,onVoteChange:d.a.func.isRequired,tooltipPosition:d.a.string};var C=w,k=n(30),x=n(365),S=n(24);function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var R="Upvote",T="UnUpvote",A="Downvote",N="UnDownvote",_=function(e){Object(a.a)(n,e);var t=E(n);function n(){var e;Object(r.a)(this,n);for(var o=arguments.length,a=new Array(o),i=0;i=2?A.map((function(e){return e.url})):[R],z=A&&A.map((function(e){return{image:e.url,desc:e.description}}));return{asset:o()({landingUrl:d,appPromotionUrl:f,deepUrl:p,packageName:h,title:b,nativeUrl:v,window:g,imageRatioExtra:y,desc:E,cta:S||x,imgs:B,brandName:L,brandLogo:P,recommend:_,gallery:A,galleries:z,icon:t},M),protoInfo:o()({voteupNum:r,commentNum:a,contentType:I,answerNum:l,followNum:c,target:JSON.stringify(n)},u),videoInfo:w,thirdSdkInfo:N}}(e,j)}));return o()({viewTracks:g,impressionTracks:b,closeTracks:[m],clickTracks:y,creatives:w,expand:O},v)}function p(e){if(!e||!e.ad&&!e.adjson)return null;var t=Object(c.camelizeKeys)(e),n=Object(s.e)(e,"adjson"),r=Object(c.camelizeKeys)(Object(s.w)(n)),a=Object(l.a)({oldData:t,adjson:r});return{data:t,adjson:n?function(e,t){if(!e.ads)return null;var n=e.ads;return{ads:(void 0===n?[]:n).map((function(e){return o()({adjsonStr:t},u(e))}))}}(r,n):function(e,t){return{ads:[{ad:e.ad}].map((function(e){var n=e.ad;return o()({adjsonStr:t},f({ad:n}))}))}}(t,n),experimentInfo:a}}},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=function(e){return o.a.createElement(a.a,e,o.a.createElement("path",{d:"M12 2a10 10 0 1 0 0 20c5.523 0 10-4.477 10-10S17.523 2 12 2zm2.081 15.497c-.407.163-.818.318-1.231.464a3.224 3.224 0 0 1-1.069.161c-.624 0-1.107-.15-1.452-.457a1.471 1.471 0 0 1-.518-1.156c0-.183.013-.369.038-.559.026-.187.068-.402.125-.642l.644-2.276c.054-.205.102-.412.145-.618.037-.177.056-.356.057-.536 0-.29-.06-.493-.179-.607-.121-.115-.35-.171-.687-.171a1.814 1.814 0 0 0-.513.076 7.067 7.067 0 0 0-.45.15l.171-.702c.398-.163.8-.31 1.21-.441.387-.123.75-.184 1.093-.184.619 0 1.096.15 1.432.45.334.297.503.686.503 1.163 0 .1-.012.274-.035.523-.02.232-.062.462-.13.686l-.64 2.268a7.016 7.016 0 0 0-.143.622 3.374 3.374 0 0 0-.06.53c0 .303.068.508.202.617.135.108.369.164.701.164.156 0 .331-.027.53-.08.198-.056.337-.103.427-.144l-.17.7zM13.97 8.29c-.292.275-.68.424-1.08.416a1.55 1.55 0 0 1-1.085-.416 1.331 1.331 0 0 1-.45-1.011c0-.393.15-.733.45-1.013.302-.281.665-.42 1.085-.42.421 0 .781.139 1.08.42.298.28.447.62.447 1.013 0 .396-.15.732-.447 1.011z",fillRule:"evenodd"}))};i.defaultProps={name:"Info"},t.a=i},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";(function(e){var r=n(14),o=n(15),a=n(16),i=n(17),c=n(9),s=n(2),l=n(1),u=n(27),d=n(2586),f=n(102),p=n(161);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var o=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(i.a)(this,n)}}var b=function(t){Object(a.a)(i,t);var n=h(i);function i(){var t;Object(r.a)(this,i);for(var o=arguments.length,a=new Array(o),c=0;c1&&void 0!==arguments[1]?arguments[1]:{},o=t.props,a=o.pageType,i=o.advancedStyle,c=i.viewTracks,s=i.clickTracks,l="view"===n?c:s,u=Object.assign({},{eru:encodeURIComponent(e.location.href),ct:1,pt:"question"===a?1:2,rt:1},r),d=Object.keys(u).map((function(e){return"&".concat(e,"=").concat(u[e])})).join("");return l.map((function(e){return"".concat(e).concat(d)}))},t.handleViewTrack=function(e){t.getTrackUrls("view",e).forEach(p.c)},t.handleClickTrack=function(e){t.getTrackUrls("click",e).forEach(p.c)},t}return Object(o.a)(i,[{key:"componentWillMount",value:function(){var e=this.props,t=e.questionId;(0,e.loadBrandQuestionAdvancedStyle)(t)}},{key:"componentDidUpdate",value:function(e){var t=e.advancedStyle,n=(t=void 0===t?{}:t).cardType,r=this.props,o=r.advancedStyle,a=(o=void 0===o?{}:o).cardType,i=r.onLoad;!n&&a&&"function"==typeof i&&i()}},{key:"render",value:function(){var e=this.props,t=e.brand,n=e.advancedStyle;return n&&n.id?Object(s.b)(d.a,{brand:t,advancedStyle:n,handleViewTrack:this.handleViewTrack,handleClickTrack:this.handleClickTrack,isMobileView:!1}):null}}]),i}(l.Component);t.a=Object(u.connect)((function(e){var t=e.question;return{brand:t.brand,advancedStyle:t.advancedStyle}}),{loadBrandQuestionAdvancedStyle:f.G})(b)}).call(this,n(100))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(1),o=n.n(r),a=n(18),i=Object.assign||function(e){for(var t=1;t/g,"")})]}),Object(r.c)("span",{className:"AdvancedViewer-data",children:[d[e.type]," · ",e.statisticText]})]}),Object(r.b)(f,{src:e.image||u.o})]}))};return Object(r.b)("div",{className:"AdvancedViewer-material AdvancedViewer-recommended",children:c.map((function(e,t){return s?Object(r.b)(i.a,Object.assign({},(n={pi:t+1},"function"==typeof s?{onChange:function(e,t){e.isIntersecting&&(t.disconnect(),s(n))}}:{}),{children:m(e,t)}),t):m(e,t);var n}))})}return null}function h(e){var t,n=e.isMobileView,o=e.brand,l=o.name,u=o.logo,d=e.advancedStyle,f=(d=void 0===d?{}:d).brandRecommendText,h=d.buttonText,b=d.url,m=d.cardType,v=e.handleViewTrack,g=e.handleClickTrack,y=function(e){return"function"==typeof g?{onClick:function(){g(e)}}:{}},O=l&&l.charCodeAt(l.length-1),j=O>=0&&O<=128?"".concat(l," "):l,w=n&&"recommended"!==m,C=f||"".concat(j,"的品牌推荐"),k=Object(r.c)(c.d,{className:a()("AdvancedViewer",{"is-mobile":n}),children:[!w&&Object(r.b)(c.b,{className:"AdvancedViewer-header",children:Object(r.b)("span",{className:"AdvancedViewer-headerText",children:C})}),Object(r.b)("div",{className:"AdvancedViewer-content",children:Object(r.b)(p,Object.assign({},e))}),!n&&m&&"recommended"!==m&&Object(r.b)("div",{className:"AdvancedViewer-footer",children:Object(r.b)(s.a,Object.assign({className:"AdvancedViewer-button",target:"_blank",to:b},y({etu:b}),{children:h||"了解更多"}))}),w&&Object(r.c)("div",{className:"AdvancedViewer-footer",children:[Object(r.c)("div",{className:"AdvancedViewer-brand",children:[Object(r.b)("img",{className:"AdvancedViewer-logo",src:u,role:"presentation"}),Object(r.b)("span",{className:"AdvancedViewer-brandName",children:C})]}),Object(r.b)(s.a,Object.assign({className:"AdvancedViewer-button",target:"_blank",to:b},y({etu:b}),{children:h||"查看详情"}))]})]});return v?Object(r.b)(i.a,Object.assign({},"function"==typeof v?{onViewed:function(){v(t)}}:{},{children:k})):k}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);var r=n(2),o=n(34),a=n(43),i=n(14),c=n(15),s=n(16),l=n(17),u=n(9),d=n(1),f=n.n(d),p=n(3),h=n.n(p),b=n(27),m=n(232),v=n(110),g=n.n(v),y=n(121),O=n.n(y),j=n(366),w=n(176),C=n(75),k=n(2228),x=n.n(k);var S=function(){return Object(r.b)(C.a,{title:"该内容仅作者可见",subtitle:"",errorImage:x.a})},E=n(19),R=n(102),T=n(234),A=Object(r.b)(g.a,{meta:[{name:"robots",content:"noindex"}]}),N=Object(E.compose)(Object(T.a)(null))((function(e){var t=e.entity,n=t.type,o=t.id,a=t.isVisible,i=t.isCollapsed,c=t.suggestEdit,s=void 0===c?{}:c,l=t.adminClosedComment,u="";"question"===n?u=o:"answer"===n&&(u=t.question.id);var d=Object(b.useSelector)((function(e){return Object(R.bb)(e,{id:u})}));if(d){var f=d.status,p=d.adminClosedComment,h=d.isMuted,m=d.visibleOnlyToAuthor,v=d.reviewInfo,g=void 0===v?{}:v;if((null==f?void 0:f.isClose)||(null==f?void 0:f.isSuggest)||(null==f?void 0:f.isEvaluate)||p||h||m||g.editIsReviewing)return A}return"question"===n&&d.redirection?Object(r.b)("link",{rel:"canonical",href:"https://www.zhihu.com/question/".concat(d.redirection.to.id)}):"answer"===n&&((null==s?void 0:s.status)||i||l||!a)?A:"article"!==n||!(null==s?void 0:s.status)&&!l&&a?"":A})),_=n(1687),I=n(122),M=n(36),L=n(530),P=n(68),B=n(25),z=n(106),D=n(31),F=n(134),U=n(53);function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var q=function(e){Object(s.a)(n,e);var t=V(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&n.map((function(e,t){return Object(r.b)(ke.Box,{css:Object.assign({borderRadius:"inherit",position:"absolute",bottom:0},Me(t)),children:Object(r.b)(Ee.a,{bg:"GBK09C",ratio:3/4,css:{zIndex:1},children:e&&Object(r.b)(ke.Image,{size:"100%",src:Object(Se.imgUrl)(e,"100w"),css:{borderRadius:"inherit",objectFit:"cover",boxShadow:"0.5px 0 2px 0 rgba(0, 0, 0, 0.1)"}})})},t)}))})})},Pe=function(e){var t=e.questionId,n=e.isInAnswerPage,o=Object(Ce.a)(e,["questionId","isInAnswerPage"]),i=Object(b.useSelector)((function(e){return Object(R.cb)(e,t)})),c=Object(b.useDispatch)(),s=Object(me.b)(),l=Object(a.a)(s,3),u=l[0],f=l[1],p=l[2];if(Object(d.useEffect)((function(){i||c(Object(R.W)(t)).catch(p)}),[i,t,p,c]),Object(d.useEffect)((function(){i&&("not found"!==i.message?f():p())}),[i,p,f]),!i||"not found"===i.message||!u)return null;var h=i.name,v=i.num,g=i.upvoteNum,y=i.rankFieldType,O=i.items,w=i.urlToken,C=2===y,k=C?Le:Ie;return Object(r.b)(j.a,{module:"Content",view:{id:8766,name:n?"answer":"question"},content:{token:w,parent_token:String(t)},trackCardShow:!0,children:Object(r.b)(m.b,{content:{type:"Topic",token:String(w)},children:Object(r.b)(m.e,{zaText:!0,shouldTrackClick:!0,as:"div","data-za-extra":JSON.stringify({button:{text:h}}),css:{position:"relative",zIndex:0},zaType:"Card",zaAction:"OpenUrl",zaBlock:"blueStar_questionPage_detailCard",zaEventType:"Click",extra:{link:{url:"https://www.zhihu.com/blue-star/ranking/".concat(w,"?origin_from=").concat(n?"answer":"question")}},children:Object(r.c)(ke.Flex,Object.assign({as:Re.a,my:"14px",py:"8px",px:"12px",alignItems:"center",css:function(e){return{backgroundImage:"linear-gradient(to left, ".concat(e.colorMod(e.colors.GBL01A).alpha(.1),", ").concat(e.colorMod(e.colors.GBL01A).alpha(.04),")"),backgroundColor:e.colors.GBK99C,borderRadius:"5px",position:"relative",overflow:"hidden"}},"data-za-detail-view-id":"8767","data-za-detail-view-name":n?"answer":"question","data-za-extra":JSON.stringify({button:{text:h}}),href:"https://www.zhihu.com/blue-star/ranking/".concat(w,"?origin_from=").concat(n?"answer":"question")},o,{children:[Object(r.b)(Ne,{css:function(e){return{position:"absolute",width:"40.5px",height:"49.5px",top:-5,right:-1,color:e.colors.GBK99A}}}),Object(r.b)(k,{items:O}),Object(r.c)(ke.Flex,{ml:"14px",alignItems:"center",children:[Object(r.b)(ke.Text,{color:"GBK02A",fontWeight:"bold",css:{fontSize:"17px",lineHeight:"18px"},children:"小蓝星 · ".concat(h)}),Object(r.b)(ke.Text,{color:"GBK05A",css:{fontSize:"14px",lineHeight:"16px",marginLeft:"10px"},children:C?$()(_e(),Object(xe.cnNiceNumber)(v),C?"部影视":"个商品",Object(xe.cnNiceNumber)(g)):"来自知友的真实反馈"})]})]}))})})})},Be=n(440),ze=n(1089);function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Fe=function(e){Object(s.a)(n,e);var t=De(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props.item;return Object(r.b)(Be.a,{className:"QuestionTopic",children:Object(r.b)(ze.a,{noHoverCard:!1,topic:e})})}}]),n}(d.Component),Ue=Object(j.b)((function(e){return{module:"TopicItem",content:{type:"Topic",token:e.item.id},trackCardShow:!0}}))(Fe),Ve=n(1783),qe=n(1271),He=n(889),Ke=n(998),Qe=n(1059),We=n(1182),Ge=function(e){var t=e.text,n=Object(Ce.a)(e,["text"]);return Object(r.b)(D.c,Object.assign({preset:"plain"},n,{icon:We.a,label:t||"修改"}))};function Ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Ze=function(e){Object(s.a)(n,e);var t=Ye(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props.tips;return Object(r.b)("div",{className:"QuestionReviewInfo",children:Object(r.b)("p",{children:e})})}}]),n}(d.PureComponent);Ze.propsTypes={tips:h.a.string};function Xe(e){var t,n,o=e.html,i=e.excerpt,c=e.thumbnailInfo,s=e.collapsed,l=e.onExpand,u=e.editable,f=e.onEdit,p=e.isVisible,h=e.isAuthor,b=i.length=75)&&s,v=!h&&!p,g=Object(d.useMemo)((function(){var e;return null==c||null===(e=c.thumbnails)||void 0===e?void 0:e.find((function(e){return"video"===e.type}))}),[c]),y=null==c||null===(t=c.thumbnails)||void 0===t||null===(n=t[0])||void 0===n?void 0:n.url,O=Object(d.useState)(null),j=Object(a.a)(O,2),w=j[0],C=j[1];return Object(r.b)("div",{css:{minHeight:"10px"},children:Object(r.c)("div",{className:de()("QuestionRichText",{"QuestionRichText--expandable":b,"QuestionRichText--collapsed":s,"QuestionRichText--video":g&&s}),onClick:function(e){m&&"function"==typeof l&&l(e);var t=e.target;"IMG"===t.tagName&&t.classList.contains("zh-lightbox-thumb")&&C(t)},children:[g&&s&&Object(r.b)("div",{className:"QuestionRichText--wrapImgae",children:Object(r.b)("img",{src:y,alt:"video",className:"QuestionRichText--image"})}),!v&&Object(r.c)("div",{children:[m?Object(r.b)("span",{children:Object(Qe.b)(i,75)}):Object(r.b)(Ke.a,{itemProp:"text",tag:"span",html:o}),m&&Object(r.c)(D.c,{preset:"plain",className:"QuestionRichText-more",children:["显示全部 ",Object(r.b)(qe.a,{center:!0})]})]}),u&&!m&&Object(r.b)(Ge,{onClick:f}),w&&Object(r.b)(He.a,{img:w,onClose:function(){return C(null)}})]})})}function Je(e){var t=e.reviewInfo,n=e.thumbnailInfo,o=e.html,a=e.excerpt,i=(t||{}).tips,c=Object(d.useMemo)((function(){var e;return null==n||null===(e=n.thumbnails)||void 0===e?void 0:e.find((function(e){return"video"===e.type}))}),[n]),s=Boolean(o&&a);return Object(r.c)("div",{children:[i&&c&&Object(r.b)(Ze,{tips:i}),s?Object(r.b)(Xe,Object.assign({},e)):null]})}var $e=n(371),et=n(66),tt=n(175),nt=n(2007),rt=n(2215),ot=n(547),at=n(101);function it(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ct=function(e){Object(s.a)(n,e);var t=it(n);function n(){var e;Object(i.a)(this,n);for(var o=arguments.length,a=new Array(o),c=0;c0?"好问题 ".concat(u):"好问题"})})},On=n(1388),jn=n(1377),wn={true:{title:"确定解锁问题编辑?",subtitle:"该问题编辑已锁定,解锁后可被其他用户编辑,要解锁编辑吗?",confirmText:"解锁问题编辑"},false:{title:"确定锁定问题编辑?",subtitle:"锁定后,其他用户将不可编辑你提出的问题",confirmText:"锁定问题编辑"}};function Cn(e){var t=e.showModal,n=e.showEncourageAuthorEditLock,o=e.handleConfirmEditLock,i=e.handleEditLockShown,c=n?"编辑已锁定":"锁定编辑",s=Object(d.useRef)(),l=Object(d.useState)(!1),u=Object(a.a)(l,2),f=u[0],p=u[1];Object(d.useEffect)((function(){Oe.a.get("question::hasSeenShowEditLockHint")||Object(jn.b)([Object(jn.a)(3e3).then((function(){Oe.a.set("question::hasSeenShowEditLockHint",!0),p(!0)})),Object(jn.a)(3e3).then((function(){p(!1)}))])}),[]),Object(d.useEffect)((function(){Object(ge.onViewedOnce)(s.current,(function(){re.a.trackCardShow(s.current,{id:7666},{button:{text:c}})}))}),[c]);var h=Object(d.useCallback)((function(){re.a.trackEvent(s.current,{id:7669,action:"Click"},{button:{text:c}}),i()}),[i,c]),b=function(e){var t=e?wn[n].confirmText:"取消";re.a.trackEvent(null,{id:7678,action:"Select",name:t},{button:{text:c}}),e?o():i()};return Object(r.c)(r.a,{children:[Object(r.b)(D.c,{preset:"plain",onClick:h,label:c,icon:On.a,onRef:s}),Object(r.b)(ve.a,{className:"QuestionEditLockMenu-Hint",isOpen:f,target:s.current,placement:"top",children:"锁定后问题不可被其他用户编辑"}),Object(r.b)(rn.a,Object.assign({needCancel:!1,showButtonHorizontal:!0,showConfirmButtonRight:!0,onCancel:function(){return b(!1)},onSubmit:function(){return b(!0)},shown:t},wn[n]))]})}function kn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var xn={invitationShown:!1,reportShown:!1,editLockShown:!1,lockTipsShown:!1,deleteShown:!1,redirectionCreatorShown:!1},Sn=[{key:"all",name:"开放评论"},{key:"censor",name:"预审评论"},{key:"nobody",name:"关闭评论"}],En=[{key:"open",name:"开放回答"},{key:"censor",name:"预审回答"}],Rn=function(e){Object(s.a)(n,e);var t=kn(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},n=t.eventId,r=void 0===n?3312:n;re.a.trackEvent(null,{id:r});var o,a=e.props,i=a.question,c=i.relationship.isAnonymous,s=i.status,l=(s=void 0===s?{}:s).isLocked,u=s.isClose,d=s.isEvaluate,f=s.isSuggest,p=i.reviewInfo,h=(p=void 0===p?{}:p).tips,b=a.onInvitationTipShow;h?e.handleReviewingNotification():c?b():(l?o="锁定":u?o="关闭":(d||f)&&(o="建议修改"),o?e.props.showNotification("该问题已被".concat(o,",不能邀请人回答此问题"),"red"):e.handleInvitationShow())}),nn.W.invite),e.handleInvitationShow=function(){return e.setState({invitationShown:!0})},e.handleInvitationHide=function(){return e.setState({invitationShown:!1})},e.handleReport=function(){e.setState({reportShown:!e.state.reportShown})},e.handleEditLockShown=function(){e.setState({editLockShown:!e.state.editLockShown})},e.handleLockClick=function(){return e.props.question.status.isLocked?e.handleUpdateQuestionLocked():e.handleLockTipsShow()},e.handleOpenStatusChange=function(t){var n=e.props;(0,n.updateBrandQuestionOpenStatus)(n.question.id,t)},e.handleUpdateQuestionLocked=function(){var t=e.props,n=t.question.id;(0,t.updateQuestionLocked)(n)},e.handleLockTipsShow=function(){return e.setState({lockTipsShown:!0})},e.handleLockTipsHide=function(){return e.setState({lockTipsShown:!1})},e.handleDelete=function(){return e.setState({deleteShown:!0})},e.handleDeleteModalClose=function(){return e.setState({deleteShown:!1})},e.handleConfirmDelete=function(){e.handleDeleteModalClose();var t=e.props,n=t.question,r=n.id,o=n.questionType,a=t.deleteQuestion,i=t.deleteBrandQuestion;return("commercial"===o?i:a)(r).then((function(){location.href="/"}))},e.handleConfirmEditLock=function(){e.handleEditLockShown();var t=e.props;(0,t.toggleQuestionEditLock)(t.question.id)},e.handleRedirectionCreatorShow=function(){e.props.question.reviewInfo.tips?e.handleReviewingNotification():e.setState({redirectionCreatorShown:!0})},e.handleRedirectionCreatorClose=function(){e.setState({redirectionCreatorShown:!1})},e.handleRedirectionCreated=function(t,n){var r=e.props,o=r.router,a=r.question.id,i=t.id;e.handleRedirectionCreatorClose(),n.then((function(){o.push("/question/".concat(i,"?rf=").concat(a))}))},e.handleCommentPermissionChange=function(t){var n=e.props;(0,n.updateQuestionPermission)(n.question.id,t)},e.handleShareMenuTogglerClick=function(){var t=e.props.question.reviewInfo;return!(t=void 0===t?{}:t).tips||(e.handleReviewingNotification(),!1)},e.toggleAnonymous=function(){var t=e.props,n=t.question.reviewInfo,r=n.tips,o=n.editTips,a=t.isCurrentAnswerCommercialReported;r?e.handleReviewingNotification():o?e.props.showNotification(o,"red"):a?e.props.showNotification("已经进行商业声明的内容不能启用匿名","red"):e.context.toggleAnonymous()},e.getQuestionStatus=function(){return Object(dt.c)(e.props.question.status)},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props.getHandleInvite;e&&e(this.handleInvite)}},{key:"componentWillReceiveProps",value:function(e){this.props.question.id!==e.question.id&&this.setState(xn)}},{key:"renderCommercialMenuItems",value:function(e){var t=this,n=this.props,o=n.permission.canBrandAdminEdit,a=n.question,i=a.status,c=(i=void 0===i?{}:i).isLocked,s=a.commentPermission,l=a.brandOpenStatus,u=a.brand,f=(u=void 0===u?{}:u).isPuQuestion;if(!o)return null;var p=Sn,h=En;return Object(r.c)(d.Fragment,{children:[p.map((function(n){var o=n.key,a=n.name,i=!s&&"all"===o||s===o;return Object(r.c)(tn.b,{className:e,onClick:function(){return t.handleCommentPermissionChange(o)},children:[i&&Object(r.b)(Xt.a,{className:"MenuItem-icon",text:!0,center:!0})," ",a]},o)})),Object(r.b)("li",{className:"Menu-divider"}),(f&&(h=[{key:"open",name:"开放回答"}]),Object(r.c)(r.a,{children:[!c&&h.map((function(n){var o=n.key,a=n.name,i=l===o;return Object(r.c)(tn.b,{className:e,onClick:function(){return!i&&t.handleOpenStatusChange(o)},children:[i&&Object(r.b)(Xt.a,{className:"MenuItem-icon",text:!0,center:!0})," ",a]},o)})),!f&&Object(r.b)(tn.b,{className:e,onClick:t.handleLockClick,children:c?"开放回答":"关闭回答"}),Object(r.b)("li",{className:"Menu-divider"})]}))]})}},{key:"renderMobileMenuItems",value:function(e){var t=this.props,n=t.question.id,o=t.shouldOia;return e.map((function(e){var t=e.text,a=e.handler;return Object(r.b)(tn.b,{onClick:o?function(){return Object($e.e)(Object(ut.a)({type:"question",id:n},{utm_content:"invite"}))}:a,children:t},t)}))}},{key:"renderLogMenuItem",value:function(){var e=this.props,t=e.question.id;return e.shouldOia?Object(r.b)(tn.b,{onClick:function(){return Object($e.e)(Object(ut.a)({type:"question",id:t}))},children:"查看问题日志"}):Object(r.b)(tn.b,{tag:at.a,a:!0,to:"/question/".concat(t,"/log"),children:"查看问题日志"})}},{key:"render",value:function(){var e=this.state,t=e.invitationShown,n=e.reportShown,o=e.editLockShown,a=e.lockTipsShown,i=e.deleteShown,c=e.redirectionCreatorShown,s=this.props,l=s.question,u=s.question,d=u.id,f=u.title,p=u.answerCount,h=u.collapsedAnswerCount,b=u.relationship,m=b.isAuthor,v=b.isAnonymous,g=u.questionType,y=u.isEditable,O=u.author.urlToken,j=u.showEncourageAuthorEditLock,w=s.isMuteSpecial,C=s.isMuteFreeze,k=s.publicEditPermission,x=(k=void 0===k?{}:k).isQuestionRedirectEditable,S=s.currentUserUrlToken,E=s.permission.canBrandAdminEdit,R=s.editQuestionButton,T=this.context.currentUser,A="commercial"===g,N=T&&!m,_=T&&m&&"boolean"==typeof j,I=A?E:Boolean(m&&0===p&&0===h),M=[N&&{text:"举报",icon:Jt.a,handler:this.handleReport}].filter(Boolean),L=O===S,P=Object(dt.e)(y,L,x),B=this.shouldShowAnonymousMenuItem,z=B||this.shouldShowMenu,U=de()("QuestionHeader-menu-item",{"QuestionHeader-menu-item--com":A});return Object(r.c)("div",{className:"QuestionHeaderActions",children:[Object(r.b)(D.c,{color:"grey",style:{marginRight:16},onClick:this.handleInvite,label:"邀请回答",icon:$t.a,disabled:w||C}),Object(r.b)(yn,{questionId:d,authRequired:this.context.authRequired}),Object(r.b)(hn,{question:l,handleReviewingNotification:this.handleReviewingNotification}),Object(r.b)(on.a,{id:d,title:f,href:"/question/".concat(d),onTogglerClick:this.handleShareMenuTogglerClick,type:"question",disabled:w||C}),R,_&&Object(r.b)(Cn,{showModal:o,showEncourageAuthorEditLock:j,handleEditLockShown:this.handleEditLockShown,handleConfirmEditLock:this.handleConfirmEditLock}),z&&Object(r.c)(tn.c,{toggler:Object(r.b)(D.c,{preset:"plain","aria-label":"更多",icon:en.a}),menuClassName:"QuestionHeader-menu",itemClassName:U,children:[!1,B&&Object(r.b)(tn.b,{onClick:this.toggleAnonymous,children:v?"取消匿名身份":"使用匿名身份"}),A&&this.renderCommercialMenuItems(U),I&&Object(r.b)(tn.b,{onClick:this.handleDelete,children:"删除问题"}),P&&!T.isOrg&&"normal"===g&&Object(r.b)(tn.b,{onClick:this.handleRedirectionCreatorShow,children:"问题重定向"}),!A&&this.renderLogMenuItem(),M.map((function(e){var t=e.text,n=e.handler,o=e.disabled;return Object(r.b)(tn.b,{onClick:n,disabled:o,children:"举报问题"},t)}))]}),Object(r.b)(an.a,{type:"question",urlToken:d,shown:n,status:this.getQuestionStatus(),onClose:this.handleReport,zaEnabled:!0}),Object(r.b)(F.b,{size:"fullPage",onClose:this.handleInvitationHide,children:t&&Object(r.b)(Lt.a,{question:l})}),Object(r.b)(rn.a,{title:A?"关闭回答":"锁定问题",subtitle:"".concat(A?"关闭":"锁定","后该问题将无法添加新回答,你确定要").concat(A?"关闭":"锁定","吗?"),shown:a,onCancel:this.handleLockTipsHide,onSubmit:this.handleUpdateQuestionLocked}),Object(r.b)(F.b,{size:"large",title:"问题重定向",onClose:this.handleRedirectionCreatorClose,children:c&&Object(r.b)(cn.a,{question:l,onSubmitted:this.handleRedirectionCreated})}),Object(r.b)(rn.a,{title:"删除问题",subtitle:"你确定要删除这个问题吗?相关的评论也将被删除。",onCancel:this.handleDeleteModalClose,onSubmit:this.handleConfirmDelete,shown:i})]})}},{key:"shouldShowAnonymousMenuItem",get:function(){var e=this.context.currentUser;if(e&&!e.isOrg){var t=this.props,n=t.question,r=n.questionType,o=n.relationship.isAnonymous,a=t.allowCommercialAnonymousAnswer;if(o)return!0;if("normal"===r)return!0;if("commercial"===r&&a)return!0}return!1}},{key:"shouldShowMenu",get:function(){var e=this.props,t=e.question.questionType,n=e.permission.canBrandAdminEdit,r="commercial"===t;return!r||!(!r||!n)}}]),n}(d.PureComponent);Rn.contextTypes={currentUser:h.a.object,authRequired:h.a.func,toggleAnonymous:h.a.func};var Tn=Object(E.compose)(o.withRouter,Object(b.connect)((function(e,t){return{shouldOia:Object(U.h)(e),isMuteSpecial:Object(R.C)(t.question),isMuteFreeze:Object(R.B)(t.question),publicEditPermission:e.publicEditPermission,currentUserUrlToken:e.currentUser,permission:Object(R.Z)(e),allowCommercialAnonymousAnswer:"show"===Object(U.a)(e,"gue_anonymous"),isCurrentAnswerCommercialReported:Object(R.A)(e,t.question)}}),{deleteQuestion:R.l,deleteBrandQuestion:R.i,updateQuestionLocked:R.ob,toggleQuestionEditLock:R.gb,showNotification:B.h,updateQuestionPermission:R.pb,updateBrandQuestionOpenStatus:R.hb}))(Rn);function An(e){var t=e.brand,n=e.noDivider,o=t.name,a=t.logo,i=t.target,c=t.description,s=t.typeDescription,l=i?"a":"div";return Object(r.c)("div",{className:de()("BrandQuestionSymbol",{"is-mobile":!1}),children:[Object(r.c)(l,Object.assign({className:"BrandQuestionSymbol-brandLink"},i&&{href:"/".concat("organization"===i.userType?"org":"people","/").concat(i.urlToken)},{children:[Object(r.b)("img",{role:"presentation",src:a,className:"BrandQuestionSymbol-logo"}),Object(r.b)("span",{className:"BrandQuestionSymbol-name",children:o}),i&&Object(r.b)(pe.c,{badge:i.badge})]})),Object(r.b)("span",{css:{marginLeft:5},children:c}),Boolean(s)&&Object(r.b)("span",{className:"BrandQuestionSymbol-typeDesc",children:s}),!n&&Object(r.b)("div",{className:"BrandQuestionSymbol-divider"})]})}var Nn=n(1341);function _n(e,t){var n=new Date(e),r=new Date(t),o=Date.UTC(n.getFullYear(),n.getMonth(),n.getDate()),a=Date.UTC(r.getFullYear(),r.getMonth(),r.getDate());return Math.floor((a-o)/864e5)}var In=Object.assign;var Mn=function(e){return f.a.createElement(Te.a,In({viewBox:"0 0 72 18"},e),f.a.createElement("g",{fillRule:"evenodd"},f.a.createElement("rect",{width:"72",height:"18",rx:"2"}),f.a.createElement("text",{fill:"#FFF",fontSize:"12",fontWeight:"500"},f.a.createElement("tspan",{x:"19",y:"13"},"有奖问答")),f.a.createElement("path",{fill:"#FFF",d:"M13.4 5.8H11a.4.4 0 01-.4-.3l.1-.4 1.6-1.7c.4-.4 1-.5 1.6-.2.5.3.8 1 .7 1.5-.2.6-.7 1-1.3 1zm0-1.9L13 4l-.7.8h1c.3 0 .5-.2.5-.4 0-.3-.2-.5-.5-.5zM10 6.4v1.5H5.8a.8.8 0 110-1.5H10zm.8 0h4.3a.8.8 0 010 1.5H11V6.4zM10 8.7v6H8.4c-.8 0-1.1-.2-1.5-.4-.3-.1-.5-.4-.7-.7-.2-.3-.3-.7-.3-1.5v-.9c0-.8.1-1.1.3-1.5l.7-.7c.4-.2.7-.3 1.5-.3h1.7zm.8 0h1.7c.8 0 1.1.1 1.5.3l.7.7c.2.4.3.7.3 1.5v1c0 .7-.1 1-.3 1.4-.2.3-.4.6-.7.7-.4.2-.7.3-1.5.3h-1.7V8.7zm-3.3-3c-.6 0-1.1-.4-1.3-1-.1-.5.2-1.2.7-1.5.5-.3 1.2-.2 1.6.2l1.6 1.7s.1.3 0 .4c0 .2-.2.2-.3.3H7.6zM8 4a.4.4 0 00-.5 0c-.2 0-.4.3-.3.5 0 .2.2.3.4.3h1L8 4z",fillRule:"nonzero"})))};function Ln(e){var t=["一","二","三"],n=function(){var t=e.question,n=t.id,a=t.prize,i=a.endTime,c=a.rule,s=a.status;return Object(r.c)("div",{className:"BrandQuestionPrizes-tips",children:[Object(r.c)("div",{className:"BrandQuestionPrizes-tip",children:[Object(r.c)("span",{className:"BrandQuestionPrizes-tipTitle",children:["活动时间",":"]}),Nn.a(new Date(1e3*i),"yyyy-MM-dd HH:mm")," 截止"]}),Object(r.c)("div",{className:"BrandQuestionPrizes-tip",children:[Object(r.c)("span",{className:"BrandQuestionPrizes-tipTitle",children:["活动规则",":"]}),c]}),Object(r.c)("div",{className:"BrandQuestionPrizes-tip",children:[Object(r.c)("span",{className:"BrandQuestionPrizes-tipTitle",children:["获奖公示",":"]}),"ongoing"===s&&"获奖名单将在活动结束后公布","finished"===s&&"品牌开奖中,即将公布获奖名单","awarded"===s&&Object(r.b)(o.Link,{target:"_blank",to:"/organization/question/".concat(n,"/winners"),children:"查看获奖名单"}),!1]}),Object(r.c)("div",{className:"BrandQuestionPrizes-rule",children:["品牌方为本问题设置了有奖问答,添加回答即视为参与活动,并同意遵守",Object(r.b)("a",{className:"BrandQuestionPrizes-ruleLink",href:"https://www.zhihu.com/organization/ophelp/norm/53",target:"_blank",rel:"noopener noreferrer",children:"《有奖问答活动管理办法》"})]})]})},a=e.handleToggle,i=e.expanded,c=e.question,s=c.id,l=c.prize,u=c.relationship,d=(u=void 0===u?{}:u).isAuthor,f=c.permission,p=(f=void 0===f?{}:f).isSuperUser;if(!l||!l.status)return null;var h=l.endTime,b=l.prizes,m=l.status,v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,n=new Date(t),r=Math.floor(n.getTime()/1e3),o=e-r;if(o<0)return null;var a,i=0,c=1,s=60*c,l=60*s,u=24*l;if(o>u){var d=new Date(1e3*e);i=_n(n,d),a="天"}else o>l?(i=Math.floor(o/l),a="小时"):o>s?(i=Math.floor(o/s),a="分钟"):(i=o,a="秒");return{quantity:i,unit:a}}(h);return Object(r.c)("div",{className:de()("BrandQuestionPrizes",{"is-mobile":!1}),children:[Object(r.c)("div",{className:"BrandQuestionPrizes-info",children:[Object(r.c)("div",{className:"BrandQuestionPrizes-bar",onClick:a,children:[Object(r.c)("div",{className:"BrandQuestionPrizes-desc",children:[Object(r.c)("div",{className:"BrandQuestionPrizes-symbol",children:[Object(r.b)(Mn,{alt:"logo",width:72,height:18,fill:"ongoing"===m?"#ff9607":"#999999"}),"ongoing"===m&&Object(r.c)("span",{children:["距离结束还有",Object(r.b)("em",{children:v.quantity}),v.unit]}),"finished"===m&&"待开奖","awarded"===m&&"已开奖"]}),Object(r.c)("div",{className:"BrandQuestionPrizes-name",children:["奖品:",b[0].name,b.length>1&&"等"]})]}),Object(r.c)("div",{className:"BrandQuestionPrizes-images",children:[b.map((function(e,t){var n=e.imageUrl;return n&&Object(r.b)("img",{src:n,role:"presentation"},"BrandQuestionPrizes-images".concat(t))})),Object(r.b)(qe.a,{text:!0,center:!0,fill:"#9fadc7"})]})]}),i&&Object(r.b)("div",{className:"BrandQuestionPrizes-detail",children:b.map((function(e,n){var o=e.imageUrl,a=e.name,i=e.value,c=e.quantity;return Object(r.c)("div",{className:"BrandQuestionPrizes-prize",children:[Object(r.c)("div",{className:"BrandQuestionPrizes-intro",children:[o&&Object(r.b)("img",{className:"BrandQuestionPrizes-prizeImage",src:o,role:"presentation"}),Object(r.c)("div",{className:"BrandQuestionPrizes-prizeInfo",children:[Object(r.c)("div",{className:"BrandQuestionPrizes-prizeName",children:[b.length>1&&"".concat(t[n],"等奖:"),a]}),Object(r.c)("div",{className:"BrandQuestionPrizes-prizeValue",children:["价值 ¥ ",i]})]})]}),Object(r.c)("div",{className:"BrandQuestionPrizes-prizeQuantity",children:[c," 份"]})]},"BrandQuestionPrizes-prize".concat(n))}))}),i&&!1]}),i&&n(),i&&Object(r.b)("hr",{className:"BrandQuestionPrizes-split"}),(p||d)&&Object(r.c)(at.a,{className:"BrandQuestionPrizes-edit",to:"/organization/question/".concat(s,"/setting/").concat("finished"===m?"winners":"prize"),children:["ongoing"===m&&"编辑有奖回答","finished"===m&&"填写获奖名单"]})]})}var Pn=n(403);function Bn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var zn=function(e){Object(s.a)(n,e);var t=Bn(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this,t=this.props.question,n=t.id,o=t.permission,a=void 0===o?{}:o,i=a.isSuperUser,c=a.canBrandAdminEdit,s=a.haveCard;return c||i?Object(r.b)(tn.c,{className:"BrandQuestionSettingMenu",toggler:Object(r.b)(D.c,{children:"设置样式"}),children:Object(r.c)(d.Fragment,{children:[Object(r.b)(tn.b,{className:"BrandQuestionSettingMenu-item",onClick:function(){e.context.router.push("/organization/question/".concat(n,"/setting/topbanner"))},children:"设置提问头图"}),Object(r.b)(tn.b,{className:"BrandQuestionSettingMenu-item",onClick:function(){e.context.router.push("/organization/question/".concat(n,"/setting/prize"))},children:"编辑有奖问答"}),s&&Object(r.b)(tn.b,{className:"BrandQuestionSettingMenu-item",onClick:function(){e.context.router.push("/organization/question/".concat(n,"/setting/advanced"))},children:"编辑品牌推荐"})]})}):null}}]),n}(d.Component);zn.contextTypes={currentUser:h.a.object,router:h.a.object};var Dn=Object(E.compose)(Object(b.connect)((function(e,t){return{question:e.entities.questions[t.question.id]}})),Object(Pn.a)())(zn),Fn=n(811),Un=n(1068),Vn=n(390);function qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Hn=function(e){Object(s.a)(n,e);var t=qn(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a/g,""),i=n||{},c=i.type,s=i.urlToken,l=i.isFollowing,u="https://www.zhihu.com/pin/".concat(o);return Object(r.c)("div",{className:"QuestionRelatedCard",children:[Object(r.b)("div",{className:"QuestionRelatedCard-title",children:"相关报道"}),Object(r.c)("div",{className:"QuestionRelatedCard-content",children:[Object(r.b)("span",{dangerouslySetInnerHTML:{__html:Object(Un.truncateHTML)(a,110).content}}),u&&Object(r.b)("a",{className:"QuestionRelated-jump",href:u,onClick:function(){e.handleTrack(1975)},children:"查看详情"})]}),s&&Object(r.c)("div",{className:"QuestionRelatedCard-footer",children:[Object(r.c)("div",{children:["来自",Object(r.b)("a",{className:"QuestionRelatedCard-from",href:"https://www.zhihu.com/people/".concat(s),target:"_blank",rel:"noopener noreferrer",onClick:function(){e.handleTrack(1971)},children:n.name})]}),Object(r.b)("div",{onClick:this.handleFollow,children:Object(r.c)(lt.a,{className:"QuestionRelatedCard-follow",type:c,id:s,isFollowing:l,children:[Object(r.b)(Fn.a,{text:!0,center:!0},"icon"),"关注机构"]})})]})]})}}]),n}(d.Component);Hn.propTypes={target:h.a.shape({type:h.a.string,id:h.a.string}).isRequired};var Kn=Object(E.compose)(Object(b.connect)((function(e,t){return{pin:Object(Vn.g)(e,t.target.id)}}),{getPinContents:Vn.e}),Object(j.b)((function(e){return{module:"PinItem",card:{content:{type:"Pin",id:e.target.id}}}})))(Hn);function Qn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Wn=function(e){Object(s.a)(n,e);var t=Qn(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"render",value:function(){var e=this.props.question.author;return Object(r.b)("div",{className:"OrgQuestionSymbol",children:Object(r.c)("div",{className:de()("OrgQuestionSymbol-inner",{"OrgQuestionSymbol-inner--mobile":!1}),children:[Object(r.c)("div",{className:"OrgQuestionSymbol-main QuestionHeader-main",children:[Object(r.b)("div",{className:"OrgQuestionSymbol-avatar",children:Object(r.b)(Mt.a,{user:e,avatar:!0,avatarProps:{size:38}})}),Object(r.c)("div",{className:"OrgQuestionSymbol-name",children:[Object(r.b)(Mt.a,{user:e})," 的提问"]})]}),Object(r.b)("div",{className:"OrgQuestionSymbol-tip",children:Object(r.b)(at.a,{preset:"plain",a:!0,to:"/org-intro#org-question",target:"_blank",children:"了解机构提问"})})]})})}}]),n}(d.Component),Gn=n(139),Yn=n(842),Zn=n(1480),Xn=n(161);function Jn(){var e=Object(X.a)(["","人评价"]);return Jn=function(){return e},e}var $n=function(e){var t=e.percent,n=e.reviewerCount,o=e.ratioStatus,a=e.title;return Object(r.c)("div",{className:"QuestionTopicReviewCardExtraInfo-cardTitleContainer",children:[Object(r.b)("h3",{className:"QuestionTopicReviewCardExtraInfo-cardTitle",children:a}),"normal"===o?Object(r.c)("div",{children:[" ",Object(r.b)("span",{className:"QuestionTopicReviewCardExtraInfo-percentNum",children:"".concat((10*t).toFixed(),"%")})," ",Object(r.c)("span",{children:["知友推荐 · ",$()(Jn(),n)]})]}):Object(r.b)("span",{children:"  推荐数据积累中"})]})};$n.propType={percent:h.a.number.isRequired,reviewerCount:h.a.string.isRequired};var er=$n,tr=n(32),nr=n(1784),rr=Object(E.compose)(Object(b.connect)(null,(function(e,t){var n=t.metaInfo.id,r=t.questionId;return{onUpdateVoteTopic:function(t){var o=t.voteFor,a=t.method;return e(Object(tr.hb)({questionId:r,id:n,voteFor:o,method:a}))}}})),o.withRouter)(nr.a);function or(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ar=function(e){Object(s.a)(n,e);var t=or(n);function n(){var e;Object(i.a)(this,n);for(var o=arguments.length,a=new Array(o),c=0;c0&&Object(r.c)(d.Fragment,{children:[Object(r.b)("span",{children:i})," 分钟"]})]})}},{key:"render",value:function(){var e=this.props.className;return null===this.state.remainedTime?Object(r.b)("div",{className:e,children:"距结束还有"}):Object(r.b)("div",{className:e,children:this.renderCountdownTime()})}}]),n}(d.Component);function fr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}dr.propTypes={totalCountdownTime:h.a.number.isRequired,onFinish:h.a.func};var pr=function(e){Object(s.a)(n,e);var t=fr(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.permitEditTopics,n=this.props,o=n.question,a=n.brand,i=o.id,c=o.title,s=o.editableDetail,l=o.topics,u=o.questionType,d=o.relationship.isAnonymous,f=this.state.editShown;return Object(r.b)(Ve.a,{id:i,title:c,detail:s,topics:l,questionType:u,isAnonymous:d,show:f,onClose:this.handleEditClose,brand:a,permitEditTopics:t})}},{key:"renderFooter",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.permitEditQuestion,n=e.permitEditTopics,o=this.props,a=o.question,i=o.isCommercialQuestion,c=this.state.collapsed,s=this.context.currentUser,l=i&&!0;return Object(r.c)("div",{className:"QuestionHeader-footer",children:[Object(r.b)("div",{className:"QuestionHeader-footer-inner",children:Object(r.c)("div",{className:"QuestionHeader-main QuestionHeader-footer-main",children:[Object(r.b)(bt,{question:a}),l&&Object(r.b)(Dn,{question:a}),Object(r.b)(Tn,{question:a,onInvitationTipShow:this.handleInvitationTipShow,getHandleInvite:this.getHandleInvite,editQuestionButton:t&&Object(r.b)(Ge,{onClick:this.handleEditShow,text:"修改问题"})}),Object(r.b)("div",{className:"QuestionHeader-actions",children:!c&&Object(r.c)(D.c,{preset:"plain",onClick:this.handleCollapse,children:["收起 ",Object(r.b)(ee.a,{center:!0})]})})]})}),s&&this.renderEditModal({permitEditTopics:n})]})}},{key:"renderSpecialQuestionAuthor",value:function(){var e=this.props.question.author;return Object(r.c)(d.Fragment,{children:[Object(r.b)(be,{className:"QuestionHeader-specialQuestionAuthor",author:e}),Object(r.b)("div",{className:"QuestionHeader-topicDivider"})]})}},{key:"render",value:function(){var e=this,t=this.props,n=t.location,o=t.question,i=t.isAnswerPage,c=t.isCommercialQuestion,s=t.isOrgQuestion,l=t.isAuthorCurrentUser,u=t.brand,d=t.publicEditPermission,f=t.meta,p=t.permission.canBrandAdminEdit,h=o.title,b=o.detail,m=o.topics,v=void 0===m?[]:m,g=o.author,y=o.showAuthor,O=o.showEncourageAuthor,w=o.excerpt,C=o.thumbnailInfo,k=o.isEditable,x=o.id,S=o.reviewInfo,E=o.relatedCards,R=void 0===E?[]:E,T=o.annotationDetail,A=o.redPacket,N=o.isVisible,_=o.relationship.isAuthor,I=this.state,M=I.collapsed,L=I.invitationTipShown,P=I.brandQuestionPrizesExpanded,B=Object(a.a)(f,1)[0],z=v.map((function(e){return{name:e.name,id:e.id}})),D=d||{},F=D.isQuestionEditable,U=D.isQuestionTopicEditable,V=Object(dt.e)(k,l,F)||p,q=Object(dt.e)(k,l,U)||p,H=this.renderFooter({permitEditQuestion:V,permitEditTopics:q});return Object(r.c)("div",{"data-zop-question":JSON.stringify({title:h,topics:z,id:x,isEditable:k}),children:[Object(r.b)(ie.a,{children:Object(r.b)(zt,{question:o,location:n,invitationTipShown:L,onInvitationTipClose:this.handleInvitationTipClose,isAnswerPage:i})}),c&&(!M||!i)&&Object(r.b)(se.a,{type:o.type,id:o.id}),Object(r.b)(j.a,{module:"QuestionDescription",card:{content:{type:"Question",token:String(x)}},children:Object(r.c)("div",{children:[!1===N&&_&&Object(r.c)("div",{className:"QuestionReviewing",children:[Object(r.b)("div",{className:"QuestionReviewing-title",children:"内容审核中"}),Object(r.b)("div",{className:"QuestionReviewing-text",children:"内容将在审核通过后自动发布"})]}),Object(r.c)("div",{className:"QuestionHeader",ref:function(t){e.container=t},children:[Object(r.c)("div",{className:"QuestionHeader-content",children:[Object(r.c)("div",{className:"QuestionHeader-main",children:[Object(r.b)(mr,{id:x,question:o}),Object(r.c)("div",{className:"QuestionHeader-tags",children:[c&&Object(r.b)(An,{brand:u}),Object(r.c)("div",{className:"QuestionHeader-topics",children:[Boolean(y&&!(c&&(null==u?void 0:u.name)))&&this.renderSpecialQuestionAuthor(),v.map((function(e){return Object(r.b)(Ue,{item:e},e.id)}))]})]}),Object(r.c)("h1",{className:"QuestionHeader-title",children:[s&&$()(vr(),g.name),h]}),Boolean(!y&&!s&&!c&&O)&&Object(r.b)(we,{question:o,isAuthorCurrentUser:l,hasExtraContent:this.hasExtraContentUnderAuthor}),Object(r.b)(ce.a,{item:o,annotationProps:T&&{annotationDetail:T}}),R[0]&&Object(r.b)(Kn,{target:R[0]}),A&&Object(r.b)(hr,{questionId:x,redPacket:A}),Object(r.b)(Ln,{question:o,expanded:P,handleToggle:this.handleBrandQuestionPrizesToggle}),Object(r.c)(me.a,{children:[Object(r.b)(Pe,{questionId:x,isInAnswerPage:i}),!c&&Object(r.b)(cr,{meta:B,questionId:x})]}),Object(r.b)(Je,{html:b,reviewInfo:S,excerpt:w,thumbnailInfo:C,collapsed:M,onExpand:this.handleExpand,onEdit:this.handleEditShow,isVisible:N,isAuthor:_})]}),Object(r.b)("div",{className:"QuestionHeader-side",children:Object(r.b)("div",{className:"QuestionHeader-follow-status",children:Object(r.b)(Zt,{question:o})})})]}),M?H:Object(r.b)(te.a,{bottom:!0,container:function(){return e.container},onPositionStatusChange:this.handlePositionStatusChange,children:H}),s&&Object(r.b)(Wn,{question:o})]})]})}),Object(r.b)(ae.a,{children:Object(r.c)("div",{className:"QuestionHeader-content",children:[Object(r.b)("div",{className:"QuestionHeader-main",children:Object(r.b)("h1",{className:"QuestionHeader-title",onClick:function(){Object(ne.scrollTo)(window,{top:0,behavior:"smooth"})},children:h})}),Object(r.b)(j.a,{module:"ToolBar",card:{content:{type:"Question",token:String(x)}},children:Object(r.b)("div",{className:"QuestionHeader-side",children:Object(r.b)(bt,{question:o,inTopBar:!0})})})]})})]})}},{key:"hasExtraContentUnderAuthor",get:function(){var e=this.props,t=e.question,n=e.isCommercialQuestion,r=e.meta,o=t.relatedCards,i=void 0===o?[]:o,c=t.annotationDetail,s=t.redPacket,l=t.prize,u=Object(a.a)(r,1)[0];return c||i[0]||s||(null==l?void 0:l.status)||u&&!n}}]),n}(d.PureComponent);yr.contextTypes={authRequired:h.a.func,currentUser:h.a.object},yr.propTypes={question:h.a.object,location:h.a.object,isAnswerPage:h.a.bool};var Or=Object(E.compose)(o.withRouter,Object(b.connect)((function(e,t){var n=e.question.brand,r=e.publicEditPermission,o=e.currentUser,a=t.question,i=a.questionType,c=a.author;return{brand:n,publicEditPermission:r,currentUserUrlToken:o,permission:Object(R.Z)(e),isCommercialQuestion:"commercial"===i,isOrgQuestion:"org"===i,isAuthorCurrentUser:Object(M.i)(e,c)}}),{loadBrand:R.F,updateQuestionLocked:R.ob,deleteQuestion:R.l,deleteBrandQuestion:R.i,showNotification:B.h,loadQuestionCommercialBanner:R.R,loadBrandQuestionRedPacket:R.L,loadBrandQuestionPermission:R.J,loadBrandQuestionOpenStatus:R.I,loadBrandQuestionAdvancedStyle:R.G,loadBrandQuestionPrize:R.K}))(yr),jr=n(1159),wr=n(1789);function Cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}function kr(e){var t=e.toString();return 1===t.length?"0".concat(t):t}var xr=function(e){var t=Object(w.parseInputTime)(e);return t?"".concat(t.getFullYear(),"-").concat(kr(t.getMonth()+1),"-").concat(kr(t.getDate()),"T").concat(kr(t.getHours()),":").concat(kr(t.getMinutes()),":").concat(kr(t.getSeconds())):""};function Sr(){var e=document.querySelector("#js-answerAddCard");e?e.scrollIntoView({block:"end"}):window.scrollTo(0,0)}var Er=function(e){Object(s.a)(n,e);var t=Cr(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]&&arguments[0];Sr(),e.setState({answering:Date.now()},(function(){t&&setTimeout(Sr)}))},e}return Object(c.a)(n,[{key:"getChildContext",value:function(){return{toggleAnonymous:this.handleToggleAnonymous,startAddAnswer:this.startAddAnswer,endAddAnswer:this.endAddAnswer}}},{key:"componentDidMount",value:function(){var e=this;Object(jr.d)();var t,n=this.props,r=n.question,o=n.answer,a=n.currentUser;(!(t=null==o?void 0:o.updatedTime)||Date.now()-1e3*t>6e4)&&Object(I.loadScript)("https://zz.bdstatic.com/linksubmit/push.js",{crossOrigin:void 0}),Promise.resolve(r?this.fetchDraft():this.fetchQuestionAndDraft()).then((function(){var t=e.props.draft;if(!e.props.params.answerId){var n="#draft"===location.hash||"#write"===location.hash;(t&&!t.schedule||!t&&n)&&e.focusAddAnswer(n)}})),this.getPublicEditPermission(),a&&"guest"!==a.userType||this.setState({signFlowModalShown:!0})}},{key:"componentDidUpdate",value:function(e){this.props.params.id!==e.params.id&&this.fetchQuestionAndDraft()}},{key:"componentWillUnmount",value:function(){this.subscription&&this.subscription.unsubscribe(),this.scrollSubscription&&this.scrollSubscription.unsubscribe()}},{key:"fetchQuestionAndDraft",value:function(){var e=this.props,t=e.id,n=e.loadQuestion;return Promise.all([n(t),this.fetchDraft()])}},{key:"fetchDraft",value:function(){var e,t=this.props.loadDraft;return this.context.currentUser&&(e=t(this.props.params.id)),this.setState({anonymousConfirmShown:!1}),e}},{key:"renderMeta",value:function(){var e=this.props.question,t=Object(dt.d)(e);return Object.keys(t).map((function(e){return Object(r.b)("meta",{itemProp:e,content:t[e]},e)}))}},{key:"renderJSONLD",value:function(){var e=this.props,t=e.location,n=e.question,o=e.answer,i=e.params.answerId,c=e.ua;if(!/baiduspider/i.test(c.origin))return null;var s=Boolean(i),l=s?o:n;if(l){var u=s?[l.createdTime,l.updatedTime]:[l.created,l.updatedTime],d=Object(a.a)(u,2),f=d[0],p=d[1],h=xr(f),b=xr(p);return Object(r.b)("script",{type:"application/ld+json",children:'\n {\n "@context": "https://ziyuan.baidu.com/contexts/cambrian.jsonld",\n "@id": "https://www.zhihu.com'.concat(t.pathname,'",\n "appid": "否",\n "pubDate": "').concat(h,'",\n "upDate": "').concat(b,'"\n }')})}}},{key:"handleSignFlowModalClose",value:function(){this.setState({signFlowModalShown:!1})}},{key:"render",value:function(){var e,t=this,n=this.props,o=n.location,a=n.params,i=n.children,c=n.question,s=n.router.location.query,l=n.meta,u=n.answer,f=n.firstAnswer,p=Boolean(a.answerId);if(!c)return Object(r.b)("div",{});if("true"===s.answer_deleted_redirect)return Object(r.b)(Z,{id:c.id});var h=c.questionType,b=c.isMuted,v=c.title,y=c.relationship,O=y.isAuthor,w=y.myAnswer,C=c.visibleOnlyToAuthor;if(!p&&!O&&C||p&&(null==u?void 0:u.visibleOnlyToAuthor)&&!(null==u||null===(e=u.relationship)||void 0===e?void 0:e.isAuthor))return Object(r.b)(S,{});var k=this.state,x=k.anonymousConfirmShown,E=k.answering,R=k.hideIsMutedCover,T=k.signFlowModalShown,A=p?u:c;return Object(r.b)(m.b,{content:{type:"Question",token:String(null==c?void 0:c.id)},children:Object(r.b)(j.a,{module:"QuestionItem",card:{content:{type:"Question",token:String(c.id)}},children:Object(r.c)("div",{className:"QuestionPage",itemScope:!0,itemType:"http://schema.org/Question",children:[Object(r.b)(K,{}),A&&Object(r.b)(N,{entity:A}),T&&Object(r.b)(z.b,{showQrcodeFirst:!0,titlePart:Object(r.b)(wr.a,{title:"登录知乎,问答干货一键收藏"}),maskClosable:!1,defaultType:"login",onClose:function(){t.handleSignFlowModalClose()}}),Object(r.b)(g.a,Object.assign({title:v},!p&&{meta:Object(_.c)(c,f)})),this.renderMeta(),this.renderJSONLD(),"commercial"===h&&b&&!R&&O&&Object(r.b)("div",{className:"QuestionPage-commercialIsMutedCover",onClick:function(){t.setState({hideIsMutedCover:!0})}}),C&&O&&!p&&Object(r.b)("div",{className:"QuestionPage-visibleYourself",children:"仅自己可见"}),Object(r.b)(Or,{meta:l,question:c,location:o,onToggleAnonymous:this.handleToggleAnonymous,isAnswerPage:p}),Object(r.b)(jr.a.Provider,{value:this.editableStatscReporter,children:Object(d.cloneElement)(d.Children.only(i),{question:c,answering:E})}),Object(r.b)(H,{question:c,myAnswer:w,shown:x,onClose:this.handleToggleAnonymous})]})})})}}]),n}(d.PureComponent);Er.fetchData=function(e){var t=e.dispatch,n=e.getState,r=e.params,o=r.id,a=r.answerId;return n().env.userAgent.isBot?Promise.all([t(Object(R.X)(o,a)),t(Object(R.Y)(o)),t(Object(R.Q)(o))]):t(Object(R.Q)(o))},Er.contextTypes={router:h.a.object,currentUser:h.a.object,authRequired:h.a.func},Er.childContextTypes={toggleAnonymous:h.a.func,startAddAnswer:h.a.func,endAddAnswer:h.a.func};var Rr=Object(b.connect)((function(e,t){var n=t.params,r=n.id,o=n.answerId,a=e.question.meta,i=e.entities.drafts,c=void 0===i?{}:i,s=e.env,l=s.referer,u=s.userAgent,d=e.reward,f=void 0===d?{}:d,p=e.currentUser,h=Boolean(o);return Object.assign({id:r,meta:a[r]||[],question:Object(R.bb)(e,{id:r}),reward:f,draft:c["question_".concat(r)],referer:l,ua:u,currentUserUrlToken:p,currentUser:Object(M.b)(e)},h?{answer:Object(P.c)(e,{id:o})}:{firstAnswer:Object(P.j)(e,{id:r})})}),{loadQuestion:R.Q,loadDraft:R.N,updateQuestionAnonymous:R.mb,showNotification:B.h,getPublicEditPermission:L.b})(Er),Tr=n(368),Ar=n(1366),Nr=n(1301);var _r=function(e){var t=e.className,n=e.type,o=n.icon,a=n.text,i=e.active,c=void 0!==i&&i,s=e.onClick;return Object(r.c)("div",{className:de()("QuestionType",t,{"QuestionType--active":c}),onClick:s,children:[Object(r.b)(o,{className:"QuestionType-icon",size:18}),a]})},Ir=n(543);var Mr=Object(b.connect)((function(e,t){var n=t.location.query.type;return{allWaitingQuestions:e.question.waitingQuestions,defaultType:Ir.b.find((function(e){return e.queryName===n}))||Ir.b[0]}}),{getWaitingQuestions:R.x,getWaitingInvitedQuestions:R.w,deleteWaitingQuestion:R.m,ignoreToolsQuestionInvite:R.z})((function(e){var t=e.allWaitingQuestions,n=e.defaultType,i=e.getWaitingQuestions,c=e.getWaitingInvitedQuestions,s=e.deleteWaitingQuestion,l=e.ignoreToolsQuestionInvite,u=Object(d.useRef)(null),f=Object(d.useState)(n.name),p=Object(a.a)(f,2),h=p[0],b=p[1],m=Object(d.useState)(Ir.b.reduce((function(e,t){var n=t.name;return Object.assign({},e,Object(le.a)({},n,0))}),{})),v=Object(a.a)(m,2),y=v[0],O=v[1],j=t[h].paging,w=function(){return c((null==j?void 0:j.next)?j.next:"notifications/v3/timeline/entry/invite?invite_with_time_slice=1&limit=20&offset=0")},C=Object(d.useState)(new Set),k=Object(a.a)(C,2),x=k[0],S=k[1],E=t[h],R=E.isEnd,T=E.isLoading,A=E.questions.filter((function(e){var t=Object(Ir.a)(e,h).question,n=t.ignoreId,r=t.id;return!x.has(n||r)}));return Object(r.c)("div",{className:"QuestionWaiting",children:[Object(r.b)(g.a,{title:"等你来答"}),Object(r.c)(Yn.d,{className:"QuestionWaiting-mainColumn",children:[Object(r.b)(te.a,{offset:62,children:function(e){var n=e.isFixed;return Object(r.c)("div",{className:de()("QuestionWaiting-typesContainer",{"QuestionWaiting-typesContainer--fixed":n}),children:[n&&Object(r.b)("div",{className:"QuestionWaiting-typesTopper"}),Object(r.b)("div",{className:de()("QuestionWaiting-types",{"QuestionWaiting-types--fixed":n}),children:Ir.b.map((function(e){return Object(r.b)(o.Link,{to:e.queryName?"/question/waiting?type=".concat(e.queryName):"/question/waiting","data-za-detail-view-id":5362,"data-za-extra":JSON.stringify({button:{text:e.text}}),children:Object(r.b)(_r,{className:"QuestionWaiting-type",type:e,active:e.name===h,onClick:function(){return function(e){O(Object.assign({},y,Object(le.a)({},h,window.pageYOffset)));var n=e.name,r=e.request,o=r.endpoint,a=r.query;t[e.name].questions.length||("invite"!==e?i({type:n,endpoint:o,query:a}):w()),b(n),window.scrollTo(0,y[n])}(e)}})},e.name)}))})]})}}),Object(r.b)(Tr.b,{ref:u,className:"QuestionWaiting-questions",onLoad:function(){"invite"===h?w():i({type:h,endpoint:n.request.endpoint,query:n.request.query,offset:A.length})},isLoading:T,placeholder:Object(r.b)(Tr.a,{className:"QuestionWaiting-placeholder"}),isDrained:R,children:A.map((function(e){var t,n=Object(Ir.a)(e,h),o=n.question,a=n.headerInfo,i=n.extraFooter,c=n.showTime,d=n.button,f=n.titleLink,p=n.zaContent;return Object(r.b)(Nr.a,{className:"QuestionWaiting-questionItem",question:o,headerInfo:a,extraFooterInfo:i,showTime:c,enableIgnore:!0,handleIgnoreQuestion:(t=o.ignoreId||o.id,function(){S(new Set(x).add(t)),"invite"===h?l(t):s(t),u.current.maybeRun()}),button:d,titleLink:f,zaContent:p,zaId:{titleClick:5364,expand:5365,cardShow:5363,writeAnswer:5367,ignoreQuestion:5366}},e.id)}))})]}),Object(r.b)(Ar.a,{omit:{noBanner:!0,noCategory:!0}})]})})),Lr=n(18),Pr=function(e){return f.a.createElement(Lr.a,e,f.a.createElement("path",{d:"M12.004 4.15a7.85 7.85 0 1 1-5.772 13.17.85.85 0 0 1 1.25-1.153 6.15 6.15 0 1 0-1.559-5.087l1.208.343a.542.542 0 0 1 .112.996l-2.597 1.42a.542.542 0 0 1-.732-.21l-1.44-2.561a.542.542 0 0 1 .62-.787l1.182.334a7.852 7.852 0 0 1 7.728-6.465zm-.178 3.792c.385 0 .7.31.7.69l-.003 3.495 2.564 1.693c.315.207.425.671.185.977-.24.305-.69.33-.99.126 0 0-2.53-1.663-2.844-1.9-.315-.236-.315-.551-.315-.551l.003-3.84c0-.38.315-.69.7-.69z",fillRule:"evenodd"}))};Pr.defaultProps={name:"Later"};var Br=Pr,zr=n(810),Dr=n(233),Fr=n.n(Dr);var Ur=function(e){var t=e.className,n=e.titleClassName,o=e.sourceClassName,i=e.hideButtonClassName,c=e.question,s=c.id,l=c.title,u=c.detail,f=c.excerpt,p=c.isDeleted,h=e.mainSource,b=e.subSource,m=e.mainTool,v=e.subTool,g=e.zaId,y=void 0===g?{}:g,O=e.onMouseEnter,w=void 0===O?Fr.a:O,C=e.onMouseLeave,k=void 0===C?Fr.a:C,x=e.onExpand,S=void 0===x?Fr.a:x,E=e.onCollapse,R=void 0===E?Fr.a:E,T="https://www.zhihu.com/question/".concat(s),A=Object(d.useState)(!0),N=Object(a.a)(A,2),_=N[0],I=N[1],M=Object(d.useCallback)((function(e){I(!0),R(e),re.a.trackEvent(e.target,{id:y.collapse,action:"Collapse"})}),[I,R,y]),L=Object(d.useCallback)((function(e){I(!1),S(e),re.a.trackEvent(e.target,{id:y.expand,action:"Expand"})}),[I,S,y]);return p?Object(r.c)("div",{className:de()("ListQuestionItem","ListQuestionItem--deleted",t),children:[Object(r.b)("div",{className:"ListQuestionItem-hint",children:"该问题已被删除"}),Object(r.b)("div",{className:"ListQuestionItem-mainTool",children:m})]}):Object(r.b)(j.a,{module:"QuestionItem",card:{content:{type:"Question",token:String(s)}},trackCardShow:Boolean(y.cardShow),view:{id:y.cardShow},children:Object(r.c)("div",{className:de()("ListQuestionItem",t),onMouseEnter:w,onMouseLeave:k,children:[(h||b)&&Object(r.c)("div",{className:de()("ListQuestionItem-source",o),children:[h&&Object(r.b)("div",{className:"ListQuestionItem-mainSource",children:h}),b&&Object(r.b)("div",{className:"ListQuestionItem-subSource",children:b})]}),Object(r.b)("a",{className:de()("ListQuestionItem-title",n,{"ListQuestionItem-title--noDetail":!u}),href:T,target:"_blank",rel:"noopener noreferrer","data-za-detail-view-id":y.titleClick,children:l}),u&&Object(r.b)(Je,{className:"ListQuestionItem-RichText",html:u,reviewInfo:{},excerpt:f,collapsed:_,onExpand:L,editable:!1}),Object(r.c)("div",{className:"ListQuestionItem-tool",children:[Object(r.c)("div",{className:"ListQuestionItem-mainTool",children:[Object(r.b)(at.a,{className:"ListQuestionItem-writeAnswerButton",color:"blue",icon:We.a,label:"写回答",href:"".concat(T,"#write"),target:"_blank","data-za-not-track-link":!0,onClick:function(e){re.a.trackEvent(e.target,{id:y.writeAnswer,action:"Answer"})}}),m]}),(v||!v&&!_)&&Object(r.c)("div",{className:"ListQuestionItem-subTool",children:[v,!_&&Object(r.c)("div",{className:de()("ListQuestionItem-hideButton",i),onClick:M,children:["收起",Object(r.b)(ee.a,{className:"ToolsQuestionItem-hideButtonIcon",center:!0})]})]})]})]})})},Vr=n(2230),qr=n.n(Vr);function Hr(e){var t=e.laterQuestions,n=e.getLaterQuestions,i=e.updateLaterQuestion,c=Object(d.useRef)(null),s=Object(d.useState)(new Set),l=Object(a.a)(s,2),u=l[0],f=l[1],p=t.count,h=t.isEnd,b=t.isLoading,m=t.questions.filter((function(e){return!u.has(e.id)}));return Object(r.c)("div",{className:"QuestionLater",children:[Object(r.c)(Yn.d,{className:"QuestionLater-mainColumn",children:[Object(r.c)("div",{className:"QuestionLater-title",children:[Object(r.b)(Br,{className:"QuestionLater-titleIcon",size:30}),"我的稍后答",Boolean(p)&&Object(r.b)("div",{className:"QuestionLater-titleNumber",children:p})]}),!b&&0===m.length&&Object(r.c)("div",{className:"QuestionLater-empty",children:[Object(r.b)("img",{className:"QuestionLater-emptyImage",src:qr.a,alt:""}),Object(r.c)("div",{className:"QuestionLater-emptyText",children:["还没有稍后答,",Object(r.b)(o.Link,{className:"QuestionLater-emptyLink",to:"/question/waiting",children:"看看为你推荐的问题"})]})]}),Object(r.b)(Tr.b,{ref:c,className:"QuestionLater-questions",onLoad:function(){return n(20,m.length)},isLoading:b,placeholder:Object(r.b)(Tr.a,{className:"QuestionLater-placeholder"}),isDrained:h,children:m.map((function(e){return Object(r.b)(Ur,{className:"QuestionLater-questionItem",question:e,zaId:{titleClick:5372,expand:5373,cardShow:5375,writeAnswer:5374},mainTool:Object(r.c)(d.Fragment,{children:[Object(r.c)(D.c,{className:de()("QuestionLater-deletingButton"),preset:"outline",color:"grey",onClick:function(t){f(new Set(u).add(e.id)),i(e.id,!1),c.current.maybeRun(),re.a.trackEvent(t.target,{id:5376,action:"Delete"})},children:[Object(r.b)(zr.a,{size:22}),"移除"]}),!e.isDeleted&&Object(r.c)("div",{className:"QuestionLater-info",children:[Object(xe.formatNumber)(e.answerCount)," 个回答"," · ",Object(xe.formatNumber)(e.visitCount)," 个浏览"]})]})},e.id)}))})]}),Object(r.b)(Ar.a,{omit:{noWrite:!0,noCreator:!0,noBanner:!0,noCategory:!0}})]})}Hr.fetchData=function(e){return(0,e.dispatch)(Object(R.t)())};var Kr=Object(b.connect)((function(e){return{laterQuestions:e.question.laterQuestions}}),{getLaterQuestions:R.s,updateLaterQuestion:R.kb})(Hr),Qr=n(1376);var Wr=function(e){var t=e.users,n=void 0===t?[]:t;return 0===n.length?null:1===n.length?Object(r.b)(Mt.a,{user:n[0]}):2===n.length?Object(r.c)(d.Fragment,{children:[Object(r.b)(Mt.a,{user:n[0]})," 和 ",Object(r.b)(Mt.a,{user:n[1]})]}):3===n.length?Object(r.c)(d.Fragment,{children:[Object(r.b)(Mt.a,{user:n[0]}),"、",Object(r.b)(Mt.a,{user:n[1]})," 和"," ",Object(r.b)(Mt.a,{user:n[2]})]}):n.length>3?Object(r.c)(d.Fragment,{children:[Object(r.b)(Mt.a,{user:n[0]}),"、",Object(r.b)(Mt.a,{user:n[1]})," 和"," ",Object(r.b)(Mt.a,{user:n[2]})," 等 ",n.length," 人"]}):null};var Gr=function(e){var t=e.user,n=t.isFollowed,o=t.isFollowing,a=t.gender,i=null;return n&&o?i="互相关注":o&&(i="你关注了".concat(function(e){return 0===e?"她":1===e?"他":"TA"}(a))),i?Object(r.b)("div",{className:"RelationLabel",children:i}):null},Yr=n(358),Zr=Yr.a[0];function Xr(e){var t=e.allInvitedQuestions,n=e.getInvitedQuestions,o=e.ignoreInvitedQuestion,i=e.updateLaterQuestion,c=Object(d.useRef)(null),s=Object(d.useState)(Zr),l=Object(a.a)(s,2),u=l[0],f=l[1],p=Object(d.useState)(new Set),h=Object(a.a)(p,2),b=h[0],m=h[1],v=Object(d.useState)(new Set),g=Object(a.a)(v,2),y=g[0],O=g[1],j=Object(d.useState)(Yr.a.reduce((function(e,t){var n=t.name;return Object.assign({},e,Object(le.a)({},n,0))}),{})),w=Object(a.a)(j,2),C=w[0],k=w[1],x=t[u.name],S=x.isEnd,E=x.isLoading,R=x.questions.filter((function(e){var t=e.question;return!b.has(t.id)}));return Object(r.c)("div",{className:"QuestionInvited",children:[Object(r.c)(Yn.d,{className:"QuestionInvited-mainColumn",children:[Object(r.c)("div",{className:"QuestionInvited-title",children:["邀请回答",Boolean(t.total.count)&&Object(r.b)("div",{className:"QuestionInvited-titleNumber",children:t.total.count-C.total})]}),Object(r.b)("div",{className:"QuestionInvited-tabs",children:Yr.a.map((function(e){return Object(r.c)("div",{className:de()("QuestionInvited-tab",{"QuestionInvited-tab--active":e.name===u.name}),onClick:function(){return function(e){t[e.name].questions.length||n(e,20,0),re.a.trackEvent(null,{id:5377},{button:{text:e.text}}),f(e)}(e)},children:[Object(r.b)("div",{className:"QuestionInvited-tabTitle",children:e.text}),Object(r.b)("div",{className:"QuestionInvited-tabMeta",children:t[e.name].count-C[e.name]})]},e.name)}))}),Object(r.b)(Tr.b,{ref:c,className:"QuestionInvited-questions",onLoad:function(){return n(u,20,R.length)},isLoading:E,placeholder:Object(r.b)(Tr.a,{className:"QuestionInvited-placeholder"}),isDrained:S,children:R.map((function(e){var t=e.inviters,n=e.question;return Object(r.b)(Ur,{className:"QuestionInvited-questionItem",question:n,zaId:{titleClick:5378,expand:5379,cardShow:5380,writeAnswer:5381},mainSource:Object(r.c)("div",{className:"QuestionInvited-questionItemMainSource",children:[Object(r.b)(Wr,{users:t})," 邀请你回答"]}),subSource:1===t.length&&Object(r.b)(Gr,{user:t[0]}),mainTool:Object(r.c)(d.Fragment,{children:[Object(r.c)(D.c,{className:de()("QuestionInvited-deletingButton"),preset:"outline",color:"grey",onClick:function(e){m(new Set(b).add(n.id)),k(Object.assign({},C,Object(le.a)({total:C.total+1},u.name,C[u.name]+1))),o(n.id),c.current.maybeRun(),re.a.trackEvent(e.target,{id:5382,action:"Ignore"})},children:[Object(r.b)(Qr.a,{size:18}),"忽略"]}),Object(r.c)(D.c,{className:de()("QuestionInvited-laterButton",{"QuestionInvited-laterButton--active":y.has(n.id)}),preset:"outline",color:"grey",onClick:function(e){var t=!y.has(n.id),r=new Set(y);t?r.add(n.id):r.delete(n.id),O(r),i(n.id,t),re.a.trackEvent(e.target,{id:5383,action:t?"Add":"UnAdd"})},children:[y.has(n.id)?null:Object(r.b)(Br,{}),y.has(n.id)?"已添加":"稍后答"]}),Object(r.c)("div",{className:"QuestionInvited-info",children:[Object(xe.formatNumber)(n.answerCount)," 个回答"," · ",Object(xe.formatNumber)(n.visitCount)," 个浏览"]})]})},n.id)}))})]}),Object(r.b)(Ar.a,{omit:{noWrite:!0,noCreator:!0,noBanner:!0,noCategory:!0}})]})}Xr.fetchData=function(e){return(0,e.dispatch)(Object(R.r)())};var Jr=Object(b.connect)((function(e){return{allInvitedQuestions:e.question.invitedQuestions}}),{getInvitedQuestions:R.q,ignoreInvitedQuestion:R.y,updateLaterQuestion:R.kb})(Xr),$r=n(132),eo=n(797),to=n(78),no=n(409),ro=n(2135),oo=n(2136),ao=n(402),io=n(72),co=n(56);var so=n(1463),lo=n(1462),uo=n(876);function fo(e){if(!Object(no.a)(e))return"";var t="";return Object(ro.a)(e)?t+="今天":Object(oo.a)(e)?t+="昨天":t+=Object(ao.a)(e,"yyyy/MM/dd"),0!==function(e){Object(co.a)(1,arguments);var t=Object(io.a)(e),n=t.getSeconds();return n}(e)?t+=" "+Object(ao.a)(e,"HH:mm:ss"):0!==Object(so.a)(e)?t+=" "+Object(ao.a)(e,"HH:mm"):0!==Object(lo.a)(e)&&(t+=" "+Object(lo.a)(e)+"点"),t}var po=function(e){var t=e.event,n=e.status,o=t.isOnline,a=t.events;if(!o&&0===n)return null;var i=Object($r.f)(),c=i.colors,s=c.GBL05A,l=c.GBK09A,u=c.GBK99A,d=c.GBL01A,f=i.fontWeights;return Object(r.b)(ke.Box,{pt:"16px",css:Object.assign({},Object($r.c)({borderTop:"1px solid ".concat(l)}),{"&::after":{content:"''",display:"block",position:"absolute",width:"2px",height:"calc(100% - 30px - 52px)",backgroundColor:s,opacity:.12,left:"24px",top:"30px"}}),children:a.map((function(e,t){var o=e.content,a=e.created,i=e.url,c=0===t;return 1===n&&t>2?null:Object(r.c)(uo.b,{zaBlock:"EventItem",target:"_blank","data-za-detail-view-id":6621,href:i,pl:"40px",css:{paddingLeft:"40px",paddingRight:"16px",position:"relative",display:"block",paddingBottom:"16px","&::after":Object.assign({content:"''",zIndex:1,display:"block",position:"absolute",left:"25px",top:"0.5em",transform:"translateX(-50%)",boxShadow:"0px 0px 0px 2px ".concat(u),borderRadius:"50%",width:"6px",height:"6px",background:s},c&&{background:d,border:"2px solid ".concat(u),boxShadow:"0 0 0 1px ".concat(d)})},children:[Object(r.b)(ke.Text,{css:Object.assign({color:s},c&&{color:d,fontWeight:f.bold}),children:fo(1e3*a)}),Object(r.c)(ke.Flex,{flexDirection:"row",alignItems:"center",mt:"6px",color:"GBK02A",css:Object.assign({},c&&{fontWeight:f.bold}),children:[Object(r.b)(ke.Text,{flex:"0 1 auto",css:Object($r.d)(1),children:o}),Object(r.b)(br.a,{text:!0,css:{color:s,flex:"0 0 auto"}})]})]},a+i)}))})},ho=function(e){var t=e.slice(0,2).map((function(e){return e.content})).join("、");return t.length<=16?t:e[0]&&e[0].content},bo=function(e){var t=e.event,n=e.status,o=e.onClick,a=t.url,i=!a,c=null,s=qe.a,l=6623;return 0===n?c="显示全部":1==n?(c=i?"展开全部进展":"查看全部进展",l=i?6623:6622,s=i?qe.a:br.a):2==n&&(c="收起",s=ee.a),Object(r.c)(Re.a,{zaAction:a?"OpenUrl":null,zaBlock:"ViewAll","data-za-detail-view-id":l,target:"_blank",flex:"0 0 auto",ml:"8px",color:"GBL05A",css:{display:"flex",flexDirection:"row",alignItems:"center",cursor:"pointer"},onClick:function(e){a||(e.preventDefault(),o(!1))},href:a,children:[c,Object(r.b)(s,{})]})},mo=function(e){var t=e.event,n=e.status,o=e.onChangeStatus,a=t.isOnline,i=t.url,c=t.events;if(a&&c.length<=3&&!i)return null;var s=Object(d.useRef)(),l=Object(to.c)((function(){0===n||1===n?o(2):2===n&&o(a?1:0),setTimeout((function(){var e;return null===(e=s.current)||void 0===e?void 0:e.check()}))}));return Object(r.b)(te.a,{ref:s,bottom:!0,children:Object(r.c)(ke.Flex,{flexDirection:"row",alignItems:"center",justifyContent:a||2===n?"flex-end":"flex-start",bg:"GBK99B",pl:"20px",pr:"13px",height:"48px",css:function(e){return Object($r.c)({borderTop:"1px solid ".concat(e.colors.GBK09A)})},children:[!a&&2!==n&&Object(r.c)(ke.Text,{children:[ho(c),"等 ",c.length," 个事件进展"]}),Object(r.b)(bo,{event:t,status:n,onClick:l})]})})},vo=function(e){var t=e.event,n=t.isOnline,o=t.url,i=Object(d.useState)((function(){return o||n?1:0})),c=Object(a.a)(i,2),s=c[0],l=c[1];return Object(r.c)(r.a,{children:[Object(r.b)(po,{event:t,status:s}),Object(r.b)(mo,{event:t,status:s,onChangeStatus:l})]})},go={special_event:"事件讨论",timeline_event:"最新进展"};var yo=function(e){var t,n=e.question;if(!(null===(t=n.event)||void 0===t?void 0:t.events))return null;var o=Object($r.f)().colors,a=o.GBK09A,i=o.GBL01A,c=n.event,s=n.id,l=c.url,u=c.type,d=c.title,f=c.isOnline,p=function(e){var t=e.match(/special\/(\d+)/);return t&&t[1]}(l);return Object(r.b)(m.b,{block:"SpecialTimeline",content:{type:"SpecialTopic",token:p},children:Object(r.b)(j.a,{trackCardShow:!0,module:"Content",content:{type:"SpecialTopic",token:p,parent_token:String(s)},extra:{button:{text:f?"online":"offline"}},view:{id:6620},children:Object(r.c)(m.e,{as:Yn.d,zaType:"Card",css:{fontSize:15},children:[Object(r.c)(ke.Flex,{flexDirection:"row",alignItems:"center",pl:"18px",height:"48px",css:Object($r.c)({borderTop:"1px solid ".concat(a)}),children:[Object(r.b)(eo.a,{css:{color:i},size:20}),Object(r.c)(ke.Text,{fontWeight:"bold",ml:"10px",children:[go[u]," · ",d]})]}),Object(r.b)(vo,{event:c})]})})})},Oo=n(923),jo=n(1482),wo=n(112),Co=n.n(wo),ko=n(33),xo=n.n(ko),So=n(80),Eo=n.n(So),Ro=n(949),To=n(1352),Ao=n(1794),No=n(935),_o=n(1306),Io=function(e){function t(){var e,n;vt()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1]?arguments[1]:aa.b,r=e.props,o=r.question.id,a=r.loadItems;a(o,"updatedAnswers",{offset:t,limit:n})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.question.id,n=e.page,r=e.isDrained,o=e.items,a=e.loadItems;!r&&o.length=s?n:a,isNextLoaded:o,page:i,total:s,placeholder:Object(r.b)(Tr.a,{className:"List-item"}),onPaginationClick:this.handlePaginationClick,onLoad:this.handleUpdatedAnswersLoad,children:Ho(c,l)})}}]),n}(d.PureComponent),sa=Object(E.compose)(o.withRouter,Object(b.connect)((function(e,t){var n=t.page,r=Vo(e,{id:t.question.id,resource:"updatedAnswers"}),o=r.isFetching,a=r.isDrained,i=r.ids,c=Object(Fo.d)(n,i),s=c.total,l=c.isCurrentLoaded,u=c.isNextLoaded,d=c.items;return{isMuteSpecial:Object(R.C)(t.question),isFetching:o,isDrained:a,total:s,isNextLoaded:u,isCurrentLoaded:l,items:Qo(d,e.entities.answers).filter((function(e){return!e.isDelete}))}}),{loadItems:R.O}))(ca),la=n(598),ua=n.n(la);function da(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var fa=function(e){Object(s.a)(n,e);var t=da(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a1&&void 0!==arguments[1]?arguments[1]:aa.b,r=e.props,o=r.question.id,a=r.loadItems;a(o,"hiddenAnswers",{offset:t,limit:n})},e}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.question.id,n=e.page,r=e.isDrained,o=e.items,a=e.loadItems;!r&&o.length=s?n:a,isNextLoaded:o,page:i,total:s,placeholder:Object(r.b)(Tr.a,{className:"List-item"}),onPaginationClick:this.handlePaginationClick,onLoad:this.handleHiddenAnswersLoad,children:Ho(c,l)})}}]),n}(d.PureComponent),ma=Object(E.compose)(o.withRouter,Object(b.connect)((function(e,t){var n=t.page,r=Vo(e,{id:t.question.id,resource:"hiddenAnswers"}),o=r.isFetching,a=r.isDrained,i=r.ids,c=Object(Fo.d)(n,i,aa.b);return Object.assign({isFetching:o,isDrained:a},c,{items:Qo(c.items,e.entities.answers).filter((function(e){return!e.isDelete}))})}),{loadItems:R.O}))(ba);function va(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ga=function(e){Object(s.a)(n,e);var t=va(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.question,n=t.id,r=t.relationship.isAuthor,o=e.resource,a=e.router;"collapsedAnswers"!==o||r||a.push("/question/".concat(n))}},{key:"render",value:function(){var e=this.props,t=e.resource,n=e.question,o=e.question,a=o.questionType,i=o.answerCount,c=o.reviewInfo.tips,s=o.isVisible,l=e.location;if(e.isMuteSpecial||!s)return Object(r.b)(Yn.d,{className:"Answers-none",children:Object(r.c)(Zo.k,{children:[Object(r.b)(Zo.b,{}),Object(r.b)("div",{children:"回答暂时无法查看"})]})});if("commercial"!==a&&!i){if(c)return null;var u=n.status||{},d=u.isClose,f=u.isLocked,p=u.isSuggest;return d||f||p?null:Object(r.b)(Yn.d,{className:"Answers-none",children:Object(r.c)(Zo.k,{children:[Object(r.b)(Zo.b,{}),Object(r.c)("div",{children:["暂时还没有回答,开始",Object(r.b)(st,{preset:"plain",className:"QuestionAnswers-answerLink",children:"写第一个回答"})]})]})})}return Object(r.b)("div",{id:"QuestionAnswers-answers",className:"QuestionAnswers-answers","data-zop-feedlistmap":"answers"===t?"0,0,1,0":"0,0,1",children:Object(r.c)(ra,{question:n,resource:t,children:["updatedAnswers"===t&&Object(r.b)(sa,{question:n,page:Number(l.query.page)||1}),"answers"===t&&Object(r.b)(pa,{question:n}),"hiddenAnswers"===t&&Object(r.b)(ma,{question:n,page:Number(l.query.page)||1})]})})}}]),n}(d.PureComponent),ya=Object(E.compose)(Object(j.b)({module:"ContentList"}),o.withRouter,Object(b.connect)((function(e,t){return{isMuteSpecial:Object(R.C)(t.question)}})))(ga),Oa=n(1754),ja=n(834),wa=n(1107),Ca=n(1337),ka=n(1340),xa=n(1336),Sa=n(1342);function Ea(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Ra=function(e){Object(s.a)(n,e);var t=Ea(n);function n(){var e,r;Object(i.a)(this,n);for(var o=arguments.length,a=new Array(o),c=0;c=2?" 等":""),meta:"".concat(Object(xe.formatNumber)(g)," 场 Live, ").concat(Object(xe.formatNumber)(y)," 次参与")});case"book":var C=e.id,k=e.title,x=e.cover,S=e.authorName,E=e.readCount;return Object(r.b)(Za,{link:"/pub/book/".concat(C),imageUrl:x,title:k,description:S,meta:Object(r.c)("div",{className:"RelatedCommodities-bookMeta",children:["".concat(Object(xe.formatNumber)(E)," 人读过"),Object(r.c)("span",{className:"RelatedCommodities-bookRead",children:[Object(r.b)(Ga.a,{width:13,height:14,center:!0}),"阅读"]})]})});default:return null}}}]),n}(d.Component),ei=Object(j.b)((function(e){var t=e.item,n=e.index;if("book"===t.type)return{module:"EBookItem",index:n,content:{type:"EBook",token:String(t.id)},trackCardShow:!0};var r="special"===t.type?"LiveAlbum":Object(Wa.pascalize)(t.type);return{module:"".concat(r,"Item"),index:n,content:Object.assign({type:r,id:t.id},"live"===t.type&&{author_member_hash_id:t.speaker.member.id}),trackCardShow:!0}}))($a);function ti(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var ni=function(e){Object(s.a)(n,e);var t=ti(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.question.id,n=e.answer;(0,e.loadRelatedCommodities)(t,n&&n.id)}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.question.id,r=t.loadRelatedCommodities,o=e.question.id;n!==o&&r(o)}},{key:"componentDidUpdate",value:function(e){!e.items&&this.props.items&&this.props.onLoad&&this.props.onLoad()}},{key:"render",value:function(){var e=this.props.items;return e&&e.length?Object(r.c)(Yn.d,{children:[Object(r.b)(Yn.b,{className:"RelatedCommodities-title",children:"相关推荐"}),Object(r.b)(Yn.c,{className:"RelatedCommodities-list",children:e.slice(0,3).map((function(e){return Object(r.b)(ei,{item:e},e.id)}))})]}):null}}]),n}(d.Component),ri=Object(E.compose)(Object(b.connect)((function(e,t){var n=e.question.relatedCommodities[t.question.id];return{attachedInfo:(n||[]).attachedInfo,items:n}}),{loadRelatedCommodities:R.X}),Object(j.b)((function(e){return{attachedInfoBytes:e.attachedInfo,module:"ContentList",moduleName:"相关推荐"}})))(ni),oi=n(1855),ai=n(119),ii=n(1410);function ci(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var si=function(e){Object(s.a)(n,e);var t=ci(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0?n:o.length>0?o:[]}(e),i=a.length?a.map((function(e,t){return Object(r.b)(di,Object.assign({},e),t)})):o;return Object(r.c)("div",{className:"QuestionSidebarTopicMeta-cardMain",children:[this.renderCardImage(),Object(r.c)("div",{className:"QuestionSidebarTopicMeta-cardContent",children:[Object(r.b)("h3",{className:"QuestionSidebarTopicMeta-cardTitle",children:t}),n&&Object(r.b)("div",{className:"QuestionSidebarTopicMeta-cardDesc",children:n}),i&&Object(r.b)("div",{className:"QuestionSidebarTopicMeta-cardScore",children:i})]})]})}},{key:"renderCard",value:function(){return"n_goods"===this.props.meta.category?this.renderGoodsCard():this.renderGeneralCard()}},{key:"renderModule",value:function(){var e=this.props,t=e.meta,n=e.excerpt,o=e.metaCardDisplay,a=t.summary||n;return Object(r.c)(Yn.d,{children:[this.renderCard(),"normal"===o&&Object(r.c)("div",{className:"QuestionSidebarTopicMeta-cardMore",children:[a&&Object(r.b)("div",{className:"QuestionSidebarTopicMeta-cardMoreInner",dangerouslySetInnerHTML:{__html:a}}),Object(r.c)("div",{className:"QuestionSidebarTopicMeta-cardLink",children:["查看更多",Object(r.b)(br.a,{center:!0})]})]})]})}},{key:"render",value:function(){var e=this.props,t=e.id,n=e.meta,o=e.metaCardDisplay;if(!n||"none"===o)return null;var a=n.category;return Object(r.b)(j.a,{module:"TopicItem",moduleName:a,card:{content:Object.assign({type:"Topic"},Object(Xn.a)("topic",t),{sub_type:"MetaCard"})},trackCardShow:!0,children:Object(r.b)("a",{href:"/topic/".concat(t),target:"_blank",rel:"noopener noreferrer",children:this.renderModule()})})}}]),n}(d.PureComponent);function pi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}fi.propTypes={id:h.a.string.isRequired,excerpt:h.a.string,meta:h.a.shape({category:h.a.string,avatar:h.a.string,title:h.a.string,description1:h.a.string,description2:h.a.string,summary:h.a.string,scores:h.a.arrayOf(h.a.shape({url:h.a.string,score:h.a.string,from:h.a.string})),tags:h.a.arrayOf(h.a.shape({text:h.a.string}))}).isRequired,metaCardDisplay:h.a.oneOf(["normal","none"])};var hi=function(e){Object(s.a)(n,e);var t=pi(n);function n(){return Object(i.a)(this,n),t.apply(this,arguments)}return Object(c.a)(n,[{key:"componentDidMount",value:function(){var e=this.props,t=e.params.id,n=e.items,r=e.loadQuestionMetaTopics;n||r(t)}},{key:"render",value:function(){var e=this.props,t=e.items,n=e.questionId;if(!t||!t.length)return null;var o=t.filter((function(e){return e&&e.meta}));if(!o||o.length<1)return null;var a=o[0],i=a.vote,c=a.isVote,s="normal";return i&&c&&(s="none"),Object(r.b)("div",{className:"QuestionSidebarTopicMeta",children:Object(r.b)(fi,Object.assign({metaCardDisplay:s},a,{questionId:n}))})}}]),n}(d.Component),bi=Object(E.compose)(o.withRouter,Object(b.connect)((function(e,t){var n=t.params;return{questionId:n.id,items:Object(R.ab)(e,{id:n.id})}}),{loadQuestionMetaTopics:R.U}),Object(T.a)(null))(hi),mi=n(249),vi=Object(E.compose)(Object(T.a)(null),Object(mi.b)(),Object(b.connect)(null,{getReadingMembership:R.v}))((function(e){var t=e.getReadingMembership,n=e.isLogin,o=Object(d.useState)(!1),i=Object(a.a)(o,2),c=i[0],s=i[1],l=Object(d.useState)(!1),u=Object(a.a)(l,2),f=u[0],p=u[1];Object(d.useEffect)((function(){n&&t().then((function(e){var t=e.payload;p(t.isHaveRight)})).catch((function(){}))}),[t,n]);var h=function(){s(!c)};return f&&Object(r.c)(r.a,{children:[Object(r.c)(Yn.d,{className:"ReadingMembership",onClick:h,children:[Object(r.c)("div",{className:"ReadingMembership-banner",children:[Object(r.b)("div",{children:"领取读书会会员体验卡"}),Object(r.c)("div",{children:["海量电子书免费读 ",Object(r.b)(br.a,{size:22})]})]}),Object(r.b)("img",{src:"https://pic3.zhimg.com/80/v2-ba02e89d92407e3e2491a27af5ace660_hd.jpeg"})]}),Object(r.b)(Dt.b,{className:"ReadingMembership-modal",onClose:h,children:c&&Object(r.c)("div",{className:"ReadingMembership-content",children:[Object(r.b)("img",{src:"https://pic2.zhimg.com/80/v2-8f8b9ff43e407c160bfc2d6352c662b6_hd.jpeg"}),Object(r.c)("div",{className:"ReadingMembership-title",children:[Object(r.b)("div",{children:"登录知乎 App 领取"}),Object(r.b)("div",{children:"读书会会员 7 天体验卡"})]}),Object(r.c)("div",{className:"ReadingMembership-qrcode",children:[Object(r.b)("div",{children:"知乎读书会会员,海量电子书免费读"}),Object(r.b)("img",{src:"https://pic2.zhimg.com/80/v2-e3a03af184c11dc3526218de74977fd5_hd.png",alt:"知乎二维码"}),Object(r.b)("div",{children:"扫码下载知乎 App"})]})]})})]})})),gi=n(1093);function yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Oi=function(e){Object(s.a)(n,e);var t=yi(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&!b&&Object(r.b)(Ba,{question:u})]})}},{key:"render",value:function(){var e=this.props,t=e.question,n=e.isNormalNotification,o=e.notificationId,a=e.location;return Object(r.c)("div",{className:"Question-main",children:[Object(r.b)("div",{className:"Question-mainColumn",children:n?Object(r.b)(Yo,{location:a,question:t,id:o}):this.renderAnswers()}),Object(r.b)(ie.a,{children:Object(r.b)(ji,{question:t})})]})}}]),n}(d.PureComponent);Ci.fetchData=function(e){var t=e.params.id,n=e.route.resource,r=e.location.query,o=r.group_id,a=r.page,i=r.qc,c=e.dispatch,s=e.getState;if(!i&&o)return c(Object(R.P)(o));var l=s(),u=l.env.userAgent,d=Object(U.d)(l),f=5;return u.isBot?f=20:d&&(f=4),c(Object(R.O)(t,n,{offset:Object(Fo.c)(Number(a)||1),limit:f}))};var ki=Object(b.connect)((function(e,t){var n=t.params.id,r=t.route.resource,o=t.location.query,a=o.group_id,i=o.qc,c=e.currentUser,s=!i&&a,l=Vo(e,{id:n,resource:r}).isDrained,u=Object(R.bb)(e,{id:n}),d=u.answerCount,f=u.relationship.isAnonymous;return{isNormalNotification:s,notificationId:a,resource:r,question:u,isDrained:l,invitationShowCount:c&&!f&&d<4?d?5:3:0,isBot:e.env.userAgent.isBot,isHuman:Object(U.c)(e),currentUser:Object(M.b)(e),canOia:Object(U.d)(e),shouldOia:Object(U.h)(e),shouldSpecialOia:Object(U.i)(e),referer:Object(U.g)(e),isMuteSpecial:Object(R.C)(u),isMuteFreeze:Object(R.B)(u),ua:Object(U.l)(e),draft:Object(R.n)(e,{id:n})}}))(Ci),xi=n(1445),Si=n(205),Ei=n(136);function Ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Ti=function(e){Object(s.a)(n,e);var t=Ri(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:this.props,t=e.answer.author.urlToken,n=e.loadProfile,r=e.isDrained;t&&(r||n(t))}},{key:"render",value:function(){var e,t=this.props,n=t.user,o=t.isSelf;if(!n)return null;var a=n.urlToken,i=n.isOrg,c=n.headline,s=n.badge,l=n.badgeV2,u=n.answerCount,d=n.articlesCount,f=n.followerCount,p=pe.e(l||s),h=p.identity,b=p.bestAnswerer,m=p.baike,v=i?"org":"people";return Object(r.c)(Yn.d,{className:"AnswerAuthor",children:[Object(r.b)(Yn.b,{className:"AnswerAuthor-title",children:"关于作者"}),Object(r.b)(Yn.c,{children:Object(r.c)("div",{className:"AnswerAuthor-user",children:[Object(r.b)("div",{className:"AnswerAuthor-user-avatar",children:Object(r.b)(Ui.a,{user:n,avatarProps:{size:60},noHoverCard:!0})}),Object(r.c)("div",{className:"AnswerAuthor-user-content",children:[Object(r.b)("div",{className:"AnswerAuthor-user-name",children:Object(r.b)(Vi.a,{user:n,noBadge:!0,noHoverCard:!0})}),c&&Object(r.b)("div",{className:"AnswerAuthor-user-headline",children:Object(r.b)(It.a,{html:c})})]})]})}),Object(r.c)(Yn.c,{children:[h&&Object(r.c)("div",{className:"AnswerAuthor-item",children:[Object(r.b)("a",{className:"AnswerAuthor-item-icon",href:"/account/verification/intro",target:"_blank",children:Object(r.b)(pe.a,{center:!0,size:19})}),Object(r.b)("div",{className:"AnswerAuthor-item-value",children:h.slice(0,2).map((function(e){return e.description})).join(",")})]}),Boolean(null==b||null===(e=b.topics)||void 0===e?void 0:e.length)&&Object(r.c)("div",{className:"AnswerAuthor-item",children:[Object(r.b)("span",{className:"AnswerAuthor-item-icon",children:Object(r.b)(pe.b,{center:!0,size:19})}),Object(r.c)("div",{children:[Object(r.b)(Mi.a,{topics:b.topics,user:n,noHoverCard:!0}),"的优秀答主"]})]}),Boolean(m)&&Object(r.c)("div",{className:"AnswerAuthor-item",children:[Object(r.b)("span",{className:"AnswerAuthor-item-icon",children:Object(r.b)(pe.d,{center:!0,size:19})}),Object(r.b)("div",{children:m.description})]}),n&&!o&&Object(r.b)(Fi,{author:n})]}),a&&Object(r.c)(Yn.c,{children:[Object(r.b)("div",{className:"AnswerAuthor-counts",children:Object(r.c)(Ft.a,{children:[Object(r.b)(Ft.a.Item,{tag:at.a,preset:"plain",to:"/".concat(v,"/").concat(a,"/answers"),name:"回答",value:u,"data-za-detail-view-element_name":"Answer"}),Object(r.b)(Ft.a.Item,{tag:at.a,preset:"plain",to:"/".concat(v,"/").concat(a,"/posts"),name:"文章",value:d,"data-za-detail-view-element_name":"Post"}),Object(r.b)(Ft.a.Item,{tag:at.a,preset:"plain",to:"/".concat(v,"/").concat(a,"/followers"),name:"关注者",value:f,"data-za-detail-view-element_name":"Follower"})]})}),!o&&Object(r.b)(ii.a,{className:"AnswerAuthor-buttons",user:n})]})]})}}]),n}(d.Component),Qi=Object(b.connect)((function(e,t){var n=t.answer,r=n.author,o=n.author.urlToken,a=e.entities.users,i=o?a[o]:r;return{currentUser:Object(M.b)(e),isDrained:Hi(i),user:i,isSelf:Object(M.i)(e,i)}}),{loadProfile:ai.h})(Ki),Wi=n(854),Gi=n(1467);function Yi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(u.a)(e);if(t){var o=Object(u.a)(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Object(l.a)(this,n)}}var Zi=function(e){Object(s.a)(n,e);var t=Yi(n);function n(){var e;Object(i.a)(this,n);for(var r=arguments.length,o=new Array(r),a=0;a0&&!u&&Object(r.b)(Oc,{itemNum:c,to:"/question/".concat(i),questionType:s}),Object(r.b)(Ai,{question:o,location:l,answer:t}),Object(P.n)(t)||Object(P.l)(t)||Object(r.b)(Ii,{question:o,answerId:n}),c>0&&!u&&Object(r.b)(Oc,{itemNum:c,to:"/question/".concat(i),questionType:s})]})}),Object(r.b)(ie.a,{children:Object(r.b)(vc,{question:o,answer:t})})]})}}]),n}(d.Component);Nc.fetchData=function(e){var t=e.dispatch,n=e.params.answerId;return t(Object(P.o)(n))};var _c=Object(b.connect)((function(e,t){var n=t.params,r=n.id,o=n.answerId,a=Object(R.bb)(e,{id:r}),i=Object(P.c)(e,{id:o}),c=Object(M.b)(e),s=(a||{}).relationship||{myAnswer:{isDelete:!1}};return{question:a,isOffice:Object(U.e)(e),answer:i&&Object.assign({},i,{isDelete:(i.relationship||{}).isAuthor&&(s.myAnswer||{}).isDeleted}),isMuteSpecial:Object(R.C)(a),currentUser:c}}),{loadAnswer:P.o,checkIfCanConvertToVessay:P.f})(Nc);t.default=Object(r.c)(o.Route,{children:[Object(r.b)(o.Route,{path:"waiting",component:Mr,name:"QuestionWaiting",authRequired:!0,zaPageShowId:5541}),Object(r.b)(o.Route,{path:"later",component:Kr,name:"QuestionLater",authRequired:!0,zaPageShowId:5371}),Object(r.b)(o.Route,{path:"invited",component:Jr,name:"QuestionInvited",authRequired:!0,zaPageShowId:5543}),Object(r.c)(o.Route,{path:":id",component:Rr,name:"Question",children:[Object(r.c)(o.Route,{children:[Object(r.b)(o.IndexRoute,{component:ki,entity:"answers",resource:"answers",name:"QuestionPage",zaPageShowId:3378}),Object(r.b)(o.Route,{path:"answers/hidden",component:ki,entity:"answers",resource:"hiddenAnswers",name:"QuestionHiddenAnswers"}),Object(r.b)(o.Route,{path:"answers/updated",component:ki,resource:"updatedAnswers",name:"QuestionUpdatedAnswers"}),Object(r.b)(o.Redirect,{from:"answers/created",to:"answers/updated"})]}),Object(r.b)(o.Route,{path:"answer/:answerId",component:_c,name:"AnswerPage",zaPageShowId:2012}),Object(r.b)(o.Redirect,{from:"noti-answers",to:"."})]})]})}])]); //# sourceMappingURL=main.question-routes.12891aeec83ba7a7be56.js.map